react-semaphor 0.1.372 → 0.1.374
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/chunks/{calendar-preferences-dialog-Dn6o2r2Y.js → calendar-preferences-dialog-94DoRSW_.js} +1 -1
- package/dist/chunks/{calendar-preferences-dialog-ClBAkMmF.js → calendar-preferences-dialog-DmBRXOH6.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-BO-kXtEd.js → dashboard-briefing-launcher-CAFCkwG3.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-D3Xfc_26.js → dashboard-briefing-launcher-l0ylhcAv.js} +104 -104
- package/dist/chunks/{dashboard-controls-DcXMFgGR.js → dashboard-controls-BX47yuCH.js} +1 -1
- package/dist/chunks/{dashboard-controls-B3sdy_Zx.js → dashboard-controls-DyzG0r5f.js} +167 -167
- package/dist/chunks/{dashboard-json-BWfkEy48.js → dashboard-json-B8kke4ES.js} +1 -1
- package/dist/chunks/{dashboard-json-CFURS_OR.js → dashboard-json-BlPA6wRT.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-DjdhKiP2.js → edit-dashboard-visual-CgJxTZLJ.js} +6592 -6565
- package/dist/chunks/{edit-dashboard-visual-BD2AJLiT.js → edit-dashboard-visual-DA8SaE4h.js} +37 -37
- package/dist/chunks/index-BJ971AL_.js +1361 -0
- package/dist/chunks/{index-C0Qnfr_7.js → index-BiDFY4Gr.js} +36742 -34869
- package/dist/chunks/{resource-management-panel-YvIfaphX.js → resource-management-panel-Bssc5uaX.js} +51 -51
- package/dist/chunks/{resource-management-panel-DytUMSGA.js → resource-management-panel-C14F7VSc.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-BETXykC9.js → use-create-flow-overlay-state-BGhwg121.js} +35 -35
- package/dist/chunks/{use-create-flow-overlay-state-CwIG1Ekp.js → use-create-flow-overlay-state-DAVI3fO1.js} +1 -1
- package/dist/chunks/{use-visual-utils-Bk135OgA.js → use-visual-utils-47dkDwLK.js} +12 -12
- package/dist/chunks/{use-visual-utils-BzFjIykb.js → use-visual-utils-K0yQRSI7.js} +1 -1
- package/dist/chunks/{validation-D4Zz6WPD.js → validation-1V7bWmYw.js} +1 -1
- package/dist/chunks/{validation-CQFpcSSP.js → validation-DlrTIf1N.js} +1 -1
- package/dist/chunks/{validators-CuKnUZFO.js → validators-CtNmgsvG.js} +409 -314
- package/dist/chunks/validators-jpoYhpHh.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 +1 -1
- package/dist/data-app-builder/index.js +1 -1
- package/dist/data-app-sdk/index.cjs +1 -1
- package/dist/data-app-sdk/index.js +32 -32
- package/dist/data-app-sdk-validation/index.cjs +1 -1
- package/dist/data-app-sdk-validation/index.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +127 -126
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/analytics-protocol.d.ts +102 -11
- package/dist/types/dashboard-assistant.d.ts +117 -103
- package/dist/types/dashboard-authoring.d.ts +63 -2
- package/dist/types/dashboard.d.ts +263 -2
- package/dist/types/data-app-builder.d.ts +40 -1
- package/dist/types/data-app-sdk-validation.d.ts +94 -102
- package/dist/types/data-app-sdk.d.ts +106 -11
- package/dist/types/main.d.ts +473 -2
- package/dist/types/shared.d.ts +263 -2
- package/dist/types/surfboard.d.ts +263 -2
- package/dist/types/types.d.ts +529 -2
- package/package.json +1 -1
- package/dist/chunks/index-DlLvzmJF.js +0 -1361
- package/dist/chunks/validators-DHee9kM2.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as t, jsxs as s, Fragment as se } from "react/jsx-runtime";
|
|
2
|
-
import { c as Ie, L as wn, a1 as io, B as ge, f as ne, G as ct, u as
|
|
3
|
-
import { b as ut, c as mt, d as ht, e as pt, f as ft,
|
|
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 K, 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, br as fo, n as Ca, ag as go, ah as bo, aV as ka, b$ as xo, o as fe, aW as Cn, x as yo, b9 as Pn, ba as Mn, bc as Bn, bd as je, bg as Sa, ay as Ht, al as vo, aF as No, ao as On, ar as Vn, as as $n, at as Un, au as _n, av as jn, aw as zn, u as It, $ as ot, aa as Hn, a6 as Aa, a7 as Kn, a0 as Ea, a5 as wo, ac as Co, bW as ko, c0 as So, b6 as Ao, a8 as Mr, w as Vt, a2 as Eo, c1 as Io, c2 as Do, c3 as To, c4 as Lo, c5 as Ro, c6 as Fo, c7 as Po, c8 as Mo, c9 as Ia, ca as Bo, cb as Oo, cc as Vo, cd as $o, ce as Uo, aH as gt, cf as _o, bV as Da, aX as Ta, cg as jo, ch as zo, ci as Ho, cj as Ko, ck as qo, cl as Wo, cm as Go, cn as La, co as Jo, cp as Qo, cq as Ra, cr as Fa, cs as Pa, ct as Yo, cu as Xo, bo as Ma, bL as Zo, bI as ei, cv as ti, bh as ni, aE as Ba, cw as ri, cx as ai, bi as Br, cy as si, cz as oi, cA as kn, cB as ii, cC as li, cD as Oa, cE as qn, cF as di, cG as ci, cH as ui, cI as Va, cJ as Dt, cK as $a, aY as Sn, ax as Ua, cL as mi, cM as hi, aG as An, cN as pi, cO as _a, az as fi, cP as gi, cQ as bi, cR as xi, cS as yi, cT as vi, cU as Ni, cV as wi } from "./index-BiDFY4Gr.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-BGhwg121.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 Ha } from "./use-visual-utils-
|
|
6
|
+
import { u as Ha } from "./use-visual-utils-47dkDwLK.js";
|
|
7
7
|
import "./index-CuHybtft.js";
|
|
8
8
|
import { l as $r } from "./date-formatter-CzcPZx39.js";
|
|
9
9
|
import "./index-CJdxSyQq.js";
|
|
@@ -60,7 +60,7 @@ const Bi = Ie("ListChecks", [
|
|
|
60
60
|
* This source code is licensed under the ISC license.
|
|
61
61
|
* See the LICENSE file in the root directory of this source tree.
|
|
62
62
|
*/
|
|
63
|
-
const
|
|
63
|
+
const Ka = Ie("Mail", [
|
|
64
64
|
["rect", { width: "20", height: "16", x: "2", y: "4", rx: "2", key: "18n3k1" }],
|
|
65
65
|
["path", { d: "m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7", key: "1ocrg3" }]
|
|
66
66
|
]);
|
|
@@ -97,7 +97,7 @@ const Oi = Ie("Newspaper", [
|
|
|
97
97
|
* This source code is licensed under the ISC license.
|
|
98
98
|
* See the LICENSE file in the root directory of this source tree.
|
|
99
99
|
*/
|
|
100
|
-
const
|
|
100
|
+
const qa = Ie("Pause", [
|
|
101
101
|
["rect", { x: "14", y: "4", width: "4", height: "16", rx: "1", key: "zuxfzm" }],
|
|
102
102
|
["rect", { x: "6", y: "4", width: "4", height: "16", rx: "1", key: "1okwgv" }]
|
|
103
103
|
]);
|
|
@@ -242,7 +242,7 @@ function $i({
|
|
|
242
242
|
] }) });
|
|
243
243
|
}
|
|
244
244
|
function Ui() {
|
|
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 =
|
|
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 = K((I) => I.selectedSheetId), h = K((I) => I.dashboard), g = K(
|
|
246
246
|
(I) => I.actions.setIsDashboardPanelOpen
|
|
247
247
|
), { getUpdatedFrame: D } = Ha(), { selectVisual: S } = bo(), { addFrame: N, setSelectedFrameId: b, setIsVisualEditing: C } = bt(), x = ka(), w = !!(d != null && d.visualId), T = (() => {
|
|
248
248
|
var I, P;
|
|
@@ -345,7 +345,7 @@ function Ui() {
|
|
|
345
345
|
};
|
|
346
346
|
}
|
|
347
347
|
function Rc(e = {}) {
|
|
348
|
-
const n = ct((_) => _.frame), r = ct((_) => _.editorContext), a = yo((_) => _.selectedVisual), o =
|
|
348
|
+
const n = ct((_) => _.frame), r = ct((_) => _.editorContext), a = yo((_) => _.selectedVisual), o = K((_) => _.selectedFrameId), i = K((_) => _.selectedSheetId), l = K((_) => _.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, {
|
|
349
349
|
saveAsDialogOpen: C,
|
|
350
350
|
setSaveAsDialogOpen: x,
|
|
351
351
|
handleSaveAs: w,
|
|
@@ -486,7 +486,7 @@ function Rc(e = {}) {
|
|
|
486
486
|
] });
|
|
487
487
|
}
|
|
488
488
|
function Fc({ className: e }) {
|
|
489
|
-
const n = ct((u) => u.isDevMode), r =
|
|
489
|
+
const n = ct((u) => u.isDevMode), r = K((u) => u.isVisualEditing), { setIsDevMode: a } = xa(), { config: o } = Fi(vo).tokenProps, i = (o == null ? void 0 : o.showAdvancedMode) !== !1;
|
|
490
490
|
if (!r || !i)
|
|
491
491
|
return null;
|
|
492
492
|
const l = n ? Fn : No, c = n ? "Drag & drop" : "SQL", d = n ? "Switch to drag-and-drop mode" : "Switch to SQL mode";
|
|
@@ -548,10 +548,10 @@ function Pc({
|
|
|
548
548
|
] })
|
|
549
549
|
] }) });
|
|
550
550
|
}
|
|
551
|
-
const _i = 1e4, ji = 15e3, zi = 3e4, Hi = 3e4,
|
|
552
|
-
function
|
|
551
|
+
const _i = 1e4, ji = 15e3, zi = 3e4, Hi = 3e4, Ki = 12e4, _r = 2 * 60 * 60 * 1e3;
|
|
552
|
+
function qi(e) {
|
|
553
553
|
const n = Date.now() - e.getTime();
|
|
554
|
-
return n < Hi ? _i : n <
|
|
554
|
+
return n < Hi ? _i : n < Ki ? ji : zi;
|
|
555
555
|
}
|
|
556
556
|
function Mc() {
|
|
557
557
|
const { authToken: e, tokenProps: n } = It(), r = ot((h) => h.activeExports), [a, o] = A(
|
|
@@ -607,7 +607,7 @@ function Mc() {
|
|
|
607
607
|
let T;
|
|
608
608
|
if (w.status === "completed")
|
|
609
609
|
try {
|
|
610
|
-
T = await
|
|
610
|
+
T = await Kn(d, u, x.id);
|
|
611
611
|
} catch (V) {
|
|
612
612
|
console.error(
|
|
613
613
|
`[useExportPolling] Failed to get download URL for ${x.id}:`,
|
|
@@ -640,7 +640,7 @@ function Mc() {
|
|
|
640
640
|
const x = C.reduce(
|
|
641
641
|
(T, V) => V.startedAt < T ? V.startedAt : T,
|
|
642
642
|
C[0].startedAt
|
|
643
|
-
), w =
|
|
643
|
+
), w = qi(x);
|
|
644
644
|
i.current && clearTimeout(i.current), i.current = setTimeout(() => {
|
|
645
645
|
var T;
|
|
646
646
|
(T = c.current) == null || T.call(c);
|
|
@@ -684,7 +684,7 @@ function Bc() {
|
|
|
684
684
|
let f;
|
|
685
685
|
if (u.status === "completed")
|
|
686
686
|
try {
|
|
687
|
-
f = await
|
|
687
|
+
f = await Kn(i, l, u.id);
|
|
688
688
|
} catch (g) {
|
|
689
689
|
console.error(
|
|
690
690
|
`[useExportRecovery] Failed to get download URL for ${u.id}:`,
|
|
@@ -830,7 +830,7 @@ function Ji() {
|
|
|
830
830
|
let w;
|
|
831
831
|
if (x.status === "completed")
|
|
832
832
|
try {
|
|
833
|
-
w = await
|
|
833
|
+
w = await Kn(
|
|
834
834
|
S,
|
|
835
835
|
N,
|
|
836
836
|
C.id
|
|
@@ -1014,7 +1014,7 @@ function Yi({
|
|
|
1014
1014
|
// create and make consumers use `forceClose()` from a dedicated
|
|
1015
1015
|
// button.
|
|
1016
1016
|
dismissMode: a ? "passive" : "explicit-only"
|
|
1017
|
-
}), h =
|
|
1017
|
+
}), h = K((I) => I.dashboard), { setDashboardControlsModel: g } = bt(), { participants: D } = Do(lo(h)), S = Array.from(
|
|
1018
1018
|
new Map(
|
|
1019
1019
|
D.flatMap(
|
|
1020
1020
|
(I) => I.fieldChoices.map((P) => {
|
|
@@ -1153,7 +1153,7 @@ function Zi({
|
|
|
1153
1153
|
onOpenChange: n,
|
|
1154
1154
|
initialCreateFlowActive: r === "create",
|
|
1155
1155
|
dismissMode: "explicit-only"
|
|
1156
|
-
}), p =
|
|
1156
|
+
}), p = K((I) => I.dashboard), f = K((I) => I.selectedSheetId), { setDashboardInputs: h } = bt(), g = (R = p.sheets) == null ? void 0 : R.find(
|
|
1157
1157
|
(I) => I.id === f
|
|
1158
1158
|
), D = (g == null ? void 0 : g.kind) === "document" && !!g.document, S = O(
|
|
1159
1159
|
() => D && (g != null && g.document) ? Ro(p, g.id) : [],
|
|
@@ -1396,7 +1396,7 @@ function al({
|
|
|
1396
1396
|
}
|
|
1397
1397
|
function sl() {
|
|
1398
1398
|
Di();
|
|
1399
|
-
const e =
|
|
1399
|
+
const e = K((d) => d.selectedSheetId), n = K((d) => d.selectedFrameId), r = K((d) => d.dashboard), a = K((d) => d.actions.getSelectedFrame), { setSelectedFrameId: o } = bt(), { setCard: i } = xa(), l = ct((d) => d.card.dataSource);
|
|
1400
1400
|
return ue(() => {
|
|
1401
1401
|
var u, p;
|
|
1402
1402
|
let d = a();
|
|
@@ -1413,9 +1413,9 @@ function sl() {
|
|
|
1413
1413
|
};
|
|
1414
1414
|
}
|
|
1415
1415
|
function ol() {
|
|
1416
|
-
const e =
|
|
1416
|
+
const e = K((d) => d.dashboard), n = K(
|
|
1417
1417
|
(d) => d.semanticExecutionPayload
|
|
1418
|
-
), r =
|
|
1418
|
+
), r = K((d) => d.actions.addFilter), { hasEntities: a } = sl(), { isLoading: o } = Bo(), i = O(
|
|
1419
1419
|
() => Oo(e, n),
|
|
1420
1420
|
[e, n]
|
|
1421
1421
|
), c = !Vo(e.filters) && i.hasEligibleCards && !o;
|
|
@@ -1451,7 +1451,7 @@ function il({
|
|
|
1451
1451
|
onManageControls: r,
|
|
1452
1452
|
onDismiss: a
|
|
1453
1453
|
}) {
|
|
1454
|
-
const o =
|
|
1454
|
+
const o = K(
|
|
1455
1455
|
(c) => c.dashboard.filterLayout
|
|
1456
1456
|
), { setFilterLayout: i } = bt();
|
|
1457
1457
|
o != null && o.displayMode;
|
|
@@ -1551,7 +1551,7 @@ function Vc({
|
|
|
1551
1551
|
settingsContentClassName: i
|
|
1552
1552
|
}) {
|
|
1553
1553
|
var V;
|
|
1554
|
-
const [l, c] = A(null), d =
|
|
1554
|
+
const [l, c] = A(null), d = K((R) => R.dashboard), u = K((R) => R.selectedSheetId), p = K((R) => R.showFilters), f = jo((R) => R.setPanelOpen), h = K((R) => R.actions), { setDocumentInspectorTab: g, setShowFilters: D } = h, S = (V = d.sheets) == null ? void 0 : V.find(
|
|
1555
1555
|
(R) => R.id === u
|
|
1556
1556
|
), N = ya(S), b = pe((R) => {
|
|
1557
1557
|
window.setTimeout(() => {
|
|
@@ -1636,7 +1636,7 @@ function Ga(e, n) {
|
|
|
1636
1636
|
function be(e) {
|
|
1637
1637
|
return encodeURIComponent(e);
|
|
1638
1638
|
}
|
|
1639
|
-
function
|
|
1639
|
+
function Kt(e) {
|
|
1640
1640
|
const n = new URLSearchParams();
|
|
1641
1641
|
Object.entries(e).forEach(([a, o]) => {
|
|
1642
1642
|
o !== void 0 && o !== "" && n.set(a, String(o));
|
|
@@ -1705,7 +1705,7 @@ async function ul(e, n, r) {
|
|
|
1705
1705
|
return ye(
|
|
1706
1706
|
e,
|
|
1707
1707
|
n,
|
|
1708
|
-
`/v1/briefings${
|
|
1708
|
+
`/v1/briefings${Kt({
|
|
1709
1709
|
scope: r == null ? void 0 : r.scope,
|
|
1710
1710
|
tenantId: r == null ? void 0 : r.tenantId,
|
|
1711
1711
|
tenantUserId: r == null ? void 0 : r.tenantUserId,
|
|
@@ -1720,7 +1720,7 @@ async function $c(e, n, r) {
|
|
|
1720
1720
|
return ye(
|
|
1721
1721
|
e,
|
|
1722
1722
|
n,
|
|
1723
|
-
`/v1/briefings/tenant-summaries${
|
|
1723
|
+
`/v1/briefings/tenant-summaries${Kt({
|
|
1724
1724
|
status: r == null ? void 0 : r.status
|
|
1725
1725
|
})}`
|
|
1726
1726
|
);
|
|
@@ -1784,7 +1784,7 @@ async function Uc(e, n, r, a) {
|
|
|
1784
1784
|
return ye(
|
|
1785
1785
|
e,
|
|
1786
1786
|
n,
|
|
1787
|
-
`/v1/briefings/${be(r)}/runs${
|
|
1787
|
+
`/v1/briefings/${be(r)}/runs${Kt({
|
|
1788
1788
|
status: a == null ? void 0 : a.status,
|
|
1789
1789
|
cursor: a == null ? void 0 : a.cursor,
|
|
1790
1790
|
limit: a == null ? void 0 : a.limit
|
|
@@ -1823,7 +1823,7 @@ async function _c(e, n, r, a, o) {
|
|
|
1823
1823
|
return Qa(
|
|
1824
1824
|
e,
|
|
1825
1825
|
n,
|
|
1826
|
-
`/v1/briefings/${be(r)}/runs/${be(a)}/artifact${
|
|
1826
|
+
`/v1/briefings/${be(r)}/runs/${be(a)}/artifact${Kt({ kind: o })}`,
|
|
1827
1827
|
o
|
|
1828
1828
|
);
|
|
1829
1829
|
}
|
|
@@ -2067,7 +2067,7 @@ function Sl(e) {
|
|
|
2067
2067
|
Al({ settings: n, option: r, runtime: a });
|
|
2068
2068
|
return;
|
|
2069
2069
|
}
|
|
2070
|
-
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 = Ko({
|
|
2071
2071
|
dashboard: a.dashboard || void 0,
|
|
2072
2072
|
filterValues: a.filterValues,
|
|
2073
2073
|
selectedSheetId: i,
|
|
@@ -2225,7 +2225,7 @@ function Tl(e) {
|
|
|
2225
2225
|
const n = e.filter(
|
|
2226
2226
|
(r) => !!r && typeof r == "object" && typeof r.name == "string"
|
|
2227
2227
|
);
|
|
2228
|
-
return
|
|
2228
|
+
return qo(n);
|
|
2229
2229
|
}
|
|
2230
2230
|
function os(e, n) {
|
|
2231
2231
|
return n === "csv" ? { ...vl, ...e } : { ...yl, ...e };
|
|
@@ -2444,7 +2444,7 @@ function St(e) {
|
|
|
2444
2444
|
limits: e.limits ? { ...e.limits } : {}
|
|
2445
2445
|
};
|
|
2446
2446
|
}
|
|
2447
|
-
function
|
|
2447
|
+
function Kr(e) {
|
|
2448
2448
|
return {
|
|
2449
2449
|
name: e.name.trim(),
|
|
2450
2450
|
description: cs(e.description) ?? null,
|
|
@@ -2474,7 +2474,7 @@ function Ul(e) {
|
|
|
2474
2474
|
deliveryConfig: fs(e.delivery)
|
|
2475
2475
|
};
|
|
2476
2476
|
}
|
|
2477
|
-
function
|
|
2477
|
+
function qr(e) {
|
|
2478
2478
|
var a, o, i, l, c;
|
|
2479
2479
|
const n = [];
|
|
2480
2480
|
e.name.trim() || n.push({ field: "name", message: "Name is required" });
|
|
@@ -2724,7 +2724,7 @@ function Hl({
|
|
|
2724
2724
|
}
|
|
2725
2725
|
),
|
|
2726
2726
|
e.map((i, l) => /* @__PURE__ */ t(
|
|
2727
|
-
|
|
2727
|
+
Kl,
|
|
2728
2728
|
{
|
|
2729
2729
|
attachment: i,
|
|
2730
2730
|
disabled: a,
|
|
@@ -2751,7 +2751,7 @@ function Hl({
|
|
|
2751
2751
|
)
|
|
2752
2752
|
] });
|
|
2753
2753
|
}
|
|
2754
|
-
function
|
|
2754
|
+
function Kl({
|
|
2755
2755
|
attachment: e,
|
|
2756
2756
|
disabled: n,
|
|
2757
2757
|
onUpdate: r,
|
|
@@ -2782,7 +2782,7 @@ function ql({
|
|
|
2782
2782
|
className: "inline-flex max-w-[180px] items-center gap-1 disabled:opacity-50",
|
|
2783
2783
|
children: [
|
|
2784
2784
|
/* @__PURE__ */ t(
|
|
2785
|
-
|
|
2785
|
+
ql,
|
|
2786
2786
|
{
|
|
2787
2787
|
format: e.format,
|
|
2788
2788
|
className: "h-3 w-3 shrink-0 text-muted-foreground/70"
|
|
@@ -2810,7 +2810,7 @@ function ql({
|
|
|
2810
2810
|
}
|
|
2811
2811
|
);
|
|
2812
2812
|
}
|
|
2813
|
-
function
|
|
2813
|
+
function ql({
|
|
2814
2814
|
format: e,
|
|
2815
2815
|
className: n
|
|
2816
2816
|
}) {
|
|
@@ -3143,7 +3143,7 @@ function Jr({
|
|
|
3143
3143
|
}, [g, V, w]), M = O(() => {
|
|
3144
3144
|
const E = /* @__PURE__ */ new Set();
|
|
3145
3145
|
return e.forEach((B) => {
|
|
3146
|
-
var
|
|
3146
|
+
var qe;
|
|
3147
3147
|
if (B.type === "email") {
|
|
3148
3148
|
const We = kt(B.address);
|
|
3149
3149
|
We && E.add(We);
|
|
@@ -3151,7 +3151,7 @@ function Jr({
|
|
|
3151
3151
|
}
|
|
3152
3152
|
if (B.type === "group")
|
|
3153
3153
|
return;
|
|
3154
|
-
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((qe = U.get(Se)) == null ? void 0 : qe.email);
|
|
3155
3155
|
X && E.add(X);
|
|
3156
3156
|
}), E;
|
|
3157
3157
|
}, [U, e]), H = O(() => {
|
|
@@ -3227,12 +3227,12 @@ function Jr({
|
|
|
3227
3227
|
), ke = O(
|
|
3228
3228
|
() => [...de, ...re],
|
|
3229
3229
|
[de, re]
|
|
3230
|
-
), 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(), q = Yl.test(me), lt = kt(me), Te = lt ? M.has(lt) : !1, Ke = R || P, Pe = (E) => {
|
|
3231
3231
|
j.has(Ct(E)) || (n([...e, E]), p(""), h(0));
|
|
3232
3232
|
}, W = (E) => {
|
|
3233
3233
|
n(e.filter((B) => Ct(B) !== E));
|
|
3234
3234
|
}, Me = () => {
|
|
3235
|
-
!
|
|
3235
|
+
!q || Te || Pe({ type: "email", address: me });
|
|
3236
3236
|
}, $ = (E) => {
|
|
3237
3237
|
const B = kt(E.email);
|
|
3238
3238
|
B && M.has(B) || (D((Se) => {
|
|
@@ -3248,7 +3248,7 @@ function Jr({
|
|
|
3248
3248
|
}), Pe({ type: "group", groupId: E.id });
|
|
3249
3249
|
}, Tt = (E) => {
|
|
3250
3250
|
if (E.key === "Enter") {
|
|
3251
|
-
if (E.preventDefault(),
|
|
3251
|
+
if (E.preventDefault(), q && !Te) {
|
|
3252
3252
|
Me();
|
|
3253
3253
|
return;
|
|
3254
3254
|
}
|
|
@@ -3283,10 +3283,10 @@ function Jr({
|
|
|
3283
3283
|
onRemove: () => W(B)
|
|
3284
3284
|
};
|
|
3285
3285
|
if (E.type === "group") {
|
|
3286
|
-
const
|
|
3286
|
+
const qe = H.get(E.groupId);
|
|
3287
3287
|
return {
|
|
3288
3288
|
key: B,
|
|
3289
|
-
label: (
|
|
3289
|
+
label: (qe == null ? void 0 : qe.name) || "Group",
|
|
3290
3290
|
icon: /* @__PURE__ */ t(Wa, { className: "h-3 w-3" }),
|
|
3291
3291
|
onRemove: () => W(B)
|
|
3292
3292
|
};
|
|
@@ -3359,7 +3359,7 @@ function Jr({
|
|
|
3359
3359
|
emailAlreadyAdded: Te,
|
|
3360
3360
|
filters: xe,
|
|
3361
3361
|
groupSuggestions: re,
|
|
3362
|
-
loading:
|
|
3362
|
+
loading: Ke,
|
|
3363
3363
|
onAddEmail: Me,
|
|
3364
3364
|
onFilterChange: (E) => {
|
|
3365
3365
|
C(E), h(0);
|
|
@@ -3368,7 +3368,7 @@ function Jr({
|
|
|
3368
3368
|
onUserClick: $,
|
|
3369
3369
|
orderedSuggestions: ke,
|
|
3370
3370
|
query: me,
|
|
3371
|
-
queryIsEmail:
|
|
3371
|
+
queryIsEmail: q,
|
|
3372
3372
|
userSuggestions: de,
|
|
3373
3373
|
viewerType: w == null ? void 0 : w.type
|
|
3374
3374
|
}
|
|
@@ -3487,7 +3487,7 @@ function nd({
|
|
|
3487
3487
|
onClick: l,
|
|
3488
3488
|
className: "flex w-full items-center gap-2 rounded-control px-2 py-1.5 text-left hover:bg-muted",
|
|
3489
3489
|
children: [
|
|
3490
|
-
/* @__PURE__ */ t(
|
|
3490
|
+
/* @__PURE__ */ t(Ka, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
|
|
3491
3491
|
/* @__PURE__ */ s("div", { className: "min-w-0", children: [
|
|
3492
3492
|
/* @__PURE__ */ s("div", { className: "text-[13px] text-foreground", children: [
|
|
3493
3493
|
"Send to ",
|
|
@@ -4502,7 +4502,7 @@ function cd({
|
|
|
4502
4502
|
C ? "bg-muted text-foreground" : "text-foreground/85 hover:bg-muted/60"
|
|
4503
4503
|
),
|
|
4504
4504
|
children: [
|
|
4505
|
-
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(qn, { className: "h-3 w-3 shrink-0 text-muted-foreground" }),
|
|
4506
4506
|
/* @__PURE__ */ t("span", { className: "truncate", children: b.name }),
|
|
4507
4507
|
typeof b.memberCount == "number" ? /* @__PURE__ */ s("span", { className: "ml-auto text-[11px] text-muted-foreground", children: [
|
|
4508
4508
|
b.memberCount,
|
|
@@ -4521,7 +4521,7 @@ function ud({
|
|
|
4521
4521
|
onRemove: n
|
|
4522
4522
|
}) {
|
|
4523
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: [
|
|
4524
|
-
/* @__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(qn, { className: "h-3 w-3" }) }),
|
|
4525
4525
|
/* @__PURE__ */ t("span", { className: "min-w-0 truncate text-foreground", children: e.name }),
|
|
4526
4526
|
typeof e.memberCount == "number" ? /* @__PURE__ */ s("span", { className: "shrink-0 text-muted-foreground", children: [
|
|
4527
4527
|
"· ",
|
|
@@ -5748,7 +5748,7 @@ function vn({ size: e = 6 }) {
|
|
|
5748
5748
|
function Od({ channel: e }) {
|
|
5749
5749
|
const r = /^[CDG][A-Z0-9]{6,}$/.test(e) ? e : e.startsWith("#") ? e.slice(1) : e;
|
|
5750
5750
|
return /* @__PURE__ */ s("span", { className: "inline-flex items-center gap-1 text-[11px] text-muted-foreground", children: [
|
|
5751
|
-
/* @__PURE__ */ t(
|
|
5751
|
+
/* @__PURE__ */ t(qn, { className: "h-3 w-3" }),
|
|
5752
5752
|
/* @__PURE__ */ t("span", { className: "truncate", children: r })
|
|
5753
5753
|
] });
|
|
5754
5754
|
}
|
|
@@ -6115,8 +6115,8 @@ const zd = {
|
|
|
6115
6115
|
runBriefingPreview: pl,
|
|
6116
6116
|
getBriefingPreviewRun: fl,
|
|
6117
6117
|
polishBriefingText: xl
|
|
6118
|
-
}, fa = 2e3, Hd = 10 * 6e4,
|
|
6119
|
-
function
|
|
6118
|
+
}, fa = 2e3, Hd = 10 * 6e4, Kd = 20 * 6e4;
|
|
6119
|
+
function qd() {
|
|
6120
6120
|
return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : `briefing-run-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
|
|
6121
6121
|
}
|
|
6122
6122
|
function Ae(e) {
|
|
@@ -6187,7 +6187,7 @@ function Qd({
|
|
|
6187
6187
|
title: o = "Briefing",
|
|
6188
6188
|
className: i,
|
|
6189
6189
|
client: l,
|
|
6190
|
-
generateRequestId: c =
|
|
6190
|
+
generateRequestId: c = qd,
|
|
6191
6191
|
onSaved: d,
|
|
6192
6192
|
onDeleted: u,
|
|
6193
6193
|
onRunStarted: p,
|
|
@@ -6196,13 +6196,13 @@ function Qd({
|
|
|
6196
6196
|
onMinimizeRun: g
|
|
6197
6197
|
}) {
|
|
6198
6198
|
var Cr, kr, Sr, Ar, Er, Ir, Dr, Tr, Lr;
|
|
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 =
|
|
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 = K((m) => m.dashboard), x = K((m) => m.theme), w = K((m) => m.selectedSheetId), T = K((m) => m.filterValues), V = K((m) => m.controlValues), R = K(
|
|
6200
6200
|
(m) => m.semanticExecutionPayload
|
|
6201
|
-
), I =
|
|
6201
|
+
), I = K(
|
|
6202
6202
|
(m) => m.cardControlValuesMap
|
|
6203
|
-
), P =
|
|
6203
|
+
), P = K(
|
|
6204
6204
|
(m) => m.inlineFilterValuesMap
|
|
6205
|
-
), j =
|
|
6205
|
+
), j = K(
|
|
6206
6206
|
(m) => m.dashboardInputValues
|
|
6207
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(
|
|
6208
6208
|
() => Is(r, a),
|
|
@@ -6218,9 +6218,9 @@ function Qd({
|
|
|
6218
6218
|
sourceContext: H,
|
|
6219
6219
|
defaultRecipient: le
|
|
6220
6220
|
})
|
|
6221
|
-
), [de, re] = A(null), [ke, De] = A([]), [me,
|
|
6221
|
+
), [de, re] = A(null), [ke, De] = A([]), [me, q] = A(null), [lt, Te] = A(null), [Ke, Pe] = A(
|
|
6222
6222
|
null
|
|
6223
|
-
), [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"), [qe, We] = A(0), [qt, Ls] = A(!1), [Rs, Wt] = A("EMAIL"), [Fs, Gt] = A(!1), [er, Jt] = A(null), [Ps, Qt] = A(!1), [ce, Ms] = A(
|
|
6224
6224
|
null
|
|
6225
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);
|
|
6226
6226
|
ue(() => {
|
|
@@ -6237,7 +6237,7 @@ function Qd({
|
|
|
6237
6237
|
apiServiceUrl: z,
|
|
6238
6238
|
token: U,
|
|
6239
6239
|
intervalMs: fa,
|
|
6240
|
-
timeoutMs:
|
|
6240
|
+
timeoutMs: Kd,
|
|
6241
6241
|
fetchRun: ({ apiServiceUrl: m, token: y, runId: F }) => {
|
|
6242
6242
|
if (!(L != null && L.id))
|
|
6243
6243
|
throw new Error("Missing saved Briefing id for run polling.");
|
|
@@ -6252,13 +6252,13 @@ function Qd({
|
|
|
6252
6252
|
Te(m);
|
|
6253
6253
|
},
|
|
6254
6254
|
onTerminalRun: (m) => {
|
|
6255
|
-
X("result"),
|
|
6255
|
+
X("result"), q(null);
|
|
6256
6256
|
},
|
|
6257
6257
|
onError: (m) => {
|
|
6258
|
-
|
|
6258
|
+
q(`Unable to refresh briefing run status: ${Ae(m)}`);
|
|
6259
6259
|
},
|
|
6260
6260
|
onTimeout: () => {
|
|
6261
|
-
|
|
6261
|
+
q(
|
|
6262
6262
|
"Briefing run status refresh timed out. Refresh the run to check the latest status."
|
|
6263
6263
|
);
|
|
6264
6264
|
}
|
|
@@ -6280,10 +6280,10 @@ function Qd({
|
|
|
6280
6280
|
Me(m), m.status === "SUCCESS" && xt((y) => y ?? $);
|
|
6281
6281
|
},
|
|
6282
6282
|
onTerminalRun: (m) => {
|
|
6283
|
-
m.status === "FAILED" ?
|
|
6283
|
+
m.status === "FAILED" ? q(m.error || "Briefing preview failed.") : (q(null), X("result"));
|
|
6284
6284
|
},
|
|
6285
6285
|
onError: (m) => {
|
|
6286
|
-
|
|
6286
|
+
q(`Unable to refresh briefing preview status: ${Ae(m)}`);
|
|
6287
6287
|
},
|
|
6288
6288
|
onTimeout: (m) => {
|
|
6289
6289
|
Me(
|
|
@@ -6293,13 +6293,13 @@ function Qd({
|
|
|
6293
6293
|
completedAt: y.completedAt ?? (/* @__PURE__ */ new Date()).toISOString(),
|
|
6294
6294
|
error: y.error || "Briefing preview status refresh timed out."
|
|
6295
6295
|
} : y
|
|
6296
|
-
),
|
|
6296
|
+
), q("Briefing preview status refresh timed out.");
|
|
6297
6297
|
}
|
|
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" &&
|
|
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" && Ke ? "plan" : "edit", zs = H.detail ?? (k.source.type === "dashboard" ? (
|
|
6299
6299
|
// Prefer the dashboard's actual title from the store; never expose
|
|
6300
6300
|
// the raw ID to end users.
|
|
6301
6301
|
(C == null ? void 0 : C.title) ?? null
|
|
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,
|
|
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, Ks = sn !== null && Tt !== null && Tt !== $, vt = er === "preview" ? W : null, Be = er === "saved" ? we : null, Nt = Be ? xs(Be) : null, qs = ((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(
|
|
6303
6303
|
() => ({
|
|
6304
6304
|
dashboard: C,
|
|
6305
6305
|
theme: x || "light",
|
|
@@ -6361,7 +6361,7 @@ function Qd({
|
|
|
6361
6361
|
}
|
|
6362
6362
|
xe(y), We(F), Te(null), Pe(null), Me(null), xt(null);
|
|
6363
6363
|
const Q = (r == null ? void 0 : r.latestRun) ?? null;
|
|
6364
|
-
|
|
6364
|
+
q(null), X("edit"), Q && it(Q.status) && tn(Q);
|
|
6365
6365
|
}, [
|
|
6366
6366
|
Ft,
|
|
6367
6367
|
r,
|
|
@@ -6447,10 +6447,10 @@ function Qd({
|
|
|
6447
6447
|
pr
|
|
6448
6448
|
]);
|
|
6449
6449
|
const ae = (m) => {
|
|
6450
|
-
xe((y) => Tn(y, m)), De([]),
|
|
6451
|
-
}, $e = () => !z || !U ? (
|
|
6452
|
-
const y =
|
|
6453
|
-
if (De(y.issues),
|
|
6450
|
+
xe((y) => Tn(y, m)), De([]), q(null), L != null && L.id || (Pe(null), ee((y) => y + 1), X("edit"));
|
|
6451
|
+
}, $e = () => !z || !U ? (q("Missing Semaphor API credentials."), null) : { apiServiceUrl: z, token: U }, Ws = async (m) => {
|
|
6452
|
+
const y = qr(k);
|
|
6453
|
+
if (De(y.issues), q(null), !y.valid)
|
|
6454
6454
|
return null;
|
|
6455
6455
|
const F = $e();
|
|
6456
6456
|
if (!F)
|
|
@@ -6465,17 +6465,17 @@ function Qd({
|
|
|
6465
6465
|
) : await M.createBriefing(
|
|
6466
6466
|
F.apiServiceUrl,
|
|
6467
6467
|
F.token,
|
|
6468
|
-
|
|
6468
|
+
Kr(k)
|
|
6469
6469
|
);
|
|
6470
6470
|
return G(Q.briefing), xe(St(Q.briefing)), d == null || d(Q.briefing), Q.briefing;
|
|
6471
6471
|
} catch (Q) {
|
|
6472
|
-
return
|
|
6472
|
+
return q(Ae(Q)), null;
|
|
6473
6473
|
} finally {
|
|
6474
6474
|
m != null && m.pendingAction && re(null);
|
|
6475
6475
|
}
|
|
6476
6476
|
}, Gs = async () => Ws({ pendingAction: "save" }), fr = () => {
|
|
6477
|
-
const m =
|
|
6478
|
-
return De(m.issues),
|
|
6477
|
+
const m = qr(k);
|
|
6478
|
+
return De(m.issues), q(null), m.valid ? Kr(k) : null;
|
|
6479
6479
|
}, gr = async (m) => {
|
|
6480
6480
|
const y = $e();
|
|
6481
6481
|
if (!y)
|
|
@@ -6492,7 +6492,7 @@ function Qd({
|
|
|
6492
6492
|
);
|
|
6493
6493
|
return Pe(Q.plan), m != null && m.silent || X("plan"), Q.plan;
|
|
6494
6494
|
} catch (Q) {
|
|
6495
|
-
return
|
|
6495
|
+
return q(Ae(Q)), null;
|
|
6496
6496
|
} finally {
|
|
6497
6497
|
re(null);
|
|
6498
6498
|
}
|
|
@@ -6503,7 +6503,7 @@ function Qd({
|
|
|
6503
6503
|
const y = fr();
|
|
6504
6504
|
if (y)
|
|
6505
6505
|
try {
|
|
6506
|
-
const F =
|
|
6506
|
+
const F = Ke ?? await gr({ silent: !0 });
|
|
6507
6507
|
if (!F)
|
|
6508
6508
|
return;
|
|
6509
6509
|
re("preview");
|
|
@@ -6518,7 +6518,7 @@ function Qd({
|
|
|
6518
6518
|
);
|
|
6519
6519
|
xt($), _s(Q.previewRun);
|
|
6520
6520
|
} catch (F) {
|
|
6521
|
-
|
|
6521
|
+
q(Ae(F));
|
|
6522
6522
|
} finally {
|
|
6523
6523
|
re(null);
|
|
6524
6524
|
}
|
|
@@ -6530,10 +6530,10 @@ function Qd({
|
|
|
6530
6530
|
return;
|
|
6531
6531
|
}
|
|
6532
6532
|
if (st) {
|
|
6533
|
-
|
|
6533
|
+
q("Save your changes before running this briefing.");
|
|
6534
6534
|
return;
|
|
6535
6535
|
}
|
|
6536
|
-
re("run"),
|
|
6536
|
+
re("run"), q(null), Me(null);
|
|
6537
6537
|
try {
|
|
6538
6538
|
const y = await M.runBriefingNow(
|
|
6539
6539
|
m.apiServiceUrl,
|
|
@@ -6543,7 +6543,7 @@ function Qd({
|
|
|
6543
6543
|
);
|
|
6544
6544
|
tn(y.run), p == null || p(y);
|
|
6545
6545
|
} catch (y) {
|
|
6546
|
-
|
|
6546
|
+
q(Ae(y));
|
|
6547
6547
|
} finally {
|
|
6548
6548
|
re(null);
|
|
6549
6549
|
}
|
|
@@ -6565,7 +6565,7 @@ function Qd({
|
|
|
6565
6565
|
return;
|
|
6566
6566
|
const m = $e();
|
|
6567
6567
|
if (m) {
|
|
6568
|
-
re("cancelRun"),
|
|
6568
|
+
re("cancelRun"), q(null);
|
|
6569
6569
|
try {
|
|
6570
6570
|
const y = await M.cancelBriefingRun(
|
|
6571
6571
|
m.apiServiceUrl,
|
|
@@ -6575,7 +6575,7 @@ function Qd({
|
|
|
6575
6575
|
);
|
|
6576
6576
|
nn(), Te(y.run), X("result"), await br().catch(() => null);
|
|
6577
6577
|
} catch (y) {
|
|
6578
|
-
|
|
6578
|
+
q(Ae(y));
|
|
6579
6579
|
} finally {
|
|
6580
6580
|
re(null);
|
|
6581
6581
|
}
|
|
@@ -6611,7 +6611,7 @@ function Qd({
|
|
|
6611
6611
|
return;
|
|
6612
6612
|
const y = $e();
|
|
6613
6613
|
if (y) {
|
|
6614
|
-
re("deleteRun"),
|
|
6614
|
+
re("deleteRun"), q(null);
|
|
6615
6615
|
try {
|
|
6616
6616
|
await M.deleteBriefingRun(
|
|
6617
6617
|
y.apiServiceUrl,
|
|
@@ -6622,7 +6622,7 @@ function Qd({
|
|
|
6622
6622
|
const F = await br().catch(() => null), Q = (F == null ? void 0 : F.latestRun) ?? null;
|
|
6623
6623
|
Te(Q), Q || X("edit");
|
|
6624
6624
|
} catch (F) {
|
|
6625
|
-
|
|
6625
|
+
q(Ae(F));
|
|
6626
6626
|
} finally {
|
|
6627
6627
|
re(null);
|
|
6628
6628
|
}
|
|
@@ -6632,7 +6632,7 @@ function Qd({
|
|
|
6632
6632
|
return;
|
|
6633
6633
|
const y = $e();
|
|
6634
6634
|
if (y) {
|
|
6635
|
-
re(m === "PAUSED" ? "pause" : "resume"),
|
|
6635
|
+
re(m === "PAUSED" ? "pause" : "resume"), q(null);
|
|
6636
6636
|
try {
|
|
6637
6637
|
const F = m === "PAUSED" ? await M.pauseBriefing(
|
|
6638
6638
|
y.apiServiceUrl,
|
|
@@ -6645,7 +6645,7 @@ function Qd({
|
|
|
6645
6645
|
);
|
|
6646
6646
|
G(F.briefing), xe(St(F.briefing)), d == null || d(F.briefing);
|
|
6647
6647
|
} catch (F) {
|
|
6648
|
-
|
|
6648
|
+
q(Ae(F));
|
|
6649
6649
|
} finally {
|
|
6650
6650
|
re(null);
|
|
6651
6651
|
}
|
|
@@ -6829,13 +6829,13 @@ function Qd({
|
|
|
6829
6829
|
pendingAction: de,
|
|
6830
6830
|
previewRun: W,
|
|
6831
6831
|
savedActiveRun: ve,
|
|
6832
|
-
detailsVisible:
|
|
6832
|
+
detailsVisible: qt,
|
|
6833
6833
|
onShowDetails: () => Ls((m) => !m),
|
|
6834
6834
|
onCancelSavedRun: ve ? Qs : void 0,
|
|
6835
6835
|
onMinimizeRun: ve && g ? Ys : void 0
|
|
6836
6836
|
}
|
|
6837
6837
|
),
|
|
6838
|
-
|
|
6838
|
+
qt && W && it(W.status) ? /* @__PURE__ */ t(ma, { run: W }) : qt && ve ? /* @__PURE__ */ t(ma, { run: ve }) : null,
|
|
6839
6839
|
/* @__PURE__ */ t("div", { className: "flex-1 space-y-5 overflow-y-auto px-4 py-4", children: Ne === "edit" ? /* @__PURE__ */ s(se, { children: [
|
|
6840
6840
|
oe ? null : /* @__PURE__ */ s("div", { children: [
|
|
6841
6841
|
/* @__PURE__ */ t("div", { className: v(Z, "mb-2"), children: "Start from" }),
|
|
@@ -6857,7 +6857,7 @@ function Qd({
|
|
|
6857
6857
|
},
|
|
6858
6858
|
className: v(
|
|
6859
6859
|
"inline-flex h-6 items-center rounded-control border px-2 text-[11px] transition-colors",
|
|
6860
|
-
|
|
6860
|
+
qe === y ? "border-primary bg-primary text-primary-foreground" : "border-border bg-background text-muted-foreground hover:bg-muted hover:text-foreground"
|
|
6861
6861
|
),
|
|
6862
6862
|
"aria-label": `${m.label} preset — ${m.description}`,
|
|
6863
6863
|
children: m.label
|
|
@@ -6869,7 +6869,7 @@ function Qd({
|
|
|
6869
6869
|
_d,
|
|
6870
6870
|
{
|
|
6871
6871
|
previewRun: sn,
|
|
6872
|
-
isStale:
|
|
6872
|
+
isStale: Ks,
|
|
6873
6873
|
onViewOutput: () => X("result")
|
|
6874
6874
|
}
|
|
6875
6875
|
) : null,
|
|
@@ -7127,7 +7127,7 @@ function Qd({
|
|
|
7127
7127
|
ln === m && y && "ring-1 ring-foreground/20"
|
|
7128
7128
|
),
|
|
7129
7129
|
children: [
|
|
7130
|
-
m === "EMAIL" ? /* @__PURE__ */ t(
|
|
7130
|
+
m === "EMAIL" ? /* @__PURE__ */ t(Ka, { className: "h-3 w-3" }) : /* @__PURE__ */ t(En, { className: "h-3 w-3" }),
|
|
7131
7131
|
m === "EMAIL" ? "Email" : "Slack"
|
|
7132
7132
|
]
|
|
7133
7133
|
},
|
|
@@ -7281,10 +7281,10 @@ function Qd({
|
|
|
7281
7281
|
}
|
|
7282
7282
|
)
|
|
7283
7283
|
] })
|
|
7284
|
-
] }) : Ne === "plan" &&
|
|
7284
|
+
] }) : Ne === "plan" && Ke ? /* @__PURE__ */ t(
|
|
7285
7285
|
Nd,
|
|
7286
7286
|
{
|
|
7287
|
-
previewPlan:
|
|
7287
|
+
previewPlan: Ke,
|
|
7288
7288
|
previewRun: W && W.status !== "SUCCESS" ? W : null,
|
|
7289
7289
|
scopeLabel: H.source.type === "dashboard" ? (C == null ? void 0 : C.title) ?? H.label : H.label
|
|
7290
7290
|
}
|
|
@@ -7355,7 +7355,7 @@ function Qd({
|
|
|
7355
7355
|
disabled: Ge,
|
|
7356
7356
|
onClick: () => eo(rn ? "ACTIVE" : "PAUSED"),
|
|
7357
7357
|
children: [
|
|
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(
|
|
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(qa, { className: "h-3 w-3" }),
|
|
7359
7359
|
rn ? "Resume" : "Pause"
|
|
7360
7360
|
]
|
|
7361
7361
|
}
|
|
@@ -7425,7 +7425,7 @@ function Qd({
|
|
|
7425
7425
|
},
|
|
7426
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: [
|
|
7427
7427
|
/* @__PURE__ */ s(ht, { className: "border-b border-border px-6 py-3 text-left", children: [
|
|
7428
|
-
/* @__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: qs }),
|
|
7429
7429
|
/* @__PURE__ */ t(ft, { className: "text-[12px] text-muted-foreground", children: "Full briefing render" })
|
|
7430
7430
|
] }),
|
|
7431
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 })
|
|
@@ -7966,7 +7966,7 @@ function fc({
|
|
|
7966
7966
|
/* @__PURE__ */ t(_a, { className: "h-3.5 w-3.5" }),
|
|
7967
7967
|
"Resume"
|
|
7968
7968
|
] }) : /* @__PURE__ */ s(se, { children: [
|
|
7969
|
-
/* @__PURE__ */ t(
|
|
7969
|
+
/* @__PURE__ */ t(qa, { className: "h-3.5 w-3.5" }),
|
|
7970
7970
|
"Pause"
|
|
7971
7971
|
] })
|
|
7972
7972
|
}
|
|
@@ -8075,7 +8075,7 @@ function zc({
|
|
|
8075
8075
|
ue(() => {
|
|
8076
8076
|
!p || h !== "list" || !De || me();
|
|
8077
8077
|
}, [De, me, p, h]);
|
|
8078
|
-
const
|
|
8078
|
+
const q = () => {
|
|
8079
8079
|
x(null), S("dashboard"), g("list"), f(!0);
|
|
8080
8080
|
}, lt = () => {
|
|
8081
8081
|
x(null), g("author");
|
|
@@ -8097,7 +8097,7 @@ function zc({
|
|
|
8097
8097
|
R(null);
|
|
8098
8098
|
}
|
|
8099
8099
|
}
|
|
8100
|
-
},
|
|
8100
|
+
}, Ke = async ($) => {
|
|
8101
8101
|
if (!(!G || !k)) {
|
|
8102
8102
|
P($.id);
|
|
8103
8103
|
try {
|
|
@@ -8164,7 +8164,7 @@ function zc({
|
|
|
8164
8164
|
disabled: o || !De,
|
|
8165
8165
|
briefingCount: Me,
|
|
8166
8166
|
className: i,
|
|
8167
|
-
onClick:
|
|
8167
|
+
onClick: q
|
|
8168
8168
|
}
|
|
8169
8169
|
),
|
|
8170
8170
|
/* @__PURE__ */ s(
|
|
@@ -8193,7 +8193,7 @@ function zc({
|
|
|
8193
8193
|
},
|
|
8194
8194
|
onNew: lt,
|
|
8195
8195
|
onRunNow: ($) => {
|
|
8196
|
-
|
|
8196
|
+
Ke($);
|
|
8197
8197
|
},
|
|
8198
8198
|
onTogglePause: ($) => {
|
|
8199
8199
|
Pe($);
|
|
@@ -8310,9 +8310,9 @@ export {
|
|
|
8310
8310
|
Yi as D,
|
|
8311
8311
|
Ji as E,
|
|
8312
8312
|
St as F,
|
|
8313
|
-
|
|
8313
|
+
Kr as G,
|
|
8314
8314
|
Ul as H,
|
|
8315
|
-
|
|
8315
|
+
qr as I,
|
|
8316
8316
|
Qd as J,
|
|
8317
8317
|
zc as K,
|
|
8318
8318
|
Wa as L,
|