react-semaphor 0.1.428 → 0.1.430
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/analytics-protocol/index.cjs +1 -1
- package/dist/analytics-protocol/index.js +72 -71
- package/dist/brand-studio/index.cjs +1 -1
- package/dist/brand-studio/index.js +5 -4
- package/dist/briefings/index.cjs +1 -1
- package/dist/briefings/index.js +1031 -622
- package/dist/chunks/analyze-result-contract-BswhsmWT.js +1 -0
- package/dist/chunks/{analyze-result-contract-DnfF8kBb.js → analyze-result-contract-CfOBEwaC.js} +681 -759
- package/dist/chunks/{code-editor-CojfM3qp.js → code-editor-C65eEYyU.js} +2980 -2960
- package/dist/chunks/code-editor-DOh3aYEh.js +138 -0
- package/dist/chunks/{comparison-document-migration-b6c3xiWh.js → comparison-document-migration-DbU_BTxR.js} +1 -1
- package/dist/chunks/{comparison-document-migration-BJH1idOd.js → comparison-document-migration-Dj6xZMCb.js} +2 -2
- package/dist/chunks/csv-utils-Co0WxHke.js +4 -0
- package/dist/chunks/csv-utils-suxSkJGj.js +376 -0
- package/dist/chunks/{dashboard-509sbC4_.js → dashboard-0Tpj3XFq.js} +49934 -47167
- package/dist/chunks/dashboard-CVDy3fbO.js +1402 -0
- package/dist/chunks/{dashboard-briefing-launcher-B-ZTWJwo.js → dashboard-briefing-launcher-DLQqwXMF.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-DIdYHNTq.js → dashboard-briefing-launcher-pkNPk_4j.js} +100 -99
- package/dist/chunks/{dashboard-controls-CbRzWo1N.js → dashboard-controls-CIN4biYx.js} +114 -113
- package/dist/chunks/{dashboard-controls-CWprw-Pb.js → dashboard-controls-DbW9Jt_P.js} +2 -2
- package/dist/chunks/dashboard-json-BDKT0Z-m.js +1 -0
- package/dist/chunks/{dashboard-json-jO4GQfZk.js → dashboard-json-DBfR770k.js} +18 -17
- package/dist/chunks/edit-dashboard-visual-BjAp_UpK.js +182 -0
- package/dist/chunks/{edit-dashboard-visual-KgQTjqWp.js → edit-dashboard-visual-qkvRHS8Q.js} +8721 -8481
- package/dist/chunks/{metric-comparison-CWweq9RG.js → metric-comparison-CPoDx56y.js} +1 -1
- package/dist/chunks/{metric-comparison-BKgkMy9r.js → metric-comparison-DVy3fll_.js} +1 -1
- package/dist/chunks/numeric-presentation-CGTcqocU.js +517 -0
- package/dist/chunks/numeric-presentation-Dlb-Dk4c.js +1 -0
- package/dist/chunks/report-preferences-dialog-Bx8uzG8K.js +690 -0
- package/dist/chunks/report-preferences-dialog-LCHeqh7t.js +1 -0
- package/dist/chunks/source-identity-5OPV4gvg.js +92 -0
- package/dist/chunks/source-identity-Cbo2LOHQ.js +1 -0
- package/dist/chunks/{update-policy-CY2k-pJP.js → update-policy-De2NswtM.js} +1 -1
- package/dist/chunks/{update-policy-BgONreNd.js → update-policy-DnF_74zC.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-BiMYdjZP.js → use-create-flow-overlay-state-C-CxrQ48.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-CGsLzp9A.js → use-create-flow-overlay-state-C-j8E5IZ.js} +97 -96
- package/dist/chunks/validators-B2vUAqTf.js +1 -0
- package/dist/chunks/{validators-Cz-XuORM.js → validators-Bce_J7Vd.js} +19 -13
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.cjs +3 -3
- package/dist/dashboard-authoring/index.js +20 -19
- package/dist/data-app-builder/index.cjs +1 -1
- package/dist/data-app-builder/index.js +50 -50
- package/dist/data-app-codegen/index.cjs +1 -1
- package/dist/data-app-codegen/index.js +2 -2
- package/dist/data-app-codegen-node/index.cjs +1 -1
- package/dist/data-app-codegen-node/index.js +3 -3
- package/dist/data-app-sdk/index.cjs +2 -2
- package/dist/data-app-sdk/index.js +27 -26
- package/dist/data-app-sdk-adapters/index.cjs +1 -1
- package/dist/data-app-sdk-adapters/index.js +25 -24
- package/dist/data-app-sdk-validation/index.cjs +1 -1
- package/dist/data-app-sdk-validation/index.js +57 -55
- package/dist/format-utils/index.cjs +2 -5
- package/dist/format-utils/index.js +136 -161
- package/dist/index.cjs +1 -1
- package/dist/index.js +158 -155
- package/dist/report-runtime-context/index.cjs +1 -0
- package/dist/report-runtime-context/index.js +394 -0
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +7 -6
- package/dist/types/analytics-protocol.d.ts +0 -4
- package/dist/types/briefings.d.ts +216 -19
- package/dist/types/dashboard-assistant.d.ts +0 -2
- package/dist/types/dashboard-authoring.d.ts +34 -9
- package/dist/types/dashboard.d.ts +93 -9
- package/dist/types/data-app-builder.d.ts +0 -1
- package/dist/types/data-app-codegen-node.d.ts +6 -28
- package/dist/types/data-app-codegen.d.ts +6 -28
- package/dist/types/data-app-sdk-adapters.d.ts +6 -28
- package/dist/types/data-app-sdk-validation.d.ts +6 -29
- package/dist/types/data-app-sdk.d.ts +6 -31
- package/dist/types/format-utils.d.ts +128 -4
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.js +10 -13
- package/dist/types/main.d.ts +249 -89
- package/dist/types/report-runtime-context.d.ts +99 -0
- package/dist/types/shared.d.ts +34 -9
- package/dist/types/surfboard.d.ts +119 -16
- package/dist/types/types.d.ts +156 -73
- package/dist/types/value-format-preferences.d.ts +126 -0
- package/dist/value-format-preferences/index.cjs +1 -0
- package/dist/value-format-preferences/index.js +635 -0
- package/package.json +11 -1
- package/dist/chunks/analyze-result-contract-ege_u6Nl.js +0 -1
- package/dist/chunks/calendar-preferences-dialog-BF9bNAF_.js +0 -457
- package/dist/chunks/calendar-preferences-dialog-_L9eBQfj.js +0 -1
- package/dist/chunks/code-editor-BoowcKU0.js +0 -138
- package/dist/chunks/dashboard-CMDXBLnG.js +0 -1402
- package/dist/chunks/dashboard-json-BEZrxx_k.js +0 -1
- package/dist/chunks/date-formatter-BTTYdAik.js +0 -1
- package/dist/chunks/date-formatter-D-89jTjG.js +0 -514
- package/dist/chunks/edit-dashboard-visual-D3uhqgm3.js +0 -182
- package/dist/chunks/validators-B4VMLX3_.js +0 -1
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n, Fragment as T } from "react/jsx-runtime";
|
|
2
|
-
import { u as D, B as U, aw as dt,
|
|
3
|
-
import {
|
|
4
|
-
import { c as Z, X as ca, C as
|
|
5
|
-
import "./analyze-result-contract-
|
|
6
|
-
import
|
|
7
|
-
import
|
|
2
|
+
import { u as D, B as U, aw as dt, A as Zt, O as za, Z as _a, c as ge, ax as lt, ay as qa, az as Ha, aA as ea, aB as be, aC as ct, aD as ta, L as Ge, aE as aa, aF as ja, E as Bt, Q as Ka, V as Qa, W as Wa, Y as Ja, o as Ya, aG as Xa } from "./code-editor-C65eEYyU.js";
|
|
3
|
+
import { bC as Za, bD as er, az as z, aH as ra, bE as tr, aZ as H, aI as sa, aJ as ar, aK as st, aL as nt, aF as rr, bF as fe, bG as Te, bH as sr, bI as $t, bJ as na, bK as oa, bL as nr, bM as ut, bN as or, bO as ir, bP as dr, bQ as lr, bR as cr, bS as ur, b8 as xe, bT as ve, aG as C, bU as mr, bV as ia, br as mt, bW as pr, bX as hr, bY as da, bZ as fr, b_ as la, b$ as O, c0 as gr, aj as br, c1 as xr, c2 as vr, c3 as yr, an as wr, av as Fe, aw as Nr, w as at, c4 as Dr, c5 as Cr, c6 as kr, c7 as Sr, ai as Ir, c8 as Mr, c9 as Er, I as zt, ca as Lr, cb as Ar, cc as Pr, cd as Ur, ce as Rr, cf as _t, cg as qt, ch as Ht, ci as Vr, cj as Fr, ck as Or, cl as Tr, b1 as jt, cm as Gr, cn as Br, co as $r, y as zr, cp as _r, aP as qr, aS as Hr, aT as jr, aU as Kr, aV as Qr, aW as Wr, aX as Jr, aY as Kt, g as ot } from "./dashboard-0Tpj3XFq.js";
|
|
4
|
+
import { c as Z, X as ca, C as Yr } from "./index-xHCrHprY.js";
|
|
5
|
+
import "./analyze-result-contract-CfOBEwaC.js";
|
|
6
|
+
import "../value-format-preferences/index.js";
|
|
7
|
+
import * as A from "react";
|
|
8
|
+
import { useState as N, useMemo as X, useEffect as Be, useRef as Qt, useLayoutEffect as Xr, useCallback as Zr } from "react";
|
|
8
9
|
import "./index-If0wlXGi.js";
|
|
9
|
-
import "./comparison-document-migration-
|
|
10
|
+
import "./comparison-document-migration-Dj6xZMCb.js";
|
|
10
11
|
import { createPortal as es } from "react-dom";
|
|
11
12
|
import "../briefings/index.js";
|
|
12
|
-
import { g as ts, u as as, A as rs, V as ss, c as ns, f as os, N as is, D as ds, U as ls } from "./dashboard-briefing-launcher-
|
|
13
|
+
import { g as ts, u as as, A as rs, V as ss, c as ns, f as os, N as is, D as ds, U as ls } from "./dashboard-briefing-launcher-pkNPk_4j.js";
|
|
13
14
|
import { S as cs, C as us } from "./search-DHZCro8B.js";
|
|
14
15
|
import { d as ua } from "./index-CnujJ3fa.js";
|
|
15
|
-
import {
|
|
16
|
+
import { R as ms } from "./report-preferences-dialog-Bx8uzG8K.js";
|
|
16
17
|
import { u as ps } from "./use-debounced-dirty-check-BwAbnX_5.js";
|
|
17
18
|
import { s as rt } from "./normalize-dashboard-for-dirty-check-5KpZN8xr.js";
|
|
18
19
|
import { S as Wt } from "./save-HCJjjzdX.js";
|
|
@@ -350,10 +351,10 @@ function Is({ includeLabel: t = !1 } = {}) {
|
|
|
350
351
|
] });
|
|
351
352
|
}
|
|
352
353
|
function Ms() {
|
|
353
|
-
const { displayPreferences: t, shouldShowElement: s } = nr(), { currentUser: r, userContext: a } = ut(), o =
|
|
354
|
+
const { displayPreferences: t, shouldShowElement: s } = nr(), { currentUser: r, userContext: a } = ut(), o = X(
|
|
354
355
|
() => or(r),
|
|
355
356
|
[r]
|
|
356
|
-
), l =
|
|
357
|
+
), l = X(() => (m) => o && o[m] !== void 0 && o[m] === !1 ? !1 : s(m), [o, s, t]), h = X(
|
|
357
358
|
() => {
|
|
358
359
|
var m, p, v, d, u;
|
|
359
360
|
return {
|
|
@@ -373,15 +374,15 @@ function Ms() {
|
|
|
373
374
|
currentUser: r
|
|
374
375
|
};
|
|
375
376
|
}
|
|
376
|
-
var pt = "Avatar", [Es] = qa(pt),
|
|
377
|
+
var pt = "Avatar", [Es] = qa(pt), Ls = [
|
|
377
378
|
0,
|
|
378
379
|
() => {
|
|
379
380
|
}
|
|
380
|
-
], [
|
|
381
|
+
], [As, ha] = Es(pt), ht = A.forwardRef(
|
|
381
382
|
(t, s) => {
|
|
382
|
-
const { __scopeAvatar: r, ...a } = t, [o, l] =
|
|
383
|
+
const { __scopeAvatar: r, ...a } = t, [o, l] = A.useState("idle"), [h, m] = Us();
|
|
383
384
|
return /* @__PURE__ */ e(
|
|
384
|
-
|
|
385
|
+
As,
|
|
385
386
|
{
|
|
386
387
|
scope: r,
|
|
387
388
|
imageLoadingStatus: o,
|
|
@@ -394,7 +395,7 @@ var pt = "Avatar", [Es] = qa(pt), As = [
|
|
|
394
395
|
}
|
|
395
396
|
);
|
|
396
397
|
ht.displayName = pt;
|
|
397
|
-
var fa = "AvatarImage", ft =
|
|
398
|
+
var fa = "AvatarImage", ft = A.forwardRef(
|
|
398
399
|
(t, s) => {
|
|
399
400
|
const { __scopeAvatar: r, src: a, onLoadingStatusChange: o, ...l } = t, h = ha(fa, r);
|
|
400
401
|
Rs(h.setImageCount);
|
|
@@ -405,7 +406,7 @@ var fa = "AvatarImage", ft = L.forwardRef(
|
|
|
405
406
|
setLoadingStatus: h.setImageLoadingStatus
|
|
406
407
|
}), p = Ha((d) => {
|
|
407
408
|
o == null || o(d);
|
|
408
|
-
}), v =
|
|
409
|
+
}), v = A.useRef(m);
|
|
409
410
|
return ea(() => {
|
|
410
411
|
const d = v.current;
|
|
411
412
|
v.current = m, m !== d && p(m);
|
|
@@ -413,10 +414,10 @@ var fa = "AvatarImage", ft = L.forwardRef(
|
|
|
413
414
|
}
|
|
414
415
|
);
|
|
415
416
|
ft.displayName = fa;
|
|
416
|
-
var ga = "AvatarFallback", gt =
|
|
417
|
+
var ga = "AvatarFallback", gt = A.forwardRef(
|
|
417
418
|
(t, s) => {
|
|
418
|
-
const { __scopeAvatar: r, delayMs: a, ...o } = t, l = ha(ga, r), [h, m] =
|
|
419
|
-
return
|
|
419
|
+
const { __scopeAvatar: r, delayMs: a, ...o } = t, l = ha(ga, r), [h, m] = A.useState(a === void 0);
|
|
420
|
+
return A.useEffect(() => {
|
|
420
421
|
if (a !== void 0) {
|
|
421
422
|
const p = window.setTimeout(() => m(!0), a);
|
|
422
423
|
return () => window.clearTimeout(p);
|
|
@@ -449,11 +450,11 @@ function Jt(t) {
|
|
|
449
450
|
return t.complete ? t.naturalWidth > 0 ? "loaded" : "error" : "loading";
|
|
450
451
|
}
|
|
451
452
|
function Us() {
|
|
452
|
-
let t =
|
|
453
|
+
let t = Ls;
|
|
453
454
|
{
|
|
454
|
-
t =
|
|
455
|
-
const [s] = t, r =
|
|
456
|
-
|
|
455
|
+
t = A.useState(0);
|
|
456
|
+
const [s] = t, r = A.useRef(!1);
|
|
457
|
+
A.useEffect(() => {
|
|
457
458
|
s > 1 && !r.current && (r.current = !0, console.warn(
|
|
458
459
|
"Avatar: Only one `Avatar.Image` component should be rendered per `Avatar.Root`, but multiple were detected. This will lead to unexpected behavior."
|
|
459
460
|
));
|
|
@@ -462,11 +463,11 @@ function Us() {
|
|
|
462
463
|
return t;
|
|
463
464
|
}
|
|
464
465
|
function Rs(t) {
|
|
465
|
-
|
|
466
|
+
A.useEffect(() => (t((s) => s + 1), () => {
|
|
466
467
|
t((s) => s - 1);
|
|
467
468
|
}), [t]);
|
|
468
469
|
}
|
|
469
|
-
const ba =
|
|
470
|
+
const ba = A.forwardRef(({ className: t, ...s }, r) => /* @__PURE__ */ e(
|
|
470
471
|
ht,
|
|
471
472
|
{
|
|
472
473
|
ref: r,
|
|
@@ -478,7 +479,7 @@ const ba = L.forwardRef(({ className: t, ...s }, r) => /* @__PURE__ */ e(
|
|
|
478
479
|
}
|
|
479
480
|
));
|
|
480
481
|
ba.displayName = ht.displayName;
|
|
481
|
-
const Vs =
|
|
482
|
+
const Vs = A.forwardRef(({ className: t, ...s }, r) => /* @__PURE__ */ e(
|
|
482
483
|
ft,
|
|
483
484
|
{
|
|
484
485
|
ref: r,
|
|
@@ -487,7 +488,7 @@ const Vs = L.forwardRef(({ className: t, ...s }, r) => /* @__PURE__ */ e(
|
|
|
487
488
|
}
|
|
488
489
|
));
|
|
489
490
|
Vs.displayName = ft.displayName;
|
|
490
|
-
const xa =
|
|
491
|
+
const xa = A.forwardRef(({ className: t, ...s }, r) => /* @__PURE__ */ e(
|
|
491
492
|
gt,
|
|
492
493
|
{
|
|
493
494
|
ref: r,
|
|
@@ -508,10 +509,10 @@ const Fs = async (t, s, r) => {
|
|
|
508
509
|
}, Ts = async (t, s, r) => {
|
|
509
510
|
const a = `${t}/management/v1/groups/${r}`;
|
|
510
511
|
await ct(a, s, "DELETE");
|
|
511
|
-
},
|
|
512
|
+
}, Gs = async (t, s, r, a) => {
|
|
512
513
|
const o = `${t}/management/v1/groups/${r}/members`;
|
|
513
514
|
return await ta(o, s, a);
|
|
514
|
-
},
|
|
515
|
+
}, Bs = async (t, s, r, a) => {
|
|
515
516
|
const o = `${t}/management/v1/groups/${r}/members`;
|
|
516
517
|
await ct(o, s, "DELETE", a);
|
|
517
518
|
};
|
|
@@ -566,7 +567,7 @@ function qs() {
|
|
|
566
567
|
mutationFn: ({
|
|
567
568
|
groupId: a,
|
|
568
569
|
data: o
|
|
569
|
-
}) =>
|
|
570
|
+
}) => Gs(s.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", a, o),
|
|
570
571
|
onSuccess: (a, o) => {
|
|
571
572
|
r.invalidateQueries({ queryKey: ["group", o.groupId] }), r.invalidateQueries({
|
|
572
573
|
queryKey: ["group-members", o.groupId]
|
|
@@ -585,7 +586,7 @@ function Hs() {
|
|
|
585
586
|
mutationFn: ({
|
|
586
587
|
groupId: a,
|
|
587
588
|
data: o
|
|
588
|
-
}) =>
|
|
589
|
+
}) => Bs(s.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", a, o),
|
|
589
590
|
onSuccess: (a, o) => {
|
|
590
591
|
r.invalidateQueries({ queryKey: ["group", o.groupId] }), r.invalidateQueries({
|
|
591
592
|
queryKey: ["group-members", o.groupId]
|
|
@@ -614,7 +615,7 @@ function Ks({
|
|
|
614
615
|
tenantId: o ? l : void 0,
|
|
615
616
|
includeMembers: !1
|
|
616
617
|
}), d = p ? va(p, "Unable to load groups.") : null, [u, b] = N({ kind: "list" }), [f, w] = N(null), y = _s();
|
|
617
|
-
|
|
618
|
+
Be(() => {
|
|
618
619
|
t || (b({ kind: "list" }), w(null));
|
|
619
620
|
}, [t]);
|
|
620
621
|
const c = u.kind === "members" && h.find((x) => x.id === u.groupId) || null, M = async () => {
|
|
@@ -656,7 +657,7 @@ function Ks({
|
|
|
656
657
|
}
|
|
657
658
|
),
|
|
658
659
|
u.kind === "members" && c && /* @__PURE__ */ e(
|
|
659
|
-
|
|
660
|
+
Ys,
|
|
660
661
|
{
|
|
661
662
|
group: c,
|
|
662
663
|
isTenantViewer: o,
|
|
@@ -671,7 +672,7 @@ function Ks({
|
|
|
671
672
|
c.id
|
|
672
673
|
),
|
|
673
674
|
u.kind === "create" && /* @__PURE__ */ e(
|
|
674
|
-
|
|
675
|
+
Xs,
|
|
675
676
|
{
|
|
676
677
|
isTenantUser: o,
|
|
677
678
|
tenantId: l,
|
|
@@ -707,7 +708,7 @@ function Ks({
|
|
|
707
708
|
disabled: y.isPending,
|
|
708
709
|
className: "inline-flex h-7 items-center gap-1.5 rounded-[5px] bg-rose-600 px-2.5 text-[12px] font-medium text-white hover:bg-rose-700 disabled:opacity-60",
|
|
709
710
|
children: [
|
|
710
|
-
y.isPending ? /* @__PURE__ */ e(
|
|
711
|
+
y.isPending ? /* @__PURE__ */ e(Ge, { className: "h-3 w-3 animate-spin" }) : /* @__PURE__ */ e(mt, { className: "h-3 w-3" }),
|
|
711
712
|
"Delete group"
|
|
712
713
|
]
|
|
713
714
|
}
|
|
@@ -726,7 +727,7 @@ function Qs({
|
|
|
726
727
|
onCreate: h,
|
|
727
728
|
onDeleteRequest: m
|
|
728
729
|
}) {
|
|
729
|
-
const [p, v] = N(""), d =
|
|
730
|
+
const [p, v] = N(""), d = X(
|
|
730
731
|
() => t.filter(
|
|
731
732
|
(u) => !p.trim() || u.name.toLowerCase().includes(p.toLowerCase()) || (u.description || "").toLowerCase().includes(p.toLowerCase())
|
|
732
733
|
),
|
|
@@ -887,7 +888,7 @@ function Js({ onCreate: t }) {
|
|
|
887
888
|
)
|
|
888
889
|
] });
|
|
889
890
|
}
|
|
890
|
-
function
|
|
891
|
+
function Ys({
|
|
891
892
|
group: t,
|
|
892
893
|
isTenantViewer: s,
|
|
893
894
|
canEdit: r,
|
|
@@ -908,10 +909,10 @@ function Xs({
|
|
|
908
909
|
tenantId: t.tenantId || void 0,
|
|
909
910
|
active: !0,
|
|
910
911
|
limit: 200
|
|
911
|
-
}), M =
|
|
912
|
+
}), M = X(
|
|
912
913
|
() => new Set(f.map((g) => g.userId)),
|
|
913
914
|
[f]
|
|
914
|
-
), S = qs(), P = Hs(), k = zs(), [x, _] = N(!1), [q, j] = N(t.name), [$e, K] = N(!1), [te, Q] = N(t.description || ""), [ae, re] = N(""), [ye, ee] = N(!1), ze =
|
|
915
|
+
), S = qs(), P = Hs(), k = zs(), [x, _] = N(!1), [q, j] = N(t.name), [$e, K] = N(!1), [te, Q] = N(t.description || ""), [ae, re] = N(""), [ye, ee] = N(!1), ze = X(() => {
|
|
915
916
|
const g = ae.trim().toLowerCase();
|
|
916
917
|
return c.filter((R) => !M.has(R.id)).filter(
|
|
917
918
|
(R) => !g || (R.name || "").toLowerCase().includes(g) || (R.email || "").toLowerCase().includes(g)
|
|
@@ -960,11 +961,11 @@ function Xs({
|
|
|
960
961
|
} catch {
|
|
961
962
|
}
|
|
962
963
|
};
|
|
963
|
-
let
|
|
964
|
+
let G = "";
|
|
964
965
|
try {
|
|
965
|
-
|
|
966
|
+
G = ua(new Date(t.createdAt), "MMM d, yyyy");
|
|
966
967
|
} catch {
|
|
967
|
-
|
|
968
|
+
G = "";
|
|
968
969
|
}
|
|
969
970
|
return /* @__PURE__ */ n("div", { className: "flex flex-1 flex-col overflow-hidden", children: [
|
|
970
971
|
/* @__PURE__ */ n("div", { className: "flex h-10 shrink-0 items-center gap-1.5 border-b border-border px-5", children: [
|
|
@@ -1067,7 +1068,7 @@ function Xs({
|
|
|
1067
1068
|
children: [
|
|
1068
1069
|
t.description ? /* @__PURE__ */ e("p", { className: "text-[12px] leading-[1.55] text-foreground/90", children: t.description }) : /* @__PURE__ */ e("p", { className: "text-[12px] leading-[1.55] text-muted-foreground", children: r ? "Add a description…" : "No description" }),
|
|
1069
1070
|
/* @__PURE__ */ n("p", { className: "mt-1 text-[10.5px] text-muted-foreground", children: [
|
|
1070
|
-
|
|
1071
|
+
G ? `Created ${G}` : "Recently created",
|
|
1071
1072
|
r ? " · You can edit this group" : ""
|
|
1072
1073
|
] })
|
|
1073
1074
|
]
|
|
@@ -1145,7 +1146,7 @@ function Xs({
|
|
|
1145
1146
|
) })
|
|
1146
1147
|
] });
|
|
1147
1148
|
}
|
|
1148
|
-
function
|
|
1149
|
+
function Xs({
|
|
1149
1150
|
isTenantUser: t,
|
|
1150
1151
|
tenantId: s,
|
|
1151
1152
|
onCancel: r,
|
|
@@ -1169,7 +1170,7 @@ function Ys({
|
|
|
1169
1170
|
};
|
|
1170
1171
|
return /* @__PURE__ */ n("div", { className: "flex flex-1 flex-col overflow-hidden", children: [
|
|
1171
1172
|
/* @__PURE__ */ n("div", { className: "flex-1 overflow-y-auto px-5 py-4", children: [
|
|
1172
|
-
/* @__PURE__ */ e(
|
|
1173
|
+
/* @__PURE__ */ e(Yt, { children: "Name" }),
|
|
1173
1174
|
/* @__PURE__ */ e(
|
|
1174
1175
|
"input",
|
|
1175
1176
|
{
|
|
@@ -1183,7 +1184,7 @@ function Ys({
|
|
|
1183
1184
|
),
|
|
1184
1185
|
/* @__PURE__ */ e("div", { className: "mt-1 text-[10.5px] text-muted-foreground", children: "3–50 characters." }),
|
|
1185
1186
|
/* @__PURE__ */ n("div", { className: "mt-4", children: [
|
|
1186
|
-
/* @__PURE__ */ e(
|
|
1187
|
+
/* @__PURE__ */ e(Yt, { children: "Description (optional)" }),
|
|
1187
1188
|
/* @__PURE__ */ e(
|
|
1188
1189
|
"textarea",
|
|
1189
1190
|
{
|
|
@@ -1221,7 +1222,7 @@ function Ys({
|
|
|
1221
1222
|
disabled: !u || d.isPending,
|
|
1222
1223
|
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 disabled:cursor-not-allowed disabled:opacity-60",
|
|
1223
1224
|
children: d.isPending ? /* @__PURE__ */ n(T, { children: [
|
|
1224
|
-
/* @__PURE__ */ e(
|
|
1225
|
+
/* @__PURE__ */ e(Ge, { className: "h-3 w-3 animate-spin" }),
|
|
1225
1226
|
"Creating…"
|
|
1226
1227
|
] }) : /* @__PURE__ */ n(T, { children: [
|
|
1227
1228
|
/* @__PURE__ */ e(H, { className: "h-3 w-3" }),
|
|
@@ -1243,7 +1244,7 @@ function Zs({
|
|
|
1243
1244
|
busy: m
|
|
1244
1245
|
}) {
|
|
1245
1246
|
const p = Qt(null), v = Qt(null), [d, u] = N(null);
|
|
1246
|
-
|
|
1247
|
+
Xr(() => {
|
|
1247
1248
|
if (!r) {
|
|
1248
1249
|
u(null);
|
|
1249
1250
|
return;
|
|
@@ -1262,7 +1263,7 @@ function Zs({
|
|
|
1262
1263
|
return f(), window.addEventListener("resize", f), window.addEventListener("scroll", f, !0), () => {
|
|
1263
1264
|
window.removeEventListener("resize", f), window.removeEventListener("scroll", f, !0);
|
|
1264
1265
|
};
|
|
1265
|
-
}, [r, o.length]),
|
|
1266
|
+
}, [r, o.length]), Be(() => {
|
|
1266
1267
|
if (!r) return;
|
|
1267
1268
|
const f = (w) => {
|
|
1268
1269
|
var c, M;
|
|
@@ -1359,7 +1360,7 @@ function ya({
|
|
|
1359
1360
|
)
|
|
1360
1361
|
] });
|
|
1361
1362
|
}
|
|
1362
|
-
function
|
|
1363
|
+
function Yt({ children: t }) {
|
|
1363
1364
|
return /* @__PURE__ */ e("label", { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: t });
|
|
1364
1365
|
}
|
|
1365
1366
|
function wa({ name: t }) {
|
|
@@ -1496,13 +1497,13 @@ function an({
|
|
|
1496
1497
|
] }) : null
|
|
1497
1498
|
] });
|
|
1498
1499
|
}
|
|
1499
|
-
function
|
|
1500
|
+
function Xt(t, s) {
|
|
1500
1501
|
return {
|
|
1501
1502
|
dashboard: ot(t),
|
|
1502
1503
|
semanticExecutionPayload: ot(s)
|
|
1503
1504
|
};
|
|
1504
1505
|
}
|
|
1505
|
-
function
|
|
1506
|
+
function kn() {
|
|
1506
1507
|
var Pt, Ut, Rt, Vt, Ft, Ot, Tt;
|
|
1507
1508
|
ts(), as();
|
|
1508
1509
|
const {
|
|
@@ -1516,14 +1517,14 @@ function Cn() {
|
|
|
1516
1517
|
(i) => i.id === M
|
|
1517
1518
|
), P = ja(S), k = P ? (Ut = S == null ? void 0 : S.document) == null ? void 0 : Ut.page : void 0, x = D(
|
|
1518
1519
|
(i) => i.isDashboardEditing
|
|
1519
|
-
), { setDashboardTitle: _ } = D((i) => i.actions), [q, j] = N(!1), [$e, K] = N(!1), [te, Q] = N(!1), [ae, re] = N(!1), [ye, ee] = N(null), [ze, se] = N(!1), [we, Ne] = N(!1), [_e,
|
|
1520
|
-
|
|
1520
|
+
), { setDashboardTitle: _ } = D((i) => i.actions), [q, j] = N(!1), [$e, K] = N(!1), [te, Q] = N(!1), [ae, re] = N(!1), [ye, ee] = N(null), [ze, se] = N(!1), [we, Ne] = N(!1), [_e, G] = N(!1), [g, R] = N(null), [ne, W] = N([]), [oe, J] = N(!1), [De, bt] = N(!1), xt = D((i) => i.filterValues), E = D((i) => i.isVisualEditing);
|
|
1521
|
+
Bt((i) => i.card);
|
|
1521
1522
|
const ie = Fe(
|
|
1522
1523
|
(i) => i.selectedDashboard
|
|
1523
1524
|
), Ce = Fe(
|
|
1524
1525
|
(i) => i.initialDashboard
|
|
1525
1526
|
);
|
|
1526
|
-
Fe((i) => i.selectedVisual), D((i) => i.selectedFrameId),
|
|
1527
|
+
Fe((i) => i.selectedVisual), D((i) => i.selectedFrameId), Bt((i) => i.frame);
|
|
1527
1528
|
const ke = ie ? (Vt = ie == null ? void 0 : ie.permissions) == null ? void 0 : Vt.canEdit : (Rt = Ce == null ? void 0 : Ce.permissions) == null ? void 0 : Rt.canEdit, vt = D(
|
|
1528
1529
|
(i) => i.showDashboardJSON
|
|
1529
1530
|
), qe = D((i) => i.onSaveFunction), {
|
|
@@ -1531,14 +1532,14 @@ function Cn() {
|
|
|
1531
1532
|
setShowDashboardJSON: wt
|
|
1532
1533
|
} = D((i) => i.actions), { setInitialDashboard: Nt, clearSelectedDashboard: He } = Fe(
|
|
1533
1534
|
(i) => i.actions
|
|
1534
|
-
), de = !!s.orgUserId || !!(s.tenantId && s.endUserId && s.endUserEmail), { resources: Se } = Nr(at.DASHBOARD), { data: je } = Dr(), Na = ((Ft = je == null ? void 0 : je.preference) == null ? void 0 : Ft.defaultDashboardId) || null, { mutate: Da, isPending: Ca } = Cr(), { currentUser: ka } = ut(), Sa = kr(ka),
|
|
1535
|
+
), de = !!s.orgUserId || !!(s.tenantId && s.endUserId && s.endUserEmail), { resources: Se } = Nr(at.DASHBOARD), { data: je } = Dr(), Na = ((Ft = je == null ? void 0 : je.preference) == null ? void 0 : Ft.defaultDashboardId) || null, { mutate: Da, isPending: Ca } = Cr(), { currentUser: ka } = ut(), Sa = kr(ka), B = ie || Ce, Ie = Sr({
|
|
1535
1536
|
config: s.config,
|
|
1536
1537
|
canNavigateDashboardHub: de,
|
|
1537
|
-
canShareDashboard: ((Ot =
|
|
1538
|
+
canShareDashboard: ((Ot = B == null ? void 0 : B.permissions) == null ? void 0 : Ot.canShare) === !0,
|
|
1538
1539
|
canManageGroups: Sa
|
|
1539
|
-
}), Dt =
|
|
1540
|
-
id:
|
|
1541
|
-
title: (c == null ? void 0 : c.title) ||
|
|
1540
|
+
}), Dt = B ? {
|
|
1541
|
+
id: B.id,
|
|
1542
|
+
title: (c == null ? void 0 : c.title) || B.title || "Dashboard"
|
|
1542
1543
|
} : null, { handleAddNewFrame: Ia } = Ir(), [Ke, Qe] = N(!1), [Ma, le] = N(!1), [We, Me] = N("close"), ce = Mr(at.DASHBOARD), [V, Ee] = N(null), Ea = async (i, I) => {
|
|
1543
1544
|
if (!(c != null && c.id)) {
|
|
1544
1545
|
console.log("No dashboard ID found");
|
|
@@ -1563,7 +1564,7 @@ function Cn() {
|
|
|
1563
1564
|
}
|
|
1564
1565
|
);
|
|
1565
1566
|
};
|
|
1566
|
-
|
|
1567
|
+
Be(() => {
|
|
1567
1568
|
if (Se && Se.length > 0) {
|
|
1568
1569
|
const i = c == null ? void 0 : c.id;
|
|
1569
1570
|
if (i) {
|
|
@@ -1574,7 +1575,7 @@ function Cn() {
|
|
|
1574
1575
|
}
|
|
1575
1576
|
}
|
|
1576
1577
|
}, [Se, c == null ? void 0 : c.id, Nt]);
|
|
1577
|
-
const ue = s.orgUserId || s.tenantId, Je =
|
|
1578
|
+
const ue = s.orgUserId || s.tenantId, Je = X(
|
|
1578
1579
|
() => rn({
|
|
1579
1580
|
accessToken: t == null ? void 0 : t.accessToken,
|
|
1580
1581
|
dashboardId: (c == null ? void 0 : c.id) || r || s.dashboard_id,
|
|
@@ -1596,18 +1597,18 @@ function Cn() {
|
|
|
1596
1597
|
]
|
|
1597
1598
|
), Ct = x && !E && ue && ke, { setDashboard: kt } = D((i) => i.actions), St = D(
|
|
1598
1599
|
(i) => i.semanticExecutionPayload
|
|
1599
|
-
),
|
|
1600
|
+
), La = () => {
|
|
1600
1601
|
yt(!0);
|
|
1601
|
-
},
|
|
1602
|
+
}, Ye = () => {
|
|
1602
1603
|
yt(!1), wt(!1), Ee(null);
|
|
1603
1604
|
};
|
|
1604
|
-
|
|
1605
|
+
Be(() => {
|
|
1605
1606
|
if (!x) {
|
|
1606
1607
|
V && Ee(null);
|
|
1607
1608
|
return;
|
|
1608
1609
|
}
|
|
1609
1610
|
V || !c || v || Ee(
|
|
1610
|
-
|
|
1611
|
+
Xt(
|
|
1611
1612
|
c,
|
|
1612
1613
|
St
|
|
1613
1614
|
)
|
|
@@ -1619,16 +1620,16 @@ function Cn() {
|
|
|
1619
1620
|
v,
|
|
1620
1621
|
St
|
|
1621
1622
|
]);
|
|
1622
|
-
const
|
|
1623
|
+
const Le = (V == null ? void 0 : V.dashboard) ?? null, { isDirty: It, isDirtyPending: Aa, resetDirty: Ae } = ps(
|
|
1623
1624
|
c,
|
|
1624
|
-
|
|
1625
|
+
Le,
|
|
1625
1626
|
300,
|
|
1626
1627
|
1e3,
|
|
1627
1628
|
rt
|
|
1628
|
-
), Mt = Zr(() =>
|
|
1629
|
-
Mt() ? (Me("close"), le(!0)) : (
|
|
1629
|
+
), Mt = Zr(() => Le ? rt(c) !== rt(Le) : !1, [c, Le]), Et = It || Aa, Pe = Ke || ce.isPending, Pa = () => {
|
|
1630
|
+
Mt() ? (Me("close"), le(!0)) : (Ye(), Ae());
|
|
1630
1631
|
}, Ua = async () => {
|
|
1631
|
-
await
|
|
1632
|
+
await Xe({
|
|
1632
1633
|
closeAfterSave: !0,
|
|
1633
1634
|
navigateHomeAfterSave: We === "home"
|
|
1634
1635
|
});
|
|
@@ -1636,11 +1637,11 @@ function Cn() {
|
|
|
1636
1637
|
const i = We === "home" && !!de;
|
|
1637
1638
|
V && kt(V.dashboard, {
|
|
1638
1639
|
semanticExecutionPayload: V.semanticExecutionPayload
|
|
1639
|
-
}),
|
|
1640
|
+
}), Ye(), i && He(), Me("close"), le(!1), Ae();
|
|
1640
1641
|
}, Va = () => {
|
|
1641
1642
|
V && (kt(V.dashboard, {
|
|
1642
1643
|
semanticExecutionPayload: V.semanticExecutionPayload
|
|
1643
|
-
}),
|
|
1644
|
+
}), Ae());
|
|
1644
1645
|
}, Fa = () => {
|
|
1645
1646
|
if (de) {
|
|
1646
1647
|
if (x && Mt()) {
|
|
@@ -1650,14 +1651,14 @@ function Cn() {
|
|
|
1650
1651
|
He();
|
|
1651
1652
|
}
|
|
1652
1653
|
};
|
|
1653
|
-
async function
|
|
1654
|
+
async function Xe(i) {
|
|
1654
1655
|
const I = D.getState().dashboard;
|
|
1655
1656
|
if (!I)
|
|
1656
1657
|
return;
|
|
1657
1658
|
const F = (i == null ? void 0 : i.closeAfterSave) ?? oe, Ze = (i == null ? void 0 : i.navigateHomeAfterSave) ?? !1;
|
|
1658
1659
|
J(F), F && le(!1);
|
|
1659
1660
|
const et = ot(I);
|
|
1660
|
-
|
|
1661
|
+
G(!0), R(null), W([]), Qe(!0);
|
|
1661
1662
|
const $a = {
|
|
1662
1663
|
template: I
|
|
1663
1664
|
};
|
|
@@ -1667,27 +1668,27 @@ function Cn() {
|
|
|
1667
1668
|
data: $a
|
|
1668
1669
|
},
|
|
1669
1670
|
{
|
|
1670
|
-
onSuccess: (
|
|
1671
|
-
var Ue, Re,
|
|
1672
|
-
const
|
|
1673
|
-
if (!I.id &&
|
|
1674
|
-
const tt =
|
|
1671
|
+
onSuccess: (L) => {
|
|
1672
|
+
var Ue, Re, Gt;
|
|
1673
|
+
const Y = (L == null ? void 0 : L.id) || ((Ue = L == null ? void 0 : L.dashboard) == null ? void 0 : Ue.id) || ((Re = L == null ? void 0 : L.resource) == null ? void 0 : Re.id) || ((Gt = L == null ? void 0 : L.template) == null ? void 0 : Gt.id) || null;
|
|
1674
|
+
if (!I.id && Y) {
|
|
1675
|
+
const tt = Xa.getState(), Ve = tt.pendingDashboardDraftMigration;
|
|
1675
1676
|
(Ve == null ? void 0 : Ve.scopeKey) === b ? tt.actions.setPendingDashboardDraftMigrationExpectedDashboardId(
|
|
1676
|
-
|
|
1677
|
+
Y
|
|
1677
1678
|
) : Ve && tt.actions.clearPendingDashboardDraftMigration();
|
|
1678
1679
|
}
|
|
1679
1680
|
Qe(!1), C.success("Dashboard saved!"), Ee(
|
|
1680
|
-
|
|
1681
|
+
Xt(
|
|
1681
1682
|
et,
|
|
1682
1683
|
D.getState().semanticExecutionPayload
|
|
1683
1684
|
)
|
|
1684
|
-
),
|
|
1685
|
+
), G(!1), J(!1), F && (Ye(), Ae(), Ze && de && He()), Me("close");
|
|
1685
1686
|
},
|
|
1686
|
-
onError: (
|
|
1687
|
+
onError: (L) => {
|
|
1687
1688
|
Qe(!1), R("Failed to save dashboard. Please try again.");
|
|
1688
|
-
const
|
|
1689
|
-
|
|
1690
|
-
) ? (
|
|
1689
|
+
const Y = L.details, Ue = Array.isArray(
|
|
1690
|
+
Y == null ? void 0 : Y.errors
|
|
1691
|
+
) ? (Y.errors || []).filter(
|
|
1691
1692
|
(Re) => typeof Re == "string"
|
|
1692
1693
|
) : [];
|
|
1693
1694
|
W(
|
|
@@ -1726,17 +1727,17 @@ function Cn() {
|
|
|
1726
1727
|
t == null ? void 0 : t.accessToken
|
|
1727
1728
|
), C.success("Lens saved"), qe == null || qe(i), j(!1);
|
|
1728
1729
|
}
|
|
1729
|
-
const
|
|
1730
|
+
const Lt = (y == null ? void 0 : y.name) || c.title;
|
|
1730
1731
|
ce.isPending && console.log("Title during update:", {
|
|
1731
|
-
title:
|
|
1732
|
+
title: Lt,
|
|
1732
1733
|
dashboardStateTitle: c.title,
|
|
1733
1734
|
dashboardId: c == null ? void 0 : c.id,
|
|
1734
1735
|
currentLensName: y == null ? void 0 : y.name
|
|
1735
1736
|
});
|
|
1736
|
-
const Ta = de && !!(t != null && t.accessToken) && !!(s != null && s.apiServiceUrl),
|
|
1737
|
+
const Ta = de && !!(t != null && t.accessToken) && !!(s != null && s.apiServiceUrl), Ga = p && Ie.showDashboardHub, $ = (c == null ? void 0 : c.id) || null, At = Er(
|
|
1737
1738
|
(Tt = s.config) == null ? void 0 : Tt.showBriefings,
|
|
1738
1739
|
a
|
|
1739
|
-
), me = !!$ && Na === $,
|
|
1740
|
+
), me = !!$ && Na === $, Ba = () => {
|
|
1740
1741
|
$ && Da({
|
|
1741
1742
|
dashboardId: me ? null : $
|
|
1742
1743
|
});
|
|
@@ -1748,7 +1749,7 @@ function Cn() {
|
|
|
1748
1749
|
role: "dashboard-controls",
|
|
1749
1750
|
children: [
|
|
1750
1751
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
1751
|
-
|
|
1752
|
+
Ga && !E && /* @__PURE__ */ e(
|
|
1752
1753
|
zt,
|
|
1753
1754
|
{
|
|
1754
1755
|
"aria-label": "Dashboard Hub",
|
|
@@ -1769,9 +1770,9 @@ function Cn() {
|
|
|
1769
1770
|
}
|
|
1770
1771
|
) : /* @__PURE__ */ n(T, { children: [
|
|
1771
1772
|
/* @__PURE__ */ e(
|
|
1772
|
-
|
|
1773
|
+
Lr,
|
|
1773
1774
|
{
|
|
1774
|
-
value:
|
|
1775
|
+
value: Lt || "Untitled Dashboard",
|
|
1775
1776
|
onSave: (i) => {
|
|
1776
1777
|
console.log("EditableText onSave called:", {
|
|
1777
1778
|
newTitle: i,
|
|
@@ -1781,7 +1782,7 @@ function Cn() {
|
|
|
1781
1782
|
const I = (c == null ? void 0 : c.title) || "";
|
|
1782
1783
|
_(i), Ea(i, I);
|
|
1783
1784
|
},
|
|
1784
|
-
isEditable:
|
|
1785
|
+
isEditable: Ar({
|
|
1785
1786
|
isDashboardEditing: x,
|
|
1786
1787
|
canEditDashboard: ke === !0,
|
|
1787
1788
|
hasCurrentLens: !!y
|
|
@@ -1806,7 +1807,7 @@ function Cn() {
|
|
|
1806
1807
|
{
|
|
1807
1808
|
variant: "ghost",
|
|
1808
1809
|
size: "xs",
|
|
1809
|
-
onClick:
|
|
1810
|
+
onClick: Ba,
|
|
1810
1811
|
disabled: Ca || !(t != null && t.accessToken) || !(s != null && s.apiServiceUrl),
|
|
1811
1812
|
className: "w-7 px-0 text-muted-foreground hover:text-foreground",
|
|
1812
1813
|
"aria-label": me ? "Clear default dashboard" : "Set as default dashboard",
|
|
@@ -1872,7 +1873,7 @@ function Cn() {
|
|
|
1872
1873
|
className: "h-full w-7 rounded-none border-0 border-l border-border/60 px-0 shadow-none hover:bg-accent",
|
|
1873
1874
|
"aria-label": "Open visual options",
|
|
1874
1875
|
disabled: !x,
|
|
1875
|
-
children: /* @__PURE__ */ e(
|
|
1876
|
+
children: /* @__PURE__ */ e(Yr, { className: "h-3.5 w-3.5" })
|
|
1876
1877
|
}
|
|
1877
1878
|
) }),
|
|
1878
1879
|
/* @__PURE__ */ e(
|
|
@@ -1895,7 +1896,7 @@ function Cn() {
|
|
|
1895
1896
|
}
|
|
1896
1897
|
)
|
|
1897
1898
|
] }),
|
|
1898
|
-
!E && !x && ke && p && /* @__PURE__ */ n(U, { size: "xs", onClick:
|
|
1899
|
+
!E && !x && ke && p && /* @__PURE__ */ n(U, { size: "xs", onClick: La, children: [
|
|
1899
1900
|
/* @__PURE__ */ e(Vr, { className: "h-3.5 w-3.5" }),
|
|
1900
1901
|
"Edit"
|
|
1901
1902
|
] }),
|
|
@@ -1918,9 +1919,9 @@ function Cn() {
|
|
|
1918
1919
|
size: "xs",
|
|
1919
1920
|
className: ge(!Et && "opacity-60"),
|
|
1920
1921
|
disabled: Pe || !Et,
|
|
1921
|
-
onClick: () =>
|
|
1922
|
+
onClick: () => Xe(),
|
|
1922
1923
|
children: [
|
|
1923
|
-
Pe ? /* @__PURE__ */ e(
|
|
1924
|
+
Pe ? /* @__PURE__ */ e(Ge, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ e(Wt, { className: "h-3.5 w-3.5" }),
|
|
1924
1925
|
Pe ? "Saving..." : "Save"
|
|
1925
1926
|
]
|
|
1926
1927
|
}
|
|
@@ -1966,8 +1967,8 @@ function Cn() {
|
|
|
1966
1967
|
/* @__PURE__ */ e(
|
|
1967
1968
|
an,
|
|
1968
1969
|
{
|
|
1969
|
-
scheduleReportVisible: !!(
|
|
1970
|
-
analyticalBriefingVisible: !!(
|
|
1970
|
+
scheduleReportVisible: !!(At && o.surfaceVisible && $ && !x),
|
|
1971
|
+
analyticalBriefingVisible: !!(At && o.surfaceVisible && $ && !x),
|
|
1971
1972
|
onScheduleReport: () => ee("scheduled_report"),
|
|
1972
1973
|
onCreateAnalyticalBriefing: () => ee("analytical_briefing")
|
|
1973
1974
|
}
|
|
@@ -1990,7 +1991,7 @@ function Cn() {
|
|
|
1990
1991
|
/* @__PURE__ */ e(fe, { children: "Preferences" }),
|
|
1991
1992
|
/* @__PURE__ */ n(O, { onClick: () => re(!0), children: [
|
|
1992
1993
|
/* @__PURE__ */ e(la, { className: "h-3.5 w-3.5" }),
|
|
1993
|
-
"
|
|
1994
|
+
"Report preferences"
|
|
1994
1995
|
] }),
|
|
1995
1996
|
l && p && /* @__PURE__ */ n(T, { children: [
|
|
1996
1997
|
/* @__PURE__ */ e(Te, {}),
|
|
@@ -2041,7 +2042,7 @@ function Cn() {
|
|
|
2041
2042
|
/* @__PURE__ */ n(
|
|
2042
2043
|
O,
|
|
2043
2044
|
{
|
|
2044
|
-
onSelect: () =>
|
|
2045
|
+
onSelect: () => Ya(s.apiServiceUrl),
|
|
2045
2046
|
children: [
|
|
2046
2047
|
/* @__PURE__ */ e(vs, { className: "h-3.5 w-3.5" }),
|
|
2047
2048
|
"Invalidate token"
|
|
@@ -2066,8 +2067,8 @@ function Cn() {
|
|
|
2066
2067
|
/* @__PURE__ */ e(H, { className: "h-3.5 w-3.5" }),
|
|
2067
2068
|
"Add lens"
|
|
2068
2069
|
] }),
|
|
2069
|
-
ue && /* @__PURE__ */ n(
|
|
2070
|
-
/* @__PURE__ */ n(
|
|
2070
|
+
ue && /* @__PURE__ */ n(Gr, { children: [
|
|
2071
|
+
/* @__PURE__ */ n(Br, { children: [
|
|
2071
2072
|
/* @__PURE__ */ e(gs, { className: "h-3.5 w-3.5" }),
|
|
2072
2073
|
"Lenses"
|
|
2073
2074
|
] }),
|
|
@@ -2104,7 +2105,7 @@ function Cn() {
|
|
|
2104
2105
|
ds,
|
|
2105
2106
|
{
|
|
2106
2107
|
dashboardId: $,
|
|
2107
|
-
dashboardTitle: (c == null ? void 0 : c.title) || (
|
|
2108
|
+
dashboardTitle: (c == null ? void 0 : c.title) || (B == null ? void 0 : B.title),
|
|
2108
2109
|
open: !0,
|
|
2109
2110
|
onOpenChange: (i) => {
|
|
2110
2111
|
i || ee(null);
|
|
@@ -2126,7 +2127,7 @@ function Cn() {
|
|
|
2126
2127
|
{
|
|
2127
2128
|
open: _e,
|
|
2128
2129
|
onOpenChange: (i) => {
|
|
2129
|
-
!i && Ke && !g || (
|
|
2130
|
+
!i && Ke && !g || (G(i), i || (R(null), W([]), J(!1)));
|
|
2130
2131
|
},
|
|
2131
2132
|
children: /* @__PURE__ */ n(Hr, { className: "max-w-sm", children: [
|
|
2132
2133
|
/* @__PURE__ */ n(jr, { children: [
|
|
@@ -2142,7 +2143,7 @@ function Cn() {
|
|
|
2142
2143
|
Jr,
|
|
2143
2144
|
{
|
|
2144
2145
|
onClick: () => {
|
|
2145
|
-
|
|
2146
|
+
G(!1), R(null), W([]), J(!1);
|
|
2146
2147
|
},
|
|
2147
2148
|
className: "m-0",
|
|
2148
2149
|
children: "Close"
|
|
@@ -2151,7 +2152,7 @@ function Cn() {
|
|
|
2151
2152
|
/* @__PURE__ */ e(
|
|
2152
2153
|
Kt,
|
|
2153
2154
|
{
|
|
2154
|
-
onClick: () =>
|
|
2155
|
+
onClick: () => Xe({
|
|
2155
2156
|
closeAfterSave: oe,
|
|
2156
2157
|
navigateHomeAfterSave: We === "home"
|
|
2157
2158
|
}),
|
|
@@ -2160,7 +2161,7 @@ function Cn() {
|
|
|
2160
2161
|
}
|
|
2161
2162
|
)
|
|
2162
2163
|
] }) : /* @__PURE__ */ n(Kt, { disabled: !0, className: "m-0 cursor-default", children: [
|
|
2163
|
-
/* @__PURE__ */ e(
|
|
2164
|
+
/* @__PURE__ */ e(Ge, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
2164
2165
|
"Saving..."
|
|
2165
2166
|
] }) })
|
|
2166
2167
|
] })
|
|
@@ -2201,5 +2202,5 @@ function rn({
|
|
|
2201
2202
|
return m.searchParams.set("pdfMode", "document"), m.searchParams.set("pageSize", a || "letter"), m.searchParams.set("orientation", o || "portrait"), m.searchParams.set("url", h.toString()), m.toString();
|
|
2202
2203
|
}
|
|
2203
2204
|
export {
|
|
2204
|
-
|
|
2205
|
+
kn as default
|
|
2205
2206
|
};
|