react-semaphor 0.1.483 → 0.1.484

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 (25) hide show
  1. package/dist/chunks/{dashboard-briefing-launcher-CCo-tyt1.js → dashboard-briefing-launcher-DRDcW4mQ.js} +2 -2
  2. package/dist/chunks/{dashboard-briefing-launcher-SjUYBRde.cjs → dashboard-briefing-launcher-D_kXgE3t.cjs} +1 -1
  3. package/dist/chunks/{dashboard-controls-D0rRra6q.js → dashboard-controls-977Q-WRS.js} +230 -226
  4. package/dist/chunks/dashboard-controls-Ct7DmF75.cjs +52 -0
  5. package/dist/chunks/{dashboard-json-B2gej33z.js → dashboard-json-CACL_cT0.js} +1 -1
  6. package/dist/chunks/{dashboard-json-CkBPnsxB.cjs → dashboard-json-D_isBS5e.cjs} +1 -1
  7. package/dist/chunks/{edit-dashboard-visual-CiuJ6CVM.cjs → edit-dashboard-visual-B07XUER6.cjs} +1 -1
  8. package/dist/chunks/{edit-dashboard-visual-Dqde1zgg.js → edit-dashboard-visual-HJ-j-JY7.js} +2 -2
  9. package/dist/chunks/{editor-action-buttons-5t5tU5r3.cjs → editor-action-buttons-BkEqVLGi.cjs} +1 -1
  10. package/dist/chunks/{editor-action-buttons-Cwu9P_LX.js → editor-action-buttons-cmb--PWY.js} +1 -1
  11. package/dist/chunks/{index-I4TbmEn2.cjs → index-BtTPcpTa.cjs} +145 -145
  12. package/dist/chunks/{index-CIMKtcRh.js → index-D9rSByc1.js} +3351 -3349
  13. package/dist/chunks/{report-preferences-dialog-DHOl809j.js → report-preferences-dialog-CTc9nwkP.js} +1 -1
  14. package/dist/chunks/{report-preferences-dialog-CFr6WG6r.cjs → report-preferences-dialog-DgNi-Omm.cjs} +1 -1
  15. package/dist/dashboard/index.cjs +1 -1
  16. package/dist/dashboard/index.js +1 -1
  17. package/dist/data-app-builder/index.cjs +1 -1
  18. package/dist/data-app-builder/index.js +1 -1
  19. package/dist/index.cjs +1 -1
  20. package/dist/index.js +4 -4
  21. package/dist/style.css +1 -1
  22. package/dist/surfboard/index.cjs +1 -1
  23. package/dist/surfboard/index.js +2 -2
  24. package/package.json +1 -1
  25. package/dist/chunks/dashboard-controls-DfbxzqR2.cjs +0 -52
@@ -1,37 +1,37 @@
1
1
  import { jsx as e, jsxs as o, Fragment as T } from "react/jsx-runtime";
2
- import { u as S, B as R, ax as mt, z as sr, O as na, Z as sa, c as be, ay as oa, az as ia, aA as ot, aB as xe, aC as pt, aD as or, L as Be, aE as ir, aF as da, D as $t, Q as Gt, V as Bt, W as zt, Y as Ht, X as la, i as ca, aG as ua } from "./switch-CZt_oBQ2.js";
3
- import { bw as ma, bx as pa, ay as q, aG as dr, by as ha, aY as K, aH as lr, aI as fa, aJ as it, aK as dt, aE as ga, bz as ge, bA as Ge, bB as ba, bC as jt, bD as cr, bE as ur, bF as xa, bG as ht, bH as va, bI as ya, bJ as wa, bK as Na, bL as Sa, bM as Da, b7 as ve, bN as ye, aF as C, bO as Ca, bP as mr, bk as ft, bQ as ka, bR as Ea, bS as pr, bT as La, bU as hr, bV as V, bW as Ia, ao as Ma, bX as Aa, bY as Pa, bZ as Oa, b_ as _a, m as Ra, u as Fe, s as Ua, n as rt, b$ as Va, c0 as Ta, c1 as Fa, c2 as $a, L as Ga, c3 as Ba, c4 as za, I as qt, c5 as Ha, c6 as ja, c7 as qa, c8 as Ka, c9 as Wa, ca as Kt, cb as Wt, cc as Qt, cd as Qa, ce as Ja, cf as Ya, cg as Xa, b0 as Jt, ch as Za, ci as en, cj as tn, r as rn, ck as an, aO as nn, aR as sn, aS as on, aT as dn, aU as ln, aV as cn, aW as un, aX as Yt } from "./index-CIMKtcRh.js";
4
- import { c as ee, X as fr, C as mn } from "./x-CXDkqdur.js";
2
+ import { u as S, B as R, ax as mt, z as sr, O as na, Z as sa, c as oe, ay as oa, az as ia, aA as ot, aB as xe, aC as pt, aD as or, L as Be, aE as ir, aF as da, D as $t, Q as Gt, V as Bt, W as zt, Y as Ht, X as la, i as ca, aG as ua } from "./switch-CZt_oBQ2.js";
3
+ import { bw as ma, bx as pa, ay as q, aG as dr, by as ha, aY as K, aH as lr, aI as fa, aJ as it, aK as dt, aE as ga, bz as be, bA as Ge, bB as ba, bC as jt, bD as cr, bE as ur, bF as xa, bG as ht, bH as va, bI as ya, bJ as wa, bK as Na, bL as Sa, bM as Da, b7 as ve, bN as ye, aF as C, bO as Ca, bP as mr, bk as ft, bQ as ka, bR as Ea, bS as pr, bT as La, bU as hr, bV as V, bW as Ia, ao as Ma, bX as Aa, bY as Oa, bZ as Pa, b_ as _a, m as Ra, u as Fe, s as Ua, n as rt, b$ as Va, c0 as Ta, c1 as Fa, c2 as $a, L as Ga, c3 as Ba, c4 as za, I as qt, c5 as Ha, c6 as ja, c7 as qa, c8 as Ka, c9 as Kt, ca as Wt, cb as Qt, cc as Wa, cd as Qa, ce as Ja, cf as Ya, b0 as Jt, cg as Xa, ch as Za, ci as en, r as tn, cj as rn, aO as an, aR as nn, aS as sn, aT as on, aU as dn, aV as ln, aW as cn, aX as Yt } from "./index-D9rSByc1.js";
4
+ import { c as ee, X as fr, C as un } from "./x-CXDkqdur.js";
5
5
  import "./card-config-utils-CyDKaPNT.js";
6
6
  import "./validators-D3AarM2T.js";
7
7
  import "./analyze-result-contract-DsiAzCYn.js";
8
8
  import "../value-format-preferences/index.js";
9
9
  import * as I from "react";
10
- import gr, { useState as N, useMemo as Z, useEffect as ze, useRef as Xt, useLayoutEffect as pn, useCallback as hn } from "react";
10
+ import gr, { useState as N, useMemo as Z, useEffect as ze, useRef as Xt, useLayoutEffect as mn, useCallback as pn } from "react";
11
11
  import "./appearance-context-DVXt8qjW.js";
12
12
  import "./index-DSKR3nKn.js";
13
13
  import "./temporal-bucket-authoring-CyTCHy1K.js";
14
14
  import "./color-CJvdlFM_.js";
15
- import { createPortal as fn } from "react-dom";
15
+ import { createPortal as hn } from "react-dom";
16
16
  import "./index-BvRREsU9.js";
17
17
  import "./appearance-runtime-provider-CjmE4gBY.js";
18
- import { c as gn, u as bn, A as xn, a as vn, f as yn, V as wn, N as Nn, g as Sn, U as Dn } from "./dashboard-briefing-launcher-CCo-tyt1.js";
19
- import { S as Cn, C as kn } from "./search-BHsQIWBV.js";
18
+ import { c as fn, u as gn, A as bn, a as xn, f as vn, V as yn, N as wn, g as Nn, U as Sn } from "./dashboard-briefing-launcher-DRDcW4mQ.js";
19
+ import { S as Dn, C as Cn } from "./search-BHsQIWBV.js";
20
20
  import { d as br } from "./index-BS0_dp0l.js";
21
21
  import { c as lt } from "./dashboard-filter-value-compatibility-DQkUs41q.js";
22
- import { R as En } from "./report-preferences-dialog-DHOl809j.js";
23
- import { u as Ln } from "./use-debounced-dirty-check-BwAbnX_5.js";
22
+ import { R as kn } from "./report-preferences-dialog-CTc9nwkP.js";
23
+ import { u as En } from "./use-debounced-dirty-check-BwAbnX_5.js";
24
24
  import { s as at } from "./normalize-dashboard-for-dirty-check-5KpZN8xr.js";
25
25
  import { S as Zt } from "./save-DgMfP0j8.js";
26
- import { P as In } from "./palette-Cp1hqZtm.js";
27
- import { B as Mn } from "./braces-8TRlDwDw.js";
26
+ import { P as Ln } from "./palette-Cp1hqZtm.js";
27
+ import { B as In } from "./braces-8TRlDwDw.js";
28
28
  /**
29
29
  * @license lucide-react v0.453.0 - ISC
30
30
  *
31
31
  * This source code is licensed under the ISC license.
32
32
  * See the LICENSE file in the root directory of this source tree.
33
33
  */
34
- const An = ee("Glasses", [
34
+ const Mn = ee("Glasses", [
35
35
  ["circle", { cx: "6", cy: "15", r: "4", key: "vux9w4" }],
36
36
  ["circle", { cx: "18", cy: "15", r: "4", key: "18o8ve" }],
37
37
  ["path", { d: "M14 15a2 2 0 0 0-2-2 2 2 0 0 0-2 2", key: "1ag4bs" }],
@@ -44,7 +44,7 @@ const An = ee("Glasses", [
44
44
  * This source code is licensed under the ISC license.
45
45
  * See the LICENSE file in the root directory of this source tree.
46
46
  */
47
- const Pn = ee("Monitor", [
47
+ const An = ee("Monitor", [
48
48
  ["rect", { width: "20", height: "14", x: "2", y: "3", rx: "2", key: "48i651" }],
49
49
  ["line", { x1: "8", x2: "16", y1: "21", y2: "21", key: "1svkeh" }],
50
50
  ["line", { x1: "12", x2: "12", y1: "17", y2: "21", key: "vw1qmm" }]
@@ -64,7 +64,7 @@ const On = ee("Moon", [
64
64
  * This source code is licensed under the ISC license.
65
65
  * See the LICENSE file in the root directory of this source tree.
66
66
  */
67
- const _n = ee("ShieldX", [
67
+ const Pn = ee("ShieldX", [
68
68
  [
69
69
  "path",
70
70
  {
@@ -81,7 +81,7 @@ const _n = ee("ShieldX", [
81
81
  * This source code is licensed under the ISC license.
82
82
  * See the LICENSE file in the root directory of this source tree.
83
83
  */
84
- const Rn = ee("Sun", [
84
+ const _n = ee("Sun", [
85
85
  ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
86
86
  ["path", { d: "M12 2v2", key: "tus03m" }],
87
87
  ["path", { d: "M12 20v2", key: "1lh1kg" }],
@@ -98,7 +98,7 @@ const Rn = ee("Sun", [
98
98
  * This source code is licensed under the ISC license.
99
99
  * See the LICENSE file in the root directory of this source tree.
100
100
  */
101
- const Un = ee("UserPlus", [
101
+ const Rn = ee("UserPlus", [
102
102
  ["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", key: "1yyitq" }],
103
103
  ["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }],
104
104
  ["line", { x1: "19", x2: "19", y1: "8", y2: "14", key: "1bvyxn" }],
@@ -125,7 +125,7 @@ var ct = { exports: {} }, nt = {};
125
125
  * LICENSE file in the root directory of this source tree.
126
126
  */
127
127
  var er;
128
- function Vn() {
128
+ function Un() {
129
129
  if (er) return nt;
130
130
  er = 1;
131
131
  var t = gr;
@@ -176,7 +176,7 @@ var st = {};
176
176
  * LICENSE file in the root directory of this source tree.
177
177
  */
178
178
  var tr;
179
- function Tn() {
179
+ function Vn() {
180
180
  return tr || (tr = 1, process.env.NODE_ENV !== "production" && function() {
181
181
  function t(i, x) {
182
182
  return i === x && (i !== 0 || 1 / i === 1 / x) || i !== i && x !== x;
@@ -228,10 +228,10 @@ function Tn() {
228
228
  st.useSyncExternalStore = s.useSyncExternalStore !== void 0 ? s.useSyncExternalStore : f, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
229
229
  }()), st;
230
230
  }
231
- process.env.NODE_ENV === "production" ? ct.exports = Vn() : ct.exports = Tn();
232
- var Fn = ct.exports;
231
+ process.env.NODE_ENV === "production" ? ct.exports = Un() : ct.exports = Vn();
232
+ var Tn = ct.exports;
233
233
  const $e = ["light", "dark", "system"];
234
- function $n() {
234
+ function Fn() {
235
235
  const { theme: t, setTheme: n } = ma(), a = S(
236
236
  (p) => p.actions.setDashboardTheme
237
237
  );
@@ -239,7 +239,7 @@ function $n() {
239
239
  const p = $e.includes(t) ? t : "system", h = $e[($e.indexOf(p) + 1) % $e.length];
240
240
  n(h), a(h);
241
241
  }
242
- const s = t === "light" ? Rn : t === "dark" ? On : Pn, l = t === "light" ? "Theme: light (click for dark)" : t === "dark" ? "Theme: dark (click for system)" : "Theme: system (click for light)";
242
+ const s = t === "light" ? _n : t === "dark" ? On : An, l = t === "light" ? "Theme: light (click for dark)" : t === "dark" ? "Theme: dark (click for system)" : "Theme: system (click for light)";
243
243
  return /* @__PURE__ */ e(
244
244
  R,
245
245
  {
@@ -274,7 +274,7 @@ function vr(t) {
274
274
  dashboardInputValues: a.dashboardInputValues
275
275
  };
276
276
  }
277
- async function Gn(t, n, a, r, s, l) {
277
+ async function $n(t, n, a, r, s, l) {
278
278
  if (!l)
279
279
  return null;
280
280
  const p = JSON.stringify(a), h = `${t}/v1/lens`;
@@ -307,7 +307,7 @@ async function ut(t, n, a) {
307
307
  operation: "update"
308
308
  });
309
309
  }
310
- async function Bn(t, n, a) {
310
+ async function Gn(t, n, a) {
311
311
  if (!a)
312
312
  return null;
313
313
  const r = `${t}/v1/lens`;
@@ -316,8 +316,8 @@ async function Bn(t, n, a) {
316
316
  lensId: n
317
317
  });
318
318
  }
319
- const zn = "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground";
320
- function Hn({
319
+ const Bn = "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground";
320
+ function zn({
321
321
  open: t,
322
322
  onOpenChange: n
323
323
  } = {}) {
@@ -333,7 +333,7 @@ function Hn({
333
333
  controlValues: m.controlValues,
334
334
  inlineFilterValuesMap: m.inlineFilterValuesMap,
335
335
  cardControlValuesMap: m.cardControlValuesMap
336
- }), F = await Gn(
336
+ }), F = await $n(
337
337
  $.apiServiceUrl,
338
338
  a,
339
339
  w,
@@ -354,7 +354,7 @@ function Hn({
354
354
  /* @__PURE__ */ e(dt, { className: "text-[13px] leading-5", children: "Lenses are private by default and are only visible to you." })
355
355
  ] }),
356
356
  /* @__PURE__ */ o("div", { className: "space-y-1.5 py-1", children: [
357
- /* @__PURE__ */ e(na, { htmlFor: "lens-name", className: zn, children: "Name" }),
357
+ /* @__PURE__ */ e(na, { htmlFor: "lens-name", className: Bn, children: "Name" }),
358
358
  /* @__PURE__ */ e(
359
359
  sa,
360
360
  {
@@ -383,13 +383,13 @@ function Hn({
383
383
  ] })
384
384
  ] });
385
385
  }
386
- function jn({ includeLabel: t = !1 } = {}) {
386
+ function Hn({ includeLabel: t = !1 } = {}) {
387
387
  const n = S((u) => u.lenses), a = S((u) => u.selectedLensId), { setLenses: r, setSelectedLensId: s } = sr(), { authToken: l, tokenProps: p } = q();
388
388
  async function h(u) {
389
389
  s(u);
390
390
  }
391
391
  async function b(u) {
392
- if (await Bn(p.apiServiceUrl, u, l == null ? void 0 : l.accessToken)) {
392
+ if (await Gn(p.apiServiceUrl, u, l == null ? void 0 : l.accessToken)) {
393
393
  const f = n == null ? void 0 : n.filter((i) => i.id !== u);
394
394
  r(f || []), s("original");
395
395
  }
@@ -419,7 +419,7 @@ function jn({ includeLabel: t = !1 } = {}) {
419
419
  }
420
420
  return /* @__PURE__ */ o(T, { children: [
421
421
  t ? /* @__PURE__ */ o(T, { children: [
422
- /* @__PURE__ */ e(ge, { className: "px-3", children: "Lenses" }),
422
+ /* @__PURE__ */ e(be, { className: "px-3", children: "Lenses" }),
423
423
  /* @__PURE__ */ e(Ge, {})
424
424
  ] }) : null,
425
425
  /* @__PURE__ */ o(
@@ -443,7 +443,7 @@ function jn({ includeLabel: t = !1 } = {}) {
443
443
  onClick: (c) => {
444
444
  c.preventDefault(), g(u);
445
445
  },
446
- className: be(
446
+ className: oe(
447
447
  "size-3.5 text-muted-foreground hover:cursor-pointer hover:text-foreground group-hover:visible",
448
448
  {
449
449
  invisible: !u.isDefault,
@@ -473,7 +473,7 @@ function jn({ includeLabel: t = !1 } = {}) {
473
473
  )
474
474
  ] });
475
475
  }
476
- function qn() {
476
+ function jn() {
477
477
  const { displayPreferences: t, shouldShowElement: n } = xa(), { currentUser: a, userContext: r } = ht(), s = Z(
478
478
  () => va(a),
479
479
  [a]
@@ -497,7 +497,7 @@ function qn() {
497
497
  currentUser: a
498
498
  };
499
499
  }
500
- function Kn(t, n = []) {
500
+ function qn(t, n = []) {
501
501
  let a = [];
502
502
  function r(l, p) {
503
503
  const h = I.createContext(p);
@@ -529,9 +529,9 @@ function Kn(t, n = []) {
529
529
  );
530
530
  };
531
531
  };
532
- return s.scopeName = t, [r, Wn(s, ...n)];
532
+ return s.scopeName = t, [r, Kn(s, ...n)];
533
533
  }
534
- function Wn(...t) {
534
+ function Kn(...t) {
535
535
  const n = t[0];
536
536
  if (t.length === 1) return n;
537
537
  const a = () => {
@@ -549,7 +549,7 @@ function Wn(...t) {
549
549
  };
550
550
  return a.scopeName = n.scopeName, a;
551
551
  }
552
- var Qn = [
552
+ var Wn = [
553
553
  "a",
554
554
  "button",
555
555
  "div",
@@ -567,29 +567,29 @@ var Qn = [
567
567
  "span",
568
568
  "svg",
569
569
  "ul"
570
- ], gt = Qn.reduce((t, n) => {
570
+ ], gt = Wn.reduce((t, n) => {
571
571
  const a = oa(`Primitive.${n}`), r = I.forwardRef((s, l) => {
572
572
  const { asChild: p, ...h } = s, b = p ? a : n;
573
573
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ e(b, { ...h, ref: l });
574
574
  });
575
575
  return r.displayName = `Primitive.${n}`, { ...t, [n]: r };
576
576
  }, {});
577
- function Jn() {
578
- return Fn.useSyncExternalStore(
579
- Yn,
577
+ function Qn() {
578
+ return Tn.useSyncExternalStore(
579
+ Jn,
580
580
  () => !0,
581
581
  () => !1
582
582
  );
583
583
  }
584
- function Yn() {
584
+ function Jn() {
585
585
  return () => {
586
586
  };
587
587
  }
588
- var bt = "Avatar", [Xn] = Kn(bt), [Zn, yr] = Xn(bt), wr = I.forwardRef(
588
+ var bt = "Avatar", [Yn] = qn(bt), [Xn, yr] = Yn(bt), wr = I.forwardRef(
589
589
  (t, n) => {
590
590
  const { __scopeAvatar: a, ...r } = t, [s, l] = I.useState("idle");
591
591
  return /* @__PURE__ */ e(
592
- Zn,
592
+ Xn,
593
593
  {
594
594
  scope: a,
595
595
  imageLoadingStatus: s,
@@ -603,7 +603,7 @@ wr.displayName = bt;
603
603
  var Nr = "AvatarImage", Sr = I.forwardRef(
604
604
  (t, n) => {
605
605
  const { __scopeAvatar: a, src: r, onLoadingStatusChange: s = () => {
606
- }, ...l } = t, p = yr(Nr, a), h = es(r, l), b = ia((g) => {
606
+ }, ...l } = t, p = yr(Nr, a), h = Zn(r, l), b = ia((g) => {
607
607
  s(g), p.onImageLoadingStatusChange(g);
608
608
  });
609
609
  return ot(() => {
@@ -627,8 +627,8 @@ Cr.displayName = Dr;
627
627
  function rr(t, n) {
628
628
  return t ? n ? (t.src !== n && (t.src = n), t.complete && t.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
629
629
  }
630
- function es(t, { referrerPolicy: n, crossOrigin: a }) {
631
- const r = Jn(), s = I.useRef(null), l = r ? (s.current || (s.current = new window.Image()), s.current) : null, [p, h] = I.useState(
630
+ function Zn(t, { referrerPolicy: n, crossOrigin: a }) {
631
+ const r = Qn(), s = I.useRef(null), l = r ? (s.current || (s.current = new window.Image()), s.current) : null, [p, h] = I.useState(
632
632
  () => rr(l, t)
633
633
  );
634
634
  return ot(() => {
@@ -649,7 +649,7 @@ const Ir = I.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e(
649
649
  kr,
650
650
  {
651
651
  ref: a,
652
- className: be(
652
+ className: oe(
653
653
  "relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
654
654
  t
655
655
  ),
@@ -657,20 +657,20 @@ const Ir = I.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e(
657
657
  }
658
658
  ));
659
659
  Ir.displayName = kr.displayName;
660
- const ts = I.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e(
660
+ const es = I.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e(
661
661
  Er,
662
662
  {
663
663
  ref: a,
664
- className: be("aspect-square h-full w-full", t),
664
+ className: oe("aspect-square h-full w-full", t),
665
665
  ...n
666
666
  }
667
667
  ));
668
- ts.displayName = Er.displayName;
668
+ es.displayName = Er.displayName;
669
669
  const Mr = I.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e(
670
670
  Lr,
671
671
  {
672
672
  ref: a,
673
- className: be(
673
+ className: oe(
674
674
  "flex h-full w-full items-center justify-center rounded-full bg-muted",
675
675
  t
676
676
  ),
@@ -678,26 +678,26 @@ const Mr = I.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e(
678
678
  }
679
679
  ));
680
680
  Mr.displayName = Lr.displayName;
681
- const rs = async (t, n, a) => {
681
+ const ts = async (t, n, a) => {
682
682
  const r = `${t}/management/v1/groups`;
683
683
  return await or(r, n, a);
684
- }, as = async (t, n, a, r) => {
684
+ }, rs = async (t, n, a, r) => {
685
685
  const s = `${t}/management/v1/groups/${a}`;
686
686
  return pt(s, n, "PATCH", r);
687
- }, ns = async (t, n, a) => {
687
+ }, as = async (t, n, a) => {
688
688
  const r = `${t}/management/v1/groups/${a}`;
689
689
  await pt(r, n, "DELETE");
690
- }, ss = async (t, n, a, r) => {
690
+ }, ns = async (t, n, a, r) => {
691
691
  const s = `${t}/management/v1/groups/${a}/members`;
692
692
  return await or(s, n, r);
693
- }, os = async (t, n, a, r) => {
693
+ }, ss = async (t, n, a, r) => {
694
694
  const s = `${t}/management/v1/groups/${a}/members`;
695
695
  await pt(s, n, "DELETE", r);
696
696
  };
697
- function is() {
697
+ function os() {
698
698
  const { authToken: t, tokenProps: n } = q(), a = ve();
699
699
  return ye({
700
- mutationFn: (r) => rs(n.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", r),
700
+ mutationFn: (r) => ts(n.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", r),
701
701
  onSuccess: () => {
702
702
  a.invalidateQueries({ queryKey: ["groups"] }), C.success("Group created successfully");
703
703
  },
@@ -708,13 +708,13 @@ function is() {
708
708
  }
709
709
  });
710
710
  }
711
- function ds() {
711
+ function is() {
712
712
  const { authToken: t, tokenProps: n } = q(), a = ve();
713
713
  return ye({
714
714
  mutationFn: ({
715
715
  groupId: r,
716
716
  data: s
717
- }) => as(n.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", r, s),
717
+ }) => rs(n.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", r, s),
718
718
  onSuccess: (r, s) => {
719
719
  a.invalidateQueries({ queryKey: ["group", s.groupId] }), a.invalidateQueries({ queryKey: ["groups"] }), C.success("Group updated successfully");
720
720
  },
@@ -725,10 +725,10 @@ function ds() {
725
725
  }
726
726
  });
727
727
  }
728
- function ls() {
728
+ function ds() {
729
729
  const { authToken: t, tokenProps: n } = q(), a = ve();
730
730
  return ye({
731
- mutationFn: (r) => ns(n.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", r),
731
+ mutationFn: (r) => as(n.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", r),
732
732
  onSuccess: (r, s) => {
733
733
  a.invalidateQueries({ queryKey: ["groups"] }), a.removeQueries({ queryKey: ["group", s] }), C.success("Group deleted successfully");
734
734
  },
@@ -739,13 +739,13 @@ function ls() {
739
739
  }
740
740
  });
741
741
  }
742
- function cs() {
742
+ function ls() {
743
743
  const { authToken: t, tokenProps: n } = q(), a = ve();
744
744
  return ye({
745
745
  mutationFn: ({
746
746
  groupId: r,
747
747
  data: s
748
- }) => ss(n.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", r, s),
748
+ }) => ns(n.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", r, s),
749
749
  onSuccess: (r, s) => {
750
750
  a.invalidateQueries({ queryKey: ["group", s.groupId] }), a.invalidateQueries({
751
751
  queryKey: ["group-members", s.groupId]
@@ -758,13 +758,13 @@ function cs() {
758
758
  }
759
759
  });
760
760
  }
761
- function us() {
761
+ function cs() {
762
762
  const { authToken: t, tokenProps: n } = q(), a = ve();
763
763
  return ye({
764
764
  mutationFn: ({
765
765
  groupId: r,
766
766
  data: s
767
- }) => os(n.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", r, s),
767
+ }) => ss(n.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", r, s),
768
768
  onSuccess: (r, s) => {
769
769
  a.invalidateQueries({ queryKey: ["group", s.groupId] }), a.invalidateQueries({
770
770
  queryKey: ["group-members", s.groupId]
@@ -777,8 +777,8 @@ function us() {
777
777
  }
778
778
  });
779
779
  }
780
- const ms = [];
781
- function ps({
780
+ const us = [];
781
+ function ms({
782
782
  open: t,
783
783
  onOpenChange: n
784
784
  }) {
@@ -792,7 +792,7 @@ function ps({
792
792
  type: s ? "TENANT_GROUP" : "all",
793
793
  tenantId: s ? l : void 0,
794
794
  includeMembers: !1
795
- }), u = b ? Ar(b, "Unable to load groups.") : null, [c, f] = N({ kind: "list" }), [i, x] = N(null), v = ls();
795
+ }), u = b ? Ar(b, "Unable to load groups.") : null, [c, f] = N({ kind: "list" }), [i, x] = N(null), v = ds();
796
796
  ze(() => {
797
797
  t || (f({ kind: "list" }), x(null));
798
798
  }, [t]);
@@ -822,7 +822,7 @@ function ps({
822
822
  /* @__PURE__ */ e(dt, { className: "sr-only", children: "Create a new group to organize members." })
823
823
  ] }) : null,
824
824
  c.kind === "list" && /* @__PURE__ */ e(
825
- hs,
825
+ ps,
826
826
  {
827
827
  groups: p,
828
828
  isLoading: h,
@@ -835,7 +835,7 @@ function ps({
835
835
  }
836
836
  ),
837
837
  c.kind === "members" && w && /* @__PURE__ */ e(
838
- bs,
838
+ gs,
839
839
  {
840
840
  group: w,
841
841
  isTenantViewer: s,
@@ -850,7 +850,7 @@ function ps({
850
850
  w.id
851
851
  ),
852
852
  c.kind === "create" && /* @__PURE__ */ e(
853
- xs,
853
+ bs,
854
854
  {
855
855
  isTenantUser: s,
856
856
  tenantId: l,
@@ -895,7 +895,7 @@ function ps({
895
895
  ] })
896
896
  ] }) });
897
897
  }
898
- function hs({
898
+ function ps({
899
899
  groups: t,
900
900
  isLoading: n,
901
901
  errorMessage: a,
@@ -914,7 +914,7 @@ function hs({
914
914
  return /* @__PURE__ */ o("div", { className: "flex flex-1 flex-col overflow-hidden", children: [
915
915
  /* @__PURE__ */ o("div", { className: "flex shrink-0 items-center gap-2 border-b border-border px-5 py-2.5", children: [
916
916
  /* @__PURE__ */ o("div", { className: "flex flex-1 items-center gap-2 rounded-[5px] border border-border bg-background px-2 focus-within:border-foreground/40", children: [
917
- /* @__PURE__ */ e(Cn, { className: "h-3 w-3 text-muted-foreground" }),
917
+ /* @__PURE__ */ e(Dn, { className: "h-3 w-3 text-muted-foreground" }),
918
918
  /* @__PURE__ */ e(
919
919
  "input",
920
920
  {
@@ -954,13 +954,13 @@ function hs({
954
954
  },
955
955
  c
956
956
  )) }) : a ? /* @__PURE__ */ e(
957
- Pr,
957
+ Or,
958
958
  {
959
959
  title: "Can't load groups",
960
960
  message: a,
961
961
  onRetry: r
962
962
  }
963
- ) : u.length === 0 && t.length === 0 ? /* @__PURE__ */ e(gs, { onCreate: p }) : u.length === 0 ? /* @__PURE__ */ o("div", { className: "flex h-full flex-col items-center justify-center gap-1 py-10 text-center", children: [
963
+ ) : u.length === 0 && t.length === 0 ? /* @__PURE__ */ e(fs, { onCreate: p }) : u.length === 0 ? /* @__PURE__ */ o("div", { className: "flex h-full flex-col items-center justify-center gap-1 py-10 text-center", children: [
964
964
  /* @__PURE__ */ o("div", { className: "text-[12px] text-foreground", children: [
965
965
  'No groups match "',
966
966
  b,
@@ -970,7 +970,7 @@ function hs({
970
970
  ] }) : u.map((c) => {
971
971
  var f;
972
972
  return /* @__PURE__ */ e(
973
- fs,
973
+ hs,
974
974
  {
975
975
  group: c,
976
976
  canDelete: ((f = c.permissions) == null ? void 0 : f.canDelete) ?? c.createdBy === s,
@@ -982,7 +982,7 @@ function hs({
982
982
  }) })
983
983
  ] });
984
984
  }
985
- function fs({
985
+ function hs({
986
986
  group: t,
987
987
  canDelete: n,
988
988
  onClick: a,
@@ -1041,13 +1041,13 @@ function fs({
1041
1041
  children: /* @__PURE__ */ e(ft, { className: "h-3 w-3" })
1042
1042
  }
1043
1043
  ),
1044
- /* @__PURE__ */ e(kn, { className: "h-3.5 w-3.5 text-muted-foreground" })
1044
+ /* @__PURE__ */ e(Cn, { className: "h-3.5 w-3.5 text-muted-foreground" })
1045
1045
  ] })
1046
1046
  ]
1047
1047
  }
1048
1048
  );
1049
1049
  }
1050
- function gs({ onCreate: t }) {
1050
+ function fs({ onCreate: t }) {
1051
1051
  return /* @__PURE__ */ o("div", { className: "flex h-full flex-col items-center justify-center gap-2 py-12 text-center", children: [
1052
1052
  /* @__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(pr, { className: "h-4 w-4" }) }),
1053
1053
  /* @__PURE__ */ e("div", { className: "text-[13px] font-medium text-foreground", children: "No groups yet" }),
@@ -1066,7 +1066,7 @@ function gs({ onCreate: t }) {
1066
1066
  )
1067
1067
  ] });
1068
1068
  }
1069
- function bs({
1069
+ function gs({
1070
1070
  group: t,
1071
1071
  isTenantViewer: n,
1072
1072
  canEdit: a,
@@ -1082,7 +1082,7 @@ function bs({
1082
1082
  isLoading: u,
1083
1083
  error: c,
1084
1084
  refetch: f
1085
- } = ka(t.id), i = (g == null ? void 0 : g.members) ?? ms, x = c ? Ar(c, "Unable to load members for this group.") : null, v = t.type === "TENANT_GROUP" ? "tenant" : "organization", { users: w } = Ea({
1085
+ } = ka(t.id), i = (g == null ? void 0 : g.members) ?? us, x = c ? Ar(c, "Unable to load members for this group.") : null, v = t.type === "TENANT_GROUP" ? "tenant" : "organization", { users: w } = Ea({
1086
1086
  type: v,
1087
1087
  tenantId: t.tenantId || void 0,
1088
1088
  active: !0,
@@ -1090,7 +1090,7 @@ function bs({
1090
1090
  }), D = Z(
1091
1091
  () => new Set(i.map((y) => y.userId)),
1092
1092
  [i]
1093
- ), E = cs(), $ = us(), L = ds(), [m, G] = N(!1), [F, B] = N(t.name), [P, k] = N(!1), [te, re] = N(t.description || ""), [W, we] = N(""), [Ne, Se] = N(!1), De = Z(() => {
1093
+ ), E = ls(), $ = cs(), L = is(), [m, G] = N(!1), [F, B] = N(t.name), [O, k] = N(!1), [te, re] = N(t.description || ""), [W, we] = N(""), [Ne, Se] = N(!1), De = Z(() => {
1094
1094
  const y = W.trim().toLowerCase();
1095
1095
  return w.filter((z) => !D.has(z.id)).filter(
1096
1096
  (z) => !y || (z.name || "").toLowerCase().includes(y) || (z.email || "").toLowerCase().includes(y)
@@ -1105,7 +1105,7 @@ function bs({
1105
1105
  }), h();
1106
1106
  } catch {
1107
1107
  }
1108
- }, se = async () => {
1108
+ }, ie = async () => {
1109
1109
  const y = te.trim();
1110
1110
  if (k(!1), y !== (t.description || ""))
1111
1111
  try {
@@ -1129,7 +1129,7 @@ function bs({
1129
1129
  } catch {
1130
1130
  }
1131
1131
  }
1132
- }, oe = async (y) => {
1132
+ }, de = async (y) => {
1133
1133
  if (s)
1134
1134
  try {
1135
1135
  await $.mutateAsync({
@@ -1189,7 +1189,7 @@ function bs({
1189
1189
  i.length === 1 ? "" : "s"
1190
1190
  ] })
1191
1191
  ] }),
1192
- /* @__PURE__ */ e("div", { className: "shrink-0 border-b border-border px-5 py-2.5", children: P ? /* @__PURE__ */ o("div", { children: [
1192
+ /* @__PURE__ */ e("div", { className: "shrink-0 border-b border-border px-5 py-2.5", children: O ? /* @__PURE__ */ o("div", { children: [
1193
1193
  /* @__PURE__ */ e(
1194
1194
  "textarea",
1195
1195
  {
@@ -1199,7 +1199,7 @@ function bs({
1199
1199
  onChange: (y) => re(y.target.value),
1200
1200
  maxLength: 200,
1201
1201
  onKeyDown: (y) => {
1202
- y.key === "Escape" && (re(t.description || ""), k(!1)), y.key === "Enter" && (y.metaKey || y.ctrlKey) && se();
1202
+ y.key === "Escape" && (re(t.description || ""), k(!1)), y.key === "Enter" && (y.metaKey || y.ctrlKey) && ie();
1203
1203
  },
1204
1204
  placeholder: "What is this group for?",
1205
1205
  className: "block w-full resize-none rounded-[5px] border border-border bg-background px-2 py-1.5 text-[12px] text-foreground placeholder:text-muted-foreground focus:border-foreground/40 focus:outline-none"
@@ -1226,7 +1226,7 @@ function bs({
1226
1226
  "button",
1227
1227
  {
1228
1228
  type: "button",
1229
- onClick: se,
1229
+ onClick: ie,
1230
1230
  className: "inline-flex h-6 items-center rounded-[5px] bg-foreground px-2 text-[11px] font-medium text-background hover:opacity-90",
1231
1231
  children: "Save"
1232
1232
  }
@@ -1253,7 +1253,7 @@ function bs({
1253
1253
  }
1254
1254
  ) }),
1255
1255
  s && /* @__PURE__ */ e(
1256
- vs,
1256
+ xs,
1257
1257
  {
1258
1258
  query: W,
1259
1259
  setQuery: we,
@@ -1272,7 +1272,7 @@ function bs({
1272
1272
  },
1273
1273
  y
1274
1274
  )) }) : x ? /* @__PURE__ */ e(
1275
- Pr,
1275
+ Or,
1276
1276
  {
1277
1277
  title: "Can't load members",
1278
1278
  message: x,
@@ -1282,13 +1282,13 @@ function bs({
1282
1282
  /* @__PURE__ */ e("div", { className: "text-[12px] text-foreground", children: "No members yet" }),
1283
1283
  /* @__PURE__ */ e("div", { className: "text-[11px] text-muted-foreground", children: s ? "Search above to add people to this group." : "This group does not have any members." })
1284
1284
  ] }) : i.map((y) => {
1285
- var z, ie, Ee, Q, J, Y;
1285
+ var z, le, Ee, Q, J, Y;
1286
1286
  return /* @__PURE__ */ o(
1287
1287
  "div",
1288
1288
  {
1289
1289
  className: "group flex items-center gap-2 border-b border-border/60 px-5 py-2",
1290
1290
  children: [
1291
- /* @__PURE__ */ e(Or, { name: ((z = y.user) == null ? void 0 : z.name) || ((ie = y.user) == null ? void 0 : ie.email) || "?" }),
1291
+ /* @__PURE__ */ e(Pr, { name: ((z = y.user) == null ? void 0 : z.name) || ((le = y.user) == null ? void 0 : le.email) || "?" }),
1292
1292
  /* @__PURE__ */ o("div", { className: "min-w-0 flex-1", children: [
1293
1293
  /* @__PURE__ */ e("div", { className: "truncate text-[12.5px] font-medium text-foreground", children: ((Ee = y.user) == null ? void 0 : Ee.name) || ((Q = y.user) == null ? void 0 : Q.email) || "Unknown" }),
1294
1294
  ((J = y.user) == null ? void 0 : J.email) && y.user.name && /* @__PURE__ */ e("div", { className: "truncate text-[10.5px] text-muted-foreground", children: y.user.email })
@@ -1298,7 +1298,7 @@ function bs({
1298
1298
  "button",
1299
1299
  {
1300
1300
  type: "button",
1301
- onClick: () => oe(y.userId),
1301
+ onClick: () => de(y.userId),
1302
1302
  disabled: !s || $.isPending,
1303
1303
  "aria-label": `Remove ${((Y = y.user) == null ? void 0 : Y.name) || "member"}`,
1304
1304
  className: "flex h-6 w-6 items-center justify-center rounded-[3px] text-muted-foreground opacity-0 transition-opacity hover:bg-accent hover:text-foreground group-hover:opacity-100 disabled:opacity-30",
@@ -1324,13 +1324,13 @@ function bs({
1324
1324
  ) })
1325
1325
  ] });
1326
1326
  }
1327
- function xs({
1327
+ function bs({
1328
1328
  isTenantUser: t,
1329
1329
  tenantId: n,
1330
1330
  onCancel: a,
1331
1331
  onCreated: r
1332
1332
  }) {
1333
- const [s, l] = N(""), [p, h] = N(""), [b, g] = N(null), u = is(), c = s.trim().length >= 3 && s.trim().length <= 50, f = async () => {
1333
+ const [s, l] = N(""), [p, h] = N(""), [b, g] = N(null), u = os(), c = s.trim().length >= 3 && s.trim().length <= 50, f = async () => {
1334
1334
  if (!c) return;
1335
1335
  g(null);
1336
1336
  const i = {
@@ -1411,7 +1411,7 @@ function xs({
1411
1411
  ] })
1412
1412
  ] });
1413
1413
  }
1414
- function vs({
1414
+ function xs({
1415
1415
  query: t,
1416
1416
  setQuery: n,
1417
1417
  open: a,
@@ -1422,7 +1422,7 @@ function vs({
1422
1422
  busy: h
1423
1423
  }) {
1424
1424
  const b = Xt(null), g = Xt(null), [u, c] = N(null);
1425
- pn(() => {
1425
+ mn(() => {
1426
1426
  if (!a) {
1427
1427
  c(null);
1428
1428
  return;
@@ -1458,7 +1458,7 @@ function vs({
1458
1458
  ref: b,
1459
1459
  className: "flex items-center gap-2 rounded-[5px] border border-border bg-background px-2 focus-within:border-foreground/40",
1460
1460
  children: [
1461
- /* @__PURE__ */ e(Un, { className: "h-3 w-3 text-muted-foreground" }),
1461
+ /* @__PURE__ */ e(Rn, { className: "h-3 w-3 text-muted-foreground" }),
1462
1462
  /* @__PURE__ */ e(
1463
1463
  "input",
1464
1464
  {
@@ -1475,7 +1475,7 @@ function vs({
1475
1475
  ]
1476
1476
  }
1477
1477
  ),
1478
- f && typeof document < "u" && fn(
1478
+ f && typeof document < "u" && hn(
1479
1479
  /* @__PURE__ */ e(
1480
1480
  "div",
1481
1481
  {
@@ -1495,7 +1495,7 @@ function vs({
1495
1495
  onClick: () => p(i),
1496
1496
  className: "flex w-full items-center gap-2 border-b border-border/60 px-2.5 py-2 text-left last:border-b-0 hover:bg-accent",
1497
1497
  children: [
1498
- /* @__PURE__ */ e(Or, { name: i.name || i.email || "?" }),
1498
+ /* @__PURE__ */ e(Pr, { name: i.name || i.email || "?" }),
1499
1499
  /* @__PURE__ */ o("div", { className: "min-w-0 flex-1", children: [
1500
1500
  /* @__PURE__ */ e("div", { className: "truncate text-[12px] font-medium text-foreground", children: i.name || i.email || "Unknown" }),
1501
1501
  i.email && i.name && /* @__PURE__ */ e("div", { className: "truncate text-[10.5px] text-muted-foreground", children: i.email })
@@ -1519,7 +1519,7 @@ function Ar(t, n) {
1519
1519
  }
1520
1520
  return typeof t == "string" ? t : n;
1521
1521
  }
1522
- function Pr({
1522
+ function Or({
1523
1523
  title: t,
1524
1524
  message: n,
1525
1525
  onRetry: a
@@ -1541,11 +1541,11 @@ function Pr({
1541
1541
  function ar({ children: t }) {
1542
1542
  return /* @__PURE__ */ e("label", { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: t });
1543
1543
  }
1544
- function Or({ name: t }) {
1544
+ function Pr({ name: t }) {
1545
1545
  const n = t.split(" ").map((a) => a[0]).filter(Boolean).slice(0, 2).join("").toUpperCase();
1546
1546
  return /* @__PURE__ */ e(Ir, { className: "h-6 w-6 shrink-0", children: /* @__PURE__ */ e(Mr, { className: "text-[9px] font-semibold", children: n || "?" }) });
1547
1547
  }
1548
- function he(t, n, a) {
1548
+ function fe(t, n, a) {
1549
1549
  var l, p;
1550
1550
  const r = (t.controls || []).find(
1551
1551
  (h) => h.id === a
@@ -1557,11 +1557,11 @@ function he(t, n, a) {
1557
1557
  );
1558
1558
  return (s == null ? void 0 : s.label) || a;
1559
1559
  }
1560
- function fe(t, n) {
1560
+ function ge(t, n) {
1561
1561
  var a;
1562
1562
  return ((a = ir(t, n)) == null ? void 0 : a.title) || n;
1563
1563
  }
1564
- function ys(t) {
1564
+ function vs(t) {
1565
1565
  const { errors: n, dashboard: a } = t;
1566
1566
  if (!a)
1567
1567
  return n;
@@ -1574,7 +1574,7 @@ function ys(t) {
1574
1574
  const [, u, c] = l, f = `${u}:${c}:missing-metric`;
1575
1575
  r.has(f) || r.set(
1576
1576
  f,
1577
- `"${fe(a, u)}" has an outdated "${he(
1577
+ `"${ge(a, u)}" has an outdated "${fe(
1578
1578
  a,
1579
1579
  u,
1580
1580
  c
@@ -1589,7 +1589,7 @@ function ys(t) {
1589
1589
  const [, u, c] = p, f = `${u}:${c}:missing-group-by`;
1590
1590
  r.has(f) || r.set(
1591
1591
  f,
1592
- `"${fe(a, u)}" has an outdated "${he(
1592
+ `"${ge(a, u)}" has an outdated "${fe(
1593
1593
  a,
1594
1594
  u,
1595
1595
  c
@@ -1604,7 +1604,7 @@ function ys(t) {
1604
1604
  const [, u, c] = h, f = `${u}:${c}:invalid-metric`;
1605
1605
  r.has(f) || r.set(
1606
1606
  f,
1607
- `"${fe(a, u)}" has an invalid "${he(
1607
+ `"${ge(a, u)}" has an invalid "${fe(
1608
1608
  a,
1609
1609
  u,
1610
1610
  c
@@ -1619,7 +1619,7 @@ function ys(t) {
1619
1619
  const [, u, c] = b, f = `${u}:${c}:invalid-group-by`;
1620
1620
  r.has(f) || r.set(
1621
1621
  f,
1622
- `"${fe(a, u)}" has an invalid "${he(
1622
+ `"${ge(a, u)}" has an invalid "${fe(
1623
1623
  a,
1624
1624
  u,
1625
1625
  c
@@ -1634,7 +1634,7 @@ function ys(t) {
1634
1634
  const [, u, c] = g, f = `${u}:${c}:missing-temporal-group-by`;
1635
1635
  r.has(f) || r.set(
1636
1636
  f,
1637
- `"${fe(a, u)}" can no longer use "${he(
1637
+ `"${ge(a, u)}" can no longer use "${fe(
1638
1638
  a,
1639
1639
  u,
1640
1640
  c
@@ -1646,7 +1646,7 @@ function ys(t) {
1646
1646
  }
1647
1647
  return Array.from(r.values());
1648
1648
  }
1649
- function ws({
1649
+ function ys({
1650
1650
  visible: t,
1651
1651
  onSelect: n
1652
1652
  }) {
@@ -1655,7 +1655,7 @@ function ws({
1655
1655
  "Schedule email report"
1656
1656
  ] }) : null;
1657
1657
  }
1658
- function Ns({
1658
+ function ws({
1659
1659
  scheduleReportVisible: t,
1660
1660
  analyticalBriefingVisible: n,
1661
1661
  onScheduleReport: a,
@@ -1663,7 +1663,7 @@ function Ns({
1663
1663
  }) {
1664
1664
  return /* @__PURE__ */ o(T, { children: [
1665
1665
  /* @__PURE__ */ e(
1666
- ws,
1666
+ ys,
1667
1667
  {
1668
1668
  visible: t,
1669
1669
  onSelect: a
@@ -1681,9 +1681,9 @@ function nr(t, n) {
1681
1681
  semanticExecutionPayload: lt(n)
1682
1682
  };
1683
1683
  }
1684
- function Js() {
1684
+ function Qs() {
1685
1685
  var _t, Rt, Ut, Vt, Tt;
1686
- gn(), bn();
1686
+ fn(), gn();
1687
1687
  const {
1688
1688
  authToken: t,
1689
1689
  tokenProps: n,
@@ -1695,13 +1695,13 @@ function Js() {
1695
1695
  inspectionMessage: b,
1696
1696
  isInspectionMode: g,
1697
1697
  isInspectionSurface: u
1698
- } = Pa(), { openBrandStudioPreview: c } = Oa(), { permissions: f } = qn(), i = _a(), { isLoading: x } = Ra(), v = S((d) => d.theme), w = S((d) => d.isDownloadingPdf), D = S(
1698
+ } = Oa(), { openBrandStudioPreview: c } = Pa(), { permissions: f } = jn(), i = _a(), { isLoading: x } = Ra(), v = S((d) => d.theme), w = S((d) => d.isDownloadingPdf), D = S(
1699
1699
  (d) => d.dashboardAssistantDraftScopeKey
1700
1700
  ), E = S((d) => d.lenses), $ = S((d) => d.selectedLensId), L = E == null ? void 0 : E.find((d) => d.id === $), m = S((d) => d.dashboard), G = S((d) => d.selectedSheetId), F = (_t = m == null ? void 0 : m.sheets) == null ? void 0 : _t.find(
1701
1701
  (d) => d.id === G
1702
- ), B = da(F), P = B ? (Rt = F == null ? void 0 : F.document) == null ? void 0 : Rt.page : void 0, k = S(
1702
+ ), B = da(F), O = B ? (Rt = F == null ? void 0 : F.document) == null ? void 0 : Rt.page : void 0, k = S(
1703
1703
  (d) => d.isDashboardEditing
1704
- ), { setDashboardTitle: te } = S((d) => d.actions), [re, W] = N(!1), [we, Ne] = N(!1), [Se, De] = N(!1), [Ce, se] = N(!1), [ke, oe] = N(null), [ae, y] = N(!1), [z, ie] = N(!1), [Ee, Q] = N(!1), [J, Y] = N(null), [xt, Le] = N([]), [vt, Ie] = N(!1), [_r, yt] = N(!1), wt = S((d) => d.filterValues), O = S((d) => d.isVisualEditing);
1704
+ ), { setDashboardTitle: te } = S((d) => d.actions), [re, W] = N(!1), [we, Ne] = N(!1), [Se, De] = N(!1), [Ce, ie] = N(!1), [ke, de] = N(null), [ae, y] = N(!1), [z, le] = N(!1), [Ee, Q] = N(!1), [J, Y] = N(null), [xt, Le] = N([]), [vt, Ie] = N(!1), [_r, yt] = N(!1), wt = S((d) => d.filterValues), P = S((d) => d.isVisualEditing);
1705
1705
  $t((d) => d.card);
1706
1706
  const Rr = Fe(
1707
1707
  (d) => d.selectedDashboard
@@ -1715,15 +1715,15 @@ function Js() {
1715
1715
  (d) => d.actions
1716
1716
  ), { setInitialDashboard: Ct, clearSelectedDashboard: je } = Fe(
1717
1717
  (d) => d.actions
1718
- ), de = !!n.orgUserId || !!(n.tenantId && n.endUserId && n.endUserEmail), { resources: Me } = Ua(rt.DASHBOARD), { data: qe } = Va(), Vr = ((Ut = qe == null ? void 0 : qe.preference) == null ? void 0 : Ut.defaultDashboardId) || null, { mutate: Tr, isPending: Fr } = Ta(), { currentUser: $r } = ht(), Gr = Fa($r), H = Rr || Ur, ne = $a({
1718
+ ), ce = !!n.orgUserId || !!(n.tenantId && n.endUserId && n.endUserEmail), { resources: Me } = Ua(rt.DASHBOARD), { data: qe } = Va(), Vr = ((Ut = qe == null ? void 0 : qe.preference) == null ? void 0 : Ut.defaultDashboardId) || null, { mutate: Tr, isPending: Fr } = Ta(), { currentUser: $r } = ht(), Gr = Fa($r), H = Rr || Ur, ne = $a({
1719
1719
  config: n.config,
1720
- canNavigateDashboardHub: de,
1720
+ canNavigateDashboardHub: ce,
1721
1721
  canShareDashboard: ((Vt = H == null ? void 0 : H.permissions) == null ? void 0 : Vt.canShare) === !0,
1722
1722
  canManageGroups: Gr
1723
1723
  }), kt = H ? {
1724
1724
  id: H.id,
1725
1725
  title: (m == null ? void 0 : m.title) || H.title || "Dashboard"
1726
- } : null, { handleAddNewFrame: Br } = Ga(), [Ke, We] = N(!1), [zr, le] = N(!1), [Qe, Ae] = N("close"), ce = Ba(rt.DASHBOARD), [A, Pe] = N(null), Hr = async (d, M) => {
1726
+ } : null, { handleAddNewFrame: Br } = Ga(), [Ke, We] = N(!1), [zr, ue] = N(!1), [Qe, Ae] = N("close"), me = Ba(rt.DASHBOARD), [A, Oe] = N(null), Hr = async (d, M) => {
1727
1727
  if (!g) {
1728
1728
  if (!(m != null && m.id)) {
1729
1729
  console.log("No dashboard ID found");
@@ -1733,7 +1733,7 @@ function Js() {
1733
1733
  dashboardId: m.id,
1734
1734
  newTitle: d,
1735
1735
  previousTitle: M
1736
- }), ce.mutate(
1736
+ }), me.mutate(
1737
1737
  {
1738
1738
  resourceId: m.id,
1739
1739
  data: { title: d }
@@ -1760,13 +1760,13 @@ function Js() {
1760
1760
  }
1761
1761
  }
1762
1762
  }, [Me, m == null ? void 0 : m.id, Ct]);
1763
- const ue = n.orgUserId || n.tenantId, Je = Z(
1764
- () => Ss({
1763
+ const pe = n.orgUserId || n.tenantId, Je = Z(
1764
+ () => Ns({
1765
1765
  accessToken: t == null ? void 0 : t.accessToken,
1766
1766
  dashboardId: (m == null ? void 0 : m.id) || a || n.dashboard_id,
1767
1767
  selectedSheetId: B ? G : void 0,
1768
- pageSize: P == null ? void 0 : P.size,
1769
- orientation: P == null ? void 0 : P.orientation,
1768
+ pageSize: O == null ? void 0 : O.size,
1769
+ orientation: O == null ? void 0 : O.orientation,
1770
1770
  theme: v
1771
1771
  }),
1772
1772
  [
@@ -1774,25 +1774,25 @@ function Js() {
1774
1774
  a,
1775
1775
  m == null ? void 0 : m.id,
1776
1776
  B,
1777
- P == null ? void 0 : P.orientation,
1778
- P == null ? void 0 : P.size,
1777
+ O == null ? void 0 : O.orientation,
1778
+ O == null ? void 0 : O.size,
1779
1779
  G,
1780
1780
  v,
1781
1781
  n.dashboard_id
1782
1782
  ]
1783
- ), Et = k && !O && !g && ue && p, { setDashboard: Ye } = S((d) => d.actions), Lt = S(
1783
+ ), Et = k && !P && !g && pe && p, { setDashboard: Ye } = S((d) => d.actions), Lt = S(
1784
1784
  (d) => d.semanticExecutionPayload
1785
1785
  ), jr = () => {
1786
1786
  St(!0);
1787
- }, Oe = () => {
1788
- St(!1), Dt(!1), Pe(null);
1787
+ }, Pe = () => {
1788
+ St(!1), Dt(!1), Oe(null);
1789
1789
  };
1790
1790
  ze(() => {
1791
1791
  if (!k) {
1792
- A && Pe(null);
1792
+ A && Oe(null);
1793
1793
  return;
1794
1794
  }
1795
- A || !m || x || Pe(
1795
+ A || !m || x || Oe(
1796
1796
  nr(
1797
1797
  m,
1798
1798
  Lt
@@ -1805,38 +1805,38 @@ function Js() {
1805
1805
  x,
1806
1806
  Lt
1807
1807
  ]);
1808
- const _e = (A == null ? void 0 : A.dashboard) ?? null, { isDirty: It, isDirtyPending: qr, resetDirty: me } = Ln(
1808
+ const _e = (A == null ? void 0 : A.dashboard) ?? null, { isDirty: It, isDirtyPending: qr, resetDirty: he } = En(
1809
1809
  m,
1810
1810
  _e,
1811
1811
  300,
1812
1812
  1e3,
1813
1813
  at
1814
- ), Mt = hn(() => _e ? at(m) !== at(_e) : !1, [m, _e]), At = It || qr, Re = Ke || ce.isPending, Kr = () => {
1814
+ ), Mt = pn(() => _e ? at(m) !== at(_e) : !1, [m, _e]), At = It || qr, Re = Ke || me.isPending, Kr = () => {
1815
1815
  if (g) {
1816
1816
  A && Ye(A.dashboard, {
1817
1817
  semanticExecutionPayload: A.semanticExecutionPayload
1818
- }), Oe(), me();
1818
+ }), Pe(), he();
1819
1819
  return;
1820
1820
  }
1821
- Mt() ? (Ae("close"), le(!0)) : (Oe(), me());
1821
+ Mt() ? (Ae("close"), ue(!0)) : (Pe(), he());
1822
1822
  }, Wr = async () => {
1823
1823
  await Xe({
1824
1824
  closeAfterSave: !0,
1825
1825
  navigateHomeAfterSave: Qe === "home"
1826
1826
  });
1827
1827
  }, Qr = () => {
1828
- const d = Qe === "home" && !!de;
1828
+ const d = Qe === "home" && !!ce;
1829
1829
  A && Ye(A.dashboard, {
1830
1830
  semanticExecutionPayload: A.semanticExecutionPayload
1831
- }), Oe(), d && je(), Ae("close"), le(!1), me();
1831
+ }), Pe(), d && je(), Ae("close"), ue(!1), he();
1832
1832
  }, Jr = () => {
1833
1833
  A && (Ye(A.dashboard, {
1834
1834
  semanticExecutionPayload: A.semanticExecutionPayload
1835
- }), me());
1835
+ }), he());
1836
1836
  }, Yr = () => {
1837
- if (de) {
1837
+ if (ce) {
1838
1838
  if (k && Mt()) {
1839
- Ae("home"), le(!0);
1839
+ Ae("home"), ue(!0);
1840
1840
  return;
1841
1841
  }
1842
1842
  je();
@@ -1849,13 +1849,13 @@ function Js() {
1849
1849
  if (!M)
1850
1850
  return;
1851
1851
  const U = (d == null ? void 0 : d.closeAfterSave) ?? vt, Ze = (d == null ? void 0 : d.navigateHomeAfterSave) ?? !1;
1852
- Ie(U), U && le(!1);
1852
+ Ie(U), U && ue(!1);
1853
1853
  const et = lt(M);
1854
1854
  Q(!0), Y(null), Le([]), We(!0);
1855
1855
  const aa = {
1856
1856
  template: M
1857
1857
  };
1858
- ce.mutate(
1858
+ me.mutate(
1859
1859
  {
1860
1860
  resourceId: M.id,
1861
1861
  data: aa
@@ -1870,12 +1870,12 @@ function Js() {
1870
1870
  X
1871
1871
  ) : Te && tt.actions.clearPendingDashboardDraftMigration();
1872
1872
  }
1873
- We(!1), C.success("Dashboard saved!"), Pe(
1873
+ We(!1), C.success("Dashboard saved!"), Oe(
1874
1874
  nr(
1875
1875
  et,
1876
1876
  S.getState().semanticExecutionPayload
1877
1877
  )
1878
- ), Q(!1), Ie(!1), U && (Oe(), me(), Ze && de && je()), Ae("close");
1878
+ ), Q(!1), Ie(!1), U && (Pe(), he(), Ze && ce && je()), Ae("close");
1879
1879
  },
1880
1880
  onError: (_) => {
1881
1881
  We(!1), Y("Failed to save dashboard. Please try again.");
@@ -1885,7 +1885,7 @@ function Js() {
1885
1885
  (Ve) => typeof Ve == "string"
1886
1886
  ) : [];
1887
1887
  Le(
1888
- ys({
1888
+ vs({
1889
1889
  errors: Ue,
1890
1890
  dashboard: M || void 0
1891
1891
  })
@@ -1920,29 +1920,29 @@ function Js() {
1920
1920
  t == null ? void 0 : t.accessToken
1921
1921
  ), C.success("Lens saved"), He == null || He(d), W(!1);
1922
1922
  }
1923
- const Pt = (L == null ? void 0 : L.name) || m.title;
1924
- ce.isPending && console.log("Title during update:", {
1925
- title: Pt,
1923
+ const Ot = (L == null ? void 0 : L.name) || m.title;
1924
+ me.isPending && console.log("Title during update:", {
1925
+ title: Ot,
1926
1926
  dashboardStateTitle: m.title,
1927
1927
  dashboardId: m == null ? void 0 : m.id,
1928
1928
  currentLensName: L == null ? void 0 : L.name
1929
1929
  });
1930
- const Zr = de && !!(t != null && t.accessToken) && !!(n != null && n.apiServiceUrl), ea = !g && ne.showDashboardHub && Zr, ta = !g && i && ne.showDashboardHub, j = (m == null ? void 0 : m.id) || null, Ot = za(
1930
+ const Zr = ce && !!(t != null && t.accessToken) && !!(n != null && n.apiServiceUrl), ea = !g && ne.showDashboardHub && Zr, ta = !g && i && ne.showDashboardHub, j = (m == null ? void 0 : m.id) || null, Pt = za(
1931
1931
  (Tt = n.config) == null ? void 0 : Tt.showBriefings,
1932
1932
  r
1933
- ), pe = !!j && Vr === j, ra = () => {
1933
+ ), se = !!j && Vr === j, ra = () => {
1934
1934
  !j || g || Tr({
1935
- dashboardId: pe ? null : j
1935
+ dashboardId: se ? null : j
1936
1936
  });
1937
1937
  };
1938
- return !i && !O ? null : /* @__PURE__ */ o(
1938
+ return !i && !P ? null : /* @__PURE__ */ o(
1939
1939
  "div",
1940
1940
  {
1941
1941
  className: "flex min-h-11 shrink-0 items-center justify-between gap-2 overflow-x-auto border-b px-4 py-1.5",
1942
1942
  role: "dashboard-controls",
1943
1943
  children: [
1944
1944
  /* @__PURE__ */ o("div", { className: "flex items-center gap-2", children: [
1945
- ta && !O && /* @__PURE__ */ e(
1945
+ ta && !P && /* @__PURE__ */ e(
1946
1946
  qt,
1947
1947
  {
1948
1948
  "aria-label": "Dashboard Hub",
@@ -1950,10 +1950,10 @@ function Js() {
1950
1950
  onClick: Yr,
1951
1951
  className: "h-7 w-7 px-0",
1952
1952
  buttonProps: { size: "xs" },
1953
- children: /* @__PURE__ */ e(cr, { className: "h-3.5 w-3.5" })
1953
+ children: /* @__PURE__ */ e(Ha, { className: "h-3.5 w-3.5" })
1954
1954
  }
1955
1955
  ),
1956
- !O && i && (x ? /* @__PURE__ */ e(
1956
+ !P && i && (x ? /* @__PURE__ */ e(
1957
1957
  "div",
1958
1958
  {
1959
1959
  className: "h-4 w-28 animate-pulse rounded-md bg-muted/70",
@@ -1963,9 +1963,9 @@ function Js() {
1963
1963
  }
1964
1964
  ) : /* @__PURE__ */ o(T, { children: [
1965
1965
  /* @__PURE__ */ e(
1966
- Ha,
1966
+ ja,
1967
1967
  {
1968
- value: Pt || "Untitled Dashboard",
1968
+ value: Ot || "Untitled Dashboard",
1969
1969
  onSave: (d) => {
1970
1970
  console.log("EditableText onSave called:", {
1971
1971
  newTitle: d,
@@ -1975,7 +1975,7 @@ function Js() {
1975
1975
  const M = (m == null ? void 0 : m.title) || "";
1976
1976
  te(d), Hr(d, M);
1977
1977
  },
1978
- isEditable: ja({
1978
+ isEditable: qa({
1979
1979
  isDashboardEditing: k,
1980
1980
  canEditDashboard: p === !0 && !g,
1981
1981
  hasCurrentLens: !!L
@@ -1983,10 +1983,10 @@ function Js() {
1983
1983
  displayClassName: "text-[13px] font-medium",
1984
1984
  inputClassName: "text-[13px] font-medium",
1985
1985
  placeholder: "Dashboard Title",
1986
- isPending: ce.isPending
1986
+ isPending: me.isPending
1987
1987
  }
1988
1988
  ),
1989
- ne.showDashboardHub && pe && /* @__PURE__ */ e(
1989
+ ne.showDashboardHub && se && /* @__PURE__ */ e(
1990
1990
  "span",
1991
1991
  {
1992
1992
  className: "shrink-0 rounded-[4px] border border-border/60 px-1.5 py-px text-[10px] font-medium uppercase tracking-[0.06em] text-muted-foreground",
@@ -2002,34 +2002,38 @@ function Js() {
2002
2002
  size: "xs",
2003
2003
  onClick: ra,
2004
2004
  disabled: Fr || !(t != null && t.accessToken) || !(n != null && n.apiServiceUrl),
2005
- className: "w-7 px-0 text-muted-foreground hover:text-foreground",
2006
- "aria-label": pe ? "Clear default dashboard" : "Set as default dashboard",
2007
- children: pe ? /* @__PURE__ */ e(qa, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ e(Ka, { className: "h-3.5 w-3.5" })
2005
+ className: oe(
2006
+ "w-7 px-0",
2007
+ se ? "bg-primary/10 text-primary hover:bg-primary/15 hover:text-primary focus-visible:bg-primary/15" : "text-muted-foreground hover:text-foreground"
2008
+ ),
2009
+ "aria-pressed": se,
2010
+ "aria-label": se ? "Remove as default dashboard" : "Set as default dashboard",
2011
+ children: /* @__PURE__ */ e(cr, { className: "h-3.5 w-3.5" })
2008
2012
  }
2009
2013
  ) }),
2010
- /* @__PURE__ */ e(Ht, { children: /* @__PURE__ */ e("p", { children: pe ? "Clear default" : "Set as default" }) })
2014
+ /* @__PURE__ */ e(Ht, { children: /* @__PURE__ */ e("p", { children: se ? "Remove as default dashboard" : "Set as default dashboard" }) })
2011
2015
  ] }) })
2012
2016
  ] }))
2013
2017
  ] }),
2014
2018
  /* @__PURE__ */ o("div", { className: "flex items-center gap-2", children: [
2015
- O && /* @__PURE__ */ o(T, { children: [
2016
- /* @__PURE__ */ e(xn, {}),
2017
- /* @__PURE__ */ e(vn, {})
2019
+ P && /* @__PURE__ */ o(T, { children: [
2020
+ /* @__PURE__ */ e(bn, {}),
2021
+ /* @__PURE__ */ e(xn, {})
2018
2022
  ] }),
2019
- !O && i && !g && ne.showDashboardSharing && /* @__PURE__ */ o(
2023
+ !P && i && !g && ne.showDashboardSharing && /* @__PURE__ */ o(
2020
2024
  R,
2021
2025
  {
2022
2026
  variant: "outline",
2023
2027
  size: "xs",
2024
2028
  onClick: () => Ne(!0),
2025
2029
  children: [
2026
- /* @__PURE__ */ e(Wa, { className: "h-3.5 w-3.5" }),
2030
+ /* @__PURE__ */ e(Ka, { className: "h-3.5 w-3.5" }),
2027
2031
  "Share"
2028
2032
  ]
2029
2033
  }
2030
2034
  ),
2031
- !O && k && !g && f.canUseFilters && i && /* @__PURE__ */ e(yn, {}),
2032
- k && !O && !g && ue && L && l && i && /* @__PURE__ */ o(
2035
+ !P && k && !g && f.canUseFilters && i && /* @__PURE__ */ e(vn, {}),
2036
+ k && !P && !g && pe && L && l && i && /* @__PURE__ */ o(
2033
2037
  R,
2034
2038
  {
2035
2039
  variant: "secondary",
@@ -2042,7 +2046,7 @@ function Js() {
2042
2046
  ]
2043
2047
  }
2044
2048
  ),
2045
- k && !O && !g && i && !B && /* @__PURE__ */ o("div", { className: "inline-flex h-7 items-stretch overflow-hidden rounded-control border border-input bg-background", children: [
2049
+ k && !P && !g && i && !B && /* @__PURE__ */ o("div", { className: "inline-flex h-7 items-stretch overflow-hidden rounded-control border border-input bg-background", children: [
2046
2050
  /* @__PURE__ */ o(
2047
2051
  R,
2048
2052
  {
@@ -2066,7 +2070,7 @@ function Js() {
2066
2070
  className: "h-full w-7 rounded-none border-0 border-l border-border/60 px-0 shadow-none hover:bg-accent",
2067
2071
  "aria-label": "Open visual options",
2068
2072
  disabled: !k,
2069
- children: /* @__PURE__ */ e(mn, { className: "h-3.5 w-3.5" })
2073
+ children: /* @__PURE__ */ e(un, { className: "h-3.5 w-3.5" })
2070
2074
  }
2071
2075
  ) }),
2072
2076
  /* @__PURE__ */ e(
@@ -2082,16 +2086,16 @@ function Js() {
2082
2086
  )
2083
2087
  ] }),
2084
2088
  /* @__PURE__ */ e(
2085
- wn,
2089
+ yn,
2086
2090
  {
2087
2091
  open: _r,
2088
2092
  onOpenChange: yt
2089
2093
  }
2090
2094
  )
2091
2095
  ] }),
2092
- !O && !k && (p || g) && (!u || !h || p !== void 0) && i && /* @__PURE__ */ o("div", { className: "inline-flex items-center gap-1", children: [
2096
+ !P && !k && (p || g) && (!u || !h || p !== void 0) && i && /* @__PURE__ */ o("div", { className: "inline-flex items-center gap-1", children: [
2093
2097
  /* @__PURE__ */ o(R, { size: "xs", onClick: jr, children: [
2094
- /* @__PURE__ */ e(Qa, { className: "h-3.5 w-3.5" }),
2098
+ /* @__PURE__ */ e(Wa, { className: "h-3.5 w-3.5" }),
2095
2099
  g ? "Inspect" : "Edit"
2096
2100
  ] }),
2097
2101
  b ? /* @__PURE__ */ e(Gt, { children: /* @__PURE__ */ o(Bt, { children: [
@@ -2115,7 +2119,7 @@ function Js() {
2115
2119
  onClick: Jr,
2116
2120
  disabled: Re,
2117
2121
  children: [
2118
- /* @__PURE__ */ e(Ja, { className: "h-3.5 w-3.5" }),
2122
+ /* @__PURE__ */ e(Qa, { className: "h-3.5 w-3.5" }),
2119
2123
  "Undo"
2120
2124
  ]
2121
2125
  }
@@ -2124,7 +2128,7 @@ function Js() {
2124
2128
  R,
2125
2129
  {
2126
2130
  size: "xs",
2127
- className: be(!At && "opacity-60"),
2131
+ className: oe(!At && "opacity-60"),
2128
2132
  disabled: Re || !At,
2129
2133
  onClick: () => Xe(),
2130
2134
  children: [
@@ -2133,13 +2137,13 @@ function Js() {
2133
2137
  ]
2134
2138
  }
2135
2139
  ),
2136
- k && !O && i && /* @__PURE__ */ o(R, { variant: "outline", size: "xs", onClick: Kr, children: [
2140
+ k && !P && i && /* @__PURE__ */ o(R, { variant: "outline", size: "xs", onClick: Kr, children: [
2137
2141
  /* @__PURE__ */ e(ur, { className: "h-3.5 w-3.5" }),
2138
2142
  "Close"
2139
2143
  ] }),
2140
- !O && i && /* @__PURE__ */ e("div", { className: "ml-2 flex items-center", children: /* @__PURE__ */ e(Nn, {}) }),
2141
- !O && l && /* @__PURE__ */ e($n, {}),
2142
- !O && i && !g && /* @__PURE__ */ o(Kt, { children: [
2144
+ !P && i && /* @__PURE__ */ e("div", { className: "ml-2 flex items-center", children: /* @__PURE__ */ e(wn, {}) }),
2145
+ !P && l && /* @__PURE__ */ e(Fn, {}),
2146
+ !P && i && !g && /* @__PURE__ */ o(Kt, { children: [
2143
2147
  /* @__PURE__ */ e(Wt, { asChild: !0, children: /* @__PURE__ */ e(
2144
2148
  qt,
2145
2149
  {
@@ -2150,7 +2154,7 @@ function Js() {
2150
2154
  variant: "ghost",
2151
2155
  "aria-label": "More dashboard options"
2152
2156
  },
2153
- children: /* @__PURE__ */ e(Ya, { className: "h-3.5 w-3.5" })
2157
+ children: /* @__PURE__ */ e(Ja, { className: "h-3.5 w-3.5" })
2154
2158
  }
2155
2159
  ) }),
2156
2160
  /* @__PURE__ */ o(
@@ -2159,30 +2163,30 @@ function Js() {
2159
2163
  align: "end",
2160
2164
  className: "w-56 rounded-control border border-border/60 p-1 shadow-sm",
2161
2165
  children: [
2162
- /* @__PURE__ */ e(ge, { children: "Reports & briefings" }),
2166
+ /* @__PURE__ */ e(be, { children: "Reports & briefings" }),
2163
2167
  /* @__PURE__ */ o(
2164
2168
  V,
2165
2169
  {
2166
2170
  disabled: w,
2167
- onSelect: () => ie(!0),
2171
+ onSelect: () => le(!0),
2168
2172
  children: [
2169
- /* @__PURE__ */ e(Xa, { className: "h-3.5 w-3.5" }),
2173
+ /* @__PURE__ */ e(Ya, { className: "h-3.5 w-3.5" }),
2170
2174
  "Export"
2171
2175
  ]
2172
2176
  }
2173
2177
  ),
2174
2178
  /* @__PURE__ */ e(
2175
- Ns,
2179
+ ws,
2176
2180
  {
2177
- scheduleReportVisible: !!(Ot && s.surfaceVisible && j && !k),
2178
- analyticalBriefingVisible: !!(Ot && s.surfaceVisible && j && !k),
2179
- onScheduleReport: () => oe("scheduled_report"),
2180
- onCreateAnalyticalBriefing: () => oe("analytical_briefing")
2181
+ scheduleReportVisible: !!(Pt && s.surfaceVisible && j && !k),
2182
+ analyticalBriefingVisible: !!(Pt && s.surfaceVisible && j && !k),
2183
+ onScheduleReport: () => de("scheduled_report"),
2184
+ onCreateAnalyticalBriefing: () => de("analytical_briefing")
2181
2185
  }
2182
2186
  ),
2183
2187
  /* @__PURE__ */ e(Ge, {}),
2184
2188
  ne.showGroupManagement && /* @__PURE__ */ o(T, { children: [
2185
- /* @__PURE__ */ e(ge, { children: "Access" }),
2189
+ /* @__PURE__ */ e(be, { children: "Access" }),
2186
2190
  /* @__PURE__ */ o(
2187
2191
  V,
2188
2192
  {
@@ -2195,14 +2199,14 @@ function Js() {
2195
2199
  ),
2196
2200
  /* @__PURE__ */ e(Ge, {})
2197
2201
  ] }),
2198
- /* @__PURE__ */ e(ge, { children: "Preferences" }),
2199
- /* @__PURE__ */ o(V, { onClick: () => se(!0), children: [
2202
+ /* @__PURE__ */ e(be, { children: "Preferences" }),
2203
+ /* @__PURE__ */ o(V, { onClick: () => ie(!0), children: [
2200
2204
  /* @__PURE__ */ e(hr, { className: "h-3.5 w-3.5" }),
2201
2205
  "Report preferences"
2202
2206
  ] }),
2203
2207
  l && i && /* @__PURE__ */ o(T, { children: [
2204
2208
  /* @__PURE__ */ e(Ge, {}),
2205
- /* @__PURE__ */ e(ge, { children: "Developer" }),
2209
+ /* @__PURE__ */ e(be, { children: "Developer" }),
2206
2210
  /* @__PURE__ */ o(
2207
2211
  V,
2208
2212
  {
@@ -2251,13 +2255,13 @@ function Js() {
2251
2255
  {
2252
2256
  onSelect: () => ca(n.apiServiceUrl),
2253
2257
  children: [
2254
- /* @__PURE__ */ e(_n, { className: "h-3.5 w-3.5" }),
2258
+ /* @__PURE__ */ e(Pn, { className: "h-3.5 w-3.5" }),
2255
2259
  "Invalidate token"
2256
2260
  ]
2257
2261
  }
2258
2262
  ),
2259
2263
  /* @__PURE__ */ o(V, { onSelect: c, children: [
2260
- /* @__PURE__ */ e(In, { className: "h-3.5 w-3.5" }),
2264
+ /* @__PURE__ */ e(Ln, { className: "h-3.5 w-3.5" }),
2261
2265
  "Brand Studio"
2262
2266
  ] }),
2263
2267
  k && /* @__PURE__ */ o(
@@ -2265,21 +2269,21 @@ function Js() {
2265
2269
  {
2266
2270
  onSelect: () => Dt(!Nt),
2267
2271
  children: [
2268
- /* @__PURE__ */ e(Mn, { className: "h-3.5 w-3.5" }),
2272
+ /* @__PURE__ */ e(In, { className: "h-3.5 w-3.5" }),
2269
2273
  Nt ? "Hide dashboard JSON" : "Show dashboard JSON"
2270
2274
  ]
2271
2275
  }
2272
2276
  ),
2273
- ue && k && /* @__PURE__ */ o(V, { onSelect: () => y(!0), children: [
2277
+ pe && k && /* @__PURE__ */ o(V, { onSelect: () => y(!0), children: [
2274
2278
  /* @__PURE__ */ e(K, { className: "h-3.5 w-3.5" }),
2275
2279
  "Add lens"
2276
2280
  ] }),
2277
- ue && /* @__PURE__ */ o(Za, { children: [
2278
- /* @__PURE__ */ o(en, { children: [
2279
- /* @__PURE__ */ e(An, { className: "h-3.5 w-3.5" }),
2281
+ pe && /* @__PURE__ */ o(Xa, { children: [
2282
+ /* @__PURE__ */ o(Za, { children: [
2283
+ /* @__PURE__ */ e(Mn, { className: "h-3.5 w-3.5" }),
2280
2284
  "Lenses"
2281
2285
  ] }),
2282
- /* @__PURE__ */ e(tn, { className: "w-60", children: /* @__PURE__ */ e(jn, {}) })
2286
+ /* @__PURE__ */ e(en, { className: "w-60", children: /* @__PURE__ */ e(Hn, {}) })
2283
2287
  ] })
2284
2288
  ] })
2285
2289
  ]
@@ -2287,7 +2291,7 @@ function Js() {
2287
2291
  )
2288
2292
  ] }),
2289
2293
  we && kt && /* @__PURE__ */ e(
2290
- rn,
2294
+ tn,
2291
2295
  {
2292
2296
  resource: kt,
2293
2297
  resourceType: rt.DASHBOARD,
@@ -2295,59 +2299,59 @@ function Js() {
2295
2299
  }
2296
2300
  ),
2297
2301
  ne.showGroupManagement && /* @__PURE__ */ e(
2298
- ps,
2302
+ ms,
2299
2303
  {
2300
2304
  open: Se,
2301
2305
  onOpenChange: De
2302
2306
  }
2303
2307
  ),
2304
2308
  /* @__PURE__ */ e(
2305
- En,
2309
+ kn,
2306
2310
  {
2307
2311
  open: Ce,
2308
- onOpenChange: se
2312
+ onOpenChange: ie
2309
2313
  }
2310
2314
  ),
2311
2315
  j && ke ? /* @__PURE__ */ e(
2312
- Sn,
2316
+ Nn,
2313
2317
  {
2314
2318
  dashboardId: j,
2315
2319
  dashboardTitle: (m == null ? void 0 : m.title) || (H == null ? void 0 : H.title),
2316
2320
  open: !0,
2317
2321
  onOpenChange: (d) => {
2318
- d || oe(null);
2322
+ d || de(null);
2319
2323
  },
2320
2324
  hideTrigger: !0,
2321
2325
  workflowIntent: ke
2322
2326
  }
2323
2327
  ) : null,
2324
- l && ue && i && /* @__PURE__ */ e(Hn, { open: ae, onOpenChange: y }),
2328
+ l && pe && i && /* @__PURE__ */ e(zn, { open: ae, onOpenChange: y }),
2325
2329
  i && /* @__PURE__ */ e(
2326
- an,
2330
+ rn,
2327
2331
  {
2328
2332
  open: z,
2329
- onOpenChange: ie
2333
+ onOpenChange: le
2330
2334
  }
2331
2335
  ),
2332
2336
  /* @__PURE__ */ e(
2333
- nn,
2337
+ an,
2334
2338
  {
2335
2339
  open: Ee,
2336
2340
  onOpenChange: (d) => {
2337
2341
  !d && Ke && !J || (Q(d), d || (Y(null), Le([]), Ie(!1)));
2338
2342
  },
2339
- children: /* @__PURE__ */ o(sn, { className: "max-w-sm", children: [
2340
- /* @__PURE__ */ o(on, { children: [
2341
- /* @__PURE__ */ e(dn, { children: J ? "Save failed" : "Saving dashboard" }),
2342
- /* @__PURE__ */ e(ln, { className: "pt-2", children: J ? "We could not save the dashboard. Please try again." : "Please wait while we save your changes." }),
2343
+ children: /* @__PURE__ */ o(nn, { className: "max-w-sm", children: [
2344
+ /* @__PURE__ */ o(sn, { children: [
2345
+ /* @__PURE__ */ e(on, { children: J ? "Save failed" : "Saving dashboard" }),
2346
+ /* @__PURE__ */ e(dn, { className: "pt-2", children: J ? "We could not save the dashboard. Please try again." : "Please wait while we save your changes." }),
2343
2347
  xt.length > 0 && /* @__PURE__ */ o("div", { className: "space-y-1 rounded-md border border-destructive/20 bg-destructive/5 p-3 text-left", children: [
2344
2348
  /* @__PURE__ */ e("div", { className: "text-sm font-medium text-destructive", children: "What needs attention" }),
2345
2349
  /* @__PURE__ */ e("ul", { className: "list-disc space-y-1 pl-4 text-xs text-muted-foreground", children: xt.slice(0, 5).map((d) => /* @__PURE__ */ e("li", { children: d }, d)) })
2346
2350
  ] })
2347
2351
  ] }),
2348
- /* @__PURE__ */ e(cn, { className: "flex-col gap-2 sm:flex-row sm:justify-end", children: J ? /* @__PURE__ */ o(T, { children: [
2352
+ /* @__PURE__ */ e(ln, { className: "flex-col gap-2 sm:flex-row sm:justify-end", children: J ? /* @__PURE__ */ o(T, { children: [
2349
2353
  /* @__PURE__ */ e(
2350
- un,
2354
+ cn,
2351
2355
  {
2352
2356
  onClick: () => {
2353
2357
  Q(!1), Y(null), Le([]), Ie(!1);
@@ -2375,11 +2379,11 @@ function Js() {
2375
2379
  }
2376
2380
  ),
2377
2381
  /* @__PURE__ */ e(
2378
- Dn,
2382
+ Sn,
2379
2383
  {
2380
2384
  open: zr,
2381
2385
  onOpenChange: (d) => {
2382
- le(d);
2386
+ ue(d);
2383
2387
  },
2384
2388
  onSave: Wr,
2385
2389
  onDiscard: Qr,
@@ -2393,7 +2397,7 @@ function Js() {
2393
2397
  }
2394
2398
  );
2395
2399
  }
2396
- function Ss({
2400
+ function Ns({
2397
2401
  accessToken: t,
2398
2402
  dashboardId: n,
2399
2403
  selectedSheetId: a,
@@ -2409,5 +2413,5 @@ function Ss({
2409
2413
  return h.searchParams.set("pdfMode", "document"), h.searchParams.set("pageSize", r || "letter"), h.searchParams.set("orientation", s || "portrait"), h.searchParams.set("url", p.toString()), h.toString();
2410
2414
  }
2411
2415
  export {
2412
- Js as default
2416
+ Qs as default
2413
2417
  };