react-semaphor 0.1.571 → 0.1.572
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/assistant-context/index.js +1 -1
- package/dist/briefings/index.js +1 -1
- package/dist/chunks/{assistant-chat-SkCraw2C.js → assistant-chat-DF1-q82n.js} +182 -182
- package/dist/chunks/{bookmark-impact-DCYD-6Fr.js → bookmark-impact-fdj8fY9i.js} +2 -2
- package/dist/chunks/{bookmark-state-CflS88gq.js → bookmark-state-BEl_G9vr.js} +54 -54
- package/dist/chunks/{card-filter-builder-D-aSYpyr.js → card-filter-builder-BFT21WI-.js} +3 -3
- package/dist/chunks/{dashboard-briefing-launcher-_g1m2tJ3.js → dashboard-briefing-launcher-DDXzTYuA.js} +873 -906
- package/dist/chunks/{dashboard-controls-CY0gbcCt.js → dashboard-controls-BwKQEoGp.js} +103 -103
- package/dist/chunks/{dashboard-B_w_ekUz.js → dashboard-jUhZ7T4f.js} +1 -1
- package/dist/chunks/{dashboard-json-DsM79yem.js → dashboard-json-B3fR1_Oc.js} +1 -1
- package/dist/chunks/{dates-RSEzJ9N7.js → dates-DKkSDWHe.js} +5 -5
- package/dist/chunks/{edit-dashboard-visual-cX0FM-4i.js → edit-dashboard-visual-DGZABdS-.js} +8 -8
- package/dist/chunks/{filter-reach-copy-thzt25Rc.js → filter-reach-copy-CWHV7GSb.js} +9 -9
- package/dist/chunks/{index-y3HUzRNk.js → index-CeeY4wjE.js} +2 -2
- package/dist/chunks/{report-preferences-dialog-B_GXs91t.js → report-preferences-dialog-R3EGbxfu.js} +725 -801
- package/dist/chunks/{resolve-dashboard-input-context-Lkbwycwe.js → resolve-dashboard-input-context-CBQF3obr.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-DC_TEd6y.js → saved-dashboard-context-_-7LKeK1.js} +3 -3
- package/dist/chunks/{semaphor-ready-indicator-CBQamwQY.js → semaphor-ready-indicator-CEbA4CFb.js} +19843 -19731
- package/dist/chunks/{shelf-drop-preview-context-Bkjf0XXw.js → shelf-drop-preview-context-UqUUVSJq.js} +259 -259
- package/dist/chunks/{stored-dashboard-C0hekXiI.js → stored-dashboard-Bk3iCXtp.js} +131 -131
- package/dist/chunks/{variable-draft-DvglU8yj.js → variable-draft-ggS3X7FG.js} +2 -2
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +11 -11
- package/dist/index.js +147 -147
- package/dist/surfboard/index.js +2 -2
- package/dist/types/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { jsx as e, jsxs as o, Fragment as R } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { c as ye, B as V, a5 as
|
|
2
|
+
import { bI as Fr, u as k, bJ as $r, bK as Gr, bL as ot, bM as Vr, bN as Hr, bO as jr, bP as qr, bQ as zr, bR as Kr, b1 as Y, a_ as xe, bS as ve, bC as C, bT as Qr, bD as $t, bE as Gt, bG as tt, bH as rt, bU as Vt, bV as it, bw as Wr, bW as ne, bX as Yr, bY as Jr, bZ as Ht, b_ as Xr, b$ as jt, c0 as Zr, bF as ea, c1 as ta, c2 as A, c3 as ra, c4 as aa, c5 as na, aL as sa, c6 as oa, bo as ia, c7 as da, bp as ca, i as la, a3 as ua, af as Et, h as Be, o as ma, j as Xe, G as ha, c8 as pa, c9 as fa, a1 as ga, ca as ba, s as xa, cb as va, v as ya, cc as wa, cd as Na, ce as Sa, cf as At, cg as It, ch as Lt, ci as Da, bq as ka, cj as Ca, T as Ea, ck as Aa, cl as Ia, cm as ae, cn as he, co as La, cp as Ma, cq as Oa, cr as Mt, n as Pa, cs as _a, ct as Ta, cu as Ra, cv as Ua, cw as Ba, cx as Fa, cy as $a, cz as Ga, cA as Ot, I as Va } from "./semaphor-ready-indicator-CEbA4CFb.js";
|
|
3
|
+
import { c as ye, B as V, a5 as Ha, a6 as ja, a7 as at, L as $e, X as qt, s as qa, y as za, z as Ka, A as Qa, D as Wa, E as Ya, e as Ja, f as Xa, h as Za, F as en, t as tn, u as rn, v as an, I as nn, w as sn, j as zt, g as Pt } from "./style-sheet-parts-C7qGZuH1.js";
|
|
4
4
|
import * as E from "react";
|
|
5
|
-
import Kt, { useMemo as H, useState as N, useEffect as ge, useRef as _t, useLayoutEffect as
|
|
5
|
+
import Kt, { useMemo as H, useState as N, useEffect as ge, useRef as _t, useLayoutEffect as on } from "react";
|
|
6
6
|
import { c as be } from "./pickers-DkqmtnTL.js";
|
|
7
7
|
import "./validators-B8fpdinG.js";
|
|
8
8
|
import "./matrix-operation-contract-DCVinw1o.js";
|
|
9
9
|
import "./analytics-base-schemas-BaIQrEzX.js";
|
|
10
10
|
import "../value-format-preferences/index.js";
|
|
11
|
-
import { u as
|
|
12
|
-
import { I as
|
|
13
|
-
import {
|
|
11
|
+
import { u as dn, c as cn, k as ln, D as un, A as mn, a as hn, h as pn, l as fn, V as gn, b as bn, d as xn, S as vn, j as yn, i as wn, m as Nn, U as Sn } from "./dashboard-briefing-launcher-DDXzTYuA.js";
|
|
12
|
+
import { I as Dn } from "./card-filter-builder-BFT21WI-.js";
|
|
13
|
+
import { h as kn, R as Cn } from "./report-preferences-dialog-R3EGbxfu.js";
|
|
14
14
|
import { createPortal as En } from "react-dom";
|
|
15
|
-
import { f2 as we, f3 as dt, f4 as Qt, o as An } from "./resolve-dashboard-input-context-
|
|
15
|
+
import { f2 as we, f3 as dt, f4 as Qt, o as An } from "./resolve-dashboard-input-context-CBQF3obr.js";
|
|
16
16
|
import { aH as Wt } from "./temporal-input-presentation-CqbJjIuu.js";
|
|
17
|
-
import { k as nt } from "./stored-dashboard-
|
|
17
|
+
import { k as nt } from "./stored-dashboard-Bk3iCXtp.js";
|
|
18
18
|
import { r as In } from "./export-file-format-C-tJsxsf.js";
|
|
19
|
-
import { u as
|
|
20
|
-
import { z as Yt } from "./bookmark-state-
|
|
21
|
-
import { d as On, a as Pn } from "./bookmark-impact-
|
|
19
|
+
import { u as Ln, s as Mn } from "./normalize-dashboard-for-dirty-check-XKgH3GFX.js";
|
|
20
|
+
import { z as Yt } from "./bookmark-state-BEl_G9vr.js";
|
|
21
|
+
import { d as On, a as Pn } from "./bookmark-impact-fdj8fY9i.js";
|
|
22
22
|
import { S as _n } from "./save-D985VvYp.js";
|
|
23
23
|
import { P as Tn } from "./paintbrush-aR17Z3C9.js";
|
|
24
24
|
import { P as Rn } from "./palette-a5FCZKFI.js";
|
|
@@ -322,7 +322,7 @@ var Qn = [
|
|
|
322
322
|
"svg",
|
|
323
323
|
"ul"
|
|
324
324
|
], ct = Qn.reduce((t, n) => {
|
|
325
|
-
const a =
|
|
325
|
+
const a = Ha(`Primitive.${n}`), r = E.forwardRef((s, c) => {
|
|
326
326
|
const { asChild: u, ...m } = s, p = u ? a : n;
|
|
327
327
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ e(p, { ...m, ref: c });
|
|
328
328
|
});
|
|
@@ -357,7 +357,7 @@ Zt.displayName = lt;
|
|
|
357
357
|
var er = "AvatarImage", tr = E.forwardRef(
|
|
358
358
|
(t, n) => {
|
|
359
359
|
const { __scopeAvatar: a, src: r, onLoadingStatusChange: s = () => {
|
|
360
|
-
}, ...c } = t, u = Xt(er, a), m = Zn(r, c), p =
|
|
360
|
+
}, ...c } = t, u = Xt(er, a), m = Zn(r, c), p = ja((y) => {
|
|
361
361
|
s(y), u.onImageLoadingStatusChange(y);
|
|
362
362
|
});
|
|
363
363
|
return at(() => {
|
|
@@ -844,13 +844,13 @@ function gs({
|
|
|
844
844
|
}), S = H(
|
|
845
845
|
() => new Set(l.map((v) => v.userId)),
|
|
846
846
|
[l]
|
|
847
|
-
), O = cs(), b = ls(), F = is(), [P, $] = N(!1), [
|
|
847
|
+
), O = cs(), b = ls(), F = is(), [P, $] = N(!1), [L, D] = N(t.name), [Ne, J] = N(!1), [X, Z] = N(t.description || ""), [ee, Se] = N(""), [De, ke] = N(!1), Ce = H(() => {
|
|
848
848
|
const v = ee.trim().toLowerCase();
|
|
849
849
|
return w.filter((B) => !S.has(B.id)).filter(
|
|
850
850
|
(B) => !v || (B.name || "").toLowerCase().includes(v) || (B.email || "").toLowerCase().includes(v)
|
|
851
851
|
).slice(0, 50);
|
|
852
852
|
}, [w, S, ee]), se = async () => {
|
|
853
|
-
const v =
|
|
853
|
+
const v = L.trim();
|
|
854
854
|
if ($(!1), v.length >= 3 && v !== t.name)
|
|
855
855
|
try {
|
|
856
856
|
await F.mutateAsync({
|
|
@@ -915,7 +915,7 @@ function gs({
|
|
|
915
915
|
"input",
|
|
916
916
|
{
|
|
917
917
|
autoFocus: !0,
|
|
918
|
-
value:
|
|
918
|
+
value: L,
|
|
919
919
|
onChange: (v) => D(v.target.value),
|
|
920
920
|
onBlur: se,
|
|
921
921
|
onKeyDown: (v) => {
|
|
@@ -1176,7 +1176,7 @@ function xs({
|
|
|
1176
1176
|
busy: m
|
|
1177
1177
|
}) {
|
|
1178
1178
|
const p = _t(null), y = _t(null), [g, i] = N(null);
|
|
1179
|
-
|
|
1179
|
+
on(() => {
|
|
1180
1180
|
if (!a) {
|
|
1181
1181
|
i(null);
|
|
1182
1182
|
return;
|
|
@@ -1320,15 +1320,15 @@ function ys({
|
|
|
1320
1320
|
/* @__PURE__ */ e(rt, { className: "text-[13px] leading-5", children: "Applies to every CSV downloaded or delivered from this dashboard. People can still change it for a single download." })
|
|
1321
1321
|
] }),
|
|
1322
1322
|
/* @__PURE__ */ o("div", { className: "space-y-2", children: [
|
|
1323
|
-
/* @__PURE__ */ e(
|
|
1323
|
+
/* @__PURE__ */ e(qa, { htmlFor: "dashboard-csv-encoding", className: vs, children: "CSV encoding" }),
|
|
1324
1324
|
/* @__PURE__ */ o(
|
|
1325
|
-
|
|
1325
|
+
za,
|
|
1326
1326
|
{
|
|
1327
1327
|
value: a,
|
|
1328
1328
|
onValueChange: (s) => r({ csvEncoding: s }),
|
|
1329
1329
|
children: [
|
|
1330
|
-
/* @__PURE__ */ e(
|
|
1331
|
-
/* @__PURE__ */ e(
|
|
1330
|
+
/* @__PURE__ */ e(Ka, { id: "dashboard-csv-encoding", size: "sm", children: /* @__PURE__ */ e(Qa, {}) }),
|
|
1331
|
+
/* @__PURE__ */ e(Wa, { children: ta.map((s) => /* @__PURE__ */ e(Ya, { value: s.value, children: s.label }, s.value)) })
|
|
1332
1332
|
]
|
|
1333
1333
|
}
|
|
1334
1334
|
)
|
|
@@ -1484,8 +1484,8 @@ function Cs({
|
|
|
1484
1484
|
enabled: a
|
|
1485
1485
|
}) {
|
|
1486
1486
|
const r = ks({ saved: t, draft: n, enabled: a });
|
|
1487
|
-
return r.length ? /* @__PURE__ */ o(
|
|
1488
|
-
/* @__PURE__ */ e(
|
|
1487
|
+
return r.length ? /* @__PURE__ */ o(Ja, { children: [
|
|
1488
|
+
/* @__PURE__ */ e(Xa, { asChild: !0, children: /* @__PURE__ */ o(
|
|
1489
1489
|
V,
|
|
1490
1490
|
{
|
|
1491
1491
|
variant: "ghost",
|
|
@@ -1497,7 +1497,7 @@ function Cs({
|
|
|
1497
1497
|
]
|
|
1498
1498
|
}
|
|
1499
1499
|
) }),
|
|
1500
|
-
/* @__PURE__ */ o(
|
|
1500
|
+
/* @__PURE__ */ o(Za, { align: "end", className: "w-[320px] p-3 text-[12px]", children: [
|
|
1501
1501
|
/* @__PURE__ */ e("p", { className: "text-foreground", children: "This edit removes parts of the dashboard that viewers saved. Their views still open, with a note about what no longer applies." }),
|
|
1502
1502
|
/* @__PURE__ */ e(
|
|
1503
1503
|
"ul",
|
|
@@ -1545,14 +1545,14 @@ function Xs() {
|
|
|
1545
1545
|
isInspectionSurface: f
|
|
1546
1546
|
} = ia(), { openBrandStudioPreview: l } = da(), { permissions: x } = qn(), h = ca(), { isLoading: w } = la(), S = k((d) => d.theme), O = k((d) => d.isDownloadingPdf), b = k((d) => d.dashboard), F = k((d) => d.selectedSheetId), P = (St = b == null ? void 0 : b.sheets) == null ? void 0 : St.find(
|
|
1547
1547
|
(d) => d.id === F
|
|
1548
|
-
), $ = An(P),
|
|
1548
|
+
), $ = An(P), L = $ ? (Dt = P == null ? void 0 : P.document) == null ? void 0 : Dt.page : void 0, D = k(
|
|
1549
1549
|
(d) => d.isDashboardEditing
|
|
1550
1550
|
), { setDashboardTitle: Ne } = k((d) => d.actions), [J, X] = N(!1), [Z, ee] = N(!1), [Se, De] = N(!1), [ke, Ce] = N(!1), [se, te] = N(null), [Ee, Ae] = N(null), { registerBriefingViewer: j } = ua();
|
|
1551
1551
|
ge(
|
|
1552
1552
|
() => j((d) => Ae(d)),
|
|
1553
1553
|
[j]
|
|
1554
1554
|
);
|
|
1555
|
-
const [v, B] = N(!1), [Ie, q] = N(!1), [z, K] = N(null), [oe,
|
|
1555
|
+
const [v, B] = N(!1), [Ie, q] = N(!1), [z, K] = N(null), [oe, Le] = N([]), [ut, Me] = N(!1), [mr, mt] = N(!1), U = k((d) => d.isVisualEditing);
|
|
1556
1556
|
Et((d) => d.card);
|
|
1557
1557
|
const hr = Be(
|
|
1558
1558
|
(d) => d.selectedDashboard
|
|
@@ -1568,7 +1568,7 @@ function Xs() {
|
|
|
1568
1568
|
(d) => d.actions
|
|
1569
1569
|
), { setInitialDashboard: gt, clearSelectedDashboard: Ge } = Be(
|
|
1570
1570
|
(d) => d.actions
|
|
1571
|
-
), ie = !!n.orgUserId || !!(n.tenantId && n.endUserId && n.endUserEmail), { resources: Oe } = ma(Xe.DASHBOARD), I =
|
|
1571
|
+
), ie = !!n.orgUserId || !!(n.tenantId && n.endUserId && n.endUserEmail), { resources: Oe } = ma(Xe.DASHBOARD), I = ha(), { currentUser: br } = ot(), xr = pa(br), G = hr || pr, Q = fa({
|
|
1572
1572
|
config: n.config,
|
|
1573
1573
|
canNavigateDashboardHub: ie,
|
|
1574
1574
|
canShareDashboard: ((kt = G == null ? void 0 : G.permissions) == null ? void 0 : kt.canShare) === !0,
|
|
@@ -1576,7 +1576,7 @@ function Xs() {
|
|
|
1576
1576
|
}), bt = G ? {
|
|
1577
1577
|
id: G.id,
|
|
1578
1578
|
title: (b == null ? void 0 : b.title) || G.title || "Dashboard"
|
|
1579
|
-
} : null, { handleAddNewFrame: vr } =
|
|
1579
|
+
} : null, { handleAddNewFrame: vr } = ga(), [Ve, He] = N(!1), [yr, de] = N(!1), [je, Pe] = N("close"), ce = ba(Xe.DASHBOARD), [M, le] = N(null), wr = async (d, T) => {
|
|
1580
1580
|
if (!i) {
|
|
1581
1581
|
if (!(b != null && b.id)) {
|
|
1582
1582
|
console.log("No dashboard ID found");
|
|
@@ -1625,8 +1625,8 @@ function Xs() {
|
|
|
1625
1625
|
accessToken: t == null ? void 0 : t.accessToken,
|
|
1626
1626
|
dashboardId: (b == null ? void 0 : b.id) || a || n.dashboard_id,
|
|
1627
1627
|
selectedSheetId: $ ? F : void 0,
|
|
1628
|
-
pageSize:
|
|
1629
|
-
orientation:
|
|
1628
|
+
pageSize: L == null ? void 0 : L.size,
|
|
1629
|
+
orientation: L == null ? void 0 : L.orientation,
|
|
1630
1630
|
theme: S
|
|
1631
1631
|
}),
|
|
1632
1632
|
[
|
|
@@ -1634,8 +1634,8 @@ function Xs() {
|
|
|
1634
1634
|
a,
|
|
1635
1635
|
b == null ? void 0 : b.id,
|
|
1636
1636
|
$,
|
|
1637
|
-
|
|
1638
|
-
|
|
1637
|
+
L == null ? void 0 : L.orientation,
|
|
1638
|
+
L == null ? void 0 : L.size,
|
|
1639
1639
|
F,
|
|
1640
1640
|
S,
|
|
1641
1641
|
n.dashboard_id
|
|
@@ -1649,36 +1649,36 @@ function Xs() {
|
|
|
1649
1649
|
};
|
|
1650
1650
|
ge(() => {
|
|
1651
1651
|
if (!D) {
|
|
1652
|
-
|
|
1652
|
+
M && le(null);
|
|
1653
1653
|
return;
|
|
1654
1654
|
}
|
|
1655
|
-
if (
|
|
1655
|
+
if (M || !b || w)
|
|
1656
1656
|
return;
|
|
1657
|
-
const d =
|
|
1657
|
+
const d = xa(k.getState());
|
|
1658
1658
|
le(
|
|
1659
1659
|
Ft(d.dashboard, d.semanticExecutionPayload)
|
|
1660
1660
|
);
|
|
1661
1661
|
}, [
|
|
1662
1662
|
b,
|
|
1663
|
-
|
|
1663
|
+
M,
|
|
1664
1664
|
D,
|
|
1665
1665
|
w,
|
|
1666
1666
|
Sr
|
|
1667
1667
|
]);
|
|
1668
|
-
const Qe = (
|
|
1668
|
+
const Qe = (M == null ? void 0 : M.dashboard) ?? null, { isDirty: We, isDirtyPending: kr, resetDirty: ue } = Ln(
|
|
1669
1669
|
b,
|
|
1670
1670
|
Qe,
|
|
1671
1671
|
300,
|
|
1672
1672
|
1e3,
|
|
1673
|
-
|
|
1674
|
-
), xt =
|
|
1673
|
+
Mn
|
|
1674
|
+
), xt = dn(
|
|
1675
1675
|
Qe,
|
|
1676
1676
|
i,
|
|
1677
1677
|
p
|
|
1678
1678
|
), vt = We || kr, Te = Ve || ce.isPending, Cr = () => {
|
|
1679
1679
|
if (i) {
|
|
1680
|
-
|
|
1681
|
-
semanticExecutionPayload:
|
|
1680
|
+
M && Ke(M.dashboard, {
|
|
1681
|
+
semanticExecutionPayload: M.semanticExecutionPayload
|
|
1682
1682
|
}), _e(), ue();
|
|
1683
1683
|
return;
|
|
1684
1684
|
}
|
|
@@ -1690,14 +1690,14 @@ function Xs() {
|
|
|
1690
1690
|
});
|
|
1691
1691
|
}, Ar = () => {
|
|
1692
1692
|
const d = je === "home" && !!ie;
|
|
1693
|
-
|
|
1694
|
-
semanticExecutionPayload:
|
|
1693
|
+
M && Ke(M.dashboard, {
|
|
1694
|
+
semanticExecutionPayload: M.semanticExecutionPayload
|
|
1695
1695
|
}), _e(), d && Ge(), Pe("close"), de(!1), ue();
|
|
1696
1696
|
}, Ir = () => {
|
|
1697
|
-
|
|
1698
|
-
semanticExecutionPayload:
|
|
1697
|
+
M && (Ke(M.dashboard, {
|
|
1698
|
+
semanticExecutionPayload: M.semanticExecutionPayload
|
|
1699
1699
|
}), ue());
|
|
1700
|
-
},
|
|
1700
|
+
}, Lr = () => {
|
|
1701
1701
|
if (ie) {
|
|
1702
1702
|
if (D && xt()) {
|
|
1703
1703
|
Pe("home"), de(!0);
|
|
@@ -1713,9 +1713,9 @@ function Xs() {
|
|
|
1713
1713
|
if (!T)
|
|
1714
1714
|
return;
|
|
1715
1715
|
const _ = (d == null ? void 0 : d.closeAfterSave) ?? ut, re = (d == null ? void 0 : d.navigateHomeAfterSave) ?? !1;
|
|
1716
|
-
|
|
1716
|
+
Me(_), _ && de(!1);
|
|
1717
1717
|
const _r = nt(T);
|
|
1718
|
-
q(!0), K(null),
|
|
1718
|
+
q(!0), K(null), Le([]), He(!0);
|
|
1719
1719
|
const Tr = {
|
|
1720
1720
|
template: T
|
|
1721
1721
|
};
|
|
@@ -1731,7 +1731,7 @@ function Xs() {
|
|
|
1731
1731
|
_r,
|
|
1732
1732
|
k.getState().semanticExecutionPayload
|
|
1733
1733
|
)
|
|
1734
|
-
), q(!1),
|
|
1734
|
+
), q(!1), Me(!1), _ && (_e(), ue(), re && ie && Ge()), Pe("close");
|
|
1735
1735
|
},
|
|
1736
1736
|
onError: (Rr) => {
|
|
1737
1737
|
He(!1), K("Failed to save dashboard. Please try again.");
|
|
@@ -1740,7 +1740,7 @@ function Xs() {
|
|
|
1740
1740
|
) ? (Ue.errors || []).filter(
|
|
1741
1741
|
(Br) => typeof Br == "string"
|
|
1742
1742
|
) : [];
|
|
1743
|
-
|
|
1743
|
+
Le(
|
|
1744
1744
|
ws({
|
|
1745
1745
|
errors: Ur,
|
|
1746
1746
|
dashboard: T || void 0
|
|
@@ -1756,14 +1756,14 @@ function Xs() {
|
|
|
1756
1756
|
dashboardStateTitle: b.title,
|
|
1757
1757
|
dashboardId: b == null ? void 0 : b.id
|
|
1758
1758
|
});
|
|
1759
|
-
const
|
|
1759
|
+
const Mr = ie && !!(t != null && t.accessToken) && !!(n != null && n.apiServiceUrl), Or = !i && Q.showDashboardHub && Mr, Pr = !i && h && Q.showDashboardHub, W = (b == null ? void 0 : b.id) || null, wt = va(
|
|
1760
1760
|
(Ct = n.config) == null ? void 0 : Ct.showBriefings,
|
|
1761
1761
|
r
|
|
1762
|
-
), Re =
|
|
1762
|
+
), Re = cn(W), Je = ln();
|
|
1763
1763
|
if (!h && !U)
|
|
1764
1764
|
return null;
|
|
1765
1765
|
const me = !U && h && !i, Nt = D && me;
|
|
1766
|
-
return /* @__PURE__ */ e(
|
|
1766
|
+
return /* @__PURE__ */ e(ya, { width: I.width, hasOverflowMenu: me, children: /* @__PURE__ */ o(
|
|
1767
1767
|
"div",
|
|
1768
1768
|
{
|
|
1769
1769
|
ref: I.measure,
|
|
@@ -1772,14 +1772,14 @@ function Xs() {
|
|
|
1772
1772
|
children: [
|
|
1773
1773
|
/* @__PURE__ */ o("div", { className: "flex min-w-[80px] flex-1 items-center gap-2", children: [
|
|
1774
1774
|
Pr && !U && /* @__PURE__ */ e(
|
|
1775
|
-
|
|
1775
|
+
Dn,
|
|
1776
1776
|
{
|
|
1777
1777
|
"aria-label": "Dashboard Hub",
|
|
1778
1778
|
tooltip: "Dashboard Hub",
|
|
1779
|
-
onClick:
|
|
1779
|
+
onClick: Lr,
|
|
1780
1780
|
className: "h-7 w-7 px-0",
|
|
1781
1781
|
buttonProps: { size: "xs" },
|
|
1782
|
-
children: /* @__PURE__ */ e(
|
|
1782
|
+
children: /* @__PURE__ */ e(wa, { className: "h-3.5 w-3.5" })
|
|
1783
1783
|
}
|
|
1784
1784
|
),
|
|
1785
1785
|
!U && h && (w ? /* @__PURE__ */ e(
|
|
@@ -1792,7 +1792,7 @@ function Xs() {
|
|
|
1792
1792
|
}
|
|
1793
1793
|
) : /* @__PURE__ */ o("div", { className: "flex min-w-0 items-center gap-1", children: [
|
|
1794
1794
|
/* @__PURE__ */ e(
|
|
1795
|
-
|
|
1795
|
+
Na,
|
|
1796
1796
|
{
|
|
1797
1797
|
value: yt || "Untitled Dashboard",
|
|
1798
1798
|
onSave: (d) => {
|
|
@@ -1804,7 +1804,7 @@ function Xs() {
|
|
|
1804
1804
|
const T = (b == null ? void 0 : b.title) || "";
|
|
1805
1805
|
Ne(d), wr(d, T);
|
|
1806
1806
|
},
|
|
1807
|
-
isEditable:
|
|
1807
|
+
isEditable: Sa({
|
|
1808
1808
|
isDashboardEditing: D,
|
|
1809
1809
|
canEditDashboard: p === !0 && !i
|
|
1810
1810
|
}),
|
|
@@ -1814,19 +1814,19 @@ function Xs() {
|
|
|
1814
1814
|
isPending: ce.isPending
|
|
1815
1815
|
}
|
|
1816
1816
|
),
|
|
1817
|
-
!i && W && /* @__PURE__ */ e(
|
|
1817
|
+
!i && W && /* @__PURE__ */ e(un, { dashboardId: W }),
|
|
1818
1818
|
s ? /* @__PURE__ */ e("div", { className: "flex min-w-[1.25rem] shrink-[2]", children: s }) : null
|
|
1819
1819
|
] }))
|
|
1820
1820
|
] }),
|
|
1821
1821
|
/* @__PURE__ */ o("div", { className: "flex min-w-0 items-center gap-1.5", children: [
|
|
1822
1822
|
/* @__PURE__ */ o("div", { className: "-m-1 flex min-w-0 items-center gap-1.5 overflow-x-auto p-1 [scrollbar-width:thin] [&>*]:shrink-0", children: [
|
|
1823
1823
|
U && /* @__PURE__ */ o(R, { children: [
|
|
1824
|
-
/* @__PURE__ */ e(
|
|
1825
|
-
/* @__PURE__ */ e(
|
|
1824
|
+
/* @__PURE__ */ e(mn, {}),
|
|
1825
|
+
/* @__PURE__ */ e(hn, {})
|
|
1826
1826
|
] }),
|
|
1827
|
-
h && !i && /* @__PURE__ */ e(
|
|
1828
|
-
!U && D && !i && x.canUseFilters && h && /* @__PURE__ */ e(
|
|
1829
|
-
D && !i && h && /* @__PURE__ */ e(
|
|
1827
|
+
h && !i && /* @__PURE__ */ e(kn, {}),
|
|
1828
|
+
!U && D && !i && x.canUseFilters && h && /* @__PURE__ */ e(pn, {}),
|
|
1829
|
+
D && !i && h && /* @__PURE__ */ e(fn, {}),
|
|
1830
1830
|
D && !U && !i && h && !$ && /* @__PURE__ */ o("div", { className: "inline-flex h-7 items-stretch overflow-hidden rounded-control border border-input bg-background", children: [
|
|
1831
1831
|
/* @__PURE__ */ o(
|
|
1832
1832
|
V,
|
|
@@ -1856,11 +1856,11 @@ function Xs() {
|
|
|
1856
1856
|
className: "h-full w-7 rounded-none border-0 border-l border-border/60 px-0 shadow-none hover:bg-accent",
|
|
1857
1857
|
"aria-label": "Open visual options",
|
|
1858
1858
|
disabled: !D,
|
|
1859
|
-
children: /* @__PURE__ */ e(
|
|
1859
|
+
children: /* @__PURE__ */ e(en, { className: "h-3.5 w-3.5" })
|
|
1860
1860
|
}
|
|
1861
1861
|
) }),
|
|
1862
1862
|
/* @__PURE__ */ e(
|
|
1863
|
-
|
|
1863
|
+
Lt,
|
|
1864
1864
|
{
|
|
1865
1865
|
align: "end",
|
|
1866
1866
|
className: "z-[60] w-48 rounded-control border-border/60 p-1 shadow-sm",
|
|
@@ -1872,14 +1872,14 @@ function Xs() {
|
|
|
1872
1872
|
)
|
|
1873
1873
|
] }),
|
|
1874
1874
|
/* @__PURE__ */ e(
|
|
1875
|
-
|
|
1875
|
+
gn,
|
|
1876
1876
|
{
|
|
1877
1877
|
open: mr,
|
|
1878
1878
|
onOpenChange: mt
|
|
1879
1879
|
}
|
|
1880
1880
|
)
|
|
1881
1881
|
] }),
|
|
1882
|
-
!i && h && /* @__PURE__ */ e(
|
|
1882
|
+
!i && h && /* @__PURE__ */ e(bn, {}),
|
|
1883
1883
|
!U && !D && (p || i) && (!f || !y || p !== void 0) && h && /* @__PURE__ */ o("div", { className: "inline-flex items-center gap-1", children: [
|
|
1884
1884
|
/* @__PURE__ */ o(
|
|
1885
1885
|
V,
|
|
@@ -1890,22 +1890,22 @@ function Xs() {
|
|
|
1890
1890
|
title: I.width === "sm" ? i ? "Inspect" : "Edit" : void 0,
|
|
1891
1891
|
className: I.width === "sm" ? "w-7 px-0" : void 0,
|
|
1892
1892
|
children: [
|
|
1893
|
-
/* @__PURE__ */ e(
|
|
1893
|
+
/* @__PURE__ */ e(Da, { className: "h-3.5 w-3.5" }),
|
|
1894
1894
|
I.width !== "sm" && (i ? "Inspect" : "Edit")
|
|
1895
1895
|
]
|
|
1896
1896
|
}
|
|
1897
1897
|
),
|
|
1898
|
-
g ? /* @__PURE__ */ e(
|
|
1899
|
-
/* @__PURE__ */ e(
|
|
1898
|
+
g ? /* @__PURE__ */ e(tn, { children: /* @__PURE__ */ o(rn, { children: [
|
|
1899
|
+
/* @__PURE__ */ e(an, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1900
1900
|
"button",
|
|
1901
1901
|
{
|
|
1902
1902
|
type: "button",
|
|
1903
1903
|
"aria-label": g,
|
|
1904
1904
|
className: "inline-flex size-6 items-center justify-center rounded-control text-muted-foreground outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
1905
|
-
children: /* @__PURE__ */ e(
|
|
1905
|
+
children: /* @__PURE__ */ e(nn, { "aria-hidden": "true", className: "size-3.5" })
|
|
1906
1906
|
}
|
|
1907
1907
|
) }),
|
|
1908
|
-
/* @__PURE__ */ e(
|
|
1908
|
+
/* @__PURE__ */ e(sn, { children: /* @__PURE__ */ e("p", { children: g }) })
|
|
1909
1909
|
] }) }) : null
|
|
1910
1910
|
] }),
|
|
1911
1911
|
ze && h && We && /* @__PURE__ */ e(
|
|
@@ -1927,7 +1927,7 @@ function Xs() {
|
|
|
1927
1927
|
title: I.width === "sm" ? "Undo" : void 0,
|
|
1928
1928
|
className: I.width === "sm" ? "w-7 px-0" : void 0,
|
|
1929
1929
|
children: [
|
|
1930
|
-
/* @__PURE__ */ e(
|
|
1930
|
+
/* @__PURE__ */ e(ka, { className: "h-3.5 w-3.5" }),
|
|
1931
1931
|
I.width !== "sm" && "Undo"
|
|
1932
1932
|
]
|
|
1933
1933
|
}
|
|
@@ -1955,19 +1955,19 @@ function Xs() {
|
|
|
1955
1955
|
title: I.width === "sm" ? "Close" : void 0,
|
|
1956
1956
|
className: I.width === "sm" ? "w-7 px-0" : void 0,
|
|
1957
1957
|
children: [
|
|
1958
|
-
/* @__PURE__ */ e(
|
|
1958
|
+
/* @__PURE__ */ e(Ca, { className: "h-3.5 w-3.5" }),
|
|
1959
1959
|
I.width !== "sm" && "Close"
|
|
1960
1960
|
]
|
|
1961
1961
|
}
|
|
1962
1962
|
)
|
|
1963
1963
|
] }),
|
|
1964
1964
|
!U && h && /* @__PURE__ */ o(R, { children: [
|
|
1965
|
-
/* @__PURE__ */ e(
|
|
1966
|
-
m && p === !0 && !i && /* @__PURE__ */ e(
|
|
1965
|
+
/* @__PURE__ */ e(xn, {}),
|
|
1966
|
+
m && p === !0 && !i && /* @__PURE__ */ e(vn, {})
|
|
1967
1967
|
] }),
|
|
1968
1968
|
!U && u && I.width === "lg" && /* @__PURE__ */ e(jn, {}),
|
|
1969
|
-
me && /* @__PURE__ */ e(
|
|
1970
|
-
me && Nt && /* @__PURE__ */ e(
|
|
1969
|
+
me && /* @__PURE__ */ e(Ea, {}),
|
|
1970
|
+
me && Nt && /* @__PURE__ */ e(yn, {}),
|
|
1971
1971
|
me && /* @__PURE__ */ o(At, { children: [
|
|
1972
1972
|
/* @__PURE__ */ e(It, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1973
1973
|
V,
|
|
@@ -1976,11 +1976,11 @@ function Xs() {
|
|
|
1976
1976
|
size: "xs",
|
|
1977
1977
|
className: "w-7 px-0",
|
|
1978
1978
|
"aria-label": "More dashboard options",
|
|
1979
|
-
children: /* @__PURE__ */ e(
|
|
1979
|
+
children: /* @__PURE__ */ e(Aa, { className: "h-3.5 w-3.5" })
|
|
1980
1980
|
}
|
|
1981
1981
|
) }),
|
|
1982
1982
|
/* @__PURE__ */ o(
|
|
1983
|
-
|
|
1983
|
+
Lt,
|
|
1984
1984
|
{
|
|
1985
1985
|
align: "end",
|
|
1986
1986
|
className: "w-56 rounded-control border border-border/60 p-1 shadow-sm",
|
|
@@ -1993,7 +1993,7 @@ function Xs() {
|
|
|
1993
1993
|
disabled: Re.disabled,
|
|
1994
1994
|
onSelect: Re.toggle,
|
|
1995
1995
|
children: [
|
|
1996
|
-
/* @__PURE__ */ e(
|
|
1996
|
+
/* @__PURE__ */ e(Ia, { className: "h-3.5 w-3.5" }),
|
|
1997
1997
|
/* @__PURE__ */ e("span", { className: "flex-1", children: "Default dashboard" }),
|
|
1998
1998
|
Re.isDefault && /* @__PURE__ */ e(zt, { className: "h-3.5 w-3.5" })
|
|
1999
1999
|
]
|
|
@@ -2008,7 +2008,7 @@ function Xs() {
|
|
|
2008
2008
|
disabled: O,
|
|
2009
2009
|
onSelect: () => B(!0),
|
|
2010
2010
|
children: [
|
|
2011
|
-
/* @__PURE__ */ e(
|
|
2011
|
+
/* @__PURE__ */ e(La, { className: "h-3.5 w-3.5" }),
|
|
2012
2012
|
"Export"
|
|
2013
2013
|
]
|
|
2014
2014
|
}
|
|
@@ -2027,7 +2027,7 @@ function Xs() {
|
|
|
2027
2027
|
{
|
|
2028
2028
|
onSelect: () => Ce(!0),
|
|
2029
2029
|
children: [
|
|
2030
|
-
/* @__PURE__ */ e(
|
|
2030
|
+
/* @__PURE__ */ e(Ma, { className: "h-3.5 w-3.5" }),
|
|
2031
2031
|
"Download settings"
|
|
2032
2032
|
]
|
|
2033
2033
|
}
|
|
@@ -2036,7 +2036,7 @@ function Xs() {
|
|
|
2036
2036
|
(Q.showDashboardSharing || Q.showGroupManagement) && /* @__PURE__ */ o(R, { children: [
|
|
2037
2037
|
/* @__PURE__ */ e(he, { children: "Access" }),
|
|
2038
2038
|
Q.showDashboardSharing && /* @__PURE__ */ o(A, { onSelect: () => X(!0), children: [
|
|
2039
|
-
/* @__PURE__ */ e(
|
|
2039
|
+
/* @__PURE__ */ e(Oa, { className: "h-3.5 w-3.5" }),
|
|
2040
2040
|
"Share"
|
|
2041
2041
|
] }),
|
|
2042
2042
|
Q.showGroupManagement && /* @__PURE__ */ o(
|
|
@@ -2082,7 +2082,7 @@ function Xs() {
|
|
|
2082
2082
|
).catch(() => C.error("Unable to copy token")) : C.error("Clipboard not available"));
|
|
2083
2083
|
},
|
|
2084
2084
|
children: [
|
|
2085
|
-
/* @__PURE__ */ e(
|
|
2085
|
+
/* @__PURE__ */ e(Mt, { className: "h-3.5 w-3.5" }),
|
|
2086
2086
|
"Copy token"
|
|
2087
2087
|
]
|
|
2088
2088
|
}
|
|
@@ -2110,7 +2110,7 @@ function Xs() {
|
|
|
2110
2110
|
) : C.error("Clipboard not available");
|
|
2111
2111
|
},
|
|
2112
2112
|
children: [
|
|
2113
|
-
/* @__PURE__ */ e(
|
|
2113
|
+
/* @__PURE__ */ e(Mt, { className: "h-3.5 w-3.5" }),
|
|
2114
2114
|
"Copy local document PDF URL"
|
|
2115
2115
|
]
|
|
2116
2116
|
}
|
|
@@ -2118,7 +2118,7 @@ function Xs() {
|
|
|
2118
2118
|
/* @__PURE__ */ o(
|
|
2119
2119
|
A,
|
|
2120
2120
|
{
|
|
2121
|
-
onSelect: () =>
|
|
2121
|
+
onSelect: () => wn(n.apiServiceUrl),
|
|
2122
2122
|
children: [
|
|
2123
2123
|
/* @__PURE__ */ e(Bn, { className: "h-3.5 w-3.5" }),
|
|
2124
2124
|
"Invalidate token"
|
|
@@ -2145,7 +2145,7 @@ function Xs() {
|
|
|
2145
2145
|
)
|
|
2146
2146
|
] }),
|
|
2147
2147
|
J && bt && /* @__PURE__ */ e(
|
|
2148
|
-
|
|
2148
|
+
Pa,
|
|
2149
2149
|
{
|
|
2150
2150
|
resource: bt,
|
|
2151
2151
|
resourceType: Xe.DASHBOARD,
|
|
@@ -2160,7 +2160,7 @@ function Xs() {
|
|
|
2160
2160
|
}
|
|
2161
2161
|
),
|
|
2162
2162
|
/* @__PURE__ */ e(
|
|
2163
|
-
|
|
2163
|
+
Cn,
|
|
2164
2164
|
{
|
|
2165
2165
|
open: Se,
|
|
2166
2166
|
onOpenChange: De
|
|
@@ -2174,7 +2174,7 @@ function Xs() {
|
|
|
2174
2174
|
}
|
|
2175
2175
|
),
|
|
2176
2176
|
W && (se || Ee) ? /* @__PURE__ */ e(
|
|
2177
|
-
|
|
2177
|
+
Nn,
|
|
2178
2178
|
{
|
|
2179
2179
|
dashboardId: W,
|
|
2180
2180
|
dashboardTitle: (b == null ? void 0 : b.title) || (G == null ? void 0 : G.title),
|
|
@@ -2188,34 +2188,34 @@ function Xs() {
|
|
|
2188
2188
|
}
|
|
2189
2189
|
) : null,
|
|
2190
2190
|
h && /* @__PURE__ */ e(
|
|
2191
|
-
|
|
2191
|
+
_a,
|
|
2192
2192
|
{
|
|
2193
2193
|
open: v,
|
|
2194
2194
|
onOpenChange: B
|
|
2195
2195
|
}
|
|
2196
2196
|
),
|
|
2197
2197
|
/* @__PURE__ */ e(
|
|
2198
|
-
|
|
2198
|
+
Ta,
|
|
2199
2199
|
{
|
|
2200
2200
|
open: Ie,
|
|
2201
2201
|
onOpenChange: (d) => {
|
|
2202
|
-
!d && Ve && !z || (q(d), d || (K(null),
|
|
2202
|
+
!d && Ve && !z || (q(d), d || (K(null), Le([]), Me(!1)));
|
|
2203
2203
|
},
|
|
2204
|
-
children: /* @__PURE__ */ o(
|
|
2205
|
-
/* @__PURE__ */ o(
|
|
2206
|
-
/* @__PURE__ */ e(
|
|
2207
|
-
/* @__PURE__ */ e(
|
|
2204
|
+
children: /* @__PURE__ */ o(Ra, { className: "max-w-sm", children: [
|
|
2205
|
+
/* @__PURE__ */ o(Ua, { children: [
|
|
2206
|
+
/* @__PURE__ */ e(Ba, { children: z ? "Save failed" : "Saving dashboard" }),
|
|
2207
|
+
/* @__PURE__ */ e(Fa, { className: "pt-2", children: z ? "We could not save the dashboard. Please try again." : "Please wait while we save your changes." }),
|
|
2208
2208
|
oe.length > 0 && /* @__PURE__ */ o("div", { className: "space-y-1 rounded-md border border-destructive/20 bg-destructive/5 p-3 text-left", children: [
|
|
2209
2209
|
/* @__PURE__ */ e("div", { className: "text-sm font-medium text-destructive", children: "What needs attention" }),
|
|
2210
2210
|
/* @__PURE__ */ e("ul", { className: "list-disc space-y-1 pl-4 text-xs text-muted-foreground", children: oe.slice(0, 5).map((d) => /* @__PURE__ */ e("li", { children: d }, d)) })
|
|
2211
2211
|
] })
|
|
2212
2212
|
] }),
|
|
2213
|
-
/* @__PURE__ */ e(
|
|
2213
|
+
/* @__PURE__ */ e($a, { className: "flex-col gap-2 sm:flex-row sm:justify-end", children: z ? /* @__PURE__ */ o(R, { children: [
|
|
2214
2214
|
/* @__PURE__ */ e(
|
|
2215
|
-
|
|
2215
|
+
Ga,
|
|
2216
2216
|
{
|
|
2217
2217
|
onClick: () => {
|
|
2218
|
-
q(!1), K(null),
|
|
2218
|
+
q(!1), K(null), Le([]), Me(!1);
|
|
2219
2219
|
},
|
|
2220
2220
|
className: "m-0",
|
|
2221
2221
|
children: "Close"
|
|
@@ -2240,7 +2240,7 @@ function Xs() {
|
|
|
2240
2240
|
}
|
|
2241
2241
|
),
|
|
2242
2242
|
/* @__PURE__ */ e(
|
|
2243
|
-
|
|
2243
|
+
Sn,
|
|
2244
2244
|
{
|
|
2245
2245
|
open: yr,
|
|
2246
2246
|
onOpenChange: (d) => {
|
|
@@ -2259,7 +2259,7 @@ function Xs() {
|
|
|
2259
2259
|
) });
|
|
2260
2260
|
}
|
|
2261
2261
|
function Es() {
|
|
2262
|
-
const t =
|
|
2262
|
+
const t = Va();
|
|
2263
2263
|
return t.length === 0 ? null : /* @__PURE__ */ o(R, { children: [
|
|
2264
2264
|
t.map((n) => /* @__PURE__ */ o(A, { onSelect: n.onSelect, children: [
|
|
2265
2265
|
n.icon,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as a, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import { E as o, F as i, S as d, B as s, a as c, U as l, D as t, A as h, C as f, b } from "./semaphor-ready-indicator-
|
|
2
|
+
import { E as o, F as i, S as d, B as s, a as c, U as l, D as t, A as h, C as f, b } from "./semaphor-ready-indicator-CEbA4CFb.js";
|
|
3
3
|
function u(e) {
|
|
4
4
|
if (typeof window > "u")
|
|
5
5
|
return null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as d, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as u, useState as f, useRef as b, useEffect as p } from "react";
|
|
3
|
-
import { u as o } from "./semaphor-ready-indicator-
|
|
3
|
+
import { u as o } from "./semaphor-ready-indicator-CEbA4CFb.js";
|
|
4
4
|
import { B as S, X as N, C as D } from "./style-sheet-parts-C7qGZuH1.js";
|
|
5
5
|
import { c as J } from "./pickers-DkqmtnTL.js";
|
|
6
6
|
import "./validators-B8fpdinG.js";
|