react-semaphor 0.1.568 → 0.1.569
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/README.md +0 -7
- package/dist/analytics-protocol/index.js +434 -454
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +10 -12
- package/dist/briefings/index.js +4 -4
- package/dist/chunks/{_commonjsHelpers-DimLPMtv.js → _commonjsHelpers-Bid1ZNYj.js} +271 -222
- package/dist/chunks/{assistant-chat-BN5I8KuN.js → assistant-chat-Dzf2Mbph.js} +107 -109
- package/dist/chunks/{bookmark-impact-CJ-65omV.js → bookmark-impact-Czg6FGt5.js} +2 -2
- package/dist/chunks/{bookmark-state-Du3s13_V.js → bookmark-state-CflS88gq.js} +251 -250
- package/dist/chunks/{card-filter-builder-BBuB99GZ.js → card-filter-builder-BS982X7x.js} +986 -985
- package/dist/chunks/{code-editor-DJNOsgJH.js → code-editor-BsxHzm9u.js} +43 -45
- package/dist/chunks/{comparison-window-caption-CMLb3mut.js → comparison-window-caption-lLTgzOkM.js} +252 -253
- package/dist/chunks/{dashboard-YnWZC4dK.js → dashboard-BiYSbxZv.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-BF89TU2h.js → dashboard-briefing-launcher-Bdj7luOr.js} +158 -159
- package/dist/chunks/{dashboard-controls-atHc1EjP.js → dashboard-controls-TViDsnb8.js} +17 -19
- package/dist/chunks/dashboard-json-Dg9dQd9U.js +66 -0
- package/dist/chunks/{dates-CKO05ino.js → dates-BsPrWZIP.js} +8 -8
- package/dist/chunks/{edit-dashboard-visual-DdmTfn-J.js → edit-dashboard-visual-C6hoIeEJ.js} +20 -21
- package/dist/chunks/{filter-reach-copy-jZGzK_IH.js → filter-reach-copy-hcQ4os0u.js} +695 -699
- package/dist/chunks/filter-value-text-CVxEEDVl.js +146 -0
- package/dist/chunks/{index-CPNZW0mu.js → index-G4q89J6O.js} +74 -76
- package/dist/chunks/{layout-grid-0hIlqEtk.js → layout-grid-BIcoFfdS.js} +1 -1
- package/dist/chunks/{list-filter-DkgoCeBm.js → list-filter-C6tYkHyv.js} +1 -1
- package/dist/chunks/matrix-analytical-definition-dkS8szLM.js +1253 -0
- package/dist/chunks/matrix-member-presentation-DRa-9e6Q.js +169 -0
- package/dist/chunks/{matrix-operation-contract-Eb6elidS.js → matrix-operation-contract-DCVinw1o.js} +122 -122
- package/dist/chunks/{metric-comparison-ChXUFaZu.js → metric-comparison-n9NsIa-2.js} +175 -128
- package/dist/chunks/{palette-4vf2BEEg.js → palette-NjHOE_6B.js} +1 -1
- package/dist/chunks/pivot-result-contract-expectations-DkmueDTW.js +55 -0
- package/dist/chunks/{pivot-result-identity-BlbLrqaC.js → pivot-result-identity-B89X5xjb.js} +1 -1
- package/dist/chunks/raw-temporal-value-DdT0s47W.js +159 -0
- package/dist/chunks/{report-preferences-dialog-Mbd-I0wV.js → report-preferences-dialog-Xc8_GFju.js} +26 -28
- package/dist/chunks/{report-runtime-context-DnA_PiKo.js → report-runtime-context-BhPzLTbS.js} +1 -1
- package/dist/chunks/{resolve-dashboard-input-context-Du0fjN3h.js → resolve-dashboard-input-context-KqvcLcTM.js} +4784 -4764
- package/dist/chunks/{save-D6pHmSSP.js → save-C6VmEJTA.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-y8N6RvjS.js → saved-dashboard-context-BeXXyoD4.js} +6 -6
- package/dist/chunks/{semaphor-ready-indicator-BSEdUq40.js → semaphor-ready-indicator-BNkaANsG.js} +28395 -28384
- package/dist/chunks/{shelf-drop-preview-context-D7QqPl36.js → shelf-drop-preview-context-C_issPBA.js} +18 -20
- package/dist/chunks/{stored-dashboard-d3xQYxBD.js → stored-dashboard-B6_StAty.js} +263 -265
- package/dist/chunks/{table-export-sheet--DUKWk6o.js → table-export-sheet-BWP2joD1.js} +1 -1
- package/dist/chunks/{temporal-input-presentation--2r9BLr0.js → temporal-input-presentation-scSWQXAB.js} +4 -4
- package/dist/chunks/{token-types-C8JymO8s.js → token-types-iKMplaBL.js} +1 -1
- package/dist/chunks/{upload-Cf3wXZT8.js → upload-BRW4Mwrd.js} +1 -1
- package/dist/chunks/validators-B8fpdinG.js +3651 -0
- package/dist/chunks/{variable-draft-DOX03R4A.js → variable-draft-BQ3OMjvy.js} +4 -4
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +1527 -1517
- package/dist/format-utils/index.js +230 -231
- package/dist/index.js +236 -237
- 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/components/surfboard/filter/types.d.ts +5 -4
- package/dist/types/components/ui-custom/date-range-presets.d.ts +1 -17
- package/dist/types/index.js +9 -9
- package/dist/types/lib/hooks/use-date-filter.d.ts +3 -3
- package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +1 -1
- package/dist/types/lib/types/explorer-types.d.ts +2 -2
- package/dist/types/lib/types/index.d.ts +1 -1
- package/dist/types/lib/utils/card-definition.d.ts +7 -7
- package/dist/types/shared/analytics-protocol/agent-time-window.d.ts +84 -0
- package/dist/types/shared/analytics-protocol/applied-constraints.d.ts +2 -2
- package/dist/types/shared/analytics-protocol/contracts.d.ts +8 -17
- package/dist/types/shared/analytics-protocol/fixtures.d.ts +3 -2
- package/dist/types/shared/analytics-protocol/index.d.ts +2 -4
- package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +4 -4
- package/dist/types/shared/analytics-protocol/relative-date/describe.d.ts +18 -0
- package/dist/types/shared/analytics-protocol/relative-date/index.d.ts +7 -0
- package/dist/types/shared/analytics-protocol/relative-date/limits.d.ts +3 -0
- package/dist/types/shared/analytics-protocol/relative-date/presets.d.ts +11 -0
- package/dist/types/shared/analytics-protocol/relative-date/resolve.d.ts +49 -0
- package/dist/types/shared/analytics-protocol/relative-date/schemas.d.ts +76 -0
- package/dist/types/shared/analytics-protocol/relative-date/traits.d.ts +51 -0
- package/dist/types/shared/analytics-protocol/relative-date/window.d.ts +111 -0
- package/dist/types/shared/analytics-protocol/selection-contract.d.ts +1 -1
- package/dist/types/shared/assistant-protocol/context.d.ts +12 -12
- package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +0 -2
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +155 -1753
- package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +8 -4
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +74 -74
- package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +20 -20
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +3 -0
- package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +10 -2
- package/dist/types/shared/format-utils/filter-detail.d.ts +2 -8
- package/dist/types/shared/format-utils/filter-line.d.ts +2 -2
- package/dist/types/shared/format-utils/matrix-continuation.d.ts +3 -3
- package/dist/types/shared/temporal/index.d.ts +0 -2
- package/dist/types/shared/temporal/temporal-parity-fixtures.d.ts +2 -2
- package/package.json +2 -24
- package/DATA_APP_SDK.md +0 -339
- package/dist/chunks/dashboard-json-Cxp3inxd.js +0 -68
- package/dist/chunks/filter-value-text-7zhmth1S.js +0 -163
- package/dist/chunks/index-CuHybtft.js +0 -51
- package/dist/chunks/matrix-analytical-definition-C9xB_T84.js +0 -717
- package/dist/chunks/matrix-card-BSUeSXpD.js +0 -42
- package/dist/chunks/matrix-member-presentation-DZNgQpUq.js +0 -105
- package/dist/chunks/operators-B3zZoskU.js +0 -66
- package/dist/chunks/pivot-result-contract-expectations-Ddh1rNz5.js +0 -56
- package/dist/chunks/raw-temporal-value-Bqz8wc7L.js +0 -242
- package/dist/chunks/selection-reducer-OaJ-N5uN.js +0 -46
- package/dist/chunks/source-entity-resolution-DF6GulDn.js +0 -607
- package/dist/chunks/validators-wtjw0aw6.js +0 -3332
- package/dist/data-app-sdk/index.js +0 -1412
- package/dist/data-app-sdk-adapters/index.js +0 -361
- package/dist/data-app-sdk-validation/index.js +0 -1031
- package/dist/types/data-app-sdk/adapters.d.ts +0 -35
- package/dist/types/data-app-sdk/builders.d.ts +0 -62
- package/dist/types/data-app-sdk/contracts.d.ts +0 -419
- package/dist/types/data-app-sdk/executor.d.ts +0 -5
- package/dist/types/data-app-sdk/field-catalog-validation.d.ts +0 -29
- package/dist/types/data-app-sdk/hooks.d.ts +0 -11
- package/dist/types/data-app-sdk/index.d.ts +0 -9
- package/dist/types/data-app-sdk/provider.d.ts +0 -8
- package/dist/types/data-app-sdk/relationship-aware-field-policy.d.ts +0 -21
- package/dist/types/data-app-sdk/selection.d.ts +0 -2
- package/dist/types/data-app-sdk/validation.d.ts +0 -58
- package/dist/types/data-app-sdk-adapters.d.ts +0 -2
- package/dist/types/data-app-sdk-validation.d.ts +0 -2
- package/dist/types/data-app-sdk.d.ts +0 -2
- package/dist/types/shared/analytics-protocol/relative-date-filter.d.ts +0 -68
- package/dist/types/shared/analytics-protocol/relative-date-label.d.ts +0 -20
- package/dist/types/shared/analytics-protocol/time-window-schema.d.ts +0 -314
- package/dist/types/shared/analytics-protocol/time-window.d.ts +0 -52
- package/dist/types/shared/temporal/relative-date.d.ts +0 -21
- package/dist/types/shared/temporal/time-window-periods.d.ts +0 -21
- package/src/data-app-sdk/README.md +0 -402
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
import { jsx as t, jsxs as s, Fragment as U } from "react/jsx-runtime";
|
|
2
|
-
import la, { useState as A, useEffect as
|
|
3
|
-
import {
|
|
4
|
-
import { c as we, B as L, X as Qe, n as ze, s as xe, L as de, l as Pt, e as Bt, k as Jn, z as Ot, P as
|
|
5
|
-
import { L as Ue } from "./layout-grid-
|
|
6
|
-
import "./
|
|
7
|
-
import {
|
|
8
|
-
import "./matrix-operation-contract-
|
|
2
|
+
import la, { useState as A, useEffect as Ee, useCallback as ie, useMemo as Y, useLayoutEffect as Ut, useRef as et, useContext as da } from "react";
|
|
3
|
+
import { d9 as it, bu as Le, bv as Ve, bx as Pe, da as Ba, aU as $e, aR as ot, db as Oa, dc as lt, dd as Ct, a7 as dt, a4 as ve, u as w, de as _a, df as Ma, bt as M, dg as Ra, a6 as oe, aP as za, bZ as Ua, dh as $a, di as ja, bn as ca, bN as be, ch as ua, bM as tt, o as qa, k as Wa, dj as Qa, ck as wt, cl as St, cm as kt, cn as Dt, co as At, cp as Ft, cq as Et, cr as ha, cu as It, dk as Ka, dl as Ha, c9 as pt, c6 as je, c7 as qe, dm as ma, c8 as We, bV as re, ci as Ga, cd as at, dn as Ya, bS as Xa, bw as Tt, by as ct, dp as pa, bs as Ja, dq as fa, be as ut, dr as Za, bf as en, i as tn, ds as an, b9 as nn, w as rn, t as sn, dt as on, du as ln, dv as ga, dw as dn, dx as cn, dy as Ce, dz as un, R as ba, dA as hn, dB as mn, aM as pn, dC as fn, dD as ge, dE as gn, W as Lt, dF as bn, dG as ft, dH as xn, dI as $t, dJ as vn, dK as yn, dL as Nn, dM as xa, cK as Cn, dN as wn, dO as Sn, dP as Vt, cv as va, dQ as kn, dR as jt, dS as Dn, dT as An, dU as Fn, dV as En, aT as In, bo as Tn, bY as ya, dW as Ln, dX as Vn, dY as Xe, dZ as Pn, d_ as Bn, d$ as On, A as _n, aB as Mn, aC as Rn, ah as zn, ag as Un, af as $n, ae as jn, ab as qn, a9 as Wn, e0 as Qn, e1 as Kn, e2 as Hn, e3 as Gn, e4 as Yn, az as Xn } from "./semaphor-ready-indicator-BNkaANsG.js";
|
|
4
|
+
import { c as we, B as L, X as Qe, n as ze, s as xe, L as de, l as Pt, e as Bt, k as Jn, z as Ot, P as Ie, a5 as Na, d as Te, a as nt, S as Ca, b as Nt, t as Se, u as ke, v as De, w as Ae, x as fe, a6 as Zn } from "./code-editor-BsxHzm9u.js";
|
|
5
|
+
import { L as Ue } from "./layout-grid-BIcoFfdS.js";
|
|
6
|
+
import { c as J } from "./_commonjsHelpers-Bid1ZNYj.js";
|
|
7
|
+
import { S as er } from "./validators-B8fpdinG.js";
|
|
8
|
+
import "./matrix-operation-contract-DCVinw1o.js";
|
|
9
9
|
import "./analytics-base-schemas-BaIQrEzX.js";
|
|
10
|
-
import "zod";
|
|
11
10
|
import "../value-format-preferences/index.js";
|
|
12
|
-
import { c as J } from "./_commonjsHelpers-DimLPMtv.js";
|
|
13
11
|
import { s as Je } from "./normalize-dashboard-for-dirty-check-XKgH3GFX.js";
|
|
14
|
-
import {
|
|
12
|
+
import { bE as qt, ba as Wt, el as Qt, gI as tr, gJ as rt, gb as Kt, gK as ar, o as Ke, gL as nr, p as rr, g8 as sr, gM as ir, gN as or, cs as lr, gO as dr, l as cr, f4 as ur, gP as hr, gQ as mr, a as _t, aM as pr, a4 as fr, c6 as gr, gR as br, gS as xr, ch as vr, gT as yr, gU as Ht, gV as Nr } from "./resolve-dashboard-input-context-KqvcLcTM.js";
|
|
15
13
|
import { createPortal as Cr } from "react-dom";
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
14
|
+
import "zod";
|
|
15
|
+
import { aK as Gt, ar as wr } from "./temporal-input-presentation-scSWQXAB.js";
|
|
16
|
+
import { aA as Sr, an as kr, D as Dr, a8 as st, R as Ar } from "./bookmark-state-CflS88gq.js";
|
|
18
17
|
import "./index-RNaTnE3m.js";
|
|
19
18
|
import "./context-R31TSL5V.js";
|
|
20
|
-
import { S as wa } from "./save-
|
|
21
|
-
import { V as Fr, L as
|
|
22
|
-
import { m as Br, k as Da, n as Aa } from "./report-preferences-dialog-
|
|
23
|
-
import { v as Or, E as _r } from "./filter-reach-copy-
|
|
24
|
-
import { a as Yt, d as Xt, c as Mr, i as Rr, b as zr, e as Ur, v as Jt, f as Zt, g as $r } from "./variable-draft-
|
|
25
|
-
import { g as pe, d as jr, a as qr } from "./index-
|
|
19
|
+
import { S as wa } from "./save-C6VmEJTA.js";
|
|
20
|
+
import { V as Fr, L as Er, a as Ir, u as Sa, C as ka, F as Tr, b as Lr, A as Vr, c as Pr } from "./card-filter-builder-BS982X7x.js";
|
|
21
|
+
import { m as Br, k as Da, n as Aa } from "./report-preferences-dialog-Xc8_GFju.js";
|
|
22
|
+
import { v as Or, E as _r } from "./filter-reach-copy-hcQ4os0u.js";
|
|
23
|
+
import { a as Yt, d as Xt, c as Mr, i as Rr, b as zr, e as Ur, v as Jt, f as Zt, g as $r } from "./variable-draft-BQ3OMjvy.js";
|
|
24
|
+
import { g as pe, d as jr, a as qr } from "./index-G4q89J6O.js";
|
|
26
25
|
/**
|
|
27
26
|
* @license lucide-react v0.453.0 - ISC
|
|
28
27
|
*
|
|
@@ -148,7 +147,7 @@ function Jr({
|
|
|
148
147
|
isCreating: n
|
|
149
148
|
}) {
|
|
150
149
|
const i = it("interactive"), [o, l] = A(""), [u, c] = A("");
|
|
151
|
-
|
|
150
|
+
Ee(() => {
|
|
152
151
|
e || (l(""), c(""));
|
|
153
152
|
}, [e]);
|
|
154
153
|
const d = () => {
|
|
@@ -248,7 +247,7 @@ function Jr({
|
|
|
248
247
|
}
|
|
249
248
|
function Zr(e) {
|
|
250
249
|
const [a, r] = A(null), [n, i] = A(null), o = Ba();
|
|
251
|
-
return
|
|
250
|
+
return Ee(() => {
|
|
252
251
|
if (!e || e.trim() === "") {
|
|
253
252
|
r(null), i(null);
|
|
254
253
|
return;
|
|
@@ -429,7 +428,7 @@ function Be() {
|
|
|
429
428
|
setIsDashboardEditing: _,
|
|
430
429
|
setIsVisualEditing: b,
|
|
431
430
|
clearSelectedFrameId: S
|
|
432
|
-
} = ve(), v = w((O) => O.selectedSheetId), T = w((O) => O.selectedFrameId),
|
|
431
|
+
} = ve(), v = w((O) => O.selectedSheetId), T = w((O) => O.selectedFrameId), E = w((O) => O.dashboard), H = w(
|
|
433
432
|
(O) => O.inlineFilterValuesMap
|
|
434
433
|
), B = _a((i == null ? void 0 : i.id) || "", {
|
|
435
434
|
enabled: !!(i != null && i.id) && !!(e != null && e.accessToken)
|
|
@@ -461,7 +460,7 @@ function Be() {
|
|
|
461
460
|
setApplyFilters: P,
|
|
462
461
|
setIsDashboardEditing: _,
|
|
463
462
|
setIsVisualEditing: b,
|
|
464
|
-
dashboard:
|
|
463
|
+
dashboard: E,
|
|
465
464
|
selectedSheetId: v,
|
|
466
465
|
selectedFrameId: T,
|
|
467
466
|
inlineFilterValuesMap: H
|
|
@@ -495,7 +494,7 @@ function Be() {
|
|
|
495
494
|
P,
|
|
496
495
|
D,
|
|
497
496
|
S,
|
|
498
|
-
|
|
497
|
+
E,
|
|
499
498
|
v,
|
|
500
499
|
T,
|
|
501
500
|
H
|
|
@@ -507,7 +506,7 @@ function Be() {
|
|
|
507
506
|
try {
|
|
508
507
|
if (o(O), !v)
|
|
509
508
|
return te("No sheet selected. Please select a sheet first.");
|
|
510
|
-
const { data: G, fromCache:
|
|
509
|
+
const { data: G, fromCache: I } = await aa(
|
|
511
510
|
a.apiServiceUrl,
|
|
512
511
|
(e == null ? void 0 : e.accessToken) || "",
|
|
513
512
|
O.id,
|
|
@@ -524,7 +523,7 @@ function Be() {
|
|
|
524
523
|
visualId: O.id
|
|
525
524
|
// Link this frame to the library visual
|
|
526
525
|
};
|
|
527
|
-
return await n(v, R), _(!0), { success: !0, fromCache:
|
|
526
|
+
return await n(v, R), _(!0), { success: !0, fromCache: I };
|
|
528
527
|
} catch (G) {
|
|
529
528
|
return console.error("Error adding visual:", G), te(
|
|
530
529
|
G instanceof Error ? G.message : "Failed to add visual to dashboard"
|
|
@@ -552,21 +551,21 @@ function Be() {
|
|
|
552
551
|
refetch: B.refetch
|
|
553
552
|
};
|
|
554
553
|
}
|
|
555
|
-
function
|
|
554
|
+
function Ea(e) {
|
|
556
555
|
return e ? new Date(e).toLocaleDateString("en-US", {
|
|
557
556
|
month: "short",
|
|
558
557
|
day: "numeric",
|
|
559
558
|
year: "numeric"
|
|
560
559
|
}) : "Unknown";
|
|
561
560
|
}
|
|
562
|
-
function
|
|
561
|
+
function Ia(e, a) {
|
|
563
562
|
var n;
|
|
564
563
|
const r = (n = e.ownership.createdBy) == null ? void 0 : n.type;
|
|
565
564
|
return r === "tenant" || r === "organization" && a;
|
|
566
565
|
}
|
|
567
566
|
function Mt(e, a) {
|
|
568
567
|
var r, n;
|
|
569
|
-
return
|
|
568
|
+
return Ia(e, a) ? ((r = e.ownership.createdBy) == null ? void 0 : r.name) || ((n = e.createdByTenantUserRel) == null ? void 0 : n.name) || e.lastModifiedBy || "Unknown" : "Organization";
|
|
570
569
|
}
|
|
571
570
|
function ns(e, a) {
|
|
572
571
|
return Mt(e, a).split(/\s+/).filter(Boolean).slice(0, 2).map((n) => n.charAt(0).toUpperCase()).join("") || "?";
|
|
@@ -579,7 +578,7 @@ function ss({ visual: e }) {
|
|
|
579
578
|
const a = e.ownership.status === "public" ? "Public" : e.ownership.status === "shared" || e.ownership.sharedCount > 0 ? "Shared" : "Private";
|
|
580
579
|
return /* @__PURE__ */ t("span", { className: "inline-flex items-center rounded-[4px] border border-border/60 px-1.5 py-px text-[11px] text-muted-foreground", children: a });
|
|
581
580
|
}
|
|
582
|
-
function
|
|
581
|
+
function qi({
|
|
583
582
|
open: e,
|
|
584
583
|
onOpenChange: a
|
|
585
584
|
}) {
|
|
@@ -593,7 +592,7 @@ function Wi({
|
|
|
593
592
|
a(!1), P();
|
|
594
593
|
}, { selectVisual: _ } = Ct(), { handleAddLibraryVisual: b, handleEditLibraryVisual: S } = Be(), { isConsoleMode: v } = Ua(), {
|
|
595
594
|
resources: T,
|
|
596
|
-
isLoading:
|
|
595
|
+
isLoading: E,
|
|
597
596
|
isError: H,
|
|
598
597
|
createResource: B,
|
|
599
598
|
updateResource: Q,
|
|
@@ -608,7 +607,7 @@ function Wi({
|
|
|
608
607
|
}
|
|
609
608
|
), {
|
|
610
609
|
startUpdating: G,
|
|
611
|
-
stopUpdating:
|
|
610
|
+
stopUpdating: I,
|
|
612
611
|
isUpdating: ae
|
|
613
612
|
} = ja(), j = T, R = Y(() => {
|
|
614
613
|
const C = n.trim().toLowerCase();
|
|
@@ -713,10 +712,10 @@ function Wi({
|
|
|
713
712
|
},
|
|
714
713
|
{
|
|
715
714
|
onSuccess: () => {
|
|
716
|
-
|
|
715
|
+
I(p.id, Ne), m(null);
|
|
717
716
|
},
|
|
718
717
|
onError: () => {
|
|
719
|
-
|
|
718
|
+
I(p.id, Ne);
|
|
720
719
|
}
|
|
721
720
|
}
|
|
722
721
|
);
|
|
@@ -780,7 +779,7 @@ function Wi({
|
|
|
780
779
|
}
|
|
781
780
|
)
|
|
782
781
|
] }),
|
|
783
|
-
/* @__PURE__ */ t("div", { className: "min-h-0 flex-1 overflow-auto", children:
|
|
782
|
+
/* @__PURE__ */ t("div", { className: "min-h-0 flex-1 overflow-auto", children: E ? /* @__PURE__ */ t("div", { className: "p-3", children: /* @__PURE__ */ t(Xr, {}) }) : H ? /* @__PURE__ */ t("div", { className: "flex flex-col items-center gap-2 px-4 py-12 text-center", children: /* @__PURE__ */ t("p", { className: "text-[13px] text-destructive", children: "Failed to load visuals" }) }) : R.length === 0 ? /* @__PURE__ */ s("div", { className: "flex flex-col items-center gap-2 px-4 py-12 text-center", children: [
|
|
784
783
|
/* @__PURE__ */ t(Ue, { className: "h-5 w-5 text-muted-foreground/60" }),
|
|
785
784
|
/* @__PURE__ */ t("p", { className: "text-[13px] font-medium", children: n ? "No visuals found" : "No visuals yet" }),
|
|
786
785
|
/* @__PURE__ */ t("p", { className: "text-[12px] text-muted-foreground", children: n ? "Try a different search." : "Create a saved visual to add it here." })
|
|
@@ -926,7 +925,7 @@ function Wi({
|
|
|
926
925
|
/* @__PURE__ */ t(At, { children: "This cannot be undone. Visuals already added to dashboards may need to be removed from those dashboards separately." })
|
|
927
926
|
] }),
|
|
928
927
|
/* @__PURE__ */ s(Ft, { children: [
|
|
929
|
-
/* @__PURE__ */ t(
|
|
928
|
+
/* @__PURE__ */ t(Et, { disabled: Z, children: "Cancel" }),
|
|
930
929
|
/* @__PURE__ */ s(
|
|
931
930
|
ha,
|
|
932
931
|
{
|
|
@@ -966,7 +965,7 @@ function is({
|
|
|
966
965
|
return /* @__PURE__ */ s("div", { className: "min-w-[48rem]", children: [
|
|
967
966
|
/* @__PURE__ */ s("div", { className: "grid h-9 grid-cols-[2.5rem_minmax(14rem,1.8fr)_minmax(10rem,1fr)_8rem_7rem_5rem_5.5rem] items-center border-b border-border/60 px-3 text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: [
|
|
968
967
|
/* @__PURE__ */ t(
|
|
969
|
-
|
|
968
|
+
It,
|
|
970
969
|
{
|
|
971
970
|
checked: r ? !0 : n ? "indeterminate" : !1,
|
|
972
971
|
onCheckedChange: i,
|
|
@@ -1027,7 +1026,7 @@ function os({
|
|
|
1027
1026
|
),
|
|
1028
1027
|
children: [
|
|
1029
1028
|
/* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
|
|
1030
|
-
|
|
1029
|
+
It,
|
|
1031
1030
|
{
|
|
1032
1031
|
checked: a,
|
|
1033
1032
|
onCheckedChange: () => r(e.id),
|
|
@@ -1068,7 +1067,7 @@ function os({
|
|
|
1068
1067
|
/* @__PURE__ */ t("div", { className: "flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-muted text-[9px] font-medium text-muted-foreground", children: ns(e, p) }),
|
|
1069
1068
|
/* @__PURE__ */ t("span", { className: "truncate text-muted-foreground", children: Mt(e, p) })
|
|
1070
1069
|
] }),
|
|
1071
|
-
/* @__PURE__ */ t("span", { className: "text-muted-foreground", children:
|
|
1070
|
+
/* @__PURE__ */ t("span", { className: "text-muted-foreground", children: Ea(e.updatedAt) }),
|
|
1072
1071
|
/* @__PURE__ */ t(ss, { visual: e }),
|
|
1073
1072
|
/* @__PURE__ */ t("span", { className: "text-right tabular-nums text-muted-foreground", children: e.ownership.sharedCount > 0 ? e.ownership.sharedCount : "—" }),
|
|
1074
1073
|
/* @__PURE__ */ t(
|
|
@@ -1174,13 +1173,13 @@ function ls({
|
|
|
1174
1173
|
] }),
|
|
1175
1174
|
/* @__PURE__ */ t(at, {}),
|
|
1176
1175
|
/* @__PURE__ */ s("div", { className: "space-y-1 px-2 py-1.5 text-[11px] text-muted-foreground", children: [
|
|
1177
|
-
|
|
1176
|
+
Ia(e, c) && /* @__PURE__ */ s("div", { className: "flex items-center gap-1.5", children: [
|
|
1178
1177
|
/* @__PURE__ */ t(Ya, { className: "h-3 w-3" }),
|
|
1179
1178
|
/* @__PURE__ */ t("span", { className: "truncate", children: Mt(e, c) })
|
|
1180
1179
|
] }),
|
|
1181
1180
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-1.5", children: [
|
|
1182
1181
|
/* @__PURE__ */ t(Xa, { className: "h-3 w-3" }),
|
|
1183
|
-
/* @__PURE__ */ t("span", { children:
|
|
1182
|
+
/* @__PURE__ */ t("span", { children: Ea(e.updatedAt) })
|
|
1184
1183
|
] })
|
|
1185
1184
|
] })
|
|
1186
1185
|
]
|
|
@@ -1191,7 +1190,7 @@ function ls({
|
|
|
1191
1190
|
}
|
|
1192
1191
|
);
|
|
1193
1192
|
}
|
|
1194
|
-
function
|
|
1193
|
+
function Wi(e, a, r = !1) {
|
|
1195
1194
|
const n = w((d) => d.dashboard), i = w(
|
|
1196
1195
|
(d) => d.isDashboardEditing
|
|
1197
1196
|
), o = w(
|
|
@@ -1536,17 +1535,17 @@ function hs() {
|
|
|
1536
1535
|
}
|
|
1537
1536
|
const S = f(), T = S.cards.length === 1 ? {
|
|
1538
1537
|
...S,
|
|
1539
|
-
cards: S.cards.map((
|
|
1540
|
-
...
|
|
1538
|
+
cards: S.cards.map((E) => ({
|
|
1539
|
+
...E,
|
|
1541
1540
|
title: b.name
|
|
1542
1541
|
// Use visual name as card title
|
|
1543
1542
|
}))
|
|
1544
1543
|
} : S;
|
|
1545
1544
|
if (b.saveToLibrary) {
|
|
1546
|
-
let
|
|
1545
|
+
let E = null;
|
|
1547
1546
|
if (b.saveToCurrentDashboard)
|
|
1548
1547
|
try {
|
|
1549
|
-
|
|
1548
|
+
E = await k(T, {
|
|
1550
1549
|
previousFrame: rt(m, T.id)
|
|
1551
1550
|
});
|
|
1552
1551
|
} catch (B) {
|
|
@@ -1558,7 +1557,7 @@ function hs() {
|
|
|
1558
1557
|
);
|
|
1559
1558
|
return;
|
|
1560
1559
|
}
|
|
1561
|
-
n(b.saveToCurrentDashboard), o(T), u(
|
|
1560
|
+
n(b.saveToCurrentDashboard), o(T), u(E);
|
|
1562
1561
|
const H = {
|
|
1563
1562
|
title: b.name,
|
|
1564
1563
|
description: b.description,
|
|
@@ -1568,7 +1567,7 @@ function hs() {
|
|
|
1568
1567
|
};
|
|
1569
1568
|
D.mutate(H);
|
|
1570
1569
|
} else if (b.saveToCurrentDashboard) {
|
|
1571
|
-
const
|
|
1570
|
+
const E = {
|
|
1572
1571
|
...T,
|
|
1573
1572
|
// Card title already synced
|
|
1574
1573
|
id: Kt(),
|
|
@@ -1579,7 +1578,7 @@ function hs() {
|
|
|
1579
1578
|
const H = await k(T, {
|
|
1580
1579
|
previousFrame: rt(m, T.id)
|
|
1581
1580
|
});
|
|
1582
|
-
y(p,
|
|
1581
|
+
y(p, E, {
|
|
1583
1582
|
semanticExecutionPayload: H
|
|
1584
1583
|
}), M.success("Visual saved to dashboard"), a(!1), N(!1);
|
|
1585
1584
|
} catch (H) {
|
|
@@ -1594,7 +1593,7 @@ function hs() {
|
|
|
1594
1593
|
isSaving: D.isPending
|
|
1595
1594
|
};
|
|
1596
1595
|
}
|
|
1597
|
-
function
|
|
1596
|
+
function Qi(e = {}) {
|
|
1598
1597
|
const { isInspectionMode: a } = en(), r = oe((B) => B.frame), n = oe((B) => B.editorContext), i = tn((B) => B.selectedVisual), o = w((B) => B.selectedFrameId), l = w((B) => B.selectedSheetId), u = w((B) => B.dashboard), { setIsVisualEditing: c, updateFrame: d } = ve(), [h, p] = A(!1), [m, f] = A("both"), g = ut(), y = (n == null ? void 0 : n.type) === "documentSection", N = !!(r != null && r.visualId || i != null && i.id), k = !!(r != null && r.visualId && o), V = N && !k, {
|
|
1599
1598
|
saveAsDialogOpen: P,
|
|
1600
1599
|
setSaveAsDialogOpen: D,
|
|
@@ -1619,7 +1618,7 @@ function Ki(e = {}) {
|
|
|
1619
1618
|
/* @__PURE__ */ t(gt, { className: "rounded-control", variant: "default" }),
|
|
1620
1619
|
/* @__PURE__ */ t(bt, {})
|
|
1621
1620
|
] });
|
|
1622
|
-
const
|
|
1621
|
+
const E = async () => {
|
|
1623
1622
|
if (!l) {
|
|
1624
1623
|
M.error("No sheet selected");
|
|
1625
1624
|
return;
|
|
@@ -1676,7 +1675,7 @@ function Ki(e = {}) {
|
|
|
1676
1675
|
/* @__PURE__ */ s(
|
|
1677
1676
|
re,
|
|
1678
1677
|
{
|
|
1679
|
-
onClick:
|
|
1678
|
+
onClick: E,
|
|
1680
1679
|
disabled: h,
|
|
1681
1680
|
children: [
|
|
1682
1681
|
/* @__PURE__ */ t(Bt, { className: "h-3.5 w-3.5" }),
|
|
@@ -1703,7 +1702,7 @@ function Ki(e = {}) {
|
|
|
1703
1702
|
onClick: () => H("library"),
|
|
1704
1703
|
disabled: v,
|
|
1705
1704
|
children: [
|
|
1706
|
-
/* @__PURE__ */ t(
|
|
1705
|
+
/* @__PURE__ */ t(Er, { className: "h-3.5 w-3.5" }),
|
|
1707
1706
|
"Save as Library Visual"
|
|
1708
1707
|
]
|
|
1709
1708
|
}
|
|
@@ -1714,7 +1713,7 @@ function Ki(e = {}) {
|
|
|
1714
1713
|
onClick: () => H("both"),
|
|
1715
1714
|
disabled: v,
|
|
1716
1715
|
children: [
|
|
1717
|
-
/* @__PURE__ */ t(
|
|
1716
|
+
/* @__PURE__ */ t(Ir, { className: "h-3.5 w-3.5" }),
|
|
1718
1717
|
"Save Copy as Linked Visual"
|
|
1719
1718
|
]
|
|
1720
1719
|
}
|
|
@@ -1741,7 +1740,7 @@ function Ki(e = {}) {
|
|
|
1741
1740
|
)
|
|
1742
1741
|
] });
|
|
1743
1742
|
}
|
|
1744
|
-
function
|
|
1743
|
+
function Ki({ className: e }) {
|
|
1745
1744
|
const a = oe((h) => h.isDevMode), r = oe((h) => h.card.type), n = w((h) => h.isVisualEditing), { setIsDevMode: i } = dt(), { config: o } = da(an).tokenProps, l = (o == null ? void 0 : o.showAdvancedMode) !== !1;
|
|
1746
1745
|
if (!n || !l || !ar(r))
|
|
1747
1746
|
return null;
|
|
@@ -1764,7 +1763,7 @@ function Hi({ className: e }) {
|
|
|
1764
1763
|
}
|
|
1765
1764
|
);
|
|
1766
1765
|
}
|
|
1767
|
-
function
|
|
1766
|
+
function Hi() {
|
|
1768
1767
|
const e = Br() === "sm", a = w((c) => c.isDashboardEditing), r = w((c) => c.isVisualEditing), n = w((c) => {
|
|
1769
1768
|
var h;
|
|
1770
1769
|
const d = ((h = c.dashboard) == null ? void 0 : h.sheets) ?? [];
|
|
@@ -1826,7 +1825,7 @@ function Gi() {
|
|
|
1826
1825
|
] })
|
|
1827
1826
|
] });
|
|
1828
1827
|
}
|
|
1829
|
-
function
|
|
1828
|
+
function Gi() {
|
|
1830
1829
|
const e = w((i) => i.screenSizesOpen), a = w((i) => {
|
|
1831
1830
|
var u, c;
|
|
1832
1831
|
const o = ((u = i.dashboard) == null ? void 0 : u.sheets) ?? [], l = o.find((d) => d.id === i.selectedSheetId) ?? o[0];
|
|
@@ -1857,7 +1856,7 @@ function Yi() {
|
|
|
1857
1856
|
}
|
|
1858
1857
|
);
|
|
1859
1858
|
}
|
|
1860
|
-
function
|
|
1859
|
+
function Yi({ dashboardId: e }) {
|
|
1861
1860
|
const { openDashboardId: a, access: r, printMode: n, serverIsFavorite: i, fetchedAt: o } = w(
|
|
1862
1861
|
nn((c) => {
|
|
1863
1862
|
var d;
|
|
@@ -1881,7 +1880,7 @@ function Xi({ dashboardId: e }) {
|
|
|
1881
1880
|
}
|
|
1882
1881
|
);
|
|
1883
1882
|
}
|
|
1884
|
-
function
|
|
1883
|
+
function Xi({
|
|
1885
1884
|
width: e,
|
|
1886
1885
|
hasOverflowMenu: a = !0,
|
|
1887
1886
|
children: r
|
|
@@ -1907,11 +1906,11 @@ function Ji({
|
|
|
1907
1906
|
);
|
|
1908
1907
|
return /* @__PURE__ */ t(Aa.Provider, { value: h, children: r });
|
|
1909
1908
|
}
|
|
1910
|
-
function
|
|
1909
|
+
function Ji() {
|
|
1911
1910
|
const { setAnchorSlot: e } = da(Aa);
|
|
1912
1911
|
return /* @__PURE__ */ t("span", { ref: e, "aria-hidden": !0, className: "relative -mr-1.5 block h-7 w-0" });
|
|
1913
1912
|
}
|
|
1914
|
-
function
|
|
1913
|
+
function Zi(e) {
|
|
1915
1914
|
var c;
|
|
1916
1915
|
const { authToken: a, tokenProps: r } = $e(), { data: n } = on(), { mutate: i, isPending: o } = ln(), l = !!e && ((c = n == null ? void 0 : n.preference) == null ? void 0 : c.defaultDashboardId) === e, u = !n || o;
|
|
1917
1916
|
return {
|
|
@@ -1923,7 +1922,7 @@ function eo(e) {
|
|
|
1923
1922
|
}
|
|
1924
1923
|
};
|
|
1925
1924
|
}
|
|
1926
|
-
function
|
|
1925
|
+
function eo({
|
|
1927
1926
|
open: e,
|
|
1928
1927
|
onOpenChange: a,
|
|
1929
1928
|
onSave: r,
|
|
@@ -1955,7 +1954,7 @@ function to({
|
|
|
1955
1954
|
children: c
|
|
1956
1955
|
}
|
|
1957
1956
|
),
|
|
1958
|
-
/* @__PURE__ */ t(
|
|
1957
|
+
/* @__PURE__ */ t(Et, { disabled: i, children: u }),
|
|
1959
1958
|
/* @__PURE__ */ t(L, { type: "button", size: "xs", onClick: r, disabled: i, children: i ? /* @__PURE__ */ s(U, { children: [
|
|
1960
1959
|
/* @__PURE__ */ t(de, { className: "mr-2 h-3.5 w-3.5 animate-spin" }),
|
|
1961
1960
|
"Saving..."
|
|
@@ -1963,7 +1962,7 @@ function to({
|
|
|
1963
1962
|
] })
|
|
1964
1963
|
] }) });
|
|
1965
1964
|
}
|
|
1966
|
-
async function
|
|
1965
|
+
async function to(e) {
|
|
1967
1966
|
var o, l;
|
|
1968
1967
|
const a = (l = (o = w.getState()) == null ? void 0 : o.authToken) == null ? void 0 : l.accessToken;
|
|
1969
1968
|
if (!a)
|
|
@@ -2110,7 +2109,7 @@ function Ta({
|
|
|
2110
2109
|
] })
|
|
2111
2110
|
] });
|
|
2112
2111
|
}
|
|
2113
|
-
function
|
|
2112
|
+
function ao({ variant: e }) {
|
|
2114
2113
|
const { snapshot: a, markSeen: r } = Lt(), n = a.runningCount > 0 ? a.runningCount > 9 ? "9+" : String(a.runningCount) : a.hasUnseenFinished ? "" : null, i = Da("activity", "md", {
|
|
2115
2114
|
label: ge.title,
|
|
2116
2115
|
icon: /* @__PURE__ */ t(ea, { className: "h-3.5 w-3.5" }),
|
|
@@ -2119,7 +2118,7 @@ function no({ variant: e }) {
|
|
|
2119
2118
|
onOpen: r
|
|
2120
2119
|
});
|
|
2121
2120
|
return i.collapsed ? /* @__PURE__ */ s(
|
|
2122
|
-
|
|
2121
|
+
Ie,
|
|
2123
2122
|
{
|
|
2124
2123
|
open: i.popoverOpen,
|
|
2125
2124
|
onOpenChange: (o) => {
|
|
@@ -2142,7 +2141,7 @@ function no({ variant: e }) {
|
|
|
2142
2141
|
)
|
|
2143
2142
|
]
|
|
2144
2143
|
}
|
|
2145
|
-
) : /* @__PURE__ */ s(
|
|
2144
|
+
) : /* @__PURE__ */ s(Ie, { onOpenChange: (o) => {
|
|
2146
2145
|
o && r();
|
|
2147
2146
|
}, children: [
|
|
2148
2147
|
/* @__PURE__ */ t(nt, { asChild: !0, children: /* @__PURE__ */ s(
|
|
@@ -2251,12 +2250,12 @@ function gs({
|
|
|
2251
2250
|
new Map(
|
|
2252
2251
|
g.flatMap(
|
|
2253
2252
|
(v) => v.fieldChoices.map((T) => {
|
|
2254
|
-
var
|
|
2253
|
+
var E;
|
|
2255
2254
|
return [
|
|
2256
2255
|
T.value,
|
|
2257
2256
|
{
|
|
2258
2257
|
option: T,
|
|
2259
|
-
target: (
|
|
2258
|
+
target: (E = v.fieldTargetMap) == null ? void 0 : E[T.value]
|
|
2260
2259
|
}
|
|
2261
2260
|
];
|
|
2262
2261
|
})
|
|
@@ -2266,12 +2265,12 @@ function gs({
|
|
|
2266
2265
|
new Map(
|
|
2267
2266
|
g.flatMap(
|
|
2268
2267
|
(v) => v.metricChoices.map((T) => {
|
|
2269
|
-
var
|
|
2268
|
+
var E;
|
|
2270
2269
|
return [
|
|
2271
2270
|
T.value,
|
|
2272
2271
|
{
|
|
2273
2272
|
option: T,
|
|
2274
|
-
target: (
|
|
2273
|
+
target: (E = v.metricTargetMap) == null ? void 0 : E[T.value]
|
|
2275
2274
|
}
|
|
2276
2275
|
];
|
|
2277
2276
|
})
|
|
@@ -2280,11 +2279,11 @@ function gs({
|
|
|
2280
2279
|
), k = nr({
|
|
2281
2280
|
...m || {},
|
|
2282
2281
|
controls: []
|
|
2283
|
-
}), V = yn(m), P = (v, T,
|
|
2282
|
+
}), V = yn(m), P = (v, T, E) => {
|
|
2284
2283
|
f(
|
|
2285
2284
|
v,
|
|
2286
2285
|
T,
|
|
2287
|
-
fs(
|
|
2286
|
+
fs(E)
|
|
2288
2287
|
);
|
|
2289
2288
|
}, D = ie(() => {
|
|
2290
2289
|
if (o) {
|
|
@@ -2317,7 +2316,7 @@ function gs({
|
|
|
2317
2316
|
] }),
|
|
2318
2317
|
_
|
|
2319
2318
|
] });
|
|
2320
|
-
return n ? /* @__PURE__ */ s(
|
|
2319
|
+
return n ? /* @__PURE__ */ s(Ie, { open: h, onOpenChange: u, children: [
|
|
2321
2320
|
/* @__PURE__ */ t(nt, { asChild: !0, children: r || /* @__PURE__ */ s(L, { variant: "outline", className: "h-7 px-2", size: "sm", children: [
|
|
2322
2321
|
/* @__PURE__ */ t(Ca, { className: "mr-2 h-4 w-4" }),
|
|
2323
2322
|
"Controls"
|
|
@@ -2415,7 +2414,7 @@ function xs({
|
|
|
2415
2414
|
}
|
|
2416
2415
|
d(!1);
|
|
2417
2416
|
}, [n, i, d]), _ = ie(
|
|
2418
|
-
(v, T,
|
|
2417
|
+
(v, T, E) => {
|
|
2419
2418
|
!g || !(f != null && f.document) || m(
|
|
2420
2419
|
Cs({
|
|
2421
2420
|
dashboard: h,
|
|
@@ -2423,7 +2422,7 @@ function xs({
|
|
|
2423
2422
|
currentDocumentInputs: y,
|
|
2424
2423
|
nextControls: v,
|
|
2425
2424
|
nextDefaultValues: T,
|
|
2426
|
-
change:
|
|
2425
|
+
change: E
|
|
2427
2426
|
})
|
|
2428
2427
|
);
|
|
2429
2428
|
},
|
|
@@ -2568,7 +2567,7 @@ function ws({
|
|
|
2568
2567
|
o
|
|
2569
2568
|
),
|
|
2570
2569
|
children: [
|
|
2571
|
-
/* @__PURE__ */ s(
|
|
2570
|
+
/* @__PURE__ */ s(Ie, { open: e, onOpenChange: a, children: [
|
|
2572
2571
|
/* @__PURE__ */ t(nt, { asChild: !0, children: /* @__PURE__ */ s(
|
|
2573
2572
|
L,
|
|
2574
2573
|
{
|
|
@@ -2598,7 +2597,7 @@ function ws({
|
|
|
2598
2597
|
}
|
|
2599
2598
|
)
|
|
2600
2599
|
] }),
|
|
2601
|
-
/* @__PURE__ */ s(
|
|
2600
|
+
/* @__PURE__ */ s(Ie, { open: p, onOpenChange: m, children: [
|
|
2602
2601
|
/* @__PURE__ */ t(nt, { asChild: !0, children: /* @__PURE__ */ t(
|
|
2603
2602
|
L,
|
|
2604
2603
|
{
|
|
@@ -2633,7 +2632,7 @@ function ws({
|
|
|
2633
2632
|
function Ss() {
|
|
2634
2633
|
Lr();
|
|
2635
2634
|
const e = w((c) => c.selectedSheetId), a = w((c) => c.selectedFrameId), r = w((c) => c.dashboard), n = w((c) => c.actions.getSelectedFrame), { setSelectedFrameId: i } = ve(), { setCard: o } = dt(), l = oe((c) => c.card.dataSource);
|
|
2636
|
-
return
|
|
2635
|
+
return Ee(() => {
|
|
2637
2636
|
var d, h;
|
|
2638
2637
|
let c = n();
|
|
2639
2638
|
if (!c) {
|
|
@@ -2767,7 +2766,7 @@ function As({
|
|
|
2767
2766
|
onCheckedChange: n
|
|
2768
2767
|
}) {
|
|
2769
2768
|
return /* @__PURE__ */ s("div", { className: "flex items-center gap-2 rounded-control px-1 py-1 transition-colors hover:bg-muted/40 focus-within:bg-muted/40", children: [
|
|
2770
|
-
/* @__PURE__ */ t(
|
|
2769
|
+
/* @__PURE__ */ t(It, { id: e, checked: r, onCheckedChange: n }),
|
|
2771
2770
|
/* @__PURE__ */ t(
|
|
2772
2771
|
ze,
|
|
2773
2772
|
{
|
|
@@ -2778,7 +2777,7 @@ function As({
|
|
|
2778
2777
|
)
|
|
2779
2778
|
] });
|
|
2780
2779
|
}
|
|
2781
|
-
function
|
|
2780
|
+
function no({
|
|
2782
2781
|
size: e,
|
|
2783
2782
|
className: a,
|
|
2784
2783
|
primaryButtonClassName: r,
|
|
@@ -2874,11 +2873,11 @@ function Fs(e, a) {
|
|
|
2874
2873
|
};
|
|
2875
2874
|
});
|
|
2876
2875
|
}
|
|
2877
|
-
function
|
|
2876
|
+
function Es(e, a) {
|
|
2878
2877
|
const r = a ? e.places.filter((i) => i.sheetId === a).length : 0, n = e.places.length - r;
|
|
2879
2878
|
return e.places.length ? r && n ? `Used here · ${n} elsewhere` : r ? "Used here" : `Used in ${n} ${n === 1 ? "place" : "places"}` : "Not used yet";
|
|
2880
2879
|
}
|
|
2881
|
-
function
|
|
2880
|
+
function Is({
|
|
2882
2881
|
dashboard: e,
|
|
2883
2882
|
sheetId: a,
|
|
2884
2883
|
sheetTitle: r,
|
|
@@ -2952,24 +2951,24 @@ function ia({
|
|
|
2952
2951
|
/* @__PURE__ */ t("span", { className: J("block truncate text-[12px] font-medium text-foreground", !e.variable.label && "font-mono"), children: e.variable.label || e.variable.name }),
|
|
2953
2952
|
/* @__PURE__ */ t("span", { className: "mt-0.5 block truncate text-[11px] text-muted-foreground", children: e.question })
|
|
2954
2953
|
] }),
|
|
2955
|
-
/* @__PURE__ */ t("span", { className: J("truncate text-right text-[11px]", n ? "text-muted-foreground/70" : "text-muted-foreground"), children:
|
|
2954
|
+
/* @__PURE__ */ t("span", { className: J("truncate text-right text-[11px]", n ? "text-muted-foreground/70" : "text-muted-foreground"), children: Es(e, a) })
|
|
2956
2955
|
]
|
|
2957
2956
|
}
|
|
2958
2957
|
);
|
|
2959
2958
|
}
|
|
2960
|
-
function
|
|
2959
|
+
function ro() {
|
|
2961
2960
|
const e = w((r) => {
|
|
2962
2961
|
var n;
|
|
2963
2962
|
return ((n = r.dashboard.variables) == null ? void 0 : n.length) ?? 0;
|
|
2964
2963
|
}), a = w((r) => r.actions.setVariablesListOpen);
|
|
2965
2964
|
return { label: "Data variables", count: e, open: () => a(!0) };
|
|
2966
2965
|
}
|
|
2967
|
-
function
|
|
2966
|
+
function so() {
|
|
2968
2967
|
var c;
|
|
2969
2968
|
const e = w((d) => d.variablesListOpen), a = w((d) => d.actions.setVariablesListOpen), r = w((d) => d.dashboard), n = w((d) => d.selectedSheetId), i = w((d) => d.actions.openVariableEditor), o = it("interactive"), l = (c = r.sheets) == null ? void 0 : c.find((d) => d.id === n), u = (d) => {
|
|
2970
2969
|
a(!1), i(d);
|
|
2971
2970
|
};
|
|
2972
|
-
return /* @__PURE__ */ s(
|
|
2971
|
+
return /* @__PURE__ */ s(Ie, { open: e, onOpenChange: a, children: [
|
|
2973
2972
|
/* @__PURE__ */ t(Na, { asChild: !0, children: /* @__PURE__ */ t("span", { "aria-hidden": !0, className: "pointer-events-none inline-block h-7 w-0 self-center" }) }),
|
|
2974
2973
|
/* @__PURE__ */ t(
|
|
2975
2974
|
Te,
|
|
@@ -2981,7 +2980,7 @@ function io() {
|
|
|
2981
2980
|
className: "z-50 w-auto rounded-card border border-border/60 p-0 shadow-[0_10px_28px_rgba(0,0,0,0.14)] dark:shadow-[0_10px_28px_rgba(0,0,0,0.5)]",
|
|
2982
2981
|
style: o.contentStyle,
|
|
2983
2982
|
children: /* @__PURE__ */ t(
|
|
2984
|
-
|
|
2983
|
+
Is,
|
|
2985
2984
|
{
|
|
2986
2985
|
dashboard: r,
|
|
2987
2986
|
sheetId: n ?? void 0,
|
|
@@ -3155,7 +3154,7 @@ function Us({
|
|
|
3155
3154
|
handle: r,
|
|
3156
3155
|
onCalculatedFieldOpenChange: n
|
|
3157
3156
|
}) {
|
|
3158
|
-
var O, te, Z, G,
|
|
3157
|
+
var O, te, Z, G, I, ae, j, R, ne, ue, he, ye;
|
|
3159
3158
|
const { tokenProps: i } = $e(), o = ((O = i.config) == null ? void 0 : O.showAdvancedMode) !== !1, l = ((te = i.config) == null ? void 0 : te.showDirectSource) !== !1, { connections: u } = va(), [c, d] = A(!1), [h, p] = A(!1), [m, f] = A(!1), g = (x) => {
|
|
3160
3159
|
p(x), n == null || n(x);
|
|
3161
3160
|
}, { fields: y, isLoading: N, error: k } = Bs(e.mode === "data" ? e.dataSource : void 0), V = [...e.calculatedFields ?? [], ...y], P = (x) => x && (V.find((z) => z.id === x.id) ?? V.find((z) => $s(z, x))), D = [
|
|
@@ -3163,7 +3162,7 @@ function Us({
|
|
|
3163
3162
|
...[e.field, e.sortField].filter(
|
|
3164
3163
|
(x) => !!x && !P(x) && !V.some((z) => z.id === x.id)
|
|
3165
3164
|
)
|
|
3166
|
-
], _ = ((Z = P(e.field)) == null ? void 0 : Z.id) ?? ((G = e.field) == null ? void 0 : G.id) ?? "", b = ((
|
|
3165
|
+
], _ = ((Z = P(e.field)) == null ? void 0 : Z.id) ?? ((G = e.field) == null ? void 0 : G.id) ?? "", b = ((I = P(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" ? Pt : jt, E = "mt-1 inline-flex items-center gap-1 text-[11px] font-medium text-muted-foreground underline-offset-2 hover:text-foreground hover:underline", H = {
|
|
3167
3166
|
connectionId: ((R = e.dataSource) == null ? void 0 : R.connectionId) || e.connectionId,
|
|
3168
3167
|
dataSource: e.dataSource,
|
|
3169
3168
|
config: e.conditions ? { filters: e.conditions } : {},
|
|
@@ -3228,7 +3227,7 @@ function Us({
|
|
|
3228
3227
|
]
|
|
3229
3228
|
}
|
|
3230
3229
|
),
|
|
3231
|
-
/* @__PURE__ */ s("button", { type: "button", onClick: () => S({ mode: "data" }), className:
|
|
3230
|
+
/* @__PURE__ */ s("button", { type: "button", onClick: () => S({ mode: "data" }), className: E, children: [
|
|
3232
3231
|
/* @__PURE__ */ t(jt, { className: "h-3 w-3", "aria-hidden": !0 }),
|
|
3233
3232
|
" Use a dataset or table instead"
|
|
3234
3233
|
] })
|
|
@@ -3275,7 +3274,7 @@ function Us({
|
|
|
3275
3274
|
o ? /* @__PURE__ */ s("button", { type: "button", onClick: () => {
|
|
3276
3275
|
var x;
|
|
3277
3276
|
return S({ mode: "sql", connectionId: ((x = e.dataSource) == null ? void 0 : x.connectionId) || e.connectionId });
|
|
3278
|
-
}, className:
|
|
3277
|
+
}, className: E, children: [
|
|
3279
3278
|
/* @__PURE__ */ t(Yr, { className: "h-3 w-3", "aria-hidden": !0 }),
|
|
3280
3279
|
" Write SQL instead"
|
|
3281
3280
|
] }) : null
|
|
@@ -3468,10 +3467,10 @@ function Ks({
|
|
|
3468
3467
|
onHoldEscape: r
|
|
3469
3468
|
}) {
|
|
3470
3469
|
var Z, G;
|
|
3471
|
-
const n = w((
|
|
3470
|
+
const n = w((I) => I.dashboard), i = w((I) => I.selectedSheetId), o = w((I) => I.actions.saveVariableChange), [l, u] = A(
|
|
3472
3471
|
() => e ? zr(e) : Ur()
|
|
3473
|
-
), [c, d] = A("data"), [h, p] = A(!1), m = (
|
|
3474
|
-
p(
|
|
3472
|
+
), [c, d] = A("data"), [h, p] = A(!1), m = (I) => {
|
|
3473
|
+
p(I), r == null || r(I);
|
|
3475
3474
|
}, [f, g] = A([]), [y, N] = A(null), k = !e, V = Qs(l), P = Y(
|
|
3476
3475
|
() => Jt({ ...JSON.parse(V), name: "" }, n),
|
|
3477
3476
|
[V, n]
|
|
@@ -3488,15 +3487,15 @@ function Ks({
|
|
|
3488
3487
|
), T = Y(
|
|
3489
3488
|
() => ({
|
|
3490
3489
|
...n,
|
|
3491
|
-
variables: [...(n.variables ?? []).filter((
|
|
3490
|
+
variables: [...(n.variables ?? []).filter((I) => I.id !== v.id), v]
|
|
3492
3491
|
}),
|
|
3493
3492
|
[n, v]
|
|
3494
|
-
),
|
|
3495
|
-
const
|
|
3493
|
+
), E = $r(l), H = ut(), B = w((I) => I.actions.mergeSemanticExecutionPayload), [Q, X] = A(!1), O = async () => {
|
|
3494
|
+
const I = Jt(l, n);
|
|
3496
3495
|
X(!0);
|
|
3497
3496
|
let ae;
|
|
3498
3497
|
try {
|
|
3499
|
-
const R = vr(n, e ? { kind: "update", id: e.id, patch:
|
|
3498
|
+
const R = vr(n, e ? { kind: "update", id: e.id, patch: I } : { kind: "add", variable: I });
|
|
3500
3499
|
if (!R.ok) {
|
|
3501
3500
|
X(!1), g(R.issues);
|
|
3502
3501
|
return;
|
|
@@ -3514,19 +3513,19 @@ function Ks({
|
|
|
3514
3513
|
return;
|
|
3515
3514
|
}
|
|
3516
3515
|
const j = o(
|
|
3517
|
-
k ? { kind: "add", variable:
|
|
3516
|
+
k ? { kind: "add", variable: I } : { kind: "update", id: I.id, patch: Hs(I) }
|
|
3518
3517
|
);
|
|
3519
3518
|
if (X(!1), !j.ok) {
|
|
3520
3519
|
g(j.issues);
|
|
3521
3520
|
return;
|
|
3522
3521
|
}
|
|
3523
3522
|
B(ae), a();
|
|
3524
|
-
}, te = (
|
|
3523
|
+
}, te = (I) => {
|
|
3525
3524
|
if (!e) return;
|
|
3526
|
-
const ae = o({ kind: "remove", id: e.id, confirmed:
|
|
3525
|
+
const ae = o({ kind: "remove", id: e.id, confirmed: I });
|
|
3527
3526
|
if (!ae.ok) {
|
|
3528
3527
|
const j = ae.issues.find((R) => R.code === "inUse");
|
|
3529
|
-
if (j && !
|
|
3528
|
+
if (j && !I) {
|
|
3530
3529
|
N(j);
|
|
3531
3530
|
return;
|
|
3532
3531
|
}
|
|
@@ -3563,22 +3562,22 @@ function Ks({
|
|
|
3563
3562
|
}
|
|
3564
3563
|
)
|
|
3565
3564
|
] }),
|
|
3566
|
-
h ? null : /* @__PURE__ */ t("nav", { role: "tablist", "aria-label": "Variable settings sections", className: "flex h-9 shrink-0 items-stretch gap-4 border-b border-border/60 px-4", children: Ws.map((
|
|
3565
|
+
h ? null : /* @__PURE__ */ t("nav", { role: "tablist", "aria-label": "Variable settings sections", className: "flex h-9 shrink-0 items-stretch gap-4 border-b border-border/60 px-4", children: Ws.map((I) => /* @__PURE__ */ s(
|
|
3567
3566
|
"button",
|
|
3568
3567
|
{
|
|
3569
3568
|
role: "tab",
|
|
3570
|
-
"aria-selected": c ===
|
|
3571
|
-
onClick: () => d(
|
|
3569
|
+
"aria-selected": c === I.id,
|
|
3570
|
+
onClick: () => d(I.id),
|
|
3572
3571
|
className: J(
|
|
3573
3572
|
"relative -mb-px inline-flex items-center text-[13px] transition-colors focus-visible:outline-none",
|
|
3574
|
-
c ===
|
|
3573
|
+
c === I.id ? "font-medium text-foreground" : "text-muted-foreground hover:text-foreground"
|
|
3575
3574
|
),
|
|
3576
3575
|
children: [
|
|
3577
|
-
|
|
3578
|
-
c ===
|
|
3576
|
+
I.label,
|
|
3577
|
+
c === I.id ? /* @__PURE__ */ t("span", { className: "absolute inset-x-0 -bottom-px h-[2px] bg-foreground" }) : null
|
|
3579
3578
|
]
|
|
3580
3579
|
},
|
|
3581
|
-
|
|
3580
|
+
I.id
|
|
3582
3581
|
)) }),
|
|
3583
3582
|
/* @__PURE__ */ s("div", { className: J("min-h-0 flex-1 overflow-y-auto", c === "filters" || h ? "" : "space-y-4 px-4 py-4"), children: [
|
|
3584
3583
|
c === "data" ? /* @__PURE__ */ t(
|
|
@@ -3600,15 +3599,15 @@ function Ks({
|
|
|
3600
3599
|
draft: l,
|
|
3601
3600
|
draftVariable: v,
|
|
3602
3601
|
draftDashboard: T,
|
|
3603
|
-
blocker:
|
|
3602
|
+
blocker: E,
|
|
3604
3603
|
selectedSheetId: i ?? void 0
|
|
3605
3604
|
}
|
|
3606
3605
|
),
|
|
3607
|
-
f.length ? /* @__PURE__ */ t("div", { className: "shrink-0 border-t border-border/60 bg-destructive/5 px-4 py-2 text-[11px] leading-4 text-destructive", role: "alert", children: f.map((
|
|
3608
|
-
|
|
3606
|
+
f.length ? /* @__PURE__ */ t("div", { className: "shrink-0 border-t border-border/60 bg-destructive/5 px-4 py-2 text-[11px] leading-4 text-destructive", role: "alert", children: f.map((I) => /* @__PURE__ */ s("p", { children: [
|
|
3607
|
+
I.message,
|
|
3609
3608
|
" ",
|
|
3610
|
-
|
|
3611
|
-
] }, `${
|
|
3609
|
+
I.fix
|
|
3610
|
+
] }, `${I.code}:${I.path ?? ""}`)) }) : null,
|
|
3612
3611
|
y ? /* @__PURE__ */ s("div", { className: "shrink-0 border-t border-border/60 bg-amber-500/10 px-4 py-2 text-[11px] leading-4 text-amber-800 dark:text-amber-300", role: "alertdialog", children: [
|
|
3613
3612
|
/* @__PURE__ */ s("p", { children: [
|
|
3614
3613
|
y.message,
|
|
@@ -3636,7 +3635,7 @@ function Ks({
|
|
|
3636
3635
|
),
|
|
3637
3636
|
/* @__PURE__ */ s("span", { className: "flex items-center gap-1.5", children: [
|
|
3638
3637
|
/* @__PURE__ */ t(L, { variant: "outline", size: "xs", onClick: a, children: "Cancel" }),
|
|
3639
|
-
/* @__PURE__ */ t(L, { size: "xs", disabled: !!
|
|
3638
|
+
/* @__PURE__ */ t(L, { size: "xs", disabled: !!E || Q, title: E, onClick: () => void O(), children: k ? "Create" : "Done" })
|
|
3640
3639
|
] })
|
|
3641
3640
|
] })
|
|
3642
3641
|
] })
|
|
@@ -3758,12 +3757,12 @@ function Zs({
|
|
|
3758
3757
|
const o = r.sheets ?? [], l = Y(() => Ts(r, a.id), [r, a.id]), [u, c] = A(void 0), d = (l ? u : void 0) ?? i ?? ((S = o[0]) == null ? void 0 : S.id), h = o.find((v) => v.id === d), p = w((v) => d ? v.documentSectionRuntimeBySheetId[d] : void 0), m = !!(h && Ke(h)), f = Y(
|
|
3759
3758
|
() => d ? m ? p ? { kind: "document", sheetId: d, runtime: p } : void 0 : { kind: "sheet", sheetId: d } : void 0,
|
|
3760
3759
|
[m, p, d]
|
|
3761
|
-
), g = Y(() => n || !f ? [] : [a], [n, a, f]), N =
|
|
3760
|
+
), g = Y(() => n || !f ? [] : [a], [n, a, f]), N = En({
|
|
3762
3761
|
dashboard: r,
|
|
3763
3762
|
place: f ?? { kind: "sheet", sheetId: d ?? "" },
|
|
3764
3763
|
purpose: "preview",
|
|
3765
3764
|
variables: g
|
|
3766
|
-
}).byId.get(a.id), k =
|
|
3765
|
+
}).byId.get(a.id), k = In(), V = Tn(), P = Y(
|
|
3767
3766
|
() => xr({ preferences: k, calendar: V }),
|
|
3768
3767
|
[V, k]
|
|
3769
3768
|
);
|
|
@@ -3847,7 +3846,7 @@ function ei(e, a, r) {
|
|
|
3847
3846
|
return { body: null, meta: "" };
|
|
3848
3847
|
}
|
|
3849
3848
|
}
|
|
3850
|
-
function
|
|
3849
|
+
function io() {
|
|
3851
3850
|
const e = w((l) => l.variableEditor), a = w((l) => l.dashboard.variables), r = w((l) => l.actions.closeVariableEditor), n = et(!1), i = (e == null ? void 0 : e.kind) === "edit" ? a == null ? void 0 : a.find((l) => l.id === e.variableId) : void 0;
|
|
3852
3851
|
return !(e && (e.kind === "new" || i)) ? null : /* @__PURE__ */ s(Le, { modal: !1, open: !0, onOpenChange: (l) => !l && r(), children: [
|
|
3853
3852
|
/* @__PURE__ */ t("div", { className: "pointer-events-none fixed inset-0 z-40 bg-zinc-950/40 backdrop-blur-sm" }),
|
|
@@ -3993,7 +3992,7 @@ function di({
|
|
|
3993
3992
|
contentKind: V,
|
|
3994
3993
|
hideHeader: P = !1
|
|
3995
3994
|
}) {
|
|
3996
|
-
const D = e.length, _ = e.filter((
|
|
3995
|
+
const D = e.length, _ = e.filter((E) => E.status === "ACTIVE").length, b = V === "reports" ? D === 1 ? "report" : "reports" : V === "briefings" ? D === 1 ? "briefing" : "briefings" : D === 1 ? "item" : "items", S = e.find((E) => E.hasActiveRun) ?? null, v = V ?? "reports & briefings", T = r === "dashboard" ? a : `Project ${v}`;
|
|
3997
3996
|
return /* @__PURE__ */ s(
|
|
3998
3997
|
"section",
|
|
3999
3998
|
{
|
|
@@ -4110,18 +4109,18 @@ function di({
|
|
|
4110
4109
|
contentKind: V
|
|
4111
4110
|
}
|
|
4112
4111
|
) : null,
|
|
4113
|
-
e.map((
|
|
4112
|
+
e.map((E) => /* @__PURE__ */ t(
|
|
4114
4113
|
hi,
|
|
4115
4114
|
{
|
|
4116
|
-
briefing:
|
|
4117
|
-
isOpening: y ===
|
|
4118
|
-
isBusy: N ===
|
|
4119
|
-
onOpen: () => u(
|
|
4120
|
-
onRunNow: () => m(
|
|
4121
|
-
onTogglePause: () => f(
|
|
4122
|
-
onDelete: () => g(
|
|
4115
|
+
briefing: E,
|
|
4116
|
+
isOpening: y === E.id,
|
|
4117
|
+
isBusy: N === E.id,
|
|
4118
|
+
onOpen: () => u(E.id),
|
|
4119
|
+
onRunNow: () => m(E),
|
|
4120
|
+
onTogglePause: () => f(E),
|
|
4121
|
+
onDelete: () => g(E)
|
|
4123
4122
|
},
|
|
4124
|
-
|
|
4123
|
+
E.id
|
|
4125
4124
|
))
|
|
4126
4125
|
] }),
|
|
4127
4126
|
k ? /* @__PURE__ */ t("div", { className: "border-t border-border px-4 py-2.5", children: /* @__PURE__ */ s(
|
|
@@ -4518,7 +4517,7 @@ const bi = {
|
|
|
4518
4517
|
deleteBriefing: Un,
|
|
4519
4518
|
runBriefingNow: zn
|
|
4520
4519
|
};
|
|
4521
|
-
function
|
|
4520
|
+
function oo(e) {
|
|
4522
4521
|
return /* @__PURE__ */ t(_n, { authToken: e.token ? { accessToken: e.token } : void 0, children: /* @__PURE__ */ t(Mn, { children: /* @__PURE__ */ t(xi, { ...e }) }) });
|
|
4523
4522
|
}
|
|
4524
4523
|
function xi({
|
|
@@ -4542,17 +4541,17 @@ function xi({
|
|
|
4542
4541
|
h ? "author" : "list"
|
|
4543
4542
|
), [S, v] = A(
|
|
4544
4543
|
h ?? "analytical_briefing"
|
|
4545
|
-
), [T,
|
|
4544
|
+
), [T, E] = A("dashboard"), [H, B] = A(
|
|
4546
4545
|
[]
|
|
4547
|
-
), [Q, X] = A(null), O = h && !N && !Q ? "list" : _, [te, Z] = A(!1), [G,
|
|
4546
|
+
), [Q, X] = A(null), O = h && !N && !Q ? "list" : _, [te, Z] = A(!1), [G, I] = A(null), [ae, j] = A(null), [R, ne] = A(
|
|
4548
4547
|
null
|
|
4549
4548
|
), [ue, he] = A(null), ye = et(null), x = et(P);
|
|
4550
|
-
|
|
4549
|
+
Ee(() => {
|
|
4551
4550
|
const F = P && !x.current;
|
|
4552
|
-
x.current = P, !(!F || !h) && (X(null),
|
|
4551
|
+
x.current = P, !(!F || !h) && (X(null), E("dashboard"), v(h), b("author"), he(null));
|
|
4553
4552
|
}, [P, h]);
|
|
4554
4553
|
const z = Lt(), $ = r ?? (g == null ? void 0 : g.apiServiceUrl), K = n ?? (f == null ? void 0 : f.accessToken), le = Y(() => ({ ...bi, ...m }), [m]), [Oe, ht] = A(null);
|
|
4555
|
-
|
|
4554
|
+
Ee(() => {
|
|
4556
4555
|
if (!p || !$ || !K) return;
|
|
4557
4556
|
let F = !0;
|
|
4558
4557
|
return le.getBriefing($, K, p.briefingId).then(({ briefing: W }) => {
|
|
@@ -4607,16 +4606,16 @@ function xi({
|
|
|
4607
4606
|
}
|
|
4608
4607
|
}
|
|
4609
4608
|
}, [le, $, K]);
|
|
4610
|
-
|
|
4609
|
+
Ee(() => {
|
|
4611
4610
|
!P || O !== "list" || !_e || ce();
|
|
4612
4611
|
}, [_e, O, ce, P]);
|
|
4613
4612
|
const Re = () => {
|
|
4614
|
-
X(null),
|
|
4613
|
+
X(null), E("dashboard"), b("list"), D(!0);
|
|
4615
4614
|
}, C = (F) => {
|
|
4616
4615
|
X(null), v(F), b("author");
|
|
4617
4616
|
}, q = async (F) => {
|
|
4618
4617
|
if (!(!$ || !K)) {
|
|
4619
|
-
|
|
4618
|
+
I(F), he(null);
|
|
4620
4619
|
try {
|
|
4621
4620
|
const W = await le.getBriefing(
|
|
4622
4621
|
$,
|
|
@@ -4629,7 +4628,7 @@ function xi({
|
|
|
4629
4628
|
W instanceof Error ? W.message : "Could not open briefing."
|
|
4630
4629
|
);
|
|
4631
4630
|
} finally {
|
|
4632
|
-
|
|
4631
|
+
I(null);
|
|
4633
4632
|
}
|
|
4634
4633
|
}
|
|
4635
4634
|
}, ee = async (F) => {
|
|
@@ -4742,7 +4741,7 @@ function xi({
|
|
|
4742
4741
|
!N && "cursor-not-allowed opacity-50"
|
|
4743
4742
|
),
|
|
4744
4743
|
onClick: () => {
|
|
4745
|
-
N && (X(null), v(h),
|
|
4744
|
+
N && (X(null), v(h), E("dashboard"), b("author"));
|
|
4746
4745
|
},
|
|
4747
4746
|
children: Q ? `Edit ${pe(Q).noun}` : h === "scheduled_report" ? "Schedule report" : "Create briefing"
|
|
4748
4747
|
}
|
|
@@ -4783,7 +4782,7 @@ function xi({
|
|
|
4783
4782
|
sourceView: T,
|
|
4784
4783
|
error: ue,
|
|
4785
4784
|
loading: te,
|
|
4786
|
-
onSourceViewChange:
|
|
4785
|
+
onSourceViewChange: E,
|
|
4787
4786
|
onClose: () => D(!1),
|
|
4788
4787
|
onEdit: (F) => {
|
|
4789
4788
|
q(F);
|
|
@@ -4862,7 +4861,7 @@ function xi({
|
|
|
4862
4861
|
] })
|
|
4863
4862
|
] }),
|
|
4864
4863
|
/* @__PURE__ */ s(Ft, { children: [
|
|
4865
|
-
/* @__PURE__ */ t(
|
|
4864
|
+
/* @__PURE__ */ t(Et, { children: "Cancel" }),
|
|
4866
4865
|
/* @__PURE__ */ s(
|
|
4867
4866
|
ha,
|
|
4868
4867
|
{
|
|
@@ -4885,26 +4884,26 @@ function vi() {
|
|
|
4885
4884
|
return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : `briefing-run-now-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
|
|
4886
4885
|
}
|
|
4887
4886
|
export {
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4887
|
+
Ki as A,
|
|
4888
|
+
Yi as D,
|
|
4889
|
+
Gi as S,
|
|
4890
|
+
Ji as T,
|
|
4891
|
+
eo as U,
|
|
4892
|
+
qi as V,
|
|
4894
4893
|
ti as W,
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4894
|
+
Qi as a,
|
|
4895
|
+
Hi as b,
|
|
4896
|
+
Xi as c,
|
|
4897
|
+
Zi as d,
|
|
4898
|
+
ao as e,
|
|
4900
4899
|
gs as f,
|
|
4901
4900
|
xs as g,
|
|
4902
4901
|
ws as h,
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4902
|
+
to as i,
|
|
4903
|
+
no as j,
|
|
4904
|
+
so as k,
|
|
4905
|
+
ro as l,
|
|
4906
|
+
io as m,
|
|
4907
|
+
oo as n,
|
|
4908
|
+
Wi as u
|
|
4910
4909
|
};
|