react-semaphor 0.1.510 → 0.1.512
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.
- package/dist/brand-studio/index.cjs +1 -1
- package/dist/brand-studio/index.js +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-CLZFm7_M.js → dashboard-briefing-launcher-CKOSxJJy.js} +103 -103
- package/dist/chunks/{dashboard-briefing-launcher-CAHFThZ6.cjs → dashboard-briefing-launcher-Dna1RtyP.cjs} +1 -1
- package/dist/chunks/{dashboard-controls-Yxsu_3w-.cjs → dashboard-controls-9H6PxWNh.cjs} +1 -1
- package/dist/chunks/{dashboard-controls-Cq0yJp7k.js → dashboard-controls-BqePoOt8.js} +130 -130
- package/dist/chunks/{dashboard-json-B2v70qeb.js → dashboard-json-BJJ1cddf.js} +2 -2
- package/dist/chunks/{dashboard-json-Czr84uhZ.cjs → dashboard-json-BwwJoZdd.cjs} +1 -1
- package/dist/chunks/{edit-dashboard-visual-BLWXCutZ.js → edit-dashboard-visual-Db2mRA_9.js} +5045 -5038
- package/dist/chunks/edit-dashboard-visual-cJdvfkou.cjs +172 -0
- package/dist/chunks/{editor-action-buttons-DwMSyAJY.cjs → editor-action-buttons-CKS-8x2Y.cjs} +1 -1
- package/dist/chunks/{editor-action-buttons-BiUk_CQn.js → editor-action-buttons-ktNQjwNQ.js} +27 -27
- package/dist/chunks/index-CdlFHeq9.cjs +1419 -0
- package/dist/chunks/{index-CTFwTeBb.js → index-SVO291wS.js} +36882 -37006
- package/dist/chunks/{report-preferences-dialog-CEja_Mat.js → report-preferences-dialog-CBZBmpxZ.js} +7 -7
- package/dist/chunks/{report-preferences-dialog-C1LOgCAH.cjs → report-preferences-dialog-DserKhuQ.cjs} +1 -1
- package/dist/chunks/{switch-BUW-Ky0G.cjs → switch-BkcJCTS7.cjs} +14 -14
- package/dist/chunks/{switch-MB0NuLq-.js → switch-CrstROAR.js} +144 -144
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/data-app-builder/index.cjs +1 -1
- package/dist/data-app-builder/index.js +50 -50
- package/dist/index.cjs +1 -1
- package/dist/index.js +216 -234
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/components/dashboard/dashboard-visual-error-state.d.ts +7 -1
- package/dist/types/components/error-fallbacks/fallback.d.ts +23 -11
- package/dist/types/components/error-fallbacks/render-reset-error-boundary.d.ts +33 -0
- package/dist/types/components/visual/data-table/hooks/use-data-table-logic.d.ts +5 -0
- package/dist/types/lib/dashboard/open-card-in-visual-editor.d.ts +15 -0
- package/dist/types/lib/dashboard-pagination/dashboard-card-pagination.d.ts +8 -1
- package/package.json +1 -1
- package/dist/chunks/edit-dashboard-visual-C8ni6cKY.cjs +0 -172
- package/dist/chunks/index-BriWG9wG.cjs +0 -1420
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as e, jsxs as o, Fragment as T } from "react/jsx-runtime";
|
|
2
|
-
import { u as S, B as U, aB as lt, z as nr, O as aa, Z as na, c as ie, aC as sa, aD as oa, aE as nt, a4 as C, aF as ye, aG as ut, aH as sr, L as Be, aI as or, aJ as ia, D as Ft, Q as $t, V as Gt, W as Bt, Y as
|
|
3
|
-
import {
|
|
2
|
+
import { u as S, B as U, aB as lt, z as nr, O as aa, Z as na, c as ie, aC as sa, aD as oa, aE as nt, a4 as C, aF as ye, aG as ut, aH as sr, L as Be, aI as or, aJ as ia, D as Ft, Q as $t, V as Gt, W as Bt, Y as zt, X as da, i as ca, aK as la } from "./switch-CrstROAR.js";
|
|
3
|
+
import { bx as ua, by as ma, az as q, aG as ir, bz as pa, aY as W, aH as dr, aI as ha, aJ as st, aK as ot, aF as fa, bA as ve, bB as Ge, bC as ga, bD as Ht, bE as cr, bF as lr, bG as ba, bH as mt, bI as xa, bJ as va, bK as ya, bL as wa, bM as Na, bN as Sa, b7 as we, bO as Ne, bP as Da, bQ as ur, bl as pt, bR as Ca, bS as ka, bT as mr, bU as Ea, bV as pr, bW as V, bX as La, ap as Ia, bY as Ma, bZ as Aa, b_ as Oa, b$ as Pa, m as _a, u as Fe, s as Ra, n as tt, c0 as Ua, c1 as Va, c2 as Ta, c3 as Fa, L as $a, c4 as Ga, c5 as Ba, I as jt, c6 as za, c7 as Ha, c8 as ja, c9 as qa, ca as qt, cb as Kt, cc as Wt, cd as Ka, ce as Wa, cf as Qa, cg as Ja, b0 as Qt, ch as Ya, ci as Xa, cj as Za, r as en, ck as tn, aO as rn, aR as an, aS as nn, aT as sn, aU as on, aV as dn, aW as cn, aX as Jt } from "./index-SVO291wS.js";
|
|
4
4
|
import { c as te, X as hr, C as ln } from "./x-CXDkqdur.js";
|
|
5
5
|
import "./card-config-utils-Bq1enstT.js";
|
|
6
6
|
import "./validators-BDYzZFgs.js";
|
|
7
7
|
import "./matrix-operation-contract-xL8IhFzp.js";
|
|
8
8
|
import "../value-format-preferences/index.js";
|
|
9
9
|
import * as M from "react";
|
|
10
|
-
import fr, { useState as N, useMemo as ee, useEffect as
|
|
10
|
+
import fr, { useState as N, useMemo as ee, useEffect as ze, useRef as Yt, useLayoutEffect as un } from "react";
|
|
11
11
|
import "./appearance-context-VJdrKi7r.js";
|
|
12
12
|
import "./index-CLIro-EG.js";
|
|
13
13
|
import "./field-aggregations-DUb0NU6c.js";
|
|
@@ -17,14 +17,14 @@ import "./color-CJvdlFM_.js";
|
|
|
17
17
|
import { createPortal as mn } from "react-dom";
|
|
18
18
|
import "./index-0pdaQ9e1.js";
|
|
19
19
|
import "./appearance-runtime-provider-CC4HT2Gi.js";
|
|
20
|
-
import { d as pn, c as hn, u as fn, A as gn, a as bn, g as xn, V as vn, N as yn, h as wn, U as Nn } from "./dashboard-briefing-launcher-
|
|
20
|
+
import { d as pn, c as hn, u as fn, A as gn, a as bn, g as xn, V as vn, N as yn, h as wn, U as Nn } from "./dashboard-briefing-launcher-CKOSxJJy.js";
|
|
21
21
|
import { S as Sn, C as Dn } from "./selection-reducer-B94WgZ9V.js";
|
|
22
22
|
import { d as gr } from "./semantic-format-CBlRO8Aw.js";
|
|
23
23
|
import { c as it } from "./calculated-field-identity-CJL54uFx.js";
|
|
24
|
-
import { R as Cn } from "./report-preferences-dialog-
|
|
24
|
+
import { R as Cn } from "./report-preferences-dialog-CBZBmpxZ.js";
|
|
25
25
|
import { u as kn } from "./use-debounced-dirty-check-BwAbnX_5.js";
|
|
26
26
|
import { s as En } from "./normalize-dashboard-for-dirty-check-Bk3VYv_q.js";
|
|
27
|
-
import { S as
|
|
27
|
+
import { S as Xt } from "./save-DgMfP0j8.js";
|
|
28
28
|
import { P as Ln } from "./palette-Cp1hqZtm.js";
|
|
29
29
|
import { B as In } from "./braces-8TRlDwDw.js";
|
|
30
30
|
/**
|
|
@@ -57,7 +57,7 @@ const An = te("Monitor", [
|
|
|
57
57
|
* This source code is licensed under the ISC license.
|
|
58
58
|
* See the LICENSE file in the root directory of this source tree.
|
|
59
59
|
*/
|
|
60
|
-
const
|
|
60
|
+
const On = te("Moon", [
|
|
61
61
|
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z", key: "a7tn18" }]
|
|
62
62
|
]);
|
|
63
63
|
/**
|
|
@@ -66,7 +66,7 @@ const Pn = te("Moon", [
|
|
|
66
66
|
* This source code is licensed under the ISC license.
|
|
67
67
|
* See the LICENSE file in the root directory of this source tree.
|
|
68
68
|
*/
|
|
69
|
-
const
|
|
69
|
+
const Pn = te("ShieldX", [
|
|
70
70
|
[
|
|
71
71
|
"path",
|
|
72
72
|
{
|
|
@@ -241,7 +241,7 @@ function Fn() {
|
|
|
241
241
|
const m = $e.includes(t) ? t : "system", h = $e[($e.indexOf(m) + 1) % $e.length];
|
|
242
242
|
n(h), a(h);
|
|
243
243
|
}
|
|
244
|
-
const s = t === "light" ? _n : t === "dark" ?
|
|
244
|
+
const s = t === "light" ? _n : t === "dark" ? On : An, c = t === "light" ? "Theme: light (click for dark)" : t === "dark" ? "Theme: dark (click for system)" : "Theme: system (click for light)";
|
|
245
245
|
return /* @__PURE__ */ e(
|
|
246
246
|
U,
|
|
247
247
|
{
|
|
@@ -321,7 +321,7 @@ async function Gn(t, n, a) {
|
|
|
321
321
|
});
|
|
322
322
|
}
|
|
323
323
|
const Bn = "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground";
|
|
324
|
-
function
|
|
324
|
+
function zn({
|
|
325
325
|
open: t,
|
|
326
326
|
onOpenChange: n
|
|
327
327
|
} = {}) {
|
|
@@ -349,7 +349,7 @@ function Hn({
|
|
|
349
349
|
}
|
|
350
350
|
return /* @__PURE__ */ o(ir, { open: x, onOpenChange: v, children: [
|
|
351
351
|
i ? null : /* @__PURE__ */ e(pa, { asChild: !0, children: /* @__PURE__ */ o(U, { variant: "secondary", size: "xs", children: [
|
|
352
|
-
/* @__PURE__ */ e(
|
|
352
|
+
/* @__PURE__ */ e(W, { className: "h-3.5 w-3.5" }),
|
|
353
353
|
"Lens"
|
|
354
354
|
] }) }),
|
|
355
355
|
/* @__PURE__ */ o(dr, { className: "rounded-control border-border/60 sm:max-w-[420px] sm:rounded-control", children: [
|
|
@@ -387,7 +387,7 @@ function Hn({
|
|
|
387
387
|
] })
|
|
388
388
|
] });
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function Hn({ includeLabel: t = !1 } = {}) {
|
|
391
391
|
const n = S((u) => u.lenses), a = S((u) => u.selectedLensId), { setLenses: r, setSelectedLensId: s } = nr(), { authToken: c, tokenProps: m } = q();
|
|
392
392
|
async function h(u) {
|
|
393
393
|
s(u);
|
|
@@ -432,9 +432,9 @@ function zn({ includeLabel: t = !1 } = {}) {
|
|
|
432
432
|
value: a,
|
|
433
433
|
onValueChange: h,
|
|
434
434
|
children: [
|
|
435
|
-
/* @__PURE__ */ e(
|
|
435
|
+
/* @__PURE__ */ e(Ht, { value: "original", children: "Original" }),
|
|
436
436
|
n == null ? void 0 : n.map((u) => /* @__PURE__ */ o(
|
|
437
|
-
|
|
437
|
+
Ht,
|
|
438
438
|
{
|
|
439
439
|
className: "group flex justify-between gap-2",
|
|
440
440
|
value: u.id,
|
|
@@ -553,7 +553,7 @@ function Kn(...t) {
|
|
|
553
553
|
};
|
|
554
554
|
return a.scopeName = n.scopeName, a;
|
|
555
555
|
}
|
|
556
|
-
var
|
|
556
|
+
var Wn = [
|
|
557
557
|
"a",
|
|
558
558
|
"button",
|
|
559
559
|
"div",
|
|
@@ -571,14 +571,14 @@ var Qn = [
|
|
|
571
571
|
"span",
|
|
572
572
|
"svg",
|
|
573
573
|
"ul"
|
|
574
|
-
], ht =
|
|
574
|
+
], ht = Wn.reduce((t, n) => {
|
|
575
575
|
const a = sa(`Primitive.${n}`), r = M.forwardRef((s, c) => {
|
|
576
576
|
const { asChild: m, ...h } = s, b = m ? a : n;
|
|
577
577
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ e(b, { ...h, ref: c });
|
|
578
578
|
});
|
|
579
579
|
return r.displayName = `Primitive.${n}`, { ...t, [n]: r };
|
|
580
580
|
}, {});
|
|
581
|
-
function
|
|
581
|
+
function Qn() {
|
|
582
582
|
return Tn.useSyncExternalStore(
|
|
583
583
|
Jn,
|
|
584
584
|
() => !0,
|
|
@@ -589,11 +589,11 @@ function Jn() {
|
|
|
589
589
|
return () => {
|
|
590
590
|
};
|
|
591
591
|
}
|
|
592
|
-
var ft = "Avatar", [
|
|
592
|
+
var ft = "Avatar", [Yn] = qn(ft), [Xn, vr] = Yn(ft), yr = M.forwardRef(
|
|
593
593
|
(t, n) => {
|
|
594
594
|
const { __scopeAvatar: a, ...r } = t, [s, c] = M.useState("idle");
|
|
595
595
|
return /* @__PURE__ */ e(
|
|
596
|
-
|
|
596
|
+
Xn,
|
|
597
597
|
{
|
|
598
598
|
scope: a,
|
|
599
599
|
imageLoadingStatus: s,
|
|
@@ -632,7 +632,7 @@ function tr(t, n) {
|
|
|
632
632
|
return t ? n ? (t.src !== n && (t.src = n), t.complete && t.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
633
633
|
}
|
|
634
634
|
function Zn(t, { referrerPolicy: n, crossOrigin: a }) {
|
|
635
|
-
const r =
|
|
635
|
+
const r = Qn(), s = M.useRef(null), c = r ? (s.current || (s.current = new window.Image()), s.current) : null, [m, h] = M.useState(
|
|
636
636
|
() => tr(c, t)
|
|
637
637
|
);
|
|
638
638
|
return nt(() => {
|
|
@@ -797,7 +797,7 @@ function ms({
|
|
|
797
797
|
tenantId: s ? c : void 0,
|
|
798
798
|
includeMembers: !1
|
|
799
799
|
}), u = b ? Mr(b, "Unable to load groups.") : null, [l, f] = N({ kind: "list" }), [i, x] = N(null), v = ds();
|
|
800
|
-
|
|
800
|
+
ze(() => {
|
|
801
801
|
t || (f({ kind: "list" }), x(null));
|
|
802
802
|
}, [t]);
|
|
803
803
|
const w = l.kind === "members" && m.find((p) => p.id === l.groupId) || null, D = async () => {
|
|
@@ -945,7 +945,7 @@ function ps({
|
|
|
945
945
|
onClick: m,
|
|
946
946
|
className: "inline-flex h-7 items-center gap-1.5 rounded-[5px] bg-foreground px-2.5 text-[12px] font-medium text-background hover:opacity-90",
|
|
947
947
|
children: [
|
|
948
|
-
/* @__PURE__ */ e(
|
|
948
|
+
/* @__PURE__ */ e(W, { className: "h-3 w-3" }),
|
|
949
949
|
"New group"
|
|
950
950
|
]
|
|
951
951
|
}
|
|
@@ -1063,7 +1063,7 @@ function fs({ onCreate: t }) {
|
|
|
1063
1063
|
onClick: t,
|
|
1064
1064
|
className: "mt-1 inline-flex h-7 items-center gap-1.5 rounded-[5px] bg-foreground px-2.5 text-[12px] font-medium text-background hover:opacity-90",
|
|
1065
1065
|
children: [
|
|
1066
|
-
/* @__PURE__ */ e(
|
|
1066
|
+
/* @__PURE__ */ e(W, { className: "h-3 w-3" }),
|
|
1067
1067
|
"New group"
|
|
1068
1068
|
]
|
|
1069
1069
|
}
|
|
@@ -1094,12 +1094,12 @@ function gs({
|
|
|
1094
1094
|
}), D = ee(
|
|
1095
1095
|
() => new Set(i.map((y) => y.userId)),
|
|
1096
1096
|
[i]
|
|
1097
|
-
), E = cs(), $ = ls(), I = is(), [p, G] = N(!1), [F, B] = N(t.name), [
|
|
1098
|
-
const y =
|
|
1099
|
-
return w.filter((
|
|
1100
|
-
(
|
|
1097
|
+
), E = cs(), $ = ls(), I = is(), [p, G] = N(!1), [F, B] = N(t.name), [P, k] = N(!1), [re, ae] = N(t.description || ""), [Q, Se] = N(""), [De, Ce] = N(!1), ke = ee(() => {
|
|
1098
|
+
const y = Q.trim().toLowerCase();
|
|
1099
|
+
return w.filter((z) => !D.has(z.id)).filter(
|
|
1100
|
+
(z) => !y || (z.name || "").toLowerCase().includes(y) || (z.email || "").toLowerCase().includes(y)
|
|
1101
1101
|
).slice(0, 50);
|
|
1102
|
-
}, [w, D,
|
|
1102
|
+
}, [w, D, Q]), Ee = async () => {
|
|
1103
1103
|
const y = F.trim();
|
|
1104
1104
|
if (G(!1), y.length >= 3 && y !== t.name)
|
|
1105
1105
|
try {
|
|
@@ -1193,7 +1193,7 @@ function gs({
|
|
|
1193
1193
|
i.length === 1 ? "" : "s"
|
|
1194
1194
|
] })
|
|
1195
1195
|
] }),
|
|
1196
|
-
/* @__PURE__ */ e("div", { className: "shrink-0 border-b border-border px-5 py-2.5", children:
|
|
1196
|
+
/* @__PURE__ */ e("div", { className: "shrink-0 border-b border-border px-5 py-2.5", children: P ? /* @__PURE__ */ o("div", { children: [
|
|
1197
1197
|
/* @__PURE__ */ e(
|
|
1198
1198
|
"textarea",
|
|
1199
1199
|
{
|
|
@@ -1259,7 +1259,7 @@ function gs({
|
|
|
1259
1259
|
s && /* @__PURE__ */ e(
|
|
1260
1260
|
xs,
|
|
1261
1261
|
{
|
|
1262
|
-
query:
|
|
1262
|
+
query: Q,
|
|
1263
1263
|
setQuery: Se,
|
|
1264
1264
|
open: De,
|
|
1265
1265
|
setOpen: Ce,
|
|
@@ -1286,16 +1286,16 @@ function gs({
|
|
|
1286
1286
|
/* @__PURE__ */ e("div", { className: "text-[12px] text-foreground", children: "No members yet" }),
|
|
1287
1287
|
/* @__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." })
|
|
1288
1288
|
] }) : i.map((y) => {
|
|
1289
|
-
var
|
|
1289
|
+
var z, le, Ie, J, Y, X;
|
|
1290
1290
|
return /* @__PURE__ */ o(
|
|
1291
1291
|
"div",
|
|
1292
1292
|
{
|
|
1293
1293
|
className: "group flex items-center gap-2 border-b border-border/60 px-5 py-2",
|
|
1294
1294
|
children: [
|
|
1295
|
-
/* @__PURE__ */ e(
|
|
1295
|
+
/* @__PURE__ */ e(Or, { name: ((z = y.user) == null ? void 0 : z.name) || ((le = y.user) == null ? void 0 : le.email) || "?" }),
|
|
1296
1296
|
/* @__PURE__ */ o("div", { className: "min-w-0 flex-1", children: [
|
|
1297
1297
|
/* @__PURE__ */ e("div", { className: "truncate text-[12.5px] font-medium text-foreground", children: ((Ie = y.user) == null ? void 0 : Ie.name) || ((J = y.user) == null ? void 0 : J.email) || "Unknown" }),
|
|
1298
|
-
((
|
|
1298
|
+
((Y = y.user) == null ? void 0 : Y.email) && y.user.name && /* @__PURE__ */ e("div", { className: "truncate text-[10.5px] text-muted-foreground", children: y.user.email })
|
|
1299
1299
|
] }),
|
|
1300
1300
|
!n && /* @__PURE__ */ e("span", { className: "text-[10px] uppercase tracking-[0.06em] text-muted-foreground", children: y.userType }),
|
|
1301
1301
|
/* @__PURE__ */ e(
|
|
@@ -1304,7 +1304,7 @@ function gs({
|
|
|
1304
1304
|
type: "button",
|
|
1305
1305
|
onClick: () => ce(y.userId),
|
|
1306
1306
|
disabled: !s || $.isPending,
|
|
1307
|
-
"aria-label": `Remove ${((
|
|
1307
|
+
"aria-label": `Remove ${((X = y.user) == null ? void 0 : X.name) || "member"}`,
|
|
1308
1308
|
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",
|
|
1309
1309
|
children: /* @__PURE__ */ e(hr, { className: "h-3 w-3" })
|
|
1310
1310
|
}
|
|
@@ -1407,7 +1407,7 @@ function bs({
|
|
|
1407
1407
|
/* @__PURE__ */ e(Be, { className: "h-3 w-3 animate-spin" }),
|
|
1408
1408
|
"Creating…"
|
|
1409
1409
|
] }) : /* @__PURE__ */ o(T, { children: [
|
|
1410
|
-
/* @__PURE__ */ e(
|
|
1410
|
+
/* @__PURE__ */ e(W, { className: "h-3 w-3" }),
|
|
1411
1411
|
"Create group"
|
|
1412
1412
|
] })
|
|
1413
1413
|
}
|
|
@@ -1425,7 +1425,7 @@ function xs({
|
|
|
1425
1425
|
onAdd: m,
|
|
1426
1426
|
busy: h
|
|
1427
1427
|
}) {
|
|
1428
|
-
const b =
|
|
1428
|
+
const b = Yt(null), g = Yt(null), [u, l] = N(null);
|
|
1429
1429
|
un(() => {
|
|
1430
1430
|
if (!a) {
|
|
1431
1431
|
l(null);
|
|
@@ -1445,7 +1445,7 @@ function xs({
|
|
|
1445
1445
|
return i(), window.addEventListener("resize", i), window.addEventListener("scroll", i, !0), () => {
|
|
1446
1446
|
window.removeEventListener("resize", i), window.removeEventListener("scroll", i, !0);
|
|
1447
1447
|
};
|
|
1448
|
-
}, [a, s.length]),
|
|
1448
|
+
}, [a, s.length]), ze(() => {
|
|
1449
1449
|
if (!a) return;
|
|
1450
1450
|
const i = (x) => {
|
|
1451
1451
|
var w, D;
|
|
@@ -1499,7 +1499,7 @@ function xs({
|
|
|
1499
1499
|
onClick: () => m(i),
|
|
1500
1500
|
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",
|
|
1501
1501
|
children: [
|
|
1502
|
-
/* @__PURE__ */ e(
|
|
1502
|
+
/* @__PURE__ */ e(Or, { name: i.name || i.email || "?" }),
|
|
1503
1503
|
/* @__PURE__ */ o("div", { className: "min-w-0 flex-1", children: [
|
|
1504
1504
|
/* @__PURE__ */ e("div", { className: "truncate text-[12px] font-medium text-foreground", children: i.name || i.email || "Unknown" }),
|
|
1505
1505
|
i.email && i.name && /* @__PURE__ */ e("div", { className: "truncate text-[10.5px] text-muted-foreground", children: i.email })
|
|
@@ -1545,7 +1545,7 @@ function Ar({
|
|
|
1545
1545
|
function rr({ children: t }) {
|
|
1546
1546
|
return /* @__PURE__ */ e("label", { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: t });
|
|
1547
1547
|
}
|
|
1548
|
-
function
|
|
1548
|
+
function Or({ name: t }) {
|
|
1549
1549
|
const n = t.split(" ").map((a) => a[0]).filter(Boolean).slice(0, 2).join("").toUpperCase();
|
|
1550
1550
|
return /* @__PURE__ */ e(Lr, { className: "h-6 w-6 shrink-0", children: /* @__PURE__ */ e(Ir, { className: "text-[9px] font-semibold", children: n || "?" }) });
|
|
1551
1551
|
}
|
|
@@ -1674,7 +1674,7 @@ function ws({
|
|
|
1674
1674
|
}
|
|
1675
1675
|
),
|
|
1676
1676
|
n ? /* @__PURE__ */ o(V, { onSelect: r, children: [
|
|
1677
|
-
/* @__PURE__ */ e(
|
|
1677
|
+
/* @__PURE__ */ e(W, { className: "h-3.5 w-3.5" }),
|
|
1678
1678
|
"Create analytical briefing"
|
|
1679
1679
|
] }) : null
|
|
1680
1680
|
] });
|
|
@@ -1685,8 +1685,8 @@ function ar(t, n) {
|
|
|
1685
1685
|
semanticExecutionPayload: it(n)
|
|
1686
1686
|
};
|
|
1687
1687
|
}
|
|
1688
|
-
function
|
|
1689
|
-
var
|
|
1688
|
+
function Ys() {
|
|
1689
|
+
var Pt, _t, Rt, Ut, Vt;
|
|
1690
1690
|
pn(), hn();
|
|
1691
1691
|
const {
|
|
1692
1692
|
authToken: t,
|
|
@@ -1699,13 +1699,13 @@ function Xs() {
|
|
|
1699
1699
|
inspectionMessage: b,
|
|
1700
1700
|
isInspectionMode: g,
|
|
1701
1701
|
isInspectionSurface: u
|
|
1702
|
-
} = Aa(), { openBrandStudioPreview: l } =
|
|
1702
|
+
} = Aa(), { openBrandStudioPreview: l } = Oa(), { permissions: f } = jn(), i = Pa(), { isLoading: x } = _a(), v = S((d) => d.theme), w = S((d) => d.isDownloadingPdf), D = S(
|
|
1703
1703
|
(d) => d.dashboardAssistantDraftScopeKey
|
|
1704
|
-
), E = S((d) => d.lenses), $ = S((d) => d.selectedLensId), I = E == null ? void 0 : E.find((d) => d.id === $), p = S((d) => d.dashboard), G = S((d) => d.selectedSheetId), F = (
|
|
1704
|
+
), E = S((d) => d.lenses), $ = S((d) => d.selectedLensId), I = E == null ? void 0 : E.find((d) => d.id === $), p = S((d) => d.dashboard), G = S((d) => d.selectedSheetId), F = (Pt = p == null ? void 0 : p.sheets) == null ? void 0 : Pt.find(
|
|
1705
1705
|
(d) => d.id === G
|
|
1706
|
-
), B = ia(F),
|
|
1706
|
+
), B = ia(F), P = B ? (_t = F == null ? void 0 : F.document) == null ? void 0 : _t.page : void 0, k = S(
|
|
1707
1707
|
(d) => d.isDashboardEditing
|
|
1708
|
-
), { setDashboardTitle: re } = S((d) => d.actions), [ae,
|
|
1708
|
+
), { setDashboardTitle: re } = S((d) => d.actions), [ae, Q] = N(!1), [Se, De] = N(!1), [Ce, ke] = N(!1), [Ee, de] = N(!1), [Le, ce] = N(null), [ne, y] = N(!1), [z, le] = N(!1), [Ie, J] = N(!1), [Y, X] = N(null), [gt, Me] = N([]), [bt, Ae] = N(!1), [Pr, xt] = N(!1), vt = S((d) => d.filterValues), _ = S((d) => d.isVisualEditing);
|
|
1709
1709
|
Ft((d) => d.card);
|
|
1710
1710
|
const _r = Fe(
|
|
1711
1711
|
(d) => d.selectedDashboard
|
|
@@ -1715,19 +1715,19 @@ function Xs() {
|
|
|
1715
1715
|
Fe((d) => d.selectedVisual), S((d) => d.selectedFrameId), Ft((d) => d.frame);
|
|
1716
1716
|
const yt = S(
|
|
1717
1717
|
(d) => d.showDashboardJSON
|
|
1718
|
-
),
|
|
1718
|
+
), He = S((d) => d.onSaveFunction), { setIsDashboardEditing: wt, setShowDashboardJSON: Nt } = S(
|
|
1719
1719
|
(d) => d.actions
|
|
1720
1720
|
), { setInitialDashboard: St, clearSelectedDashboard: je } = Fe(
|
|
1721
1721
|
(d) => d.actions
|
|
1722
|
-
), ue = !!n.orgUserId || !!(n.tenantId && n.endUserId && n.endUserEmail), { resources:
|
|
1722
|
+
), ue = !!n.orgUserId || !!(n.tenantId && n.endUserId && n.endUserEmail), { resources: Oe } = Ra(tt.DASHBOARD), { data: qe } = Ua(), Ur = ((Rt = qe == null ? void 0 : qe.preference) == null ? void 0 : Rt.defaultDashboardId) || null, { mutate: Vr, isPending: Tr } = Va(), { currentUser: Fr } = mt(), $r = Ta(Fr), H = _r || Rr, se = Fa({
|
|
1723
1723
|
config: n.config,
|
|
1724
1724
|
canNavigateDashboardHub: ue,
|
|
1725
|
-
canShareDashboard: ((Ut =
|
|
1725
|
+
canShareDashboard: ((Ut = H == null ? void 0 : H.permissions) == null ? void 0 : Ut.canShare) === !0,
|
|
1726
1726
|
canManageGroups: $r
|
|
1727
|
-
}), Dt =
|
|
1728
|
-
id:
|
|
1729
|
-
title: (p == null ? void 0 : p.title) ||
|
|
1730
|
-
} : null, { handleAddNewFrame: Gr } = $a(), [Ke,
|
|
1727
|
+
}), Dt = H ? {
|
|
1728
|
+
id: H.id,
|
|
1729
|
+
title: (p == null ? void 0 : p.title) || H.title || "Dashboard"
|
|
1730
|
+
} : null, { handleAddNewFrame: Gr } = $a(), [Ke, We] = N(!1), [Br, me] = N(!1), [Qe, Pe] = N("close"), pe = Ga(tt.DASHBOARD), [O, he] = N(null), zr = async (d, A) => {
|
|
1731
1731
|
if (!g) {
|
|
1732
1732
|
if (!(p != null && p.id)) {
|
|
1733
1733
|
console.log("No dashboard ID found");
|
|
@@ -1760,24 +1760,24 @@ function Xs() {
|
|
|
1760
1760
|
);
|
|
1761
1761
|
}
|
|
1762
1762
|
};
|
|
1763
|
-
|
|
1764
|
-
if (
|
|
1763
|
+
ze(() => {
|
|
1764
|
+
if (Oe && Oe.length > 0) {
|
|
1765
1765
|
const d = p == null ? void 0 : p.id;
|
|
1766
1766
|
if (d) {
|
|
1767
|
-
const A =
|
|
1767
|
+
const A = Oe.find(
|
|
1768
1768
|
(L) => L.id === d
|
|
1769
1769
|
);
|
|
1770
1770
|
A && St(A);
|
|
1771
1771
|
}
|
|
1772
1772
|
}
|
|
1773
|
-
}, [
|
|
1773
|
+
}, [Oe, p == null ? void 0 : p.id, St]);
|
|
1774
1774
|
const fe = n.orgUserId || n.tenantId, Je = ee(
|
|
1775
1775
|
() => Ns({
|
|
1776
1776
|
accessToken: t == null ? void 0 : t.accessToken,
|
|
1777
1777
|
dashboardId: (p == null ? void 0 : p.id) || a || n.dashboard_id,
|
|
1778
1778
|
selectedSheetId: B ? G : void 0,
|
|
1779
|
-
pageSize:
|
|
1780
|
-
orientation:
|
|
1779
|
+
pageSize: P == null ? void 0 : P.size,
|
|
1780
|
+
orientation: P == null ? void 0 : P.orientation,
|
|
1781
1781
|
theme: v
|
|
1782
1782
|
}),
|
|
1783
1783
|
[
|
|
@@ -1785,25 +1785,25 @@ function Xs() {
|
|
|
1785
1785
|
a,
|
|
1786
1786
|
p == null ? void 0 : p.id,
|
|
1787
1787
|
B,
|
|
1788
|
-
|
|
1789
|
-
|
|
1788
|
+
P == null ? void 0 : P.orientation,
|
|
1789
|
+
P == null ? void 0 : P.size,
|
|
1790
1790
|
G,
|
|
1791
1791
|
v,
|
|
1792
1792
|
n.dashboard_id
|
|
1793
1793
|
]
|
|
1794
|
-
), Ct = k && !_ && !g && fe && m, { setDashboard:
|
|
1794
|
+
), Ct = k && !_ && !g && fe && m, { setDashboard: Ye } = S((d) => d.actions), kt = S(
|
|
1795
1795
|
(d) => d.semanticExecutionPayload
|
|
1796
|
-
),
|
|
1796
|
+
), Hr = () => {
|
|
1797
1797
|
wt(!0);
|
|
1798
1798
|
}, _e = () => {
|
|
1799
1799
|
wt(!1), Nt(!1), he(null);
|
|
1800
1800
|
};
|
|
1801
|
-
|
|
1801
|
+
ze(() => {
|
|
1802
1802
|
if (!k) {
|
|
1803
|
-
|
|
1803
|
+
O && he(null);
|
|
1804
1804
|
return;
|
|
1805
1805
|
}
|
|
1806
|
-
|
|
1806
|
+
O || !p || x || he(
|
|
1807
1807
|
ar(
|
|
1808
1808
|
p,
|
|
1809
1809
|
kt
|
|
@@ -1811,12 +1811,12 @@ function Xs() {
|
|
|
1811
1811
|
);
|
|
1812
1812
|
}, [
|
|
1813
1813
|
p,
|
|
1814
|
-
|
|
1814
|
+
O,
|
|
1815
1815
|
k,
|
|
1816
1816
|
x,
|
|
1817
1817
|
kt
|
|
1818
1818
|
]);
|
|
1819
|
-
const Et = (
|
|
1819
|
+
const Et = (O == null ? void 0 : O.dashboard) ?? null, { isDirty: Lt, isDirtyPending: jr, resetDirty: ge } = kn(
|
|
1820
1820
|
p,
|
|
1821
1821
|
Et,
|
|
1822
1822
|
300,
|
|
@@ -1828,36 +1828,36 @@ function Xs() {
|
|
|
1828
1828
|
m
|
|
1829
1829
|
), Mt = Lt || jr, Re = Ke || pe.isPending, qr = () => {
|
|
1830
1830
|
if (g) {
|
|
1831
|
-
|
|
1832
|
-
semanticExecutionPayload:
|
|
1831
|
+
O && Ye(O.dashboard, {
|
|
1832
|
+
semanticExecutionPayload: O.semanticExecutionPayload
|
|
1833
1833
|
}), _e(), ge();
|
|
1834
1834
|
return;
|
|
1835
1835
|
}
|
|
1836
|
-
It() ? (
|
|
1836
|
+
It() ? (Pe("close"), me(!0)) : (_e(), ge());
|
|
1837
1837
|
}, Kr = async () => {
|
|
1838
|
-
await
|
|
1838
|
+
await Xe({
|
|
1839
1839
|
closeAfterSave: !0,
|
|
1840
|
-
navigateHomeAfterSave:
|
|
1840
|
+
navigateHomeAfterSave: Qe === "home"
|
|
1841
1841
|
});
|
|
1842
|
-
}, Qr = () => {
|
|
1843
|
-
const d = We === "home" && !!ue;
|
|
1844
|
-
P && Xe(P.dashboard, {
|
|
1845
|
-
semanticExecutionPayload: P.semanticExecutionPayload
|
|
1846
|
-
}), _e(), d && je(), Oe("close"), me(!1), ge();
|
|
1847
1842
|
}, Wr = () => {
|
|
1848
|
-
|
|
1849
|
-
|
|
1843
|
+
const d = Qe === "home" && !!ue;
|
|
1844
|
+
O && Ye(O.dashboard, {
|
|
1845
|
+
semanticExecutionPayload: O.semanticExecutionPayload
|
|
1846
|
+
}), _e(), d && je(), Pe("close"), me(!1), ge();
|
|
1847
|
+
}, Qr = () => {
|
|
1848
|
+
O && (Ye(O.dashboard, {
|
|
1849
|
+
semanticExecutionPayload: O.semanticExecutionPayload
|
|
1850
1850
|
}), ge());
|
|
1851
1851
|
}, Jr = () => {
|
|
1852
1852
|
if (ue) {
|
|
1853
1853
|
if (k && It()) {
|
|
1854
|
-
|
|
1854
|
+
Pe("home"), me(!0);
|
|
1855
1855
|
return;
|
|
1856
1856
|
}
|
|
1857
1857
|
je();
|
|
1858
1858
|
}
|
|
1859
1859
|
};
|
|
1860
|
-
async function
|
|
1860
|
+
async function Xe(d) {
|
|
1861
1861
|
if (g)
|
|
1862
1862
|
return;
|
|
1863
1863
|
const A = S.getState().dashboard;
|
|
@@ -1866,7 +1866,7 @@ function Xs() {
|
|
|
1866
1866
|
const L = (d == null ? void 0 : d.closeAfterSave) ?? bt, K = (d == null ? void 0 : d.navigateHomeAfterSave) ?? !1;
|
|
1867
1867
|
Ae(L), L && me(!1);
|
|
1868
1868
|
const Ze = it(A);
|
|
1869
|
-
J(!0),
|
|
1869
|
+
J(!0), X(null), Me([]), We(!0);
|
|
1870
1870
|
const ra = {
|
|
1871
1871
|
template: A
|
|
1872
1872
|
};
|
|
@@ -1885,15 +1885,15 @@ function Xs() {
|
|
|
1885
1885
|
Z
|
|
1886
1886
|
) : Te && et.actions.clearPendingDashboardDraftMigration();
|
|
1887
1887
|
}
|
|
1888
|
-
|
|
1888
|
+
We(!1), C.success("Dashboard saved!"), he(
|
|
1889
1889
|
ar(
|
|
1890
1890
|
Ze,
|
|
1891
1891
|
S.getState().semanticExecutionPayload
|
|
1892
1892
|
)
|
|
1893
|
-
), J(!1), Ae(!1), L && (_e(), ge(), K && ue && je()),
|
|
1893
|
+
), J(!1), Ae(!1), L && (_e(), ge(), K && ue && je()), Pe("close");
|
|
1894
1894
|
},
|
|
1895
1895
|
onError: (R) => {
|
|
1896
|
-
|
|
1896
|
+
We(!1), X("Failed to save dashboard. Please try again.");
|
|
1897
1897
|
const Z = R.details, Ue = Array.isArray(
|
|
1898
1898
|
Z == null ? void 0 : Z.errors
|
|
1899
1899
|
) ? (Z.errors || []).filter(
|
|
@@ -1909,11 +1909,11 @@ function Xs() {
|
|
|
1909
1909
|
}
|
|
1910
1910
|
);
|
|
1911
1911
|
}
|
|
1912
|
-
async function
|
|
1913
|
-
if (g || (
|
|
1912
|
+
async function Yr() {
|
|
1913
|
+
if (g || (Q(!0), !$ || !I)) return;
|
|
1914
1914
|
const d = S.getState().dashboard;
|
|
1915
1915
|
if (!d) {
|
|
1916
|
-
|
|
1916
|
+
Q(!1);
|
|
1917
1917
|
return;
|
|
1918
1918
|
}
|
|
1919
1919
|
const A = JSON.stringify(d), L = S.getState(), K = xr({
|
|
@@ -1933,7 +1933,7 @@ function Xs() {
|
|
|
1933
1933
|
n.apiServiceUrl,
|
|
1934
1934
|
Ze,
|
|
1935
1935
|
t == null ? void 0 : t.accessToken
|
|
1936
|
-
), C.success("Lens saved"),
|
|
1936
|
+
), C.success("Lens saved"), He == null || He(d), Q(!1);
|
|
1937
1937
|
}
|
|
1938
1938
|
const At = (I == null ? void 0 : I.name) || p.title;
|
|
1939
1939
|
pe.isPending && console.log("Title during update:", {
|
|
@@ -1942,7 +1942,7 @@ function Xs() {
|
|
|
1942
1942
|
dashboardId: p == null ? void 0 : p.id,
|
|
1943
1943
|
currentLensName: I == null ? void 0 : I.name
|
|
1944
1944
|
});
|
|
1945
|
-
const
|
|
1945
|
+
const Xr = ue && !!(t != null && t.accessToken) && !!(n != null && n.apiServiceUrl), Zr = !g && se.showDashboardHub && Xr, ea = !g && i && se.showDashboardHub, j = (p == null ? void 0 : p.id) || null, Ot = Ba(
|
|
1946
1946
|
(Vt = n.config) == null ? void 0 : Vt.showBriefings,
|
|
1947
1947
|
r
|
|
1948
1948
|
), oe = !!j && Ur === j, ta = () => {
|
|
@@ -1965,7 +1965,7 @@ function Xs() {
|
|
|
1965
1965
|
onClick: Jr,
|
|
1966
1966
|
className: "h-7 w-7 px-0",
|
|
1967
1967
|
buttonProps: { size: "xs" },
|
|
1968
|
-
children: /* @__PURE__ */ e(
|
|
1968
|
+
children: /* @__PURE__ */ e(za, { className: "h-3.5 w-3.5" })
|
|
1969
1969
|
}
|
|
1970
1970
|
),
|
|
1971
1971
|
!_ && i && (x ? /* @__PURE__ */ e(
|
|
@@ -1978,7 +1978,7 @@ function Xs() {
|
|
|
1978
1978
|
}
|
|
1979
1979
|
) : /* @__PURE__ */ o(T, { children: [
|
|
1980
1980
|
/* @__PURE__ */ e(
|
|
1981
|
-
|
|
1981
|
+
Ha,
|
|
1982
1982
|
{
|
|
1983
1983
|
value: At || "Untitled Dashboard",
|
|
1984
1984
|
onSave: (d) => {
|
|
@@ -1988,7 +1988,7 @@ function Xs() {
|
|
|
1988
1988
|
dashboardId: p == null ? void 0 : p.id
|
|
1989
1989
|
});
|
|
1990
1990
|
const A = (p == null ? void 0 : p.title) || "";
|
|
1991
|
-
re(d),
|
|
1991
|
+
re(d), zr(d, A);
|
|
1992
1992
|
},
|
|
1993
1993
|
isEditable: ja({
|
|
1994
1994
|
isDashboardEditing: k,
|
|
@@ -2026,7 +2026,7 @@ function Xs() {
|
|
|
2026
2026
|
children: /* @__PURE__ */ e(cr, { className: "h-3.5 w-3.5" })
|
|
2027
2027
|
}
|
|
2028
2028
|
) }),
|
|
2029
|
-
/* @__PURE__ */ e(
|
|
2029
|
+
/* @__PURE__ */ e(zt, { children: /* @__PURE__ */ e("p", { children: oe ? "Remove as default dashboard" : "Set as default dashboard" }) })
|
|
2030
2030
|
] }) })
|
|
2031
2031
|
] }))
|
|
2032
2032
|
] }),
|
|
@@ -2054,9 +2054,9 @@ function Xs() {
|
|
|
2054
2054
|
variant: "secondary",
|
|
2055
2055
|
size: "xs",
|
|
2056
2056
|
disabled: ae,
|
|
2057
|
-
onClick:
|
|
2057
|
+
onClick: Yr,
|
|
2058
2058
|
children: [
|
|
2059
|
-
/* @__PURE__ */ e(
|
|
2059
|
+
/* @__PURE__ */ e(Xt, { className: "h-3.5 w-3.5" }),
|
|
2060
2060
|
"Save Lens"
|
|
2061
2061
|
]
|
|
2062
2062
|
}
|
|
@@ -2071,7 +2071,7 @@ function Xs() {
|
|
|
2071
2071
|
onClick: () => void Gr(),
|
|
2072
2072
|
className: "h-full rounded-none border-0 shadow-none hover:bg-accent",
|
|
2073
2073
|
children: [
|
|
2074
|
-
/* @__PURE__ */ e(
|
|
2074
|
+
/* @__PURE__ */ e(W, { className: "h-3.5 w-3.5" }),
|
|
2075
2075
|
"Visual"
|
|
2076
2076
|
]
|
|
2077
2077
|
}
|
|
@@ -2089,12 +2089,12 @@ function Xs() {
|
|
|
2089
2089
|
}
|
|
2090
2090
|
) }),
|
|
2091
2091
|
/* @__PURE__ */ e(
|
|
2092
|
-
|
|
2092
|
+
Wt,
|
|
2093
2093
|
{
|
|
2094
2094
|
align: "end",
|
|
2095
2095
|
className: "z-[60] w-48 rounded-[6px] border-border/60 p-1 shadow-sm",
|
|
2096
2096
|
children: /* @__PURE__ */ o(V, { onClick: () => xt(!0), children: [
|
|
2097
|
-
/* @__PURE__ */ e(
|
|
2097
|
+
/* @__PURE__ */ e(W, { className: "h-3.5 w-3.5" }),
|
|
2098
2098
|
"From library..."
|
|
2099
2099
|
] })
|
|
2100
2100
|
}
|
|
@@ -2103,13 +2103,13 @@ function Xs() {
|
|
|
2103
2103
|
/* @__PURE__ */ e(
|
|
2104
2104
|
vn,
|
|
2105
2105
|
{
|
|
2106
|
-
open:
|
|
2106
|
+
open: Pr,
|
|
2107
2107
|
onOpenChange: xt
|
|
2108
2108
|
}
|
|
2109
2109
|
)
|
|
2110
2110
|
] }),
|
|
2111
2111
|
!_ && !k && (m || g) && (!u || !h || m !== void 0) && i && /* @__PURE__ */ o("div", { className: "inline-flex items-center gap-1", children: [
|
|
2112
|
-
/* @__PURE__ */ o(U, { size: "xs", onClick:
|
|
2112
|
+
/* @__PURE__ */ o(U, { size: "xs", onClick: Hr, children: [
|
|
2113
2113
|
/* @__PURE__ */ e(Ka, { className: "h-3.5 w-3.5" }),
|
|
2114
2114
|
g ? "Inspect" : "Edit"
|
|
2115
2115
|
] }),
|
|
@@ -2123,7 +2123,7 @@ function Xs() {
|
|
|
2123
2123
|
children: /* @__PURE__ */ e(da, { "aria-hidden": "true", className: "size-3.5" })
|
|
2124
2124
|
}
|
|
2125
2125
|
) }),
|
|
2126
|
-
/* @__PURE__ */ e(
|
|
2126
|
+
/* @__PURE__ */ e(zt, { children: /* @__PURE__ */ e("p", { children: b }) })
|
|
2127
2127
|
] }) }) : null
|
|
2128
2128
|
] }),
|
|
2129
2129
|
Ct && i && Lt && /* @__PURE__ */ o(
|
|
@@ -2131,10 +2131,10 @@ function Xs() {
|
|
|
2131
2131
|
{
|
|
2132
2132
|
variant: "outline",
|
|
2133
2133
|
size: "xs",
|
|
2134
|
-
onClick:
|
|
2134
|
+
onClick: Qr,
|
|
2135
2135
|
disabled: Re,
|
|
2136
2136
|
children: [
|
|
2137
|
-
/* @__PURE__ */ e(
|
|
2137
|
+
/* @__PURE__ */ e(Wa, { className: "h-3.5 w-3.5" }),
|
|
2138
2138
|
"Undo"
|
|
2139
2139
|
]
|
|
2140
2140
|
}
|
|
@@ -2145,9 +2145,9 @@ function Xs() {
|
|
|
2145
2145
|
size: "xs",
|
|
2146
2146
|
className: ie(!Mt && "opacity-60"),
|
|
2147
2147
|
disabled: Re || !Mt,
|
|
2148
|
-
onClick: () =>
|
|
2148
|
+
onClick: () => Xe(),
|
|
2149
2149
|
children: [
|
|
2150
|
-
Re ? /* @__PURE__ */ e(Be, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ e(
|
|
2150
|
+
Re ? /* @__PURE__ */ e(Be, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ e(Xt, { className: "h-3.5 w-3.5" }),
|
|
2151
2151
|
Re ? "Saving..." : "Save"
|
|
2152
2152
|
]
|
|
2153
2153
|
}
|
|
@@ -2169,11 +2169,11 @@ function Xs() {
|
|
|
2169
2169
|
variant: "ghost",
|
|
2170
2170
|
"aria-label": "More dashboard options"
|
|
2171
2171
|
},
|
|
2172
|
-
children: /* @__PURE__ */ e(
|
|
2172
|
+
children: /* @__PURE__ */ e(Qa, { className: "h-3.5 w-3.5" })
|
|
2173
2173
|
}
|
|
2174
2174
|
) }),
|
|
2175
2175
|
/* @__PURE__ */ o(
|
|
2176
|
-
|
|
2176
|
+
Wt,
|
|
2177
2177
|
{
|
|
2178
2178
|
align: "end",
|
|
2179
2179
|
className: "w-56 rounded-control border border-border/60 p-1 shadow-sm",
|
|
@@ -2193,8 +2193,8 @@ function Xs() {
|
|
|
2193
2193
|
/* @__PURE__ */ e(
|
|
2194
2194
|
ws,
|
|
2195
2195
|
{
|
|
2196
|
-
scheduleReportVisible: !!(
|
|
2197
|
-
analyticalBriefingVisible: !!(
|
|
2196
|
+
scheduleReportVisible: !!(Ot && s.surfaceVisible && j && !k),
|
|
2197
|
+
analyticalBriefingVisible: !!(Ot && s.surfaceVisible && j && !k),
|
|
2198
2198
|
onScheduleReport: () => ce("scheduled_report"),
|
|
2199
2199
|
onCreateAnalyticalBriefing: () => ce("analytical_briefing")
|
|
2200
2200
|
}
|
|
@@ -2232,7 +2232,7 @@ function Xs() {
|
|
|
2232
2232
|
).catch(() => C.error("Unable to copy token")) : C.error("Clipboard not available"));
|
|
2233
2233
|
},
|
|
2234
2234
|
children: [
|
|
2235
|
-
/* @__PURE__ */ e(
|
|
2235
|
+
/* @__PURE__ */ e(Qt, { className: "h-3.5 w-3.5" }),
|
|
2236
2236
|
"Copy token"
|
|
2237
2237
|
]
|
|
2238
2238
|
}
|
|
@@ -2260,7 +2260,7 @@ function Xs() {
|
|
|
2260
2260
|
) : C.error("Clipboard not available");
|
|
2261
2261
|
},
|
|
2262
2262
|
children: [
|
|
2263
|
-
/* @__PURE__ */ e(
|
|
2263
|
+
/* @__PURE__ */ e(Qt, { className: "h-3.5 w-3.5" }),
|
|
2264
2264
|
"Copy local document PDF URL"
|
|
2265
2265
|
]
|
|
2266
2266
|
}
|
|
@@ -2270,7 +2270,7 @@ function Xs() {
|
|
|
2270
2270
|
{
|
|
2271
2271
|
onSelect: () => ca(n.apiServiceUrl),
|
|
2272
2272
|
children: [
|
|
2273
|
-
/* @__PURE__ */ e(
|
|
2273
|
+
/* @__PURE__ */ e(Pn, { className: "h-3.5 w-3.5" }),
|
|
2274
2274
|
"Invalidate token"
|
|
2275
2275
|
]
|
|
2276
2276
|
}
|
|
@@ -2290,15 +2290,15 @@ function Xs() {
|
|
|
2290
2290
|
}
|
|
2291
2291
|
),
|
|
2292
2292
|
fe && k && /* @__PURE__ */ o(V, { onSelect: () => y(!0), children: [
|
|
2293
|
-
/* @__PURE__ */ e(
|
|
2293
|
+
/* @__PURE__ */ e(W, { className: "h-3.5 w-3.5" }),
|
|
2294
2294
|
"Add lens"
|
|
2295
2295
|
] }),
|
|
2296
|
-
fe && /* @__PURE__ */ o(
|
|
2297
|
-
/* @__PURE__ */ o(
|
|
2296
|
+
fe && /* @__PURE__ */ o(Ya, { children: [
|
|
2297
|
+
/* @__PURE__ */ o(Xa, { children: [
|
|
2298
2298
|
/* @__PURE__ */ e(Mn, { className: "h-3.5 w-3.5" }),
|
|
2299
2299
|
"Lenses"
|
|
2300
2300
|
] }),
|
|
2301
|
-
/* @__PURE__ */ e(Za, { className: "w-60", children: /* @__PURE__ */ e(
|
|
2301
|
+
/* @__PURE__ */ e(Za, { className: "w-60", children: /* @__PURE__ */ e(Hn, {}) })
|
|
2302
2302
|
] })
|
|
2303
2303
|
] })
|
|
2304
2304
|
]
|
|
@@ -2331,7 +2331,7 @@ function Xs() {
|
|
|
2331
2331
|
wn,
|
|
2332
2332
|
{
|
|
2333
2333
|
dashboardId: j,
|
|
2334
|
-
dashboardTitle: (p == null ? void 0 : p.title) || (
|
|
2334
|
+
dashboardTitle: (p == null ? void 0 : p.title) || (H == null ? void 0 : H.title),
|
|
2335
2335
|
open: !0,
|
|
2336
2336
|
onOpenChange: (d) => {
|
|
2337
2337
|
d || ce(null);
|
|
@@ -2340,11 +2340,11 @@ function Xs() {
|
|
|
2340
2340
|
workflowIntent: Le
|
|
2341
2341
|
}
|
|
2342
2342
|
) : null,
|
|
2343
|
-
c && fe && i && /* @__PURE__ */ e(
|
|
2343
|
+
c && fe && i && /* @__PURE__ */ e(zn, { open: ne, onOpenChange: y }),
|
|
2344
2344
|
i && /* @__PURE__ */ e(
|
|
2345
2345
|
tn,
|
|
2346
2346
|
{
|
|
2347
|
-
open:
|
|
2347
|
+
open: z,
|
|
2348
2348
|
onOpenChange: le
|
|
2349
2349
|
}
|
|
2350
2350
|
),
|
|
@@ -2353,23 +2353,23 @@ function Xs() {
|
|
|
2353
2353
|
{
|
|
2354
2354
|
open: Ie,
|
|
2355
2355
|
onOpenChange: (d) => {
|
|
2356
|
-
!d && Ke && !
|
|
2356
|
+
!d && Ke && !Y || (J(d), d || (X(null), Me([]), Ae(!1)));
|
|
2357
2357
|
},
|
|
2358
2358
|
children: /* @__PURE__ */ o(an, { className: "max-w-sm", children: [
|
|
2359
2359
|
/* @__PURE__ */ o(nn, { children: [
|
|
2360
|
-
/* @__PURE__ */ e(sn, { children:
|
|
2361
|
-
/* @__PURE__ */ e(on, { className: "pt-2", children:
|
|
2360
|
+
/* @__PURE__ */ e(sn, { children: Y ? "Save failed" : "Saving dashboard" }),
|
|
2361
|
+
/* @__PURE__ */ e(on, { className: "pt-2", children: Y ? "We could not save the dashboard. Please try again." : "Please wait while we save your changes." }),
|
|
2362
2362
|
gt.length > 0 && /* @__PURE__ */ o("div", { className: "space-y-1 rounded-md border border-destructive/20 bg-destructive/5 p-3 text-left", children: [
|
|
2363
2363
|
/* @__PURE__ */ e("div", { className: "text-sm font-medium text-destructive", children: "What needs attention" }),
|
|
2364
2364
|
/* @__PURE__ */ e("ul", { className: "list-disc space-y-1 pl-4 text-xs text-muted-foreground", children: gt.slice(0, 5).map((d) => /* @__PURE__ */ e("li", { children: d }, d)) })
|
|
2365
2365
|
] })
|
|
2366
2366
|
] }),
|
|
2367
|
-
/* @__PURE__ */ e(dn, { className: "flex-col gap-2 sm:flex-row sm:justify-end", children:
|
|
2367
|
+
/* @__PURE__ */ e(dn, { className: "flex-col gap-2 sm:flex-row sm:justify-end", children: Y ? /* @__PURE__ */ o(T, { children: [
|
|
2368
2368
|
/* @__PURE__ */ e(
|
|
2369
2369
|
cn,
|
|
2370
2370
|
{
|
|
2371
2371
|
onClick: () => {
|
|
2372
|
-
J(!1),
|
|
2372
|
+
J(!1), X(null), Me([]), Ae(!1);
|
|
2373
2373
|
},
|
|
2374
2374
|
className: "m-0",
|
|
2375
2375
|
children: "Close"
|
|
@@ -2378,9 +2378,9 @@ function Xs() {
|
|
|
2378
2378
|
/* @__PURE__ */ e(
|
|
2379
2379
|
Jt,
|
|
2380
2380
|
{
|
|
2381
|
-
onClick: () =>
|
|
2381
|
+
onClick: () => Xe({
|
|
2382
2382
|
closeAfterSave: bt,
|
|
2383
|
-
navigateHomeAfterSave:
|
|
2383
|
+
navigateHomeAfterSave: Qe === "home"
|
|
2384
2384
|
}),
|
|
2385
2385
|
className: "m-0",
|
|
2386
2386
|
children: "Retry"
|
|
@@ -2401,7 +2401,7 @@ function Xs() {
|
|
|
2401
2401
|
me(d);
|
|
2402
2402
|
},
|
|
2403
2403
|
onSave: Kr,
|
|
2404
|
-
onDiscard:
|
|
2404
|
+
onDiscard: Wr,
|
|
2405
2405
|
isSaving: Ke,
|
|
2406
2406
|
saveLabel: "Save",
|
|
2407
2407
|
discardLabel: "Discard changes"
|
|
@@ -2428,5 +2428,5 @@ function Ns({
|
|
|
2428
2428
|
return h.searchParams.set("pdfMode", "document"), h.searchParams.set("pageSize", r || "letter"), h.searchParams.set("orientation", s || "portrait"), h.searchParams.set("url", m.toString()), h.toString();
|
|
2429
2429
|
}
|
|
2430
2430
|
export {
|
|
2431
|
-
|
|
2431
|
+
Ys as default
|
|
2432
2432
|
};
|