react-semaphor 0.1.424 → 0.1.425

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 (105) hide show
  1. package/dist/analytics-protocol/index.cjs +1 -1
  2. package/dist/analytics-protocol/index.js +243 -91
  3. package/dist/appearance/index.cjs +1 -1
  4. package/dist/appearance/index.js +1 -1
  5. package/dist/brand-studio/index.cjs +2 -2
  6. package/dist/brand-studio/index.js +8 -8
  7. package/dist/chunks/{analyze-result-contract-D7pjjYPy.js → analyze-result-contract-DnfF8kBb.js} +434 -427
  8. package/dist/chunks/analyze-result-contract-ege_u6Nl.js +1 -0
  9. package/dist/chunks/{braces-8TRlDwDw.js → braces-BdbUk_r9.js} +1 -1
  10. package/dist/chunks/{braces-D2tStQjF.js → braces-CbO-aIwH.js} +1 -1
  11. package/dist/chunks/calendar-preferences-dialog-BLaSWhLl.js +1 -0
  12. package/dist/chunks/{calendar-preferences-dialog-D5mABNDT.js → calendar-preferences-dialog-DJwV0aqn.js} +4 -4
  13. package/dist/chunks/{catalog-field-grounding-CJKAqtiC.js → catalog-field-grounding-DcxPLns0.js} +10 -10
  14. package/dist/chunks/{switch-2bh3Hka1.js → code-editor-Bkk7s8hI.js} +7382 -6809
  15. package/dist/chunks/code-editor-CkXyNgYc.js +138 -0
  16. package/dist/chunks/{common-types-4bjoIgvm.js → common-types-ClkOI-3O.js} +4 -4
  17. package/dist/chunks/comparison-document-migration-CQJ0DZlL.js +414 -0
  18. package/dist/chunks/comparison-document-migration-Db64RWYD.js +1 -0
  19. package/dist/chunks/{index-Dzz6jXSY.js → dashboard-5agU0G_D.js} +57458 -56183
  20. package/dist/chunks/dashboard-MKIqgGDp.js +1402 -0
  21. package/dist/chunks/{dashboard-briefing-launcher-DuWgwtxX.js → dashboard-briefing-launcher-CII8-4qo.js} +11 -6
  22. package/dist/chunks/{dashboard-briefing-launcher-BNDzMjjt.js → dashboard-briefing-launcher-qyEVfuOm.js} +226 -209
  23. package/dist/chunks/dashboard-controls-PJpeYZHw.js +36 -0
  24. package/dist/chunks/dashboard-controls-aJY0FNPP.js +2196 -0
  25. package/dist/chunks/dashboard-input-contract-BFpERluO.js +18 -0
  26. package/dist/chunks/dashboard-input-contract-DV3cshjz.js +1 -0
  27. package/dist/chunks/{dashboard-json-CkTEDNtH.js → dashboard-json-CzHSP6Fa.js} +16 -15
  28. package/dist/chunks/dashboard-json-DtmR5yCf.js +1 -0
  29. package/dist/chunks/date-formatter-BTTYdAik.js +1 -0
  30. package/dist/chunks/date-formatter-D-89jTjG.js +514 -0
  31. package/dist/chunks/{edit-dashboard-visual-CRjVRZLk.js → edit-dashboard-visual-AkZzwBCV.js} +8892 -8996
  32. package/dist/chunks/edit-dashboard-visual-Cif6uDqN.js +182 -0
  33. package/dist/chunks/{index-CjzRe2su.js → index-CnujJ3fa.js} +3 -3
  34. package/dist/chunks/{index-DRlMUglg.js → index-Dpm_VET4.js} +2 -2
  35. package/dist/chunks/{index-CJdxSyQq.js → index-If0wlXGi.js} +308 -308
  36. package/dist/chunks/index-jSrCwPQz.js +31 -0
  37. package/dist/chunks/{x-CXDkqdur.js → index-xHCrHprY.js} +59 -59
  38. package/dist/chunks/{layout-grid-C0OI-MRn.js → layout-grid-B08pP7v6.js} +1 -1
  39. package/dist/chunks/{layout-grid-CiubineE.js → layout-grid-D5tYJg1-.js} +1 -1
  40. package/dist/chunks/metric-comparison-4oA4ouU9.js +354 -0
  41. package/dist/chunks/metric-comparison-nQKquVnx.js +1 -0
  42. package/dist/chunks/{palette-C4KTXOug.js → palette-C0yjT5Tv.js} +1 -1
  43. package/dist/chunks/{palette-Cp1hqZtm.js → palette-jqaAcwiQ.js} +1 -1
  44. package/dist/chunks/{save-DgMfP0j8.js → save-HCJjjzdX.js} +1 -1
  45. package/dist/chunks/{save-C__QggEE.js → save-Xdc4pnys.js} +1 -1
  46. package/dist/chunks/{search-BHsQIWBV.js → search-DHZCro8B.js} +1 -1
  47. package/dist/chunks/{search-DNCejM7Z.js → search-Dcud9ajy.js} +1 -1
  48. package/dist/chunks/{update-policy-C1pmhLz9.js → update-policy-BgONreNd.js} +1 -1
  49. package/dist/chunks/{update-policy-BCJc0oI5.js → update-policy-CY2k-pJP.js} +9 -9
  50. package/dist/chunks/{use-create-flow-overlay-state-B9vArrvr.js → use-create-flow-overlay-state-ByOKVV2K.js} +62 -62
  51. package/dist/chunks/{use-create-flow-overlay-state-B-bYbtix.js → use-create-flow-overlay-state-DmuReEnk.js} +2 -2
  52. package/dist/chunks/validators-B4VMLX3_.js +1 -0
  53. package/dist/chunks/{validators-PXkij33j.js → validators-Cz-XuORM.js} +123 -119
  54. package/dist/dashboard/index.cjs +1 -1
  55. package/dist/dashboard/index.js +2 -2
  56. package/dist/dashboard-authoring/index.cjs +2 -2
  57. package/dist/dashboard-authoring/index.js +6 -4
  58. package/dist/data-app-builder/index.cjs +6 -6
  59. package/dist/data-app-builder/index.js +5 -5
  60. package/dist/data-app-codegen/index.cjs +1 -1
  61. package/dist/data-app-codegen/index.js +2 -2
  62. package/dist/data-app-codegen-node/index.cjs +1 -1
  63. package/dist/data-app-codegen-node/index.js +3 -3
  64. package/dist/data-app-sdk/index.cjs +1 -1
  65. package/dist/data-app-sdk/index.js +6 -6
  66. package/dist/data-app-sdk-adapters/index.cjs +1 -1
  67. package/dist/data-app-sdk-adapters/index.js +1 -1
  68. package/dist/data-app-sdk-validation/index.cjs +1 -1
  69. package/dist/data-app-sdk-validation/index.js +65 -68
  70. package/dist/format-utils/index.cjs +2 -2
  71. package/dist/format-utils/index.js +59 -58
  72. package/dist/index.cjs +1 -1
  73. package/dist/index.js +19 -19
  74. package/dist/style.css +1 -1
  75. package/dist/surfboard/index.cjs +1 -1
  76. package/dist/surfboard/index.js +3 -3
  77. package/dist/types/analytics-protocol.d.ts +299 -3
  78. package/dist/types/brand-studio.d.ts +2 -2
  79. package/dist/types/briefings.d.ts +65 -41
  80. package/dist/types/dashboard-assistant.d.ts +28 -7
  81. package/dist/types/dashboard-authoring.d.ts +123 -43
  82. package/dist/types/dashboard.d.ts +97 -48
  83. package/dist/types/data-app-builder.d.ts +2 -2
  84. package/dist/types/data-app-sdk.d.ts +1 -1
  85. package/dist/types/format-utils.d.ts +98 -10
  86. package/dist/types/index.js +1 -1
  87. package/dist/types/main.d.ts +229 -95
  88. package/dist/types/shared.d.ts +84 -43
  89. package/dist/types/surfboard.d.ts +99 -49
  90. package/dist/types/types.d.ts +110 -50
  91. package/package.json +2 -1
  92. package/dist/chunks/analyze-result-contract-DpDcImgk.js +0 -1
  93. package/dist/chunks/calendar-preferences-dialog-iokD3HbE.js +0 -1
  94. package/dist/chunks/contracts-CoCOpd_i.js +0 -11
  95. package/dist/chunks/contracts-CtB2VONT.js +0 -1
  96. package/dist/chunks/dashboard-controls-bbEF-AbK.js +0 -52
  97. package/dist/chunks/dashboard-controls-id39vb7G.js +0 -2322
  98. package/dist/chunks/dashboard-json-DVoqS1ks.js +0 -1
  99. package/dist/chunks/date-formatter-B4EBSe9C.js +0 -1
  100. package/dist/chunks/date-formatter-BlhBftA9.js +0 -416
  101. package/dist/chunks/edit-dashboard-visual-CkrxZCcp.js +0 -178
  102. package/dist/chunks/index-S1CGUcSz.js +0 -1406
  103. package/dist/chunks/switch-DMT7qf_R.js +0 -138
  104. package/dist/chunks/validators-DMlVbd1p.js +0 -1
  105. package/dist/chunks/x-B6ghREd2.js +0 -31
@@ -1,23 +1,24 @@
1
1
  import { jsx as e, jsxs as r, Fragment as G } from "react/jsx-runtime";
2
2
  import jt, { useState as A, useEffect as Z, useMemo as J, useContext as Wt, useRef as me, useCallback as q } from "react";
3
- import { b as Se, c as De, e as ke, b9 as Ct, b$ as Ht, cm as Gt, cn as qt, aX as ge, ca as wt, bq as Ve, J as Kt, A as Xt, co as Qt, aN as Ye, aQ as Ze, aR as Je, aS as et, aT as tt, aU as rt, aV as at, aW as Nt, bp as nt, p as z, cp as Yt, cq as Zt, cr as qe, cb as Oe, cc as ze, cs as St, cd as _e, bZ as H, a$ as Jt, bE as Re, ct as er, bY as tr, d as st, f as ot, cu as rr, o as ar, b8 as nr, bn as Dt, cv as sr, bo as Xe, y as or, aK as ir, b1 as lr, u as $e, a0 as he, aH as it, aD as kt, aE as lt, a1 as At, aC as cr, aJ as dr, ch as ur, cw as hr, bA as mr, aF as mt, x as pr, a3 as fr, cx as gr, cy as br, cz as xr, cA as vr, cB as yr, cC as Cr, cD as wr, cE as Nr, cF as Et, cG as Sr, cH as Dr, cI as kr, cJ as Ar, cK as Er, b2 as Fr, cL as Ir, ce as Ft, cM as Lr, cN as Br, cO as Be, cP as Tr, cQ as Vr, cR as Rr, ay as Ur, aA as Pr, ae as Mr, ad as Or, ac as zr, ab as _r, a8 as $r, a6 as jr, cS as Wr, cT as Hr, cU as Gr, cV as qr, cW as Kr, aw as Xr, cX as Qr, cY as Yr, ak as Zr, cZ as Jr, c_ as ea, c$ as ta } from "./index-Dzz6jXSY.js";
4
- import { B, L as Ne, Z as Qe, e as ee, N as It, d as Lt, c as K, M as ra, E as be, u as M, A as xe, aF as pt, a6 as Bt, F as Tt, S as ct, P as Ue, a as Pe, b as Me, aG as aa, aH as na, aD as sa } from "./switch-2bh3Hka1.js";
5
- import { L as dt } from "./layout-grid-CiubineE.js";
6
- import { c as Ae, X as je, C as Vt } from "./x-CXDkqdur.js";
7
- import { u as ut, V as oa, E as ft, a as gt, b as ia, c as la, L as ca, d as da, e as Rt, C as Ut, f as ua } from "./use-create-flow-overlay-state-B9vArrvr.js";
8
- import "./analyze-result-contract-D7pjjYPy.js";
9
- import { S as ha } from "./search-BHsQIWBV.js";
10
- import { l as bt } from "./date-formatter-BlhBftA9.js";
11
- import "./index-CJdxSyQq.js";
3
+ import { b as De, c as ke, e as Ae, b9 as Ct, b$ as Ht, cm as Gt, cn as qt, aX as ge, ca as wt, bp as Ve, Q as Kt, O as Qt, co as Xt, aN as Ye, aQ as Ze, aR as Je, aS as et, aT as tt, aU as rt, aV as at, aW as Nt, bo as nt, p as z, cp as Yt, cq as Zt, cr as qe, cb as Oe, cc as ze, cs as St, cd as _e, bZ as H, a$ as Jt, bE as Re, ct as er, bY as tr, d as st, f as ot, cu as rr, o as ar, b8 as nr, bn as Dt, cv as sr, aG as or, aK as ir, b1 as lr, u as $e, aE as he, ah as it, ae as kt, ad as lt, aD as At, af as cr, a7 as dr, ch as ur, cw as hr, bz as mr, $ as mt, x as pr, aF as fr, cx as gr, cy as br, cz as xr, cA as vr, cB as yr, cC as Cr, cD as wr, cE as Nr, cF as Et, cG as Sr, b2 as Dr, cH as kr, ce as It, cI as Ar, cJ as Er, cK as Be, cL as Ir, cM as Fr, cN as Lr, z as Br, au as Tr, ap as Vr, a3 as Rr, ao as Ur, al as Pr, a8 as Mr, ak as Or, cO as zr, cP as _r, cQ as $r, cR as jr, cS as Wr, B as Hr, cT as Gr, cU as qr, ac as Kr, cV as Qr, cW as Xr, cX as Yr } from "./dashboard-5agU0G_D.js";
4
+ import { B, L as Se, Z as Qe, e as ee, N as Ft, d as Lt, c as K, M as Zr, F as be, u as M, D as xe, aH as pt, a7 as Bt, a6 as Xe, E as Tt, S as ct, P as Ue, a as Pe, b as Me, aI as Jr, aJ as ea, aK as ta, aL as ra, aM as aa, aF as na } from "./code-editor-Bkk7s8hI.js";
5
+ import { L as dt } from "./layout-grid-D5tYJg1-.js";
6
+ import { c as ve, X as je, C as Vt } from "./index-xHCrHprY.js";
7
+ import { u as ut, V as sa, E as ft, a as gt, b as oa, c as ia, L as la, d as ca, e as Rt, C as Ut, f as da } from "./use-create-flow-overlay-state-ByOKVV2K.js";
8
+ import "./analyze-result-contract-DnfF8kBb.js";
9
+ import { S as ua } from "./search-DHZCro8B.js";
10
+ import { m as bt } from "./date-formatter-D-89jTjG.js";
11
+ import "./index-If0wlXGi.js";
12
+ import "./comparison-document-migration-CQJ0DZlL.js";
12
13
  import "react-dom";
13
- import { getBriefingPresentation as oe, describeBriefingSchedule as ma, getBriefingCreationIntents as pa } from "../briefings/index.js";
14
+ import { getBriefingPresentation as oe, describeBriefingSchedule as ha, getBriefingCreationIntents as ma } from "../briefings/index.js";
14
15
  /**
15
16
  * @license lucide-react v0.453.0 - ISC
16
17
  *
17
18
  * This source code is licensed under the ISC license.
18
19
  * See the LICENSE file in the root directory of this source tree.
19
20
  */
20
- const fa = Ae("ArrowUpRight", [
21
+ const pa = ve("ArrowUpRight", [
21
22
  ["path", { d: "M7 7h10v10", key: "1tivn9" }],
22
23
  ["path", { d: "M7 17 17 7", key: "1vkiza" }]
23
24
  ]);
@@ -27,7 +28,23 @@ const fa = Ae("ArrowUpRight", [
27
28
  * This source code is licensed under the ISC license.
28
29
  * See the LICENSE file in the root directory of this source tree.
29
30
  */
30
- const ga = Ae("CircleX", [
31
+ const fa = ve("CalendarRange", [
32
+ ["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
33
+ ["path", { d: "M16 2v4", key: "4m81vk" }],
34
+ ["path", { d: "M3 10h18", key: "8toen8" }],
35
+ ["path", { d: "M8 2v4", key: "1cmpym" }],
36
+ ["path", { d: "M17 14h-6", key: "bkmgh3" }],
37
+ ["path", { d: "M13 18H7", key: "bb0bb7" }],
38
+ ["path", { d: "M7 14h.01", key: "1qa3f1" }],
39
+ ["path", { d: "M17 18h.01", key: "1bdyru" }]
40
+ ]);
41
+ /**
42
+ * @license lucide-react v0.453.0 - ISC
43
+ *
44
+ * This source code is licensed under the ISC license.
45
+ * See the LICENSE file in the root directory of this source tree.
46
+ */
47
+ const ga = ve("CircleX", [
31
48
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
32
49
  ["path", { d: "m15 9-6 6", key: "1uzhvr" }],
33
50
  ["path", { d: "m9 9 6 6", key: "z0biqf" }]
@@ -38,7 +55,7 @@ const ga = Ae("CircleX", [
38
55
  * This source code is licensed under the ISC license.
39
56
  * See the LICENSE file in the root directory of this source tree.
40
57
  */
41
- const xt = Ae("FileDown", [
58
+ const xt = ve("FileDown", [
42
59
  ["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
43
60
  ["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
44
61
  ["path", { d: "M12 18v-6", key: "17g6i2" }],
@@ -50,7 +67,7 @@ const xt = Ae("FileDown", [
50
67
  * This source code is licensed under the ISC license.
51
68
  * See the LICENSE file in the root directory of this source tree.
52
69
  */
53
- const ba = Ae("FilterX", [
70
+ const ba = ve("FilterX", [
54
71
  ["path", { d: "M13.013 3H2l8 9.46V19l4 2v-8.54l.9-1.055", key: "1fi1da" }],
55
72
  ["path", { d: "m22 3-5 5", key: "12jva0" }],
56
73
  ["path", { d: "m17 3 5 5", key: "k36vhe" }]
@@ -61,7 +78,7 @@ const ba = Ae("FilterX", [
61
78
  * This source code is licensed under the ISC license.
62
79
  * See the LICENSE file in the root directory of this source tree.
63
80
  */
64
- const xa = Ae("Newspaper", [
81
+ const xa = ve("Newspaper", [
65
82
  [
66
83
  "path",
67
84
  {
@@ -104,8 +121,8 @@ function ya({
104
121
  }, d = (o) => {
105
122
  a(o);
106
123
  };
107
- return /* @__PURE__ */ e(Se, { open: t, onOpenChange: d, children: /* @__PURE__ */ r(
108
- De,
124
+ return /* @__PURE__ */ e(De, { open: t, onOpenChange: d, children: /* @__PURE__ */ r(
125
+ ke,
109
126
  {
110
127
  showCloseButton: !1,
111
128
  className: "flex max-w-lg grid-cols-none flex-col gap-0 overflow-hidden rounded-[6px] border-border/60 p-0 shadow-lg",
@@ -114,7 +131,7 @@ function ya({
114
131
  /* @__PURE__ */ r("div", { className: "flex min-w-0 items-center gap-2", children: [
115
132
  /* @__PURE__ */ e(dt, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
116
133
  /* @__PURE__ */ r("div", { className: "flex min-w-0 items-baseline gap-2", children: [
117
- /* @__PURE__ */ e(ke, { className: "truncate text-[13px] font-medium leading-none tracking-normal", children: "New library visual" }),
134
+ /* @__PURE__ */ e(Ae, { className: "truncate text-[13px] font-medium leading-none tracking-normal", children: "New library visual" }),
118
135
  /* @__PURE__ */ e("span", { className: "shrink-0 text-[10px] font-medium uppercase leading-none tracking-[0.08em] text-muted-foreground", children: "Visual" })
119
136
  ] })
120
137
  ] }),
@@ -134,7 +151,7 @@ function ya({
134
151
  /* @__PURE__ */ r("div", { className: "space-y-3 px-4 py-3", children: [
135
152
  /* @__PURE__ */ e("p", { className: "text-[12px] text-muted-foreground", children: "Create a saved visual that can be reused across dashboards." }),
136
153
  /* @__PURE__ */ r("div", { className: "space-y-1.5", children: [
137
- /* @__PURE__ */ e(Ne, { htmlFor: "visual-title", className: "text-[12px]", children: "Name" }),
154
+ /* @__PURE__ */ e(Se, { htmlFor: "visual-title", className: "text-[12px]", children: "Name" }),
138
155
  /* @__PURE__ */ e(
139
156
  Qe,
140
157
  {
@@ -151,7 +168,7 @@ function ya({
151
168
  )
152
169
  ] }),
153
170
  /* @__PURE__ */ r("div", { className: "space-y-1.5", children: [
154
- /* @__PURE__ */ e(Ne, { htmlFor: "visual-description", className: "text-[12px]", children: "Description" }),
171
+ /* @__PURE__ */ e(Se, { htmlFor: "visual-description", className: "text-[12px]", children: "Description" }),
155
172
  /* @__PURE__ */ e(
156
173
  Qe,
157
174
  {
@@ -214,13 +231,13 @@ function Ca(t, a) {
214
231
  }
215
232
  function wa(t) {
216
233
  const a = (t || "").toLowerCase();
217
- return a.includes("table") ? It : a.includes("pie") || a.includes("donut") ? Yt : a.includes("line") ? Zt : a.includes("bar") ? ra : dt;
234
+ return a.includes("table") ? Ft : a.includes("pie") || a.includes("donut") ? Yt : a.includes("line") ? Zt : a.includes("bar") ? Zr : dt;
218
235
  }
219
236
  function Na({ visual: t }) {
220
237
  const a = t.ownership.status === "public" ? "Public" : t.ownership.status === "shared" || t.ownership.sharedCount > 0 ? "Shared" : "Private";
221
238
  return /* @__PURE__ */ e("span", { className: "inline-flex items-center rounded-[4px] border border-border/60 px-1.5 py-px text-[11px] text-muted-foreground", children: a });
222
239
  }
223
- function Tn({
240
+ function Vn({
224
241
  open: t,
225
242
  onOpenChange: a
226
243
  }) {
@@ -235,8 +252,8 @@ function Tn({
235
252
  }, { selectVisual: S } = Ct(), { handleAddLibraryVisual: k, handleEditLibraryVisual: P } = ut(), { isConsoleMode: f } = Ht(), {
236
253
  resources: C,
237
254
  isLoading: T,
238
- isError: F,
239
- createResource: I,
255
+ isError: I,
256
+ createResource: F,
240
257
  updateResource: R,
241
258
  deleteResourceAsync: V,
242
259
  duplicateResource: W,
@@ -249,26 +266,26 @@ function Tn({
249
266
  }
250
267
  ), {
251
268
  startUpdating: We,
252
- stopUpdating: ve,
269
+ stopUpdating: ye,
253
270
  isUpdating: He
254
- } = qt(), Q = C, _ = J(() => {
271
+ } = qt(), X = C, _ = J(() => {
255
272
  const v = i.trim().toLowerCase();
256
- return v ? Q.filter(
273
+ return v ? X.filter(
257
274
  (L) => {
258
275
  var O, re, ie;
259
276
  return ((O = L.title) == null ? void 0 : O.toLowerCase().includes(v)) || ((re = L.description) == null ? void 0 : re.toLowerCase().includes(v)) || ((ie = L.kind) == null ? void 0 : ie.toLowerCase().includes(v));
260
277
  }
261
- ) : Q;
262
- }, [i, Q]), te = J(
263
- () => Q.filter(
278
+ ) : X;
279
+ }, [i, X]), te = J(
280
+ () => X.filter(
264
281
  (v) => n.has(v.id)
265
282
  ),
266
- [n, Q]
283
+ [n, X]
267
284
  ), le = te.filter(
268
285
  (v) => v.permissions.canDelete
269
286
  ), ce = te.filter(
270
287
  (v) => v.permissions.canShare
271
- ), ye = _.length > 0 && _.every(
288
+ ), Ce = _.length > 0 && _.every(
272
289
  (v) => n.has(v.id)
273
290
  ), Ee = _.some(
274
291
  (v) => n.has(v.id)
@@ -282,13 +299,13 @@ function Tn({
282
299
  }, Y = () => {
283
300
  c((v) => {
284
301
  const L = new Set(v);
285
- return ye ? _.forEach(
302
+ return Ce ? _.forEach(
286
303
  (O) => L.delete(O.id)
287
304
  ) : _.forEach(
288
305
  (O) => L.add(O.id)
289
306
  ), L;
290
307
  });
291
- }, Ce = async (v) => {
308
+ }, we = async (v) => {
292
309
  (await k(v)).success && b();
293
310
  }, $ = async () => {
294
311
  const v = te;
@@ -312,7 +329,7 @@ function Tn({
312
329
  return;
313
330
  }
314
331
  x(null), p(!0);
315
- }, Fe = async () => {
332
+ }, Ie = async () => {
316
333
  const v = y ? [y] : le;
317
334
  try {
318
335
  for (const L of v)
@@ -336,7 +353,7 @@ function Tn({
336
353
  return;
337
354
  }
338
355
  d(v);
339
- }, we = ({
356
+ }, Ne = ({
340
357
  title: v,
341
358
  description: L
342
359
  }) => {
@@ -354,28 +371,28 @@ function Tn({
354
371
  },
355
372
  {
356
373
  onSuccess: () => {
357
- ve(o.id, ie), g(null);
374
+ ye(o.id, ie), g(null);
358
375
  },
359
376
  onError: () => {
360
- ve(o.id, ie);
377
+ ye(o.id, ie);
361
378
  }
362
379
  }
363
380
  );
364
381
  }, ue = (v) => {
365
382
  a(v), v || N();
366
- }, X = y ? 1 : le.length;
383
+ }, Q = y ? 1 : le.length;
367
384
  return /* @__PURE__ */ r(G, { children: [
368
- /* @__PURE__ */ e(Se, { open: t, onOpenChange: ue, children: /* @__PURE__ */ r(
369
- De,
385
+ /* @__PURE__ */ e(De, { open: t, onOpenChange: ue, children: /* @__PURE__ */ r(
386
+ ke,
370
387
  {
371
388
  showCloseButton: !1,
372
389
  className: "flex max-h-[80vh] w-[min(72rem,calc(100vw-2rem))] max-w-none grid-cols-none flex-col gap-0 overflow-hidden rounded-[6px] border-border/60 p-0 shadow-lg",
373
390
  children: [
374
391
  /* @__PURE__ */ r("div", { className: "flex h-10 shrink-0 items-center justify-between gap-2 border-b border-border/60 px-3", children: [
375
392
  /* @__PURE__ */ r("div", { className: "flex min-w-0 items-center gap-2", children: [
376
- /* @__PURE__ */ e(It, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
393
+ /* @__PURE__ */ e(Ft, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
377
394
  /* @__PURE__ */ r("div", { className: "flex min-w-0 items-baseline gap-2", children: [
378
- /* @__PURE__ */ e(ke, { className: "truncate text-[13px] font-medium leading-none tracking-normal", children: "Visuals library" }),
395
+ /* @__PURE__ */ e(Ae, { className: "truncate text-[13px] font-medium leading-none tracking-normal", children: "Visuals library" }),
379
396
  /* @__PURE__ */ e("span", { className: "shrink-0 text-[10px] font-medium uppercase leading-none tracking-[0.08em] text-muted-foreground", children: "Add to dashboard" })
380
397
  ] })
381
398
  ] }),
@@ -393,7 +410,7 @@ function Tn({
393
410
  ] }),
394
411
  /* @__PURE__ */ r("div", { className: "flex shrink-0 items-center gap-2 border-b border-border/60 px-3 py-2", children: [
395
412
  /* @__PURE__ */ r("div", { className: "relative min-w-[12rem] flex-1 md:max-w-md", children: [
396
- /* @__PURE__ */ e(ha, { className: "pointer-events-none absolute left-2 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground" }),
413
+ /* @__PURE__ */ e(ua, { className: "pointer-events-none absolute left-2 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground" }),
397
414
  /* @__PURE__ */ e(
398
415
  "input",
399
416
  {
@@ -420,7 +437,7 @@ function Tn({
420
437
  }
421
438
  )
422
439
  ] }),
423
- /* @__PURE__ */ e("div", { className: "min-h-0 flex-1 overflow-auto", children: T ? /* @__PURE__ */ e("div", { className: "p-3", children: /* @__PURE__ */ e(va, {}) }) : F ? /* @__PURE__ */ e("div", { className: "flex flex-col items-center gap-2 px-4 py-12 text-center", children: /* @__PURE__ */ e("p", { className: "text-[13px] text-destructive", children: "Failed to load visuals" }) }) : _.length === 0 ? /* @__PURE__ */ r("div", { className: "flex flex-col items-center gap-2 px-4 py-12 text-center", children: [
440
+ /* @__PURE__ */ e("div", { className: "min-h-0 flex-1 overflow-auto", children: T ? /* @__PURE__ */ e("div", { className: "p-3", children: /* @__PURE__ */ e(va, {}) }) : I ? /* @__PURE__ */ e("div", { className: "flex flex-col items-center gap-2 px-4 py-12 text-center", children: /* @__PURE__ */ e("p", { className: "text-[13px] text-destructive", children: "Failed to load visuals" }) }) : _.length === 0 ? /* @__PURE__ */ r("div", { className: "flex flex-col items-center gap-2 px-4 py-12 text-center", children: [
424
441
  /* @__PURE__ */ e(dt, { className: "h-5 w-5 text-muted-foreground/60" }),
425
442
  /* @__PURE__ */ e("p", { className: "text-[13px] font-medium", children: i ? "No visuals found" : "No visuals yet" }),
426
443
  /* @__PURE__ */ e("p", { className: "text-[12px] text-muted-foreground", children: i ? "Try a different search." : "Create a saved visual to add it here." })
@@ -429,11 +446,11 @@ function Tn({
429
446
  {
430
447
  visuals: _,
431
448
  selectedIds: n,
432
- allFilteredSelected: ye,
449
+ allFilteredSelected: Ce,
433
450
  someFilteredSelected: Ee,
434
451
  onSelectAll: Y,
435
452
  onToggleSelection: pe,
436
- onAddVisual: Ce,
453
+ onAddVisual: we,
437
454
  onOpenVisual: j,
438
455
  onEditDetails: g,
439
456
  onShareVisual: d,
@@ -523,7 +540,7 @@ function Tn({
523
540
  {
524
541
  open: u,
525
542
  onOpenChange: m,
526
- onSubmit: I,
543
+ onSubmit: F,
527
544
  isCreating: ae
528
545
  }
529
546
  ),
@@ -531,19 +548,19 @@ function Tn({
531
548
  Kt,
532
549
  {
533
550
  resource: l,
534
- resourceType: Xt.VISUAL,
551
+ resourceType: Qt.VISUAL,
535
552
  onClose: () => d(null)
536
553
  }
537
554
  ),
538
555
  o && /* @__PURE__ */ e(
539
- Qt,
556
+ Xt,
540
557
  {
541
558
  open: !!o,
542
559
  resourceLabel: "Visual",
543
560
  initialTitle: o.title || "",
544
561
  initialDescription: o.description || "",
545
562
  onClose: () => g(null),
546
- onSave: we,
563
+ onSave: Ne,
547
564
  isSaving: He(o.id)
548
565
  }
549
566
  ),
@@ -558,9 +575,9 @@ function Tn({
558
575
  /* @__PURE__ */ r(Je, { children: [
559
576
  /* @__PURE__ */ r(et, { children: [
560
577
  "Delete ",
561
- X,
578
+ Q,
562
579
  " visual",
563
- X === 1 ? "" : "s",
580
+ Q === 1 ? "" : "s",
564
581
  "?"
565
582
  ] }),
566
583
  /* @__PURE__ */ e(tt, { children: "This cannot be undone. Visuals already added to dashboards may need to be removed from those dashboards separately." })
@@ -571,9 +588,9 @@ function Tn({
571
588
  Nt,
572
589
  {
573
590
  onClick: (v) => {
574
- v.preventDefault(), Fe();
591
+ v.preventDefault(), Ie();
575
592
  },
576
- disabled: ne || X === 0,
593
+ disabled: ne || Q === 0,
577
594
  children: [
578
595
  ne ? /* @__PURE__ */ e(ee, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ e(Ve, { className: "h-3.5 w-3.5" }),
579
596
  ne ? "Deleting..." : "Delete"
@@ -874,12 +891,12 @@ function Aa({
874
891
  saveToCurrentDashboard: h.saveToCurrentDashboard
875
892
  });
876
893
  };
877
- return /* @__PURE__ */ e(Se, { open: t, onOpenChange: a, children: /* @__PURE__ */ r(De, { className: "sm:max-w-[500px]", children: [
894
+ return /* @__PURE__ */ e(De, { open: t, onOpenChange: a, children: /* @__PURE__ */ r(ke, { className: "sm:max-w-[500px]", children: [
878
895
  /* @__PURE__ */ r(st, { children: [
879
- /* @__PURE__ */ r(ke, { className: "flex items-center gap-2", children: [
896
+ /* @__PURE__ */ r(Ae, { className: "flex items-center gap-2", children: [
880
897
  /* @__PURE__ */ e("span", { children: "Save Visual As" }),
881
898
  h.badgeType !== "local" && /* @__PURE__ */ e(
882
- oa,
899
+ sa,
883
900
  {
884
901
  type: h.badgeType,
885
902
  showLabel: !0,
@@ -891,7 +908,7 @@ function Aa({
891
908
  ] }),
892
909
  /* @__PURE__ */ r("div", { className: "grid gap-4 py-4", children: [
893
910
  /* @__PURE__ */ r("div", { className: "grid gap-2", children: [
894
- /* @__PURE__ */ e(Ne, { htmlFor: "name", children: "Name" }),
911
+ /* @__PURE__ */ e(Se, { htmlFor: "name", children: "Name" }),
895
912
  /* @__PURE__ */ e(
896
913
  Qe,
897
914
  {
@@ -904,7 +921,7 @@ function Aa({
904
921
  )
905
922
  ] }),
906
923
  /* @__PURE__ */ r("div", { className: "grid gap-2", children: [
907
- /* @__PURE__ */ e(Ne, { htmlFor: "description", children: "Description (optional)" }),
924
+ /* @__PURE__ */ e(Se, { htmlFor: "description", children: "Description (optional)" }),
908
925
  /* @__PURE__ */ e(
909
926
  rr,
910
927
  {
@@ -975,7 +992,7 @@ function Ea() {
975
992
  z.error(T);
976
993
  return;
977
994
  }
978
- const I = C.cards.length === 1 ? {
995
+ const F = C.cards.length === 1 ? {
979
996
  ...C,
980
997
  cards: C.cards.map((R) => ({
981
998
  ...R,
@@ -987,8 +1004,8 @@ function Ea() {
987
1004
  let R = null;
988
1005
  if (f.saveToCurrentDashboard)
989
1006
  try {
990
- R = await N(I, {
991
- previousFrame: Xe(h, I.id)
1007
+ R = await N(F, {
1008
+ previousFrame: Xe(h, F.id)
992
1009
  });
993
1010
  } catch (W) {
994
1011
  console.error(
@@ -999,26 +1016,26 @@ function Ea() {
999
1016
  );
1000
1017
  return;
1001
1018
  }
1002
- s(f.saveToCurrentDashboard), c(I), m(R);
1019
+ s(f.saveToCurrentDashboard), c(F), m(R);
1003
1020
  const V = {
1004
1021
  title: f.name,
1005
1022
  description: f.description,
1006
- frameObject: I,
1023
+ frameObject: F,
1007
1024
  // Card title synced for single-card frames
1008
1025
  isPrivate: !1
1009
1026
  };
1010
1027
  k.mutate(V);
1011
1028
  } else if (f.saveToCurrentDashboard) {
1012
1029
  const R = {
1013
- ...I,
1030
+ ...F,
1014
1031
  // Card title already synced
1015
1032
  id: pt(),
1016
1033
  visualId: void 0
1017
1034
  // Explicitly no visualId for local visuals
1018
1035
  };
1019
1036
  try {
1020
- const V = await N(I, {
1021
- previousFrame: Xe(h, I.id)
1037
+ const V = await N(F, {
1038
+ previousFrame: Xe(h, F.id)
1022
1039
  });
1023
1040
  x(g, R, {
1024
1041
  position: "end",
@@ -1036,8 +1053,8 @@ function Ea() {
1036
1053
  isSaving: k.isPending
1037
1054
  };
1038
1055
  }
1039
- function Vn(t = {}) {
1040
- const a = be((I) => I.frame), i = be((I) => I.editorContext), s = or((I) => I.selectedVisual), n = M((I) => I.selectedFrameId), c = M((I) => I.selectedSheetId), u = M((I) => I.dashboard), { setIsVisualEditing: m, updateFrame: l } = xe(), [d, o] = A(!1), [g, h] = A("both"), p = Dt(), y = (i == null ? void 0 : i.type) === "documentSection", x = !!(a != null && a.visualId || s != null && s.id), D = !!(a != null && a.visualId && n), E = x && !D, {
1056
+ function Rn(t = {}) {
1057
+ const a = be((F) => F.frame), i = be((F) => F.editorContext), s = or((F) => F.selectedVisual), n = M((F) => F.selectedFrameId), c = M((F) => F.selectedSheetId), u = M((F) => F.dashboard), { setIsVisualEditing: m, updateFrame: l } = xe(), [d, o] = A(!1), [g, h] = A("both"), p = Dt(), y = (i == null ? void 0 : i.type) === "documentSection", x = !!(a != null && a.visualId || s != null && s.id), D = !!(a != null && a.visualId && n), E = x && !D, {
1041
1058
  saveAsDialogOpen: N,
1042
1059
  setSaveAsDialogOpen: b,
1043
1060
  handleSaveAs: S,
@@ -1057,13 +1074,13 @@ function Vn(t = {}) {
1057
1074
  }
1058
1075
  if (d) return;
1059
1076
  o(!0);
1060
- const I = C(), R = Bt(I);
1077
+ const F = C(), R = Bt(F);
1061
1078
  if (R) {
1062
1079
  o(!1), z.error(R);
1063
1080
  return;
1064
1081
  }
1065
1082
  const V = {
1066
- ...I,
1083
+ ...F,
1067
1084
  visualId: void 0
1068
1085
  }, W = Xe(u, V.id);
1069
1086
  try {
@@ -1082,14 +1099,14 @@ function Vn(t = {}) {
1082
1099
  setTimeout(() => {
1083
1100
  o(!1), z.success("Changes applied. Visual is now local to this dashboard"), m(!1);
1084
1101
  }, 300);
1085
- }, F = (I) => {
1086
- h(I), b(!0);
1102
+ }, I = (F) => {
1103
+ h(F), b(!0);
1087
1104
  };
1088
1105
  return /* @__PURE__ */ r(G, { children: [
1089
1106
  /* @__PURE__ */ r("div", { className: "inline-flex items-center overflow-hidden rounded-control", children: [
1090
1107
  !x && /* @__PURE__ */ e(ft, { className: "!rounded-none", variant: "default" }),
1091
- x && E && /* @__PURE__ */ e(ia, { className: "!rounded-none", variant: "default" }),
1092
- x && D && /* @__PURE__ */ e(la, { className: "!rounded-none" }),
1108
+ x && E && /* @__PURE__ */ e(oa, { className: "!rounded-none", variant: "default" }),
1109
+ x && D && /* @__PURE__ */ e(ia, { className: "!rounded-none" }),
1093
1110
  /* @__PURE__ */ r(Oe, { modal: !1, children: [
1094
1111
  /* @__PURE__ */ e(ze, { asChild: !0, children: /* @__PURE__ */ e(
1095
1112
  B,
@@ -1125,7 +1142,7 @@ function Vn(t = {}) {
1125
1142
  /* @__PURE__ */ r(
1126
1143
  H,
1127
1144
  {
1128
- onClick: () => F("local"),
1145
+ onClick: () => I("local"),
1129
1146
  disabled: f,
1130
1147
  children: [
1131
1148
  /* @__PURE__ */ e(ge, { className: "h-3.5 w-3.5" }),
@@ -1136,10 +1153,10 @@ function Vn(t = {}) {
1136
1153
  /* @__PURE__ */ r(
1137
1154
  H,
1138
1155
  {
1139
- onClick: () => F("library"),
1156
+ onClick: () => I("library"),
1140
1157
  disabled: f,
1141
1158
  children: [
1142
- /* @__PURE__ */ e(ca, { className: "h-3.5 w-3.5" }),
1159
+ /* @__PURE__ */ e(la, { className: "h-3.5 w-3.5" }),
1143
1160
  "Save as Library Visual"
1144
1161
  ]
1145
1162
  }
@@ -1147,10 +1164,10 @@ function Vn(t = {}) {
1147
1164
  /* @__PURE__ */ r(
1148
1165
  H,
1149
1166
  {
1150
- onClick: () => F("both"),
1167
+ onClick: () => I("both"),
1151
1168
  disabled: f,
1152
1169
  children: [
1153
- /* @__PURE__ */ e(da, { className: "h-3.5 w-3.5" }),
1170
+ /* @__PURE__ */ e(ca, { className: "h-3.5 w-3.5" }),
1154
1171
  "Save Copy as Linked Visual"
1155
1172
  ]
1156
1173
  }
@@ -1165,8 +1182,8 @@ function Vn(t = {}) {
1165
1182
  Aa,
1166
1183
  {
1167
1184
  open: N,
1168
- onOpenChange: (I) => {
1169
- f || b(I);
1185
+ onOpenChange: (F) => {
1186
+ f || b(F);
1170
1187
  },
1171
1188
  isLibraryVisual: k,
1172
1189
  currentVisualName: P,
@@ -1177,7 +1194,7 @@ function Vn(t = {}) {
1177
1194
  )
1178
1195
  ] });
1179
1196
  }
1180
- function Rn({ className: t }) {
1197
+ function Un({ className: t }) {
1181
1198
  const a = be((d) => d.isDevMode), i = M((d) => d.isVisualEditing), { setIsDevMode: s } = Tt(), { config: n } = Wt(ir).tokenProps, c = (n == null ? void 0 : n.showAdvancedMode) !== !1;
1182
1199
  if (!i || !c)
1183
1200
  return null;
@@ -1200,7 +1217,7 @@ function Rn({ className: t }) {
1200
1217
  }
1201
1218
  );
1202
1219
  }
1203
- function Un({
1220
+ function Pn({
1204
1221
  open: t,
1205
1222
  onOpenChange: a,
1206
1223
  onSave: i,
@@ -1240,12 +1257,12 @@ function Un({
1240
1257
  ] })
1241
1258
  ] }) });
1242
1259
  }
1243
- const Fa = 1e4, Ia = 15e3, La = 3e4, Ba = 3e4, Ta = 12e4, vt = 2 * 60 * 60 * 1e3;
1260
+ const Ia = 1e4, Fa = 15e3, La = 3e4, Ba = 3e4, Ta = 12e4, vt = 2 * 60 * 60 * 1e3;
1244
1261
  function Va(t) {
1245
1262
  const a = Date.now() - t.getTime();
1246
- return a < Ba ? Fa : a < Ta ? Ia : La;
1263
+ return a < Ba ? Ia : a < Ta ? Fa : La;
1247
1264
  }
1248
- function Pn() {
1265
+ function Mn() {
1249
1266
  const { authToken: t, tokenProps: a } = $e(), i = he((h) => h.activeExports), [s, n] = A(
1250
1267
  typeof document < "u" ? !document.hidden : !0
1251
1268
  ), c = me(null), u = me(!1), m = me(void 0), l = a == null ? void 0 : a.apiServiceUrl, d = t == null ? void 0 : t.accessToken, o = q(() => {
@@ -1359,7 +1376,7 @@ function Pn() {
1359
1376
  inProgressCount: o().length
1360
1377
  };
1361
1378
  }
1362
- function Mn() {
1379
+ function On() {
1363
1380
  const { authToken: t, tokenProps: a } = $e(), i = he((m) => m.activeExports), { addExport: s } = At(), n = me(!1), c = a == null ? void 0 : a.apiServiceUrl, u = t == null ? void 0 : t.accessToken;
1364
1381
  Z(() => {
1365
1382
  if (n.current || !c || !u) return;
@@ -1643,7 +1660,7 @@ function Pa() {
1643
1660
  )) }) })
1644
1661
  ] });
1645
1662
  }
1646
- function On({
1663
+ function zn({
1647
1664
  variant: t
1648
1665
  }) {
1649
1666
  const a = he((l) => l.activeExports), i = fr(), s = a.size > 0, n = Array.from(a.values()).some(
@@ -1706,16 +1723,16 @@ function Oa({
1706
1723
  // create and make consumers use `forceClose()` from a dedicated
1707
1724
  // button.
1708
1725
  dismissMode: s ? "passive" : "explicit-only"
1709
- }), h = M((C) => C.dashboard), { setDashboardControlsModel: p } = xe(), { participants: y } = br(aa(h)), x = Array.from(
1726
+ }), h = M((C) => C.dashboard), { setDashboardControlsModel: p } = xe(), { participants: y } = br(Jr(h)), x = Array.from(
1710
1727
  new Map(
1711
1728
  y.flatMap(
1712
1729
  (C) => C.fieldChoices.map((T) => {
1713
- var F;
1730
+ var I;
1714
1731
  return [
1715
1732
  T.value,
1716
1733
  {
1717
1734
  option: T,
1718
- target: (F = C.fieldTargetMap) == null ? void 0 : F[T.value]
1735
+ target: (I = C.fieldTargetMap) == null ? void 0 : I[T.value]
1719
1736
  }
1720
1737
  ];
1721
1738
  })
@@ -1725,25 +1742,25 @@ function Oa({
1725
1742
  new Map(
1726
1743
  y.flatMap(
1727
1744
  (C) => C.metricChoices.map((T) => {
1728
- var F;
1745
+ var I;
1729
1746
  return [
1730
1747
  T.value,
1731
1748
  {
1732
1749
  option: T,
1733
- target: (F = C.metricTargetMap) == null ? void 0 : F[T.value]
1750
+ target: (I = C.metricTargetMap) == null ? void 0 : I[T.value]
1734
1751
  }
1735
1752
  ];
1736
1753
  })
1737
1754
  )
1738
1755
  ).values()
1739
- ), E = na({
1756
+ ), E = ea({
1740
1757
  ...h || {},
1741
1758
  controls: []
1742
- }), N = xr(h), b = (C, T, F) => {
1759
+ }), N = xr(h), b = (C, T, I) => {
1743
1760
  p(
1744
1761
  C,
1745
1762
  T,
1746
- Ma(F)
1763
+ Ma(I)
1747
1764
  );
1748
1765
  }, S = q(() => {
1749
1766
  if (c) {
@@ -1791,8 +1808,8 @@ function Oa({
1791
1808
  children: f
1792
1809
  }
1793
1810
  )
1794
- ] }) : /* @__PURE__ */ e(Se, { open: o, onOpenChange: m, children: /* @__PURE__ */ r(
1795
- De,
1811
+ ] }) : /* @__PURE__ */ e(De, { open: o, onOpenChange: m, children: /* @__PURE__ */ r(
1812
+ ke,
1796
1813
  {
1797
1814
  className: "flex max-h-[88vh] flex-col overflow-hidden sm:max-w-[600px]",
1798
1815
  onEscapeKeyDown: d,
@@ -1803,7 +1820,7 @@ function Oa({
1803
1820
  {
1804
1821
  className: l ? "space-y-0" : void 0,
1805
1822
  children: [
1806
- /* @__PURE__ */ e(ke, { className: "text-[15px]", children: P }),
1823
+ /* @__PURE__ */ e(Ae, { className: "text-[15px]", children: P }),
1807
1824
  /* @__PURE__ */ e(
1808
1825
  ot,
1809
1826
  {
@@ -1871,7 +1888,7 @@ function _a({
1871
1888
  }
1872
1889
  d(!1);
1873
1890
  }, [s, n, d]), k = q(
1874
- (C, T, F) => {
1891
+ (C, T, I) => {
1875
1892
  !y || !(p != null && p.document) || h(
1876
1893
  Ha({
1877
1894
  allInputs: o.inputs || [],
@@ -1879,7 +1896,7 @@ function _a({
1879
1896
  currentDocumentInputs: x,
1880
1897
  nextControls: C,
1881
1898
  nextDefaultValues: T,
1882
- change: F
1899
+ change: I
1883
1900
  })
1884
1901
  );
1885
1902
  },
@@ -1891,15 +1908,15 @@ function _a({
1891
1908
  h
1892
1909
  ]
1893
1910
  );
1894
- return !y || !(p != null && p.document) ? null : /* @__PURE__ */ e(Se, { open: l, onOpenChange: c, children: /* @__PURE__ */ r(
1895
- De,
1911
+ return !y || !(p != null && p.document) ? null : /* @__PURE__ */ e(De, { open: l, onOpenChange: c, children: /* @__PURE__ */ r(
1912
+ ke,
1896
1913
  {
1897
1914
  className: "flex max-h-[88vh] flex-col overflow-hidden sm:max-w-[600px]",
1898
1915
  onEscapeKeyDown: m,
1899
1916
  onPointerDownOutside: m,
1900
1917
  children: [
1901
1918
  /* @__PURE__ */ r(st, { className: u ? "space-y-0" : void 0, children: [
1902
- /* @__PURE__ */ e(ke, { className: "text-[15px]", children: u ? "Add document control" : "Document Controls" }),
1919
+ /* @__PURE__ */ e(Ae, { className: "text-[15px]", children: u ? "Add document control" : "Document Controls" }),
1903
1920
  /* @__PURE__ */ e(
1904
1921
  ot,
1905
1922
  {
@@ -2087,7 +2104,7 @@ function Ga({
2087
2104
  );
2088
2105
  }
2089
2106
  function qa() {
2090
- ua();
2107
+ da();
2091
2108
  const t = M((l) => l.selectedSheetId), a = M((l) => l.selectedFrameId), i = M((l) => l.dashboard), s = M((l) => l.actions.getSelectedFrame), { setSelectedFrameId: n } = xe(), { setCard: c } = Tt(), u = be((l) => l.card.dataSource);
2092
2109
  return Z(() => {
2093
2110
  var d, o;
@@ -2108,19 +2125,19 @@ function Ka() {
2108
2125
  const t = M((l) => l.dashboard), a = M(
2109
2126
  (l) => l.semanticExecutionPayload
2110
2127
  ), i = M((l) => l.actions.addFilter), { hasEntities: s } = qa(), { isLoading: n } = Sr(), c = J(
2111
- () => Dr(t, a),
2128
+ () => ta(t, a),
2112
2129
  [t, a]
2113
- ), m = !kr(t.filters) && c.hasEligibleCards && !n;
2130
+ ), m = !ra(t.filters) && c.hasEligibleCards && !n;
2114
2131
  return /* @__PURE__ */ r("div", { className: "flex h-[520px] w-[400px] flex-col", children: [
2115
2132
  m && /* @__PURE__ */ e("div", { className: "border-b border-border/60 p-2", children: /* @__PURE__ */ r(
2116
2133
  "button",
2117
2134
  {
2118
2135
  type: "button",
2119
- onClick: () => i(Er()),
2136
+ onClick: () => i(aa()),
2120
2137
  title: `Applies to ${c.eligibleCardCount} of ${c.totalCardCount} date-aware cards`,
2121
2138
  className: "flex w-full items-start gap-2 rounded-[4px] 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",
2122
2139
  children: [
2123
- /* @__PURE__ */ e(Ar, { className: "mt-0.5 h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
2140
+ /* @__PURE__ */ e(fa, { className: "mt-0.5 h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
2124
2141
  /* @__PURE__ */ r("span", { className: "flex min-w-0 flex-col", children: [
2125
2142
  /* @__PURE__ */ e("span", { className: "text-[12px] font-medium text-foreground", children: "Add global date filter" }),
2126
2143
  /* @__PURE__ */ e("span", { className: "text-[11px] leading-[1.4] text-muted-foreground", children: "One date range across all date-aware cards." })
@@ -2129,15 +2146,15 @@ function Ka() {
2129
2146
  }
2130
2147
  ) }),
2131
2148
  !s && /* @__PURE__ */ r("div", { className: "flex flex-1 flex-col items-center justify-center px-6 py-8 text-center", children: [
2132
- /* @__PURE__ */ e(Fr, { className: "mb-3 h-10 w-10 text-muted-foreground/50" }),
2149
+ /* @__PURE__ */ e(Dr, { className: "mb-3 h-10 w-10 text-muted-foreground/50" }),
2133
2150
  /* @__PURE__ */ e("h3", { className: "mb-1 text-[13px] font-medium text-foreground", children: "No fields configured" }),
2134
2151
  /* @__PURE__ */ e("p", { className: "text-[11px] text-muted-foreground", children: "Configure a data source for this card to enable filtering." })
2135
2152
  ] }),
2136
- s && /* @__PURE__ */ e("div", { className: "flex flex-1 overflow-hidden", children: /* @__PURE__ */ e(Ir, { context: "filter" }) })
2153
+ s && /* @__PURE__ */ e("div", { className: "flex flex-1 overflow-hidden", children: /* @__PURE__ */ e(kr, { context: "filter" }) })
2137
2154
  ] });
2138
2155
  }
2139
2156
  const yt = !1;
2140
- function Xa({
2157
+ function Qa({
2141
2158
  onAddFilter: t,
2142
2159
  onAddControl: a,
2143
2160
  onManageControls: i,
@@ -2173,7 +2190,7 @@ function Xa({
2173
2190
  /* @__PURE__ */ e(
2174
2191
  Ke,
2175
2192
  {
2176
- icon: Ft,
2193
+ icon: It,
2177
2194
  label: "Manage controls",
2178
2195
  onClick: () => {
2179
2196
  i(), s();
@@ -2186,7 +2203,7 @@ function Xa({
2186
2203
  /* @__PURE__ */ e("p", { className: "px-1 text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Display" }),
2187
2204
  yt,
2188
2205
  /* @__PURE__ */ e(
2189
- Qa,
2206
+ Xa,
2190
2207
  {
2191
2208
  id: "filter-display-wrap",
2192
2209
  label: "Wrap to multiple lines",
@@ -2216,7 +2233,7 @@ function Ke({
2216
2233
  }
2217
2234
  );
2218
2235
  }
2219
- function Qa({
2236
+ function Xa({
2220
2237
  id: t,
2221
2238
  label: a,
2222
2239
  checked: i,
@@ -2225,7 +2242,7 @@ function Qa({
2225
2242
  return /* @__PURE__ */ r("div", { className: "flex items-center gap-2 rounded-[4px] px-1 py-1 transition-colors hover:bg-muted/40", children: [
2226
2243
  /* @__PURE__ */ e(nt, { id: t, checked: i, onCheckedChange: s }),
2227
2244
  /* @__PURE__ */ e(
2228
- Ne,
2245
+ Se,
2229
2246
  {
2230
2247
  htmlFor: t,
2231
2248
  className: "cursor-pointer text-[12px] font-normal leading-[1.3]",
@@ -2234,7 +2251,7 @@ function Qa({
2234
2251
  )
2235
2252
  ] });
2236
2253
  }
2237
- function zn({
2254
+ function _n({
2238
2255
  size: t,
2239
2256
  className: a,
2240
2257
  primaryButtonClassName: i,
@@ -2243,9 +2260,9 @@ function zn({
2243
2260
  settingsContentClassName: c
2244
2261
  }) {
2245
2262
  var P;
2246
- const [u, m] = A(null), l = M((f) => f.dashboard), d = M((f) => f.selectedSheetId), o = M((f) => f.showFilters), g = Lr((f) => f.setPanelOpen), h = M((f) => f.actions), { setDocumentInspectorTab: p, setShowFilters: y } = h, x = (P = l.sheets) == null ? void 0 : P.find(
2263
+ const [u, m] = A(null), l = M((f) => f.dashboard), d = M((f) => f.selectedSheetId), o = M((f) => f.showFilters), g = Ar((f) => f.setPanelOpen), h = M((f) => f.actions), { setDocumentInspectorTab: p, setShowFilters: y } = h, x = (P = l.sheets) == null ? void 0 : P.find(
2247
2264
  (f) => f.id === d
2248
- ), D = sa(x), E = q((f) => {
2265
+ ), D = na(x), E = q((f) => {
2249
2266
  window.setTimeout(() => {
2250
2267
  m(f);
2251
2268
  }, 0);
@@ -2279,7 +2296,7 @@ function zn({
2279
2296
  onShowFiltersChange: N,
2280
2297
  pickerContent: /* @__PURE__ */ e(Ka, {}),
2281
2298
  settingsContent: (f) => /* @__PURE__ */ e(
2282
- Xa,
2299
+ Qa,
2283
2300
  {
2284
2301
  onAddFilter: b,
2285
2302
  onAddControl: S,
@@ -2361,7 +2378,7 @@ function en(t) {
2361
2378
  return u < 5 ? `${u}w ago` : `${Math.round(c / 30)}mo ago`;
2362
2379
  }
2363
2380
  function tn(t) {
2364
- return t.scheduleExpr ? ma(
2381
+ return t.scheduleExpr ? ha(
2365
2382
  t.scheduleExpr,
2366
2383
  t.timezone || "UTC"
2367
2384
  ) ?? "Invalid schedule" : "On demand";
@@ -2432,7 +2449,7 @@ function sn({
2432
2449
  contentKind: N,
2433
2450
  hideHeader: b = !1
2434
2451
  }) {
2435
- const S = t.length, k = t.filter((F) => F.status === "ACTIVE").length, P = N === "reports" ? S === 1 ? "report" : "reports" : N === "briefings" ? S === 1 ? "briefing" : "briefings" : S === 1 ? "item" : "items", f = t.find((F) => F.hasActiveRun) ?? null, C = N ?? "reports & briefings", T = i === "dashboard" ? a : `Project ${C}`;
2452
+ const S = t.length, k = t.filter((I) => I.status === "ACTIVE").length, P = N === "reports" ? S === 1 ? "report" : "reports" : N === "briefings" ? S === 1 ? "briefing" : "briefings" : S === 1 ? "item" : "items", f = t.find((I) => I.hasActiveRun) ?? null, C = N ?? "reports & briefings", T = i === "dashboard" ? a : `Project ${C}`;
2436
2453
  return /* @__PURE__ */ r(
2437
2454
  "section",
2438
2455
  {
@@ -2549,18 +2566,18 @@ function sn({
2549
2566
  contentKind: N
2550
2567
  }
2551
2568
  ) : null,
2552
- t.map((F) => /* @__PURE__ */ e(
2569
+ t.map((I) => /* @__PURE__ */ e(
2553
2570
  cn,
2554
2571
  {
2555
- briefing: F,
2556
- isOpening: x === F.id,
2557
- isBusy: D === F.id,
2558
- onOpen: () => m(F.id),
2559
- onRunNow: () => h(F),
2560
- onTogglePause: () => p(F),
2561
- onDelete: () => y(F)
2572
+ briefing: I,
2573
+ isOpening: x === I.id,
2574
+ isBusy: D === I.id,
2575
+ onOpen: () => m(I.id),
2576
+ onRunNow: () => h(I),
2577
+ onTogglePause: () => p(I),
2578
+ onDelete: () => y(I)
2562
2579
  },
2563
- F.id
2580
+ I.id
2564
2581
  ))
2565
2582
  ] }),
2566
2583
  E ? /* @__PURE__ */ e("div", { className: "border-t border-border px-4 py-2.5", children: /* @__PURE__ */ r(
@@ -2570,7 +2587,7 @@ function sn({
2570
2587
  className: K(Ot, "h-6 px-1 text-[11px]"),
2571
2588
  children: [
2572
2589
  "Manage all reports & briefings",
2573
- /* @__PURE__ */ e(fa, { className: "h-3 w-3" })
2590
+ /* @__PURE__ */ e(pa, { className: "h-3 w-3" })
2574
2591
  ]
2575
2592
  }
2576
2593
  ) }) : null
@@ -2834,7 +2851,7 @@ function cn({
2834
2851
  /* @__PURE__ */ e("span", { className: "text-border", children: "·" }),
2835
2852
  /* @__PURE__ */ e("span", { children: an(t) }),
2836
2853
  /* @__PURE__ */ e("span", { className: "text-border", children: "·" }),
2837
- /* @__PURE__ */ e(Br, { className: "h-3 w-3" }),
2854
+ /* @__PURE__ */ e(Er, { className: "h-3 w-3" }),
2838
2855
  /* @__PURE__ */ e("span", { className: "truncate", children: tn(t) }),
2839
2856
  t.lastRunAt ? /* @__PURE__ */ r(G, { children: [
2840
2857
  /* @__PURE__ */ e("span", { className: "text-border", children: "·" }),
@@ -2872,7 +2889,7 @@ function cn({
2872
2889
  ) }),
2873
2890
  /* @__PURE__ */ r(_e, { align: "end", className: "w-44", children: [
2874
2891
  /* @__PURE__ */ r(H, { onClick: s, children: [
2875
- /* @__PURE__ */ e(Ft, { className: "h-3.5 w-3.5" }),
2892
+ /* @__PURE__ */ e(It, { className: "h-3.5 w-3.5" }),
2876
2893
  "Edit ",
2877
2894
  h.noun
2878
2895
  ] }),
@@ -2883,7 +2900,7 @@ function cn({
2883
2900
  y.preventDefault(), n();
2884
2901
  },
2885
2902
  children: [
2886
- /* @__PURE__ */ e(Tr, { className: "h-3.5 w-3.5" }),
2903
+ /* @__PURE__ */ e(Ir, { className: "h-3.5 w-3.5" }),
2887
2904
  "Run now"
2888
2905
  ]
2889
2906
  }
@@ -2895,10 +2912,10 @@ function cn({
2895
2912
  y.preventDefault(), c();
2896
2913
  },
2897
2914
  children: m ? /* @__PURE__ */ r(G, { children: [
2898
- /* @__PURE__ */ e(Vr, { className: "h-3.5 w-3.5" }),
2915
+ /* @__PURE__ */ e(Fr, { className: "h-3.5 w-3.5" }),
2899
2916
  "Resume"
2900
2917
  ] }) : /* @__PURE__ */ r(G, { children: [
2901
- /* @__PURE__ */ e(Rr, { className: "h-3.5 w-3.5" }),
2918
+ /* @__PURE__ */ e(Lr, { className: "h-3.5 w-3.5" }),
2902
2919
  "Pause"
2903
2920
  ] })
2904
2921
  }
@@ -2951,12 +2968,12 @@ async function fn(t) {
2951
2968
  return i;
2952
2969
  }
2953
2970
  const gn = {
2954
- listBriefings: jr,
2955
- getBriefing: $r,
2956
- pauseBriefing: _r,
2957
- resumeBriefing: zr,
2958
- deleteBriefing: Or,
2959
- runBriefingNow: Mr
2971
+ listBriefings: Or,
2972
+ getBriefing: Mr,
2973
+ pauseBriefing: Pr,
2974
+ resumeBriefing: Ur,
2975
+ deleteBriefing: Rr,
2976
+ runBriefingNow: Vr
2960
2977
  };
2961
2978
  function bn({
2962
2979
  briefingId: t,
@@ -2967,7 +2984,7 @@ function bn({
2967
2984
  onTimeout: c,
2968
2985
  onExpand: u
2969
2986
  }) {
2970
- const [m, l] = A(a), { startRun: d } = Yr({
2987
+ const [m, l] = A(a), { startRun: d } = qr({
2971
2988
  apiServiceUrl: i,
2972
2989
  token: s,
2973
2990
  intervalMs: dn,
@@ -2976,7 +2993,7 @@ function bn({
2976
2993
  apiServiceUrl: g,
2977
2994
  token: h,
2978
2995
  runId: p
2979
- }) => Zr(g, h, t, p),
2996
+ }) => Kr(g, h, t, p),
2980
2997
  onRun: (g) => {
2981
2998
  l(g);
2982
2999
  },
@@ -2988,11 +3005,11 @@ function bn({
2988
3005
  }
2989
3006
  }), o = me(!1);
2990
3007
  return Z(() => {
2991
- o.current || (o.current = !0, Jr(a.status) ? d(a) : ea(a.status) && n(a));
2992
- }, [a, n, d]), /* @__PURE__ */ e(ta, { run: m, onExpand: u });
3008
+ o.current || (o.current = !0, Qr(a.status) ? d(a) : Xr(a.status) && n(a));
3009
+ }, [a, n, d]), /* @__PURE__ */ e(Yr, { run: m, onExpand: u });
2993
3010
  }
2994
- function _n(t) {
2995
- return /* @__PURE__ */ e(Ur, { children: /* @__PURE__ */ e(xn, { ...t }) });
3011
+ function $n(t) {
3012
+ return /* @__PURE__ */ e(Br, { children: /* @__PURE__ */ e(xn, { ...t }) });
2996
3013
  }
2997
3014
  function xn({
2998
3015
  dashboardId: t,
@@ -3008,26 +3025,26 @@ function xn({
3008
3025
  workflowIntent: o,
3009
3026
  client: g
3010
3027
  }) {
3011
- const { authToken: h, tokenProps: p } = $e(), y = Pr(), x = !o || y.canCreate && (o === "scheduled_report" || y.analyticalBriefingsEnabled), [D, E] = A(!1), N = m ?? D, b = (w) => {
3028
+ const { authToken: h, tokenProps: p } = $e(), y = Tr(), x = !o || y.canCreate && (o === "scheduled_report" || y.analyticalBriefingsEnabled), [D, E] = A(!1), N = m ?? D, b = (w) => {
3012
3029
  m === void 0 && E(w), l == null || l(w);
3013
3030
  }, [S, k] = A(
3014
3031
  o ? "author" : "list"
3015
3032
  ), [P, f] = A(
3016
3033
  o ?? "analytical_briefing"
3017
- ), [C, T] = A("dashboard"), [F, I] = A(
3034
+ ), [C, T] = A("dashboard"), [I, F] = A(
3018
3035
  []
3019
- ), [R, V] = A(null), W = o && !x && !R ? "list" : S, [ae, ne] = A(!1), [We, ve] = A(null), [He, Q] = A(null), [_, te] = A(
3036
+ ), [R, V] = A(null), W = o && !x && !R ? "list" : S, [ae, ne] = A(!1), [We, ye] = A(null), [He, X] = A(null), [_, te] = A(
3020
3037
  null
3021
- ), [le, ce] = A(null), ye = me(null), Ee = me(N);
3038
+ ), [le, ce] = A(null), Ce = me(null), Ee = me(N);
3022
3039
  Z(() => {
3023
3040
  const w = N && !Ee.current;
3024
3041
  Ee.current = N, !(!w || !o) && (V(null), T("dashboard"), f(o), k("author"), ce(null));
3025
3042
  }, [N, o]);
3026
3043
  const [de, pe] = A(
3027
3044
  null
3028
- ), [Y, Ce] = A(null), $ = i ?? (p == null ? void 0 : p.apiServiceUrl), j = s ?? (h == null ? void 0 : h.accessToken), se = J(() => ({ ...gn, ...g }), [g]), fe = hn(a), Fe = J(() => {
3045
+ ), [Y, we] = A(null), $ = i ?? (p == null ? void 0 : p.apiServiceUrl), j = s ?? (h == null ? void 0 : h.accessToken), se = J(() => ({ ...gn, ...g }), [g]), fe = hn(a), Ie = J(() => {
3029
3046
  const w = pn(
3030
- F,
3047
+ I,
3031
3048
  C,
3032
3049
  t
3033
3050
  );
@@ -3035,9 +3052,9 @@ function xn({
3035
3052
  return w;
3036
3053
  const U = o === "scheduled_report" ? "report" : "briefing";
3037
3054
  return w.filter(
3038
- (Ie) => oe(Ie).noun === U
3055
+ (Fe) => oe(Fe).noun === U
3039
3056
  );
3040
- }, [t, F, C, o]), Ge = J(() => C === "dashboard" ? {
3057
+ }, [t, I, C, o]), Ge = J(() => C === "dashboard" ? {
3041
3058
  source: { type: "dashboard", dashboardId: t },
3042
3059
  label: fe,
3043
3060
  detail: mn(fe)
@@ -3045,15 +3062,15 @@ function xn({
3045
3062
  source: { type: "project" },
3046
3063
  label: "This project",
3047
3064
  detail: "Use any data in this project."
3048
- }, [t, fe, C]), we = !!($ && j), ue = pa({
3065
+ }, [t, fe, C]), Ne = !!($ && j), ue = ma({
3049
3066
  canCreate: y.canCreate,
3050
3067
  analyticalBriefingsEnabled: y.analyticalBriefingsEnabled,
3051
3068
  scheduledReportAvailable: C === "dashboard"
3052
- }), X = q(async () => {
3069
+ }), Q = q(async () => {
3053
3070
  if (!(!$ || !j)) {
3054
3071
  ne(!0), ce(null);
3055
3072
  try {
3056
- I(
3073
+ F(
3057
3074
  await fn({
3058
3075
  apiClient: se,
3059
3076
  apiServiceUrl: $,
@@ -3070,15 +3087,15 @@ function xn({
3070
3087
  }
3071
3088
  }, [se, $, j]);
3072
3089
  Z(() => {
3073
- !N || W !== "list" || !we || X();
3074
- }, [we, W, X, N]);
3090
+ !N || W !== "list" || !Ne || Q();
3091
+ }, [Ne, W, Q, N]);
3075
3092
  const v = () => {
3076
3093
  V(null), T("dashboard"), k("list"), b(!0);
3077
3094
  }, L = (w) => {
3078
3095
  V(null), f(w), k("author");
3079
3096
  }, O = async (w) => {
3080
3097
  if (!(!$ || !j)) {
3081
- ve(w), ce(null);
3098
+ ye(w), ce(null);
3082
3099
  try {
3083
3100
  const U = await se.getBriefing(
3084
3101
  $,
@@ -3091,31 +3108,31 @@ function xn({
3091
3108
  U instanceof Error ? U.message : "Could not open briefing."
3092
3109
  );
3093
3110
  } finally {
3094
- ve(null);
3111
+ ye(null);
3095
3112
  }
3096
3113
  }
3097
3114
  }, re = async (w) => {
3098
3115
  if (!(!$ || !j)) {
3099
- Q(w.id);
3116
+ X(w.id);
3100
3117
  try {
3101
3118
  await se.runBriefingNow(
3102
3119
  $,
3103
3120
  j,
3104
3121
  w.id,
3105
3122
  { requestId: vn() }
3106
- ), X();
3123
+ ), Q();
3107
3124
  } catch (U) {
3108
3125
  z.error(
3109
3126
  U instanceof Error ? U.message : "Could not start the run."
3110
3127
  );
3111
3128
  } finally {
3112
- Q(null);
3129
+ X(null);
3113
3130
  }
3114
3131
  }
3115
3132
  }, ie = async (w) => {
3116
3133
  if (!$ || !j) return;
3117
- const { noun: U } = oe(w), Ie = U === "report" ? "Report" : "Briefing";
3118
- Q(w.id);
3134
+ const { noun: U } = oe(w), Fe = U === "report" ? "Report" : "Briefing";
3135
+ X(w.id);
3119
3136
  try {
3120
3137
  const Le = w.status === "PAUSED" ? await se.resumeBriefing(
3121
3138
  $,
@@ -3127,19 +3144,19 @@ function xn({
3127
3144
  w.id
3128
3145
  );
3129
3146
  z.success(
3130
- Le.briefing.status === "PAUSED" ? `${Ie} paused` : `${Ie} resumed`
3131
- ), X();
3147
+ Le.briefing.status === "PAUSED" ? `${Fe} paused` : `${Fe} resumed`
3148
+ ), Q();
3132
3149
  } catch (Le) {
3133
3150
  z.error(
3134
3151
  Le instanceof Error ? Le.message : `Could not update the ${U} status.`
3135
3152
  );
3136
3153
  } finally {
3137
- Q(null);
3154
+ X(null);
3138
3155
  }
3139
3156
  }, _t = async () => {
3140
3157
  if (!_ || !$ || !j) return;
3141
3158
  const w = _;
3142
- Q(w.id);
3159
+ X(w.id);
3143
3160
  try {
3144
3161
  await se.deleteBriefing(
3145
3162
  $,
@@ -3147,40 +3164,40 @@ function xn({
3147
3164
  w.id
3148
3165
  );
3149
3166
  const { noun: U } = oe(w);
3150
- z.success(`${U === "report" ? "Report" : "Briefing"} deleted`), te(null), X();
3167
+ z.success(`${U === "report" ? "Report" : "Briefing"} deleted`), te(null), Q();
3151
3168
  } catch (U) {
3152
3169
  z.error(
3153
3170
  U instanceof Error ? U.message : "Could not delete the briefing."
3154
3171
  );
3155
3172
  } finally {
3156
- Q(null);
3173
+ X(null);
3157
3174
  }
3158
- }, $t = Fe.length;
3159
- return y.surfaceVisible ? /* @__PURE__ */ r(Wr, { open: N, onOpenChange: b, children: [
3175
+ }, $t = Ie.length;
3176
+ return y.surfaceVisible ? /* @__PURE__ */ r(zr, { open: N, onOpenChange: b, children: [
3160
3177
  d ? null : /* @__PURE__ */ e(
3161
3178
  Ya,
3162
3179
  {
3163
- disabled: n || !we,
3180
+ disabled: n || !Ne,
3164
3181
  briefingCount: $t,
3165
3182
  className: c,
3166
3183
  onClick: v
3167
3184
  }
3168
3185
  ),
3169
3186
  /* @__PURE__ */ r(
3170
- Hr,
3187
+ _r,
3171
3188
  {
3172
- ref: ye,
3189
+ ref: Ce,
3173
3190
  side: "right",
3174
3191
  hideClose: !0,
3175
3192
  className: "flex h-full w-full flex-col overflow-hidden p-0 outline-none sm:max-w-[560px]",
3176
3193
  onOpenAutoFocus: (w) => {
3177
3194
  var U;
3178
- w.preventDefault(), (U = ye.current) == null || U.focus({ preventScroll: !0 });
3195
+ w.preventDefault(), (U = Ce.current) == null || U.focus({ preventScroll: !0 });
3179
3196
  },
3180
3197
  children: [
3181
- /* @__PURE__ */ r(Gr, { className: "sr-only", children: [
3182
- /* @__PURE__ */ e(qr, { children: "Reports & briefings" }),
3183
- /* @__PURE__ */ e(Kr, { children: "Manage reports and briefings for this dashboard." })
3198
+ /* @__PURE__ */ r($r, { className: "sr-only", children: [
3199
+ /* @__PURE__ */ e(jr, { children: "Reports & briefings" }),
3200
+ /* @__PURE__ */ e(Wr, { children: "Manage reports and briefings for this dashboard." })
3184
3201
  ] }),
3185
3202
  o ? /* @__PURE__ */ r("div", { className: "flex shrink-0 items-start justify-between gap-3 border-b border-border pl-4 pr-3 pt-2", children: [
3186
3203
  /* @__PURE__ */ r(
@@ -3239,7 +3256,7 @@ function xn({
3239
3256
  W === "list" ? /* @__PURE__ */ e(
3240
3257
  sn,
3241
3258
  {
3242
- briefings: Fe,
3259
+ briefings: Ie,
3243
3260
  dashboardLabel: fe,
3244
3261
  sourceView: C,
3245
3262
  error: le,
@@ -3271,7 +3288,7 @@ function xn({
3271
3288
  hideHeader: !!o
3272
3289
  }
3273
3290
  ) : /* @__PURE__ */ e(
3274
- Xr,
3291
+ Hr,
3275
3292
  {
3276
3293
  apiServiceUrl: $,
3277
3294
  token: j,
@@ -3285,12 +3302,12 @@ function xn({
3285
3302
  onCancel: () => b(!1),
3286
3303
  onDeleted: () => {
3287
3304
  const w = R ? oe(R).noun : "briefing";
3288
- z.success(`${w === "report" ? "Report" : "Briefing"} deleted`), V(null), k("list"), X();
3305
+ z.success(`${w === "report" ? "Report" : "Briefing"} deleted`), V(null), k("list"), Q();
3289
3306
  },
3290
3307
  onRunStarted: () => {
3291
3308
  },
3292
3309
  onSaved: (w) => {
3293
- V(w), X();
3310
+ V(w), Q();
3294
3311
  },
3295
3312
  onMinimizeRun: ({ briefing: w, run: U }) => {
3296
3313
  pe({ briefing: w, run: U }), b(!1);
@@ -3308,13 +3325,13 @@ function xn({
3308
3325
  apiServiceUrl: $,
3309
3326
  token: j,
3310
3327
  onTerminal: (w) => {
3311
- Ce({
3328
+ we({
3312
3329
  briefing: de.briefing,
3313
3330
  run: w
3314
- }), pe(null), X();
3331
+ }), pe(null), Q();
3315
3332
  },
3316
3333
  onTimeout: () => {
3317
- pe(null), X();
3334
+ pe(null), Q();
3318
3335
  },
3319
3336
  onExpand: () => {
3320
3337
  V(de.briefing), k("author"), pe(null), b(!0);
@@ -3322,7 +3339,7 @@ function xn({
3322
3339
  }
3323
3340
  ) : null,
3324
3341
  Y ? /* @__PURE__ */ e("div", { className: "fixed bottom-4 right-4 z-50 w-[360px]", children: /* @__PURE__ */ e(
3325
- Qr,
3342
+ Gr,
3326
3343
  {
3327
3344
  title: Y.run.status === "SUCCESS" ? `${Y.briefing.name} is ready` : `${Y.briefing.name} run failed`,
3328
3345
  durationSeconds: Y.run.startedAt && Y.run.completedAt ? Math.max(
@@ -3333,9 +3350,9 @@ function xn({
3333
3350
  ) : null,
3334
3351
  status: Y.run.status === "SUCCESS" ? "success" : "failed",
3335
3352
  onView: () => {
3336
- V(Y.briefing), k("author"), Ce(null), b(!0);
3353
+ V(Y.briefing), k("author"), we(null), b(!0);
3337
3354
  },
3338
- onDismiss: () => Ce(null)
3355
+ onDismiss: () => we(null)
3339
3356
  }
3340
3357
  ) }) : null,
3341
3358
  /* @__PURE__ */ e(
@@ -3383,19 +3400,19 @@ function vn() {
3383
3400
  return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : `briefing-run-now-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
3384
3401
  }
3385
3402
  export {
3386
- Rn as A,
3387
- Oa as D,
3388
- Pa as E,
3389
- On as N,
3390
- Un as U,
3391
- Tn as V,
3403
+ Un as A,
3404
+ $n as D,
3405
+ Ua as E,
3406
+ zn as N,
3407
+ Pn as U,
3408
+ Rn as V,
3392
3409
  Ya as W,
3393
- Vn as a,
3394
- Ua as b,
3395
- Mn as c,
3410
+ Oa as a,
3411
+ Ga as b,
3412
+ _n as c,
3396
3413
  _a as d,
3397
- Ga as e,
3398
- zn as f,
3399
- _n as g,
3400
- Pn as u
3414
+ Pa as e,
3415
+ Vn as f,
3416
+ On as g,
3417
+ Mn as u
3401
3418
  };