react-semaphor 0.1.597 → 0.1.598
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.js +329 -322
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +7 -7
- package/dist/briefings/index.js +4 -4
- package/dist/chunks/{aggregate-measure-field-DHlDj0Pc.js → aggregate-measure-field-DtKcEjG5.js} +2 -2
- package/dist/chunks/{assistant-chat-DUDiH9z4.js → assistant-chat-DrI442Ld.js} +13 -13
- package/dist/chunks/{bookmark-impact-Dh-wiTs3.js → bookmark-impact-C6uWtNWF.js} +3 -3
- package/dist/chunks/{bookmark-state-Be2W3s6t.js → bookmark-state-BfeKmj5s.js} +4 -4
- package/dist/chunks/{card-filter-builder-2-OxEBWf.js → card-filter-builder-CSKCSpNo.js} +58 -58
- package/dist/chunks/{comparison-window-caption-DmMFtNP5.js → comparison-window-caption-3bum5j00.js} +5 -5
- package/dist/chunks/{dashboard-g-7XY0Kw.js → dashboard-PYd63LbL.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-CVDhvsTk.js → dashboard-briefing-launcher-C2AuKs10.js} +95 -95
- package/dist/chunks/{dashboard-controls-CtQY-J33.js → dashboard-controls-BSbhyIkY.js} +15 -15
- package/dist/chunks/{dashboard-json-DkhzPI3-.js → dashboard-json-Bd1rxD3y.js} +4 -4
- package/dist/chunks/{dates-B-bKEsiu.js → dates-DHMCf-F7.js} +8 -8
- package/dist/chunks/{edit-dashboard-visual-DWn74pCl.js → edit-dashboard-visual-D_0ZiWev.js} +498 -496
- package/dist/chunks/{filter-line-BpdPq1D2.js → filter-line-BdLyPYjH.js} +5 -5
- package/dist/chunks/{filter-reach-copy-DoXmRmk-.js → filter-reach-copy-Dxn-mTuG.js} +1301 -1222
- package/dist/chunks/{filter-value-text-CDQCIREQ.js → filter-value-text-C6g-nDUW.js} +4 -4
- package/dist/chunks/{index-C0jX5wlM.js → index-BHSDE54O.js} +5 -5
- package/dist/chunks/{layout-grid-DoFIfQGd.js → layout-grid-CYR-LVpl.js} +1 -1
- package/dist/chunks/{list-filter-BeTQxjNy.js → list-filter-B67GsjTw.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-CyWOwLmE.js → matrix-analytical-definition-C0IGLTZH.js} +21 -21
- package/dist/chunks/matrix-member-presentation-D5BIYuy5.js +258 -0
- package/dist/chunks/{matrix-operation-contract-CAanJeCj.js → matrix-operation-contract-RckfqkQm.js} +15 -15
- package/dist/chunks/{metric-comparison-BeKnUD08.js → metric-comparison-DsE8wdRh.js} +1 -1
- package/dist/chunks/{paintbrush-KeaU1L1a.js → paintbrush-xDDRjIyF.js} +1 -1
- package/dist/chunks/{palette-BcFJLeXB.js → palette-CbOgFCy2.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-Dt0E1Wou.js → pivot-result-contract-expectations-Cnq55Uno.js} +44 -44
- package/dist/chunks/{pivot-result-identity-BKUjYO1u.js → pivot-result-identity-b4-ugQhm.js} +1 -1
- package/dist/chunks/{raw-temporal-value-BzdgeDa7.js → raw-temporal-value-B9W38mi3.js} +1 -1
- package/dist/chunks/{report-preferences-dialog-5WUi6jC0.js → report-preferences-dialog-DTu3a7ce.js} +13 -13
- package/dist/chunks/{report-runtime-context-g4Zp_TU9.js → report-runtime-context-BvJkcbar.js} +1 -1
- package/dist/chunks/{resolve-dashboard-input-context-DfJshnw8.js → resolve-dashboard-input-context-Bw-DesV2.js} +4771 -4712
- package/dist/chunks/{save-C9CZAk6V.js → save-BgvAsp6X.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-DdhPU2Kq.js → saved-dashboard-context-BFh0oOnF.js} +7 -7
- package/dist/chunks/{selection-filter-compiler-BclSpK3P.js → selection-filter-compiler-DHYsq3yM.js} +1 -1
- package/dist/chunks/{semaphor-ready-indicator-miYoJ-HP.js → semaphor-ready-indicator-WvgHMnj8.js} +30403 -30089
- package/dist/chunks/{shelf-drop-preview-context-D-awfyyo.js → shelf-drop-preview-context-D6HgYFJp.js} +5 -5
- package/dist/chunks/{stored-dashboard-D6FtWx_3.js → stored-dashboard-vlG0Knxi.js} +94 -94
- package/dist/chunks/{style-sheet-parts-DM_Mw_sm.js → style-sheet-parts-ClmvtkSC.js} +2 -2
- package/dist/chunks/{table-export-sheet-DBlFMvE8.js → table-export-sheet-Bv6tVuMu.js} +1 -1
- package/dist/chunks/{token-types-BB2ImFx6.js → token-types-eMdcuB6j.js} +1 -1
- package/dist/chunks/{upload-CMTCg47S.js → upload-ClUeK8F0.js} +1 -1
- package/dist/chunks/{validators-BlEWWX9O.js → validators-DwhBEvnh.js} +1074 -1065
- package/dist/chunks/{variable-draft-CxdgKDCx.js → variable-draft-CauoSBN0.js} +4 -4
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +1752 -1684
- package/dist/format-utils/index.js +13 -13
- package/dist/index.js +18 -18
- package/dist/report-runtime-context/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/index.js +5 -5
- package/dist/types/lib/utils/filter-default-value-utils.d.ts +1 -1
- package/dist/types/shared/analytics-protocol/catalog-field-grounding.d.ts +7 -0
- package/dist/types/shared/analytics-protocol/index.d.ts +1 -0
- package/dist/types/shared/analytics-protocol/numeric-range-options.d.ts +46 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +45 -0
- package/dist/types/shared/dashboard-authoring/filter-model/index.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/filter-model/number-condition-spec.d.ts +24 -0
- package/dist/types/shared/dashboard-authoring/filter-model/number-range-setting.d.ts +47 -0
- package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +6 -2
- package/package.json +1 -1
- package/dist/chunks/matrix-member-presentation-Bj2YcHAP.js +0 -169
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { jsx as t, jsxs as s, Fragment as U } from "react/jsx-runtime";
|
|
2
2
|
import la, { useState as E, useEffect as Ee, useCallback as ie, useMemo as Y, useLayoutEffect as Ut, useRef as et, useContext as Va } from "react";
|
|
3
|
-
import { dN as it, bG as Le, bH as Ve, bJ as
|
|
4
|
-
import { c as Ae, B as L, X as Qe, s as Me, x as xe, L as de, q as
|
|
5
|
-
import { L as Ue } from "./layout-grid-
|
|
3
|
+
import { dN as it, bG as Le, bH as Ve, bJ as Be, dO as Ba, b8 as $e, b5 as ot, dP as Pa, dQ as lt, dR as Ct, an as dt, ak as ve, u as N, dS as _a, dT as Oa, bF as z, dU as za, am as oe, b3 as Ra, ca as Ma, dV as Ua, dW as $a, bZ as da, b_ as be, cu as ca, bY as tt, w as ja, q as qa, dX as Wa, cx as wt, cy as St, cz as kt, cA as Dt, cB as At, cC as Ft, cD as Et, cE as ua, cH as It, dY as Qa, du as Ka, cm as pt, cj as je, ck as qe, dG as ha, cl as We, c6 as re, cv as Ga, cq as at, dZ as Ha, c3 as Ya, d_ as ma, bu as ct, bI as Tt, bK as ut, d$ as pa, bE as Xa, e0 as Za, bv as Ja, o as en, cN as tn, e1 as an, W as nn, P as fa, bp as rn, X as sn, G as on, e2 as ln, e3 as dn, e4 as cn, e5 as ga, e6 as un, e7 as hn, e8 as Ce, e9 as mn, R as ba, ea as pn, eb as fn, b0 as gn, ec as bn, ed as ge, ee as xn, aa as Lt, ef as vn, eg as ft, eh as yn, ei as $t, ej as Nn, ek as Cn, el as wn, em as xa, cY as Sn, en as kn, eo as Dn, ep as An, dA as Vt, cI as va, eq as Fn, er as jt, es as En, et as In, eu as Tn, ev as Ln, b7 as Vn, bz as Bn, c9 as ya, ew as Pn, ex as _n, ey as Xe, ez as On, eA as zn, eB as Rn, A as Mn, aR as Un, aS as $n, ax as jn, aw as qn, av as Wn, au as Qn, ar as Kn, ap as Gn, eC as Hn, eD as Yn, eE as Xn, eF as Zn, eG as Jn, aP as er } from "./semaphor-ready-indicator-WvgHMnj8.js";
|
|
4
|
+
import { c as Ae, B as L, X as Qe, s as Me, x as xe, L as de, q as Bt, j as Pt, p as tr, F as _t, e as Ie, a8 as Na, h as Te, f as nt, i as Ca, g as Nt, y as we, z as Se, A as ke, D as De, E as fe, a9 as ar } from "./style-sheet-parts-ClmvtkSC.js";
|
|
5
|
+
import { L as Ue } from "./layout-grid-CYR-LVpl.js";
|
|
6
6
|
import { c as Z } from "./pickers-DkqmtnTL.js";
|
|
7
|
-
import { U as nr } from "./validators-
|
|
8
|
-
import "./matrix-operation-contract-
|
|
7
|
+
import { U as nr } from "./validators-DwhBEvnh.js";
|
|
8
|
+
import "./matrix-operation-contract-RckfqkQm.js";
|
|
9
9
|
import "./analytics-base-schemas-8wz9vqn_.js";
|
|
10
10
|
import "../value-format-preferences/index.js";
|
|
11
11
|
import { s as Ze } from "./normalize-dashboard-for-dirty-check-XKgH3GFX.js";
|
|
12
|
-
import {
|
|
13
|
-
import { S as wa } from "./save-
|
|
14
|
-
import { V as kr, L as Dr, u as Sa, C as ka, F as Ar, a as Fr, A as Er, b as Ir } from "./card-filter-builder-
|
|
12
|
+
import { bS as qt, bo as Wt, fj as Qt, gT as rr, gU as rt, gS as Kt, gV as sr, t as Ke, gW as ir, u as or, gX as lr, gY as dr, gZ as cr, cV as ur, g_ as hr, o as mr, gf as pr, g$ as fr, h0 as gr, a as Ot, aW as br, a8 as xr, cz as vr, h1 as yr, h2 as Nr, cK as Cr, h3 as wr, h4 as Gt, h5 as Sr } from "./resolve-dashboard-input-context-Bw-DesV2.js";
|
|
13
|
+
import { S as wa } from "./save-BgvAsp6X.js";
|
|
14
|
+
import { V as kr, L as Dr, u as Sa, C as ka, F as Ar, a as Fr, A as Er, b as Ir } from "./card-filter-builder-CSKCSpNo.js";
|
|
15
15
|
import { createPortal as Tr } from "react-dom";
|
|
16
|
-
import { b4 as Ht, aC as Lr } from "./pivot-result-contract-expectations-
|
|
17
|
-
import { aD as Vr, ar as
|
|
16
|
+
import { b4 as Ht, aC as Lr } from "./pivot-result-contract-expectations-Cnq55Uno.js";
|
|
17
|
+
import { aD as Vr, ar as Br, F as Pr, ac as st, T as _r } from "./bookmark-state-BfeKmj5s.js";
|
|
18
18
|
import "zod";
|
|
19
19
|
import "./schema-C9NPiIru.js";
|
|
20
20
|
import "./index-CV_Kzou0.js";
|
|
21
21
|
import "./context-CVXTFljo.js";
|
|
22
|
-
import { v as Or,
|
|
23
|
-
import { a as Yt, d as Xt, c as Rr, i as Mr, b as Ur, e as $r, v as Zt, f as Jt, g as jr } from "./variable-draft-
|
|
24
|
-
import { g as pe, d as qr, a as Wr } from "./index-
|
|
22
|
+
import { v as Or, R as zr } from "./filter-reach-copy-Dxn-mTuG.js";
|
|
23
|
+
import { a as Yt, d as Xt, c as Rr, i as Mr, b as Ur, e as $r, v as Zt, f as Jt, g as jr } from "./variable-draft-CauoSBN0.js";
|
|
24
|
+
import { g as pe, d as qr, a as Wr } from "./index-BHSDE54O.js";
|
|
25
25
|
/**
|
|
26
26
|
* @license lucide-react v0.453.0 - ISC
|
|
27
27
|
*
|
|
@@ -150,7 +150,7 @@ function Zr({
|
|
|
150
150
|
/* @__PURE__ */ s("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
151
151
|
/* @__PURE__ */ t(Ue, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
|
|
152
152
|
/* @__PURE__ */ s("div", { className: "flex min-w-0 items-baseline gap-2", children: [
|
|
153
|
-
/* @__PURE__ */ t(
|
|
153
|
+
/* @__PURE__ */ t(Be, { className: "truncate text-[13px] font-medium leading-none tracking-normal", children: "New library visual" }),
|
|
154
154
|
/* @__PURE__ */ t("span", { className: "shrink-0 text-[10px] font-medium uppercase leading-none tracking-[0.08em] text-muted-foreground", children: "Visual" })
|
|
155
155
|
] })
|
|
156
156
|
] }),
|
|
@@ -230,7 +230,7 @@ function Zr({
|
|
|
230
230
|
) });
|
|
231
231
|
}
|
|
232
232
|
function Jr(e) {
|
|
233
|
-
const [a, r] = E(null), [n, i] = E(null), o =
|
|
233
|
+
const [a, r] = E(null), [n, i] = E(null), o = Ba();
|
|
234
234
|
return Ee(() => {
|
|
235
235
|
if (!e || e.trim() === "") {
|
|
236
236
|
r(null), i(null);
|
|
@@ -391,8 +391,8 @@ function as() {
|
|
|
391
391
|
};
|
|
392
392
|
}, [a]) };
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
const { authToken: e, tokenProps: a } = $e(), r = ot(), n =
|
|
394
|
+
function Pe() {
|
|
395
|
+
const { authToken: e, tokenProps: a } = $e(), r = ot(), n = Pa(), i = lt(), { selectVisual: o } = Ct(), {
|
|
396
396
|
setFrame: l,
|
|
397
397
|
loadCard: h,
|
|
398
398
|
setIsDevMode: d,
|
|
@@ -406,7 +406,7 @@ function Be() {
|
|
|
406
406
|
setSelectedTableName: C,
|
|
407
407
|
setSelectedDatamodelId: k,
|
|
408
408
|
setInlineFilterValuesMap: V,
|
|
409
|
-
setApplyFilters:
|
|
409
|
+
setApplyFilters: B,
|
|
410
410
|
clearEditorContext: D
|
|
411
411
|
} = dt(), {
|
|
412
412
|
setIsDashboardEditing: O,
|
|
@@ -414,7 +414,7 @@ function Be() {
|
|
|
414
414
|
clearSelectedFrameId: S
|
|
415
415
|
} = ve(), v = N((_) => _.selectedSheetId), T = N((_) => _.selectedFrameId), F = N((_) => _.dashboard), G = N(
|
|
416
416
|
(_) => _.inlineFilterValuesMap
|
|
417
|
-
),
|
|
417
|
+
), P = _a((i == null ? void 0 : i.id) || "", {
|
|
418
418
|
enabled: !!(i != null && i.id) && !!(e != null && e.accessToken)
|
|
419
419
|
}), Q = ie(
|
|
420
420
|
async (_) => {
|
|
@@ -441,7 +441,7 @@ function Be() {
|
|
|
441
441
|
setSelectedTableName: C,
|
|
442
442
|
setSelectedDatamodelId: k,
|
|
443
443
|
setInlineFilterValuesMap: V,
|
|
444
|
-
setApplyFilters:
|
|
444
|
+
setApplyFilters: B,
|
|
445
445
|
setIsDashboardEditing: O,
|
|
446
446
|
setIsVisualEditing: b,
|
|
447
447
|
dashboard: F,
|
|
@@ -475,7 +475,7 @@ function Be() {
|
|
|
475
475
|
C,
|
|
476
476
|
k,
|
|
477
477
|
V,
|
|
478
|
-
|
|
478
|
+
B,
|
|
479
479
|
D,
|
|
480
480
|
S,
|
|
481
481
|
F,
|
|
@@ -525,14 +525,14 @@ function Be() {
|
|
|
525
525
|
]
|
|
526
526
|
);
|
|
527
527
|
return {
|
|
528
|
-
visual:
|
|
529
|
-
isLoading:
|
|
530
|
-
isError:
|
|
531
|
-
error:
|
|
528
|
+
visual: P.data,
|
|
529
|
+
isLoading: P.isLoading,
|
|
530
|
+
isError: P.isError,
|
|
531
|
+
error: P.error,
|
|
532
532
|
handleEditLibraryVisual: Q,
|
|
533
533
|
handleAddLibraryVisual: X,
|
|
534
534
|
getUpdatedFrame: as().getUpdatedFrame,
|
|
535
|
-
refetch:
|
|
535
|
+
refetch: P.refetch
|
|
536
536
|
};
|
|
537
537
|
}
|
|
538
538
|
function Aa(e) {
|
|
@@ -556,7 +556,7 @@ function ns(e, a) {
|
|
|
556
556
|
}
|
|
557
557
|
function rs(e) {
|
|
558
558
|
const a = (e || "").toLowerCase();
|
|
559
|
-
return a.includes("table") ?
|
|
559
|
+
return a.includes("table") ? Bt : a.includes("pie") || a.includes("donut") ? Qa : a.includes("line") ? Ka : a.includes("bar") ? tr : Ue;
|
|
560
560
|
}
|
|
561
561
|
function ss({ visual: e }) {
|
|
562
562
|
const a = e.ownership.status === "public" ? "Public" : e.ownership.status === "shared" || e.ownership.sharedCount > 0 ? "Shared" : "Private";
|
|
@@ -570,15 +570,15 @@ function qi({
|
|
|
570
570
|
null
|
|
571
571
|
), [p, m] = E(
|
|
572
572
|
null
|
|
573
|
-
), [f, g] = E(!1), [y, C] = E(null), [k, V] = E(null),
|
|
573
|
+
), [f, g] = E(!1), [y, C] = E(null), [k, V] = E(null), B = () => {
|
|
574
574
|
l(/* @__PURE__ */ new Set()), u(null), m(null), g(!1), C(null);
|
|
575
575
|
}, D = () => {
|
|
576
|
-
a(!1),
|
|
577
|
-
}, { selectVisual: O } = Ct(), { handleAddLibraryVisual: b, handleEditLibraryVisual: S } =
|
|
576
|
+
a(!1), B();
|
|
577
|
+
}, { selectVisual: O } = Ct(), { handleAddLibraryVisual: b, handleEditLibraryVisual: S } = Pe(), { isConsoleMode: v } = Ma(), {
|
|
578
578
|
resources: T,
|
|
579
579
|
isLoading: F,
|
|
580
580
|
isError: G,
|
|
581
|
-
createResource:
|
|
581
|
+
createResource: P,
|
|
582
582
|
updateResource: Q,
|
|
583
583
|
deleteResourceAsync: X,
|
|
584
584
|
duplicateResource: _,
|
|
@@ -704,7 +704,7 @@ function qi({
|
|
|
704
704
|
}
|
|
705
705
|
);
|
|
706
706
|
}, ce = (w) => {
|
|
707
|
-
a(w), w ||
|
|
707
|
+
a(w), w || B();
|
|
708
708
|
}, Re = y ? 1 : ue.length;
|
|
709
709
|
return /* @__PURE__ */ s(U, { children: [
|
|
710
710
|
/* @__PURE__ */ t(Le, { open: e, onOpenChange: ce, children: /* @__PURE__ */ s(
|
|
@@ -716,9 +716,9 @@ function qi({
|
|
|
716
716
|
children: [
|
|
717
717
|
/* @__PURE__ */ s("div", { className: "flex h-10 shrink-0 items-center justify-between gap-2 border-b border-border/60 px-3", children: [
|
|
718
718
|
/* @__PURE__ */ s("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
719
|
-
/* @__PURE__ */ t(
|
|
719
|
+
/* @__PURE__ */ t(Bt, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
|
|
720
720
|
/* @__PURE__ */ s("div", { className: "flex min-w-0 items-baseline gap-2", children: [
|
|
721
|
-
/* @__PURE__ */ t(
|
|
721
|
+
/* @__PURE__ */ t(Be, { className: "truncate text-[13px] font-medium leading-none tracking-normal", children: "Visuals library" }),
|
|
722
722
|
/* @__PURE__ */ t("span", { className: "shrink-0 text-[10px] font-medium uppercase leading-none tracking-[0.08em] text-muted-foreground", children: "Add to dashboard" })
|
|
723
723
|
] })
|
|
724
724
|
] }),
|
|
@@ -851,7 +851,7 @@ function qi({
|
|
|
851
851
|
onClick: _e,
|
|
852
852
|
disabled: o.size === 0,
|
|
853
853
|
children: [
|
|
854
|
-
/* @__PURE__ */ t(
|
|
854
|
+
/* @__PURE__ */ t(Pt, { className: "h-3.5 w-3.5" }),
|
|
855
855
|
o.size === 0 ? "Add to dashboard" : `Add ${o.size} visual${o.size === 1 ? "" : "s"}`
|
|
856
856
|
]
|
|
857
857
|
}
|
|
@@ -866,7 +866,7 @@ function qi({
|
|
|
866
866
|
{
|
|
867
867
|
open: h,
|
|
868
868
|
onOpenChange: d,
|
|
869
|
-
onSubmit:
|
|
869
|
+
onSubmit: P,
|
|
870
870
|
isCreating: te
|
|
871
871
|
}
|
|
872
872
|
),
|
|
@@ -1225,7 +1225,7 @@ function gt({
|
|
|
1225
1225
|
className: e,
|
|
1226
1226
|
variant: a = "outline"
|
|
1227
1227
|
}) {
|
|
1228
|
-
const r = oe((o) => o.onSave), { getUpdatedFrame: n } =
|
|
1228
|
+
const r = oe((o) => o.onSave), { getUpdatedFrame: n } = Pe();
|
|
1229
1229
|
function i() {
|
|
1230
1230
|
const o = n();
|
|
1231
1231
|
Rt(o) && (r == null || r(o));
|
|
@@ -1238,7 +1238,7 @@ function gt({
|
|
|
1238
1238
|
size: "xs",
|
|
1239
1239
|
variant: a,
|
|
1240
1240
|
children: [
|
|
1241
|
-
/* @__PURE__ */ t(
|
|
1241
|
+
/* @__PURE__ */ t(Pt, { className: "h-3.5 w-3.5" }),
|
|
1242
1242
|
"Done"
|
|
1243
1243
|
]
|
|
1244
1244
|
}
|
|
@@ -1248,7 +1248,7 @@ function ds({
|
|
|
1248
1248
|
className: e,
|
|
1249
1249
|
variant: a = "default"
|
|
1250
1250
|
}) {
|
|
1251
|
-
const r = ot(), [n, i] = E(!1), { setIsVisualEditing: o } = ve(), { getUpdatedFrame: l } =
|
|
1251
|
+
const r = ot(), [n, i] = E(!1), { setIsVisualEditing: o } = ve(), { getUpdatedFrame: l } = Pe(), h = lt(), d = oe((p) => p.frame), c = ma();
|
|
1252
1252
|
return /* @__PURE__ */ t(
|
|
1253
1253
|
L,
|
|
1254
1254
|
{
|
|
@@ -1297,7 +1297,7 @@ function ds({
|
|
|
1297
1297
|
function cs({
|
|
1298
1298
|
className: e
|
|
1299
1299
|
}) {
|
|
1300
|
-
const a = ot(), [r, n] = E(!1), i = lt(), o = oe((g) => g.frame), l = N((g) => g.selectedSheetId), h = N((g) => g.dashboard), { updateFrame: d, setIsVisualEditing: c } = ve(), { getUpdatedFrame: u } =
|
|
1300
|
+
const a = ot(), [r, n] = E(!1), i = lt(), o = oe((g) => g.frame), l = N((g) => g.selectedSheetId), h = N((g) => g.dashboard), { updateFrame: d, setIsVisualEditing: c } = ve(), { getUpdatedFrame: u } = Pe(), p = ma(), m = ct();
|
|
1301
1301
|
return /* @__PURE__ */ t(
|
|
1302
1302
|
L,
|
|
1303
1303
|
{
|
|
@@ -1425,7 +1425,7 @@ function us({
|
|
|
1425
1425
|
};
|
|
1426
1426
|
return /* @__PURE__ */ t(Le, { open: e, onOpenChange: a, children: /* @__PURE__ */ s(Ve, { className: "sm:max-w-[500px]", children: [
|
|
1427
1427
|
/* @__PURE__ */ s(Tt, { children: [
|
|
1428
|
-
/* @__PURE__ */ s(
|
|
1428
|
+
/* @__PURE__ */ s(Be, { className: "flex items-center gap-2", children: [
|
|
1429
1429
|
/* @__PURE__ */ t("span", { children: "Save Visual As" }),
|
|
1430
1430
|
m.badgeType !== "local" && /* @__PURE__ */ t(
|
|
1431
1431
|
kr,
|
|
@@ -1485,7 +1485,7 @@ function us({
|
|
|
1485
1485
|
] }) });
|
|
1486
1486
|
}
|
|
1487
1487
|
function hs() {
|
|
1488
|
-
const [e, a] = E(!1), [r, n] = E(!1), [i, o] = E(null), [l, h] = E(null), d = oe((b) => b.frame), c = oe((b) => b.card), u = lt(), p = N((b) => b.selectedSheetId), m = N((b) => b.dashboard), { getUpdatedFrame: f } =
|
|
1488
|
+
const [e, a] = E(!1), [r, n] = E(!1), [i, o] = E(null), [l, h] = E(null), d = oe((b) => b.frame), c = oe((b) => b.card), u = lt(), p = N((b) => b.selectedSheetId), m = N((b) => b.dashboard), { getUpdatedFrame: f } = Pe(), { selectVisual: g } = Ct(), { addFrame: y, setIsVisualEditing: C } = ve(), k = ct(), V = !!(d != null && d.visualId), B = (() => {
|
|
1489
1489
|
var b, S;
|
|
1490
1490
|
return ((b = d == null ? void 0 : d.cards) == null ? void 0 : b.length) === 1 && ((S = d.cards[0]) != null && S.title) ? d.cards[0].title : u != null && u.title ? u.title : (c == null ? void 0 : c.title) || "Untitled Visual";
|
|
1491
1491
|
})(), D = Za((b) => {
|
|
@@ -1533,12 +1533,12 @@ function hs() {
|
|
|
1533
1533
|
F = await k(T, {
|
|
1534
1534
|
previousFrame: rt(m, T.id)
|
|
1535
1535
|
});
|
|
1536
|
-
} catch (
|
|
1536
|
+
} catch (P) {
|
|
1537
1537
|
console.error(
|
|
1538
1538
|
"Failed to prepare semantic metadata before saving visual:",
|
|
1539
|
-
|
|
1539
|
+
P
|
|
1540
1540
|
), z.error(
|
|
1541
|
-
|
|
1541
|
+
P instanceof Error ? P.message : "Failed to prepare semantic metadata for the saved visual"
|
|
1542
1542
|
);
|
|
1543
1543
|
return;
|
|
1544
1544
|
}
|
|
@@ -1574,19 +1574,19 @@ function hs() {
|
|
|
1574
1574
|
}
|
|
1575
1575
|
},
|
|
1576
1576
|
isLibraryVisual: V,
|
|
1577
|
-
currentVisualName:
|
|
1577
|
+
currentVisualName: B,
|
|
1578
1578
|
isSaving: D.isPending
|
|
1579
1579
|
};
|
|
1580
1580
|
}
|
|
1581
1581
|
function Qi(e = {}) {
|
|
1582
|
-
const { isInspectionMode: a } = Ja(), r = oe((
|
|
1583
|
-
saveAsDialogOpen:
|
|
1582
|
+
const { isInspectionMode: a } = Ja(), r = oe((P) => P.frame), n = oe((P) => P.editorContext), i = en((P) => P.selectedVisual), o = N((P) => P.selectedFrameId), l = N((P) => P.selectedSheetId), h = N((P) => P.dashboard), { setIsVisualEditing: d, updateFrame: c } = ve(), [u, p] = E(!1), [m, f] = E("both"), g = ct(), y = (n == null ? void 0 : n.type) === "documentSection", C = !!(r != null && r.visualId || i != null && i.id), k = !!(r != null && r.visualId && o), V = C && !k, {
|
|
1583
|
+
saveAsDialogOpen: B,
|
|
1584
1584
|
setSaveAsDialogOpen: D,
|
|
1585
1585
|
handleSaveAs: O,
|
|
1586
1586
|
isLibraryVisual: b,
|
|
1587
1587
|
currentVisualName: S,
|
|
1588
1588
|
isSaving: v
|
|
1589
|
-
} = hs(), { getUpdatedFrame: T } =
|
|
1589
|
+
} = hs(), { getUpdatedFrame: T } = Pe();
|
|
1590
1590
|
if (a)
|
|
1591
1591
|
return /* @__PURE__ */ s(U, { children: [
|
|
1592
1592
|
/* @__PURE__ */ t(
|
|
@@ -1630,8 +1630,8 @@ function Qi(e = {}) {
|
|
|
1630
1630
|
setTimeout(() => {
|
|
1631
1631
|
p(!1), z.success("Changes applied. Visual is now local to this dashboard"), d(!1);
|
|
1632
1632
|
}, 300);
|
|
1633
|
-
}, G = (
|
|
1634
|
-
f(
|
|
1633
|
+
}, G = (P) => {
|
|
1634
|
+
f(P), D(!0);
|
|
1635
1635
|
};
|
|
1636
1636
|
return /* @__PURE__ */ s(U, { children: [
|
|
1637
1637
|
/* @__PURE__ */ s("div", { className: "inline-flex items-center overflow-hidden rounded-control", children: [
|
|
@@ -1663,7 +1663,7 @@ function Qi(e = {}) {
|
|
|
1663
1663
|
onClick: F,
|
|
1664
1664
|
disabled: u,
|
|
1665
1665
|
children: [
|
|
1666
|
-
/* @__PURE__ */ t(
|
|
1666
|
+
/* @__PURE__ */ t(Pt, { className: "h-3.5 w-3.5" }),
|
|
1667
1667
|
u ? "Applying..." : "Apply Locally"
|
|
1668
1668
|
]
|
|
1669
1669
|
}
|
|
@@ -1712,9 +1712,9 @@ function Qi(e = {}) {
|
|
|
1712
1712
|
/* @__PURE__ */ t(
|
|
1713
1713
|
us,
|
|
1714
1714
|
{
|
|
1715
|
-
open:
|
|
1716
|
-
onOpenChange: (
|
|
1717
|
-
v || D(
|
|
1715
|
+
open: B,
|
|
1716
|
+
onOpenChange: (P) => {
|
|
1717
|
+
v || D(P);
|
|
1718
1718
|
},
|
|
1719
1719
|
isLibraryVisual: b,
|
|
1720
1720
|
currentVisualName: S,
|
|
@@ -2238,7 +2238,7 @@ function gs({
|
|
|
2238
2238
|
), k = ir({
|
|
2239
2239
|
...m || {},
|
|
2240
2240
|
controls: []
|
|
2241
|
-
}), V = Cn(m),
|
|
2241
|
+
}), V = Cn(m), B = (v, T, F) => {
|
|
2242
2242
|
f(
|
|
2243
2243
|
v,
|
|
2244
2244
|
T,
|
|
@@ -2265,7 +2265,7 @@ function gs({
|
|
|
2265
2265
|
initialCreateFlow: i === "create",
|
|
2266
2266
|
onCreateFlowActiveChange: p,
|
|
2267
2267
|
onCreateFlowComplete: D,
|
|
2268
|
-
onChange:
|
|
2268
|
+
onChange: B,
|
|
2269
2269
|
emptyMessage: "No dashboard controls yet."
|
|
2270
2270
|
}
|
|
2271
2271
|
), b = d ? "Add dashboard control" : "Dashboard Controls", S = /* @__PURE__ */ s(U, { children: [
|
|
@@ -2302,7 +2302,7 @@ function gs({
|
|
|
2302
2302
|
{
|
|
2303
2303
|
className: d ? "space-y-0" : void 0,
|
|
2304
2304
|
children: [
|
|
2305
|
-
/* @__PURE__ */ t(
|
|
2305
|
+
/* @__PURE__ */ t(Be, { className: "text-[15px]", children: b }),
|
|
2306
2306
|
/* @__PURE__ */ t(
|
|
2307
2307
|
ut,
|
|
2308
2308
|
{
|
|
@@ -2360,7 +2360,7 @@ function xs({
|
|
|
2360
2360
|
), V = Y(
|
|
2361
2361
|
() => ys(k),
|
|
2362
2362
|
[k]
|
|
2363
|
-
),
|
|
2363
|
+
), B = Y(
|
|
2364
2364
|
() => [
|
|
2365
2365
|
...vs(u),
|
|
2366
2366
|
...(u.variables ?? []).map((v) => v.name)
|
|
@@ -2401,7 +2401,7 @@ function xs({
|
|
|
2401
2401
|
onPointerDownOutside: h,
|
|
2402
2402
|
children: [
|
|
2403
2403
|
/* @__PURE__ */ s(Tt, { className: l ? "space-y-0" : void 0, children: [
|
|
2404
|
-
/* @__PURE__ */ t(
|
|
2404
|
+
/* @__PURE__ */ t(Be, { className: "text-[15px]", children: l ? "Add document control" : "Document Controls" }),
|
|
2405
2405
|
/* @__PURE__ */ t(
|
|
2406
2406
|
ut,
|
|
2407
2407
|
{
|
|
@@ -2415,7 +2415,7 @@ function xs({
|
|
|
2415
2415
|
{
|
|
2416
2416
|
scope: "dashboard",
|
|
2417
2417
|
controls: k,
|
|
2418
|
-
reservedControlIds:
|
|
2418
|
+
reservedControlIds: B,
|
|
2419
2419
|
defaultValues: V,
|
|
2420
2420
|
usageByControlId: {},
|
|
2421
2421
|
availableFieldChoices: [],
|
|
@@ -2770,7 +2770,7 @@ function to({
|
|
|
2770
2770
|
]
|
|
2771
2771
|
), V = ie(() => {
|
|
2772
2772
|
k(!0);
|
|
2773
|
-
}, [k]),
|
|
2773
|
+
}, [k]), B = ie(() => {
|
|
2774
2774
|
C("create");
|
|
2775
2775
|
}, [C]), D = ie(() => {
|
|
2776
2776
|
C("manage");
|
|
@@ -2786,7 +2786,7 @@ function to({
|
|
|
2786
2786
|
Ds,
|
|
2787
2787
|
{
|
|
2788
2788
|
onAddFilter: V,
|
|
2789
|
-
onAddControl:
|
|
2789
|
+
onAddControl: B,
|
|
2790
2790
|
onManageControls: D,
|
|
2791
2791
|
onDismiss: b
|
|
2792
2792
|
}
|
|
@@ -2823,7 +2823,7 @@ function to({
|
|
|
2823
2823
|
}
|
|
2824
2824
|
function Fs(e, a) {
|
|
2825
2825
|
return (e.variables ?? []).map((r) => {
|
|
2826
|
-
const n =
|
|
2826
|
+
const n = Br(e, r.id);
|
|
2827
2827
|
return {
|
|
2828
2828
|
variable: r,
|
|
2829
2829
|
question: Or(r),
|
|
@@ -2957,7 +2957,7 @@ function Ts(e, a) {
|
|
|
2957
2957
|
return new Set(
|
|
2958
2958
|
(e.sheets ?? []).map((i) => {
|
|
2959
2959
|
const o = { sheetId: i.id, cardId: a, sheetKind: Ke(i) ? "document" : "dashboard" };
|
|
2960
|
-
return r.filter((l) =>
|
|
2960
|
+
return r.filter((l) => Pr(l, o)).map((l) => l.runtimeScope === "shared" ? l.id : `${l.id}@${i.id}`).join(`
|
|
2961
2961
|
`);
|
|
2962
2962
|
})
|
|
2963
2963
|
).size > 1;
|
|
@@ -2972,7 +2972,7 @@ function Vs(e) {
|
|
|
2972
2972
|
const a = e == null ? void 0 : e.type;
|
|
2973
2973
|
return a === "dataset" || a === "model" || fr.includes(a);
|
|
2974
2974
|
}
|
|
2975
|
-
function
|
|
2975
|
+
function Bs(e, a) {
|
|
2976
2976
|
return zr(
|
|
2977
2977
|
e.map((r, n) => {
|
|
2978
2978
|
var i, o;
|
|
@@ -2984,7 +2984,7 @@ function Ps(e, a) {
|
|
|
2984
2984
|
})
|
|
2985
2985
|
).columns;
|
|
2986
2986
|
}
|
|
2987
|
-
function
|
|
2987
|
+
function Ps(e) {
|
|
2988
2988
|
const { tokenProps: a } = $e(), r = N((m) => m.authToken), { connections: n } = va(), i = e == null ? void 0 : e.connectionId, o = n.find((m) => m.id === i), l = Y(
|
|
2989
2989
|
() => ((e == null ? void 0 : e.selectedEntities) ?? []).filter(Vs),
|
|
2990
2990
|
[e == null ? void 0 : e.selectedEntities]
|
|
@@ -3001,7 +3001,7 @@ function Bs(e) {
|
|
|
3001
3001
|
}, d = ie(
|
|
3002
3002
|
(m) => {
|
|
3003
3003
|
var g, y;
|
|
3004
|
-
const f =
|
|
3004
|
+
const f = Bs(
|
|
3005
3005
|
l,
|
|
3006
3006
|
m.map((C) => C.data)
|
|
3007
3007
|
);
|
|
@@ -3116,17 +3116,17 @@ function Us({
|
|
|
3116
3116
|
var _, te, J, H, I, ae, j, R, ne, ue, he, ye;
|
|
3117
3117
|
const { tokenProps: i } = $e(), o = ((_ = i.config) == null ? void 0 : _.showAdvancedMode) !== !1, l = ((te = i.config) == null ? void 0 : te.showDirectSource) !== !1, { connections: h } = va(), [d, c] = E(!1), [u, p] = E(!1), [m, f] = E(!1), g = (x) => {
|
|
3118
3118
|
p(x), n == null || n(x);
|
|
3119
|
-
}, { fields: y, isLoading: C, error: k } =
|
|
3119
|
+
}, { fields: y, isLoading: C, error: k } = Ps(e.mode === "data" ? e.dataSource : void 0), V = [...e.calculatedFields ?? [], ...y], B = (x) => x && (V.find((M) => M.id === x.id) ?? V.find((M) => $s(M, x))), D = [
|
|
3120
3120
|
...V,
|
|
3121
3121
|
...[e.field, e.sortField].filter(
|
|
3122
|
-
(x) => !!x && !
|
|
3122
|
+
(x) => !!x && !B(x) && !V.some((M) => M.id === x.id)
|
|
3123
3123
|
)
|
|
3124
|
-
], O = ((J =
|
|
3124
|
+
], O = ((J = B(e.field)) == null ? void 0 : J.id) ?? ((H = e.field) == null ? void 0 : H.id) ?? "", b = ((I = B(e.sortField ?? e.field)) == null ? void 0 : I.id) ?? ((ae = e.sortField ?? e.field) == null ? void 0 : ae.id) ?? "", S = (x) => a({ ...e, ...x }), v = Rs(e.dataSource), T = ((j = e.dataSource) == null ? void 0 : j.mode) === "database" ? Bt : jt, F = "mt-1 inline-flex items-center gap-1 text-[11px] font-medium text-muted-foreground underline-offset-2 hover:text-foreground hover:underline", G = {
|
|
3125
3125
|
connectionId: ((R = e.dataSource) == null ? void 0 : R.connectionId) || e.connectionId,
|
|
3126
3126
|
dataSource: e.dataSource,
|
|
3127
3127
|
config: e.conditions ? { filters: e.conditions } : {},
|
|
3128
3128
|
cardType: "text"
|
|
3129
|
-
},
|
|
3129
|
+
}, P = Yt(e.field), Q = (ne = P.find((x) => x.value === e.get)) == null ? void 0 : ne.hint, X = (x) => {
|
|
3130
3130
|
if (x === oa) {
|
|
3131
3131
|
g(!0);
|
|
3132
3132
|
return;
|
|
@@ -3277,7 +3277,7 @@ function Us({
|
|
|
3277
3277
|
disabled: !e.field,
|
|
3278
3278
|
children: [
|
|
3279
3279
|
/* @__PURE__ */ t(Se, { size: "xs", "aria-label": "Get", children: /* @__PURE__ */ t(ke, {}) }),
|
|
3280
|
-
/* @__PURE__ */ t(De, { children:
|
|
3280
|
+
/* @__PURE__ */ t(De, { children: P.map((x) => /* @__PURE__ */ t(fe, { value: x.value, children: x.label }, x.value)) })
|
|
3281
3281
|
]
|
|
3282
3282
|
}
|
|
3283
3283
|
) }),
|
|
@@ -3430,26 +3430,26 @@ function Ks({
|
|
|
3430
3430
|
() => e ? Ur(e) : $r()
|
|
3431
3431
|
), [d, c] = E("data"), [u, p] = E(!1), m = (I) => {
|
|
3432
3432
|
p(I), r == null || r(I);
|
|
3433
|
-
}, [f, g] = E([]), [y, C] = E(null), k = !e, V = Qs(l),
|
|
3433
|
+
}, [f, g] = E([]), [y, C] = E(null), k = !e, V = Qs(l), B = Y(
|
|
3434
3434
|
() => Zt({ ...JSON.parse(V), name: "" }, n),
|
|
3435
3435
|
[V, n]
|
|
3436
3436
|
), { name: D, label: O, presentation: b, emptyText: S } = l, v = Y(
|
|
3437
3437
|
() => ({
|
|
3438
|
-
...
|
|
3439
|
-
name: Jt(n, { id:
|
|
3438
|
+
...B,
|
|
3439
|
+
name: Jt(n, { id: B.id, name: D, field: l.field, mode: l.mode, label: O }),
|
|
3440
3440
|
...O != null && O.trim() ? { label: O.trim() } : {},
|
|
3441
3441
|
...b ? { presentation: b } : {},
|
|
3442
3442
|
...S != null && S.trim() ? { emptyText: S } : {}
|
|
3443
3443
|
}),
|
|
3444
3444
|
// The field and mode are inside the query key already.
|
|
3445
|
-
[
|
|
3445
|
+
[B, n, D, O, b, S, l.field, l.mode]
|
|
3446
3446
|
), T = Y(
|
|
3447
3447
|
() => ({
|
|
3448
3448
|
...n,
|
|
3449
3449
|
variables: [...(n.variables ?? []).filter((I) => I.id !== v.id), v]
|
|
3450
3450
|
}),
|
|
3451
3451
|
[n, v]
|
|
3452
|
-
), F = jr(l), G = ct(),
|
|
3452
|
+
), F = jr(l), G = ct(), P = N((I) => I.actions.mergeSemanticExecutionPayload), [Q, X] = E(!1), _ = async () => {
|
|
3453
3453
|
const I = Zt(l, n);
|
|
3454
3454
|
X(!0);
|
|
3455
3455
|
let ae;
|
|
@@ -3478,7 +3478,7 @@ function Ks({
|
|
|
3478
3478
|
g(j.issues);
|
|
3479
3479
|
return;
|
|
3480
3480
|
}
|
|
3481
|
-
|
|
3481
|
+
P(ae), a();
|
|
3482
3482
|
}, te = (I) => {
|
|
3483
3483
|
if (!e) return;
|
|
3484
3484
|
const ae = o({ kind: "remove", id: e.id, confirmed: I });
|
|
@@ -3721,7 +3721,7 @@ function Js({
|
|
|
3721
3721
|
place: f ?? { kind: "sheet", sheetId: c ?? "" },
|
|
3722
3722
|
purpose: "preview",
|
|
3723
3723
|
variables: g
|
|
3724
|
-
}).byId.get(a.id), k = Vn(), V =
|
|
3724
|
+
}).byId.get(a.id), k = Vn(), V = Bn(), B = Y(
|
|
3725
3725
|
() => Nr({ preferences: k, calendar: V }),
|
|
3726
3726
|
[V, k]
|
|
3727
3727
|
);
|
|
@@ -3733,7 +3733,7 @@ function Js({
|
|
|
3733
3733
|
else if (!C || C.status === "loading")
|
|
3734
3734
|
D = /* @__PURE__ */ t("span", { className: "text-muted-foreground", children: "Loading…" });
|
|
3735
3735
|
else {
|
|
3736
|
-
const v = ei(a, C,
|
|
3736
|
+
const v = ei(a, C, B);
|
|
3737
3737
|
if (D = v.body, O = v.meta, v.unavailable) {
|
|
3738
3738
|
const T = (u == null ? void 0 : u.title) || "this tab";
|
|
3739
3739
|
b = /* @__PURE__ */ s("p", { className: "mt-1.5 flex gap-1.5 text-[11px] leading-4 text-amber-700 dark:text-amber-400", children: [
|
|
@@ -3742,7 +3742,7 @@ function Js({
|
|
|
3742
3742
|
"No change on ",
|
|
3743
3743
|
T,
|
|
3744
3744
|
". ",
|
|
3745
|
-
|
|
3745
|
+
Pn(v.unavailable, "variable")
|
|
3746
3746
|
] })
|
|
3747
3747
|
] });
|
|
3748
3748
|
}
|
|
@@ -3818,7 +3818,7 @@ function ro() {
|
|
|
3818
3818
|
n.current ? l.preventDefault() : r();
|
|
3819
3819
|
},
|
|
3820
3820
|
children: [
|
|
3821
|
-
/* @__PURE__ */ t(
|
|
3821
|
+
/* @__PURE__ */ t(Be, { className: "sr-only", children: "Variable from data" }),
|
|
3822
3822
|
/* @__PURE__ */ t(ut, { className: "sr-only", children: "Define a value from your data to show in text." }),
|
|
3823
3823
|
/* @__PURE__ */ t(
|
|
3824
3824
|
Ks,
|
|
@@ -3949,7 +3949,7 @@ function di({
|
|
|
3949
3949
|
busyId: C,
|
|
3950
3950
|
manageBriefingsHref: k,
|
|
3951
3951
|
contentKind: V,
|
|
3952
|
-
hideHeader:
|
|
3952
|
+
hideHeader: B = !1
|
|
3953
3953
|
}) {
|
|
3954
3954
|
const D = e.length, O = e.filter((F) => F.status === "ACTIVE").length, b = V === "reports" ? D === 1 ? "report" : "reports" : V === "briefings" ? D === 1 ? "briefing" : "briefings" : D === 1 ? "item" : "items", S = e.find((F) => F.hasActiveRun) ?? null, v = V ?? "reports & briefings", T = r === "dashboard" ? a : `Project ${v}`;
|
|
3955
3955
|
return /* @__PURE__ */ s(
|
|
@@ -3958,7 +3958,7 @@ function di({
|
|
|
3958
3958
|
"aria-label": `Dashboard ${v.replace("&", "and")}`,
|
|
3959
3959
|
className: "flex h-full min-h-0 flex-col bg-background text-foreground",
|
|
3960
3960
|
children: [
|
|
3961
|
-
|
|
3961
|
+
B ? null : /* @__PURE__ */ s("header", { className: "flex items-start justify-between gap-3 border-b border-border px-4 py-3", children: [
|
|
3962
3962
|
/* @__PURE__ */ s("div", { className: "min-w-0", children: [
|
|
3963
3963
|
/* @__PURE__ */ t("div", { className: ai, children: v }),
|
|
3964
3964
|
/* @__PURE__ */ t("h2", { className: "mt-0.5 truncate text-[14px] font-semibold leading-5", children: T })
|
|
@@ -4494,21 +4494,21 @@ function xi({
|
|
|
4494
4494
|
openRun: p,
|
|
4495
4495
|
client: m
|
|
4496
4496
|
}) {
|
|
4497
|
-
const { authToken: f, tokenProps: g } = $e(), y = $n(), C = !u || y.canCreate && (u === "scheduled_report" || y.analyticalBriefingsEnabled), [k, V] = E(!1),
|
|
4497
|
+
const { authToken: f, tokenProps: g } = $e(), y = $n(), C = !u || y.canCreate && (u === "scheduled_report" || y.analyticalBriefingsEnabled), [k, V] = E(!1), B = h ?? k, D = (A) => {
|
|
4498
4498
|
h === void 0 && V(A), d == null || d(A);
|
|
4499
4499
|
}, [O, b] = E(
|
|
4500
4500
|
u ? "author" : "list"
|
|
4501
4501
|
), [S, v] = E(
|
|
4502
4502
|
u ?? "analytical_briefing"
|
|
4503
|
-
), [T, F] = E("dashboard"), [G,
|
|
4503
|
+
), [T, F] = E("dashboard"), [G, P] = E(
|
|
4504
4504
|
[]
|
|
4505
4505
|
), [Q, X] = E(null), _ = u && !C && !Q ? "list" : O, [te, J] = E(!1), [H, I] = E(null), [ae, j] = E(null), [R, ne] = E(
|
|
4506
4506
|
null
|
|
4507
|
-
), [ue, he] = E(null), ye = et(null), x = et(
|
|
4507
|
+
), [ue, he] = E(null), ye = et(null), x = et(B);
|
|
4508
4508
|
Ee(() => {
|
|
4509
|
-
const A =
|
|
4510
|
-
x.current =
|
|
4511
|
-
}, [
|
|
4509
|
+
const A = B && !x.current;
|
|
4510
|
+
x.current = B, !(!A || !u) && (X(null), F("dashboard"), v(u), b("author"), he(null));
|
|
4511
|
+
}, [B, u]);
|
|
4512
4512
|
const M = Lt(), $ = r ?? (g == null ? void 0 : g.apiServiceUrl), K = n ?? (f == null ? void 0 : f.accessToken), le = Y(() => ({ ...bi, ...m }), [m]), [_e, ht] = E(null);
|
|
4513
4513
|
Ee(() => {
|
|
4514
4514
|
if (!p || !$ || !K) return;
|
|
@@ -4549,7 +4549,7 @@ function xi({
|
|
|
4549
4549
|
if (!(!$ || !K)) {
|
|
4550
4550
|
J(!0), he(null);
|
|
4551
4551
|
try {
|
|
4552
|
-
|
|
4552
|
+
P(
|
|
4553
4553
|
await gi({
|
|
4554
4554
|
apiClient: le,
|
|
4555
4555
|
apiServiceUrl: $,
|
|
@@ -4566,8 +4566,8 @@ function xi({
|
|
|
4566
4566
|
}
|
|
4567
4567
|
}, [le, $, K]);
|
|
4568
4568
|
Ee(() => {
|
|
4569
|
-
!
|
|
4570
|
-
}, [Oe, _, ce,
|
|
4569
|
+
!B || _ !== "list" || !Oe || ce();
|
|
4570
|
+
}, [Oe, _, ce, B]);
|
|
4571
4571
|
const Re = () => {
|
|
4572
4572
|
X(null), F("dashboard"), b("list"), D(!0);
|
|
4573
4573
|
}, w = (A) => {
|
|
@@ -4653,7 +4653,7 @@ function xi({
|
|
|
4653
4653
|
j(null);
|
|
4654
4654
|
}
|
|
4655
4655
|
}, La = Ge.length;
|
|
4656
|
-
return y.surfaceVisible ? /* @__PURE__ */ s(Hn, { open:
|
|
4656
|
+
return y.surfaceVisible ? /* @__PURE__ */ s(Hn, { open: B, onOpenChange: D, children: [
|
|
4657
4657
|
c ? null : /* @__PURE__ */ t(
|
|
4658
4658
|
ti,
|
|
4659
4659
|
{
|