react-semaphor 0.1.368 → 0.1.369
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics-protocol/index.cjs +1 -1
- package/dist/analytics-protocol/index.js +1 -1
- package/dist/brand-studio/index.cjs +5 -5
- package/dist/brand-studio/index.js +24 -23
- package/dist/chunks/{braces-Cc86y9Ov.js → braces-C3-w6xDL.js} +1 -1
- package/dist/chunks/{braces-CXvY9MwQ.js → braces-C8QqW4wu.js} +1 -1
- package/dist/chunks/{calendar-preferences-dialog-BOFlzOJg.js → calendar-preferences-dialog-6q51A6XC.js} +3 -3
- package/dist/chunks/{calendar-preferences-dialog-ZzwfJv2J.js → calendar-preferences-dialog-CUGzkNcE.js} +1 -1
- package/dist/chunks/{chevrons-up-down-CUZL1zaU.js → chevrons-up-down-CnCSGY02.js} +1 -1
- package/dist/chunks/{chevrons-up-down-qQMadOWA.js → chevrons-up-down-DSvLu4Ye.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-9-PCYMjR.js → dashboard-briefing-launcher-BEZnvIla.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-D2lBFqAd.js → dashboard-briefing-launcher-ptERmNJr.js} +176 -177
- package/dist/chunks/{dashboard-controls-D4bUHAjX.js → dashboard-controls-CGt6_hMf.js} +11 -11
- package/dist/chunks/{dashboard-controls-BIk094Ah.js → dashboard-controls-CqKC5oEk.js} +77 -77
- package/dist/chunks/{dashboard-json-DImOf512.js → dashboard-json-6SgPm_QW.js} +13 -14
- package/dist/chunks/dashboard-json-CYSbOdmE.js +1 -0
- package/dist/chunks/{edit-dashboard-visual-DTxkV6Fl.js → edit-dashboard-visual-ByQx_M2i.js} +8 -9
- package/dist/chunks/{edit-dashboard-visual-BHKlcqQR.js → edit-dashboard-visual-w6hKbjlw.js} +1 -1
- package/dist/chunks/index-BtqYNH_S.js +1361 -0
- package/dist/chunks/{index-BVEIk-rB.js → index-CPyEi9gS.js} +72498 -76193
- package/dist/chunks/{palette-DPuAc82h.js → palette-D-f4-82S.js} +1 -1
- package/dist/chunks/{palette-C1k347Tb.js → palette-DUGktM-M.js} +1 -1
- package/dist/chunks/{resource-management-panel-BeHceP2D.js → resource-management-panel-Bf8-3eUf.js} +1 -1
- package/dist/chunks/{resource-management-panel-BOfbSf48.js → resource-management-panel-mJ84NxzC.js} +152 -152
- package/dist/chunks/save-D3YYinDz.js +6 -0
- package/dist/chunks/save-kkBEBeLg.js +21 -0
- package/dist/chunks/{switch-xcWLtWs0.js → switch-Dkx2qEOr.js} +758 -776
- package/dist/chunks/{switch-C0S63HAv.js → switch-fIkmwzUt.js} +27 -32
- package/dist/chunks/{use-create-flow-overlay-state-B5FygfQL.js → use-create-flow-overlay-state-BfoXDDrd.js} +190 -189
- package/dist/chunks/use-create-flow-overlay-state-c6rCm36x.js +26 -0
- package/dist/chunks/{use-visual-utils-DxDE8S8M.js → use-visual-utils-C_c-aiqi.js} +1 -1
- package/dist/chunks/{use-visual-utils-CszWnFBW.js → use-visual-utils-NN0e3fBP.js} +13 -13
- package/dist/chunks/validation-Dsf7PydY.js +1 -0
- package/dist/chunks/validation-nOPr0mTk.js +803 -0
- package/dist/chunks/{validators-L0xEXtjf.js → validators-CVuWOHYv.js} +225 -158
- package/dist/chunks/validators-oc8qtP4q.js +1 -0
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.cjs +1 -1
- package/dist/dashboard-authoring/index.js +1 -1
- package/dist/data-app-builder/index.cjs +51 -1
- package/dist/data-app-builder/index.js +3666 -2
- package/dist/data-app-sdk/index.cjs +1 -1
- package/dist/data-app-sdk/index.js +589 -388
- package/dist/data-app-sdk-validation/index.cjs +1 -1
- package/dist/data-app-sdk-validation/index.js +4 -4
- package/dist/index.cjs +1 -1
- package/dist/index.js +14 -14
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/analytics-protocol.d.ts +21 -1
- package/dist/types/dashboard-assistant.d.ts +21 -1
- package/dist/types/dashboard-authoring.d.ts +11 -1
- package/dist/types/data-app-builder.d.ts +11 -1
- package/dist/types/data-app-sdk-validation.d.ts +107 -23
- package/dist/types/data-app-sdk.d.ts +168 -35
- package/dist/types/main.d.ts +11 -1
- package/package.json +1 -1
- package/dist/chunks/dashboard-json-Bo1kX6W1.js +0 -1
- package/dist/chunks/index-HjDeEytV.js +0 -1411
- package/dist/chunks/use-create-flow-overlay-state-DOXTbTcQ.js +0 -26
- package/dist/chunks/validation-CrUjNWby.js +0 -689
- package/dist/chunks/validation-DGl8wnTt.js +0 -1
- package/dist/chunks/validators-Dq5X4mp0.js +0 -1
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { jsx as t, jsxs as s, Fragment as se } from "react/jsx-runtime";
|
|
2
|
-
import { c as Ie, L as wn,
|
|
3
|
-
import {
|
|
4
|
-
import { V as Ci, E as Or, a as Vr, b as ki, c as Si, L as Ai, d as Ei, C as Ii, u as ja, e as za, f as Di, R as Ti, S as Li } from "./use-create-flow-overlay-state-
|
|
2
|
+
import { c as Ie, L as wn, a1 as io, B as ge, f as ne, G as ct, u as q, E as bt, aJ as Fr, a9 as ba, g as ze, e as He, H as xa, a as v, S as Fn, X as Ce, P as Re, b as tt, d as nt, aK as lo, aL as co, aH as ya, aM as va, a2 as Qe, a3 as Ye, a4 as Xe, a5 as Ze, a6 as he, Q as uo, aN as Na, aO as wa, $ as et, T as mo, J as ho, K as Pr, aP as po } from "./switch-Dkx2qEOr.js";
|
|
3
|
+
import { b as ut, c as mt, d as ht, e as pt, f as ft, bq as fo, n as Ca, af as go, ag as bo, aU as ka, b_ as xo, o as fe, aV as Cn, x as yo, b8 as Pn, b9 as Mn, bb as Bn, bc as je, bf as Sa, ax as Ht, ak as vo, aE as No, an as On, aq as Vn, ar as $n, as as Un, at as _n, au as jn, av as zn, u as It, _ as ot, a9 as Hn, a5 as Aa, a6 as qn, $ as Ea, a4 as wo, ab as Co, bV as ko, b$ as So, b5 as Ao, a7 as Mr, w as Vt, a1 as Eo, c0 as Io, c1 as Do, c2 as To, c3 as Lo, c4 as Ro, c5 as Fo, c6 as Po, c7 as Mo, c8 as Ia, c9 as Bo, ca as Oo, cb as Vo, cc as $o, cd as Uo, aG as gt, ce as _o, bU as Da, aW as Ta, cf as jo, cg as zo, ch as Ho, ci as qo, cj as Ko, ck as Wo, cl as Go, cm as La, cn as Jo, co as Qo, cp as Ra, cq as Fa, cr as Pa, cs as Yo, ct as Xo, bn as Ma, bK as Zo, bH as ei, cu as ti, bg as ni, aD as Ba, cv as ri, cw as ai, bh as Br, cx as si, cy as oi, cz as kn, cA as ii, cB as li, cC as Oa, cD as Kn, cE as di, cF as ci, cG as ui, cH as Va, cI as Dt, cJ as $a, aX as Sn, aw as Ua, cK as mi, cL as hi, aF as An, cM as pi, cN as _a, ay as fi, cO as gi, cP as bi, cQ as xi, cR as yi, cS as vi, cT as Ni, cU as wi } from "./index-CPyEi9gS.js";
|
|
4
|
+
import { V as Ci, E as Or, a as Vr, b as ki, c as Si, L as Ai, d as Ei, C as Ii, u as ja, e as za, f as Di, R as Ti, S as Li } from "./use-create-flow-overlay-state-BfoXDDrd.js";
|
|
5
5
|
import Ri, { useState as A, useContext as Fi, useRef as Ee, useCallback as pe, useEffect as ue, useMemo as O } from "react";
|
|
6
|
-
import { u as
|
|
6
|
+
import { u as Ha } from "./use-visual-utils-NN0e3fBP.js";
|
|
7
7
|
import "./index-CuHybtft.js";
|
|
8
8
|
import { l as $r } from "./date-formatter-CzcPZx39.js";
|
|
9
9
|
import "./index-CJdxSyQq.js";
|
|
10
|
-
import "react-dom/client";
|
|
11
10
|
import "react-dom";
|
|
12
11
|
/**
|
|
13
12
|
* @license lucide-react v0.453.0 - ISC
|
|
@@ -61,7 +60,7 @@ const Bi = Ie("ListChecks", [
|
|
|
61
60
|
* This source code is licensed under the ISC license.
|
|
62
61
|
* See the LICENSE file in the root directory of this source tree.
|
|
63
62
|
*/
|
|
64
|
-
const
|
|
63
|
+
const qa = Ie("Mail", [
|
|
65
64
|
["rect", { width: "20", height: "16", x: "2", y: "4", rx: "2", key: "18n3k1" }],
|
|
66
65
|
["path", { d: "m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7", key: "1ocrg3" }]
|
|
67
66
|
]);
|
|
@@ -98,7 +97,7 @@ const Oi = Ie("Newspaper", [
|
|
|
98
97
|
* This source code is licensed under the ISC license.
|
|
99
98
|
* See the LICENSE file in the root directory of this source tree.
|
|
100
99
|
*/
|
|
101
|
-
const
|
|
100
|
+
const Ka = Ie("Pause", [
|
|
102
101
|
["rect", { x: "14", y: "4", width: "4", height: "16", rx: "1", key: "zuxfzm" }],
|
|
103
102
|
["rect", { x: "6", y: "4", width: "4", height: "16", rx: "1", key: "1okwgv" }]
|
|
104
103
|
]);
|
|
@@ -243,9 +242,9 @@ function $i({
|
|
|
243
242
|
] }) });
|
|
244
243
|
}
|
|
245
244
|
function Ui() {
|
|
246
|
-
const [e, n] = A(!1), [r, a] = A(!1), [o, i] = A(null), [l, c] = A(null), d = ct((I) => I.frame), u = ct((I) => I.card), p = go(), f =
|
|
245
|
+
const [e, n] = A(!1), [r, a] = A(!1), [o, i] = A(null), [l, c] = A(null), d = ct((I) => I.frame), u = ct((I) => I.card), p = go(), f = q((I) => I.selectedSheetId), h = q((I) => I.dashboard), g = q(
|
|
247
246
|
(I) => I.actions.setIsDashboardPanelOpen
|
|
248
|
-
), { getUpdatedFrame: D } =
|
|
247
|
+
), { getUpdatedFrame: D } = Ha(), { selectVisual: S } = bo(), { addFrame: N, setSelectedFrameId: b, setIsVisualEditing: C } = bt(), x = ka(), w = !!(d != null && d.visualId), T = (() => {
|
|
249
248
|
var I, P;
|
|
250
249
|
return ((I = d == null ? void 0 : d.cards) == null ? void 0 : I.length) === 1 && ((P = d.cards[0]) != null && P.title) ? d.cards[0].title : p != null && p.title ? p.title : (u == null ? void 0 : u.title) || "Untitled Visual";
|
|
251
250
|
})(), V = xo((I) => {
|
|
@@ -299,12 +298,12 @@ function Ui() {
|
|
|
299
298
|
U = await x(z, {
|
|
300
299
|
previousFrame: Cn(h, z.id)
|
|
301
300
|
});
|
|
302
|
-
} catch (
|
|
301
|
+
} catch (H) {
|
|
303
302
|
console.error(
|
|
304
303
|
"Failed to prepare semantic metadata before saving visual:",
|
|
305
|
-
|
|
304
|
+
H
|
|
306
305
|
), fe.error(
|
|
307
|
-
|
|
306
|
+
H instanceof Error ? H.message : "Failed to prepare semantic metadata for the saved visual"
|
|
308
307
|
);
|
|
309
308
|
return;
|
|
310
309
|
}
|
|
@@ -345,15 +344,15 @@ function Ui() {
|
|
|
345
344
|
isSaving: V.isPending
|
|
346
345
|
};
|
|
347
346
|
}
|
|
348
|
-
function
|
|
349
|
-
const n = ct((_) => _.frame), r = ct((_) => _.editorContext), a = yo((_) => _.selectedVisual), o =
|
|
347
|
+
function Rc(e = {}) {
|
|
348
|
+
const n = ct((_) => _.frame), r = ct((_) => _.editorContext), a = yo((_) => _.selectedVisual), o = q((_) => _.selectedFrameId), i = q((_) => _.selectedSheetId), l = q((_) => _.dashboard), { setIsVisualEditing: c, updateFrame: d } = bt(), [u, p] = A(!1), [f, h] = A("both"), g = ka(), D = (r == null ? void 0 : r.type) === "documentSection", S = !!(n != null && n.visualId || a != null && a.id), N = !!(n != null && n.visualId && o), b = S && !N, {
|
|
350
349
|
saveAsDialogOpen: C,
|
|
351
350
|
setSaveAsDialogOpen: x,
|
|
352
351
|
handleSaveAs: w,
|
|
353
352
|
isLibraryVisual: T,
|
|
354
353
|
currentVisualName: V,
|
|
355
354
|
isSaving: R
|
|
356
|
-
} = Ui(), { getUpdatedFrame: I } =
|
|
355
|
+
} = Ui(), { getUpdatedFrame: I } = Ha();
|
|
357
356
|
if (D)
|
|
358
357
|
return /* @__PURE__ */ s(se, { children: [
|
|
359
358
|
/* @__PURE__ */ t(Or, { className: "rounded-control", variant: "default" }),
|
|
@@ -376,15 +375,15 @@ function Fc(e = {}) {
|
|
|
376
375
|
visualId: void 0
|
|
377
376
|
}, M = Cn(l, U.id);
|
|
378
377
|
try {
|
|
379
|
-
const
|
|
378
|
+
const H = await g(U, {
|
|
380
379
|
previousFrame: M
|
|
381
380
|
});
|
|
382
381
|
d(i, U, {
|
|
383
|
-
semanticExecutionPayload:
|
|
382
|
+
semanticExecutionPayload: H
|
|
384
383
|
});
|
|
385
|
-
} catch (
|
|
386
|
-
console.error("Failed to apply local semantic metadata:",
|
|
387
|
-
|
|
384
|
+
} catch (H) {
|
|
385
|
+
console.error("Failed to apply local semantic metadata:", H), p(!1), fe.error(
|
|
386
|
+
H instanceof Error ? H.message : "Failed to prepare semantic metadata for this visual"
|
|
388
387
|
);
|
|
389
388
|
return;
|
|
390
389
|
}
|
|
@@ -424,7 +423,7 @@ function Fc(e = {}) {
|
|
|
424
423
|
onClick: P,
|
|
425
424
|
disabled: u,
|
|
426
425
|
children: [
|
|
427
|
-
/* @__PURE__ */ t(
|
|
426
|
+
/* @__PURE__ */ t(He, { className: "h-3.5 w-3.5" }),
|
|
428
427
|
u ? "Applying..." : "Apply Locally"
|
|
429
428
|
]
|
|
430
429
|
}
|
|
@@ -437,7 +436,7 @@ function Fc(e = {}) {
|
|
|
437
436
|
onClick: () => j("local"),
|
|
438
437
|
disabled: R,
|
|
439
438
|
children: [
|
|
440
|
-
/* @__PURE__ */ t(
|
|
439
|
+
/* @__PURE__ */ t(Ht, { className: "h-3.5 w-3.5" }),
|
|
441
440
|
"Add to Dashboard (Local)"
|
|
442
441
|
]
|
|
443
442
|
}
|
|
@@ -486,8 +485,8 @@ function Fc(e = {}) {
|
|
|
486
485
|
)
|
|
487
486
|
] });
|
|
488
487
|
}
|
|
489
|
-
function
|
|
490
|
-
const n = ct((u) => u.isDevMode), r =
|
|
488
|
+
function Fc({ className: e }) {
|
|
489
|
+
const n = ct((u) => u.isDevMode), r = q((u) => u.isVisualEditing), { setIsDevMode: a } = xa(), { config: o } = Fi(vo).tokenProps, i = (o == null ? void 0 : o.showAdvancedMode) !== !1;
|
|
491
490
|
if (!r || !i)
|
|
492
491
|
return null;
|
|
493
492
|
const l = n ? Fn : No, c = n ? "Drag & drop" : "SQL", d = n ? "Switch to drag-and-drop mode" : "Switch to SQL mode";
|
|
@@ -509,7 +508,7 @@ function Pc({ className: e }) {
|
|
|
509
508
|
}
|
|
510
509
|
);
|
|
511
510
|
}
|
|
512
|
-
function
|
|
511
|
+
function Pc({
|
|
513
512
|
open: e,
|
|
514
513
|
onOpenChange: n,
|
|
515
514
|
onSave: r,
|
|
@@ -549,18 +548,18 @@ function Mc({
|
|
|
549
548
|
] })
|
|
550
549
|
] }) });
|
|
551
550
|
}
|
|
552
|
-
const _i = 1e4, ji = 15e3, zi = 3e4,
|
|
553
|
-
function
|
|
551
|
+
const _i = 1e4, ji = 15e3, zi = 3e4, Hi = 3e4, qi = 12e4, _r = 2 * 60 * 60 * 1e3;
|
|
552
|
+
function Ki(e) {
|
|
554
553
|
const n = Date.now() - e.getTime();
|
|
555
|
-
return n <
|
|
554
|
+
return n < Hi ? _i : n < qi ? ji : zi;
|
|
556
555
|
}
|
|
557
|
-
function
|
|
556
|
+
function Mc() {
|
|
558
557
|
const { authToken: e, tokenProps: n } = It(), r = ot((h) => h.activeExports), [a, o] = A(
|
|
559
558
|
typeof document < "u" ? !document.hidden : !0
|
|
560
559
|
), i = Ee(null), l = Ee(!1), c = Ee(void 0), d = n == null ? void 0 : n.apiServiceUrl, u = e == null ? void 0 : e.accessToken, p = pe(() => {
|
|
561
560
|
const h = ot.getState().activeExports;
|
|
562
561
|
return Array.from(h.values()).filter(
|
|
563
|
-
(g) =>
|
|
562
|
+
(g) => Hn(g.status)
|
|
564
563
|
);
|
|
565
564
|
}, []);
|
|
566
565
|
ue(() => {
|
|
@@ -608,7 +607,7 @@ function Bc() {
|
|
|
608
607
|
let T;
|
|
609
608
|
if (w.status === "completed")
|
|
610
609
|
try {
|
|
611
|
-
T = await
|
|
610
|
+
T = await qn(d, u, x.id);
|
|
612
611
|
} catch (V) {
|
|
613
612
|
console.error(
|
|
614
613
|
`[useExportPolling] Failed to get download URL for ${x.id}:`,
|
|
@@ -641,7 +640,7 @@ function Bc() {
|
|
|
641
640
|
const x = C.reduce(
|
|
642
641
|
(T, V) => V.startedAt < T ? V.startedAt : T,
|
|
643
642
|
C[0].startedAt
|
|
644
|
-
), w =
|
|
643
|
+
), w = Ki(x);
|
|
645
644
|
i.current && clearTimeout(i.current), i.current = setTimeout(() => {
|
|
646
645
|
var T;
|
|
647
646
|
(T = c.current) == null || T.call(c);
|
|
@@ -668,7 +667,7 @@ function Bc() {
|
|
|
668
667
|
inProgressCount: p().length
|
|
669
668
|
};
|
|
670
669
|
}
|
|
671
|
-
function
|
|
670
|
+
function Bc() {
|
|
672
671
|
const { authToken: e, tokenProps: n } = It(), r = ot((c) => c.activeExports), { addExport: a } = Ea(), o = Ee(!1), i = n == null ? void 0 : n.apiServiceUrl, l = e == null ? void 0 : e.accessToken;
|
|
673
672
|
ue(() => {
|
|
674
673
|
if (o.current || !i || !l) return;
|
|
@@ -685,7 +684,7 @@ function Oc() {
|
|
|
685
684
|
let f;
|
|
686
685
|
if (u.status === "completed")
|
|
687
686
|
try {
|
|
688
|
-
f = await
|
|
687
|
+
f = await qn(i, l, u.id);
|
|
689
688
|
} catch (g) {
|
|
690
689
|
console.error(
|
|
691
690
|
`[useExportRecovery] Failed to get download URL for ${u.id}:`,
|
|
@@ -718,7 +717,7 @@ function Oc() {
|
|
|
718
717
|
}, [i, l, a, r]);
|
|
719
718
|
}
|
|
720
719
|
function Wi(e) {
|
|
721
|
-
return e.title ? e.title :
|
|
720
|
+
return e.title ? e.title : Hn(
|
|
722
721
|
e.status
|
|
723
722
|
) ? "Export in progress..." : e.status === "completed" ? "Export completed" : e.status === "failed" ? "Export failed" : "Export";
|
|
724
723
|
}
|
|
@@ -739,7 +738,7 @@ function Gi({
|
|
|
739
738
|
default:
|
|
740
739
|
return /* @__PURE__ */ t(ne, { className: "text-foreground-muted mt-0.5 h-5 w-5 shrink-0 animate-spin" });
|
|
741
740
|
}
|
|
742
|
-
}, i =
|
|
741
|
+
}, i = Hn(e.status), l = (() => {
|
|
743
742
|
switch (e.status) {
|
|
744
743
|
case "pending":
|
|
745
744
|
return "Queued...";
|
|
@@ -831,7 +830,7 @@ function Ji() {
|
|
|
831
830
|
let w;
|
|
832
831
|
if (x.status === "completed")
|
|
833
832
|
try {
|
|
834
|
-
w = await
|
|
833
|
+
w = await qn(
|
|
835
834
|
S,
|
|
836
835
|
N,
|
|
837
836
|
C.id
|
|
@@ -952,7 +951,7 @@ function Ji() {
|
|
|
952
951
|
)) }) })
|
|
953
952
|
] });
|
|
954
953
|
}
|
|
955
|
-
function
|
|
954
|
+
function Oc({
|
|
956
955
|
variant: e
|
|
957
956
|
}) {
|
|
958
957
|
const n = ot((d) => d.activeExports), r = Eo(), a = n.size > 0, o = Array.from(n.values()).some(
|
|
@@ -1015,7 +1014,7 @@ function Yi({
|
|
|
1015
1014
|
// create and make consumers use `forceClose()` from a dedicated
|
|
1016
1015
|
// button.
|
|
1017
1016
|
dismissMode: a ? "passive" : "explicit-only"
|
|
1018
|
-
}), h =
|
|
1017
|
+
}), h = q((I) => I.dashboard), { setDashboardControlsModel: g } = bt(), { participants: D } = Do(lo(h)), S = Array.from(
|
|
1019
1018
|
new Map(
|
|
1020
1019
|
D.flatMap(
|
|
1021
1020
|
(I) => I.fieldChoices.map((P) => {
|
|
@@ -1154,7 +1153,7 @@ function Zi({
|
|
|
1154
1153
|
onOpenChange: n,
|
|
1155
1154
|
initialCreateFlowActive: r === "create",
|
|
1156
1155
|
dismissMode: "explicit-only"
|
|
1157
|
-
}), p =
|
|
1156
|
+
}), p = q((I) => I.dashboard), f = q((I) => I.selectedSheetId), { setDashboardInputs: h } = bt(), g = (R = p.sheets) == null ? void 0 : R.find(
|
|
1158
1157
|
(I) => I.id === f
|
|
1159
1158
|
), D = (g == null ? void 0 : g.kind) === "document" && !!g.document, S = O(
|
|
1160
1159
|
() => D && (g != null && g.document) ? Ro(p, g.id) : [],
|
|
@@ -1397,7 +1396,7 @@ function al({
|
|
|
1397
1396
|
}
|
|
1398
1397
|
function sl() {
|
|
1399
1398
|
Di();
|
|
1400
|
-
const e =
|
|
1399
|
+
const e = q((d) => d.selectedSheetId), n = q((d) => d.selectedFrameId), r = q((d) => d.dashboard), a = q((d) => d.actions.getSelectedFrame), { setSelectedFrameId: o } = bt(), { setCard: i } = xa(), l = ct((d) => d.card.dataSource);
|
|
1401
1400
|
return ue(() => {
|
|
1402
1401
|
var u, p;
|
|
1403
1402
|
let d = a();
|
|
@@ -1414,9 +1413,9 @@ function sl() {
|
|
|
1414
1413
|
};
|
|
1415
1414
|
}
|
|
1416
1415
|
function ol() {
|
|
1417
|
-
const e =
|
|
1416
|
+
const e = q((d) => d.dashboard), n = q(
|
|
1418
1417
|
(d) => d.semanticExecutionPayload
|
|
1419
|
-
), r =
|
|
1418
|
+
), r = q((d) => d.actions.addFilter), { hasEntities: a } = sl(), { isLoading: o } = Bo(), i = O(
|
|
1420
1419
|
() => Oo(e, n),
|
|
1421
1420
|
[e, n]
|
|
1422
1421
|
), c = !Vo(e.filters) && i.hasEligibleCards && !o;
|
|
@@ -1452,7 +1451,7 @@ function il({
|
|
|
1452
1451
|
onManageControls: r,
|
|
1453
1452
|
onDismiss: a
|
|
1454
1453
|
}) {
|
|
1455
|
-
const o =
|
|
1454
|
+
const o = q(
|
|
1456
1455
|
(c) => c.dashboard.filterLayout
|
|
1457
1456
|
), { setFilterLayout: i } = bt();
|
|
1458
1457
|
o != null && o.displayMode;
|
|
@@ -1543,7 +1542,7 @@ function ll({
|
|
|
1543
1542
|
)
|
|
1544
1543
|
] });
|
|
1545
1544
|
}
|
|
1546
|
-
function
|
|
1545
|
+
function Vc({
|
|
1547
1546
|
size: e,
|
|
1548
1547
|
className: n,
|
|
1549
1548
|
primaryButtonClassName: r,
|
|
@@ -1552,7 +1551,7 @@ function $c({
|
|
|
1552
1551
|
settingsContentClassName: i
|
|
1553
1552
|
}) {
|
|
1554
1553
|
var V;
|
|
1555
|
-
const [l, c] = A(null), d =
|
|
1554
|
+
const [l, c] = A(null), d = q((R) => R.dashboard), u = q((R) => R.selectedSheetId), p = q((R) => R.showFilters), f = jo((R) => R.setPanelOpen), h = q((R) => R.actions), { setDocumentInspectorTab: g, setShowFilters: D } = h, S = (V = d.sheets) == null ? void 0 : V.find(
|
|
1556
1555
|
(R) => R.id === u
|
|
1557
1556
|
), N = ya(S), b = pe((R) => {
|
|
1558
1557
|
window.setTimeout(() => {
|
|
@@ -1637,7 +1636,7 @@ function Ga(e, n) {
|
|
|
1637
1636
|
function be(e) {
|
|
1638
1637
|
return encodeURIComponent(e);
|
|
1639
1638
|
}
|
|
1640
|
-
function
|
|
1639
|
+
function qt(e) {
|
|
1641
1640
|
const n = new URLSearchParams();
|
|
1642
1641
|
Object.entries(e).forEach(([a, o]) => {
|
|
1643
1642
|
o !== void 0 && o !== "" && n.set(a, String(o));
|
|
@@ -1706,7 +1705,7 @@ async function ul(e, n, r) {
|
|
|
1706
1705
|
return ye(
|
|
1707
1706
|
e,
|
|
1708
1707
|
n,
|
|
1709
|
-
`/v1/briefings${
|
|
1708
|
+
`/v1/briefings${qt({
|
|
1710
1709
|
scope: r == null ? void 0 : r.scope,
|
|
1711
1710
|
tenantId: r == null ? void 0 : r.tenantId,
|
|
1712
1711
|
tenantUserId: r == null ? void 0 : r.tenantUserId,
|
|
@@ -1717,11 +1716,11 @@ async function ul(e, n, r) {
|
|
|
1717
1716
|
})}`
|
|
1718
1717
|
);
|
|
1719
1718
|
}
|
|
1720
|
-
async function
|
|
1719
|
+
async function $c(e, n, r) {
|
|
1721
1720
|
return ye(
|
|
1722
1721
|
e,
|
|
1723
1722
|
n,
|
|
1724
|
-
`/v1/briefings/tenant-summaries${
|
|
1723
|
+
`/v1/briefings/tenant-summaries${qt({
|
|
1725
1724
|
status: r == null ? void 0 : r.status
|
|
1726
1725
|
})}`
|
|
1727
1726
|
);
|
|
@@ -1781,11 +1780,11 @@ async function fl(e, n, r) {
|
|
|
1781
1780
|
`/v1/briefings/preview-runs/${be(r)}`
|
|
1782
1781
|
)).previewRun;
|
|
1783
1782
|
}
|
|
1784
|
-
async function
|
|
1783
|
+
async function Uc(e, n, r, a) {
|
|
1785
1784
|
return ye(
|
|
1786
1785
|
e,
|
|
1787
1786
|
n,
|
|
1788
|
-
`/v1/briefings/${be(r)}/runs${
|
|
1787
|
+
`/v1/briefings/${be(r)}/runs${qt({
|
|
1789
1788
|
status: a == null ? void 0 : a.status,
|
|
1790
1789
|
cursor: a == null ? void 0 : a.cursor,
|
|
1791
1790
|
limit: a == null ? void 0 : a.limit
|
|
@@ -1820,15 +1819,15 @@ async function bl(e, n, r, a) {
|
|
|
1820
1819
|
}
|
|
1821
1820
|
);
|
|
1822
1821
|
}
|
|
1823
|
-
async function
|
|
1822
|
+
async function _c(e, n, r, a, o) {
|
|
1824
1823
|
return Qa(
|
|
1825
1824
|
e,
|
|
1826
1825
|
n,
|
|
1827
|
-
`/v1/briefings/${be(r)}/runs/${be(a)}/artifact${
|
|
1826
|
+
`/v1/briefings/${be(r)}/runs/${be(a)}/artifact${qt({ kind: o })}`,
|
|
1828
1827
|
o
|
|
1829
1828
|
);
|
|
1830
1829
|
}
|
|
1831
|
-
async function
|
|
1830
|
+
async function jc(e, n, r, a) {
|
|
1832
1831
|
return Qa(
|
|
1833
1832
|
e,
|
|
1834
1833
|
n,
|
|
@@ -2050,7 +2049,7 @@ function Dn(e) {
|
|
|
2050
2049
|
};
|
|
2051
2050
|
}
|
|
2052
2051
|
}
|
|
2053
|
-
function
|
|
2052
|
+
function Hr(e) {
|
|
2054
2053
|
const n = as(e), r = n.find((i) => i.kind === "dashboard_sheet"), o = n.find((i) => i.kind === "dashboard") ?? r;
|
|
2055
2054
|
return o ? [Dn({ option: o, runtime: e.runtime })] : [];
|
|
2056
2055
|
}
|
|
@@ -2068,7 +2067,7 @@ function Sl(e) {
|
|
|
2068
2067
|
Al({ settings: n, option: r, runtime: a });
|
|
2069
2068
|
return;
|
|
2070
2069
|
}
|
|
2071
|
-
const o = r.kind === "dashboard" ? "all" : "current", i = r.kind === "dashboard" ? a.selectedSheetId : r.sheetId, l =
|
|
2070
|
+
const o = r.kind === "dashboard" ? "all" : "current", i = r.kind === "dashboard" ? a.selectedSheetId : r.sheetId, l = qo({
|
|
2072
2071
|
dashboard: a.dashboard || void 0,
|
|
2073
2072
|
filterValues: a.filterValues,
|
|
2074
2073
|
selectedSheetId: i,
|
|
@@ -2226,13 +2225,13 @@ function Tl(e) {
|
|
|
2226
2225
|
const n = e.filter(
|
|
2227
2226
|
(r) => !!r && typeof r == "object" && typeof r.name == "string"
|
|
2228
2227
|
);
|
|
2229
|
-
return
|
|
2228
|
+
return Ko(n);
|
|
2230
2229
|
}
|
|
2231
2230
|
function os(e, n) {
|
|
2232
2231
|
return n === "csv" ? { ...vl, ...e } : { ...yl, ...e };
|
|
2233
2232
|
}
|
|
2234
2233
|
function is(e) {
|
|
2235
|
-
return e ?
|
|
2234
|
+
return e ? Ho(e).filter(
|
|
2236
2235
|
(n) => n !== "png"
|
|
2237
2236
|
) : ["pdf"];
|
|
2238
2237
|
}
|
|
@@ -2445,7 +2444,7 @@ function St(e) {
|
|
|
2445
2444
|
limits: e.limits ? { ...e.limits } : {}
|
|
2446
2445
|
};
|
|
2447
2446
|
}
|
|
2448
|
-
function
|
|
2447
|
+
function qr(e) {
|
|
2449
2448
|
return {
|
|
2450
2449
|
name: e.name.trim(),
|
|
2451
2450
|
description: cs(e.description) ?? null,
|
|
@@ -2475,7 +2474,7 @@ function Ul(e) {
|
|
|
2475
2474
|
deliveryConfig: fs(e.delivery)
|
|
2476
2475
|
};
|
|
2477
2476
|
}
|
|
2478
|
-
function
|
|
2477
|
+
function Kr(e) {
|
|
2479
2478
|
var a, o, i, l, c;
|
|
2480
2479
|
const n = [];
|
|
2481
2480
|
e.name.trim() || n.push({ field: "name", message: "Name is required" });
|
|
@@ -2702,7 +2701,7 @@ function $t({
|
|
|
2702
2701
|
/* @__PURE__ */ t("span", { children: e })
|
|
2703
2702
|
] });
|
|
2704
2703
|
}
|
|
2705
|
-
function
|
|
2704
|
+
function Hl({
|
|
2706
2705
|
attachments: e,
|
|
2707
2706
|
onChange: n,
|
|
2708
2707
|
onAdd: r,
|
|
@@ -2725,7 +2724,7 @@ function Kl({
|
|
|
2725
2724
|
}
|
|
2726
2725
|
),
|
|
2727
2726
|
e.map((i, l) => /* @__PURE__ */ t(
|
|
2728
|
-
|
|
2727
|
+
ql,
|
|
2729
2728
|
{
|
|
2730
2729
|
attachment: i,
|
|
2731
2730
|
disabled: a,
|
|
@@ -2745,14 +2744,14 @@ function Kl({
|
|
|
2745
2744
|
onClick: r,
|
|
2746
2745
|
className: "inline-flex h-6 items-center gap-1 rounded-control px-1.5 text-[11px] text-muted-foreground hover:bg-muted hover:text-foreground disabled:opacity-50",
|
|
2747
2746
|
children: [
|
|
2748
|
-
/* @__PURE__ */ t(
|
|
2747
|
+
/* @__PURE__ */ t(Ht, { className: "h-3 w-3" }),
|
|
2749
2748
|
"Add"
|
|
2750
2749
|
]
|
|
2751
2750
|
}
|
|
2752
2751
|
)
|
|
2753
2752
|
] });
|
|
2754
2753
|
}
|
|
2755
|
-
function
|
|
2754
|
+
function ql({
|
|
2756
2755
|
attachment: e,
|
|
2757
2756
|
disabled: n,
|
|
2758
2757
|
onUpdate: r,
|
|
@@ -2783,7 +2782,7 @@ function Hl({
|
|
|
2783
2782
|
className: "inline-flex max-w-[180px] items-center gap-1 disabled:opacity-50",
|
|
2784
2783
|
children: [
|
|
2785
2784
|
/* @__PURE__ */ t(
|
|
2786
|
-
|
|
2785
|
+
Kl,
|
|
2787
2786
|
{
|
|
2788
2787
|
format: e.format,
|
|
2789
2788
|
className: "h-3 w-3 shrink-0 text-muted-foreground/70"
|
|
@@ -2811,7 +2810,7 @@ function Hl({
|
|
|
2811
2810
|
}
|
|
2812
2811
|
);
|
|
2813
2812
|
}
|
|
2814
|
-
function
|
|
2813
|
+
function Kl({
|
|
2815
2814
|
format: e,
|
|
2816
2815
|
className: n
|
|
2817
2816
|
}) {
|
|
@@ -3041,7 +3040,7 @@ function Jl({ selected: e }) {
|
|
|
3041
3040
|
"mt-0.5 flex h-3.5 w-3.5 shrink-0 items-center justify-center rounded-control border transition-colors",
|
|
3042
3041
|
e ? "border-primary bg-primary" : "border-border "
|
|
3043
3042
|
),
|
|
3044
|
-
children: e ? /* @__PURE__ */ t(
|
|
3043
|
+
children: e ? /* @__PURE__ */ t(He, { className: "h-2.5 w-2.5 text-primary-foreground", strokeWidth: 3 }) : null
|
|
3045
3044
|
}
|
|
3046
3045
|
);
|
|
3047
3046
|
}
|
|
@@ -3144,7 +3143,7 @@ function Jr({
|
|
|
3144
3143
|
}, [g, V, w]), M = O(() => {
|
|
3145
3144
|
const E = /* @__PURE__ */ new Set();
|
|
3146
3145
|
return e.forEach((B) => {
|
|
3147
|
-
var
|
|
3146
|
+
var Ke;
|
|
3148
3147
|
if (B.type === "email") {
|
|
3149
3148
|
const We = kt(B.address);
|
|
3150
3149
|
We && E.add(We);
|
|
@@ -3152,10 +3151,10 @@ function Jr({
|
|
|
3152
3151
|
}
|
|
3153
3152
|
if (B.type === "group")
|
|
3154
3153
|
return;
|
|
3155
|
-
const Se = B.type === "tenant_user" ? B.tenantUserId : B.userId, X = kt((
|
|
3154
|
+
const Se = B.type === "tenant_user" ? B.tenantUserId : B.userId, X = kt((Ke = U.get(Se)) == null ? void 0 : Ke.email);
|
|
3156
3155
|
X && E.add(X);
|
|
3157
3156
|
}), E;
|
|
3158
|
-
}, [U, e]),
|
|
3157
|
+
}, [U, e]), H = O(() => {
|
|
3159
3158
|
const E = new Map(S);
|
|
3160
3159
|
return I.forEach((B) => {
|
|
3161
3160
|
E.set(B.id, Gr(B));
|
|
@@ -3228,12 +3227,12 @@ function Jr({
|
|
|
3228
3227
|
), ke = O(
|
|
3229
3228
|
() => [...de, ...re],
|
|
3230
3229
|
[de, re]
|
|
3231
|
-
), De = ke.length === 0 ? 0 : Math.min(f, ke.length - 1), me = u.trim(),
|
|
3230
|
+
), De = ke.length === 0 ? 0 : Math.min(f, ke.length - 1), me = u.trim(), K = Yl.test(me), lt = kt(me), Te = lt ? M.has(lt) : !1, qe = R || P, Pe = (E) => {
|
|
3232
3231
|
j.has(Ct(E)) || (n([...e, E]), p(""), h(0));
|
|
3233
3232
|
}, W = (E) => {
|
|
3234
3233
|
n(e.filter((B) => Ct(B) !== E));
|
|
3235
3234
|
}, Me = () => {
|
|
3236
|
-
!
|
|
3235
|
+
!K || Te || Pe({ type: "email", address: me });
|
|
3237
3236
|
}, $ = (E) => {
|
|
3238
3237
|
const B = kt(E.email);
|
|
3239
3238
|
B && M.has(B) || (D((Se) => {
|
|
@@ -3249,7 +3248,7 @@ function Jr({
|
|
|
3249
3248
|
}), Pe({ type: "group", groupId: E.id });
|
|
3250
3249
|
}, Tt = (E) => {
|
|
3251
3250
|
if (E.key === "Enter") {
|
|
3252
|
-
if (E.preventDefault(),
|
|
3251
|
+
if (E.preventDefault(), K && !Te) {
|
|
3253
3252
|
Me();
|
|
3254
3253
|
return;
|
|
3255
3254
|
}
|
|
@@ -3284,10 +3283,10 @@ function Jr({
|
|
|
3284
3283
|
onRemove: () => W(B)
|
|
3285
3284
|
};
|
|
3286
3285
|
if (E.type === "group") {
|
|
3287
|
-
const
|
|
3286
|
+
const Ke = H.get(E.groupId);
|
|
3288
3287
|
return {
|
|
3289
3288
|
key: B,
|
|
3290
|
-
label: (
|
|
3289
|
+
label: (Ke == null ? void 0 : Ke.name) || "Group",
|
|
3291
3290
|
icon: /* @__PURE__ */ t(Wa, { className: "h-3 w-3" }),
|
|
3292
3291
|
onRemove: () => W(B)
|
|
3293
3292
|
};
|
|
@@ -3360,7 +3359,7 @@ function Jr({
|
|
|
3360
3359
|
emailAlreadyAdded: Te,
|
|
3361
3360
|
filters: xe,
|
|
3362
3361
|
groupSuggestions: re,
|
|
3363
|
-
loading:
|
|
3362
|
+
loading: qe,
|
|
3364
3363
|
onAddEmail: Me,
|
|
3365
3364
|
onFilterChange: (E) => {
|
|
3366
3365
|
C(E), h(0);
|
|
@@ -3369,7 +3368,7 @@ function Jr({
|
|
|
3369
3368
|
onUserClick: $,
|
|
3370
3369
|
orderedSuggestions: ke,
|
|
3371
3370
|
query: me,
|
|
3372
|
-
queryIsEmail:
|
|
3371
|
+
queryIsEmail: K,
|
|
3373
3372
|
userSuggestions: de,
|
|
3374
3373
|
viewerType: w == null ? void 0 : w.type
|
|
3375
3374
|
}
|
|
@@ -3488,7 +3487,7 @@ function nd({
|
|
|
3488
3487
|
onClick: l,
|
|
3489
3488
|
className: "flex w-full items-center gap-2 rounded-control px-2 py-1.5 text-left hover:bg-muted",
|
|
3490
3489
|
children: [
|
|
3491
|
-
/* @__PURE__ */ t(
|
|
3490
|
+
/* @__PURE__ */ t(qa, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
|
|
3492
3491
|
/* @__PURE__ */ s("div", { className: "min-w-0", children: [
|
|
3493
3492
|
/* @__PURE__ */ s("div", { className: "text-[13px] text-foreground", children: [
|
|
3494
3493
|
"Send to ",
|
|
@@ -3617,11 +3616,11 @@ function Ln({
|
|
|
3617
3616
|
if (x)
|
|
3618
3617
|
return;
|
|
3619
3618
|
if (D.current.onRun(M), Ut(M.status)) {
|
|
3620
|
-
g.current = M.id, p((
|
|
3619
|
+
g.current = M.id, p((H) => H === M.id ? null : H), h("terminal"), (_ = (j = D.current).onTerminalRun) == null || _.call(j, M);
|
|
3621
3620
|
return;
|
|
3622
3621
|
}
|
|
3623
3622
|
if (!_t(M.status)) {
|
|
3624
|
-
p((
|
|
3623
|
+
p((H) => H === M.id ? null : H), h("idle");
|
|
3625
3624
|
return;
|
|
3626
3625
|
}
|
|
3627
3626
|
T = window.setTimeout(R, r);
|
|
@@ -3778,7 +3777,7 @@ function xn({
|
|
|
3778
3777
|
r ? "border-primary bg-primary" : "border-border"
|
|
3779
3778
|
),
|
|
3780
3779
|
children: r ? /* @__PURE__ */ t(
|
|
3781
|
-
|
|
3780
|
+
He,
|
|
3782
3781
|
{
|
|
3783
3782
|
className: "h-2 w-2 text-primary-foreground",
|
|
3784
3783
|
strokeWidth: 3.5
|
|
@@ -4503,7 +4502,7 @@ function cd({
|
|
|
4503
4502
|
C ? "bg-muted text-foreground" : "text-foreground/85 hover:bg-muted/60"
|
|
4504
4503
|
),
|
|
4505
4504
|
children: [
|
|
4506
|
-
b.isPrivate ? /* @__PURE__ */ t(Oa, { className: "h-3 w-3 shrink-0 text-muted-foreground" }) : /* @__PURE__ */ t(
|
|
4505
|
+
b.isPrivate ? /* @__PURE__ */ t(Oa, { className: "h-3 w-3 shrink-0 text-muted-foreground" }) : /* @__PURE__ */ t(Kn, { className: "h-3 w-3 shrink-0 text-muted-foreground" }),
|
|
4507
4506
|
/* @__PURE__ */ t("span", { className: "truncate", children: b.name }),
|
|
4508
4507
|
typeof b.memberCount == "number" ? /* @__PURE__ */ s("span", { className: "ml-auto text-[11px] text-muted-foreground", children: [
|
|
4509
4508
|
b.memberCount,
|
|
@@ -4522,7 +4521,7 @@ function ud({
|
|
|
4522
4521
|
onRemove: n
|
|
4523
4522
|
}) {
|
|
4524
4523
|
return /* @__PURE__ */ s("span", { className: "inline-flex h-6 max-w-full items-center gap-1.5 rounded-control border border-border bg-muted pl-1.5 pr-1 text-[12px]", children: [
|
|
4525
|
-
/* @__PURE__ */ t("span", { className: "shrink-0 text-muted-foreground", children: e.isPrivate ? /* @__PURE__ */ t(Oa, { className: "h-3 w-3" }) : /* @__PURE__ */ t(
|
|
4524
|
+
/* @__PURE__ */ t("span", { className: "shrink-0 text-muted-foreground", children: e.isPrivate ? /* @__PURE__ */ t(Oa, { className: "h-3 w-3" }) : /* @__PURE__ */ t(Kn, { className: "h-3 w-3" }) }),
|
|
4526
4525
|
/* @__PURE__ */ t("span", { className: "min-w-0 truncate text-foreground", children: e.name }),
|
|
4527
4526
|
typeof e.memberCount == "number" ? /* @__PURE__ */ s("span", { className: "shrink-0 text-muted-foreground", children: [
|
|
4528
4527
|
"· ",
|
|
@@ -4819,7 +4818,7 @@ function xd(e) {
|
|
|
4819
4818
|
return e.status === "SENT" ? Y.success.surface : e.status === "FAILED" || e.status === "PARTIAL" ? Y.danger.surface : Y.warning.surface;
|
|
4820
4819
|
}
|
|
4821
4820
|
function vs(e) {
|
|
4822
|
-
return e.status === "SUCCESS" ? /* @__PURE__ */ t(
|
|
4821
|
+
return e.status === "SUCCESS" ? /* @__PURE__ */ t(He, { className: v("h-3 w-3", Y.success.icon) }) : e.status === "FAILED" ? /* @__PURE__ */ t(Ce, { className: v("h-3 w-3", Y.danger.icon) }) : e.status === "RUNNING" ? /* @__PURE__ */ t(ne, { className: "h-3 w-3 animate-spin text-muted-foreground" }) : /* @__PURE__ */ t("span", { className: "inline-block h-1.5 w-1.5 rounded-full bg-muted-foreground/70" });
|
|
4823
4822
|
}
|
|
4824
4823
|
const yd = [
|
|
4825
4824
|
{ pattern: /^plan preview/i, label: "Plan preview" },
|
|
@@ -4989,7 +4988,7 @@ function Ns({
|
|
|
4989
4988
|
{
|
|
4990
4989
|
className: "flex items-start gap-2 text-[11px] leading-[1.45] text-muted-foreground",
|
|
4991
4990
|
children: [
|
|
4992
|
-
/* @__PURE__ */ t(
|
|
4991
|
+
/* @__PURE__ */ t(He, { className: "mt-0.5 h-3 w-3 shrink-0 text-border" }),
|
|
4993
4992
|
/* @__PURE__ */ t("span", { children: ks(d.label) })
|
|
4994
4993
|
]
|
|
4995
4994
|
},
|
|
@@ -5256,7 +5255,7 @@ function ma({ run: e }) {
|
|
|
5256
5255
|
{
|
|
5257
5256
|
className: "flex items-start gap-2 text-[11px] leading-[1.45] text-muted-foreground",
|
|
5258
5257
|
children: l ? /* @__PURE__ */ s(se, { children: [
|
|
5259
|
-
/* @__PURE__ */ t(
|
|
5258
|
+
/* @__PURE__ */ t(He, { className: "mt-0.5 h-3 w-3 shrink-0 text-border" }),
|
|
5260
5259
|
/* @__PURE__ */ t("span", { children: ks(l.label) })
|
|
5261
5260
|
] }) : /* @__PURE__ */ s(se, { children: [
|
|
5262
5261
|
/* @__PURE__ */ t("span", { className: "mt-1.5 inline-block h-px w-3 shrink-0 bg-border" }),
|
|
@@ -5364,7 +5363,7 @@ function Dd({
|
|
|
5364
5363
|
i ? Y.success.iconBg : Y.danger.iconBg
|
|
5365
5364
|
),
|
|
5366
5365
|
children: i ? /* @__PURE__ */ t(
|
|
5367
|
-
|
|
5366
|
+
He,
|
|
5368
5367
|
{
|
|
5369
5368
|
className: v(
|
|
5370
5369
|
"h-3 w-3",
|
|
@@ -5749,7 +5748,7 @@ function vn({ size: e = 6 }) {
|
|
|
5749
5748
|
function Od({ channel: e }) {
|
|
5750
5749
|
const r = /^[CDG][A-Z0-9]{6,}$/.test(e) ? e : e.startsWith("#") ? e.slice(1) : e;
|
|
5751
5750
|
return /* @__PURE__ */ s("span", { className: "inline-flex items-center gap-1 text-[11px] text-muted-foreground", children: [
|
|
5752
|
-
/* @__PURE__ */ t(
|
|
5751
|
+
/* @__PURE__ */ t(Kn, { className: "h-3 w-3" }),
|
|
5753
5752
|
/* @__PURE__ */ t("span", { className: "truncate", children: r })
|
|
5754
5753
|
] });
|
|
5755
5754
|
}
|
|
@@ -6074,7 +6073,7 @@ function _d({
|
|
|
6074
6073
|
return /* @__PURE__ */ t("div", { className: v("rounded-card border px-3 py-2", Y.success.surface), children: /* @__PURE__ */ s("div", { className: "flex items-start justify-between gap-3", children: [
|
|
6075
6074
|
/* @__PURE__ */ s("div", { className: "min-w-0", children: [
|
|
6076
6075
|
/* @__PURE__ */ s("div", { className: v("flex items-center gap-1.5 text-[11px] font-medium", Y.success.label), children: [
|
|
6077
|
-
/* @__PURE__ */ t(
|
|
6076
|
+
/* @__PURE__ */ t(He, { className: "h-3 w-3 shrink-0" }),
|
|
6078
6077
|
/* @__PURE__ */ t("span", { children: "Preview output available" })
|
|
6079
6078
|
] }),
|
|
6080
6079
|
/* @__PURE__ */ t("div", { className: "mt-1 truncate text-[12px] text-foreground/80", children: a }),
|
|
@@ -6116,8 +6115,8 @@ const zd = {
|
|
|
6116
6115
|
runBriefingPreview: pl,
|
|
6117
6116
|
getBriefingPreviewRun: fl,
|
|
6118
6117
|
polishBriefingText: xl
|
|
6119
|
-
}, fa = 2e3,
|
|
6120
|
-
function
|
|
6118
|
+
}, fa = 2e3, Hd = 10 * 6e4, qd = 20 * 6e4;
|
|
6119
|
+
function Kd() {
|
|
6121
6120
|
return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : `briefing-run-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
|
|
6122
6121
|
}
|
|
6123
6122
|
function Ae(e) {
|
|
@@ -6188,7 +6187,7 @@ function Qd({
|
|
|
6188
6187
|
title: o = "Briefing",
|
|
6189
6188
|
className: i,
|
|
6190
6189
|
client: l,
|
|
6191
|
-
generateRequestId: c =
|
|
6190
|
+
generateRequestId: c = Kd,
|
|
6192
6191
|
onSaved: d,
|
|
6193
6192
|
onDeleted: u,
|
|
6194
6193
|
onRunStarted: p,
|
|
@@ -6197,15 +6196,15 @@ function Qd({
|
|
|
6197
6196
|
onMinimizeRun: g
|
|
6198
6197
|
}) {
|
|
6199
6198
|
var Cr, kr, Sr, Ar, Er, Ir, Dr, Tr, Lr;
|
|
6200
|
-
const { authToken: D, tokenProps: S } = It(), N = ((kr = (Cr = S.config) == null ? void 0 : Cr.projectFeatures) == null ? void 0 : kr.features.aiWritingHelpers) !== !1, { currentUser: b } = Ma(), C =
|
|
6199
|
+
const { authToken: D, tokenProps: S } = It(), N = ((kr = (Cr = S.config) == null ? void 0 : Cr.projectFeatures) == null ? void 0 : kr.features.aiWritingHelpers) !== !1, { currentUser: b } = Ma(), C = q((m) => m.dashboard), x = q((m) => m.theme), w = q((m) => m.selectedSheetId), T = q((m) => m.filterValues), V = q((m) => m.controlValues), R = q(
|
|
6201
6200
|
(m) => m.semanticExecutionPayload
|
|
6202
|
-
), I =
|
|
6201
|
+
), I = q(
|
|
6203
6202
|
(m) => m.cardControlValuesMap
|
|
6204
|
-
), P =
|
|
6203
|
+
), P = q(
|
|
6205
6204
|
(m) => m.inlineFilterValuesMap
|
|
6206
|
-
), j =
|
|
6205
|
+
), j = q(
|
|
6207
6206
|
(m) => m.dashboardInputValues
|
|
6208
|
-
), _ = po((m) => m.interactionStates), z = e ?? (S == null ? void 0 : S.apiServiceUrl), U = n ?? (D == null ? void 0 : D.accessToken), M = O(() => ({ ...zd, ...l }), [l]),
|
|
6207
|
+
), _ = po((m) => m.interactionStates), z = e ?? (S == null ? void 0 : S.apiServiceUrl), U = n ?? (D == null ? void 0 : D.accessToken), M = O(() => ({ ...zd, ...l }), [l]), H = O(
|
|
6209
6208
|
() => Is(r, a),
|
|
6210
6209
|
[r, a]
|
|
6211
6210
|
), le = O(
|
|
@@ -6216,12 +6215,12 @@ function Qd({
|
|
|
6216
6215
|
), [k, xe] = A(
|
|
6217
6216
|
() => ga({
|
|
6218
6217
|
briefing: r,
|
|
6219
|
-
sourceContext:
|
|
6218
|
+
sourceContext: H,
|
|
6220
6219
|
defaultRecipient: le
|
|
6221
6220
|
})
|
|
6222
|
-
), [de, re] = A(null), [ke, De] = A([]), [me,
|
|
6221
|
+
), [de, re] = A(null), [ke, De] = A([]), [me, K] = A(null), [lt, Te] = A(null), [qe, Pe] = A(
|
|
6223
6222
|
null
|
|
6224
|
-
), [W, Me] = A(null), [$, ee] = A(0), [Tt, xt] = A(null), [E, B] = A(!1), [Se, X] = A("edit"), [
|
|
6223
|
+
), [W, Me] = A(null), [$, ee] = A(0), [Tt, xt] = A(null), [E, B] = A(!1), [Se, X] = A("edit"), [Ke, We] = A(0), [Kt, Ls] = A(!1), [Rs, Wt] = A("EMAIL"), [Fs, Gt] = A(!1), [er, Jt] = A(null), [Ps, Qt] = A(!1), [ce, Ms] = A(
|
|
6225
6224
|
null
|
|
6226
6225
|
), [Yt, tr] = A([]), [Lt, nr] = A(!1), [rr, ar] = A(null), [Bs, Os] = A(0), [rt, Rt] = A(null), [Vs, Xt] = A(!1), [Zt, sr] = A(!1), [or, ir] = A(null), [yt, en] = A(null);
|
|
6227
6226
|
ue(() => {
|
|
@@ -6238,7 +6237,7 @@ function Qd({
|
|
|
6238
6237
|
apiServiceUrl: z,
|
|
6239
6238
|
token: U,
|
|
6240
6239
|
intervalMs: fa,
|
|
6241
|
-
timeoutMs:
|
|
6240
|
+
timeoutMs: qd,
|
|
6242
6241
|
fetchRun: ({ apiServiceUrl: m, token: y, runId: F }) => {
|
|
6243
6242
|
if (!(L != null && L.id))
|
|
6244
6243
|
throw new Error("Missing saved Briefing id for run polling.");
|
|
@@ -6253,13 +6252,13 @@ function Qd({
|
|
|
6253
6252
|
Te(m);
|
|
6254
6253
|
},
|
|
6255
6254
|
onTerminalRun: (m) => {
|
|
6256
|
-
X("result"),
|
|
6255
|
+
X("result"), K(null);
|
|
6257
6256
|
},
|
|
6258
6257
|
onError: (m) => {
|
|
6259
|
-
|
|
6258
|
+
K(`Unable to refresh briefing run status: ${Ae(m)}`);
|
|
6260
6259
|
},
|
|
6261
6260
|
onTimeout: () => {
|
|
6262
|
-
|
|
6261
|
+
K(
|
|
6263
6262
|
"Briefing run status refresh timed out. Refresh the run to check the latest status."
|
|
6264
6263
|
);
|
|
6265
6264
|
}
|
|
@@ -6271,7 +6270,7 @@ function Qd({
|
|
|
6271
6270
|
apiServiceUrl: z,
|
|
6272
6271
|
token: U,
|
|
6273
6272
|
intervalMs: fa,
|
|
6274
|
-
timeoutMs:
|
|
6273
|
+
timeoutMs: Hd,
|
|
6275
6274
|
fetchRun: ({ apiServiceUrl: m, token: y, runId: F }) => M.getBriefingPreviewRun(
|
|
6276
6275
|
m,
|
|
6277
6276
|
y,
|
|
@@ -6281,10 +6280,10 @@ function Qd({
|
|
|
6281
6280
|
Me(m), m.status === "SUCCESS" && xt((y) => y ?? $);
|
|
6282
6281
|
},
|
|
6283
6282
|
onTerminalRun: (m) => {
|
|
6284
|
-
m.status === "FAILED" ?
|
|
6283
|
+
m.status === "FAILED" ? K(m.error || "Briefing preview failed.") : (K(null), X("result"));
|
|
6285
6284
|
},
|
|
6286
6285
|
onError: (m) => {
|
|
6287
|
-
|
|
6286
|
+
K(`Unable to refresh briefing preview status: ${Ae(m)}`);
|
|
6288
6287
|
},
|
|
6289
6288
|
onTimeout: (m) => {
|
|
6290
6289
|
Me(
|
|
@@ -6294,13 +6293,13 @@ function Qd({
|
|
|
6294
6293
|
completedAt: y.completedAt ?? (/* @__PURE__ */ new Date()).toISOString(),
|
|
6295
6294
|
error: y.error || "Briefing preview status refresh timed out."
|
|
6296
6295
|
} : y
|
|
6297
|
-
),
|
|
6296
|
+
), K("Briefing preview status refresh timed out.");
|
|
6298
6297
|
}
|
|
6299
|
-
}), oe = !!(L != null && L.id), rn = (L == null ? void 0 : L.status) === "PAUSED" || k.schedule.status === "PAUSED", js = oe && !!(L != null && L.scheduleExpr || k.schedule.enabled), at = lt ?? (L == null ? void 0 : L.latestRun) ?? null, ve = at && it(at.status) && $s === at.id ? at : null, we = at && gs(at.status) ? at : null, Ne = Se === "result" && ((W == null ? void 0 : W.status) === "SUCCESS" || we) ? "result" : Se === "plan" &&
|
|
6298
|
+
}), oe = !!(L != null && L.id), rn = (L == null ? void 0 : L.status) === "PAUSED" || k.schedule.status === "PAUSED", js = oe && !!(L != null && L.scheduleExpr || k.schedule.enabled), at = lt ?? (L == null ? void 0 : L.latestRun) ?? null, ve = at && it(at.status) && $s === at.id ? at : null, we = at && gs(at.status) ? at : null, Ne = Se === "result" && ((W == null ? void 0 : W.status) === "SUCCESS" || we) ? "result" : Se === "plan" && qe ? "plan" : "edit", zs = H.detail ?? (k.source.type === "dashboard" ? (
|
|
6300
6299
|
// Prefer the dashboard's actual title from the store; never expose
|
|
6301
6300
|
// the raw ID to end users.
|
|
6302
6301
|
(C == null ? void 0 : C.title) ?? null
|
|
6303
|
-
) : "All project data available to this token"), ur = (L == null ? void 0 : L.status) ?? k.schedule.status, an = W !== null && it(W.status) && Us === W.id || ve !== null, Ge = de !== null || an,
|
|
6302
|
+
) : "All project data available to this token"), ur = (L == null ? void 0 : L.status) ?? k.schedule.status, an = W !== null && it(W.status) && Us === W.id || ve !== null, Ge = de !== null || an, Hs = Ne === "edit" && we !== null && !an, sn = (W == null ? void 0 : W.status) === "SUCCESS" && W.result ? W : null, qs = sn !== null && Tt !== null && Tt !== $, vt = er === "preview" ? W : null, Be = er === "saved" ? we : null, Nt = Be ? xs(Be) : null, Ks = ((Sr = vt == null ? void 0 : vt.result) == null ? void 0 : Sr.title) ?? (Nt == null ? void 0 : Nt.subject) ?? (ie(Be == null ? void 0 : Be.result) && typeof Be.result.title == "string" ? Be.result.title : null) ?? (L == null ? void 0 : L.name) ?? "Briefing preview", Ft = O(
|
|
6304
6303
|
() => ({
|
|
6305
6304
|
dashboard: C,
|
|
6306
6305
|
theme: x || "light",
|
|
@@ -6336,7 +6335,7 @@ function Qd({
|
|
|
6336
6335
|
lr.current = m, dr(), nn(), cr(), G(r ?? null);
|
|
6337
6336
|
let y = ga({
|
|
6338
6337
|
briefing: r,
|
|
6339
|
-
sourceContext:
|
|
6338
|
+
sourceContext: H,
|
|
6340
6339
|
defaultRecipient: le
|
|
6341
6340
|
}), F = null;
|
|
6342
6341
|
if (!r) {
|
|
@@ -6350,7 +6349,7 @@ function Qd({
|
|
|
6350
6349
|
y = Tn(
|
|
6351
6350
|
y,
|
|
6352
6351
|
Ue.draft(y.source, {
|
|
6353
|
-
attachments: Ue.seedsDashboardAttachment ?
|
|
6352
|
+
attachments: Ue.seedsDashboardAttachment ? Hr({
|
|
6354
6353
|
source: y.source,
|
|
6355
6354
|
dashboard: C,
|
|
6356
6355
|
selectedSheetId: w,
|
|
@@ -6362,14 +6361,14 @@ function Qd({
|
|
|
6362
6361
|
}
|
|
6363
6362
|
xe(y), We(F), Te(null), Pe(null), Me(null), xt(null);
|
|
6364
6363
|
const Q = (r == null ? void 0 : r.latestRun) ?? null;
|
|
6365
|
-
|
|
6364
|
+
K(null), X("edit"), Q && it(Q.status) && tn(Q);
|
|
6366
6365
|
}, [
|
|
6367
6366
|
Ft,
|
|
6368
6367
|
r,
|
|
6369
6368
|
C,
|
|
6370
6369
|
le,
|
|
6371
6370
|
dr,
|
|
6372
|
-
|
|
6371
|
+
H,
|
|
6373
6372
|
w,
|
|
6374
6373
|
tn,
|
|
6375
6374
|
cr,
|
|
@@ -6448,10 +6447,10 @@ function Qd({
|
|
|
6448
6447
|
pr
|
|
6449
6448
|
]);
|
|
6450
6449
|
const ae = (m) => {
|
|
6451
|
-
xe((y) => Tn(y, m)), De([]),
|
|
6452
|
-
}, $e = () => !z || !U ? (
|
|
6453
|
-
const y =
|
|
6454
|
-
if (De(y.issues),
|
|
6450
|
+
xe((y) => Tn(y, m)), De([]), K(null), L != null && L.id || (Pe(null), ee((y) => y + 1), X("edit"));
|
|
6451
|
+
}, $e = () => !z || !U ? (K("Missing Semaphor API credentials."), null) : { apiServiceUrl: z, token: U }, Ws = async (m) => {
|
|
6452
|
+
const y = Kr(k);
|
|
6453
|
+
if (De(y.issues), K(null), !y.valid)
|
|
6455
6454
|
return null;
|
|
6456
6455
|
const F = $e();
|
|
6457
6456
|
if (!F)
|
|
@@ -6466,17 +6465,17 @@ function Qd({
|
|
|
6466
6465
|
) : await M.createBriefing(
|
|
6467
6466
|
F.apiServiceUrl,
|
|
6468
6467
|
F.token,
|
|
6469
|
-
|
|
6468
|
+
qr(k)
|
|
6470
6469
|
);
|
|
6471
6470
|
return G(Q.briefing), xe(St(Q.briefing)), d == null || d(Q.briefing), Q.briefing;
|
|
6472
6471
|
} catch (Q) {
|
|
6473
|
-
return
|
|
6472
|
+
return K(Ae(Q)), null;
|
|
6474
6473
|
} finally {
|
|
6475
6474
|
m != null && m.pendingAction && re(null);
|
|
6476
6475
|
}
|
|
6477
6476
|
}, Gs = async () => Ws({ pendingAction: "save" }), fr = () => {
|
|
6478
|
-
const m =
|
|
6479
|
-
return De(m.issues),
|
|
6477
|
+
const m = Kr(k);
|
|
6478
|
+
return De(m.issues), K(null), m.valid ? qr(k) : null;
|
|
6480
6479
|
}, gr = async (m) => {
|
|
6481
6480
|
const y = $e();
|
|
6482
6481
|
if (!y)
|
|
@@ -6493,7 +6492,7 @@ function Qd({
|
|
|
6493
6492
|
);
|
|
6494
6493
|
return Pe(Q.plan), m != null && m.silent || X("plan"), Q.plan;
|
|
6495
6494
|
} catch (Q) {
|
|
6496
|
-
return
|
|
6495
|
+
return K(Ae(Q)), null;
|
|
6497
6496
|
} finally {
|
|
6498
6497
|
re(null);
|
|
6499
6498
|
}
|
|
@@ -6504,7 +6503,7 @@ function Qd({
|
|
|
6504
6503
|
const y = fr();
|
|
6505
6504
|
if (y)
|
|
6506
6505
|
try {
|
|
6507
|
-
const F =
|
|
6506
|
+
const F = qe ?? await gr({ silent: !0 });
|
|
6508
6507
|
if (!F)
|
|
6509
6508
|
return;
|
|
6510
6509
|
re("preview");
|
|
@@ -6519,7 +6518,7 @@ function Qd({
|
|
|
6519
6518
|
);
|
|
6520
6519
|
xt($), _s(Q.previewRun);
|
|
6521
6520
|
} catch (F) {
|
|
6522
|
-
|
|
6521
|
+
K(Ae(F));
|
|
6523
6522
|
} finally {
|
|
6524
6523
|
re(null);
|
|
6525
6524
|
}
|
|
@@ -6531,10 +6530,10 @@ function Qd({
|
|
|
6531
6530
|
return;
|
|
6532
6531
|
}
|
|
6533
6532
|
if (st) {
|
|
6534
|
-
|
|
6533
|
+
K("Save your changes before running this briefing.");
|
|
6535
6534
|
return;
|
|
6536
6535
|
}
|
|
6537
|
-
re("run"),
|
|
6536
|
+
re("run"), K(null), Me(null);
|
|
6538
6537
|
try {
|
|
6539
6538
|
const y = await M.runBriefingNow(
|
|
6540
6539
|
m.apiServiceUrl,
|
|
@@ -6544,7 +6543,7 @@ function Qd({
|
|
|
6544
6543
|
);
|
|
6545
6544
|
tn(y.run), p == null || p(y);
|
|
6546
6545
|
} catch (y) {
|
|
6547
|
-
|
|
6546
|
+
K(Ae(y));
|
|
6548
6547
|
} finally {
|
|
6549
6548
|
re(null);
|
|
6550
6549
|
}
|
|
@@ -6566,7 +6565,7 @@ function Qd({
|
|
|
6566
6565
|
return;
|
|
6567
6566
|
const m = $e();
|
|
6568
6567
|
if (m) {
|
|
6569
|
-
re("cancelRun"),
|
|
6568
|
+
re("cancelRun"), K(null);
|
|
6570
6569
|
try {
|
|
6571
6570
|
const y = await M.cancelBriefingRun(
|
|
6572
6571
|
m.apiServiceUrl,
|
|
@@ -6576,7 +6575,7 @@ function Qd({
|
|
|
6576
6575
|
);
|
|
6577
6576
|
nn(), Te(y.run), X("result"), await br().catch(() => null);
|
|
6578
6577
|
} catch (y) {
|
|
6579
|
-
|
|
6578
|
+
K(Ae(y));
|
|
6580
6579
|
} finally {
|
|
6581
6580
|
re(null);
|
|
6582
6581
|
}
|
|
@@ -6612,7 +6611,7 @@ function Qd({
|
|
|
6612
6611
|
return;
|
|
6613
6612
|
const y = $e();
|
|
6614
6613
|
if (y) {
|
|
6615
|
-
re("deleteRun"),
|
|
6614
|
+
re("deleteRun"), K(null);
|
|
6616
6615
|
try {
|
|
6617
6616
|
await M.deleteBriefingRun(
|
|
6618
6617
|
y.apiServiceUrl,
|
|
@@ -6623,7 +6622,7 @@ function Qd({
|
|
|
6623
6622
|
const F = await br().catch(() => null), Q = (F == null ? void 0 : F.latestRun) ?? null;
|
|
6624
6623
|
Te(Q), Q || X("edit");
|
|
6625
6624
|
} catch (F) {
|
|
6626
|
-
|
|
6625
|
+
K(Ae(F));
|
|
6627
6626
|
} finally {
|
|
6628
6627
|
re(null);
|
|
6629
6628
|
}
|
|
@@ -6633,7 +6632,7 @@ function Qd({
|
|
|
6633
6632
|
return;
|
|
6634
6633
|
const y = $e();
|
|
6635
6634
|
if (y) {
|
|
6636
|
-
re(m === "PAUSED" ? "pause" : "resume"),
|
|
6635
|
+
re(m === "PAUSED" ? "pause" : "resume"), K(null);
|
|
6637
6636
|
try {
|
|
6638
6637
|
const F = m === "PAUSED" ? await M.pauseBriefing(
|
|
6639
6638
|
y.apiServiceUrl,
|
|
@@ -6646,7 +6645,7 @@ function Qd({
|
|
|
6646
6645
|
);
|
|
6647
6646
|
G(F.briefing), xe(St(F.briefing)), d == null || d(F.briefing);
|
|
6648
6647
|
} catch (F) {
|
|
6649
|
-
|
|
6648
|
+
K(Ae(F));
|
|
6650
6649
|
} finally {
|
|
6651
6650
|
re(null);
|
|
6652
6651
|
}
|
|
@@ -6830,13 +6829,13 @@ function Qd({
|
|
|
6830
6829
|
pendingAction: de,
|
|
6831
6830
|
previewRun: W,
|
|
6832
6831
|
savedActiveRun: ve,
|
|
6833
|
-
detailsVisible:
|
|
6832
|
+
detailsVisible: Kt,
|
|
6834
6833
|
onShowDetails: () => Ls((m) => !m),
|
|
6835
6834
|
onCancelSavedRun: ve ? Qs : void 0,
|
|
6836
6835
|
onMinimizeRun: ve && g ? Ys : void 0
|
|
6837
6836
|
}
|
|
6838
6837
|
),
|
|
6839
|
-
|
|
6838
|
+
Kt && W && it(W.status) ? /* @__PURE__ */ t(ma, { run: W }) : Kt && ve ? /* @__PURE__ */ t(ma, { run: ve }) : null,
|
|
6840
6839
|
/* @__PURE__ */ t("div", { className: "flex-1 space-y-5 overflow-y-auto px-4 py-4", children: Ne === "edit" ? /* @__PURE__ */ s(se, { children: [
|
|
6841
6840
|
oe ? null : /* @__PURE__ */ s("div", { children: [
|
|
6842
6841
|
/* @__PURE__ */ t("div", { className: v(Z, "mb-2"), children: "Start from" }),
|
|
@@ -6847,7 +6846,7 @@ function Qd({
|
|
|
6847
6846
|
onClick: () => {
|
|
6848
6847
|
We(y), ae(
|
|
6849
6848
|
m.draft(k.source, {
|
|
6850
|
-
attachments: m.seedsDashboardAttachment ?
|
|
6849
|
+
attachments: m.seedsDashboardAttachment ? Hr({
|
|
6851
6850
|
source: k.source,
|
|
6852
6851
|
dashboard: C,
|
|
6853
6852
|
selectedSheetId: w,
|
|
@@ -6858,7 +6857,7 @@ function Qd({
|
|
|
6858
6857
|
},
|
|
6859
6858
|
className: v(
|
|
6860
6859
|
"inline-flex h-6 items-center rounded-control border px-2 text-[11px] transition-colors",
|
|
6861
|
-
|
|
6860
|
+
Ke === y ? "border-primary bg-primary text-primary-foreground" : "border-border bg-background text-muted-foreground hover:bg-muted hover:text-foreground"
|
|
6862
6861
|
),
|
|
6863
6862
|
"aria-label": `${m.label} preset — ${m.description}`,
|
|
6864
6863
|
children: m.label
|
|
@@ -6870,11 +6869,11 @@ function Qd({
|
|
|
6870
6869
|
_d,
|
|
6871
6870
|
{
|
|
6872
6871
|
previewRun: sn,
|
|
6873
|
-
isStale:
|
|
6872
|
+
isStale: qs,
|
|
6874
6873
|
onViewOutput: () => X("result")
|
|
6875
6874
|
}
|
|
6876
6875
|
) : null,
|
|
6877
|
-
|
|
6876
|
+
Hs && we ? /* @__PURE__ */ t(
|
|
6878
6877
|
Sd,
|
|
6879
6878
|
{
|
|
6880
6879
|
run: we,
|
|
@@ -7049,7 +7048,7 @@ function Qd({
|
|
|
7049
7048
|
),
|
|
7050
7049
|
k.source.type === "dashboard" ? /* @__PURE__ */ s("div", { children: [
|
|
7051
7050
|
k.attachments.length > 0 ? /* @__PURE__ */ t(
|
|
7052
|
-
|
|
7051
|
+
Hl,
|
|
7053
7052
|
{
|
|
7054
7053
|
attachments: k.attachments,
|
|
7055
7054
|
disabled: Ge,
|
|
@@ -7128,7 +7127,7 @@ function Qd({
|
|
|
7128
7127
|
ln === m && y && "ring-1 ring-foreground/20"
|
|
7129
7128
|
),
|
|
7130
7129
|
children: [
|
|
7131
|
-
m === "EMAIL" ? /* @__PURE__ */ t(
|
|
7130
|
+
m === "EMAIL" ? /* @__PURE__ */ t(qa, { className: "h-3 w-3" }) : /* @__PURE__ */ t(En, { className: "h-3 w-3" }),
|
|
7132
7131
|
m === "EMAIL" ? "Email" : "Slack"
|
|
7133
7132
|
]
|
|
7134
7133
|
},
|
|
@@ -7276,18 +7275,18 @@ function Qd({
|
|
|
7276
7275
|
dd,
|
|
7277
7276
|
{
|
|
7278
7277
|
source: k.source,
|
|
7279
|
-
resolvedSourceContext:
|
|
7278
|
+
resolvedSourceContext: H,
|
|
7280
7279
|
sourceDetail: zs,
|
|
7281
7280
|
onChange: (m) => ae({ source: m })
|
|
7282
7281
|
}
|
|
7283
7282
|
)
|
|
7284
7283
|
] })
|
|
7285
|
-
] }) : Ne === "plan" &&
|
|
7284
|
+
] }) : Ne === "plan" && qe ? /* @__PURE__ */ t(
|
|
7286
7285
|
Nd,
|
|
7287
7286
|
{
|
|
7288
|
-
previewPlan:
|
|
7287
|
+
previewPlan: qe,
|
|
7289
7288
|
previewRun: W && W.status !== "SUCCESS" ? W : null,
|
|
7290
|
-
scopeLabel:
|
|
7289
|
+
scopeLabel: H.source.type === "dashboard" ? (C == null ? void 0 : C.title) ?? H.label : H.label
|
|
7291
7290
|
}
|
|
7292
7291
|
) : Ne === "result" && W ? /* @__PURE__ */ t(
|
|
7293
7292
|
ha,
|
|
@@ -7356,7 +7355,7 @@ function Qd({
|
|
|
7356
7355
|
disabled: Ge,
|
|
7357
7356
|
onClick: () => eo(rn ? "ACTIVE" : "PAUSED"),
|
|
7358
7357
|
children: [
|
|
7359
|
-
de === "pause" || de === "resume" ? /* @__PURE__ */ t(ne, { className: "h-3 w-3 animate-spin" }) : rn ? /* @__PURE__ */ t(_a, { className: "h-3 w-3" }) : /* @__PURE__ */ t(
|
|
7358
|
+
de === "pause" || de === "resume" ? /* @__PURE__ */ t(ne, { className: "h-3 w-3 animate-spin" }) : rn ? /* @__PURE__ */ t(_a, { className: "h-3 w-3" }) : /* @__PURE__ */ t(Ka, { className: "h-3 w-3" }),
|
|
7360
7359
|
rn ? "Resume" : "Pause"
|
|
7361
7360
|
]
|
|
7362
7361
|
}
|
|
@@ -7410,7 +7409,7 @@ function Qd({
|
|
|
7410
7409
|
disabled: Ge,
|
|
7411
7410
|
onClick: Gs,
|
|
7412
7411
|
children: [
|
|
7413
|
-
de === "save" ? /* @__PURE__ */ t(ne, { className: "h-3 w-3 animate-spin" }) : /* @__PURE__ */ t(
|
|
7412
|
+
de === "save" ? /* @__PURE__ */ t(ne, { className: "h-3 w-3 animate-spin" }) : /* @__PURE__ */ t(He, { className: "h-3 w-3" }),
|
|
7414
7413
|
oe ? "Save changes" : "Create briefing"
|
|
7415
7414
|
]
|
|
7416
7415
|
}
|
|
@@ -7426,7 +7425,7 @@ function Qd({
|
|
|
7426
7425
|
},
|
|
7427
7426
|
children: /* @__PURE__ */ s(mt, { className: "flex max-h-[90vh] w-[min(960px,calc(100vw-32px))] max-w-none flex-col gap-0 overflow-hidden p-0", children: [
|
|
7428
7427
|
/* @__PURE__ */ s(ht, { className: "border-b border-border px-6 py-3 text-left", children: [
|
|
7429
|
-
/* @__PURE__ */ t(pt, { className: "truncate text-[14px] font-semibold leading-5", children:
|
|
7428
|
+
/* @__PURE__ */ t(pt, { className: "truncate text-[14px] font-semibold leading-5", children: Ks }),
|
|
7430
7429
|
/* @__PURE__ */ t(ft, { className: "text-[12px] text-muted-foreground", children: "Full briefing render" })
|
|
7431
7430
|
] }),
|
|
7432
7431
|
/* @__PURE__ */ t("div", { className: "flex-1 overflow-y-auto px-6 py-5", children: vt ? /* @__PURE__ */ t(ha, { previewRun: vt, fullWidth: !0 }) : Nt ? /* @__PURE__ */ t(Zn, { preview: Nt }) : Be ? /* @__PURE__ */ t(pa, { run: Be }) : null })
|
|
@@ -7637,7 +7636,7 @@ function mc({
|
|
|
7637
7636
|
/* @__PURE__ */ t(ne, { className: "h-3.5 w-3.5 animate-spin text-muted-foreground" })
|
|
7638
7637
|
) : null,
|
|
7639
7638
|
S > 0 ? /* @__PURE__ */ s("button", { onClick: d, className: Ds, children: [
|
|
7640
|
-
/* @__PURE__ */ t(
|
|
7639
|
+
/* @__PURE__ */ t(Ht, { className: "h-3 w-3" }),
|
|
7641
7640
|
"New briefing"
|
|
7642
7641
|
] }) : null
|
|
7643
7642
|
] })
|
|
@@ -7686,7 +7685,7 @@ function hc({ onNew: e }) {
|
|
|
7686
7685
|
/* @__PURE__ */ t("div", { className: "text-[13px] font-medium text-foreground", children: "Have an analyst brief your team" }),
|
|
7687
7686
|
/* @__PURE__ */ t("p", { className: "mt-1.5 max-w-[320px] text-[12px] leading-5 text-muted-foreground", children: "Describe what to watch. An analyst digs into this dashboard and the data behind it, then briefs your team on the cadence you choose." }),
|
|
7688
7687
|
/* @__PURE__ */ s("button", { onClick: e, className: v(Ds, "mt-4"), children: [
|
|
7689
|
-
/* @__PURE__ */ t(
|
|
7688
|
+
/* @__PURE__ */ t(Ht, { className: "h-3 w-3" }),
|
|
7690
7689
|
"New briefing"
|
|
7691
7690
|
] })
|
|
7692
7691
|
] });
|
|
@@ -7967,7 +7966,7 @@ function fc({
|
|
|
7967
7966
|
/* @__PURE__ */ t(_a, { className: "h-3.5 w-3.5" }),
|
|
7968
7967
|
"Resume"
|
|
7969
7968
|
] }) : /* @__PURE__ */ s(se, { children: [
|
|
7970
|
-
/* @__PURE__ */ t(
|
|
7969
|
+
/* @__PURE__ */ t(Ka, { className: "h-3.5 w-3.5" }),
|
|
7971
7970
|
"Pause"
|
|
7972
7971
|
] })
|
|
7973
7972
|
}
|
|
@@ -8026,7 +8025,7 @@ function xc({
|
|
|
8026
8025
|
p.current || (p.current = !0, _t(n.status) ? u(n) : Ut(n.status) && o(n));
|
|
8027
8026
|
}, [n, o, u]), /* @__PURE__ */ t(Id, { run: c, onExpand: l });
|
|
8028
8027
|
}
|
|
8029
|
-
function
|
|
8028
|
+
function zc({
|
|
8030
8029
|
dashboardId: e,
|
|
8031
8030
|
dashboardTitle: n,
|
|
8032
8031
|
apiServiceUrl: r,
|
|
@@ -8040,7 +8039,7 @@ function Kc({
|
|
|
8040
8039
|
[]
|
|
8041
8040
|
), [C, x] = A(null), [w, T] = A(!1), [V, R] = A(null), [I, P] = A(null), [j, _] = A(
|
|
8042
8041
|
null
|
|
8043
|
-
), [z, U] = A(null), [M,
|
|
8042
|
+
), [z, U] = A(null), [M, H] = A(
|
|
8044
8043
|
null
|
|
8045
8044
|
), [le, L] = A(null), G = r ?? (u == null ? void 0 : u.apiServiceUrl), k = a ?? (d == null ? void 0 : d.accessToken), xe = O(() => ({ ...Xd, ...c }), [c]), de = tc(n), re = O(
|
|
8046
8045
|
() => sc(N, D, e),
|
|
@@ -8076,7 +8075,7 @@ function Kc({
|
|
|
8076
8075
|
ue(() => {
|
|
8077
8076
|
!p || h !== "list" || !De || me();
|
|
8078
8077
|
}, [De, me, p, h]);
|
|
8079
|
-
const
|
|
8078
|
+
const K = () => {
|
|
8080
8079
|
x(null), S("dashboard"), g("list"), f(!0);
|
|
8081
8080
|
}, lt = () => {
|
|
8082
8081
|
x(null), g("author");
|
|
@@ -8098,7 +8097,7 @@ function Kc({
|
|
|
8098
8097
|
R(null);
|
|
8099
8098
|
}
|
|
8100
8099
|
}
|
|
8101
|
-
},
|
|
8100
|
+
}, qe = async ($) => {
|
|
8102
8101
|
if (!(!G || !k)) {
|
|
8103
8102
|
P($.id);
|
|
8104
8103
|
try {
|
|
@@ -8165,7 +8164,7 @@ function Kc({
|
|
|
8165
8164
|
disabled: o || !De,
|
|
8166
8165
|
briefingCount: Me,
|
|
8167
8166
|
className: i,
|
|
8168
|
-
onClick:
|
|
8167
|
+
onClick: K
|
|
8169
8168
|
}
|
|
8170
8169
|
),
|
|
8171
8170
|
/* @__PURE__ */ s(
|
|
@@ -8194,7 +8193,7 @@ function Kc({
|
|
|
8194
8193
|
},
|
|
8195
8194
|
onNew: lt,
|
|
8196
8195
|
onRunNow: ($) => {
|
|
8197
|
-
|
|
8196
|
+
qe($);
|
|
8198
8197
|
},
|
|
8199
8198
|
onTogglePause: ($) => {
|
|
8200
8199
|
Pe($);
|
|
@@ -8224,7 +8223,7 @@ function Kc({
|
|
|
8224
8223
|
x($), me();
|
|
8225
8224
|
},
|
|
8226
8225
|
onMinimizeRun: ({ briefing: $, run: ee }) => {
|
|
8227
|
-
|
|
8226
|
+
H({ briefing: $, run: ee }), f(!1);
|
|
8228
8227
|
}
|
|
8229
8228
|
}
|
|
8230
8229
|
)
|
|
@@ -8242,13 +8241,13 @@ function Kc({
|
|
|
8242
8241
|
L({
|
|
8243
8242
|
briefing: M.briefing,
|
|
8244
8243
|
run: $
|
|
8245
|
-
}),
|
|
8244
|
+
}), H(null), me();
|
|
8246
8245
|
},
|
|
8247
8246
|
onTimeout: () => {
|
|
8248
|
-
|
|
8247
|
+
H(null), me();
|
|
8249
8248
|
},
|
|
8250
8249
|
onExpand: () => {
|
|
8251
|
-
x(M.briefing), g("author"),
|
|
8250
|
+
x(M.briefing), g("author"), H(null), f(!0);
|
|
8252
8251
|
}
|
|
8253
8252
|
}
|
|
8254
8253
|
) : null,
|
|
@@ -8305,29 +8304,29 @@ function yc() {
|
|
|
8305
8304
|
return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : `briefing-run-now-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
|
|
8306
8305
|
}
|
|
8307
8306
|
export {
|
|
8308
|
-
|
|
8307
|
+
Fc as A,
|
|
8309
8308
|
Wn as B,
|
|
8310
8309
|
Tn as C,
|
|
8311
8310
|
Yi as D,
|
|
8312
8311
|
Ji as E,
|
|
8313
8312
|
St as F,
|
|
8314
|
-
|
|
8313
|
+
qr as G,
|
|
8315
8314
|
Ul as H,
|
|
8316
|
-
|
|
8315
|
+
Kr as I,
|
|
8317
8316
|
Qd as J,
|
|
8318
|
-
|
|
8317
|
+
zc as K,
|
|
8319
8318
|
Wa as L,
|
|
8320
8319
|
Vi as M,
|
|
8321
|
-
|
|
8322
|
-
|
|
8323
|
-
|
|
8320
|
+
Oc as N,
|
|
8321
|
+
Pc as U,
|
|
8322
|
+
Rc as V,
|
|
8324
8323
|
Yd as W,
|
|
8325
8324
|
Gi as a,
|
|
8326
|
-
|
|
8325
|
+
Bc as b,
|
|
8327
8326
|
Zi as c,
|
|
8328
8327
|
al as d,
|
|
8329
|
-
|
|
8330
|
-
|
|
8328
|
+
Vc as e,
|
|
8329
|
+
$c as f,
|
|
8331
8330
|
Ya as g,
|
|
8332
8331
|
ml as h,
|
|
8333
8332
|
Gn as i,
|
|
@@ -8338,14 +8337,14 @@ export {
|
|
|
8338
8337
|
pl as n,
|
|
8339
8338
|
fl as o,
|
|
8340
8339
|
Xa as p,
|
|
8341
|
-
|
|
8340
|
+
Uc as q,
|
|
8342
8341
|
Za as r,
|
|
8343
8342
|
ns as s,
|
|
8344
8343
|
gl as t,
|
|
8345
|
-
|
|
8344
|
+
Mc as u,
|
|
8346
8345
|
bl as v,
|
|
8347
|
-
|
|
8348
|
-
|
|
8346
|
+
_c as w,
|
|
8347
|
+
jc as x,
|
|
8349
8348
|
xl as y,
|
|
8350
8349
|
$l as z
|
|
8351
8350
|
};
|