react-semaphor 0.1.427 → 0.1.429

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 (96) hide show
  1. package/dist/analytics-protocol/index.cjs +1 -1
  2. package/dist/analytics-protocol/index.js +72 -71
  3. package/dist/brand-studio/index.cjs +1 -1
  4. package/dist/brand-studio/index.js +5 -4
  5. package/dist/briefings/index.cjs +1 -1
  6. package/dist/briefings/index.js +1031 -622
  7. package/dist/chunks/analyze-result-contract-BswhsmWT.js +1 -0
  8. package/dist/chunks/{analyze-result-contract-DnfF8kBb.js → analyze-result-contract-CfOBEwaC.js} +681 -759
  9. package/dist/chunks/{code-editor-CojfM3qp.js → code-editor-C65eEYyU.js} +2980 -2960
  10. package/dist/chunks/code-editor-DOh3aYEh.js +138 -0
  11. package/dist/chunks/{comparison-document-migration-b6c3xiWh.js → comparison-document-migration-DbU_BTxR.js} +1 -1
  12. package/dist/chunks/{comparison-document-migration-BJH1idOd.js → comparison-document-migration-Dj6xZMCb.js} +2 -2
  13. package/dist/chunks/csv-utils-Co0WxHke.js +4 -0
  14. package/dist/chunks/csv-utils-suxSkJGj.js +376 -0
  15. package/dist/chunks/dashboard-CQfAvRYI.js +1401 -0
  16. package/dist/chunks/{dashboard-DSxho2LN.js → dashboard-agBXhvKo.js} +45651 -42951
  17. package/dist/chunks/{dashboard-briefing-launcher-CguxcHIl.js → dashboard-briefing-launcher-CkH_pthg.js} +1 -1
  18. package/dist/chunks/{dashboard-briefing-launcher-BFIw5BOf.js → dashboard-briefing-launcher-gBNNKqoH.js} +100 -99
  19. package/dist/chunks/{dashboard-controls-Cl0LagTr.js → dashboard-controls-CAZnIGfT.js} +2 -2
  20. package/dist/chunks/{dashboard-controls-jD-HpCNK.js → dashboard-controls-CoIxUTvH.js} +207 -202
  21. package/dist/chunks/{dashboard-json-BovTt0uu.js → dashboard-json-BMcPjL8-.js} +18 -17
  22. package/dist/chunks/dashboard-json-D4hFrMkX.js +1 -0
  23. package/dist/chunks/{edit-dashboard-visual-dlm8F_Qu.js → edit-dashboard-visual-Bc8qNfSr.js} +8721 -8481
  24. package/dist/chunks/edit-dashboard-visual-onhUUXlw.js +182 -0
  25. package/dist/chunks/{metric-comparison-CWweq9RG.js → metric-comparison-CPoDx56y.js} +1 -1
  26. package/dist/chunks/{metric-comparison-BKgkMy9r.js → metric-comparison-DVy3fll_.js} +1 -1
  27. package/dist/chunks/numeric-presentation-CGTcqocU.js +517 -0
  28. package/dist/chunks/numeric-presentation-Dlb-Dk4c.js +1 -0
  29. package/dist/chunks/report-preferences-dialog-CPptr_V9.js +690 -0
  30. package/dist/chunks/report-preferences-dialog-DV_5aHrS.js +1 -0
  31. package/dist/chunks/source-identity-5OPV4gvg.js +92 -0
  32. package/dist/chunks/source-identity-Cbo2LOHQ.js +1 -0
  33. package/dist/chunks/{update-policy-CY2k-pJP.js → update-policy-De2NswtM.js} +1 -1
  34. package/dist/chunks/{update-policy-BgONreNd.js → update-policy-DnF_74zC.js} +1 -1
  35. package/dist/chunks/{use-create-flow-overlay-state-kbl6avDY.js → use-create-flow-overlay-state-Bs6gqgjo.js} +1 -1
  36. package/dist/chunks/{use-create-flow-overlay-state-BU0ROMSm.js → use-create-flow-overlay-state-CgQbCrni.js} +97 -96
  37. package/dist/chunks/validators-B2vUAqTf.js +1 -0
  38. package/dist/chunks/{validators-Cz-XuORM.js → validators-Bce_J7Vd.js} +19 -13
  39. package/dist/dashboard/index.cjs +1 -1
  40. package/dist/dashboard/index.js +1 -1
  41. package/dist/dashboard-authoring/index.cjs +3 -3
  42. package/dist/dashboard-authoring/index.js +20 -19
  43. package/dist/data-app-builder/index.cjs +1 -1
  44. package/dist/data-app-builder/index.js +50 -50
  45. package/dist/data-app-codegen/index.cjs +1 -1
  46. package/dist/data-app-codegen/index.js +2 -2
  47. package/dist/data-app-codegen-node/index.cjs +1 -1
  48. package/dist/data-app-codegen-node/index.js +3 -3
  49. package/dist/data-app-sdk/index.cjs +2 -2
  50. package/dist/data-app-sdk/index.js +27 -26
  51. package/dist/data-app-sdk-adapters/index.cjs +1 -1
  52. package/dist/data-app-sdk-adapters/index.js +25 -24
  53. package/dist/data-app-sdk-validation/index.cjs +1 -1
  54. package/dist/data-app-sdk-validation/index.js +57 -55
  55. package/dist/format-utils/index.cjs +2 -5
  56. package/dist/format-utils/index.js +136 -161
  57. package/dist/index.cjs +1 -1
  58. package/dist/index.js +158 -155
  59. package/dist/report-runtime-context/index.cjs +1 -0
  60. package/dist/report-runtime-context/index.js +394 -0
  61. package/dist/style.css +1 -1
  62. package/dist/surfboard/index.cjs +1 -1
  63. package/dist/surfboard/index.js +7 -6
  64. package/dist/types/analytics-protocol.d.ts +0 -4
  65. package/dist/types/briefings.d.ts +216 -19
  66. package/dist/types/dashboard-assistant.d.ts +0 -2
  67. package/dist/types/dashboard-authoring.d.ts +34 -9
  68. package/dist/types/dashboard.d.ts +93 -9
  69. package/dist/types/data-app-builder.d.ts +0 -1
  70. package/dist/types/data-app-codegen-node.d.ts +6 -28
  71. package/dist/types/data-app-codegen.d.ts +6 -28
  72. package/dist/types/data-app-sdk-adapters.d.ts +6 -28
  73. package/dist/types/data-app-sdk-validation.d.ts +6 -29
  74. package/dist/types/data-app-sdk.d.ts +6 -31
  75. package/dist/types/format-utils.d.ts +128 -4
  76. package/dist/types/index.cjs +1 -1
  77. package/dist/types/index.js +10 -13
  78. package/dist/types/main.d.ts +249 -89
  79. package/dist/types/report-runtime-context.d.ts +99 -0
  80. package/dist/types/shared.d.ts +34 -9
  81. package/dist/types/surfboard.d.ts +119 -16
  82. package/dist/types/types.d.ts +156 -73
  83. package/dist/types/value-format-preferences.d.ts +126 -0
  84. package/dist/value-format-preferences/index.cjs +1 -0
  85. package/dist/value-format-preferences/index.js +635 -0
  86. package/package.json +11 -1
  87. package/dist/chunks/analyze-result-contract-ege_u6Nl.js +0 -1
  88. package/dist/chunks/calendar-preferences-dialog-DE4tk3t3.js +0 -457
  89. package/dist/chunks/calendar-preferences-dialog-DuGX1NPV.js +0 -1
  90. package/dist/chunks/code-editor-BoowcKU0.js +0 -138
  91. package/dist/chunks/dashboard-json-7mpQsizF.js +0 -1
  92. package/dist/chunks/dashboard-ogxedhSY.js +0 -1402
  93. package/dist/chunks/date-formatter-BTTYdAik.js +0 -1
  94. package/dist/chunks/date-formatter-D-89jTjG.js +0 -514
  95. package/dist/chunks/edit-dashboard-visual-B7wLrHeF.js +0 -182
  96. package/dist/chunks/validators-B4VMLX3_.js +0 -1
@@ -1,30 +1,31 @@
1
1
  import { jsx as e, jsxs as n, Fragment as T } from "react/jsx-runtime";
2
- import { u as D, B as U, aw as dt, D as Zt, L as za, Z as _a, c as ge, ax as lt, ay as qa, az as Ha, aA as ea, aB as be, aC as ct, aD as ta, e as Ge, aE as aa, aF as ja, F as $t, Q as Ka, V as Qa, W as Wa, Y as Ja, p as Xa, aG as Ya } from "./code-editor-CojfM3qp.js";
3
- import { bA as Za, bB as er, u as z, b as ra, bC as tr, aX as H, c as sa, d as ar, e as st, f as nt, o as rr, bD as fe, bE as Te, bF as sr, bG as Bt, bH as na, bI as oa, bJ as nr, bK as ut, bL as or, bM as ir, bN as dr, bO as lr, bP as cr, bQ as ur, b6 as xe, bR as ve, p as C, bS as mr, bT as ia, bp as mt, bU as pr, bV as hr, bW as da, bX as fr, bY as la, bZ as O, b_ as gr, au as br, b$ as xr, c0 as vr, c1 as yr, ay as wr, aG as Fe, aH as Nr, O as at, c2 as Dr, c3 as Cr, c4 as kr, c5 as Sr, at as Ir, c6 as Mr, c7 as Er, I as zt, c8 as Ar, c9 as Lr, ca as Pr, cb as Ur, cc as _t, cd as qt, ce as Ht, cf as Rr, cg as Vr, ch as Fr, ci as Or, a$ as jt, cj as Tr, ck as Gr, cl as $r, Q as Br, cm as zr, aN as _r, aQ as qr, aR as Hr, aS as jr, aT as Kr, aU as Qr, aV as Wr, aW as Kt, w as ot } from "./dashboard-DSxho2LN.js";
4
- import { c as Z, X as ca, C as Jr } from "./index-xHCrHprY.js";
5
- import "./analyze-result-contract-DnfF8kBb.js";
6
- import * as L from "react";
7
- import { useState as N, useMemo as Y, useEffect as $e, useRef as Qt, useLayoutEffect as Xr, useCallback as Yr } from "react";
2
+ import { u as D, B as U, aw as dt, A as Zt, O as za, Z as _a, c as ge, ax as lt, ay as qa, az as Ha, aA as ea, aB as be, aC as ct, aD as ta, L as Ge, aE as aa, aF as ja, E as Bt, Q as Ka, V as Qa, W as Wa, Y as Ja, o as Ya, aG as Xa } from "./code-editor-C65eEYyU.js";
3
+ import { bC as Za, bD as er, az as z, aH as ra, bE as tr, aZ as H, aI as sa, aJ as ar, aK as st, aL as nt, aF as rr, bF as fe, bG as Te, bH as sr, bI as $t, bJ as na, bK as oa, bL as nr, bM as ut, bN as or, bO as ir, bP as dr, bQ as lr, bR as cr, bS as ur, b8 as xe, bT as ve, aG as C, bU as mr, bV as ia, br as mt, bW as pr, bX as hr, bY as da, bZ as fr, b_ as la, b$ as O, c0 as gr, aj as br, c1 as xr, c2 as vr, c3 as yr, an as wr, av as Fe, aw as Nr, w as at, c4 as Dr, c5 as Cr, c6 as kr, c7 as Sr, ai as Ir, c8 as Mr, c9 as Er, I as zt, ca as Lr, cb as Ar, cc as Pr, cd as Ur, ce as Rr, cf as _t, cg as qt, ch as Ht, ci as Vr, cj as Fr, ck as Or, cl as Tr, b1 as jt, cm as Gr, cn as Br, co as $r, y as zr, cp as _r, aP as qr, aS as Hr, aT as jr, aU as Kr, aV as Qr, aW as Wr, aX as Jr, aY as Kt, g as ot } from "./dashboard-agBXhvKo.js";
4
+ import { c as Z, X as ca, C as Yr } from "./index-xHCrHprY.js";
5
+ import "./analyze-result-contract-CfOBEwaC.js";
6
+ import "../value-format-preferences/index.js";
7
+ import * as A from "react";
8
+ import { useState as N, useMemo as X, useEffect as Be, useRef as Qt, useLayoutEffect as Xr, useCallback as Zr } from "react";
8
9
  import "./index-If0wlXGi.js";
9
- import "./comparison-document-migration-BJH1idOd.js";
10
- import { createPortal as Zr } from "react-dom";
10
+ import "./comparison-document-migration-Dj6xZMCb.js";
11
+ import { createPortal as es } from "react-dom";
11
12
  import "../briefings/index.js";
12
- import { g as es, u as ts, A as as, V as rs, c as ss, f as ns, N as os, D as is, U as ds } from "./dashboard-briefing-launcher-BFIw5BOf.js";
13
- import { S as ls, C as cs } from "./search-DHZCro8B.js";
13
+ import { g as ts, u as as, A as rs, V as ss, c as ns, f as os, N as is, D as ds, U as ls } from "./dashboard-briefing-launcher-gBNNKqoH.js";
14
+ import { S as cs, C as us } from "./search-DHZCro8B.js";
14
15
  import { d as ua } from "./index-CnujJ3fa.js";
15
- import { C as us } from "./calendar-preferences-dialog-DE4tk3t3.js";
16
- import { u as ms } from "./use-debounced-dirty-check-BwAbnX_5.js";
16
+ import { R as ms } from "./report-preferences-dialog-CPptr_V9.js";
17
+ import { u as ps } from "./use-debounced-dirty-check-BwAbnX_5.js";
17
18
  import { s as rt } from "./normalize-dashboard-for-dirty-check-5KpZN8xr.js";
18
19
  import { S as Wt } from "./save-HCJjjzdX.js";
19
- import { P as ps } from "./palette-jqaAcwiQ.js";
20
- import { B as hs } from "./braces-BdbUk_r9.js";
20
+ import { P as hs } from "./palette-jqaAcwiQ.js";
21
+ import { B as fs } from "./braces-BdbUk_r9.js";
21
22
  /**
22
23
  * @license lucide-react v0.453.0 - ISC
23
24
  *
24
25
  * This source code is licensed under the ISC license.
25
26
  * See the LICENSE file in the root directory of this source tree.
26
27
  */
27
- const fs = Z("Glasses", [
28
+ const gs = Z("Glasses", [
28
29
  ["circle", { cx: "6", cy: "15", r: "4", key: "vux9w4" }],
29
30
  ["circle", { cx: "18", cy: "15", r: "4", key: "18o8ve" }],
30
31
  ["path", { d: "M14 15a2 2 0 0 0-2-2 2 2 0 0 0-2 2", key: "1ag4bs" }],
@@ -37,7 +38,7 @@ const fs = Z("Glasses", [
37
38
  * This source code is licensed under the ISC license.
38
39
  * See the LICENSE file in the root directory of this source tree.
39
40
  */
40
- const gs = Z("Monitor", [
41
+ const bs = Z("Monitor", [
41
42
  ["rect", { width: "20", height: "14", x: "2", y: "3", rx: "2", key: "48i651" }],
42
43
  ["line", { x1: "8", x2: "16", y1: "21", y2: "21", key: "1svkeh" }],
43
44
  ["line", { x1: "12", x2: "12", y1: "17", y2: "21", key: "vw1qmm" }]
@@ -48,7 +49,7 @@ const gs = Z("Monitor", [
48
49
  * This source code is licensed under the ISC license.
49
50
  * See the LICENSE file in the root directory of this source tree.
50
51
  */
51
- const bs = Z("Moon", [
52
+ const xs = Z("Moon", [
52
53
  ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z", key: "a7tn18" }]
53
54
  ]);
54
55
  /**
@@ -57,7 +58,7 @@ const bs = Z("Moon", [
57
58
  * This source code is licensed under the ISC license.
58
59
  * See the LICENSE file in the root directory of this source tree.
59
60
  */
60
- const xs = Z("ShieldX", [
61
+ const vs = Z("ShieldX", [
61
62
  [
62
63
  "path",
63
64
  {
@@ -74,7 +75,7 @@ const xs = Z("ShieldX", [
74
75
  * This source code is licensed under the ISC license.
75
76
  * See the LICENSE file in the root directory of this source tree.
76
77
  */
77
- const vs = Z("Sun", [
78
+ const ys = Z("Sun", [
78
79
  ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
79
80
  ["path", { d: "M12 2v2", key: "tus03m" }],
80
81
  ["path", { d: "M12 20v2", key: "1lh1kg" }],
@@ -91,7 +92,7 @@ const vs = Z("Sun", [
91
92
  * This source code is licensed under the ISC license.
92
93
  * See the LICENSE file in the root directory of this source tree.
93
94
  */
94
- const ys = Z("UserPlus", [
95
+ const ws = Z("UserPlus", [
95
96
  ["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", key: "1yyitq" }],
96
97
  ["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }],
97
98
  ["line", { x1: "19", x2: "19", y1: "8", y2: "14", key: "1bvyxn" }],
@@ -107,7 +108,7 @@ const ma = Z("UserRound", [
107
108
  ["circle", { cx: "12", cy: "8", r: "5", key: "1hypcn" }],
108
109
  ["path", { d: "M20 21a8 8 0 0 0-16 0", key: "rfgkzh" }]
109
110
  ]), Oe = ["light", "dark", "system"];
110
- function ws() {
111
+ function Ns() {
111
112
  const { theme: t, setTheme: s } = Za(), r = D(
112
113
  (h) => h.actions.setDashboardTheme
113
114
  );
@@ -115,7 +116,7 @@ function ws() {
115
116
  const h = Oe.includes(t) ? t : "system", m = Oe[(Oe.indexOf(h) + 1) % Oe.length];
116
117
  s(m), r(m);
117
118
  }
118
- const o = t === "light" ? vs : t === "dark" ? bs : gs, l = t === "light" ? "Theme: light (click for dark)" : t === "dark" ? "Theme: dark (click for system)" : "Theme: system (click for light)";
119
+ const o = t === "light" ? ys : t === "dark" ? xs : bs, l = t === "light" ? "Theme: light (click for dark)" : t === "dark" ? "Theme: dark (click for system)" : "Theme: system (click for light)";
119
120
  return /* @__PURE__ */ e(
120
121
  U,
121
122
  {
@@ -150,7 +151,7 @@ function pa(t) {
150
151
  dashboardInputValues: r.dashboardInputValues
151
152
  };
152
153
  }
153
- async function Ns(t, s, r, a, o, l) {
154
+ async function Ds(t, s, r, a, o, l) {
154
155
  if (!l)
155
156
  return null;
156
157
  const h = JSON.stringify(r), m = `${t}/v1/lens`;
@@ -183,7 +184,7 @@ async function it(t, s, r) {
183
184
  operation: "update"
184
185
  });
185
186
  }
186
- async function Ds(t, s, r) {
187
+ async function Cs(t, s, r) {
187
188
  if (!r)
188
189
  return null;
189
190
  const a = `${t}/v1/lens`;
@@ -192,8 +193,8 @@ async function Ds(t, s, r) {
192
193
  lensId: s
193
194
  });
194
195
  }
195
- const Cs = "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground";
196
- function ks({
196
+ const ks = "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground";
197
+ function Ss({
197
198
  open: t,
198
199
  onOpenChange: s
199
200
  } = {}) {
@@ -209,7 +210,7 @@ function ks({
209
210
  controlValues: x.controlValues,
210
211
  inlineFilterValuesMap: x.inlineFilterValuesMap,
211
212
  cardControlValuesMap: x.cardControlValuesMap
212
- }), q = await Ns(
213
+ }), q = await Ds(
213
214
  P.apiServiceUrl,
214
215
  r,
215
216
  c,
@@ -230,7 +231,7 @@ function ks({
230
231
  /* @__PURE__ */ e(nt, { className: "text-[13px] leading-5", children: "Lenses are private by default and are only visible to you." })
231
232
  ] }),
232
233
  /* @__PURE__ */ n("div", { className: "space-y-1.5 py-1", children: [
233
- /* @__PURE__ */ e(za, { htmlFor: "lens-name", className: Cs, children: "Name" }),
234
+ /* @__PURE__ */ e(za, { htmlFor: "lens-name", className: ks, children: "Name" }),
234
235
  /* @__PURE__ */ e(
235
236
  _a,
236
237
  {
@@ -259,13 +260,13 @@ function ks({
259
260
  ] })
260
261
  ] });
261
262
  }
262
- function Ss({ includeLabel: t = !1 } = {}) {
263
+ function Is({ includeLabel: t = !1 } = {}) {
263
264
  const s = D((d) => d.lenses), r = D((d) => d.selectedLensId), { setLenses: a, setSelectedLensId: o } = Zt(), { authToken: l, tokenProps: h } = z();
264
265
  async function m(d) {
265
266
  o(d);
266
267
  }
267
268
  async function p(d) {
268
- if (await Ds(h.apiServiceUrl, d, l == null ? void 0 : l.accessToken)) {
269
+ if (await Cs(h.apiServiceUrl, d, l == null ? void 0 : l.accessToken)) {
269
270
  const b = s == null ? void 0 : s.filter((f) => f.id !== d);
270
271
  a(b || []), o("original");
271
272
  }
@@ -304,9 +305,9 @@ function Ss({ includeLabel: t = !1 } = {}) {
304
305
  value: r,
305
306
  onValueChange: m,
306
307
  children: [
307
- /* @__PURE__ */ e(Bt, { value: "original", children: "Original" }),
308
+ /* @__PURE__ */ e($t, { value: "original", children: "Original" }),
308
309
  s == null ? void 0 : s.map((d) => /* @__PURE__ */ n(
309
- Bt,
310
+ $t,
310
311
  {
311
312
  className: "group flex justify-between gap-2",
312
313
  value: d.id,
@@ -349,11 +350,11 @@ function Ss({ includeLabel: t = !1 } = {}) {
349
350
  )
350
351
  ] });
351
352
  }
352
- function Is() {
353
- const { displayPreferences: t, shouldShowElement: s } = nr(), { currentUser: r, userContext: a } = ut(), o = Y(
353
+ function Ms() {
354
+ const { displayPreferences: t, shouldShowElement: s } = nr(), { currentUser: r, userContext: a } = ut(), o = X(
354
355
  () => or(r),
355
356
  [r]
356
- ), l = Y(() => (m) => o && o[m] !== void 0 && o[m] === !1 ? !1 : s(m), [o, s, t]), h = Y(
357
+ ), l = X(() => (m) => o && o[m] !== void 0 && o[m] === !1 ? !1 : s(m), [o, s, t]), h = X(
357
358
  () => {
358
359
  var m, p, v, d, u;
359
360
  return {
@@ -373,13 +374,13 @@ function Is() {
373
374
  currentUser: r
374
375
  };
375
376
  }
376
- var pt = "Avatar", [Ms] = qa(pt), Es = [
377
+ var pt = "Avatar", [Es] = qa(pt), Ls = [
377
378
  0,
378
379
  () => {
379
380
  }
380
- ], [As, ha] = Ms(pt), ht = L.forwardRef(
381
+ ], [As, ha] = Es(pt), ht = A.forwardRef(
381
382
  (t, s) => {
382
- const { __scopeAvatar: r, ...a } = t, [o, l] = L.useState("idle"), [h, m] = Ps();
383
+ const { __scopeAvatar: r, ...a } = t, [o, l] = A.useState("idle"), [h, m] = Us();
383
384
  return /* @__PURE__ */ e(
384
385
  As,
385
386
  {
@@ -394,18 +395,18 @@ var pt = "Avatar", [Ms] = qa(pt), Es = [
394
395
  }
395
396
  );
396
397
  ht.displayName = pt;
397
- var fa = "AvatarImage", ft = L.forwardRef(
398
+ var fa = "AvatarImage", ft = A.forwardRef(
398
399
  (t, s) => {
399
400
  const { __scopeAvatar: r, src: a, onLoadingStatusChange: o, ...l } = t, h = ha(fa, r);
400
- Us(h.setImageCount);
401
- const m = Ls(a, {
401
+ Rs(h.setImageCount);
402
+ const m = Ps(a, {
402
403
  referrerPolicy: l.referrerPolicy,
403
404
  crossOrigin: l.crossOrigin,
404
405
  loadingStatus: h.imageLoadingStatus,
405
406
  setLoadingStatus: h.setImageLoadingStatus
406
407
  }), p = Ha((d) => {
407
408
  o == null || o(d);
408
- }), v = L.useRef(m);
409
+ }), v = A.useRef(m);
409
410
  return ea(() => {
410
411
  const d = v.current;
411
412
  v.current = m, m !== d && p(m);
@@ -413,10 +414,10 @@ var fa = "AvatarImage", ft = L.forwardRef(
413
414
  }
414
415
  );
415
416
  ft.displayName = fa;
416
- var ga = "AvatarFallback", gt = L.forwardRef(
417
+ var ga = "AvatarFallback", gt = A.forwardRef(
417
418
  (t, s) => {
418
- const { __scopeAvatar: r, delayMs: a, ...o } = t, l = ha(ga, r), [h, m] = L.useState(a === void 0);
419
- return L.useEffect(() => {
419
+ const { __scopeAvatar: r, delayMs: a, ...o } = t, l = ha(ga, r), [h, m] = A.useState(a === void 0);
420
+ return A.useEffect(() => {
420
421
  if (a !== void 0) {
421
422
  const p = window.setTimeout(() => m(!0), a);
422
423
  return () => window.clearTimeout(p);
@@ -425,7 +426,7 @@ var ga = "AvatarFallback", gt = L.forwardRef(
425
426
  }
426
427
  );
427
428
  gt.displayName = ga;
428
- function Ls(t, {
429
+ function Ps(t, {
429
430
  loadingStatus: s,
430
431
  setLoadingStatus: r,
431
432
  referrerPolicy: a,
@@ -448,12 +449,12 @@ function Ls(t, {
448
449
  function Jt(t) {
449
450
  return t.complete ? t.naturalWidth > 0 ? "loaded" : "error" : "loading";
450
451
  }
451
- function Ps() {
452
- let t = Es;
452
+ function Us() {
453
+ let t = Ls;
453
454
  {
454
- t = L.useState(0);
455
- const [s] = t, r = L.useRef(!1);
456
- L.useEffect(() => {
455
+ t = A.useState(0);
456
+ const [s] = t, r = A.useRef(!1);
457
+ A.useEffect(() => {
457
458
  s > 1 && !r.current && (r.current = !0, console.warn(
458
459
  "Avatar: Only one `Avatar.Image` component should be rendered per `Avatar.Root`, but multiple were detected. This will lead to unexpected behavior."
459
460
  ));
@@ -461,12 +462,12 @@ function Ps() {
461
462
  }
462
463
  return t;
463
464
  }
464
- function Us(t) {
465
- L.useEffect(() => (t((s) => s + 1), () => {
465
+ function Rs(t) {
466
+ A.useEffect(() => (t((s) => s + 1), () => {
466
467
  t((s) => s - 1);
467
468
  }), [t]);
468
469
  }
469
- const ba = L.forwardRef(({ className: t, ...s }, r) => /* @__PURE__ */ e(
470
+ const ba = A.forwardRef(({ className: t, ...s }, r) => /* @__PURE__ */ e(
470
471
  ht,
471
472
  {
472
473
  ref: r,
@@ -478,7 +479,7 @@ const ba = L.forwardRef(({ className: t, ...s }, r) => /* @__PURE__ */ e(
478
479
  }
479
480
  ));
480
481
  ba.displayName = ht.displayName;
481
- const Rs = L.forwardRef(({ className: t, ...s }, r) => /* @__PURE__ */ e(
482
+ const Vs = A.forwardRef(({ className: t, ...s }, r) => /* @__PURE__ */ e(
482
483
  ft,
483
484
  {
484
485
  ref: r,
@@ -486,8 +487,8 @@ const Rs = L.forwardRef(({ className: t, ...s }, r) => /* @__PURE__ */ e(
486
487
  ...s
487
488
  }
488
489
  ));
489
- Rs.displayName = ft.displayName;
490
- const xa = L.forwardRef(({ className: t, ...s }, r) => /* @__PURE__ */ e(
490
+ Vs.displayName = ft.displayName;
491
+ const xa = A.forwardRef(({ className: t, ...s }, r) => /* @__PURE__ */ e(
491
492
  gt,
492
493
  {
493
494
  ref: r,
@@ -499,26 +500,26 @@ const xa = L.forwardRef(({ className: t, ...s }, r) => /* @__PURE__ */ e(
499
500
  }
500
501
  ));
501
502
  xa.displayName = gt.displayName;
502
- const Vs = async (t, s, r) => {
503
+ const Fs = async (t, s, r) => {
503
504
  const a = `${t}/management/v1/groups`;
504
505
  return await ta(a, s, r);
505
- }, Fs = async (t, s, r, a) => {
506
+ }, Os = async (t, s, r, a) => {
506
507
  const o = `${t}/management/v1/groups/${r}`;
507
508
  return ct(o, s, "PATCH", a);
508
- }, Os = async (t, s, r) => {
509
+ }, Ts = async (t, s, r) => {
509
510
  const a = `${t}/management/v1/groups/${r}`;
510
511
  await ct(a, s, "DELETE");
511
- }, Ts = async (t, s, r, a) => {
512
+ }, Gs = async (t, s, r, a) => {
512
513
  const o = `${t}/management/v1/groups/${r}/members`;
513
514
  return await ta(o, s, a);
514
- }, Gs = async (t, s, r, a) => {
515
+ }, Bs = async (t, s, r, a) => {
515
516
  const o = `${t}/management/v1/groups/${r}/members`;
516
517
  await ct(o, s, "DELETE", a);
517
518
  };
518
519
  function $s() {
519
520
  const { authToken: t, tokenProps: s } = z(), r = xe();
520
521
  return ve({
521
- mutationFn: (a) => Vs(s.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", a),
522
+ mutationFn: (a) => Fs(s.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", a),
522
523
  onSuccess: () => {
523
524
  r.invalidateQueries({ queryKey: ["groups"] }), C.success("Group created successfully");
524
525
  },
@@ -529,13 +530,13 @@ function $s() {
529
530
  }
530
531
  });
531
532
  }
532
- function Bs() {
533
+ function zs() {
533
534
  const { authToken: t, tokenProps: s } = z(), r = xe();
534
535
  return ve({
535
536
  mutationFn: ({
536
537
  groupId: a,
537
538
  data: o
538
- }) => Fs(s.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", a, o),
539
+ }) => Os(s.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", a, o),
539
540
  onSuccess: (a, o) => {
540
541
  r.invalidateQueries({ queryKey: ["group", o.groupId] }), r.invalidateQueries({ queryKey: ["groups"] }), C.success("Group updated successfully");
541
542
  },
@@ -546,10 +547,10 @@ function Bs() {
546
547
  }
547
548
  });
548
549
  }
549
- function zs() {
550
+ function _s() {
550
551
  const { authToken: t, tokenProps: s } = z(), r = xe();
551
552
  return ve({
552
- mutationFn: (a) => Os(s.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", a),
553
+ mutationFn: (a) => Ts(s.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", a),
553
554
  onSuccess: (a, o) => {
554
555
  r.invalidateQueries({ queryKey: ["groups"] }), r.removeQueries({ queryKey: ["group", o] }), C.success("Group deleted successfully");
555
556
  },
@@ -560,13 +561,13 @@ function zs() {
560
561
  }
561
562
  });
562
563
  }
563
- function _s() {
564
+ function qs() {
564
565
  const { authToken: t, tokenProps: s } = z(), r = xe();
565
566
  return ve({
566
567
  mutationFn: ({
567
568
  groupId: a,
568
569
  data: o
569
- }) => Ts(s.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", a, o),
570
+ }) => Gs(s.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", a, o),
570
571
  onSuccess: (a, o) => {
571
572
  r.invalidateQueries({ queryKey: ["group", o.groupId] }), r.invalidateQueries({
572
573
  queryKey: ["group-members", o.groupId]
@@ -579,13 +580,13 @@ function _s() {
579
580
  }
580
581
  });
581
582
  }
582
- function qs() {
583
+ function Hs() {
583
584
  const { authToken: t, tokenProps: s } = z(), r = xe();
584
585
  return ve({
585
586
  mutationFn: ({
586
587
  groupId: a,
587
588
  data: o
588
- }) => Gs(s.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", a, o),
589
+ }) => Bs(s.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", a, o),
589
590
  onSuccess: (a, o) => {
590
591
  r.invalidateQueries({ queryKey: ["group", o.groupId] }), r.invalidateQueries({
591
592
  queryKey: ["group-members", o.groupId]
@@ -598,8 +599,8 @@ function qs() {
598
599
  }
599
600
  });
600
601
  }
601
- const Hs = [];
602
- function js({
602
+ const js = [];
603
+ function Ks({
603
604
  open: t,
604
605
  onOpenChange: s
605
606
  }) {
@@ -613,8 +614,8 @@ function js({
613
614
  type: o ? "TENANT_GROUP" : "all",
614
615
  tenantId: o ? l : void 0,
615
616
  includeMembers: !1
616
- }), d = p ? va(p, "Unable to load groups.") : null, [u, b] = N({ kind: "list" }), [f, w] = N(null), y = zs();
617
- $e(() => {
617
+ }), d = p ? va(p, "Unable to load groups.") : null, [u, b] = N({ kind: "list" }), [f, w] = N(null), y = _s();
618
+ Be(() => {
618
619
  t || (b({ kind: "list" }), w(null));
619
620
  }, [t]);
620
621
  const c = u.kind === "members" && h.find((x) => x.id === u.groupId) || null, M = async () => {
@@ -643,7 +644,7 @@ function js({
643
644
  /* @__PURE__ */ e(nt, { className: "sr-only", children: "Create a new group to organize members." })
644
645
  ] }) : null,
645
646
  u.kind === "list" && /* @__PURE__ */ e(
646
- Ks,
647
+ Qs,
647
648
  {
648
649
  groups: h,
649
650
  isLoading: m,
@@ -656,7 +657,7 @@ function js({
656
657
  }
657
658
  ),
658
659
  u.kind === "members" && c && /* @__PURE__ */ e(
659
- Js,
660
+ Ys,
660
661
  {
661
662
  group: c,
662
663
  isTenantViewer: o,
@@ -716,7 +717,7 @@ function js({
716
717
  ] })
717
718
  ] }) });
718
719
  }
719
- function Ks({
720
+ function Qs({
720
721
  groups: t,
721
722
  isLoading: s,
722
723
  errorMessage: r,
@@ -726,7 +727,7 @@ function Ks({
726
727
  onCreate: h,
727
728
  onDeleteRequest: m
728
729
  }) {
729
- const [p, v] = N(""), d = Y(
730
+ const [p, v] = N(""), d = X(
730
731
  () => t.filter(
731
732
  (u) => !p.trim() || u.name.toLowerCase().includes(p.toLowerCase()) || (u.description || "").toLowerCase().includes(p.toLowerCase())
732
733
  ),
@@ -735,7 +736,7 @@ function Ks({
735
736
  return /* @__PURE__ */ n("div", { className: "flex flex-1 flex-col overflow-hidden", children: [
736
737
  /* @__PURE__ */ n("div", { className: "flex shrink-0 items-center gap-2 border-b border-border px-5 py-2.5", children: [
737
738
  /* @__PURE__ */ n("div", { className: "flex flex-1 items-center gap-2 rounded-[5px] border border-border bg-background px-2 focus-within:border-foreground/40", children: [
738
- /* @__PURE__ */ e(ls, { className: "h-3 w-3 text-muted-foreground" }),
739
+ /* @__PURE__ */ e(cs, { className: "h-3 w-3 text-muted-foreground" }),
739
740
  /* @__PURE__ */ e(
740
741
  "input",
741
742
  {
@@ -781,7 +782,7 @@ function Ks({
781
782
  message: r,
782
783
  onRetry: a
783
784
  }
784
- ) : d.length === 0 && t.length === 0 ? /* @__PURE__ */ e(Ws, { onCreate: h }) : d.length === 0 ? /* @__PURE__ */ n("div", { className: "flex h-full flex-col items-center justify-center gap-1 py-10 text-center", children: [
785
+ ) : d.length === 0 && t.length === 0 ? /* @__PURE__ */ e(Js, { onCreate: h }) : d.length === 0 ? /* @__PURE__ */ n("div", { className: "flex h-full flex-col items-center justify-center gap-1 py-10 text-center", children: [
785
786
  /* @__PURE__ */ n("div", { className: "text-[12px] text-foreground", children: [
786
787
  'No groups match "',
787
788
  p,
@@ -791,7 +792,7 @@ function Ks({
791
792
  ] }) : d.map((u) => {
792
793
  var b;
793
794
  return /* @__PURE__ */ e(
794
- Qs,
795
+ Ws,
795
796
  {
796
797
  group: u,
797
798
  canDelete: ((b = u.permissions) == null ? void 0 : b.canDelete) ?? u.createdBy === o,
@@ -803,7 +804,7 @@ function Ks({
803
804
  }) })
804
805
  ] });
805
806
  }
806
- function Qs({
807
+ function Ws({
807
808
  group: t,
808
809
  canDelete: s,
809
810
  onClick: r,
@@ -862,13 +863,13 @@ function Qs({
862
863
  children: /* @__PURE__ */ e(mt, { className: "h-3 w-3" })
863
864
  }
864
865
  ),
865
- /* @__PURE__ */ e(cs, { className: "h-3.5 w-3.5 text-muted-foreground" })
866
+ /* @__PURE__ */ e(us, { className: "h-3.5 w-3.5 text-muted-foreground" })
866
867
  ] })
867
868
  ]
868
869
  }
869
870
  );
870
871
  }
871
- function Ws({ onCreate: t }) {
872
+ function Js({ onCreate: t }) {
872
873
  return /* @__PURE__ */ n("div", { className: "flex h-full flex-col items-center justify-center gap-2 py-12 text-center", children: [
873
874
  /* @__PURE__ */ e("div", { className: "flex h-9 w-9 items-center justify-center rounded-full border border-border bg-muted/40 text-muted-foreground", children: /* @__PURE__ */ e(da, { className: "h-4 w-4" }) }),
874
875
  /* @__PURE__ */ e("div", { className: "text-[13px] font-medium text-foreground", children: "No groups yet" }),
@@ -887,7 +888,7 @@ function Ws({ onCreate: t }) {
887
888
  )
888
889
  ] });
889
890
  }
890
- function Js({
891
+ function Ys({
891
892
  group: t,
892
893
  isTenantViewer: s,
893
894
  canEdit: r,
@@ -903,15 +904,15 @@ function Js({
903
904
  isLoading: d,
904
905
  error: u,
905
906
  refetch: b
906
- } = pr(t.id), f = (v == null ? void 0 : v.members) ?? Hs, w = u ? va(u, "Unable to load members for this group.") : null, y = t.type === "TENANT_GROUP" ? "tenant" : "organization", { users: c } = hr({
907
+ } = pr(t.id), f = (v == null ? void 0 : v.members) ?? js, w = u ? va(u, "Unable to load members for this group.") : null, y = t.type === "TENANT_GROUP" ? "tenant" : "organization", { users: c } = hr({
907
908
  type: y,
908
909
  tenantId: t.tenantId || void 0,
909
910
  active: !0,
910
911
  limit: 200
911
- }), M = Y(
912
+ }), M = X(
912
913
  () => new Set(f.map((g) => g.userId)),
913
914
  [f]
914
- ), S = _s(), P = qs(), k = Bs(), [x, _] = N(!1), [q, j] = N(t.name), [Be, K] = N(!1), [te, Q] = N(t.description || ""), [ae, re] = N(""), [ye, ee] = N(!1), ze = Y(() => {
915
+ ), S = qs(), P = Hs(), k = zs(), [x, _] = N(!1), [q, j] = N(t.name), [$e, K] = N(!1), [te, Q] = N(t.description || ""), [ae, re] = N(""), [ye, ee] = N(!1), ze = X(() => {
915
916
  const g = ae.trim().toLowerCase();
916
917
  return c.filter((R) => !M.has(R.id)).filter(
917
918
  (R) => !g || (R.name || "").toLowerCase().includes(g) || (R.email || "").toLowerCase().includes(g)
@@ -1010,7 +1011,7 @@ function Js({
1010
1011
  f.length === 1 ? "" : "s"
1011
1012
  ] })
1012
1013
  ] }),
1013
- /* @__PURE__ */ e("div", { className: "shrink-0 border-b border-border px-5 py-2.5", children: Be ? /* @__PURE__ */ n("div", { children: [
1014
+ /* @__PURE__ */ e("div", { className: "shrink-0 border-b border-border px-5 py-2.5", children: $e ? /* @__PURE__ */ n("div", { children: [
1014
1015
  /* @__PURE__ */ e(
1015
1016
  "textarea",
1016
1017
  {
@@ -1074,7 +1075,7 @@ function Js({
1074
1075
  }
1075
1076
  ) }),
1076
1077
  o && /* @__PURE__ */ e(
1077
- Ys,
1078
+ Zs,
1078
1079
  {
1079
1080
  query: ae,
1080
1081
  setQuery: re,
@@ -1169,7 +1170,7 @@ function Xs({
1169
1170
  };
1170
1171
  return /* @__PURE__ */ n("div", { className: "flex flex-1 flex-col overflow-hidden", children: [
1171
1172
  /* @__PURE__ */ n("div", { className: "flex-1 overflow-y-auto px-5 py-4", children: [
1172
- /* @__PURE__ */ e(Xt, { children: "Name" }),
1173
+ /* @__PURE__ */ e(Yt, { children: "Name" }),
1173
1174
  /* @__PURE__ */ e(
1174
1175
  "input",
1175
1176
  {
@@ -1183,7 +1184,7 @@ function Xs({
1183
1184
  ),
1184
1185
  /* @__PURE__ */ e("div", { className: "mt-1 text-[10.5px] text-muted-foreground", children: "3–50 characters." }),
1185
1186
  /* @__PURE__ */ n("div", { className: "mt-4", children: [
1186
- /* @__PURE__ */ e(Xt, { children: "Description (optional)" }),
1187
+ /* @__PURE__ */ e(Yt, { children: "Description (optional)" }),
1187
1188
  /* @__PURE__ */ e(
1188
1189
  "textarea",
1189
1190
  {
@@ -1232,7 +1233,7 @@ function Xs({
1232
1233
  ] })
1233
1234
  ] });
1234
1235
  }
1235
- function Ys({
1236
+ function Zs({
1236
1237
  query: t,
1237
1238
  setQuery: s,
1238
1239
  open: r,
@@ -1262,7 +1263,7 @@ function Ys({
1262
1263
  return f(), window.addEventListener("resize", f), window.addEventListener("scroll", f, !0), () => {
1263
1264
  window.removeEventListener("resize", f), window.removeEventListener("scroll", f, !0);
1264
1265
  };
1265
- }, [r, o.length]), $e(() => {
1266
+ }, [r, o.length]), Be(() => {
1266
1267
  if (!r) return;
1267
1268
  const f = (w) => {
1268
1269
  var c, M;
@@ -1279,7 +1280,7 @@ function Ys({
1279
1280
  ref: p,
1280
1281
  className: "flex items-center gap-2 rounded-[5px] border border-border bg-background px-2 focus-within:border-foreground/40",
1281
1282
  children: [
1282
- /* @__PURE__ */ e(ys, { className: "h-3 w-3 text-muted-foreground" }),
1283
+ /* @__PURE__ */ e(ws, { className: "h-3 w-3 text-muted-foreground" }),
1283
1284
  /* @__PURE__ */ e(
1284
1285
  "input",
1285
1286
  {
@@ -1296,7 +1297,7 @@ function Ys({
1296
1297
  ]
1297
1298
  }
1298
1299
  ),
1299
- b && typeof document < "u" && Zr(
1300
+ b && typeof document < "u" && es(
1300
1301
  /* @__PURE__ */ e(
1301
1302
  "div",
1302
1303
  {
@@ -1359,7 +1360,7 @@ function ya({
1359
1360
  )
1360
1361
  ] });
1361
1362
  }
1362
- function Xt({ children: t }) {
1363
+ function Yt({ children: t }) {
1363
1364
  return /* @__PURE__ */ e("label", { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: t });
1364
1365
  }
1365
1366
  function wa({ name: t }) {
@@ -1382,7 +1383,7 @@ function he(t, s) {
1382
1383
  var r;
1383
1384
  return ((r = aa(t, s)) == null ? void 0 : r.title) || s;
1384
1385
  }
1385
- function Zs(t) {
1386
+ function en(t) {
1386
1387
  const { errors: s, dashboard: r } = t;
1387
1388
  if (!r)
1388
1389
  return s;
@@ -1467,7 +1468,7 @@ function Zs(t) {
1467
1468
  }
1468
1469
  return Array.from(a.values());
1469
1470
  }
1470
- function en({
1471
+ function tn({
1471
1472
  visible: t,
1472
1473
  onSelect: s
1473
1474
  }) {
@@ -1476,7 +1477,7 @@ function en({
1476
1477
  "Schedule email report"
1477
1478
  ] }) : null;
1478
1479
  }
1479
- function tn({
1480
+ function an({
1480
1481
  scheduleReportVisible: t,
1481
1482
  analyticalBriefingVisible: s,
1482
1483
  onScheduleReport: r,
@@ -1484,7 +1485,7 @@ function tn({
1484
1485
  }) {
1485
1486
  return /* @__PURE__ */ n(T, { children: [
1486
1487
  /* @__PURE__ */ e(
1487
- en,
1488
+ tn,
1488
1489
  {
1489
1490
  visible: t,
1490
1491
  onSelect: r
@@ -1496,34 +1497,34 @@ function tn({
1496
1497
  ] }) : null
1497
1498
  ] });
1498
1499
  }
1499
- function Yt(t, s) {
1500
+ function Xt(t, s) {
1500
1501
  return {
1501
1502
  dashboard: ot(t),
1502
1503
  semanticExecutionPayload: ot(s)
1503
1504
  };
1504
1505
  }
1505
- function Dn() {
1506
+ function kn() {
1506
1507
  var Pt, Ut, Rt, Vt, Ft, Ot, Tt;
1507
- es(), ts();
1508
+ ts(), as();
1508
1509
  const {
1509
1510
  authToken: t,
1510
1511
  tokenProps: s,
1511
1512
  id: r,
1512
1513
  showBriefings: a
1513
- } = z(), o = br(), { isLocalDev: l } = xr(), { openBrandStudioPreview: h } = vr(), { permissions: m } = Is(), p = yr(), { isLoading: v } = wr(), d = D((i) => i.theme), u = D((i) => i.isDownloadingPdf), b = D(
1514
+ } = z(), o = br(), { isLocalDev: l } = xr(), { openBrandStudioPreview: h } = vr(), { permissions: m } = Ms(), p = yr(), { isLoading: v } = wr(), d = D((i) => i.theme), u = D((i) => i.isDownloadingPdf), b = D(
1514
1515
  (i) => i.dashboardAssistantDraftScopeKey
1515
1516
  ), f = D((i) => i.lenses), w = D((i) => i.selectedLensId), y = f == null ? void 0 : f.find((i) => i.id === w), c = D((i) => i.dashboard), M = D((i) => i.selectedSheetId), S = (Pt = c == null ? void 0 : c.sheets) == null ? void 0 : Pt.find(
1516
1517
  (i) => i.id === M
1517
1518
  ), P = ja(S), k = P ? (Ut = S == null ? void 0 : S.document) == null ? void 0 : Ut.page : void 0, x = D(
1518
1519
  (i) => i.isDashboardEditing
1519
- ), { setDashboardTitle: _ } = D((i) => i.actions), [q, j] = N(!1), [Be, K] = N(!1), [te, Q] = N(!1), [ae, re] = N(!1), [ye, ee] = N(null), [ze, se] = N(!1), [we, Ne] = N(!1), [_e, G] = N(!1), [g, R] = N(null), [ne, W] = N([]), [oe, J] = N(!1), [De, bt] = N(!1), xt = D((i) => i.filterValues), E = D((i) => i.isVisualEditing);
1520
- $t((i) => i.card);
1520
+ ), { setDashboardTitle: _ } = D((i) => i.actions), [q, j] = N(!1), [$e, K] = N(!1), [te, Q] = N(!1), [ae, re] = N(!1), [ye, ee] = N(null), [ze, se] = N(!1), [we, Ne] = N(!1), [_e, G] = N(!1), [g, R] = N(null), [ne, W] = N([]), [oe, J] = N(!1), [De, bt] = N(!1), xt = D((i) => i.filterValues), E = D((i) => i.isVisualEditing);
1521
+ Bt((i) => i.card);
1521
1522
  const ie = Fe(
1522
1523
  (i) => i.selectedDashboard
1523
1524
  ), Ce = Fe(
1524
1525
  (i) => i.initialDashboard
1525
1526
  );
1526
- Fe((i) => i.selectedVisual), D((i) => i.selectedFrameId), $t((i) => i.frame);
1527
+ Fe((i) => i.selectedVisual), D((i) => i.selectedFrameId), Bt((i) => i.frame);
1527
1528
  const ke = ie ? (Vt = ie == null ? void 0 : ie.permissions) == null ? void 0 : Vt.canEdit : (Rt = Ce == null ? void 0 : Ce.permissions) == null ? void 0 : Rt.canEdit, vt = D(
1528
1529
  (i) => i.showDashboardJSON
1529
1530
  ), qe = D((i) => i.onSaveFunction), {
@@ -1531,14 +1532,14 @@ function Dn() {
1531
1532
  setShowDashboardJSON: wt
1532
1533
  } = D((i) => i.actions), { setInitialDashboard: Nt, clearSelectedDashboard: He } = Fe(
1533
1534
  (i) => i.actions
1534
- ), de = !!s.orgUserId || !!(s.tenantId && s.endUserId && s.endUserEmail), { resources: Se } = Nr(at.DASHBOARD), { data: je } = Dr(), Na = ((Ft = je == null ? void 0 : je.preference) == null ? void 0 : Ft.defaultDashboardId) || null, { mutate: Da, isPending: Ca } = Cr(), { currentUser: ka } = ut(), Sa = kr(ka), $ = ie || Ce, Ie = Sr({
1535
+ ), de = !!s.orgUserId || !!(s.tenantId && s.endUserId && s.endUserEmail), { resources: Se } = Nr(at.DASHBOARD), { data: je } = Dr(), Na = ((Ft = je == null ? void 0 : je.preference) == null ? void 0 : Ft.defaultDashboardId) || null, { mutate: Da, isPending: Ca } = Cr(), { currentUser: ka } = ut(), Sa = kr(ka), B = ie || Ce, Ie = Sr({
1535
1536
  config: s.config,
1536
1537
  canNavigateDashboardHub: de,
1537
- canShareDashboard: ((Ot = $ == null ? void 0 : $.permissions) == null ? void 0 : Ot.canShare) === !0,
1538
+ canShareDashboard: ((Ot = B == null ? void 0 : B.permissions) == null ? void 0 : Ot.canShare) === !0,
1538
1539
  canManageGroups: Sa
1539
- }), Dt = $ ? {
1540
- id: $.id,
1541
- title: (c == null ? void 0 : c.title) || $.title || "Dashboard"
1540
+ }), Dt = B ? {
1541
+ id: B.id,
1542
+ title: (c == null ? void 0 : c.title) || B.title || "Dashboard"
1542
1543
  } : null, { handleAddNewFrame: Ia } = Ir(), [Ke, Qe] = N(!1), [Ma, le] = N(!1), [We, Me] = N("close"), ce = Mr(at.DASHBOARD), [V, Ee] = N(null), Ea = async (i, I) => {
1543
1544
  if (!(c != null && c.id)) {
1544
1545
  console.log("No dashboard ID found");
@@ -1563,7 +1564,7 @@ function Dn() {
1563
1564
  }
1564
1565
  );
1565
1566
  };
1566
- $e(() => {
1567
+ Be(() => {
1567
1568
  if (Se && Se.length > 0) {
1568
1569
  const i = c == null ? void 0 : c.id;
1569
1570
  if (i) {
@@ -1574,8 +1575,8 @@ function Dn() {
1574
1575
  }
1575
1576
  }
1576
1577
  }, [Se, c == null ? void 0 : c.id, Nt]);
1577
- const ue = s.orgUserId || s.tenantId, Je = Y(
1578
- () => an({
1578
+ const ue = s.orgUserId || s.tenantId, Je = X(
1579
+ () => rn({
1579
1580
  accessToken: t == null ? void 0 : t.accessToken,
1580
1581
  dashboardId: (c == null ? void 0 : c.id) || r || s.dashboard_id,
1581
1582
  selectedSheetId: P ? M : void 0,
@@ -1596,18 +1597,18 @@ function Dn() {
1596
1597
  ]
1597
1598
  ), Ct = x && !E && ue && ke, { setDashboard: kt } = D((i) => i.actions), St = D(
1598
1599
  (i) => i.semanticExecutionPayload
1599
- ), Aa = () => {
1600
+ ), La = () => {
1600
1601
  yt(!0);
1601
- }, Xe = () => {
1602
+ }, Ye = () => {
1602
1603
  yt(!1), wt(!1), Ee(null);
1603
1604
  };
1604
- $e(() => {
1605
+ Be(() => {
1605
1606
  if (!x) {
1606
1607
  V && Ee(null);
1607
1608
  return;
1608
1609
  }
1609
1610
  V || !c || v || Ee(
1610
- Yt(
1611
+ Xt(
1611
1612
  c,
1612
1613
  St
1613
1614
  )
@@ -1619,16 +1620,16 @@ function Dn() {
1619
1620
  v,
1620
1621
  St
1621
1622
  ]);
1622
- const Ae = (V == null ? void 0 : V.dashboard) ?? null, { isDirty: It, isDirtyPending: La, resetDirty: Le } = ms(
1623
+ const Le = (V == null ? void 0 : V.dashboard) ?? null, { isDirty: It, isDirtyPending: Aa, resetDirty: Ae } = ps(
1623
1624
  c,
1624
- Ae,
1625
+ Le,
1625
1626
  300,
1626
1627
  1e3,
1627
1628
  rt
1628
- ), Mt = Yr(() => Ae ? rt(c) !== rt(Ae) : !1, [c, Ae]), Et = It || La, Pe = Ke || ce.isPending, Pa = () => {
1629
- Mt() ? (Me("close"), le(!0)) : (Xe(), Le());
1629
+ ), Mt = Zr(() => Le ? rt(c) !== rt(Le) : !1, [c, Le]), Et = It || Aa, Pe = Ke || ce.isPending, Pa = () => {
1630
+ Mt() ? (Me("close"), le(!0)) : (Ye(), Ae());
1630
1631
  }, Ua = async () => {
1631
- await Ye({
1632
+ await Xe({
1632
1633
  closeAfterSave: !0,
1633
1634
  navigateHomeAfterSave: We === "home"
1634
1635
  });
@@ -1636,11 +1637,11 @@ function Dn() {
1636
1637
  const i = We === "home" && !!de;
1637
1638
  V && kt(V.dashboard, {
1638
1639
  semanticExecutionPayload: V.semanticExecutionPayload
1639
- }), Xe(), i && He(), Me("close"), le(!1), Le();
1640
+ }), Ye(), i && He(), Me("close"), le(!1), Ae();
1640
1641
  }, Va = () => {
1641
1642
  V && (kt(V.dashboard, {
1642
1643
  semanticExecutionPayload: V.semanticExecutionPayload
1643
- }), Le());
1644
+ }), Ae());
1644
1645
  }, Fa = () => {
1645
1646
  if (de) {
1646
1647
  if (x && Mt()) {
@@ -1650,7 +1651,7 @@ function Dn() {
1650
1651
  He();
1651
1652
  }
1652
1653
  };
1653
- async function Ye(i) {
1654
+ async function Xe(i) {
1654
1655
  const I = D.getState().dashboard;
1655
1656
  if (!I)
1656
1657
  return;
@@ -1658,40 +1659,40 @@ function Dn() {
1658
1659
  J(F), F && le(!1);
1659
1660
  const et = ot(I);
1660
1661
  G(!0), R(null), W([]), Qe(!0);
1661
- const Ba = {
1662
+ const $a = {
1662
1663
  template: I
1663
1664
  };
1664
1665
  ce.mutate(
1665
1666
  {
1666
1667
  resourceId: I.id,
1667
- data: Ba
1668
+ data: $a
1668
1669
  },
1669
1670
  {
1670
- onSuccess: (A) => {
1671
+ onSuccess: (L) => {
1671
1672
  var Ue, Re, Gt;
1672
- const X = (A == null ? void 0 : A.id) || ((Ue = A == null ? void 0 : A.dashboard) == null ? void 0 : Ue.id) || ((Re = A == null ? void 0 : A.resource) == null ? void 0 : Re.id) || ((Gt = A == null ? void 0 : A.template) == null ? void 0 : Gt.id) || null;
1673
- if (!I.id && X) {
1674
- const tt = Ya.getState(), Ve = tt.pendingDashboardDraftMigration;
1673
+ const Y = (L == null ? void 0 : L.id) || ((Ue = L == null ? void 0 : L.dashboard) == null ? void 0 : Ue.id) || ((Re = L == null ? void 0 : L.resource) == null ? void 0 : Re.id) || ((Gt = L == null ? void 0 : L.template) == null ? void 0 : Gt.id) || null;
1674
+ if (!I.id && Y) {
1675
+ const tt = Xa.getState(), Ve = tt.pendingDashboardDraftMigration;
1675
1676
  (Ve == null ? void 0 : Ve.scopeKey) === b ? tt.actions.setPendingDashboardDraftMigrationExpectedDashboardId(
1676
- X
1677
+ Y
1677
1678
  ) : Ve && tt.actions.clearPendingDashboardDraftMigration();
1678
1679
  }
1679
1680
  Qe(!1), C.success("Dashboard saved!"), Ee(
1680
- Yt(
1681
+ Xt(
1681
1682
  et,
1682
1683
  D.getState().semanticExecutionPayload
1683
1684
  )
1684
- ), G(!1), J(!1), F && (Xe(), Le(), Ze && de && He()), Me("close");
1685
+ ), G(!1), J(!1), F && (Ye(), Ae(), Ze && de && He()), Me("close");
1685
1686
  },
1686
- onError: (A) => {
1687
+ onError: (L) => {
1687
1688
  Qe(!1), R("Failed to save dashboard. Please try again.");
1688
- const X = A.details, Ue = Array.isArray(
1689
- X == null ? void 0 : X.errors
1690
- ) ? (X.errors || []).filter(
1689
+ const Y = L.details, Ue = Array.isArray(
1690
+ Y == null ? void 0 : Y.errors
1691
+ ) ? (Y.errors || []).filter(
1691
1692
  (Re) => typeof Re == "string"
1692
1693
  ) : [];
1693
1694
  W(
1694
- Zs({
1695
+ en({
1695
1696
  errors: Ue,
1696
1697
  dashboard: I || void 0
1697
1698
  })
@@ -1726,19 +1727,19 @@ function Dn() {
1726
1727
  t == null ? void 0 : t.accessToken
1727
1728
  ), C.success("Lens saved"), qe == null || qe(i), j(!1);
1728
1729
  }
1729
- const At = (y == null ? void 0 : y.name) || c.title;
1730
+ const Lt = (y == null ? void 0 : y.name) || c.title;
1730
1731
  ce.isPending && console.log("Title during update:", {
1731
- title: At,
1732
+ title: Lt,
1732
1733
  dashboardStateTitle: c.title,
1733
1734
  dashboardId: c == null ? void 0 : c.id,
1734
1735
  currentLensName: y == null ? void 0 : y.name
1735
1736
  });
1736
- const Ta = de && !!(t != null && t.accessToken) && !!(s != null && s.apiServiceUrl), Ga = p && Ie.showDashboardHub, B = (c == null ? void 0 : c.id) || null, Lt = Er(
1737
+ const Ta = de && !!(t != null && t.accessToken) && !!(s != null && s.apiServiceUrl), Ga = p && Ie.showDashboardHub, $ = (c == null ? void 0 : c.id) || null, At = Er(
1737
1738
  (Tt = s.config) == null ? void 0 : Tt.showBriefings,
1738
1739
  a
1739
- ), me = !!B && Na === B, $a = () => {
1740
- B && Da({
1741
- dashboardId: me ? null : B
1740
+ ), me = !!$ && Na === $, Ba = () => {
1741
+ $ && Da({
1742
+ dashboardId: me ? null : $
1742
1743
  });
1743
1744
  };
1744
1745
  return !p && !E ? null : /* @__PURE__ */ n(
@@ -1769,9 +1770,9 @@ function Dn() {
1769
1770
  }
1770
1771
  ) : /* @__PURE__ */ n(T, { children: [
1771
1772
  /* @__PURE__ */ e(
1772
- Ar,
1773
+ Lr,
1773
1774
  {
1774
- value: At || "Untitled Dashboard",
1775
+ value: Lt || "Untitled Dashboard",
1775
1776
  onSave: (i) => {
1776
1777
  console.log("EditableText onSave called:", {
1777
1778
  newTitle: i,
@@ -1781,7 +1782,11 @@ function Dn() {
1781
1782
  const I = (c == null ? void 0 : c.title) || "";
1782
1783
  _(i), Ea(i, I);
1783
1784
  },
1784
- isEditable: ke && !y,
1785
+ isEditable: Ar({
1786
+ isDashboardEditing: x,
1787
+ canEditDashboard: ke === !0,
1788
+ hasCurrentLens: !!y
1789
+ }),
1785
1790
  displayClassName: "text-[13px] font-medium",
1786
1791
  inputClassName: "text-[13px] font-medium",
1787
1792
  placeholder: "Dashboard Title",
@@ -1796,17 +1801,17 @@ function Dn() {
1796
1801
  children: "Default"
1797
1802
  }
1798
1803
  ),
1799
- Ta && B && /* @__PURE__ */ e(Ka, { children: /* @__PURE__ */ n(Qa, { children: [
1804
+ Ta && $ && /* @__PURE__ */ e(Ka, { children: /* @__PURE__ */ n(Qa, { children: [
1800
1805
  /* @__PURE__ */ e(Wa, { asChild: !0, children: /* @__PURE__ */ e(
1801
1806
  U,
1802
1807
  {
1803
1808
  variant: "ghost",
1804
1809
  size: "xs",
1805
- onClick: $a,
1810
+ onClick: Ba,
1806
1811
  disabled: Ca || !(t != null && t.accessToken) || !(s != null && s.apiServiceUrl),
1807
1812
  className: "w-7 px-0 text-muted-foreground hover:text-foreground",
1808
1813
  "aria-label": me ? "Clear default dashboard" : "Set as default dashboard",
1809
- children: me ? /* @__PURE__ */ e(Lr, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ e(Pr, { className: "h-3.5 w-3.5" })
1814
+ children: me ? /* @__PURE__ */ e(Pr, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ e(Ur, { className: "h-3.5 w-3.5" })
1810
1815
  }
1811
1816
  ) }),
1812
1817
  /* @__PURE__ */ e(Ja, { children: /* @__PURE__ */ e("p", { children: me ? "Clear default" : "Set as default" }) })
@@ -1815,8 +1820,8 @@ function Dn() {
1815
1820
  ] }),
1816
1821
  /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
1817
1822
  E && /* @__PURE__ */ n(T, { children: [
1818
- /* @__PURE__ */ e(as, {}),
1819
- /* @__PURE__ */ e(rs, {})
1823
+ /* @__PURE__ */ e(rs, {}),
1824
+ /* @__PURE__ */ e(ss, {})
1820
1825
  ] }),
1821
1826
  !E && p && Ie.showDashboardSharing && /* @__PURE__ */ n(
1822
1827
  U,
@@ -1825,12 +1830,12 @@ function Dn() {
1825
1830
  size: "xs",
1826
1831
  onClick: () => K(!0),
1827
1832
  children: [
1828
- /* @__PURE__ */ e(Ur, { className: "h-3.5 w-3.5" }),
1833
+ /* @__PURE__ */ e(Rr, { className: "h-3.5 w-3.5" }),
1829
1834
  "Share"
1830
1835
  ]
1831
1836
  }
1832
1837
  ),
1833
- !E && x && m.canUseFilters && p && /* @__PURE__ */ e(ss, {}),
1838
+ !E && x && m.canUseFilters && p && /* @__PURE__ */ e(ns, {}),
1834
1839
  x && !E && ue && y && l && p && /* @__PURE__ */ n(
1835
1840
  U,
1836
1841
  {
@@ -1868,7 +1873,7 @@ function Dn() {
1868
1873
  className: "h-full w-7 rounded-none border-0 border-l border-border/60 px-0 shadow-none hover:bg-accent",
1869
1874
  "aria-label": "Open visual options",
1870
1875
  disabled: !x,
1871
- children: /* @__PURE__ */ e(Jr, { className: "h-3.5 w-3.5" })
1876
+ children: /* @__PURE__ */ e(Yr, { className: "h-3.5 w-3.5" })
1872
1877
  }
1873
1878
  ) }),
1874
1879
  /* @__PURE__ */ e(
@@ -1884,15 +1889,15 @@ function Dn() {
1884
1889
  )
1885
1890
  ] }),
1886
1891
  /* @__PURE__ */ e(
1887
- ns,
1892
+ os,
1888
1893
  {
1889
1894
  open: De,
1890
1895
  onOpenChange: bt
1891
1896
  }
1892
1897
  )
1893
1898
  ] }),
1894
- !E && !x && ke && p && /* @__PURE__ */ n(U, { size: "xs", onClick: Aa, children: [
1895
- /* @__PURE__ */ e(Rr, { className: "h-3.5 w-3.5" }),
1899
+ !E && !x && ke && p && /* @__PURE__ */ n(U, { size: "xs", onClick: La, children: [
1900
+ /* @__PURE__ */ e(Vr, { className: "h-3.5 w-3.5" }),
1896
1901
  "Edit"
1897
1902
  ] }),
1898
1903
  Ct && p && It && /* @__PURE__ */ n(
@@ -1903,7 +1908,7 @@ function Dn() {
1903
1908
  onClick: Va,
1904
1909
  disabled: Pe,
1905
1910
  children: [
1906
- /* @__PURE__ */ e(Vr, { className: "h-3.5 w-3.5" }),
1911
+ /* @__PURE__ */ e(Fr, { className: "h-3.5 w-3.5" }),
1907
1912
  "Undo"
1908
1913
  ]
1909
1914
  }
@@ -1914,7 +1919,7 @@ function Dn() {
1914
1919
  size: "xs",
1915
1920
  className: ge(!Et && "opacity-60"),
1916
1921
  disabled: Pe || !Et,
1917
- onClick: () => Ye(),
1922
+ onClick: () => Xe(),
1918
1923
  children: [
1919
1924
  Pe ? /* @__PURE__ */ e(Ge, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ e(Wt, { className: "h-3.5 w-3.5" }),
1920
1925
  Pe ? "Saving..." : "Save"
@@ -1925,8 +1930,8 @@ function Dn() {
1925
1930
  /* @__PURE__ */ e(oa, { className: "h-3.5 w-3.5" }),
1926
1931
  "Close"
1927
1932
  ] }),
1928
- !E && p && /* @__PURE__ */ e("div", { className: "ml-2", children: /* @__PURE__ */ e(os, {}) }),
1929
- !E && l && /* @__PURE__ */ e(ws, {}),
1933
+ !E && p && /* @__PURE__ */ e("div", { className: "ml-2", children: /* @__PURE__ */ e(is, {}) }),
1934
+ !E && l && /* @__PURE__ */ e(Ns, {}),
1930
1935
  !E && p && /* @__PURE__ */ n(_t, { children: [
1931
1936
  /* @__PURE__ */ e(qt, { asChild: !0, children: /* @__PURE__ */ e(
1932
1937
  zt,
@@ -1938,7 +1943,7 @@ function Dn() {
1938
1943
  variant: "ghost",
1939
1944
  "aria-label": "More dashboard options"
1940
1945
  },
1941
- children: /* @__PURE__ */ e(Fr, { className: "h-3.5 w-3.5" })
1946
+ children: /* @__PURE__ */ e(Or, { className: "h-3.5 w-3.5" })
1942
1947
  }
1943
1948
  ) }),
1944
1949
  /* @__PURE__ */ n(
@@ -1954,16 +1959,16 @@ function Dn() {
1954
1959
  disabled: u,
1955
1960
  onSelect: () => Ne(!0),
1956
1961
  children: [
1957
- /* @__PURE__ */ e(Or, { className: "h-3.5 w-3.5" }),
1962
+ /* @__PURE__ */ e(Tr, { className: "h-3.5 w-3.5" }),
1958
1963
  "Export"
1959
1964
  ]
1960
1965
  }
1961
1966
  ),
1962
1967
  /* @__PURE__ */ e(
1963
- tn,
1968
+ an,
1964
1969
  {
1965
- scheduleReportVisible: !!(Lt && o.surfaceVisible && B && !x),
1966
- analyticalBriefingVisible: !!(Lt && o.surfaceVisible && B && !x),
1970
+ scheduleReportVisible: !!(At && o.surfaceVisible && $ && !x),
1971
+ analyticalBriefingVisible: !!(At && o.surfaceVisible && $ && !x),
1967
1972
  onScheduleReport: () => ee("scheduled_report"),
1968
1973
  onCreateAnalyticalBriefing: () => ee("analytical_briefing")
1969
1974
  }
@@ -1986,7 +1991,7 @@ function Dn() {
1986
1991
  /* @__PURE__ */ e(fe, { children: "Preferences" }),
1987
1992
  /* @__PURE__ */ n(O, { onClick: () => re(!0), children: [
1988
1993
  /* @__PURE__ */ e(la, { className: "h-3.5 w-3.5" }),
1989
- "Calendar Preferences"
1994
+ "Report preferences"
1990
1995
  ] }),
1991
1996
  l && p && /* @__PURE__ */ n(T, { children: [
1992
1997
  /* @__PURE__ */ e(Te, {}),
@@ -2037,15 +2042,15 @@ function Dn() {
2037
2042
  /* @__PURE__ */ n(
2038
2043
  O,
2039
2044
  {
2040
- onSelect: () => Xa(s.apiServiceUrl),
2045
+ onSelect: () => Ya(s.apiServiceUrl),
2041
2046
  children: [
2042
- /* @__PURE__ */ e(xs, { className: "h-3.5 w-3.5" }),
2047
+ /* @__PURE__ */ e(vs, { className: "h-3.5 w-3.5" }),
2043
2048
  "Invalidate token"
2044
2049
  ]
2045
2050
  }
2046
2051
  ),
2047
2052
  /* @__PURE__ */ n(O, { onSelect: h, children: [
2048
- /* @__PURE__ */ e(ps, { className: "h-3.5 w-3.5" }),
2053
+ /* @__PURE__ */ e(hs, { className: "h-3.5 w-3.5" }),
2049
2054
  "Brand Studio"
2050
2055
  ] }),
2051
2056
  x && /* @__PURE__ */ n(
@@ -2053,7 +2058,7 @@ function Dn() {
2053
2058
  {
2054
2059
  onSelect: () => wt(!vt),
2055
2060
  children: [
2056
- /* @__PURE__ */ e(hs, { className: "h-3.5 w-3.5" }),
2061
+ /* @__PURE__ */ e(fs, { className: "h-3.5 w-3.5" }),
2057
2062
  vt ? "Hide dashboard JSON" : "Show dashboard JSON"
2058
2063
  ]
2059
2064
  }
@@ -2062,20 +2067,20 @@ function Dn() {
2062
2067
  /* @__PURE__ */ e(H, { className: "h-3.5 w-3.5" }),
2063
2068
  "Add lens"
2064
2069
  ] }),
2065
- ue && /* @__PURE__ */ n(Tr, { children: [
2066
- /* @__PURE__ */ n(Gr, { children: [
2067
- /* @__PURE__ */ e(fs, { className: "h-3.5 w-3.5" }),
2070
+ ue && /* @__PURE__ */ n(Gr, { children: [
2071
+ /* @__PURE__ */ n(Br, { children: [
2072
+ /* @__PURE__ */ e(gs, { className: "h-3.5 w-3.5" }),
2068
2073
  "Lenses"
2069
2074
  ] }),
2070
- /* @__PURE__ */ e($r, { className: "w-60", children: /* @__PURE__ */ e(Ss, {}) })
2075
+ /* @__PURE__ */ e($r, { className: "w-60", children: /* @__PURE__ */ e(Is, {}) })
2071
2076
  ] })
2072
2077
  ] })
2073
2078
  ]
2074
2079
  }
2075
2080
  )
2076
2081
  ] }),
2077
- Be && Dt && /* @__PURE__ */ e(
2078
- Br,
2082
+ $e && Dt && /* @__PURE__ */ e(
2083
+ zr,
2079
2084
  {
2080
2085
  resource: Dt,
2081
2086
  resourceType: at.DASHBOARD,
@@ -2083,24 +2088,24 @@ function Dn() {
2083
2088
  }
2084
2089
  ),
2085
2090
  Ie.showGroupManagement && /* @__PURE__ */ e(
2086
- js,
2091
+ Ks,
2087
2092
  {
2088
2093
  open: te,
2089
2094
  onOpenChange: Q
2090
2095
  }
2091
2096
  ),
2092
2097
  /* @__PURE__ */ e(
2093
- us,
2098
+ ms,
2094
2099
  {
2095
2100
  open: ae,
2096
2101
  onOpenChange: re
2097
2102
  }
2098
2103
  ),
2099
- B && ye ? /* @__PURE__ */ e(
2100
- is,
2104
+ $ && ye ? /* @__PURE__ */ e(
2105
+ ds,
2101
2106
  {
2102
- dashboardId: B,
2103
- dashboardTitle: (c == null ? void 0 : c.title) || ($ == null ? void 0 : $.title),
2107
+ dashboardId: $,
2108
+ dashboardTitle: (c == null ? void 0 : c.title) || (B == null ? void 0 : B.title),
2104
2109
  open: !0,
2105
2110
  onOpenChange: (i) => {
2106
2111
  i || ee(null);
@@ -2109,33 +2114,33 @@ function Dn() {
2109
2114
  workflowIntent: ye
2110
2115
  }
2111
2116
  ) : null,
2112
- l && ue && p && /* @__PURE__ */ e(ks, { open: ze, onOpenChange: se }),
2117
+ l && ue && p && /* @__PURE__ */ e(Ss, { open: ze, onOpenChange: se }),
2113
2118
  p && /* @__PURE__ */ e(
2114
- zr,
2119
+ _r,
2115
2120
  {
2116
2121
  open: we,
2117
2122
  onOpenChange: Ne
2118
2123
  }
2119
2124
  ),
2120
2125
  /* @__PURE__ */ e(
2121
- _r,
2126
+ qr,
2122
2127
  {
2123
2128
  open: _e,
2124
2129
  onOpenChange: (i) => {
2125
2130
  !i && Ke && !g || (G(i), i || (R(null), W([]), J(!1)));
2126
2131
  },
2127
- children: /* @__PURE__ */ n(qr, { className: "max-w-sm", children: [
2128
- /* @__PURE__ */ n(Hr, { children: [
2129
- /* @__PURE__ */ e(jr, { children: g ? "Save failed" : "Saving dashboard" }),
2130
- /* @__PURE__ */ e(Kr, { className: "pt-2", children: g ? "We could not save the dashboard. Please try again." : "Please wait while we save your changes." }),
2132
+ children: /* @__PURE__ */ n(Hr, { className: "max-w-sm", children: [
2133
+ /* @__PURE__ */ n(jr, { children: [
2134
+ /* @__PURE__ */ e(Kr, { children: g ? "Save failed" : "Saving dashboard" }),
2135
+ /* @__PURE__ */ e(Qr, { className: "pt-2", children: g ? "We could not save the dashboard. Please try again." : "Please wait while we save your changes." }),
2131
2136
  ne.length > 0 && /* @__PURE__ */ n("div", { className: "space-y-1 rounded-md border border-destructive/20 bg-destructive/5 p-3 text-left", children: [
2132
2137
  /* @__PURE__ */ e("div", { className: "text-sm font-medium text-destructive", children: "What needs attention" }),
2133
2138
  /* @__PURE__ */ e("ul", { className: "list-disc space-y-1 pl-4 text-xs text-muted-foreground", children: ne.slice(0, 5).map((i) => /* @__PURE__ */ e("li", { children: i }, i)) })
2134
2139
  ] })
2135
2140
  ] }),
2136
- /* @__PURE__ */ e(Qr, { className: "flex-col gap-2 sm:flex-row sm:justify-end", children: g ? /* @__PURE__ */ n(T, { children: [
2141
+ /* @__PURE__ */ e(Wr, { className: "flex-col gap-2 sm:flex-row sm:justify-end", children: g ? /* @__PURE__ */ n(T, { children: [
2137
2142
  /* @__PURE__ */ e(
2138
- Wr,
2143
+ Jr,
2139
2144
  {
2140
2145
  onClick: () => {
2141
2146
  G(!1), R(null), W([]), J(!1);
@@ -2147,7 +2152,7 @@ function Dn() {
2147
2152
  /* @__PURE__ */ e(
2148
2153
  Kt,
2149
2154
  {
2150
- onClick: () => Ye({
2155
+ onClick: () => Xe({
2151
2156
  closeAfterSave: oe,
2152
2157
  navigateHomeAfterSave: We === "home"
2153
2158
  }),
@@ -2163,7 +2168,7 @@ function Dn() {
2163
2168
  }
2164
2169
  ),
2165
2170
  /* @__PURE__ */ e(
2166
- ds,
2171
+ ls,
2167
2172
  {
2168
2173
  open: Ma,
2169
2174
  onOpenChange: (i) => {
@@ -2181,7 +2186,7 @@ function Dn() {
2181
2186
  }
2182
2187
  );
2183
2188
  }
2184
- function an({
2189
+ function rn({
2185
2190
  accessToken: t,
2186
2191
  dashboardId: s,
2187
2192
  selectedSheetId: r,
@@ -2197,5 +2202,5 @@ function an({
2197
2202
  return m.searchParams.set("pdfMode", "document"), m.searchParams.set("pageSize", a || "letter"), m.searchParams.set("orientation", o || "portrait"), m.searchParams.set("url", h.toString()), m.toString();
2198
2203
  }
2199
2204
  export {
2200
- Dn as default
2205
+ kn as default
2201
2206
  };