react-semaphor 0.1.220 → 0.1.221
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/chunks/{dashboard-controls-fhZIf1Z0.js → dashboard-controls-D4TgRVta.js} +138 -138
- package/dist/chunks/{dashboard-controls-DfbaI6XZ.js → dashboard-controls-DqH7I5tb.js} +3 -3
- package/dist/chunks/{dashboard-json-DooCuhHo.js → dashboard-json-BvfBCrZp.js} +1 -1
- package/dist/chunks/{dashboard-json-Bt-kpD9y.js → dashboard-json-CbrkiALU.js} +1 -1
- package/dist/chunks/{dashboard-summary-settings-dialog-B3eWK66q.js → dashboard-summary-settings-dialog-Bhw7wO4D.js} +1 -1
- package/dist/chunks/{dashboard-summary-settings-dialog-CWmq1rnL.js → dashboard-summary-settings-dialog-CYdhHdYZ.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-C7sag6Jo.js → edit-dashboard-visual-DlPHT7nF.js} +4498 -4339
- package/dist/chunks/edit-dashboard-visual-DqXYRuqI.js +164 -0
- package/dist/chunks/editor-action-buttons-BMYQu_sk.js +405 -0
- package/dist/chunks/editor-action-buttons-VdYqRxoT.js +21 -0
- package/dist/chunks/{index-BMkn4K4E.js → index-C-8cXK5u.js} +16180 -16181
- package/dist/chunks/{index-C_RTjAMW.js → index-CaMze_Fv.js} +187 -187
- package/dist/chunks/{notification-bell-DHK6s4Om.js → notification-bell-DPnoYeUV.js} +85 -85
- package/dist/chunks/{notification-bell-DSShVmWj.js → notification-bell-RPOLOaxy.js} +2 -2
- package/dist/chunks/{resource-management-panel-QdAeim78.js → resource-management-panel-BA9mZ15S.js} +1 -1
- package/dist/chunks/{resource-management-panel-LBCXiHZk.js → resource-management-panel-DvAjwK0C.js} +3 -3
- package/dist/chunks/{use-role-aware-display-preferences-Db1iLmPN.js → use-role-aware-display-preferences-CdXcQxZk.js} +1 -1
- package/dist/chunks/{use-role-aware-display-preferences-CqF1BR5w.js → use-role-aware-display-preferences-DwKQjD_K.js} +1 -1
- package/dist/chunks/{use-visual-utils-AXuCdndV.js → use-visual-utils-BGLcxXJt.js} +1 -1
- package/dist/chunks/{use-visual-utils-CKt4UblS.js → use-visual-utils-RZ4Nj11p.js} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +5 -5
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunks/edit-dashboard-visual-Blkn0D44.js +0 -164
- package/dist/chunks/editor-action-buttons-yJEX8W7R.js +0 -21
- package/dist/chunks/editor-action-buttons-z7gf6nE6.js +0 -404
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e, Fragment as M } from "react/jsx-runtime";
|
|
2
|
-
import { bS as Z, cS as Na, u as w, c8 as ze, c9 as Be, B as L, cb as Ke, cc as
|
|
2
|
+
import { bS as Z, cS as Na, u as w, c8 as ze, c9 as Be, B as L, cb as Ke, cc as q, cT as Qe, Z as xs, l as R, m as We, cU as Sa, c7 as Je, n as Xe, o as Ze, p as Ye, q as Ds, L as Ue, Q as re, G as wa, ac as j, cV as xa, cg as Da, cW as Ca, cX as vs, cY as Cs, c as X, cZ as Ls, U as ve, c_ as be, I as A, c$ as Es, cH as La, d0 as Ea, H, cf as V, d1 as ka, d2 as Aa, d3 as Ge, d4 as Ma, d5 as Oa, d6 as ks, d7 as As, d8 as fe, d9 as ge, cD as Re, cm as Fe, da as je, ch as Ms, db as qe, dc as Os, e as Is, dd as Ia, cp as Ts, cq as _s, cr as Ps, cs as Us, ct as Gs, cu as Rs, cv as Fs, cw as He, c6 as Ta, de as _a, ai as Pa, a1 as bs, ah as he, df as Ua, ao as Ga, aj as Ie, dg as Ra, dh as Fa, di as ja, aD as qa, dj as Ha, dk as Va, bZ as $a, b_ as za, b$ as Ba, dl as Ka, c1 as Qa, cd as Wa, av as Ja, dm as Xa, dn as Za, dp as Ya, dq as et, dr as st, ds as at, ca as tt, ae as nt, cj as rt, dt as ot, an as it, af as lt, au as ct } from "./index-C-8cXK5u.js";
|
|
3
3
|
import * as E from "react";
|
|
4
|
-
import js, { useState as S, useMemo as
|
|
4
|
+
import js, { useState as S, useMemo as pe, useEffect as dt, useCallback as ut } from "react";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
import { b as mt, u as ht, c as pt, A as ft, V as gt, N as vt, U as bt } from "./notification-bell-
|
|
7
|
-
import { u as yt } from "./use-role-aware-display-preferences-
|
|
6
|
+
import { b as mt, u as ht, c as pt, A as ft, V as gt, N as vt, U as bt } from "./notification-bell-DPnoYeUV.js";
|
|
7
|
+
import { u as yt } from "./use-role-aware-display-preferences-CdXcQxZk.js";
|
|
8
8
|
import { d as Nt } from "./date-formatter-Y8Za1ib3.js";
|
|
9
|
-
import { C as St, D as wt } from "./dashboard-summary-settings-dialog-
|
|
9
|
+
import { C as St, D as wt } from "./dashboard-summary-settings-dialog-Bhw7wO4D.js";
|
|
10
10
|
import { u as xt } from "./use-debounced-dirty-check-BwAbnX_5.js";
|
|
11
11
|
import { s as Te } from "./normalize-dashboard-for-dirty-check-Bn27S0PN.js";
|
|
12
|
-
import { S as ys } from "./editor-action-buttons-
|
|
12
|
+
import { S as ys } from "./editor-action-buttons-BMYQu_sk.js";
|
|
13
13
|
/**
|
|
14
14
|
* @license lucide-react v0.453.0 - ISC
|
|
15
15
|
*
|
|
@@ -228,7 +228,7 @@ function Tt() {
|
|
|
228
228
|
] }) }),
|
|
229
229
|
/* @__PURE__ */ a(Ke, { align: "end", children: [
|
|
230
230
|
/* @__PURE__ */ e(
|
|
231
|
-
|
|
231
|
+
q,
|
|
232
232
|
{
|
|
233
233
|
onClick: () => {
|
|
234
234
|
s("light"), n("light");
|
|
@@ -237,7 +237,7 @@ function Tt() {
|
|
|
237
237
|
}
|
|
238
238
|
),
|
|
239
239
|
/* @__PURE__ */ e(
|
|
240
|
-
|
|
240
|
+
q,
|
|
241
241
|
{
|
|
242
242
|
onClick: () => {
|
|
243
243
|
s("dark"), n("dark");
|
|
@@ -246,7 +246,7 @@ function Tt() {
|
|
|
246
246
|
}
|
|
247
247
|
),
|
|
248
248
|
/* @__PURE__ */ e(
|
|
249
|
-
|
|
249
|
+
q,
|
|
250
250
|
{
|
|
251
251
|
onClick: () => {
|
|
252
252
|
s("system"), n("system");
|
|
@@ -291,7 +291,7 @@ async function Pt(s, n, t) {
|
|
|
291
291
|
});
|
|
292
292
|
}
|
|
293
293
|
function Ut() {
|
|
294
|
-
const [s, n] = S(""), [t, r] = S(!1), l = w((N) => N.lenses), { setLenses: i, setSelectedLensId: u } = xs(), [m, f] = S(!1), [b, c] = S(!1), d = w((N) => N.dashboard), h = w((N) => N.filterValues), { authToken: p, tokenProps: g } =
|
|
294
|
+
const [s, n] = S(""), [t, r] = S(!1), l = w((N) => N.lenses), { setLenses: i, setSelectedLensId: u } = xs(), [m, f] = S(!1), [b, c] = S(!1), d = w((N) => N.dashboard), h = w((N) => N.filterValues), { authToken: p, tokenProps: g } = R();
|
|
295
295
|
async function y() {
|
|
296
296
|
f(!0);
|
|
297
297
|
const N = await _t(
|
|
@@ -324,7 +324,7 @@ function Ut() {
|
|
|
324
324
|
/* @__PURE__ */ e("div", { className: "grid gap-4 py-4", children: /* @__PURE__ */ a("div", { className: "grid grid-cols-8 items-center gap-4", children: [
|
|
325
325
|
/* @__PURE__ */ e(Ue, { className: "text-right", children: "Name" }),
|
|
326
326
|
/* @__PURE__ */ e(
|
|
327
|
-
|
|
327
|
+
re,
|
|
328
328
|
{
|
|
329
329
|
value: s,
|
|
330
330
|
onChange: (N) => {
|
|
@@ -350,8 +350,8 @@ function Ut() {
|
|
|
350
350
|
] })
|
|
351
351
|
] });
|
|
352
352
|
}
|
|
353
|
-
function
|
|
354
|
-
const [s, n] = S(!1), t = w((d) => d.lenses), r = w((d) => d.selectedLensId), { setLenses: l, setSelectedLensId: i } = xs(), { authToken: u, tokenProps: m } =
|
|
353
|
+
function Gt() {
|
|
354
|
+
const [s, n] = S(!1), t = w((d) => d.lenses), r = w((d) => d.selectedLensId), { setLenses: l, setSelectedLensId: i } = xs(), { authToken: u, tokenProps: m } = R();
|
|
355
355
|
async function f(d) {
|
|
356
356
|
i(d);
|
|
357
357
|
}
|
|
@@ -441,7 +441,7 @@ function Rt() {
|
|
|
441
441
|
] })
|
|
442
442
|
] });
|
|
443
443
|
}
|
|
444
|
-
const
|
|
444
|
+
const Rt = async (s, n, t) => {
|
|
445
445
|
const r = `${s}/management/v1/groups`;
|
|
446
446
|
return await Es(r, n, t);
|
|
447
447
|
}, Ft = async (s, n, t) => {
|
|
@@ -458,7 +458,7 @@ const Gt = async (s, n, t) => {
|
|
|
458
458
|
}, jt = async (s, n, t, r) => {
|
|
459
459
|
const l = `${s}/management/v1/groups/${t}/members`;
|
|
460
460
|
return await Es(l, n, r);
|
|
461
|
-
},
|
|
461
|
+
}, qt = async (s, n, t, r) => {
|
|
462
462
|
const l = `${s}/management/v1/groups/${t}/members`, i = await fetch(l, {
|
|
463
463
|
method: "DELETE",
|
|
464
464
|
headers: {
|
|
@@ -472,10 +472,10 @@ const Gt = async (s, n, t) => {
|
|
|
472
472
|
throw new Error(u || "Failed to remove group members");
|
|
473
473
|
}
|
|
474
474
|
};
|
|
475
|
-
function
|
|
476
|
-
const { authToken: s, tokenProps: n } =
|
|
477
|
-
return
|
|
478
|
-
mutationFn: (r) =>
|
|
475
|
+
function Ht() {
|
|
476
|
+
const { authToken: s, tokenProps: n } = R(), t = ve();
|
|
477
|
+
return be({
|
|
478
|
+
mutationFn: (r) => Rt(n.apiServiceUrl, (s == null ? void 0 : s.accessToken) || "", r),
|
|
479
479
|
onSuccess: () => {
|
|
480
480
|
t.invalidateQueries({ queryKey: ["groups"] }), A.success("Group created successfully");
|
|
481
481
|
},
|
|
@@ -487,8 +487,8 @@ function qt() {
|
|
|
487
487
|
});
|
|
488
488
|
}
|
|
489
489
|
function Vt() {
|
|
490
|
-
const { authToken: s, tokenProps: n } =
|
|
491
|
-
return
|
|
490
|
+
const { authToken: s, tokenProps: n } = R(), t = ve();
|
|
491
|
+
return be({
|
|
492
492
|
mutationFn: (r) => Ft(n.apiServiceUrl, (s == null ? void 0 : s.accessToken) || "", r),
|
|
493
493
|
onSuccess: (r, l) => {
|
|
494
494
|
t.invalidateQueries({ queryKey: ["groups"] }), t.removeQueries({ queryKey: ["group", l] }), A.success("Group deleted successfully");
|
|
@@ -501,8 +501,8 @@ function Vt() {
|
|
|
501
501
|
});
|
|
502
502
|
}
|
|
503
503
|
function $t() {
|
|
504
|
-
const { authToken: s, tokenProps: n } =
|
|
505
|
-
return
|
|
504
|
+
const { authToken: s, tokenProps: n } = R(), t = ve();
|
|
505
|
+
return be({
|
|
506
506
|
mutationFn: ({
|
|
507
507
|
groupId: r,
|
|
508
508
|
data: l
|
|
@@ -520,12 +520,12 @@ function $t() {
|
|
|
520
520
|
});
|
|
521
521
|
}
|
|
522
522
|
function zt() {
|
|
523
|
-
const { authToken: s, tokenProps: n } =
|
|
524
|
-
return
|
|
523
|
+
const { authToken: s, tokenProps: n } = R(), t = ve();
|
|
524
|
+
return be({
|
|
525
525
|
mutationFn: ({
|
|
526
526
|
groupId: r,
|
|
527
527
|
data: l
|
|
528
|
-
}) =>
|
|
528
|
+
}) => qt(n.apiServiceUrl, (s == null ? void 0 : s.accessToken) || "", r, l),
|
|
529
529
|
onSuccess: (r, l) => {
|
|
530
530
|
t.invalidateQueries({ queryKey: ["group", l.groupId] }), t.invalidateQueries({
|
|
531
531
|
queryKey: ["group-members", l.groupId]
|
|
@@ -543,7 +543,7 @@ function Bt({
|
|
|
543
543
|
tenantId: n,
|
|
544
544
|
isTenantUser: t
|
|
545
545
|
}) {
|
|
546
|
-
const [r, l] = S(""), [i, u] = S(""), [m, f] = S({}), b =
|
|
546
|
+
const [r, l] = S(""), [i, u] = S(""), [m, f] = S({}), b = Ht(), c = () => {
|
|
547
547
|
const h = {};
|
|
548
548
|
return r.trim() ? r.length < 3 ? h.name = "Group name must be at least 3 characters" : r.length > 50 && (h.name = "Group name must be less than 50 characters") : h.name = "Group name is required", i && i.length > 200 && (h.description = "Description must be less than 200 characters"), f(h), Object.keys(h).length === 0;
|
|
549
549
|
};
|
|
@@ -568,7 +568,7 @@ function Bt({
|
|
|
568
568
|
/* @__PURE__ */ e("span", { className: "text-destructive", children: "*" })
|
|
569
569
|
] }),
|
|
570
570
|
/* @__PURE__ */ e(
|
|
571
|
-
|
|
571
|
+
re,
|
|
572
572
|
{
|
|
573
573
|
id: "group-name",
|
|
574
574
|
placeholder: "e.g., Marketing Team, Engineering Squad",
|
|
@@ -631,7 +631,7 @@ function Bt({
|
|
|
631
631
|
type: "submit",
|
|
632
632
|
disabled: b.isPending || !r.trim(),
|
|
633
633
|
children: b.isPending ? /* @__PURE__ */ a(M, { children: [
|
|
634
|
-
/* @__PURE__ */ e(
|
|
634
|
+
/* @__PURE__ */ e(H, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
635
635
|
"Creating..."
|
|
636
636
|
] }) : /* @__PURE__ */ a(M, { children: [
|
|
637
637
|
/* @__PURE__ */ e(V, { className: "mr-2 h-4 w-4" }),
|
|
@@ -730,7 +730,7 @@ function Xt() {
|
|
|
730
730
|
return () => {
|
|
731
731
|
};
|
|
732
732
|
}
|
|
733
|
-
var ss = "Avatar", [Zt] = Kt(ss), [Yt,
|
|
733
|
+
var ss = "Avatar", [Zt] = Kt(ss), [Yt, qs] = Zt(ss), Hs = E.forwardRef(
|
|
734
734
|
(s, n) => {
|
|
735
735
|
const { __scopeAvatar: t, ...r } = s, [l, i] = E.useState("idle");
|
|
736
736
|
return /* @__PURE__ */ e(
|
|
@@ -744,14 +744,14 @@ var ss = "Avatar", [Zt] = Kt(ss), [Yt, Hs] = Zt(ss), qs = E.forwardRef(
|
|
|
744
744
|
);
|
|
745
745
|
}
|
|
746
746
|
);
|
|
747
|
-
|
|
747
|
+
Hs.displayName = ss;
|
|
748
748
|
var Vs = "AvatarImage", $s = E.forwardRef(
|
|
749
749
|
(s, n) => {
|
|
750
750
|
const { __scopeAvatar: t, src: r, onLoadingStatusChange: l = () => {
|
|
751
|
-
}, ...i } = s, u =
|
|
751
|
+
}, ...i } = s, u = qs(Vs, t), m = en(r, i), f = Aa((b) => {
|
|
752
752
|
l(b), u.onImageLoadingStatusChange(b);
|
|
753
753
|
});
|
|
754
|
-
return
|
|
754
|
+
return Ge(() => {
|
|
755
755
|
m !== "idle" && f(m);
|
|
756
756
|
}, [m, f]), m === "loaded" ? /* @__PURE__ */ e(es.img, { ...i, ref: n, src: r }) : null;
|
|
757
757
|
}
|
|
@@ -759,7 +759,7 @@ var Vs = "AvatarImage", $s = E.forwardRef(
|
|
|
759
759
|
$s.displayName = Vs;
|
|
760
760
|
var zs = "AvatarFallback", Bs = E.forwardRef(
|
|
761
761
|
(s, n) => {
|
|
762
|
-
const { __scopeAvatar: t, delayMs: r, ...l } = s, i =
|
|
762
|
+
const { __scopeAvatar: t, delayMs: r, ...l } = s, i = qs(zs, t), [u, m] = E.useState(r === void 0);
|
|
763
763
|
return E.useEffect(() => {
|
|
764
764
|
if (r !== void 0) {
|
|
765
765
|
const f = window.setTimeout(() => m(!0), r);
|
|
@@ -776,9 +776,9 @@ function en(s, { referrerPolicy: n, crossOrigin: t }) {
|
|
|
776
776
|
const r = Jt(), l = E.useRef(null), i = r ? (l.current || (l.current = new window.Image()), l.current) : null, [u, m] = E.useState(
|
|
777
777
|
() => ws(i, s)
|
|
778
778
|
);
|
|
779
|
-
return
|
|
779
|
+
return Ge(() => {
|
|
780
780
|
m(ws(i, s));
|
|
781
|
-
}, [i, s]),
|
|
781
|
+
}, [i, s]), Ge(() => {
|
|
782
782
|
const f = (d) => () => {
|
|
783
783
|
m(d);
|
|
784
784
|
};
|
|
@@ -789,7 +789,7 @@ function en(s, { referrerPolicy: n, crossOrigin: t }) {
|
|
|
789
789
|
};
|
|
790
790
|
}, [i, t, n]), u;
|
|
791
791
|
}
|
|
792
|
-
var Ks =
|
|
792
|
+
var Ks = Hs, Qs = $s, Ws = Bs;
|
|
793
793
|
const as = E.forwardRef(({ className: s, ...n }, t) => /* @__PURE__ */ e(
|
|
794
794
|
Ks,
|
|
795
795
|
{
|
|
@@ -834,22 +834,22 @@ function an({
|
|
|
834
834
|
tenantId: t.tenantId || void 0,
|
|
835
835
|
active: !0,
|
|
836
836
|
limit: 100
|
|
837
|
-
}), T = $t(), P = zt(), O = (h == null ? void 0 : h.members) || [], $ =
|
|
838
|
-
if (!u) return
|
|
837
|
+
}), T = $t(), P = zt(), O = (h == null ? void 0 : h.members) || [], $ = pe(() => new Set(O.map((v) => v.userId)), [O]), G = pe(() => N.filter((v) => !$.has(v.id)), [N, $]), z = pe(() => {
|
|
838
|
+
if (!u) return G;
|
|
839
839
|
const v = u.toLowerCase();
|
|
840
|
-
return
|
|
840
|
+
return G.filter(
|
|
841
841
|
(C) => {
|
|
842
842
|
var _, F;
|
|
843
843
|
return ((_ = C.name) == null ? void 0 : _.toLowerCase().includes(v)) || ((F = C.email) == null ? void 0 : F.toLowerCase().includes(v));
|
|
844
844
|
}
|
|
845
845
|
);
|
|
846
|
-
}, [
|
|
846
|
+
}, [G, u]), x = pe(() => {
|
|
847
847
|
if (!u) return O;
|
|
848
848
|
const v = u.toLowerCase();
|
|
849
849
|
return O.filter(
|
|
850
850
|
(C) => {
|
|
851
|
-
var _, F,
|
|
852
|
-
return ((F = (_ = C.user) == null ? void 0 : _.name) == null ? void 0 : F.toLowerCase().includes(v)) || ((D = (
|
|
851
|
+
var _, F, oe, D;
|
|
852
|
+
return ((F = (_ = C.user) == null ? void 0 : _.name) == null ? void 0 : F.toLowerCase().includes(v)) || ((D = (oe = C.user) == null ? void 0 : oe.email) == null ? void 0 : D.toLowerCase().includes(v));
|
|
853
853
|
}
|
|
854
854
|
);
|
|
855
855
|
}, [O, u]), B = async () => {
|
|
@@ -904,14 +904,14 @@ function an({
|
|
|
904
904
|
i(v), m(""), d([]);
|
|
905
905
|
}, className: "mt-4", children: [
|
|
906
906
|
/* @__PURE__ */ a(As, { className: "grid w-full grid-cols-2", children: [
|
|
907
|
-
/* @__PURE__ */ e(
|
|
908
|
-
/* @__PURE__ */ e(
|
|
907
|
+
/* @__PURE__ */ e(fe, { value: "members", children: "Current Members" }),
|
|
908
|
+
/* @__PURE__ */ e(fe, { value: "add", children: "Add Members" })
|
|
909
909
|
] }),
|
|
910
|
-
/* @__PURE__ */ a(
|
|
910
|
+
/* @__PURE__ */ a(ge, { value: "members", className: "mt-4 space-y-4", children: [
|
|
911
911
|
/* @__PURE__ */ a("div", { className: "relative", children: [
|
|
912
|
-
/* @__PURE__ */ e(
|
|
912
|
+
/* @__PURE__ */ e(Re, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
913
913
|
/* @__PURE__ */ e(
|
|
914
|
-
|
|
914
|
+
re,
|
|
915
915
|
{
|
|
916
916
|
placeholder: "Search members...",
|
|
917
917
|
value: u,
|
|
@@ -948,7 +948,7 @@ function an({
|
|
|
948
948
|
onClick: K,
|
|
949
949
|
disabled: P.isPending,
|
|
950
950
|
children: P.isPending ? /* @__PURE__ */ a(M, { children: [
|
|
951
|
-
/* @__PURE__ */ e(
|
|
951
|
+
/* @__PURE__ */ e(H, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
952
952
|
"Removing..."
|
|
953
953
|
] }) : /* @__PURE__ */ a(M, { children: [
|
|
954
954
|
/* @__PURE__ */ e(Ms, { className: "mr-2 h-4 w-4" }),
|
|
@@ -958,11 +958,11 @@ function an({
|
|
|
958
958
|
)
|
|
959
959
|
] })
|
|
960
960
|
] }),
|
|
961
|
-
/* @__PURE__ */ a(
|
|
961
|
+
/* @__PURE__ */ a(ge, { value: "add", className: "mt-4 space-y-4", children: [
|
|
962
962
|
/* @__PURE__ */ a("div", { className: "relative", children: [
|
|
963
|
-
/* @__PURE__ */ e(
|
|
963
|
+
/* @__PURE__ */ e(Re, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
964
964
|
/* @__PURE__ */ e(
|
|
965
|
-
|
|
965
|
+
re,
|
|
966
966
|
{
|
|
967
967
|
placeholder: "Search users to add...",
|
|
968
968
|
value: u,
|
|
@@ -972,7 +972,7 @@ function an({
|
|
|
972
972
|
)
|
|
973
973
|
] }),
|
|
974
974
|
/* @__PURE__ */ e(Fe, { className: "h-[300px]", children: k ? /* @__PURE__ */ e("div", { className: "space-y-2", children: [1, 2, 3].map((v) => /* @__PURE__ */ e(je, { className: "h-16 w-full" }, v)) }) : z.length === 0 ? /* @__PURE__ */ a("div", { className: "flex flex-col items-center justify-center py-12 text-muted-foreground", children: [
|
|
975
|
-
/* @__PURE__ */ e(
|
|
975
|
+
/* @__PURE__ */ e(qe, { className: "h-12 w-12 mb-3 opacity-50" }),
|
|
976
976
|
/* @__PURE__ */ e("p", { className: "text-sm font-medium", children: "No available users" }),
|
|
977
977
|
/* @__PURE__ */ e("p", { className: "text-xs mt-1", children: u ? "Try a different search" : "All eligible users are already members" })
|
|
978
978
|
] }) : /* @__PURE__ */ e("div", { className: "space-y-2", children: z.map((v) => /* @__PURE__ */ e(
|
|
@@ -997,10 +997,10 @@ function an({
|
|
|
997
997
|
onClick: B,
|
|
998
998
|
disabled: T.isPending,
|
|
999
999
|
children: T.isPending ? /* @__PURE__ */ a(M, { children: [
|
|
1000
|
-
/* @__PURE__ */ e(
|
|
1000
|
+
/* @__PURE__ */ e(H, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
1001
1001
|
"Adding..."
|
|
1002
1002
|
] }) : /* @__PURE__ */ a(M, { children: [
|
|
1003
|
-
/* @__PURE__ */ e(
|
|
1003
|
+
/* @__PURE__ */ e(qe, { className: "mr-2 h-4 w-4" }),
|
|
1004
1004
|
"Add Members"
|
|
1005
1005
|
] })
|
|
1006
1006
|
}
|
|
@@ -1060,7 +1060,7 @@ function rn({
|
|
|
1060
1060
|
open: s,
|
|
1061
1061
|
onOpenChange: n
|
|
1062
1062
|
}) {
|
|
1063
|
-
const [t, r] = S("groups"), [l, i] = S(""), [u, m] = S(null), [f, b] = S(!1), [c, d] = S(null), { tokenProps: h } =
|
|
1063
|
+
const [t, r] = S("groups"), [l, i] = S(""), [u, m] = S(null), [f, b] = S(!1), [c, d] = S(null), { tokenProps: h } = R(), { currentUser: p } = Is(), g = Vt(), y = (p == null ? void 0 : p.type) === "tenant", N = h == null ? void 0 : h.tenantId, { groups: k, isLoading: T, refetch: P } = Ia({
|
|
1064
1064
|
type: y ? "TENANT_GROUP" : "all",
|
|
1065
1065
|
tenantId: y ? N : void 0,
|
|
1066
1066
|
includeMembers: !1
|
|
@@ -1076,7 +1076,7 @@ function rn({
|
|
|
1076
1076
|
} catch (x) {
|
|
1077
1077
|
console.error("Failed to delete group:", x);
|
|
1078
1078
|
}
|
|
1079
|
-
},
|
|
1079
|
+
}, G = (x) => {
|
|
1080
1080
|
m(x), b(!0);
|
|
1081
1081
|
}, z = () => {
|
|
1082
1082
|
r("groups"), P();
|
|
@@ -1092,20 +1092,20 @@ function rn({
|
|
|
1092
1092
|
] }),
|
|
1093
1093
|
/* @__PURE__ */ a(ks, { value: t, onValueChange: r, className: "mt-4", children: [
|
|
1094
1094
|
/* @__PURE__ */ a(As, { className: "grid w-full grid-cols-2", children: [
|
|
1095
|
-
/* @__PURE__ */ a(
|
|
1095
|
+
/* @__PURE__ */ a(fe, { value: "groups", className: "flex items-center gap-2", children: [
|
|
1096
1096
|
/* @__PURE__ */ e(V, { className: "h-4 w-4" }),
|
|
1097
1097
|
"Groups"
|
|
1098
1098
|
] }),
|
|
1099
|
-
/* @__PURE__ */ a(
|
|
1099
|
+
/* @__PURE__ */ a(fe, { value: "create", className: "flex items-center gap-2", children: [
|
|
1100
1100
|
/* @__PURE__ */ e(Je, { className: "h-4 w-4" }),
|
|
1101
1101
|
"Create Group"
|
|
1102
1102
|
] })
|
|
1103
1103
|
] }),
|
|
1104
|
-
/* @__PURE__ */ e(
|
|
1104
|
+
/* @__PURE__ */ e(ge, { value: "groups", className: "mt-4", children: /* @__PURE__ */ a("div", { className: "space-y-4", children: [
|
|
1105
1105
|
/* @__PURE__ */ a("div", { className: "relative", children: [
|
|
1106
|
-
/* @__PURE__ */ e(
|
|
1106
|
+
/* @__PURE__ */ e(Re, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
1107
1107
|
/* @__PURE__ */ e(
|
|
1108
|
-
|
|
1108
|
+
re,
|
|
1109
1109
|
{
|
|
1110
1110
|
placeholder: "Search groups...",
|
|
1111
1111
|
value: l,
|
|
@@ -1122,14 +1122,14 @@ function rn({
|
|
|
1122
1122
|
on,
|
|
1123
1123
|
{
|
|
1124
1124
|
group: x,
|
|
1125
|
-
onManageMembers: () =>
|
|
1125
|
+
onManageMembers: () => G(x),
|
|
1126
1126
|
onDelete: () => d(x),
|
|
1127
1127
|
currentUserId: p == null ? void 0 : p.id
|
|
1128
1128
|
},
|
|
1129
1129
|
x.id
|
|
1130
1130
|
)) }) })
|
|
1131
1131
|
] }) }),
|
|
1132
|
-
/* @__PURE__ */ e(
|
|
1132
|
+
/* @__PURE__ */ e(ge, { value: "create", className: "mt-4", children: /* @__PURE__ */ e(
|
|
1133
1133
|
Bt,
|
|
1134
1134
|
{
|
|
1135
1135
|
onSuccess: z,
|
|
@@ -1156,22 +1156,22 @@ function rn({
|
|
|
1156
1156
|
children: /* @__PURE__ */ a(_s, { children: [
|
|
1157
1157
|
/* @__PURE__ */ a(Ps, { children: [
|
|
1158
1158
|
/* @__PURE__ */ e(Us, { children: "Delete Group" }),
|
|
1159
|
-
/* @__PURE__ */ a(
|
|
1159
|
+
/* @__PURE__ */ a(Gs, { children: [
|
|
1160
1160
|
'Are you sure you want to delete "',
|
|
1161
1161
|
c == null ? void 0 : c.name,
|
|
1162
1162
|
'"? This action cannot be undone and will remove all members from the group.'
|
|
1163
1163
|
] })
|
|
1164
1164
|
] }),
|
|
1165
|
-
/* @__PURE__ */ a(
|
|
1165
|
+
/* @__PURE__ */ a(Rs, { children: [
|
|
1166
1166
|
/* @__PURE__ */ e(Fs, { children: "Cancel" }),
|
|
1167
1167
|
/* @__PURE__ */ e(
|
|
1168
|
-
|
|
1168
|
+
He,
|
|
1169
1169
|
{
|
|
1170
1170
|
onClick: $,
|
|
1171
1171
|
disabled: g.isPending,
|
|
1172
1172
|
className: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
1173
1173
|
children: g.isPending ? /* @__PURE__ */ a(M, { children: [
|
|
1174
|
-
/* @__PURE__ */ e(
|
|
1174
|
+
/* @__PURE__ */ e(H, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
1175
1175
|
"Deleting..."
|
|
1176
1176
|
] }) : "Delete Group"
|
|
1177
1177
|
}
|
|
@@ -1216,7 +1216,7 @@ function on({
|
|
|
1216
1216
|
size: "sm",
|
|
1217
1217
|
onClick: n,
|
|
1218
1218
|
title: "Manage members",
|
|
1219
|
-
children: /* @__PURE__ */ e(
|
|
1219
|
+
children: /* @__PURE__ */ e(qe, { className: "h-4 w-4" })
|
|
1220
1220
|
}
|
|
1221
1221
|
),
|
|
1222
1222
|
l && /* @__PURE__ */ e(
|
|
@@ -1240,34 +1240,34 @@ function yn() {
|
|
|
1240
1240
|
authToken: s,
|
|
1241
1241
|
tokenProps: n,
|
|
1242
1242
|
id: t
|
|
1243
|
-
} =
|
|
1243
|
+
} = R(), { isLocalDev: r } = Ta(), { permissions: l } = yt(), i = _a(), { isLoading: u } = Pa();
|
|
1244
1244
|
w((o) => o.theme);
|
|
1245
1245
|
const m = w((o) => o.lenses), f = w((o) => o.selectedLensId), b = m == null ? void 0 : m.find((o) => o.id === f), c = w((o) => o.dashboard);
|
|
1246
1246
|
w((o) => o.selectedSheetId);
|
|
1247
1247
|
const d = w(
|
|
1248
1248
|
(o) => o.isDashboardEditing
|
|
1249
|
-
), { setDashboardTitle: h } = w((o) => o.actions), [p, g] = S(!1), [y, N] = S(!1), [k, T] = S(!1), [P, O] = S(!1), [$,
|
|
1249
|
+
), { setDashboardTitle: h } = w((o) => o.actions), [p, g] = S(!1), [y, N] = S(!1), [k, T] = S(!1), [P, O] = S(!1), [$, G] = S(!1), [z, x] = S(!1), [B, K] = S(!1), [Q, W] = S(null), [v, C] = S(!1), _ = w((o) => o.isDashboardPanelOpen), F = w(
|
|
1250
1250
|
(o) => o.actions.setIsDashboardPanelOpen
|
|
1251
|
-
),
|
|
1251
|
+
), oe = w((o) => o.filterValues), D = w((o) => o.isVisualEditing);
|
|
1252
1252
|
bs((o) => o.card);
|
|
1253
|
-
const Y =
|
|
1253
|
+
const Y = he(
|
|
1254
1254
|
(o) => o.selectedDashboard
|
|
1255
|
-
),
|
|
1255
|
+
), ie = he(
|
|
1256
1256
|
(o) => o.initialDashboard
|
|
1257
1257
|
);
|
|
1258
|
-
|
|
1259
|
-
const
|
|
1258
|
+
he((o) => o.selectedVisual), w((o) => o.selectedFrameId), bs((o) => o.frame);
|
|
1259
|
+
const le = Y ? (ps = Y == null ? void 0 : Y.permissions) == null ? void 0 : ps.canEdit : (hs = ie == null ? void 0 : ie.permissions) == null ? void 0 : hs.canEdit, ye = w((o) => o.showFilters), Js = Ua((o) => o.setPanelOpen), Xs = w(
|
|
1260
1260
|
(o) => o.showDashboardJSON
|
|
1261
|
-
),
|
|
1261
|
+
), Ne = w((o) => o.onSaveFunction), Zs = w(
|
|
1262
1262
|
(o) => o.actions.setShowFilters
|
|
1263
1263
|
), { setIsDashboardEditing: ns, setShowDashboardJSON: rs } = w(
|
|
1264
1264
|
(o) => o.actions
|
|
1265
|
-
), { setInitialDashboard: os, clearSelectedDashboard:
|
|
1265
|
+
), { setInitialDashboard: os, clearSelectedDashboard: Se } = he(
|
|
1266
1266
|
(o) => o.actions
|
|
1267
|
-
), { resources:
|
|
1267
|
+
), { resources: ce } = Ga(Ie.DASHBOARD), { data: we } = Ra(), Ys = ((fs = we == null ? void 0 : we.preference) == null ? void 0 : fs.defaultDashboardId) || null, { mutate: ea, isPending: sa } = Fa(), { currentUser: aa } = Is(), ta = ja(aa), J = Y || ie, is = J ? {
|
|
1268
1268
|
id: J.id,
|
|
1269
1269
|
title: (c == null ? void 0 : c.title) || J.title || "Dashboard"
|
|
1270
|
-
} : null, { handleAddNewFrame: na } =
|
|
1270
|
+
} : null, { handleAddNewFrame: na } = qa(), [xe, De] = S(!1), [ra, ee] = S(!1), [Ce, de] = S("close"), se = Ha(Ie.DASHBOARD), [U, Le] = S(
|
|
1271
1271
|
null
|
|
1272
1272
|
), oa = async (o, I) => {
|
|
1273
1273
|
if (!(c != null && c.id)) {
|
|
@@ -1278,7 +1278,7 @@ function yn() {
|
|
|
1278
1278
|
dashboardId: c.id,
|
|
1279
1279
|
newTitle: o,
|
|
1280
1280
|
previousTitle: I
|
|
1281
|
-
}),
|
|
1281
|
+
}), se.mutate(
|
|
1282
1282
|
{
|
|
1283
1283
|
resourceId: c.id,
|
|
1284
1284
|
data: { title: o }
|
|
@@ -1287,24 +1287,24 @@ function yn() {
|
|
|
1287
1287
|
onSuccess: () => {
|
|
1288
1288
|
console.log("Dashboard title updated successfully"), A.success("Dashboard title updated");
|
|
1289
1289
|
},
|
|
1290
|
-
onError: (
|
|
1291
|
-
console.error("Failed to update dashboard title:",
|
|
1290
|
+
onError: (ne) => {
|
|
1291
|
+
console.error("Failed to update dashboard title:", ne), A.error("Failed to update dashboard title"), h(I);
|
|
1292
1292
|
}
|
|
1293
1293
|
}
|
|
1294
1294
|
);
|
|
1295
1295
|
};
|
|
1296
1296
|
dt(() => {
|
|
1297
|
-
if (
|
|
1297
|
+
if (ce && ce.length > 0) {
|
|
1298
1298
|
const o = c == null ? void 0 : c.id;
|
|
1299
1299
|
if (o) {
|
|
1300
|
-
const I =
|
|
1301
|
-
(
|
|
1300
|
+
const I = ce.find(
|
|
1301
|
+
(ne) => ne.id === o
|
|
1302
1302
|
);
|
|
1303
1303
|
I && os(I);
|
|
1304
1304
|
}
|
|
1305
1305
|
}
|
|
1306
|
-
}, [
|
|
1307
|
-
const
|
|
1306
|
+
}, [ce, c == null ? void 0 : c.id, os]);
|
|
1307
|
+
const ue = n.orgUserId || n.tenantId, ls = d && !D && ue && le, { setDashboard: Ee } = w((o) => o.actions), ia = () => {
|
|
1308
1308
|
ns(!0);
|
|
1309
1309
|
}, ke = () => {
|
|
1310
1310
|
ns(!1), rs(!1), Le(null);
|
|
@@ -1315,49 +1315,49 @@ function yn() {
|
|
|
1315
1315
|
U,
|
|
1316
1316
|
(o) => Le(o)
|
|
1317
1317
|
);
|
|
1318
|
-
const { isDirty: cs, isDirtyPending: la, resetDirty:
|
|
1318
|
+
const { isDirty: cs, isDirtyPending: la, resetDirty: me } = xt(
|
|
1319
1319
|
c,
|
|
1320
1320
|
U,
|
|
1321
1321
|
300,
|
|
1322
1322
|
1e3,
|
|
1323
1323
|
Te
|
|
1324
|
-
), ds = ut(() => U ? Te(c) !== Te(U) : !1, [c, U]), Ae = cs || la,
|
|
1325
|
-
ds() ? (
|
|
1324
|
+
), ds = ut(() => U ? Te(c) !== Te(U) : !1, [c, U]), Ae = cs || la, ae = xe || se.isPending, ca = () => {
|
|
1325
|
+
ds() ? (de("close"), ee(!0)) : (ke(), me());
|
|
1326
1326
|
}, da = async () => {
|
|
1327
1327
|
await Me({
|
|
1328
1328
|
closeAfterSave: !0,
|
|
1329
|
-
navigateHomeAfterSave:
|
|
1329
|
+
navigateHomeAfterSave: Ce === "home"
|
|
1330
1330
|
});
|
|
1331
1331
|
}, ua = () => {
|
|
1332
|
-
U && Ee(U), ke(),
|
|
1332
|
+
U && Ee(U), ke(), Ce === "home" && Se(), de("close"), ee(!1), me();
|
|
1333
1333
|
}, ma = () => {
|
|
1334
|
-
U && (Ee(U),
|
|
1334
|
+
U && (Ee(U), me());
|
|
1335
1335
|
}, ha = () => {
|
|
1336
1336
|
if (d && ds()) {
|
|
1337
|
-
|
|
1337
|
+
de("home"), ee(!0);
|
|
1338
1338
|
return;
|
|
1339
1339
|
}
|
|
1340
|
-
|
|
1340
|
+
Se();
|
|
1341
1341
|
};
|
|
1342
1342
|
async function Me(o) {
|
|
1343
|
-
const I = (o == null ? void 0 : o.closeAfterSave) ?? v,
|
|
1343
|
+
const I = (o == null ? void 0 : o.closeAfterSave) ?? v, ne = (o == null ? void 0 : o.navigateHomeAfterSave) ?? !1;
|
|
1344
1344
|
C(I), I && ee(!1);
|
|
1345
1345
|
const ba = ct(c);
|
|
1346
|
-
K(!0), W(null),
|
|
1346
|
+
K(!0), W(null), De(!0);
|
|
1347
1347
|
const ya = {
|
|
1348
1348
|
template: c
|
|
1349
1349
|
};
|
|
1350
|
-
|
|
1350
|
+
se.mutate(
|
|
1351
1351
|
{
|
|
1352
1352
|
resourceId: c.id,
|
|
1353
1353
|
data: ya
|
|
1354
1354
|
},
|
|
1355
1355
|
{
|
|
1356
1356
|
onSuccess: () => {
|
|
1357
|
-
|
|
1357
|
+
De(!1), A.success("Dashboard saved!"), Le(ba), K(!1), C(!1), I && (ke(), me(), ne && Se()), de("close");
|
|
1358
1358
|
},
|
|
1359
1359
|
onError: () => {
|
|
1360
|
-
|
|
1360
|
+
De(!1), W("Failed to save dashboard. Please try again."), A.error("Failed to save dashboard");
|
|
1361
1361
|
}
|
|
1362
1362
|
}
|
|
1363
1363
|
);
|
|
@@ -1367,24 +1367,24 @@ function yn() {
|
|
|
1367
1367
|
const o = JSON.stringify(c), I = {
|
|
1368
1368
|
...b,
|
|
1369
1369
|
template: o,
|
|
1370
|
-
filterValues:
|
|
1370
|
+
filterValues: oe
|
|
1371
1371
|
};
|
|
1372
1372
|
await $e(
|
|
1373
1373
|
n.apiServiceUrl,
|
|
1374
1374
|
I,
|
|
1375
1375
|
s == null ? void 0 : s.accessToken
|
|
1376
|
-
), A.success("Lens saved"),
|
|
1376
|
+
), A.success("Lens saved"), Ne == null || Ne(c), g(!1);
|
|
1377
1377
|
}
|
|
1378
1378
|
const us = (b == null ? void 0 : b.name) || c.title;
|
|
1379
|
-
|
|
1379
|
+
se.isPending && console.log("Title during update:", {
|
|
1380
1380
|
title: us,
|
|
1381
1381
|
dashboardStateTitle: c.title,
|
|
1382
1382
|
dashboardId: c == null ? void 0 : c.id,
|
|
1383
1383
|
currentLensName: b == null ? void 0 : b.name
|
|
1384
1384
|
});
|
|
1385
|
-
const ms = n.orgUserId || n.tenantId && n.endUserId && n.endUserEmail, fa = !!ms && !!(s != null && s.accessToken) && !!(n != null && n.apiServiceUrl), ga = i,
|
|
1386
|
-
|
|
1387
|
-
dashboardId: Oe ? null :
|
|
1385
|
+
const ms = n.orgUserId || n.tenantId && n.endUserId && n.endUserEmail, fa = !!ms && !!(s != null && s.accessToken) && !!(n != null && n.apiServiceUrl), ga = i, te = (c == null ? void 0 : c.id) || null, Oe = !!te && Ys === te, va = () => {
|
|
1386
|
+
te && ea({
|
|
1387
|
+
dashboardId: Oe ? null : te
|
|
1388
1388
|
});
|
|
1389
1389
|
};
|
|
1390
1390
|
return /* @__PURE__ */ a(
|
|
@@ -1419,7 +1419,7 @@ function yn() {
|
|
|
1419
1419
|
)
|
|
1420
1420
|
] }),
|
|
1421
1421
|
!D && i && (u ? /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
1422
|
-
/* @__PURE__ */ e(
|
|
1422
|
+
/* @__PURE__ */ e(H, { className: "h-3 w-3 animate-spin text-muted-foreground" }),
|
|
1423
1423
|
/* @__PURE__ */ e("span", { className: "text-sm text-muted-foreground", children: "Loading..." })
|
|
1424
1424
|
] }) : /* @__PURE__ */ a(M, { children: [
|
|
1425
1425
|
/* @__PURE__ */ e(
|
|
@@ -1429,20 +1429,20 @@ function yn() {
|
|
|
1429
1429
|
onSave: (o) => {
|
|
1430
1430
|
console.log("EditableText onSave called:", {
|
|
1431
1431
|
newTitle: o,
|
|
1432
|
-
canEditDashboard:
|
|
1432
|
+
canEditDashboard: le,
|
|
1433
1433
|
dashboardId: c == null ? void 0 : c.id
|
|
1434
1434
|
});
|
|
1435
1435
|
const I = (c == null ? void 0 : c.title) || "";
|
|
1436
1436
|
h(o), oa(o, I);
|
|
1437
1437
|
},
|
|
1438
|
-
isEditable:
|
|
1438
|
+
isEditable: le && !b,
|
|
1439
1439
|
displayClassName: "text-sm font-medium",
|
|
1440
1440
|
inputClassName: "text-sm font-medium",
|
|
1441
1441
|
placeholder: "Dashboard Title",
|
|
1442
|
-
isPending:
|
|
1442
|
+
isPending: se.isPending
|
|
1443
1443
|
}
|
|
1444
1444
|
),
|
|
1445
|
-
fa &&
|
|
1445
|
+
fa && te && /* @__PURE__ */ e($a, { children: /* @__PURE__ */ a(za, { children: [
|
|
1446
1446
|
/* @__PURE__ */ e(Ba, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1447
1447
|
L,
|
|
1448
1448
|
{
|
|
@@ -1511,18 +1511,18 @@ function yn() {
|
|
|
1511
1511
|
className: "h-7 px-2",
|
|
1512
1512
|
variant: "outline",
|
|
1513
1513
|
onClick: () => {
|
|
1514
|
-
|
|
1514
|
+
ye || Js("dashboard", !1), Zs(!ye);
|
|
1515
1515
|
},
|
|
1516
1516
|
size: "sm",
|
|
1517
1517
|
children: [
|
|
1518
|
-
|
|
1518
|
+
ye ? /* @__PURE__ */ e(Dt, { className: "mr-2 h-4 w-4" }) : /* @__PURE__ */ e(Ya, { className: "mr-2 h-4 w-4" }),
|
|
1519
1519
|
"Filter"
|
|
1520
1520
|
]
|
|
1521
1521
|
}
|
|
1522
1522
|
),
|
|
1523
|
-
d && !D &&
|
|
1524
|
-
!D &&
|
|
1525
|
-
d && !D &&
|
|
1523
|
+
d && !D && ue && r && i && /* @__PURE__ */ e(Ut, {}),
|
|
1524
|
+
!D && ue && r && i && /* @__PURE__ */ e(Gt, {}),
|
|
1525
|
+
d && !D && ue && b && r && i && /* @__PURE__ */ a(
|
|
1526
1526
|
L,
|
|
1527
1527
|
{
|
|
1528
1528
|
className: "h-7 p-2",
|
|
@@ -1550,7 +1550,7 @@ function yn() {
|
|
|
1550
1550
|
]
|
|
1551
1551
|
}
|
|
1552
1552
|
),
|
|
1553
|
-
!D && !d &&
|
|
1553
|
+
!D && !d && le && i && /* @__PURE__ */ a(
|
|
1554
1554
|
L,
|
|
1555
1555
|
{
|
|
1556
1556
|
variant: "outline",
|
|
@@ -1570,7 +1570,7 @@ function yn() {
|
|
|
1570
1570
|
className: "h-7 p-2",
|
|
1571
1571
|
onClick: ma,
|
|
1572
1572
|
size: "sm",
|
|
1573
|
-
disabled:
|
|
1573
|
+
disabled: ae,
|
|
1574
1574
|
children: [
|
|
1575
1575
|
/* @__PURE__ */ e(st, { className: "mr-2 h-4 w-4" }),
|
|
1576
1576
|
"Undo"
|
|
@@ -1582,16 +1582,16 @@ function yn() {
|
|
|
1582
1582
|
L,
|
|
1583
1583
|
{
|
|
1584
1584
|
className: X("h-7 p-2", !Ae && "opacity-60"),
|
|
1585
|
-
disabled:
|
|
1585
|
+
disabled: ae || !Ae,
|
|
1586
1586
|
onClick: () => Me(),
|
|
1587
1587
|
size: "sm",
|
|
1588
1588
|
children: [
|
|
1589
|
-
|
|
1590
|
-
|
|
1589
|
+
ae ? /* @__PURE__ */ e(H, { className: "mr-2 h-4 w-4 animate-spin" }) : /* @__PURE__ */ e(ys, { className: "mr-2 h-4 w-4" }),
|
|
1590
|
+
ae ? "Saving..." : "Save"
|
|
1591
1591
|
]
|
|
1592
1592
|
}
|
|
1593
1593
|
),
|
|
1594
|
-
Ae && !
|
|
1594
|
+
Ae && !ae && /* @__PURE__ */ e(
|
|
1595
1595
|
"span",
|
|
1596
1596
|
{
|
|
1597
1597
|
"aria-hidden": "true",
|
|
@@ -1625,19 +1625,19 @@ function yn() {
|
|
|
1625
1625
|
!D && i && /* @__PURE__ */ a(ze, { children: [
|
|
1626
1626
|
/* @__PURE__ */ e(Be, { asChild: !0, children: /* @__PURE__ */ e(j, { tooltip: "More Options", className: "h-7 p-2", children: /* @__PURE__ */ e(tt, { className: "h-4 w-4" }) }) }),
|
|
1627
1627
|
/* @__PURE__ */ a(Ke, { align: "end", children: [
|
|
1628
|
-
/* @__PURE__ */ a(
|
|
1628
|
+
/* @__PURE__ */ a(q, { onClick: () => O(!0), children: [
|
|
1629
1629
|
/* @__PURE__ */ e(nt, { className: "mr-2 h-4 w-4" }),
|
|
1630
1630
|
"Schedule Dashboard"
|
|
1631
1631
|
] }),
|
|
1632
|
-
ta && /* @__PURE__ */ a(
|
|
1632
|
+
ta && /* @__PURE__ */ a(q, { onClick: () => T(!0), children: [
|
|
1633
1633
|
/* @__PURE__ */ e(V, { className: "mr-2 h-4 w-4" }),
|
|
1634
1634
|
"Manage Groups"
|
|
1635
1635
|
] }),
|
|
1636
|
-
/* @__PURE__ */ a(
|
|
1636
|
+
/* @__PURE__ */ a(q, { onClick: () => G(!0), children: [
|
|
1637
1637
|
/* @__PURE__ */ e(rt, { className: "mr-2 h-4 w-4" }),
|
|
1638
1638
|
"Calendar Preferences"
|
|
1639
1639
|
] }),
|
|
1640
|
-
/* @__PURE__ */ a(
|
|
1640
|
+
/* @__PURE__ */ a(q, { onClick: () => x(!0), children: [
|
|
1641
1641
|
/* @__PURE__ */ e(ot, { className: "mr-2 h-4 w-4" }),
|
|
1642
1642
|
"Summary Settings"
|
|
1643
1643
|
] })
|
|
@@ -1671,7 +1671,7 @@ function yn() {
|
|
|
1671
1671
|
St,
|
|
1672
1672
|
{
|
|
1673
1673
|
open: $,
|
|
1674
|
-
onOpenChange:
|
|
1674
|
+
onOpenChange: G
|
|
1675
1675
|
}
|
|
1676
1676
|
),
|
|
1677
1677
|
/* @__PURE__ */ e(
|
|
@@ -1692,14 +1692,14 @@ function yn() {
|
|
|
1692
1692
|
{
|
|
1693
1693
|
open: B,
|
|
1694
1694
|
onOpenChange: (o) => {
|
|
1695
|
-
!o &&
|
|
1695
|
+
!o && xe && !Q || (K(o), o || (W(null), C(!1)));
|
|
1696
1696
|
},
|
|
1697
1697
|
children: /* @__PURE__ */ a(_s, { className: "max-w-sm", children: [
|
|
1698
1698
|
/* @__PURE__ */ a(Ps, { children: [
|
|
1699
1699
|
/* @__PURE__ */ e(Us, { children: Q ? "Save failed" : "Saving dashboard" }),
|
|
1700
|
-
/* @__PURE__ */ e(
|
|
1700
|
+
/* @__PURE__ */ e(Gs, { className: "pt-2", children: Q ? "We could not save the dashboard. Please try again." : "Please wait while we save your changes." })
|
|
1701
1701
|
] }),
|
|
1702
|
-
/* @__PURE__ */ e(
|
|
1702
|
+
/* @__PURE__ */ e(Rs, { className: "flex-col gap-2 sm:flex-row sm:justify-end", children: Q ? /* @__PURE__ */ a(M, { children: [
|
|
1703
1703
|
/* @__PURE__ */ e(
|
|
1704
1704
|
Fs,
|
|
1705
1705
|
{
|
|
@@ -1711,23 +1711,23 @@ function yn() {
|
|
|
1711
1711
|
}
|
|
1712
1712
|
),
|
|
1713
1713
|
/* @__PURE__ */ e(
|
|
1714
|
-
|
|
1714
|
+
He,
|
|
1715
1715
|
{
|
|
1716
1716
|
onClick: () => Me({
|
|
1717
1717
|
closeAfterSave: v,
|
|
1718
|
-
navigateHomeAfterSave:
|
|
1718
|
+
navigateHomeAfterSave: Ce === "home"
|
|
1719
1719
|
}),
|
|
1720
1720
|
className: "m-0",
|
|
1721
1721
|
children: "Retry"
|
|
1722
1722
|
}
|
|
1723
1723
|
)
|
|
1724
1724
|
] }) : /* @__PURE__ */ a(
|
|
1725
|
-
|
|
1725
|
+
He,
|
|
1726
1726
|
{
|
|
1727
1727
|
disabled: !0,
|
|
1728
1728
|
className: "m-0 cursor-default",
|
|
1729
1729
|
children: [
|
|
1730
|
-
/* @__PURE__ */ e(
|
|
1730
|
+
/* @__PURE__ */ e(H, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
1731
1731
|
"Saving..."
|
|
1732
1732
|
]
|
|
1733
1733
|
}
|
|
@@ -1744,9 +1744,9 @@ function yn() {
|
|
|
1744
1744
|
},
|
|
1745
1745
|
onSave: da,
|
|
1746
1746
|
onDiscard: ua,
|
|
1747
|
-
isSaving:
|
|
1748
|
-
saveLabel:
|
|
1749
|
-
discardLabel:
|
|
1747
|
+
isSaving: xe,
|
|
1748
|
+
saveLabel: "Save",
|
|
1749
|
+
discardLabel: "Discard"
|
|
1750
1750
|
}
|
|
1751
1751
|
)
|
|
1752
1752
|
] })
|