react-semaphor 0.1.317 → 0.1.319
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/briefings/index.cjs +1 -1
- package/dist/briefings/index.js +497 -364
- package/dist/chunks/{calendar-preferences-dialog-CUWcN-aO.js → calendar-preferences-dialog-DLKB05SY.js} +1 -1
- package/dist/chunks/{calendar-preferences-dialog-DsfRJICT.js → calendar-preferences-dialog-DPaVsZlk.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-CvFxCsvU.js → dashboard-briefing-launcher-DR_i0anv.js} +3486 -2614
- package/dist/chunks/dashboard-briefing-launcher-F3qKyuGr.js +106 -0
- package/dist/chunks/{dashboard-controls-Bvr4skpo.js → dashboard-controls-8J06Ot-K.js} +119 -129
- package/dist/chunks/{dashboard-controls-kSIXjX4k.js → dashboard-controls-BNAIucBl.js} +3 -8
- package/dist/chunks/{dashboard-json-4qbAgL-4.js → dashboard-json-B_Li7wO5.js} +1 -1
- package/dist/chunks/{dashboard-json-CgAgzcWN.js → dashboard-json-DIsACFCO.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-DOTGLbMS.js → edit-dashboard-visual-2CBS2I52.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-BgOLgfoq.js → edit-dashboard-visual-BGnC2DH7.js} +3 -3
- package/dist/chunks/{index-BSexp9WY.js → index-DYycYzpZ.js} +290 -289
- package/dist/chunks/{index-BToywf5X.js → index-cxoegFH9.js} +75 -75
- package/dist/chunks/{resource-management-panel-hQayeERR.js → resource-management-panel-BwNGxqrB.js} +1 -1
- package/dist/chunks/{resource-management-panel-CcSUHqz0.js → resource-management-panel-YtbKp2kW.js} +2 -2
- package/dist/chunks/{use-create-flow-overlay-state-Cqp5Qe-9.js → use-create-flow-overlay-state-DQZneUXL.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-CO6FEpZr.js → use-create-flow-overlay-state-Qnd7FF6L.js} +2 -2
- package/dist/chunks/{use-visual-utils-KIYmxQoV.js → use-visual-utils-BdMhr0YR.js} +1 -1
- package/dist/chunks/{use-visual-utils-DnJdlEV8.js → use-visual-utils-t73RlvjS.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 +17 -16
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/briefings.d.ts +29 -1
- package/dist/types/main.d.ts +32 -1
- package/dist/types/types.d.ts +29 -1
- package/package.json +1 -1
- package/dist/chunks/dashboard-briefing-launcher-DsomUnHQ.js +0 -96
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { jsx as e, jsxs as o, Fragment as O } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
import { be as lt, u as
|
|
4
|
-
import * as
|
|
2
|
+
import { c as W, u as S, B as I, az as la, E as Za, L as Xe, a1 as ie, a as Y, aA as Pe, aB as es, aC as as, $ as Zs, f as X, aD as et, aE as at, aF as Ze, T as ss, J as ts, K as Ie, N as ke, M as ea, aG as rs, aH as st, G as qa, Y as tt, Z as rt, _ as nt, a0 as ot, j as it, aI as ct } from "./switch-sauemjyY.js";
|
|
3
|
+
import { be as lt, u as B, b as da, bf as dt, al as aa, c as ua, d as ma, e as ha, f as ns, n as ut, bg as oe, au as Ae, bh as mt, bi as Ba, bj as os, bk as is, bl as ht, aL as pa, bm as pt, bn as ft, bo as gt, bp as bt, bq as vt, br as yt, ac as Oe, bs as Te, o as M, bt as xt, bu as St, bv as Nt, aP as sa, bw as ta, at as fa, av as cs, b2 as ls, bx as wt, aC as ds, aD as us, aE as ms, aF as hs, aG as ps, aH as fs, aI as gs, aJ as ra, ak as Dt, by as Ct, bz as Et, y as Lt, x as Le, J as Mt, z as Ke, bA as At, bB as It, bC as kt, Y as Pt, bD as Ot, I as Qe, bE as Tt, bF as _t, bG as Ut, bH as Rt, am as Gt, an as Ft, ao as $t, ap as zt, aq as z, bI as Ht, ax as qt, ar as ja, bJ as Bt, bK as jt, bL as Vt, H as Kt, bM as Qt, v as na } from "./index-DYycYzpZ.js";
|
|
4
|
+
import * as k from "react";
|
|
5
5
|
import bs, { useState as x, useMemo as q, useEffect as Va, useCallback as Jt } from "react";
|
|
6
6
|
import "./index-CJdxSyQq.js";
|
|
7
7
|
import "react-dom";
|
|
8
|
-
import { b as Wt, u as Yt, A as Xt, V as Zt,
|
|
9
|
-
import { d as
|
|
10
|
-
import { C as
|
|
11
|
-
import { u as
|
|
8
|
+
import { b as Wt, u as Yt, A as Xt, V as Zt, K as er, e as ar, L as sr, N as tr, U as rr } from "./dashboard-briefing-launcher-DR_i0anv.js";
|
|
9
|
+
import { d as nr } from "./index-DFOb_6HB.js";
|
|
10
|
+
import { C as or } from "./calendar-preferences-dialog-DPaVsZlk.js";
|
|
11
|
+
import { u as ir } from "./use-debounced-dirty-check-BwAbnX_5.js";
|
|
12
12
|
import { s as Je } from "./normalize-dashboard-for-dirty-check-5KpZN8xr.js";
|
|
13
13
|
import { S as Ka } from "./save-DVRQBMeb.js";
|
|
14
|
-
import { P as
|
|
15
|
-
import { B as
|
|
14
|
+
import { P as cr } from "./palette-BlxLchHy.js";
|
|
15
|
+
import { B as lr } from "./braces-CDPz6CF2.js";
|
|
16
16
|
/**
|
|
17
17
|
* @license lucide-react v0.453.0 - ISC
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the ISC license.
|
|
20
20
|
* See the LICENSE file in the root directory of this source tree.
|
|
21
21
|
*/
|
|
22
|
-
const
|
|
22
|
+
const dr = W("Glasses", [
|
|
23
23
|
["circle", { cx: "6", cy: "15", r: "4", key: "vux9w4" }],
|
|
24
24
|
["circle", { cx: "18", cy: "15", r: "4", key: "18o8ve" }],
|
|
25
25
|
["path", { d: "M14 15a2 2 0 0 0-2-2 2 2 0 0 0-2 2", key: "1ag4bs" }],
|
|
@@ -32,7 +32,7 @@ const lr = B("Glasses", [
|
|
|
32
32
|
* This source code is licensed under the ISC license.
|
|
33
33
|
* See the LICENSE file in the root directory of this source tree.
|
|
34
34
|
*/
|
|
35
|
-
const
|
|
35
|
+
const ur = W("Menu", [
|
|
36
36
|
["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }],
|
|
37
37
|
["line", { x1: "4", x2: "20", y1: "6", y2: "6", key: "1owob3" }],
|
|
38
38
|
["line", { x1: "4", x2: "20", y1: "18", y2: "18", key: "yk5zj1" }]
|
|
@@ -43,7 +43,7 @@ const dr = B("Menu", [
|
|
|
43
43
|
* This source code is licensed under the ISC license.
|
|
44
44
|
* See the LICENSE file in the root directory of this source tree.
|
|
45
45
|
*/
|
|
46
|
-
const
|
|
46
|
+
const mr = W("Monitor", [
|
|
47
47
|
["rect", { width: "20", height: "14", x: "2", y: "3", rx: "2", key: "48i651" }],
|
|
48
48
|
["line", { x1: "8", x2: "16", y1: "21", y2: "21", key: "1svkeh" }],
|
|
49
49
|
["line", { x1: "12", x2: "12", y1: "17", y2: "21", key: "vw1qmm" }]
|
|
@@ -54,7 +54,7 @@ const ur = B("Monitor", [
|
|
|
54
54
|
* This source code is licensed under the ISC license.
|
|
55
55
|
* See the LICENSE file in the root directory of this source tree.
|
|
56
56
|
*/
|
|
57
|
-
const
|
|
57
|
+
const hr = W("Moon", [
|
|
58
58
|
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z", key: "a7tn18" }]
|
|
59
59
|
]);
|
|
60
60
|
/**
|
|
@@ -63,7 +63,7 @@ const mr = B("Moon", [
|
|
|
63
63
|
* This source code is licensed under the ISC license.
|
|
64
64
|
* See the LICENSE file in the root directory of this source tree.
|
|
65
65
|
*/
|
|
66
|
-
const
|
|
66
|
+
const pr = W("ShieldX", [
|
|
67
67
|
[
|
|
68
68
|
"path",
|
|
69
69
|
{
|
|
@@ -80,7 +80,7 @@ const hr = B("ShieldX", [
|
|
|
80
80
|
* This source code is licensed under the ISC license.
|
|
81
81
|
* See the LICENSE file in the root directory of this source tree.
|
|
82
82
|
*/
|
|
83
|
-
const
|
|
83
|
+
const fr = W("Sun", [
|
|
84
84
|
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
85
85
|
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
86
86
|
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
@@ -97,17 +97,7 @@ const pr = B("Sun", [
|
|
|
97
97
|
* This source code is licensed under the ISC license.
|
|
98
98
|
* See the LICENSE file in the root directory of this source tree.
|
|
99
99
|
*/
|
|
100
|
-
const
|
|
101
|
-
["path", { d: "M9 14 4 9l5-5", key: "102s5s" }],
|
|
102
|
-
["path", { d: "M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11", key: "f3b9sd" }]
|
|
103
|
-
]);
|
|
104
|
-
/**
|
|
105
|
-
* @license lucide-react v0.453.0 - ISC
|
|
106
|
-
*
|
|
107
|
-
* This source code is licensed under the ISC license.
|
|
108
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
-
*/
|
|
110
|
-
const oa = B("UserPlus", [
|
|
100
|
+
const oa = W("UserPlus", [
|
|
111
101
|
["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", key: "1yyitq" }],
|
|
112
102
|
["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }],
|
|
113
103
|
["line", { x1: "19", x2: "19", y1: "8", y2: "14", key: "1bvyxn" }],
|
|
@@ -238,9 +228,9 @@ function yr() {
|
|
|
238
228
|
const m = Me.includes(a) ? a : "system", i = Me[(Me.indexOf(m) + 1) % Me.length];
|
|
239
229
|
t(i), r(i);
|
|
240
230
|
}
|
|
241
|
-
const n = a === "light" ?
|
|
231
|
+
const n = a === "light" ? fr : a === "dark" ? hr : mr, l = a === "light" ? "Theme: light (click for dark)" : a === "dark" ? "Theme: dark (click for system)" : "Theme: system (click for light)";
|
|
242
232
|
return /* @__PURE__ */ e(
|
|
243
|
-
|
|
233
|
+
I,
|
|
244
234
|
{
|
|
245
235
|
type: "button",
|
|
246
236
|
variant: "ghost",
|
|
@@ -293,7 +283,7 @@ function wr({
|
|
|
293
283
|
} = {}) {
|
|
294
284
|
const [r, s] = x(""), [n, l] = x(!1), m = S((E) => E.lenses), { setLenses: i, setSelectedLensId: f } = Za(), [y, u] = x(!1), [p, h] = x(!1), g = a !== void 0, b = g ? a : p, d = (E) => {
|
|
295
285
|
g || h(E), t == null || t(E);
|
|
296
|
-
}, w = S((E) => E.dashboard), D = S((E) => E.filterValues), { authToken: A, tokenProps: C } =
|
|
286
|
+
}, w = S((E) => E.dashboard), D = S((E) => E.filterValues), { authToken: A, tokenProps: C } = B();
|
|
297
287
|
async function N() {
|
|
298
288
|
u(!0);
|
|
299
289
|
const E = await xr(
|
|
@@ -306,7 +296,7 @@ function wr({
|
|
|
306
296
|
E && (i([...m || [], E]), f(E.id), d(!1)), u(!1);
|
|
307
297
|
}
|
|
308
298
|
return /* @__PURE__ */ o(da, { open: b, onOpenChange: d, children: [
|
|
309
|
-
g ? null : /* @__PURE__ */ e(dt, { asChild: !0, children: /* @__PURE__ */ o(
|
|
299
|
+
g ? null : /* @__PURE__ */ e(dt, { asChild: !0, children: /* @__PURE__ */ o(I, { variant: "secondary", size: "xs", children: [
|
|
310
300
|
/* @__PURE__ */ e(aa, { className: "h-3.5 w-3.5" }),
|
|
311
301
|
"Lens"
|
|
312
302
|
] }) }),
|
|
@@ -330,9 +320,9 @@ function wr({
|
|
|
330
320
|
n && /* @__PURE__ */ e("p", { className: "text-[12px] text-destructive", children: "A lens with this name already exists. Pick a different one." })
|
|
331
321
|
] }),
|
|
332
322
|
/* @__PURE__ */ o(ut, { children: [
|
|
333
|
-
/* @__PURE__ */ e(
|
|
323
|
+
/* @__PURE__ */ e(I, { variant: "outline", size: "xs", onClick: () => d(!1), children: "Cancel" }),
|
|
334
324
|
/* @__PURE__ */ e(
|
|
335
|
-
|
|
325
|
+
I,
|
|
336
326
|
{
|
|
337
327
|
size: "xs",
|
|
338
328
|
type: "submit",
|
|
@@ -346,7 +336,7 @@ function wr({
|
|
|
346
336
|
] });
|
|
347
337
|
}
|
|
348
338
|
function Dr({ includeLabel: a = !1 } = {}) {
|
|
349
|
-
const t = S((u) => u.lenses), r = S((u) => u.selectedLensId), { setLenses: s, setSelectedLensId: n } = Za(), { authToken: l, tokenProps: m } =
|
|
339
|
+
const t = S((u) => u.lenses), r = S((u) => u.selectedLensId), { setLenses: s, setSelectedLensId: n } = Za(), { authToken: l, tokenProps: m } = B();
|
|
350
340
|
async function i(u) {
|
|
351
341
|
n(u);
|
|
352
342
|
}
|
|
@@ -472,8 +462,8 @@ const Er = async (a, t, r) => {
|
|
|
472
462
|
const n = `${a}/management/v1/groups/${r}/members`;
|
|
473
463
|
await es(n, t, "DELETE", s);
|
|
474
464
|
};
|
|
475
|
-
function
|
|
476
|
-
const { authToken: a, tokenProps: t } =
|
|
465
|
+
function Ir() {
|
|
466
|
+
const { authToken: a, tokenProps: t } = B(), r = Oe();
|
|
477
467
|
return Te({
|
|
478
468
|
mutationFn: (s) => Er(t.apiServiceUrl, (a == null ? void 0 : a.accessToken) || "", s),
|
|
479
469
|
onSuccess: () => {
|
|
@@ -486,8 +476,8 @@ function kr() {
|
|
|
486
476
|
}
|
|
487
477
|
});
|
|
488
478
|
}
|
|
489
|
-
function
|
|
490
|
-
const { authToken: a, tokenProps: t } =
|
|
479
|
+
function kr() {
|
|
480
|
+
const { authToken: a, tokenProps: t } = B(), r = Oe();
|
|
491
481
|
return Te({
|
|
492
482
|
mutationFn: (s) => Lr(t.apiServiceUrl, (a == null ? void 0 : a.accessToken) || "", s),
|
|
493
483
|
onSuccess: (s, n) => {
|
|
@@ -501,7 +491,7 @@ function Ir() {
|
|
|
501
491
|
});
|
|
502
492
|
}
|
|
503
493
|
function Pr() {
|
|
504
|
-
const { authToken: a, tokenProps: t } =
|
|
494
|
+
const { authToken: a, tokenProps: t } = B(), r = Oe();
|
|
505
495
|
return Te({
|
|
506
496
|
mutationFn: ({
|
|
507
497
|
groupId: s,
|
|
@@ -520,7 +510,7 @@ function Pr() {
|
|
|
520
510
|
});
|
|
521
511
|
}
|
|
522
512
|
function Or() {
|
|
523
|
-
const { authToken: a, tokenProps: t } =
|
|
513
|
+
const { authToken: a, tokenProps: t } = B(), r = Oe();
|
|
524
514
|
return Te({
|
|
525
515
|
mutationFn: ({
|
|
526
516
|
groupId: s,
|
|
@@ -544,7 +534,7 @@ function Tr({
|
|
|
544
534
|
tenantId: t,
|
|
545
535
|
isTenantUser: r
|
|
546
536
|
}) {
|
|
547
|
-
const [s, n] = x(""), [l, m] = x(""), [i, f] = x({}), y =
|
|
537
|
+
const [s, n] = x(""), [l, m] = x(""), [i, f] = x({}), y = Ir(), u = () => {
|
|
548
538
|
const h = {};
|
|
549
539
|
return s.trim() ? s.length < 3 ? h.name = "Group name must be at least 3 characters" : s.length > 50 && (h.name = "Group name must be less than 50 characters") : h.name = "Group name is required", l && l.length > 200 && (h.description = "Description must be less than 200 characters"), f(h), Object.keys(h).length === 0;
|
|
550
540
|
};
|
|
@@ -610,7 +600,7 @@ function Tr({
|
|
|
610
600
|
] }),
|
|
611
601
|
/* @__PURE__ */ o("div", { className: "flex justify-end gap-1.5 pt-1", children: [
|
|
612
602
|
/* @__PURE__ */ e(
|
|
613
|
-
|
|
603
|
+
I,
|
|
614
604
|
{
|
|
615
605
|
type: "button",
|
|
616
606
|
variant: "outline",
|
|
@@ -623,7 +613,7 @@ function Tr({
|
|
|
623
613
|
}
|
|
624
614
|
),
|
|
625
615
|
/* @__PURE__ */ e(
|
|
626
|
-
|
|
616
|
+
I,
|
|
627
617
|
{
|
|
628
618
|
type: "submit",
|
|
629
619
|
size: "xs",
|
|
@@ -640,19 +630,19 @@ function Tr({
|
|
|
640
630
|
function _r(a, t = []) {
|
|
641
631
|
let r = [];
|
|
642
632
|
function s(l, m) {
|
|
643
|
-
const i =
|
|
633
|
+
const i = k.createContext(m);
|
|
644
634
|
i.displayName = l + "Context";
|
|
645
635
|
const f = r.length;
|
|
646
636
|
r = [...r, m];
|
|
647
637
|
const y = (p) => {
|
|
648
638
|
var D;
|
|
649
|
-
const { scope: h, children: g, ...b } = p, d = ((D = h == null ? void 0 : h[a]) == null ? void 0 : D[f]) || i, w =
|
|
639
|
+
const { scope: h, children: g, ...b } = p, d = ((D = h == null ? void 0 : h[a]) == null ? void 0 : D[f]) || i, w = k.useMemo(() => b, Object.values(b));
|
|
650
640
|
return /* @__PURE__ */ e(d.Provider, { value: w, children: g });
|
|
651
641
|
};
|
|
652
642
|
y.displayName = l + "Provider";
|
|
653
643
|
function u(p, h) {
|
|
654
644
|
var d;
|
|
655
|
-
const g = ((d = h == null ? void 0 : h[a]) == null ? void 0 : d[f]) || i, b =
|
|
645
|
+
const g = ((d = h == null ? void 0 : h[a]) == null ? void 0 : d[f]) || i, b = k.useContext(g);
|
|
656
646
|
if (b) return b;
|
|
657
647
|
if (m !== void 0) return m;
|
|
658
648
|
throw new Error(`\`${p}\` must be used within \`${l}\``);
|
|
@@ -660,10 +650,10 @@ function _r(a, t = []) {
|
|
|
660
650
|
return [y, u];
|
|
661
651
|
}
|
|
662
652
|
const n = () => {
|
|
663
|
-
const l = r.map((m) =>
|
|
653
|
+
const l = r.map((m) => k.createContext(m));
|
|
664
654
|
return function(i) {
|
|
665
655
|
const f = (i == null ? void 0 : i[a]) || l;
|
|
666
|
-
return
|
|
656
|
+
return k.useMemo(
|
|
667
657
|
() => ({ [`__scope${a}`]: { ...i, [a]: f } }),
|
|
668
658
|
[i, f]
|
|
669
659
|
);
|
|
@@ -684,7 +674,7 @@ function Ur(...a) {
|
|
|
684
674
|
const p = f(l)[`__scope${y}`];
|
|
685
675
|
return { ...i, ...p };
|
|
686
676
|
}, {});
|
|
687
|
-
return
|
|
677
|
+
return k.useMemo(() => ({ [`__scope${t.scopeName}`]: m }), [m]);
|
|
688
678
|
};
|
|
689
679
|
};
|
|
690
680
|
return r.scopeName = t.scopeName, r;
|
|
@@ -708,7 +698,7 @@ var Rr = [
|
|
|
708
698
|
"svg",
|
|
709
699
|
"ul"
|
|
710
700
|
], ga = Rr.reduce((a, t) => {
|
|
711
|
-
const r = et(`Primitive.${t}`), s =
|
|
701
|
+
const r = et(`Primitive.${t}`), s = k.forwardRef((n, l) => {
|
|
712
702
|
const { asChild: m, ...i } = n, f = m ? r : t;
|
|
713
703
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ e(f, { ...i, ref: l });
|
|
714
704
|
});
|
|
@@ -725,9 +715,9 @@ function Fr() {
|
|
|
725
715
|
return () => {
|
|
726
716
|
};
|
|
727
717
|
}
|
|
728
|
-
var ba = "Avatar", [$r] = _r(ba), [zr, vs] = $r(ba), ys =
|
|
718
|
+
var ba = "Avatar", [$r] = _r(ba), [zr, vs] = $r(ba), ys = k.forwardRef(
|
|
729
719
|
(a, t) => {
|
|
730
|
-
const { __scopeAvatar: r, ...s } = a, [n, l] =
|
|
720
|
+
const { __scopeAvatar: r, ...s } = a, [n, l] = k.useState("idle");
|
|
731
721
|
return /* @__PURE__ */ e(
|
|
732
722
|
zr,
|
|
733
723
|
{
|
|
@@ -740,7 +730,7 @@ var ba = "Avatar", [$r] = _r(ba), [zr, vs] = $r(ba), ys = I.forwardRef(
|
|
|
740
730
|
}
|
|
741
731
|
);
|
|
742
732
|
ys.displayName = ba;
|
|
743
|
-
var xs = "AvatarImage", Ss =
|
|
733
|
+
var xs = "AvatarImage", Ss = k.forwardRef(
|
|
744
734
|
(a, t) => {
|
|
745
735
|
const { __scopeAvatar: r, src: s, onLoadingStatusChange: n = () => {
|
|
746
736
|
}, ...l } = a, m = vs(xs, r), i = Hr(s, l), f = at((y) => {
|
|
@@ -752,10 +742,10 @@ var xs = "AvatarImage", Ss = I.forwardRef(
|
|
|
752
742
|
}
|
|
753
743
|
);
|
|
754
744
|
Ss.displayName = xs;
|
|
755
|
-
var Ns = "AvatarFallback", ws =
|
|
745
|
+
var Ns = "AvatarFallback", ws = k.forwardRef(
|
|
756
746
|
(a, t) => {
|
|
757
|
-
const { __scopeAvatar: r, delayMs: s, ...n } = a, l = vs(Ns, r), [m, i] =
|
|
758
|
-
return
|
|
747
|
+
const { __scopeAvatar: r, delayMs: s, ...n } = a, l = vs(Ns, r), [m, i] = k.useState(s === void 0);
|
|
748
|
+
return k.useEffect(() => {
|
|
759
749
|
if (s !== void 0) {
|
|
760
750
|
const f = window.setTimeout(() => i(!0), s);
|
|
761
751
|
return () => window.clearTimeout(f);
|
|
@@ -768,7 +758,7 @@ function Ya(a, t) {
|
|
|
768
758
|
return a ? t ? (a.src !== t && (a.src = t), a.complete && a.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
769
759
|
}
|
|
770
760
|
function Hr(a, { referrerPolicy: t, crossOrigin: r }) {
|
|
771
|
-
const s = Gr(), n =
|
|
761
|
+
const s = Gr(), n = k.useRef(null), l = s ? (n.current || (n.current = new window.Image()), n.current) : null, [m, i] = k.useState(
|
|
772
762
|
() => Ya(l, a)
|
|
773
763
|
);
|
|
774
764
|
return Ze(() => {
|
|
@@ -785,7 +775,7 @@ function Hr(a, { referrerPolicy: t, crossOrigin: r }) {
|
|
|
785
775
|
}, [l, r, t]), m;
|
|
786
776
|
}
|
|
787
777
|
var Ds = ys, Cs = Ss, Es = ws;
|
|
788
|
-
const va =
|
|
778
|
+
const va = k.forwardRef(({ className: a, ...t }, r) => /* @__PURE__ */ e(
|
|
789
779
|
Ds,
|
|
790
780
|
{
|
|
791
781
|
ref: r,
|
|
@@ -797,7 +787,7 @@ const va = I.forwardRef(({ className: a, ...t }, r) => /* @__PURE__ */ e(
|
|
|
797
787
|
}
|
|
798
788
|
));
|
|
799
789
|
va.displayName = Ds.displayName;
|
|
800
|
-
const qr =
|
|
790
|
+
const qr = k.forwardRef(({ className: a, ...t }, r) => /* @__PURE__ */ e(
|
|
801
791
|
Cs,
|
|
802
792
|
{
|
|
803
793
|
ref: r,
|
|
@@ -806,7 +796,7 @@ const qr = I.forwardRef(({ className: a, ...t }, r) => /* @__PURE__ */ e(
|
|
|
806
796
|
}
|
|
807
797
|
));
|
|
808
798
|
qr.displayName = Cs.displayName;
|
|
809
|
-
const ya =
|
|
799
|
+
const ya = k.forwardRef(({ className: a, ...t }, r) => /* @__PURE__ */ e(
|
|
810
800
|
Es,
|
|
811
801
|
{
|
|
812
802
|
ref: r,
|
|
@@ -829,25 +819,25 @@ function Br({
|
|
|
829
819
|
tenantId: r.tenantId || void 0,
|
|
830
820
|
active: !0,
|
|
831
821
|
limit: 100
|
|
832
|
-
}), A = Pr(), C = Or(), N = (h == null ? void 0 : h.members) || [], E = q(() => new Set(N.map((v) => v.userId)), [N]),
|
|
833
|
-
if (!m) return
|
|
822
|
+
}), A = Pr(), C = Or(), N = (h == null ? void 0 : h.members) || [], E = q(() => new Set(N.map((v) => v.userId)), [N]), j = q(() => w.filter((v) => !E.has(v.id)), [w, E]), H = q(() => {
|
|
823
|
+
if (!m) return j;
|
|
834
824
|
const v = m.toLowerCase();
|
|
835
|
-
return
|
|
825
|
+
return j.filter(
|
|
836
826
|
(T) => {
|
|
837
|
-
var R,
|
|
838
|
-
return ((R = T.name) == null ? void 0 : R.toLowerCase().includes(v)) || ((
|
|
827
|
+
var R, K;
|
|
828
|
+
return ((R = T.name) == null ? void 0 : R.toLowerCase().includes(v)) || ((K = T.email) == null ? void 0 : K.toLowerCase().includes(v));
|
|
839
829
|
}
|
|
840
830
|
);
|
|
841
|
-
}, [
|
|
831
|
+
}, [j, m]), L = q(() => {
|
|
842
832
|
if (!m) return N;
|
|
843
833
|
const v = m.toLowerCase();
|
|
844
834
|
return N.filter(
|
|
845
835
|
(T) => {
|
|
846
|
-
var R,
|
|
847
|
-
return ((
|
|
836
|
+
var R, K, Z, le;
|
|
837
|
+
return ((K = (R = T.user) == null ? void 0 : R.name) == null ? void 0 : K.toLowerCase().includes(v)) || ((le = (Z = T.user) == null ? void 0 : Z.email) == null ? void 0 : le.toLowerCase().includes(v));
|
|
848
838
|
}
|
|
849
839
|
);
|
|
850
|
-
}, [N, m]),
|
|
840
|
+
}, [N, m]), V = async () => {
|
|
851
841
|
if (f.length !== 0)
|
|
852
842
|
try {
|
|
853
843
|
await A.mutateAsync({
|
|
@@ -899,10 +889,10 @@ function Br({
|
|
|
899
889
|
l(v), i(""), p([]);
|
|
900
890
|
}, className: "mt-4", children: [
|
|
901
891
|
/* @__PURE__ */ o(ts, { className: "grid w-full grid-cols-2", children: [
|
|
902
|
-
/* @__PURE__ */ e(
|
|
903
|
-
/* @__PURE__ */ e(
|
|
892
|
+
/* @__PURE__ */ e(Ie, { value: "members", children: "Current Members" }),
|
|
893
|
+
/* @__PURE__ */ e(Ie, { value: "add", children: "Add Members" })
|
|
904
894
|
] }),
|
|
905
|
-
/* @__PURE__ */ o(
|
|
895
|
+
/* @__PURE__ */ o(ke, { value: "members", className: "mt-4 space-y-4", children: [
|
|
906
896
|
/* @__PURE__ */ o("div", { className: "relative", children: [
|
|
907
897
|
/* @__PURE__ */ e(sa, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
908
898
|
/* @__PURE__ */ e(
|
|
@@ -936,7 +926,7 @@ function Br({
|
|
|
936
926
|
" selected"
|
|
937
927
|
] }),
|
|
938
928
|
/* @__PURE__ */ e(
|
|
939
|
-
|
|
929
|
+
I,
|
|
940
930
|
{
|
|
941
931
|
variant: "destructive",
|
|
942
932
|
size: "sm",
|
|
@@ -953,7 +943,7 @@ function Br({
|
|
|
953
943
|
)
|
|
954
944
|
] })
|
|
955
945
|
] }),
|
|
956
|
-
/* @__PURE__ */ o(
|
|
946
|
+
/* @__PURE__ */ o(ke, { value: "add", className: "mt-4 space-y-4", children: [
|
|
957
947
|
/* @__PURE__ */ o("div", { className: "relative", children: [
|
|
958
948
|
/* @__PURE__ */ e(sa, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
959
949
|
/* @__PURE__ */ e(
|
|
@@ -987,9 +977,9 @@ function Br({
|
|
|
987
977
|
" selected"
|
|
988
978
|
] }),
|
|
989
979
|
/* @__PURE__ */ e(
|
|
990
|
-
|
|
980
|
+
I,
|
|
991
981
|
{
|
|
992
|
-
onClick:
|
|
982
|
+
onClick: V,
|
|
993
983
|
disabled: A.isPending,
|
|
994
984
|
children: A.isPending ? /* @__PURE__ */ o(O, { children: [
|
|
995
985
|
/* @__PURE__ */ e(X, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
@@ -1055,14 +1045,14 @@ function Kr({
|
|
|
1055
1045
|
open: a,
|
|
1056
1046
|
onOpenChange: t
|
|
1057
1047
|
}) {
|
|
1058
|
-
const [r, s] = x("groups"), [n, l] = x(""), [m, i] = x(null), [f, y] = x(!1), [u, p] = x(null), { tokenProps: h } =
|
|
1048
|
+
const [r, s] = x("groups"), [n, l] = x(""), [m, i] = x(null), [f, y] = x(!1), [u, p] = x(null), { tokenProps: h } = B(), { currentUser: g } = pa(), b = kr(), d = (g == null ? void 0 : g.type) === "tenant", w = h == null ? void 0 : h.tenantId, { groups: D, isLoading: A, refetch: C } = wt({
|
|
1059
1049
|
type: d ? "TENANT_GROUP" : "all",
|
|
1060
1050
|
tenantId: d ? w : void 0,
|
|
1061
1051
|
includeMembers: !1
|
|
1062
1052
|
}), N = D.filter(
|
|
1063
1053
|
(L) => {
|
|
1064
|
-
var
|
|
1065
|
-
return L.name.toLowerCase().includes(n.toLowerCase()) || ((
|
|
1054
|
+
var V;
|
|
1055
|
+
return L.name.toLowerCase().includes(n.toLowerCase()) || ((V = L.description) == null ? void 0 : V.toLowerCase().includes(n.toLowerCase()));
|
|
1066
1056
|
}
|
|
1067
1057
|
), E = async () => {
|
|
1068
1058
|
if (u)
|
|
@@ -1071,7 +1061,7 @@ function Kr({
|
|
|
1071
1061
|
} catch (L) {
|
|
1072
1062
|
console.error("Failed to delete group:", L);
|
|
1073
1063
|
}
|
|
1074
|
-
},
|
|
1064
|
+
}, j = (L) => {
|
|
1075
1065
|
i(L), y(!0);
|
|
1076
1066
|
}, H = () => {
|
|
1077
1067
|
s("groups"), C();
|
|
@@ -1091,7 +1081,7 @@ function Kr({
|
|
|
1091
1081
|
children: [
|
|
1092
1082
|
/* @__PURE__ */ o(ts, { className: "h-8 w-full justify-start gap-1 bg-transparent p-0 border-b border-border/60 rounded-none", children: [
|
|
1093
1083
|
/* @__PURE__ */ e(
|
|
1094
|
-
|
|
1084
|
+
Ie,
|
|
1095
1085
|
{
|
|
1096
1086
|
value: "groups",
|
|
1097
1087
|
className: "h-8 rounded-none border-b-2 border-transparent bg-transparent px-3 text-[13px] data-[state=active]:border-foreground data-[state=active]:bg-transparent data-[state=active]:shadow-none",
|
|
@@ -1099,7 +1089,7 @@ function Kr({
|
|
|
1099
1089
|
}
|
|
1100
1090
|
),
|
|
1101
1091
|
/* @__PURE__ */ e(
|
|
1102
|
-
|
|
1092
|
+
Ie,
|
|
1103
1093
|
{
|
|
1104
1094
|
value: "create",
|
|
1105
1095
|
className: "h-8 rounded-none border-b-2 border-transparent bg-transparent px-3 text-[13px] data-[state=active]:border-foreground data-[state=active]:bg-transparent data-[state=active]:shadow-none",
|
|
@@ -1107,7 +1097,7 @@ function Kr({
|
|
|
1107
1097
|
}
|
|
1108
1098
|
)
|
|
1109
1099
|
] }),
|
|
1110
|
-
/* @__PURE__ */ e(
|
|
1100
|
+
/* @__PURE__ */ e(ke, { value: "groups", className: "mt-4", children: /* @__PURE__ */ o("div", { className: "space-y-3", children: [
|
|
1111
1101
|
/* @__PURE__ */ o("div", { className: "relative", children: [
|
|
1112
1102
|
/* @__PURE__ */ e(sa, { className: "absolute left-2 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground" }),
|
|
1113
1103
|
/* @__PURE__ */ e(
|
|
@@ -1134,14 +1124,14 @@ function Kr({
|
|
|
1134
1124
|
Qr,
|
|
1135
1125
|
{
|
|
1136
1126
|
group: L,
|
|
1137
|
-
onManageMembers: () =>
|
|
1127
|
+
onManageMembers: () => j(L),
|
|
1138
1128
|
onDelete: () => p(L),
|
|
1139
1129
|
currentUserId: g == null ? void 0 : g.id
|
|
1140
1130
|
},
|
|
1141
1131
|
L.id
|
|
1142
1132
|
)) }) })
|
|
1143
1133
|
] }) }),
|
|
1144
|
-
/* @__PURE__ */ e(
|
|
1134
|
+
/* @__PURE__ */ e(ke, { value: "create", className: "mt-4", children: /* @__PURE__ */ e(
|
|
1145
1135
|
Tr,
|
|
1146
1136
|
{
|
|
1147
1137
|
onSuccess: H,
|
|
@@ -1216,13 +1206,13 @@ function Qr({
|
|
|
1216
1206
|
] }),
|
|
1217
1207
|
/* @__PURE__ */ o("span", { children: [
|
|
1218
1208
|
"Created ",
|
|
1219
|
-
|
|
1209
|
+
nr(new Date(a.createdAt), "MMM d, yyyy")
|
|
1220
1210
|
] })
|
|
1221
1211
|
] })
|
|
1222
1212
|
] }),
|
|
1223
1213
|
/* @__PURE__ */ o("div", { className: "flex shrink-0 items-center gap-0.5", children: [
|
|
1224
1214
|
/* @__PURE__ */ e(
|
|
1225
|
-
|
|
1215
|
+
I,
|
|
1226
1216
|
{
|
|
1227
1217
|
variant: "ghost",
|
|
1228
1218
|
size: "xs",
|
|
@@ -1234,7 +1224,7 @@ function Qr({
|
|
|
1234
1224
|
}
|
|
1235
1225
|
),
|
|
1236
1226
|
n && /* @__PURE__ */ e(
|
|
1237
|
-
|
|
1227
|
+
I,
|
|
1238
1228
|
{
|
|
1239
1229
|
variant: "ghost",
|
|
1240
1230
|
size: "xs",
|
|
@@ -1366,13 +1356,13 @@ function hn() {
|
|
|
1366
1356
|
tokenProps: t,
|
|
1367
1357
|
id: r,
|
|
1368
1358
|
showBriefings: s
|
|
1369
|
-
} =
|
|
1359
|
+
} = B(), { isLocalDev: n } = Dt(), { openBrandStudioPreview: l } = Ct(), { permissions: m } = Cr(), i = Et(), { isLoading: f } = Lt(), y = S((c) => c.theme), u = S((c) => c.isDownloadingPdf), p = S(
|
|
1370
1360
|
(c) => c.dashboardAssistantDraftScopeKey
|
|
1371
1361
|
), h = S((c) => c.lenses), g = S((c) => c.selectedLensId), b = h == null ? void 0 : h.find((c) => c.id === g), d = S((c) => c.dashboard), w = S((c) => c.selectedSheetId), D = (_a = d == null ? void 0 : d.sheets) == null ? void 0 : _a.find(
|
|
1372
1362
|
(c) => c.id === w
|
|
1373
1363
|
), A = st(D), C = A ? (Ua = D == null ? void 0 : D.document) == null ? void 0 : Ua.page : void 0, N = S(
|
|
1374
1364
|
(c) => c.isDashboardEditing
|
|
1375
|
-
), { setDashboardTitle: E } = S((c) => c.actions), [
|
|
1365
|
+
), { setDashboardTitle: E } = S((c) => c.actions), [j, H] = x(!1), [L, V] = x(!1), [_e, ce] = x(!1), [Ue, v] = x(!1), [T, R] = x(!1), [K, Z] = x(!1), [le, de] = x(!1), [ue, me] = x(null), [xa, he] = x([]), [Sa, pe] = x(!1), Ls = S((c) => c.isDashboardPanelOpen), Ms = S(
|
|
1376
1366
|
(c) => c.actions.setIsDashboardPanelOpen
|
|
1377
1367
|
), As = S((c) => c.filterValues), _ = S((c) => c.isVisualEditing);
|
|
1378
1368
|
qa((c) => c.card);
|
|
@@ -1389,7 +1379,7 @@ function hn() {
|
|
|
1389
1379
|
setShowDashboardJSON: Da
|
|
1390
1380
|
} = S((c) => c.actions), { setInitialDashboard: Ca, clearSelectedDashboard: Ge } = Le(
|
|
1391
1381
|
(c) => c.actions
|
|
1392
|
-
), { resources: be } = Mt(Ke.DASHBOARD), { data: Fe } = At(),
|
|
1382
|
+
), { resources: be } = Mt(Ke.DASHBOARD), { data: Fe } = At(), Is = ((Fa = Fe == null ? void 0 : Fe.preference) == null ? void 0 : Fa.defaultDashboardId) || null, { mutate: ks, isPending: Ps } = It(), { currentUser: Os } = pa(), Ts = kt(Os), F = ee || fe, Ea = F ? {
|
|
1393
1383
|
id: F.id,
|
|
1394
1384
|
title: (d == null ? void 0 : d.title) || F.title || "Dashboard"
|
|
1395
1385
|
} : null, { handleAddNewFrame: _s } = Pt(), [$e, ze] = x(!1), [Us, ae] = x(!1), [He, ve] = x("close"), se = Ot(Ke.DASHBOARD), [G, ye] = x(null), Rs = async (c, P) => {
|
|
@@ -1472,14 +1462,14 @@ function hn() {
|
|
|
1472
1462
|
f,
|
|
1473
1463
|
Aa
|
|
1474
1464
|
]);
|
|
1475
|
-
const xe = (G == null ? void 0 : G.dashboard) ?? null, { isDirty:
|
|
1465
|
+
const xe = (G == null ? void 0 : G.dashboard) ?? null, { isDirty: Ia, isDirtyPending: Fs, resetDirty: Se } = ir(
|
|
1476
1466
|
d,
|
|
1477
1467
|
xe,
|
|
1478
1468
|
300,
|
|
1479
1469
|
1e3,
|
|
1480
1470
|
Je
|
|
1481
|
-
),
|
|
1482
|
-
|
|
1471
|
+
), ka = Jt(() => xe ? Je(d) !== Je(xe) : !1, [d, xe]), Pa = Ia || Fs, Ne = $e || se.isPending, $s = () => {
|
|
1472
|
+
ka() ? (ve("close"), ae(!0)) : (Be(), Se());
|
|
1483
1473
|
}, zs = async () => {
|
|
1484
1474
|
await je({
|
|
1485
1475
|
closeAfterSave: !0,
|
|
@@ -1494,7 +1484,7 @@ function hn() {
|
|
|
1494
1484
|
semanticExecutionPayload: G.semanticExecutionPayload
|
|
1495
1485
|
}), Se());
|
|
1496
1486
|
}, Bs = () => {
|
|
1497
|
-
if (N &&
|
|
1487
|
+
if (N && ka()) {
|
|
1498
1488
|
ve("home"), ae(!0);
|
|
1499
1489
|
return;
|
|
1500
1490
|
}
|
|
@@ -1519,11 +1509,11 @@ function hn() {
|
|
|
1519
1509
|
{
|
|
1520
1510
|
onSuccess: (U) => {
|
|
1521
1511
|
var De, Ce, Ha;
|
|
1522
|
-
const
|
|
1523
|
-
if (!P.id &&
|
|
1512
|
+
const J = (U == null ? void 0 : U.id) || ((De = U == null ? void 0 : U.dashboard) == null ? void 0 : De.id) || ((Ce = U == null ? void 0 : U.resource) == null ? void 0 : Ce.id) || ((Ha = U == null ? void 0 : U.template) == null ? void 0 : Ha.id) || null;
|
|
1513
|
+
if (!P.id && J) {
|
|
1524
1514
|
const Ve = ct.getState(), Ee = Ve.pendingDashboardDraftMigration;
|
|
1525
1515
|
(Ee == null ? void 0 : Ee.scopeKey) === p ? Ve.actions.setPendingDashboardDraftMigrationExpectedDashboardId(
|
|
1526
|
-
|
|
1516
|
+
J
|
|
1527
1517
|
) : Ee && Ve.actions.clearPendingDashboardDraftMigration();
|
|
1528
1518
|
}
|
|
1529
1519
|
ze(!1), M.success("Dashboard saved!"), ye(
|
|
@@ -1535,9 +1525,9 @@ function hn() {
|
|
|
1535
1525
|
},
|
|
1536
1526
|
onError: (U) => {
|
|
1537
1527
|
ze(!1), me("Failed to save dashboard. Please try again.");
|
|
1538
|
-
const
|
|
1539
|
-
|
|
1540
|
-
) ? (
|
|
1528
|
+
const J = U.details, De = Array.isArray(
|
|
1529
|
+
J == null ? void 0 : J.errors
|
|
1530
|
+
) ? (J.errors || []).filter(
|
|
1541
1531
|
(Ce) => typeof Ce == "string"
|
|
1542
1532
|
) : [];
|
|
1543
1533
|
he(
|
|
@@ -1575,12 +1565,12 @@ function hn() {
|
|
|
1575
1565
|
dashboardId: d == null ? void 0 : d.id,
|
|
1576
1566
|
currentLensName: b == null ? void 0 : b.name
|
|
1577
1567
|
});
|
|
1578
|
-
const Ta = t.orgUserId || t.tenantId && t.endUserId && t.endUserEmail, Vs = !!Ta && !!(a != null && a.accessToken) && !!(t != null && t.apiServiceUrl), Ks = i,
|
|
1568
|
+
const Ta = t.orgUserId || t.tenantId && t.endUserId && t.endUserEmail, Vs = !!Ta && !!(a != null && a.accessToken) && !!(t != null && t.apiServiceUrl), Ks = i, Q = (d == null ? void 0 : d.id) || null, Qs = Wr(
|
|
1579
1569
|
($a = t.config) == null ? void 0 : $a.showBriefings,
|
|
1580
1570
|
s
|
|
1581
|
-
), we = !!
|
|
1582
|
-
|
|
1583
|
-
dashboardId: we ? null :
|
|
1571
|
+
), we = !!Q && Is === Q, Js = () => {
|
|
1572
|
+
Q && ks({
|
|
1573
|
+
dashboardId: we ? null : Q
|
|
1584
1574
|
});
|
|
1585
1575
|
};
|
|
1586
1576
|
return /* @__PURE__ */ o(
|
|
@@ -1601,7 +1591,7 @@ function hn() {
|
|
|
1601
1591
|
},
|
|
1602
1592
|
className: "h-7 w-7 px-0",
|
|
1603
1593
|
buttonProps: { size: "xs" },
|
|
1604
|
-
children: /* @__PURE__ */ e(
|
|
1594
|
+
children: /* @__PURE__ */ e(ur, { className: "h-3.5 w-3.5" })
|
|
1605
1595
|
}
|
|
1606
1596
|
),
|
|
1607
1597
|
Ks && !_ && /* @__PURE__ */ e(
|
|
@@ -1645,9 +1635,9 @@ function hn() {
|
|
|
1645
1635
|
isPending: se.isPending
|
|
1646
1636
|
}
|
|
1647
1637
|
),
|
|
1648
|
-
Vs &&
|
|
1638
|
+
Vs && Q && /* @__PURE__ */ e(tt, { children: /* @__PURE__ */ o(rt, { children: [
|
|
1649
1639
|
/* @__PURE__ */ e(nt, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1650
|
-
|
|
1640
|
+
I,
|
|
1651
1641
|
{
|
|
1652
1642
|
variant: "ghost",
|
|
1653
1643
|
size: "xs",
|
|
@@ -1676,31 +1666,31 @@ function hn() {
|
|
|
1676
1666
|
/* @__PURE__ */ e(Zt, {})
|
|
1677
1667
|
] }),
|
|
1678
1668
|
!_ && i && ((za = F == null ? void 0 : F.permissions) == null ? void 0 : za.canShare) && /* @__PURE__ */ o(
|
|
1679
|
-
|
|
1669
|
+
I,
|
|
1680
1670
|
{
|
|
1681
1671
|
variant: "outline",
|
|
1682
1672
|
size: "xs",
|
|
1683
|
-
onClick: () =>
|
|
1673
|
+
onClick: () => V(!0),
|
|
1684
1674
|
children: [
|
|
1685
1675
|
/* @__PURE__ */ e(Ut, { className: "h-3.5 w-3.5" }),
|
|
1686
1676
|
"Share"
|
|
1687
1677
|
]
|
|
1688
1678
|
}
|
|
1689
1679
|
),
|
|
1690
|
-
!_ && !N && i &&
|
|
1680
|
+
!_ && !N && i && Q && Qs && /* @__PURE__ */ e(
|
|
1691
1681
|
er,
|
|
1692
1682
|
{
|
|
1693
|
-
dashboardId:
|
|
1683
|
+
dashboardId: Q,
|
|
1694
1684
|
dashboardTitle: (d == null ? void 0 : d.title) || (F == null ? void 0 : F.title)
|
|
1695
1685
|
}
|
|
1696
1686
|
),
|
|
1697
1687
|
!_ && N && m.canUseFilters && i && /* @__PURE__ */ e(ar, {}),
|
|
1698
1688
|
N && !_ && te && b && n && i && /* @__PURE__ */ o(
|
|
1699
|
-
|
|
1689
|
+
I,
|
|
1700
1690
|
{
|
|
1701
1691
|
variant: "secondary",
|
|
1702
1692
|
size: "xs",
|
|
1703
|
-
disabled:
|
|
1693
|
+
disabled: j,
|
|
1704
1694
|
onClick: js,
|
|
1705
1695
|
children: [
|
|
1706
1696
|
/* @__PURE__ */ e(Ka, { className: "h-3.5 w-3.5" }),
|
|
@@ -1709,7 +1699,7 @@ function hn() {
|
|
|
1709
1699
|
}
|
|
1710
1700
|
),
|
|
1711
1701
|
N && !_ && i && !A && /* @__PURE__ */ o(
|
|
1712
|
-
|
|
1702
|
+
I,
|
|
1713
1703
|
{
|
|
1714
1704
|
variant: "outline",
|
|
1715
1705
|
size: "xs",
|
|
@@ -1721,25 +1711,25 @@ function hn() {
|
|
|
1721
1711
|
]
|
|
1722
1712
|
}
|
|
1723
1713
|
),
|
|
1724
|
-
!_ && !N && ge && i && /* @__PURE__ */ o(
|
|
1714
|
+
!_ && !N && ge && i && /* @__PURE__ */ o(I, { size: "xs", onClick: Gs, children: [
|
|
1725
1715
|
/* @__PURE__ */ e(Rt, { className: "h-3.5 w-3.5" }),
|
|
1726
1716
|
"Edit"
|
|
1727
1717
|
] }),
|
|
1728
|
-
La && i &&
|
|
1729
|
-
|
|
1718
|
+
La && i && Ia && /* @__PURE__ */ o(
|
|
1719
|
+
I,
|
|
1730
1720
|
{
|
|
1731
1721
|
variant: "outline",
|
|
1732
1722
|
size: "xs",
|
|
1733
1723
|
onClick: qs,
|
|
1734
1724
|
disabled: Ne,
|
|
1735
1725
|
children: [
|
|
1736
|
-
/* @__PURE__ */ e(
|
|
1726
|
+
/* @__PURE__ */ e(sr, { className: "h-3.5 w-3.5" }),
|
|
1737
1727
|
"Undo"
|
|
1738
1728
|
]
|
|
1739
1729
|
}
|
|
1740
1730
|
),
|
|
1741
1731
|
La && i && /* @__PURE__ */ o(
|
|
1742
|
-
|
|
1732
|
+
I,
|
|
1743
1733
|
{
|
|
1744
1734
|
size: "xs",
|
|
1745
1735
|
className: Y(!Pa && "opacity-60"),
|
|
@@ -1751,11 +1741,11 @@ function hn() {
|
|
|
1751
1741
|
]
|
|
1752
1742
|
}
|
|
1753
1743
|
),
|
|
1754
|
-
N && !_ && i && /* @__PURE__ */ o(
|
|
1744
|
+
N && !_ && i && /* @__PURE__ */ o(I, { variant: "outline", size: "xs", onClick: $s, children: [
|
|
1755
1745
|
/* @__PURE__ */ e(is, { className: "h-3.5 w-3.5" }),
|
|
1756
1746
|
"Close"
|
|
1757
1747
|
] }),
|
|
1758
|
-
!_ && i && /* @__PURE__ */ e("div", { className: "ml-2", children: /* @__PURE__ */ e(
|
|
1748
|
+
!_ && i && /* @__PURE__ */ e("div", { className: "ml-2", children: /* @__PURE__ */ e(tr, {}) }),
|
|
1759
1749
|
!_ && n && /* @__PURE__ */ e(yr, {}),
|
|
1760
1750
|
!_ && i && /* @__PURE__ */ o(Gt, { children: [
|
|
1761
1751
|
/* @__PURE__ */ e(Ft, { asChild: !0, children: /* @__PURE__ */ e(
|
|
@@ -1860,13 +1850,13 @@ function hn() {
|
|
|
1860
1850
|
{
|
|
1861
1851
|
onSelect: () => it(t.apiServiceUrl),
|
|
1862
1852
|
children: [
|
|
1863
|
-
/* @__PURE__ */ e(
|
|
1853
|
+
/* @__PURE__ */ e(pr, { className: "h-3.5 w-3.5" }),
|
|
1864
1854
|
"Invalidate token"
|
|
1865
1855
|
]
|
|
1866
1856
|
}
|
|
1867
1857
|
),
|
|
1868
1858
|
/* @__PURE__ */ o(z, { onSelect: l, children: [
|
|
1869
|
-
/* @__PURE__ */ e(
|
|
1859
|
+
/* @__PURE__ */ e(cr, { className: "h-3.5 w-3.5" }),
|
|
1870
1860
|
"Brand Studio"
|
|
1871
1861
|
] }),
|
|
1872
1862
|
N && /* @__PURE__ */ o(
|
|
@@ -1874,7 +1864,7 @@ function hn() {
|
|
|
1874
1864
|
{
|
|
1875
1865
|
onSelect: () => Da(!Na),
|
|
1876
1866
|
children: [
|
|
1877
|
-
/* @__PURE__ */ e(
|
|
1867
|
+
/* @__PURE__ */ e(lr, { className: "h-3.5 w-3.5" }),
|
|
1878
1868
|
Na ? "Hide dashboard JSON" : "Show dashboard JSON"
|
|
1879
1869
|
]
|
|
1880
1870
|
}
|
|
@@ -1885,7 +1875,7 @@ function hn() {
|
|
|
1885
1875
|
] }),
|
|
1886
1876
|
te && /* @__PURE__ */ o(Bt, { children: [
|
|
1887
1877
|
/* @__PURE__ */ o(jt, { children: [
|
|
1888
|
-
/* @__PURE__ */ e(
|
|
1878
|
+
/* @__PURE__ */ e(dr, { className: "h-3.5 w-3.5" }),
|
|
1889
1879
|
"Lenses"
|
|
1890
1880
|
] }),
|
|
1891
1881
|
/* @__PURE__ */ e(Vt, { className: "w-60", children: /* @__PURE__ */ e(Dr, {}) })
|
|
@@ -1900,7 +1890,7 @@ function hn() {
|
|
|
1900
1890
|
{
|
|
1901
1891
|
resource: Ea,
|
|
1902
1892
|
resourceType: Ke.DASHBOARD,
|
|
1903
|
-
onClose: () =>
|
|
1893
|
+
onClose: () => V(!1)
|
|
1904
1894
|
}
|
|
1905
1895
|
),
|
|
1906
1896
|
/* @__PURE__ */ e(
|
|
@@ -1911,7 +1901,7 @@ function hn() {
|
|
|
1911
1901
|
}
|
|
1912
1902
|
),
|
|
1913
1903
|
/* @__PURE__ */ e(
|
|
1914
|
-
|
|
1904
|
+
or,
|
|
1915
1905
|
{
|
|
1916
1906
|
open: Ue,
|
|
1917
1907
|
onOpenChange: v
|
|
@@ -1921,7 +1911,7 @@ function hn() {
|
|
|
1921
1911
|
i && /* @__PURE__ */ e(
|
|
1922
1912
|
Qt,
|
|
1923
1913
|
{
|
|
1924
|
-
open:
|
|
1914
|
+
open: K,
|
|
1925
1915
|
onOpenChange: Z
|
|
1926
1916
|
}
|
|
1927
1917
|
),
|
|
@@ -1971,7 +1961,7 @@ function hn() {
|
|
|
1971
1961
|
}
|
|
1972
1962
|
),
|
|
1973
1963
|
/* @__PURE__ */ e(
|
|
1974
|
-
|
|
1964
|
+
rr,
|
|
1975
1965
|
{
|
|
1976
1966
|
open: Us,
|
|
1977
1967
|
onOpenChange: (c) => {
|