react-semaphor 0.1.377 → 0.1.378
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 +1 -1
- package/dist/brand-studio/index.js +6 -6
- package/dist/chunks/{braces-C2uBgj3t.js → braces-BT-ZyB-g.js} +1 -1
- package/dist/chunks/{braces-CkXyWzRh.js → braces-DOxxfERN.js} +1 -1
- package/dist/chunks/calendar-preferences-dialog-CRvQz4TE.js +1 -0
- package/dist/chunks/{calendar-preferences-dialog-C55VOTIy.js → calendar-preferences-dialog-DZe8Nd-4.js} +16 -17
- package/dist/chunks/catalog-field-grounding-8L9I0zdg.js +1 -0
- package/dist/chunks/{catalog-field-grounding-DHXEI7cW.js → catalog-field-grounding-BK4BX8sZ.js} +7 -6
- package/dist/chunks/{dashboard-briefing-launcher-DMKfG_z3.js → dashboard-briefing-launcher-BWyHpn2M.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-CUyeiL_T.js → dashboard-briefing-launcher-DURdx5Ox.js} +204 -204
- package/dist/chunks/{dashboard-controls-B4hxFc3Q.js → dashboard-controls-D5mjF67R.js} +40 -40
- package/dist/chunks/{dashboard-controls-D4vI0wvU.js → dashboard-controls-J71GLAxt.js} +1 -1
- package/dist/chunks/{dashboard-json-pl1_mFqJ.js → dashboard-json-BumvCRuk.js} +3 -3
- package/dist/chunks/{dashboard-json-DQnm6daE.js → dashboard-json-Cv8jXh0X.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-CjTXY51a.js → edit-dashboard-visual-dvhQzG_h.js} +33 -33
- package/dist/chunks/{edit-dashboard-visual-CF4aSsav.js → edit-dashboard-visual-eYJMy7aw.js} +1031 -1032
- package/dist/chunks/{index-B2kPleRS.js → index-c_0nwsOM.js} +199 -194
- package/dist/chunks/{index-Bn866BBY.js → index-hhH5F_tQ.js} +20664 -20526
- package/dist/chunks/{layout-grid-BFmJ7vmH.js → layout-grid-DTbOIOsE.js} +1 -1
- package/dist/chunks/{layout-grid-CTOW9oTg.js → layout-grid-DccceHv4.js} +1 -1
- package/dist/chunks/{palette-OFaniMPn.js → palette-DCzLwqIw.js} +1 -1
- package/dist/chunks/{palette-DrhPeer-.js → palette-SimHJELn.js} +1 -1
- package/dist/chunks/{save-BxWBiQv1.js → save-D2O96E5A.js} +1 -1
- package/dist/chunks/{save-Dh6gSC4x.js → save-zNVYH02T.js} +1 -1
- package/dist/chunks/{switch-C-fGjxjY.js → switch-DMPsMpHW.js} +1 -1
- package/dist/chunks/{switch-D5xopzFD.js → switch-Jhyl63RF.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-Dg2ffpCE.js → use-create-flow-overlay-state-D9UKBuCA.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-DrKP0jWE.js → use-create-flow-overlay-state-hlsTNh2b.js} +4 -4
- package/dist/chunks/{validation-bMedDBOo.js → validation-BM3-ShHV.js} +1 -1
- package/dist/chunks/{validation-BHFaWDU-.js → validation-BVpqRFar.js} +1 -1
- 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 +3 -3
- package/dist/data-app-sdk/index.cjs +1 -1
- package/dist/data-app-sdk/index.js +3 -3
- 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 +14 -14
- 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 +44 -0
- package/dist/types/dashboard-assistant.d.ts +42 -0
- package/dist/types/data-app-sdk-validation.d.ts +42 -0
- package/dist/types/data-app-sdk.d.ts +42 -0
- package/package.json +1 -1
- package/dist/chunks/calendar-preferences-dialog-DAukJOaP.js +0 -1
- package/dist/chunks/catalog-field-grounding-BGW0hnB9.js +0 -1
- package/dist/chunks/chevrons-up-down-BnzChFLU.js +0 -14
- package/dist/chunks/chevrons-up-down-W0nzHzx0.js +0 -6
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as t, jsxs as s, Fragment as oe } from "react/jsx-runtime";
|
|
2
2
|
import yo, { useState as S, useEffect as fe, useMemo as O, useContext as vo, useRef as Be, useCallback as ye } from "react";
|
|
3
|
-
import { b as at, c as st, e as ot,
|
|
4
|
-
import { c as Re, B as X, X as Ee, L as Lt, a0 as jn, f as se, Q as
|
|
5
|
-
import { L as tr } from "./layout-grid-
|
|
6
|
-
import { u as nr, V as ji, E as Wr, a as Gr, b as zi, c as Ki, L as
|
|
3
|
+
import { b as at, c as st, e as ot, aH as Aa, bu as No, bQ as wo, bR as Co, aA as ko, ar as Ft, bE as Ea, aY as bt, J as So, A as Do, bS as Ao, ah as Qt, ak as Yt, al as Xt, am as Zt, an as en, ao as tn, ap as nn, aq as Jn, aX as rn, p as be, bT as Eo, bU as Io, bV as En, bF as an, bG as sn, bW as Qn, bH as on, bI as De, av as To, ba as zt, bX as Ia, bt as On, d as xt, f as yt, bY as Lo, o as Ta, aG as Ro, aV as La, bZ as Fo, aW as Un, y as Po, ae as Mo, ax as Bo, u as Pt, a0 as ht, ab as Yn, a7 as Ra, a8 as Xn, a1 as Fa, a6 as Vo, ad as Oo, bL as Uo, b_ as $o, b6 as _o, a9 as Kr, x as Kt, a3 as jo, b$ as zo, c0 as Ko, c1 as Ho, c2 as qo, c3 as Wo, c4 as Go, c5 as Jo, c6 as Qo, c7 as Pa, c8 as Yo, c9 as Xo, ca as Zo, cb as ei, cc as ti, az as vt, cd as ni, bJ as Ma, ce as ri, cf as ai, cg as si, ch as oi, ci as ii, cj as li, ck as di, cl as Ba, cm as ci, cn as ui, co as Va, cp as Oa, cq as Ua, cr as mi, cs as hi, bg as $a, br as pi, bo as fi, ct as gi, aw as _a, cu as bi, cv as xi, cw as yi, cx as vi, cy as $n, cz as Ni, cA as wi, cB as ja, cC as Zn, cD as Ci, cE as ki, cF as Si, cG as za, cH as Mt, cI as Di, cJ as Ai, ay as _n, cK as Ei, cL as Ka, as as Ii, cM as Ti, cN as Li, cO as Ri, cP as Fi, cQ as Pi, cR as Mi, cS as Bi } from "./index-hhH5F_tQ.js";
|
|
4
|
+
import { c as Re, B as X, X as Ee, L as Lt, a0 as jn, f as se, Q as Ha, e as _e, a as v, O as qa, G as Nt, u as J, E as wt, aI as Hr, a9 as Wa, g as Ge, H as Ga, S as er, P as Ue, b as it, d as lt, aJ as Vi, aK as Oi, aG as Ja, aL as Qa, a1 as Ze, a2 as et, a3 as tt, a4 as nt, a5 as xe, aM as Ya, aN as Xa, _ as rt, T as Ui, I as $i, J as qr, aO as _i } from "./switch-DMPsMpHW.js";
|
|
5
|
+
import { L as tr } from "./layout-grid-DTbOIOsE.js";
|
|
6
|
+
import { u as nr, V as ji, E as Wr, a as Gr, b as zi, c as Ki, L as Hi, d as qi, e as Za, C as es, f as Wi, R as Gi, S as Ji } from "./use-create-flow-overlay-state-hlsTNh2b.js";
|
|
7
7
|
import "./index-CuHybtft.js";
|
|
8
|
-
import "./catalog-field-grounding-
|
|
9
|
-
import { l as
|
|
8
|
+
import "./catalog-field-grounding-BK4BX8sZ.js";
|
|
9
|
+
import { l as Jr } from "./date-formatter-CzcPZx39.js";
|
|
10
10
|
import "./index-CJdxSyQq.js";
|
|
11
11
|
import "react-dom";
|
|
12
12
|
/**
|
|
@@ -15,7 +15,7 @@ import "react-dom";
|
|
|
15
15
|
* This source code is licensed under the ISC license.
|
|
16
16
|
* See the LICENSE file in the root directory of this source tree.
|
|
17
17
|
*/
|
|
18
|
-
const
|
|
18
|
+
const Qi = Re("ArrowUpRight", [
|
|
19
19
|
["path", { d: "M7 7h10v10", key: "1tivn9" }],
|
|
20
20
|
["path", { d: "M7 17 17 7", key: "1vkiza" }]
|
|
21
21
|
]);
|
|
@@ -36,7 +36,7 @@ const Yi = Re("CircleX", [
|
|
|
36
36
|
* This source code is licensed under the ISC license.
|
|
37
37
|
* See the LICENSE file in the root directory of this source tree.
|
|
38
38
|
*/
|
|
39
|
-
const
|
|
39
|
+
const Qr = Re("FileDown", [
|
|
40
40
|
["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
|
|
41
41
|
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
|
|
42
42
|
["path", { d: "M12 18v-6", key: "17g6i2" }],
|
|
@@ -290,7 +290,7 @@ function al(e, n) {
|
|
|
290
290
|
}
|
|
291
291
|
function sl(e) {
|
|
292
292
|
const n = (e || "").toLowerCase();
|
|
293
|
-
return n.includes("table") ?
|
|
293
|
+
return n.includes("table") ? Ha : n.includes("pie") || n.includes("donut") ? Eo : n.includes("line") ? Io : n.includes("bar") ? qa : tr;
|
|
294
294
|
}
|
|
295
295
|
function ol({ visual: e }) {
|
|
296
296
|
const n = e.ownership.status === "public" ? "Public" : e.ownership.status === "shared" || e.ownership.sharedCount > 0 ? "Shared" : "Private";
|
|
@@ -311,12 +311,12 @@ function au({
|
|
|
311
311
|
}, { selectVisual: C } = Aa(), { handleAddLibraryVisual: L, handleEditLibraryVisual: U } = nr(), { isConsoleMode: A } = No(), {
|
|
312
312
|
resources: F,
|
|
313
313
|
isLoading: _,
|
|
314
|
-
isError:
|
|
314
|
+
isError: H,
|
|
315
315
|
createResource: V,
|
|
316
316
|
updateResource: z,
|
|
317
317
|
deleteResourceAsync: j,
|
|
318
318
|
duplicateResource: B,
|
|
319
|
-
isCreating:
|
|
319
|
+
isCreating: Q,
|
|
320
320
|
isDeleting: te
|
|
321
321
|
} = wo(
|
|
322
322
|
void 0,
|
|
@@ -331,8 +331,8 @@ function au({
|
|
|
331
331
|
const E = r.trim().toLowerCase();
|
|
332
332
|
return E ? ce.filter(
|
|
333
333
|
(K) => {
|
|
334
|
-
var ne, Le,
|
|
335
|
-
return ((ne = K.title) == null ? void 0 : ne.toLowerCase().includes(E)) || ((Le = K.description) == null ? void 0 : Le.toLowerCase().includes(E)) || ((
|
|
334
|
+
var ne, Le, Qe;
|
|
335
|
+
return ((ne = K.title) == null ? void 0 : ne.toLowerCase().includes(E)) || ((Le = K.description) == null ? void 0 : Le.toLowerCase().includes(E)) || ((Qe = K.kind) == null ? void 0 : Qe.toLowerCase().includes(E));
|
|
336
336
|
}
|
|
337
337
|
) : ce;
|
|
338
338
|
}, [r, ce]), Y = O(
|
|
@@ -346,13 +346,13 @@ function au({
|
|
|
346
346
|
(E) => E.permissions.canShare
|
|
347
347
|
), ue = Z.length > 0 && Z.every(
|
|
348
348
|
(E) => o.has(E.id)
|
|
349
|
-
),
|
|
349
|
+
), q = Z.some(
|
|
350
350
|
(E) => o.has(E.id)
|
|
351
|
-
),
|
|
351
|
+
), Je = (E) => {
|
|
352
352
|
const K = new Set(o);
|
|
353
353
|
E(K), i(K);
|
|
354
354
|
}, Te = (E) => {
|
|
355
|
-
|
|
355
|
+
Je((K) => {
|
|
356
356
|
K.has(E) ? K.delete(E) : K.add(E);
|
|
357
357
|
});
|
|
358
358
|
}, Ve = () => {
|
|
@@ -422,18 +422,18 @@ function au({
|
|
|
422
422
|
f(null);
|
|
423
423
|
return;
|
|
424
424
|
}
|
|
425
|
-
const Le = Object.keys(ne),
|
|
426
|
-
R(m.id,
|
|
425
|
+
const Le = Object.keys(ne), Qe = Le.length === 1 ? Le[0] : void 0;
|
|
426
|
+
R(m.id, Qe), z(
|
|
427
427
|
{
|
|
428
428
|
resourceId: m.id,
|
|
429
429
|
data: ne
|
|
430
430
|
},
|
|
431
431
|
{
|
|
432
432
|
onSuccess: () => {
|
|
433
|
-
W(m.id,
|
|
433
|
+
W(m.id, Qe), f(null);
|
|
434
434
|
},
|
|
435
435
|
onError: () => {
|
|
436
|
-
W(m.id,
|
|
436
|
+
W(m.id, Qe);
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
439
|
);
|
|
@@ -449,7 +449,7 @@ function au({
|
|
|
449
449
|
children: [
|
|
450
450
|
/* @__PURE__ */ s("div", { className: "flex h-10 shrink-0 items-center justify-between gap-2 border-b border-border/60 px-3", children: [
|
|
451
451
|
/* @__PURE__ */ s("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
452
|
-
/* @__PURE__ */ t(
|
|
452
|
+
/* @__PURE__ */ t(Ha, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
|
|
453
453
|
/* @__PURE__ */ s("div", { className: "flex min-w-0 items-baseline gap-2", children: [
|
|
454
454
|
/* @__PURE__ */ t(ot, { className: "truncate text-[13px] font-medium leading-none tracking-normal", children: "Visuals library" }),
|
|
455
455
|
/* @__PURE__ */ t("span", { className: "shrink-0 text-[10px] font-medium uppercase leading-none tracking-[0.08em] text-muted-foreground", children: "Add to dashboard" })
|
|
@@ -496,7 +496,7 @@ function au({
|
|
|
496
496
|
}
|
|
497
497
|
)
|
|
498
498
|
] }),
|
|
499
|
-
/* @__PURE__ */ t("div", { className: "min-h-0 flex-1 overflow-auto", children: _ ? /* @__PURE__ */ t("div", { className: "p-3", children: /* @__PURE__ */ t(nl, {}) }) :
|
|
499
|
+
/* @__PURE__ */ t("div", { className: "min-h-0 flex-1 overflow-auto", children: _ ? /* @__PURE__ */ t("div", { className: "p-3", children: /* @__PURE__ */ t(nl, {}) }) : H ? /* @__PURE__ */ t("div", { className: "flex flex-col items-center gap-2 px-4 py-12 text-center", children: /* @__PURE__ */ t("p", { className: "text-[13px] text-destructive", children: "Failed to load visuals" }) }) : Z.length === 0 ? /* @__PURE__ */ s("div", { className: "flex flex-col items-center gap-2 px-4 py-12 text-center", children: [
|
|
500
500
|
/* @__PURE__ */ t(tr, { className: "h-5 w-5 text-muted-foreground/60" }),
|
|
501
501
|
/* @__PURE__ */ t("p", { className: "text-[13px] font-medium", children: r ? "No visuals found" : "No visuals yet" }),
|
|
502
502
|
/* @__PURE__ */ t("p", { className: "text-[12px] text-muted-foreground", children: r ? "Try a different search." : "Create a saved visual to add it here." })
|
|
@@ -506,7 +506,7 @@ function au({
|
|
|
506
506
|
visuals: Z,
|
|
507
507
|
selectedIds: o,
|
|
508
508
|
allFilteredSelected: ue,
|
|
509
|
-
someFilteredSelected:
|
|
509
|
+
someFilteredSelected: q,
|
|
510
510
|
onSelectAll: Ve,
|
|
511
511
|
onToggleSelection: Te,
|
|
512
512
|
onAddVisual: Fe,
|
|
@@ -600,7 +600,7 @@ function au({
|
|
|
600
600
|
open: l,
|
|
601
601
|
onOpenChange: c,
|
|
602
602
|
onSubmit: V,
|
|
603
|
-
isCreating:
|
|
603
|
+
isCreating: Q
|
|
604
604
|
}
|
|
605
605
|
),
|
|
606
606
|
d && /* @__PURE__ */ t(
|
|
@@ -624,7 +624,7 @@ function au({
|
|
|
624
624
|
}
|
|
625
625
|
),
|
|
626
626
|
/* @__PURE__ */ t(
|
|
627
|
-
|
|
627
|
+
Qt,
|
|
628
628
|
{
|
|
629
629
|
open: h,
|
|
630
630
|
onOpenChange: (E) => {
|
|
@@ -644,7 +644,7 @@ function au({
|
|
|
644
644
|
/* @__PURE__ */ s(tn, { children: [
|
|
645
645
|
/* @__PURE__ */ t(nn, { disabled: te, children: "Cancel" }),
|
|
646
646
|
/* @__PURE__ */ s(
|
|
647
|
-
|
|
647
|
+
Jn,
|
|
648
648
|
{
|
|
649
649
|
onClick: (E) => {
|
|
650
650
|
E.preventDefault(), ft();
|
|
@@ -841,7 +841,7 @@ function dl({
|
|
|
841
841
|
variant: "ghost",
|
|
842
842
|
className: "w-7 px-0",
|
|
843
843
|
"aria-label": "More actions",
|
|
844
|
-
children: /* @__PURE__ */ t(
|
|
844
|
+
children: /* @__PURE__ */ t(Qn, { className: "h-3.5 w-3.5" })
|
|
845
845
|
}
|
|
846
846
|
) }),
|
|
847
847
|
/* @__PURE__ */ s(
|
|
@@ -1012,7 +1012,7 @@ function cl({
|
|
|
1012
1012
|
] }) });
|
|
1013
1013
|
}
|
|
1014
1014
|
function ul() {
|
|
1015
|
-
const [e, n] = S(!1), [r, a] = S(!1), [o, i] = S(null), [l, c] = S(null), d = Nt((A) => A.frame), u = Nt((A) => A.card), m = Ro(), f =
|
|
1015
|
+
const [e, n] = S(!1), [r, a] = S(!1), [o, i] = S(null), [l, c] = S(null), d = Nt((A) => A.frame), u = Nt((A) => A.card), m = Ro(), f = J((A) => A.selectedSheetId), h = J((A) => A.dashboard), { getUpdatedFrame: g } = nr(), { selectVisual: I } = Aa(), { addFrame: N, setSelectedFrameId: w, setIsVisualEditing: b } = wt(), k = La(), x = !!(d != null && d.visualId), C = (() => {
|
|
1016
1016
|
var A, F;
|
|
1017
1017
|
return ((A = d == null ? void 0 : d.cards) == null ? void 0 : A.length) === 1 && ((F = d.cards[0]) != null && F.title) ? d.cards[0].title : m != null && m.title ? m.title : (u == null ? void 0 : u.title) || "Untitled Visual";
|
|
1018
1018
|
})(), L = Fo((A) => {
|
|
@@ -1020,7 +1020,7 @@ function ul() {
|
|
|
1020
1020
|
try {
|
|
1021
1021
|
const F = {
|
|
1022
1022
|
...o,
|
|
1023
|
-
id:
|
|
1023
|
+
id: Hr(),
|
|
1024
1024
|
visualId: A.id
|
|
1025
1025
|
// Link to the newly created library visual
|
|
1026
1026
|
};
|
|
@@ -1088,7 +1088,7 @@ function ul() {
|
|
|
1088
1088
|
const z = {
|
|
1089
1089
|
...V,
|
|
1090
1090
|
// Card title already synced
|
|
1091
|
-
id:
|
|
1091
|
+
id: Hr(),
|
|
1092
1092
|
visualId: void 0
|
|
1093
1093
|
// Explicitly no visualId for local visuals
|
|
1094
1094
|
};
|
|
@@ -1113,7 +1113,7 @@ function ul() {
|
|
|
1113
1113
|
};
|
|
1114
1114
|
}
|
|
1115
1115
|
function su(e = {}) {
|
|
1116
|
-
const n = Nt((V) => V.frame), r = Nt((V) => V.editorContext), a = Po((V) => V.selectedVisual), o =
|
|
1116
|
+
const n = Nt((V) => V.frame), r = Nt((V) => V.editorContext), a = Po((V) => V.selectedVisual), o = J((V) => V.selectedFrameId), i = J((V) => V.selectedSheetId), l = J((V) => V.dashboard), { setIsVisualEditing: c, updateFrame: d } = wt(), [u, m] = S(!1), [f, h] = S("both"), g = La(), I = (r == null ? void 0 : r.type) === "documentSection", N = !!(n != null && n.visualId || a != null && a.id), w = !!(n != null && n.visualId && o), b = N && !w, {
|
|
1117
1117
|
saveAsDialogOpen: k,
|
|
1118
1118
|
setSaveAsDialogOpen: x,
|
|
1119
1119
|
handleSaveAs: C,
|
|
@@ -1143,22 +1143,22 @@ function su(e = {}) {
|
|
|
1143
1143
|
visualId: void 0
|
|
1144
1144
|
}, B = Un(l, j.id);
|
|
1145
1145
|
try {
|
|
1146
|
-
const
|
|
1146
|
+
const Q = await g(j, {
|
|
1147
1147
|
previousFrame: B
|
|
1148
1148
|
});
|
|
1149
1149
|
d(i, j, {
|
|
1150
|
-
semanticExecutionPayload:
|
|
1150
|
+
semanticExecutionPayload: Q
|
|
1151
1151
|
});
|
|
1152
|
-
} catch (
|
|
1153
|
-
console.error("Failed to apply local semantic metadata:",
|
|
1154
|
-
|
|
1152
|
+
} catch (Q) {
|
|
1153
|
+
console.error("Failed to apply local semantic metadata:", Q), m(!1), be.error(
|
|
1154
|
+
Q instanceof Error ? Q.message : "Failed to prepare semantic metadata for this visual"
|
|
1155
1155
|
);
|
|
1156
1156
|
return;
|
|
1157
1157
|
}
|
|
1158
1158
|
setTimeout(() => {
|
|
1159
1159
|
m(!1), be.success("Changes applied. Visual is now local to this dashboard"), c(!1);
|
|
1160
1160
|
}, 300);
|
|
1161
|
-
},
|
|
1161
|
+
}, H = (V) => {
|
|
1162
1162
|
h(V), x(!0);
|
|
1163
1163
|
};
|
|
1164
1164
|
return /* @__PURE__ */ s(oe, { children: [
|
|
@@ -1201,7 +1201,7 @@ function su(e = {}) {
|
|
|
1201
1201
|
/* @__PURE__ */ s(
|
|
1202
1202
|
De,
|
|
1203
1203
|
{
|
|
1204
|
-
onClick: () =>
|
|
1204
|
+
onClick: () => H("local"),
|
|
1205
1205
|
disabled: A,
|
|
1206
1206
|
children: [
|
|
1207
1207
|
/* @__PURE__ */ t(Ft, { className: "h-3.5 w-3.5" }),
|
|
@@ -1212,10 +1212,10 @@ function su(e = {}) {
|
|
|
1212
1212
|
/* @__PURE__ */ s(
|
|
1213
1213
|
De,
|
|
1214
1214
|
{
|
|
1215
|
-
onClick: () =>
|
|
1215
|
+
onClick: () => H("library"),
|
|
1216
1216
|
disabled: A,
|
|
1217
1217
|
children: [
|
|
1218
|
-
/* @__PURE__ */ t(
|
|
1218
|
+
/* @__PURE__ */ t(Hi, { className: "h-3.5 w-3.5" }),
|
|
1219
1219
|
"Save as Library Visual"
|
|
1220
1220
|
]
|
|
1221
1221
|
}
|
|
@@ -1223,10 +1223,10 @@ function su(e = {}) {
|
|
|
1223
1223
|
/* @__PURE__ */ s(
|
|
1224
1224
|
De,
|
|
1225
1225
|
{
|
|
1226
|
-
onClick: () =>
|
|
1226
|
+
onClick: () => H("both"),
|
|
1227
1227
|
disabled: A,
|
|
1228
1228
|
children: [
|
|
1229
|
-
/* @__PURE__ */ t(
|
|
1229
|
+
/* @__PURE__ */ t(qi, { className: "h-3.5 w-3.5" }),
|
|
1230
1230
|
"Save Copy as Linked Visual"
|
|
1231
1231
|
]
|
|
1232
1232
|
}
|
|
@@ -1254,7 +1254,7 @@ function su(e = {}) {
|
|
|
1254
1254
|
] });
|
|
1255
1255
|
}
|
|
1256
1256
|
function ou({ className: e }) {
|
|
1257
|
-
const n = Nt((u) => u.isDevMode), r =
|
|
1257
|
+
const n = Nt((u) => u.isDevMode), r = J((u) => u.isVisualEditing), { setIsDevMode: a } = Ga(), { config: o } = vo(Mo).tokenProps, i = (o == null ? void 0 : o.showAdvancedMode) !== !1;
|
|
1258
1258
|
if (!r || !i)
|
|
1259
1259
|
return null;
|
|
1260
1260
|
const l = n ? er : Bo, c = n ? "Drag & drop" : "SQL", d = n ? "Switch to drag-and-drop mode" : "Switch to SQL mode";
|
|
@@ -1288,7 +1288,7 @@ function iu({
|
|
|
1288
1288
|
discardLabel: d = "Discard",
|
|
1289
1289
|
saveLabel: u = "Save"
|
|
1290
1290
|
}) {
|
|
1291
|
-
return /* @__PURE__ */ t(
|
|
1291
|
+
return /* @__PURE__ */ t(Qt, { open: e, onOpenChange: (f) => {
|
|
1292
1292
|
!f && o || n(f);
|
|
1293
1293
|
}, children: /* @__PURE__ */ s(Yt, { children: [
|
|
1294
1294
|
/* @__PURE__ */ s(Xt, { children: [
|
|
@@ -1554,7 +1554,7 @@ function yl({
|
|
|
1554
1554
|
] }),
|
|
1555
1555
|
/* @__PURE__ */ s("div", { className: "ml-8", children: [
|
|
1556
1556
|
e.status === "completed" && /* @__PURE__ */ s("div", { className: "flex items-center justify-between", children: [
|
|
1557
|
-
/* @__PURE__ */ t("span", { className: "text-xs text-muted-foreground", children:
|
|
1557
|
+
/* @__PURE__ */ t("span", { className: "text-xs text-muted-foreground", children: Jr(e.startedAt, { addSuffix: !0 }) }),
|
|
1558
1558
|
e.downloadUrl && /* @__PURE__ */ s(
|
|
1559
1559
|
X,
|
|
1560
1560
|
{
|
|
@@ -1576,7 +1576,7 @@ function yl({
|
|
|
1576
1576
|
"% complete"
|
|
1577
1577
|
] })
|
|
1578
1578
|
] }),
|
|
1579
|
-
e.status === "failed" && /* @__PURE__ */ t("span", { className: "text-xs text-muted-foreground", children:
|
|
1579
|
+
e.status === "failed" && /* @__PURE__ */ t("span", { className: "text-xs text-muted-foreground", children: Jr(e.startedAt, { addSuffix: !0 }) })
|
|
1580
1580
|
] })
|
|
1581
1581
|
] });
|
|
1582
1582
|
}
|
|
@@ -1669,13 +1669,13 @@ function vl() {
|
|
|
1669
1669
|
[n == null ? void 0 : n.apiServiceUrl, e == null ? void 0 : e.accessToken, o]
|
|
1670
1670
|
);
|
|
1671
1671
|
return m.length === 0 ? /* @__PURE__ */ s("div", { className: "p-6 text-center", children: [
|
|
1672
|
-
/* @__PURE__ */ t(
|
|
1672
|
+
/* @__PURE__ */ t(Qr, { className: "mx-auto mb-2 h-8 w-8 text-muted-foreground" }),
|
|
1673
1673
|
/* @__PURE__ */ t("p", { className: "text-sm text-muted-foreground", children: "No active exports" }),
|
|
1674
1674
|
/* @__PURE__ */ t("p", { className: "mt-1 text-xs text-muted-foreground", children: "Large exports will appear here" })
|
|
1675
1675
|
] }) : /* @__PURE__ */ s("div", { className: "flex flex-col", children: [
|
|
1676
1676
|
/* @__PURE__ */ s("div", { className: "flex items-center justify-between border-b px-4 py-3", children: [
|
|
1677
1677
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
|
|
1678
|
-
/* @__PURE__ */ t(
|
|
1678
|
+
/* @__PURE__ */ t(Qr, { className: "h-5 w-5 text-muted-foreground" }),
|
|
1679
1679
|
/* @__PURE__ */ t("h4", { className: "font-semibold", children: "Exports" })
|
|
1680
1680
|
] }),
|
|
1681
1681
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-1", children: [
|
|
@@ -1782,16 +1782,16 @@ function wl({
|
|
|
1782
1782
|
// create and make consumers use `forceClose()` from a dedicated
|
|
1783
1783
|
// button.
|
|
1784
1784
|
dismissMode: a ? "passive" : "explicit-only"
|
|
1785
|
-
}), h =
|
|
1785
|
+
}), h = J((F) => F.dashboard), { setDashboardControlsModel: g } = wt(), { participants: I } = Ko(Vi(h)), N = Array.from(
|
|
1786
1786
|
new Map(
|
|
1787
1787
|
I.flatMap(
|
|
1788
1788
|
(F) => F.fieldChoices.map((_) => {
|
|
1789
|
-
var
|
|
1789
|
+
var H;
|
|
1790
1790
|
return [
|
|
1791
1791
|
_.value,
|
|
1792
1792
|
{
|
|
1793
1793
|
option: _,
|
|
1794
|
-
target: (
|
|
1794
|
+
target: (H = F.fieldTargetMap) == null ? void 0 : H[_.value]
|
|
1795
1795
|
}
|
|
1796
1796
|
];
|
|
1797
1797
|
})
|
|
@@ -1801,12 +1801,12 @@ function wl({
|
|
|
1801
1801
|
new Map(
|
|
1802
1802
|
I.flatMap(
|
|
1803
1803
|
(F) => F.metricChoices.map((_) => {
|
|
1804
|
-
var
|
|
1804
|
+
var H;
|
|
1805
1805
|
return [
|
|
1806
1806
|
_.value,
|
|
1807
1807
|
{
|
|
1808
1808
|
option: _,
|
|
1809
|
-
target: (
|
|
1809
|
+
target: (H = F.metricTargetMap) == null ? void 0 : H[_.value]
|
|
1810
1810
|
}
|
|
1811
1811
|
];
|
|
1812
1812
|
})
|
|
@@ -1815,11 +1815,11 @@ function wl({
|
|
|
1815
1815
|
), b = Oi({
|
|
1816
1816
|
...h || {},
|
|
1817
1817
|
controls: []
|
|
1818
|
-
}), k =
|
|
1818
|
+
}), k = Ho(h), x = (F, _, H) => {
|
|
1819
1819
|
g(
|
|
1820
1820
|
F,
|
|
1821
1821
|
_,
|
|
1822
|
-
Nl(
|
|
1822
|
+
Nl(H)
|
|
1823
1823
|
);
|
|
1824
1824
|
}, C = ye(() => {
|
|
1825
1825
|
if (i) {
|
|
@@ -1834,7 +1834,7 @@ function wl({
|
|
|
1834
1834
|
controls: h.controls || [],
|
|
1835
1835
|
reservedControlIds: b,
|
|
1836
1836
|
defaultValues: h.defaultControlValues || {},
|
|
1837
|
-
usageByControlId:
|
|
1837
|
+
usageByControlId: qo(h),
|
|
1838
1838
|
availableFieldChoices: N,
|
|
1839
1839
|
availableMetricChoices: w,
|
|
1840
1840
|
structuralParticipants: I,
|
|
@@ -1921,7 +1921,7 @@ function kl({
|
|
|
1921
1921
|
onOpenChange: n,
|
|
1922
1922
|
initialCreateFlowActive: r === "create",
|
|
1923
1923
|
dismissMode: "explicit-only"
|
|
1924
|
-
}), m =
|
|
1924
|
+
}), m = J((F) => F.dashboard), f = J((F) => F.selectedSheetId), { setDashboardInputs: h } = wt(), g = (A = m.sheets) == null ? void 0 : A.find(
|
|
1925
1925
|
(F) => F.id === f
|
|
1926
1926
|
), I = (g == null ? void 0 : g.kind) === "document" && !!g.document, N = O(
|
|
1927
1927
|
() => I && (g != null && g.document) ? Wo(m, g.id) : [],
|
|
@@ -1947,7 +1947,7 @@ function kl({
|
|
|
1947
1947
|
}
|
|
1948
1948
|
u(!1);
|
|
1949
1949
|
}, [a, o, u]), L = ye(
|
|
1950
|
-
(F, _,
|
|
1950
|
+
(F, _, H) => {
|
|
1951
1951
|
!I || !(g != null && g.document) || h(
|
|
1952
1952
|
El({
|
|
1953
1953
|
allInputs: m.inputs || [],
|
|
@@ -1955,7 +1955,7 @@ function kl({
|
|
|
1955
1955
|
currentDocumentInputs: N,
|
|
1956
1956
|
nextControls: F,
|
|
1957
1957
|
nextDefaultValues: _,
|
|
1958
|
-
change:
|
|
1958
|
+
change: H
|
|
1959
1959
|
})
|
|
1960
1960
|
);
|
|
1961
1961
|
},
|
|
@@ -2062,7 +2062,7 @@ function El({
|
|
|
2062
2062
|
}
|
|
2063
2063
|
for (const h of l.values())
|
|
2064
2064
|
d.has(h.id) || u.push(
|
|
2065
|
-
|
|
2065
|
+
Jo({
|
|
2066
2066
|
control: h,
|
|
2067
2067
|
existingInputs: [...e, ...u],
|
|
2068
2068
|
sheetId: n
|
|
@@ -2087,7 +2087,7 @@ function Il({
|
|
|
2087
2087
|
pickerContentClassName: d,
|
|
2088
2088
|
settingsContentClassName: u
|
|
2089
2089
|
}) {
|
|
2090
|
-
const m = o === "toolbar", [f, h] = S(!1), g =
|
|
2090
|
+
const m = o === "toolbar", [f, h] = S(!1), g = Qo("interactive");
|
|
2091
2091
|
return /* @__PURE__ */ s(
|
|
2092
2092
|
"div",
|
|
2093
2093
|
{
|
|
@@ -2164,7 +2164,7 @@ function Il({
|
|
|
2164
2164
|
}
|
|
2165
2165
|
function Tl() {
|
|
2166
2166
|
Wi();
|
|
2167
|
-
const e =
|
|
2167
|
+
const e = J((d) => d.selectedSheetId), n = J((d) => d.selectedFrameId), r = J((d) => d.dashboard), a = J((d) => d.actions.getSelectedFrame), { setSelectedFrameId: o } = wt(), { setCard: i } = Ga(), l = Nt((d) => d.card.dataSource);
|
|
2168
2168
|
return fe(() => {
|
|
2169
2169
|
var u, m;
|
|
2170
2170
|
let d = a();
|
|
@@ -2181,9 +2181,9 @@ function Tl() {
|
|
|
2181
2181
|
};
|
|
2182
2182
|
}
|
|
2183
2183
|
function Ll() {
|
|
2184
|
-
const e =
|
|
2184
|
+
const e = J((d) => d.dashboard), n = J(
|
|
2185
2185
|
(d) => d.semanticExecutionPayload
|
|
2186
|
-
), r =
|
|
2186
|
+
), r = J((d) => d.actions.addFilter), { hasEntities: a } = Tl(), { isLoading: o } = Yo(), i = O(
|
|
2187
2187
|
() => Xo(e, n),
|
|
2188
2188
|
[e, n]
|
|
2189
2189
|
), c = !Zo(e.filters) && i.hasEligibleCards && !o;
|
|
@@ -2219,7 +2219,7 @@ function Rl({
|
|
|
2219
2219
|
onManageControls: r,
|
|
2220
2220
|
onDismiss: a
|
|
2221
2221
|
}) {
|
|
2222
|
-
const o =
|
|
2222
|
+
const o = J(
|
|
2223
2223
|
(c) => c.dashboard.filterLayout
|
|
2224
2224
|
), { setFilterLayout: i } = wt();
|
|
2225
2225
|
o != null && o.displayMode;
|
|
@@ -2319,9 +2319,9 @@ function uu({
|
|
|
2319
2319
|
settingsContentClassName: i
|
|
2320
2320
|
}) {
|
|
2321
2321
|
var U;
|
|
2322
|
-
const [l, c] = S(null), d =
|
|
2322
|
+
const [l, c] = S(null), d = J((A) => A.dashboard), u = J((A) => A.selectedSheetId), m = J((A) => A.showFilters), f = ri((A) => A.setPanelOpen), h = J((A) => A.actions), { setDocumentInspectorTab: g, setShowFilters: I } = h, N = (U = d.sheets) == null ? void 0 : U.find(
|
|
2323
2323
|
(A) => A.id === u
|
|
2324
|
-
), w =
|
|
2324
|
+
), w = Ja(N), b = ye((A) => {
|
|
2325
2325
|
window.setTimeout(() => {
|
|
2326
2326
|
c(A);
|
|
2327
2327
|
}, 0);
|
|
@@ -2625,7 +2625,7 @@ const Kl = {
|
|
|
2625
2625
|
orientation: "portrait",
|
|
2626
2626
|
includeFilters: !0,
|
|
2627
2627
|
includeTimestamp: !0
|
|
2628
|
-
},
|
|
2628
|
+
}, Hl = {
|
|
2629
2629
|
delimiter: ",",
|
|
2630
2630
|
includeHeaders: !0,
|
|
2631
2631
|
useFormattedValues: !0
|
|
@@ -2663,7 +2663,7 @@ function or(e) {
|
|
|
2663
2663
|
return "Dashboard card";
|
|
2664
2664
|
}
|
|
2665
2665
|
}
|
|
2666
|
-
function
|
|
2666
|
+
function ql(e) {
|
|
2667
2667
|
var n;
|
|
2668
2668
|
switch (e.type) {
|
|
2669
2669
|
case "dashboard":
|
|
@@ -2727,7 +2727,7 @@ function gs(e) {
|
|
|
2727
2727
|
];
|
|
2728
2728
|
if (!r)
|
|
2729
2729
|
return a;
|
|
2730
|
-
const o =
|
|
2730
|
+
const o = Qa(r.sheets), i = o.find((d) => d.id === e.selectedSheetId) ?? o[0];
|
|
2731
2731
|
i && a.push({
|
|
2732
2732
|
key: `dashboard_sheet:${n}:${i.id}`,
|
|
2733
2733
|
kind: "dashboard_sheet",
|
|
@@ -2739,7 +2739,7 @@ function gs(e) {
|
|
|
2739
2739
|
defaultFormat: "pdf"
|
|
2740
2740
|
});
|
|
2741
2741
|
for (const d of r.sheets || [])
|
|
2742
|
-
|
|
2742
|
+
Ja(d) && a.push({
|
|
2743
2743
|
key: `document_sheet:${n}:${d.id}`,
|
|
2744
2744
|
kind: "document_sheet",
|
|
2745
2745
|
title: `${Ln(d)} PDF`,
|
|
@@ -2773,8 +2773,8 @@ function gs(e) {
|
|
|
2773
2773
|
}
|
|
2774
2774
|
return a;
|
|
2775
2775
|
}
|
|
2776
|
-
function
|
|
2777
|
-
const { option: n } = e, r = e.format ?? n.defaultFormat, a =
|
|
2776
|
+
function Hn(e) {
|
|
2777
|
+
const { option: n } = e, r = e.format ?? n.defaultFormat, a = Jl({
|
|
2778
2778
|
option: n,
|
|
2779
2779
|
format: r,
|
|
2780
2780
|
runtime: e.runtime
|
|
@@ -2819,15 +2819,15 @@ function qn(e) {
|
|
|
2819
2819
|
}
|
|
2820
2820
|
function ea(e) {
|
|
2821
2821
|
const n = gs(e), r = n.find((i) => i.kind === "dashboard_sheet"), o = n.find((i) => i.kind === "dashboard") ?? r;
|
|
2822
|
-
return o ? [
|
|
2822
|
+
return o ? [Hn({ option: o, runtime: e.runtime })] : [];
|
|
2823
2823
|
}
|
|
2824
|
-
function
|
|
2824
|
+
function Jl(e) {
|
|
2825
2825
|
const n = {
|
|
2826
2826
|
...xs(void 0, e.format)
|
|
2827
2827
|
}, r = e.runtime;
|
|
2828
|
-
return r != null && r.theme && (n.theme = r.theme), e.option.kind === "dashboard" && (n.sheetSelection = "all"), e.option.kind === "dashboard_sheet" && (n.sheetSelection = "current", n.currentSheetId = e.option.sheetId, n.currentSheetName = e.option.title.replace(/\sPDF$/, "")), e.option.kind === "document_sheet" && (n.currentSheetId = e.option.sheetId, n.currentSheetName = e.option.title.replace(/\sPDF$/, "")), e.option.kind === "card" && (n.selectedSheetId = e.option.sheetId, n.cardType = e.option.cardType, e.option.cardControlDefinitions && (n.cardControlDefinitions = de(e.option.cardControlDefinitions)), e.option.controlBindings && (n.controlBindings = de(e.option.controlBindings)), e.option.tablePreferences && (n.tablePreferences = de(e.option.tablePreferences))),
|
|
2828
|
+
return r != null && r.theme && (n.theme = r.theme), e.option.kind === "dashboard" && (n.sheetSelection = "all"), e.option.kind === "dashboard_sheet" && (n.sheetSelection = "current", n.currentSheetId = e.option.sheetId, n.currentSheetName = e.option.title.replace(/\sPDF$/, "")), e.option.kind === "document_sheet" && (n.currentSheetId = e.option.sheetId, n.currentSheetName = e.option.title.replace(/\sPDF$/, "")), e.option.kind === "card" && (n.selectedSheetId = e.option.sheetId, n.cardType = e.option.cardType, e.option.cardControlDefinitions && (n.cardControlDefinitions = de(e.option.cardControlDefinitions)), e.option.controlBindings && (n.controlBindings = de(e.option.controlBindings)), e.option.tablePreferences && (n.tablePreferences = de(e.option.tablePreferences))), Ql({ settings: n, option: e.option, runtime: r }), n.includeFilters !== !1 && (n.filterLine = td(n.filterValues)), n;
|
|
2829
2829
|
}
|
|
2830
|
-
function
|
|
2830
|
+
function Ql(e) {
|
|
2831
2831
|
const { settings: n, option: r, runtime: a } = e;
|
|
2832
2832
|
if (!a)
|
|
2833
2833
|
return;
|
|
@@ -2926,7 +2926,7 @@ function Xl(e) {
|
|
|
2926
2926
|
generatedAt: o,
|
|
2927
2927
|
timezone: i
|
|
2928
2928
|
}).snapshot;
|
|
2929
|
-
const l = e.sheetSelection === "all" ?
|
|
2929
|
+
const l = e.sheetSelection === "all" ? Qa(a.sheets).map((d) => d.id) : e.selectedSheetId ? [e.selectedSheetId] : [];
|
|
2930
2930
|
if (l.length !== 0)
|
|
2931
2931
|
return ci({
|
|
2932
2932
|
dashboard: a,
|
|
@@ -2996,7 +2996,7 @@ function td(e) {
|
|
|
2996
2996
|
return ii(n);
|
|
2997
2997
|
}
|
|
2998
2998
|
function xs(e, n) {
|
|
2999
|
-
return n === "csv" ? { ...
|
|
2999
|
+
return n === "csv" ? { ...Hl, ...e } : { ...Kl, ...e };
|
|
3000
3000
|
}
|
|
3001
3001
|
function ys(e) {
|
|
3002
3002
|
return e ? si(e).filter(
|
|
@@ -3156,9 +3156,9 @@ function Rn(e, n, r, a, o) {
|
|
|
3156
3156
|
});
|
|
3157
3157
|
}
|
|
3158
3158
|
function cd(e) {
|
|
3159
|
-
return
|
|
3159
|
+
return qn(nd, e ?? {});
|
|
3160
3160
|
}
|
|
3161
|
-
function
|
|
3161
|
+
function qn(e, n) {
|
|
3162
3162
|
var l, c, d, u;
|
|
3163
3163
|
const r = n.instruction ?? (n.body ? ad(n.body) : e.instruction), a = Cs(
|
|
3164
3164
|
n.body ? { ...n.body } : { ...e.body },
|
|
@@ -3390,7 +3390,7 @@ function hd({
|
|
|
3390
3390
|
] }),
|
|
3391
3391
|
/* @__PURE__ */ s("div", { className: "space-y-1.5 border-t border-border/60 pt-2.5", children: [
|
|
3392
3392
|
/* @__PURE__ */ t(
|
|
3393
|
-
|
|
3393
|
+
Ht,
|
|
3394
3394
|
{
|
|
3395
3395
|
label: "Include filters",
|
|
3396
3396
|
checked: e.includeFilters ?? !0,
|
|
@@ -3398,7 +3398,7 @@ function hd({
|
|
|
3398
3398
|
}
|
|
3399
3399
|
),
|
|
3400
3400
|
/* @__PURE__ */ t(
|
|
3401
|
-
|
|
3401
|
+
Ht,
|
|
3402
3402
|
{
|
|
3403
3403
|
label: "Include timestamp and footer",
|
|
3404
3404
|
checked: e.includeTimestamp ?? !0,
|
|
@@ -3435,7 +3435,7 @@ function pd({
|
|
|
3435
3435
|
] }),
|
|
3436
3436
|
/* @__PURE__ */ s("div", { className: "space-y-1.5 border-t border-border/60 pt-2.5", children: [
|
|
3437
3437
|
/* @__PURE__ */ t(
|
|
3438
|
-
|
|
3438
|
+
Ht,
|
|
3439
3439
|
{
|
|
3440
3440
|
label: "Include headers",
|
|
3441
3441
|
checked: e.includeHeaders ?? !0,
|
|
@@ -3443,7 +3443,7 @@ function pd({
|
|
|
3443
3443
|
}
|
|
3444
3444
|
),
|
|
3445
3445
|
/* @__PURE__ */ t(
|
|
3446
|
-
|
|
3446
|
+
Ht,
|
|
3447
3447
|
{
|
|
3448
3448
|
label: "Use formatted values",
|
|
3449
3449
|
checked: e.useFormattedValues ?? !0,
|
|
@@ -3453,7 +3453,7 @@ function pd({
|
|
|
3453
3453
|
] })
|
|
3454
3454
|
] });
|
|
3455
3455
|
}
|
|
3456
|
-
function
|
|
3456
|
+
function Ht({
|
|
3457
3457
|
label: e,
|
|
3458
3458
|
checked: n,
|
|
3459
3459
|
onChange: r
|
|
@@ -3525,7 +3525,7 @@ function gd({
|
|
|
3525
3525
|
onUpdate: r,
|
|
3526
3526
|
onRemove: a
|
|
3527
3527
|
}) {
|
|
3528
|
-
const [o, i] = S(!1), l = or(e), c =
|
|
3528
|
+
const [o, i] = S(!1), l = or(e), c = ql(e), d = e.format.toUpperCase();
|
|
3529
3529
|
return /* @__PURE__ */ s(
|
|
3530
3530
|
"span",
|
|
3531
3531
|
{
|
|
@@ -3604,10 +3604,10 @@ function yd({
|
|
|
3604
3604
|
const L = [];
|
|
3605
3605
|
for (const U of l) {
|
|
3606
3606
|
const A = Zr(U), F = d.find(
|
|
3607
|
-
(_) => _.formats.some((
|
|
3608
|
-
const V =
|
|
3607
|
+
(_) => _.formats.some((H) => {
|
|
3608
|
+
const V = Hn({
|
|
3609
3609
|
option: _,
|
|
3610
|
-
format:
|
|
3610
|
+
format: H,
|
|
3611
3611
|
runtime: i
|
|
3612
3612
|
});
|
|
3613
3613
|
return Zr(V) === A;
|
|
@@ -3639,7 +3639,7 @@ function yd({
|
|
|
3639
3639
|
for (const U of u) {
|
|
3640
3640
|
const A = d.find((F) => F.key === U.optionKey);
|
|
3641
3641
|
A && L.push(
|
|
3642
|
-
|
|
3642
|
+
Hn({
|
|
3643
3643
|
option: A,
|
|
3644
3644
|
format: U.format,
|
|
3645
3645
|
runtime: i
|
|
@@ -3818,7 +3818,7 @@ function Nd({
|
|
|
3818
3818
|
cardType: r,
|
|
3819
3819
|
className: a
|
|
3820
3820
|
}) {
|
|
3821
|
-
return /* @__PURE__ */ t(n === "csv" ? Oa : e === "dashboard" ? mi : e === "card" ? r === "table" || r === "aggregateTable" || r === "pivotTable" || r === "detailTable" ? Gi :
|
|
3821
|
+
return /* @__PURE__ */ t(n === "csv" ? Oa : e === "dashboard" ? mi : e === "card" ? r === "table" || r === "aggregateTable" || r === "pivotTable" || r === "detailTable" ? Gi : qa : Ua, { className: a });
|
|
3822
3822
|
}
|
|
3823
3823
|
const wd = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, Cd = 250;
|
|
3824
3824
|
function At(e) {
|
|
@@ -3884,7 +3884,7 @@ function sa({
|
|
|
3884
3884
|
type: L ? "TENANT_GROUP" : "all",
|
|
3885
3885
|
tenantId: L ? C.tenantId : void 0,
|
|
3886
3886
|
limit: 25
|
|
3887
|
-
}),
|
|
3887
|
+
}), H = O(
|
|
3888
3888
|
() => new Set(e.map(At)),
|
|
3889
3889
|
[e]
|
|
3890
3890
|
), V = O(
|
|
@@ -3922,7 +3922,7 @@ function sa({
|
|
|
3922
3922
|
const we = M.type === "tenant_user" ? M.tenantUserId : M.userId, E = Et((K = j.get(we)) == null ? void 0 : K.email);
|
|
3923
3923
|
E && T.add(E);
|
|
3924
3924
|
}), T;
|
|
3925
|
-
}, [j, e]),
|
|
3925
|
+
}, [j, e]), Q = O(() => {
|
|
3926
3926
|
const T = new Map(N);
|
|
3927
3927
|
return F.forEach((M) => {
|
|
3928
3928
|
T.set(M.id, aa(M));
|
|
@@ -3995,12 +3995,12 @@ function sa({
|
|
|
3995
3995
|
), ve = O(
|
|
3996
3996
|
() => [...Z, ...Y],
|
|
3997
3997
|
[Z, Y]
|
|
3998
|
-
), Ie = ve.length === 0 ? 0 : Math.min(f, ve.length - 1), ue = u.trim(),
|
|
3999
|
-
|
|
3998
|
+
), Ie = ve.length === 0 ? 0 : Math.min(f, ve.length - 1), ue = u.trim(), q = wd.test(ue), Je = Et(ue), Te = Je ? B.has(Je) : !1, Ve = A || _, Fe = (T) => {
|
|
3999
|
+
H.has(At(T)) || (n([...e, T]), m(""), h(0));
|
|
4000
4000
|
}, G = (T) => {
|
|
4001
4001
|
n(e.filter((M) => At(M) !== T));
|
|
4002
4002
|
}, Pe = () => {
|
|
4003
|
-
!
|
|
4003
|
+
!q || Te || Fe({ type: "email", address: ue });
|
|
4004
4004
|
}, $ = (T) => {
|
|
4005
4005
|
const M = Et(T.email);
|
|
4006
4006
|
M && B.has(M) || (I((we) => {
|
|
@@ -4016,7 +4016,7 @@ function sa({
|
|
|
4016
4016
|
}), Fe({ type: "group", groupId: T.id });
|
|
4017
4017
|
}, ft = (T) => {
|
|
4018
4018
|
if (T.key === "Enter") {
|
|
4019
|
-
if (T.preventDefault(),
|
|
4019
|
+
if (T.preventDefault(), q && !Te) {
|
|
4020
4020
|
Pe();
|
|
4021
4021
|
return;
|
|
4022
4022
|
}
|
|
@@ -4051,7 +4051,7 @@ function sa({
|
|
|
4051
4051
|
onRemove: () => G(M)
|
|
4052
4052
|
};
|
|
4053
4053
|
if (T.type === "group") {
|
|
4054
|
-
const K =
|
|
4054
|
+
const K = Q.get(T.groupId);
|
|
4055
4055
|
return {
|
|
4056
4056
|
key: M,
|
|
4057
4057
|
label: (K == null ? void 0 : K.name) || "Group",
|
|
@@ -4136,7 +4136,7 @@ function sa({
|
|
|
4136
4136
|
onUserClick: $,
|
|
4137
4137
|
orderedSuggestions: ve,
|
|
4138
4138
|
query: ue,
|
|
4139
|
-
queryIsEmail:
|
|
4139
|
+
queryIsEmail: q,
|
|
4140
4140
|
userSuggestions: Z,
|
|
4141
4141
|
viewerType: C == null ? void 0 : C.type
|
|
4142
4142
|
}
|
|
@@ -4308,7 +4308,7 @@ function ia({
|
|
|
4308
4308
|
}
|
|
4309
4309
|
);
|
|
4310
4310
|
}
|
|
4311
|
-
function
|
|
4311
|
+
function qt(e) {
|
|
4312
4312
|
return e === "SUCCESS" || e === "FAILED";
|
|
4313
4313
|
}
|
|
4314
4314
|
function Wt(e) {
|
|
@@ -4347,7 +4347,7 @@ function Wn({
|
|
|
4347
4347
|
g.current = null;
|
|
4348
4348
|
}, []), b = ye((x) => {
|
|
4349
4349
|
var C, L;
|
|
4350
|
-
if (I.current.onRun(x),
|
|
4350
|
+
if (I.current.onRun(x), qt(x.status)) {
|
|
4351
4351
|
g.current = x.id, m(null), h("terminal"), (L = (C = I.current).onTerminalRun) == null || L.call(C, x);
|
|
4352
4352
|
return;
|
|
4353
4353
|
}
|
|
@@ -4368,7 +4368,7 @@ function Wn({
|
|
|
4368
4368
|
}
|
|
4369
4369
|
let x = !1, C = !1, L = null;
|
|
4370
4370
|
const U = Date.now(), A = async () => {
|
|
4371
|
-
var F, _,
|
|
4371
|
+
var F, _, H, V, z, j;
|
|
4372
4372
|
if (!(x || C)) {
|
|
4373
4373
|
if (Date.now() - U > a) {
|
|
4374
4374
|
m((B) => B === u ? null : B), h("timed_out"), (_ = (F = I.current).onTimeout) == null || _.call(F, u);
|
|
@@ -4383,12 +4383,12 @@ function Wn({
|
|
|
4383
4383
|
});
|
|
4384
4384
|
if (x)
|
|
4385
4385
|
return;
|
|
4386
|
-
if (I.current.onRun(B),
|
|
4387
|
-
g.current = B.id, m((
|
|
4386
|
+
if (I.current.onRun(B), qt(B.status)) {
|
|
4387
|
+
g.current = B.id, m((Q) => Q === B.id ? null : Q), h("terminal"), (V = (H = I.current).onTerminalRun) == null || V.call(H, B);
|
|
4388
4388
|
return;
|
|
4389
4389
|
}
|
|
4390
4390
|
if (!Wt(B.status)) {
|
|
4391
|
-
m((
|
|
4391
|
+
m((Q) => Q === B.id ? null : Q), h("idle");
|
|
4392
4392
|
return;
|
|
4393
4393
|
}
|
|
4394
4394
|
L = window.setTimeout(A, r);
|
|
@@ -5310,7 +5310,7 @@ function Bd({
|
|
|
5310
5310
|
)
|
|
5311
5311
|
] });
|
|
5312
5312
|
}
|
|
5313
|
-
const Es =
|
|
5313
|
+
const Es = qt, pt = Wt;
|
|
5314
5314
|
function Vd(e) {
|
|
5315
5315
|
var a, o;
|
|
5316
5316
|
const n = (a = e == null ? void 0 : e.email) == null ? void 0 : a.trim();
|
|
@@ -5592,7 +5592,7 @@ const Kd = [
|
|
|
5592
5592
|
{ pattern: /^plan preview/i, label: "Plan preview" },
|
|
5593
5593
|
{ pattern: /^analysis preview/i, label: "Analysis preview" }
|
|
5594
5594
|
];
|
|
5595
|
-
function
|
|
5595
|
+
function Hd(e) {
|
|
5596
5596
|
const n = e.runtime.split(/;\s*/).map((o) => o.trim()).filter(Boolean), r = e.toolCalls.split(/;\s*/).map((o) => o.trim()).filter(Boolean), a = [];
|
|
5597
5597
|
for (const { pattern: o, label: i } of Kd) {
|
|
5598
5598
|
const l = ya(
|
|
@@ -5611,7 +5611,7 @@ function ya(e) {
|
|
|
5611
5611
|
).replace(/[.;]\s*$/, "").trim() || null;
|
|
5612
5612
|
}
|
|
5613
5613
|
const va = 3;
|
|
5614
|
-
function
|
|
5614
|
+
function qd({
|
|
5615
5615
|
previewPlan: e,
|
|
5616
5616
|
previewRun: n,
|
|
5617
5617
|
scopeLabel: r
|
|
@@ -5685,7 +5685,7 @@ function Hd({
|
|
|
5685
5685
|
/* @__PURE__ */ t("div", { className: le, children: "Estimate" }),
|
|
5686
5686
|
(() => {
|
|
5687
5687
|
var l;
|
|
5688
|
-
const o =
|
|
5688
|
+
const o = Hd(e.estimate).find(
|
|
5689
5689
|
(c) => c.label.toLowerCase().includes("analysis")
|
|
5690
5690
|
), i = (o == null ? void 0 : o.duration) ?? ((l = e.estimate.runtime) == null ? void 0 : l.trim()) ?? null;
|
|
5691
5691
|
return /* @__PURE__ */ t("div", { className: "mt-1 text-[12px] tabular-nums text-foreground/80", children: i ?? "—" });
|
|
@@ -5728,7 +5728,7 @@ function Fs({
|
|
|
5728
5728
|
}) {
|
|
5729
5729
|
const r = e.progress ?? null, a = r ? (r.recentEvents ?? []).filter(
|
|
5730
5730
|
(d) => d.label !== r.label || d.updatedAt !== r.updatedAt
|
|
5731
|
-
).slice(-4).reverse() : [], o = pt(e.status), i = r ?
|
|
5731
|
+
).slice(-4).reverse() : [], o = pt(e.status), i = r ? Jt(r.label) : `${n ? `${n} ` : ""}${_d(e)}`, l = Vs(e), c = r != null && r.updatedAt ? new Date(r.updatedAt).toLocaleTimeString([], {
|
|
5732
5732
|
hour: "numeric",
|
|
5733
5733
|
minute: "2-digit",
|
|
5734
5734
|
second: "2-digit"
|
|
@@ -5835,7 +5835,7 @@ function Ps({
|
|
|
5835
5835
|
type: "button",
|
|
5836
5836
|
className: "inline-flex h-7 w-7 items-center justify-center rounded-control text-muted-foreground hover:bg-muted hover:text-foreground",
|
|
5837
5837
|
"aria-label": "More run actions",
|
|
5838
|
-
children: /* @__PURE__ */ t(
|
|
5838
|
+
children: /* @__PURE__ */ t(Qn, { className: "h-3.5 w-3.5" })
|
|
5839
5839
|
}
|
|
5840
5840
|
) }),
|
|
5841
5841
|
/* @__PURE__ */ t(on, { align: "end", className: "z-[60] w-44", children: /* @__PURE__ */ s(
|
|
@@ -5855,7 +5855,7 @@ function Ps({
|
|
|
5855
5855
|
] })
|
|
5856
5856
|
] }),
|
|
5857
5857
|
o ? /* @__PURE__ */ t(
|
|
5858
|
-
|
|
5858
|
+
Qt,
|
|
5859
5859
|
{
|
|
5860
5860
|
open: l,
|
|
5861
5861
|
onOpenChange: (g) => {
|
|
@@ -5869,7 +5869,7 @@ function Ps({
|
|
|
5869
5869
|
/* @__PURE__ */ s(tn, { children: [
|
|
5870
5870
|
/* @__PURE__ */ t(nn, { disabled: i, children: "Cancel" }),
|
|
5871
5871
|
/* @__PURE__ */ s(
|
|
5872
|
-
|
|
5872
|
+
Jn,
|
|
5873
5873
|
{
|
|
5874
5874
|
disabled: i,
|
|
5875
5875
|
onClick: (g) => {
|
|
@@ -5902,7 +5902,7 @@ function Gd({ run: e }) {
|
|
|
5902
5902
|
"aria-label": "Email delivery status",
|
|
5903
5903
|
children: [
|
|
5904
5904
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-2 font-medium", children: [
|
|
5905
|
-
/* @__PURE__ */ t(
|
|
5905
|
+
/* @__PURE__ */ t(Ji, { className: "h-3.5 w-3.5 shrink-0" }),
|
|
5906
5906
|
/* @__PURE__ */ t("span", { children: jd(n) })
|
|
5907
5907
|
] }),
|
|
5908
5908
|
n.message ? /* @__PURE__ */ t("p", { className: "mt-1 text-[11px] leading-[1.5] opacity-80", children: n.message }) : null,
|
|
@@ -5925,11 +5925,11 @@ function Ms(e) {
|
|
|
5925
5925
|
minute: "2-digit"
|
|
5926
5926
|
});
|
|
5927
5927
|
}
|
|
5928
|
-
function
|
|
5928
|
+
function Jd(e) {
|
|
5929
5929
|
const n = dr(e);
|
|
5930
5930
|
return e.status === "FAILED" ? (n == null ? void 0 : n.status) === "FAILED" ? "Last email failed" : "Last run failed" : (n == null ? void 0 : n.channel) === "BRIEFING" || n != null && n.channels ? n.status === "SENT" ? "Last delivery sent" : n.status === "FAILED" || n.status === "PARTIAL" ? "Last delivery failed" : "Last delivery completed" : (n == null ? void 0 : n.status) === "SENT" ? n.channel === "SLACK" ? "Last Slack sent" : n.sentCount === 1 ? "Last email sent" : "Last emails sent" : (n == null ? void 0 : n.status) === "FAILED" ? "Last email failed" : "Last run completed";
|
|
5931
5931
|
}
|
|
5932
|
-
function
|
|
5932
|
+
function Qd({
|
|
5933
5933
|
run: e,
|
|
5934
5934
|
onViewOutput: n,
|
|
5935
5935
|
onDeleteRun: r,
|
|
@@ -5976,7 +5976,7 @@ function Jd({
|
|
|
5976
5976
|
),
|
|
5977
5977
|
children: [
|
|
5978
5978
|
Rs(e),
|
|
5979
|
-
/* @__PURE__ */ t("span", { children:
|
|
5979
|
+
/* @__PURE__ */ t("span", { children: Jd(e) }),
|
|
5980
5980
|
d ? /* @__PURE__ */ t("span", { className: "font-normal text-muted-foreground", children: d }) : null
|
|
5981
5981
|
]
|
|
5982
5982
|
}
|
|
@@ -5999,7 +5999,7 @@ function Jd({
|
|
|
5999
5999
|
}
|
|
6000
6000
|
);
|
|
6001
6001
|
}
|
|
6002
|
-
function
|
|
6002
|
+
function Jt(e) {
|
|
6003
6003
|
return e.replace(/\s+(started|completed)$/i, "");
|
|
6004
6004
|
}
|
|
6005
6005
|
function Bs(e) {
|
|
@@ -6084,7 +6084,7 @@ function Zd({
|
|
|
6084
6084
|
onExpand: n
|
|
6085
6085
|
}) {
|
|
6086
6086
|
var o;
|
|
6087
|
-
const r = Is(e.startedAt), a = (o = e.progress) != null && o.label ?
|
|
6087
|
+
const r = Is(e.startedAt), a = (o = e.progress) != null && o.label ? Jt(e.progress.label) : "Briefing running";
|
|
6088
6088
|
return /* @__PURE__ */ s("div", { className: "fixed bottom-4 right-4 z-50 w-[320px] overflow-hidden rounded-card border border-border bg-background shadow-md", children: [
|
|
6089
6089
|
/* @__PURE__ */ s(
|
|
6090
6090
|
"button",
|
|
@@ -6195,7 +6195,7 @@ function nc({
|
|
|
6195
6195
|
var N, w, b, k;
|
|
6196
6196
|
const c = n && pt(n.status) ? n : null, d = r;
|
|
6197
6197
|
let u = null, m = null, f = !1;
|
|
6198
|
-
if (e === "plan" ? (u = "Reviewing your brief", m = "Reading the brief and planning the analysis…") : e === "preview" ? (u = "Starting preview run", m = "Starting the preview…") : e === "run" ? (u = "Starting briefing run", m = "Preparing the run…") : c ? (u = (N = c.progress) != null && N.label ?
|
|
6198
|
+
if (e === "plan" ? (u = "Reviewing your brief", m = "Reading the brief and planning the analysis…") : e === "preview" ? (u = "Starting preview run", m = "Starting the preview…") : e === "run" ? (u = "Starting briefing run", m = "Preparing the run…") : c ? (u = (N = c.progress) != null && N.label ? Jt(c.progress.label) : "Running preview", m = ((w = c.progress) == null ? void 0 : w.detail) ?? null, f = !!c.progress) : d && (u = (b = d.progress) != null && b.label ? Jt(d.progress.label) : "Running", m = ((k = d.progress) == null ? void 0 : k.detail) ?? null, f = !!d.progress), !u)
|
|
6199
6199
|
return null;
|
|
6200
6200
|
const h = !l && m, g = d ?? c, I = !!(d && i) && e !== "cancelRun";
|
|
6201
6201
|
return /* @__PURE__ */ t(
|
|
@@ -6424,8 +6424,8 @@ function cr({
|
|
|
6424
6424
|
value: r,
|
|
6425
6425
|
onValueChange: (l) => a(l === "html" ? "html" : "rendered"),
|
|
6426
6426
|
children: /* @__PURE__ */ s($i, { size: "xs", children: [
|
|
6427
|
-
/* @__PURE__ */ t(
|
|
6428
|
-
/* @__PURE__ */ t(
|
|
6427
|
+
/* @__PURE__ */ t(qr, { value: "rendered", children: "Rendered" }),
|
|
6428
|
+
/* @__PURE__ */ t(qr, { value: "html", children: "HTML" })
|
|
6429
6429
|
] })
|
|
6430
6430
|
}
|
|
6431
6431
|
) : null,
|
|
@@ -6964,15 +6964,15 @@ function Nc({
|
|
|
6964
6964
|
onMinimizeRun: g
|
|
6965
6965
|
}) {
|
|
6966
6966
|
var Pr, Mr, Br, Vr, Or, Ur, $r, _r, jr;
|
|
6967
|
-
const { authToken: I, tokenProps: N } = Pt(), w = ((Mr = (Pr = N.config) == null ? void 0 : Pr.projectFeatures) == null ? void 0 : Mr.features.aiWritingHelpers) !== !1, { currentUser: b } = $a(), k =
|
|
6967
|
+
const { authToken: I, tokenProps: N } = Pt(), w = ((Mr = (Pr = N.config) == null ? void 0 : Pr.projectFeatures) == null ? void 0 : Mr.features.aiWritingHelpers) !== !1, { currentUser: b } = $a(), k = J((p) => p.dashboard), x = J((p) => p.theme), C = J((p) => p.selectedSheetId), L = J((p) => p.filterValues), U = J((p) => p.controlValues), A = J(
|
|
6968
6968
|
(p) => p.semanticExecutionPayload
|
|
6969
|
-
), F =
|
|
6969
|
+
), F = J(
|
|
6970
6970
|
(p) => p.cardControlValuesMap
|
|
6971
|
-
), _ =
|
|
6971
|
+
), _ = J(
|
|
6972
6972
|
(p) => p.inlineFilterValuesMap
|
|
6973
|
-
),
|
|
6973
|
+
), H = J(
|
|
6974
6974
|
(p) => p.dashboardInputValues
|
|
6975
|
-
), V = _i((p) => p.interactionStates), z = e ?? (N == null ? void 0 : N.apiServiceUrl), j = n ?? (I == null ? void 0 : I.accessToken), B = O(() => ({ ...pc, ...l }), [l]),
|
|
6975
|
+
), V = _i((p) => p.interactionStates), z = e ?? (N == null ? void 0 : N.apiServiceUrl), j = n ?? (I == null ? void 0 : I.accessToken), B = O(() => ({ ...pc, ...l }), [l]), Q = O(
|
|
6976
6976
|
() => $s(r, a),
|
|
6977
6977
|
[r, a]
|
|
6978
6978
|
), te = O(
|
|
@@ -6983,21 +6983,21 @@ function Nc({
|
|
|
6983
6983
|
), [D, ce] = S(
|
|
6984
6984
|
() => Da({
|
|
6985
6985
|
briefing: r,
|
|
6986
|
-
sourceContext:
|
|
6986
|
+
sourceContext: Q,
|
|
6987
6987
|
defaultRecipient: te
|
|
6988
6988
|
})
|
|
6989
|
-
), [Z, Y] = S(null), [ve, Ie] = S([]), [ue,
|
|
6989
|
+
), [Z, Y] = S(null), [ve, Ie] = S([]), [ue, q] = S(null), [Je, Te] = S(null), [Ve, Fe] = S(
|
|
6990
6990
|
null
|
|
6991
|
-
), [G, Pe] = S(null), [$, ie] = S(0), [ft, dt] = S(null), [T, M] = S(!1), [we, E] = S("edit"), [K, ne] = S(0), [Le,
|
|
6991
|
+
), [G, Pe] = S(null), [$, ie] = S(0), [ft, dt] = S(null), [T, M] = S(!1), [we, E] = S("edit"), [K, ne] = S(0), [Le, Qe] = S(!1), [zs, dn] = S("EMAIL"), [Ks, cn] = S(!1), [ur, un] = S(null), [Hs, mn] = S(!1), [ge, qs] = S(
|
|
6992
6992
|
null
|
|
6993
|
-
), [hn, mr] = S([]), [Bt, hr] = S(!1), [pr, fr] = S(null), [Ws, Gs] = S(0), [ct, Vt] = S(null), [
|
|
6993
|
+
), [hn, mr] = S([]), [Bt, hr] = S(!1), [pr, fr] = S(null), [Ws, Gs] = S(0), [ct, Vt] = S(null), [Js, pn] = S(!1), [fn, gr] = S(!1), [br, xr] = S(null), [Ct, gn] = S(null);
|
|
6994
6994
|
fe(() => {
|
|
6995
6995
|
if (!Ct) return;
|
|
6996
6996
|
const p = window.setTimeout(() => gn(null), 12e3);
|
|
6997
6997
|
return () => window.clearTimeout(p);
|
|
6998
6998
|
}, [Ct]);
|
|
6999
6999
|
const yr = Be(void 0), {
|
|
7000
|
-
activeRunId:
|
|
7000
|
+
activeRunId: Qs,
|
|
7001
7001
|
resetTerminalRun: vr,
|
|
7002
7002
|
startRun: bn,
|
|
7003
7003
|
stop: xn
|
|
@@ -7020,13 +7020,13 @@ function Nc({
|
|
|
7020
7020
|
Te(p);
|
|
7021
7021
|
},
|
|
7022
7022
|
onTerminalRun: (p) => {
|
|
7023
|
-
E("result"),
|
|
7023
|
+
E("result"), q(null);
|
|
7024
7024
|
},
|
|
7025
7025
|
onError: (p) => {
|
|
7026
|
-
|
|
7026
|
+
q(`Unable to refresh briefing run status: ${Me(p)}`);
|
|
7027
7027
|
},
|
|
7028
7028
|
onTimeout: () => {
|
|
7029
|
-
|
|
7029
|
+
q(
|
|
7030
7030
|
"Briefing run status refresh timed out. Refresh the run to check the latest status."
|
|
7031
7031
|
);
|
|
7032
7032
|
}
|
|
@@ -7048,10 +7048,10 @@ function Nc({
|
|
|
7048
7048
|
Pe(p), p.status === "SUCCESS" && dt((y) => y ?? $);
|
|
7049
7049
|
},
|
|
7050
7050
|
onTerminalRun: (p) => {
|
|
7051
|
-
p.status === "FAILED" ?
|
|
7051
|
+
p.status === "FAILED" ? q(p.error || "Briefing preview failed.") : (q(null), E("result"));
|
|
7052
7052
|
},
|
|
7053
7053
|
onError: (p) => {
|
|
7054
|
-
|
|
7054
|
+
q(`Unable to refresh briefing preview status: ${Me(p)}`);
|
|
7055
7055
|
},
|
|
7056
7056
|
onTimeout: (p) => {
|
|
7057
7057
|
Pe(
|
|
@@ -7061,9 +7061,9 @@ function Nc({
|
|
|
7061
7061
|
completedAt: y.completedAt ?? (/* @__PURE__ */ new Date()).toISOString(),
|
|
7062
7062
|
error: y.error || "Briefing preview status refresh timed out."
|
|
7063
7063
|
} : y
|
|
7064
|
-
),
|
|
7064
|
+
), q("Briefing preview status refresh timed out.");
|
|
7065
7065
|
}
|
|
7066
|
-
}), he = !!(R != null && R.id), yn = (R == null ? void 0 : R.status) === "PAUSED" || D.schedule.status === "PAUSED", Zs = he && !!(R != null && R.scheduleExpr || D.schedule.enabled), ut =
|
|
7066
|
+
}), he = !!(R != null && R.id), yn = (R == null ? void 0 : R.status) === "PAUSED" || D.schedule.status === "PAUSED", Zs = he && !!(R != null && R.scheduleExpr || D.schedule.enabled), ut = Je ?? (R == null ? void 0 : R.latestRun) ?? null, ke = ut && pt(ut.status) && Qs === ut.id ? ut : null, Ae = ut && Es(ut.status) ? ut : null, Se = we === "result" && ((G == null ? void 0 : G.status) === "SUCCESS" || Ae) ? "result" : we === "plan" && Ve ? "plan" : "edit", eo = Q.detail ?? (D.source.type === "dashboard" ? (
|
|
7067
7067
|
// Prefer the dashboard's actual title from the store; never expose
|
|
7068
7068
|
// the raw ID to end users.
|
|
7069
7069
|
(k == null ? void 0 : k.title) ?? null
|
|
@@ -7079,7 +7079,7 @@ function Nc({
|
|
|
7079
7079
|
controlDefinitions: (k == null ? void 0 : k.controls) || [],
|
|
7080
7080
|
dashboardControls: (k == null ? void 0 : k.controls) || [],
|
|
7081
7081
|
cardControlValuesMap: F,
|
|
7082
|
-
dashboardInputValues:
|
|
7082
|
+
dashboardInputValues: H,
|
|
7083
7083
|
semanticExecutionPayload: A,
|
|
7084
7084
|
interactionStates: V
|
|
7085
7085
|
}),
|
|
@@ -7087,7 +7087,7 @@ function Nc({
|
|
|
7087
7087
|
F,
|
|
7088
7088
|
U,
|
|
7089
7089
|
k,
|
|
7090
|
-
|
|
7090
|
+
H,
|
|
7091
7091
|
L,
|
|
7092
7092
|
V,
|
|
7093
7093
|
_,
|
|
@@ -7103,21 +7103,21 @@ function Nc({
|
|
|
7103
7103
|
yr.current = p, vr(), xn(), Nr(), W(r ?? null);
|
|
7104
7104
|
let y = Da({
|
|
7105
7105
|
briefing: r,
|
|
7106
|
-
sourceContext:
|
|
7106
|
+
sourceContext: Q,
|
|
7107
7107
|
defaultRecipient: te
|
|
7108
7108
|
}), P = null;
|
|
7109
7109
|
if (!r) {
|
|
7110
7110
|
const zr = _t.findIndex(
|
|
7111
|
-
(
|
|
7111
|
+
(qe) => qe.label === "Business review" && (!qe.available || qe.available(y.source))
|
|
7112
7112
|
), xo = _t.findIndex(
|
|
7113
|
-
(
|
|
7113
|
+
(qe) => !qe.available || qe.available(y.source)
|
|
7114
7114
|
), An = zr !== -1 ? zr : xo;
|
|
7115
7115
|
if (An !== -1) {
|
|
7116
|
-
const
|
|
7117
|
-
y =
|
|
7116
|
+
const qe = _t[An];
|
|
7117
|
+
y = qn(
|
|
7118
7118
|
y,
|
|
7119
|
-
|
|
7120
|
-
attachments:
|
|
7119
|
+
qe.draft(y.source, {
|
|
7120
|
+
attachments: qe.seedsDashboardAttachment ? ea({
|
|
7121
7121
|
source: y.source,
|
|
7122
7122
|
dashboard: k,
|
|
7123
7123
|
selectedSheetId: C,
|
|
@@ -7129,14 +7129,14 @@ function Nc({
|
|
|
7129
7129
|
}
|
|
7130
7130
|
ce(y), ne(P), Te(null), Fe(null), Pe(null), dt(null);
|
|
7131
7131
|
const re = (r == null ? void 0 : r.latestRun) ?? null;
|
|
7132
|
-
|
|
7132
|
+
q(null), E("edit"), re && pt(re.status) && bn(re);
|
|
7133
7133
|
}, [
|
|
7134
7134
|
Ot,
|
|
7135
7135
|
r,
|
|
7136
7136
|
k,
|
|
7137
7137
|
te,
|
|
7138
7138
|
vr,
|
|
7139
|
-
|
|
7139
|
+
Q,
|
|
7140
7140
|
C,
|
|
7141
7141
|
bn,
|
|
7142
7142
|
Nr,
|
|
@@ -7167,7 +7167,7 @@ function Nc({
|
|
|
7167
7167
|
throw y;
|
|
7168
7168
|
})
|
|
7169
7169
|
]).then(([y, P]) => {
|
|
7170
|
-
p || (
|
|
7170
|
+
p || (qs(y), mr(P.channels));
|
|
7171
7171
|
}).catch((y) => {
|
|
7172
7172
|
p || (fr(Me(y)), mr([]));
|
|
7173
7173
|
}).finally(() => {
|
|
@@ -7215,12 +7215,12 @@ function Nc({
|
|
|
7215
7215
|
Sr
|
|
7216
7216
|
]);
|
|
7217
7217
|
const me = (p) => {
|
|
7218
|
-
ce((y) =>
|
|
7219
|
-
},
|
|
7218
|
+
ce((y) => qn(y, p)), Ie([]), q(null), R != null && R.id || (Fe(null), ie((y) => y + 1), E("edit"));
|
|
7219
|
+
}, He = () => !z || !j ? (q("Missing Semaphor API credentials."), null) : { apiServiceUrl: z, token: j }, ao = async (p) => {
|
|
7220
7220
|
const y = na(D);
|
|
7221
|
-
if (Ie(y.issues),
|
|
7221
|
+
if (Ie(y.issues), q(null), !y.valid)
|
|
7222
7222
|
return null;
|
|
7223
|
-
const P =
|
|
7223
|
+
const P = He();
|
|
7224
7224
|
if (!P)
|
|
7225
7225
|
return null;
|
|
7226
7226
|
p != null && p.pendingAction && Y(p.pendingAction);
|
|
@@ -7237,15 +7237,15 @@ function Nc({
|
|
|
7237
7237
|
);
|
|
7238
7238
|
return W(re.briefing), ce(It(re.briefing)), d == null || d(re.briefing), re.briefing;
|
|
7239
7239
|
} catch (re) {
|
|
7240
|
-
return
|
|
7240
|
+
return q(Me(re)), null;
|
|
7241
7241
|
} finally {
|
|
7242
7242
|
p != null && p.pendingAction && Y(null);
|
|
7243
7243
|
}
|
|
7244
7244
|
}, so = async () => ao({ pendingAction: "save" }), Dr = () => {
|
|
7245
7245
|
const p = na(D);
|
|
7246
|
-
return Ie(p.issues),
|
|
7246
|
+
return Ie(p.issues), q(null), p.valid ? ta(D) : null;
|
|
7247
7247
|
}, Ar = async (p) => {
|
|
7248
|
-
const y =
|
|
7248
|
+
const y = He();
|
|
7249
7249
|
if (!y)
|
|
7250
7250
|
return null;
|
|
7251
7251
|
const P = Dr();
|
|
@@ -7260,12 +7260,12 @@ function Nc({
|
|
|
7260
7260
|
);
|
|
7261
7261
|
return Fe(re.plan), p != null && p.silent || E("plan"), re.plan;
|
|
7262
7262
|
} catch (re) {
|
|
7263
|
-
return
|
|
7263
|
+
return q(Me(re)), null;
|
|
7264
7264
|
} finally {
|
|
7265
7265
|
Y(null);
|
|
7266
7266
|
}
|
|
7267
7267
|
}, oo = async () => {
|
|
7268
|
-
const p =
|
|
7268
|
+
const p = He();
|
|
7269
7269
|
if (!p)
|
|
7270
7270
|
return;
|
|
7271
7271
|
const y = Dr();
|
|
@@ -7286,22 +7286,22 @@ function Nc({
|
|
|
7286
7286
|
);
|
|
7287
7287
|
dt($), Xs(re.previewRun);
|
|
7288
7288
|
} catch (P) {
|
|
7289
|
-
|
|
7289
|
+
q(Me(P));
|
|
7290
7290
|
} finally {
|
|
7291
7291
|
Y(null);
|
|
7292
7292
|
}
|
|
7293
7293
|
}, Sn = async () => {
|
|
7294
|
-
const p =
|
|
7294
|
+
const p = He();
|
|
7295
7295
|
if (p) {
|
|
7296
7296
|
if (!(R != null && R.id)) {
|
|
7297
7297
|
await oo();
|
|
7298
7298
|
return;
|
|
7299
7299
|
}
|
|
7300
7300
|
if (mt) {
|
|
7301
|
-
|
|
7301
|
+
q("Save your changes before running this briefing.");
|
|
7302
7302
|
return;
|
|
7303
7303
|
}
|
|
7304
|
-
Y("run"),
|
|
7304
|
+
Y("run"), q(null), Pe(null);
|
|
7305
7305
|
try {
|
|
7306
7306
|
const y = await B.runBriefingNow(
|
|
7307
7307
|
p.apiServiceUrl,
|
|
@@ -7311,7 +7311,7 @@ function Nc({
|
|
|
7311
7311
|
);
|
|
7312
7312
|
bn(y.run), m == null || m(y);
|
|
7313
7313
|
} catch (y) {
|
|
7314
|
-
|
|
7314
|
+
q(Me(y));
|
|
7315
7315
|
} finally {
|
|
7316
7316
|
Y(null);
|
|
7317
7317
|
}
|
|
@@ -7319,7 +7319,7 @@ function Nc({
|
|
|
7319
7319
|
}, Er = async () => {
|
|
7320
7320
|
if (!(R != null && R.id))
|
|
7321
7321
|
return null;
|
|
7322
|
-
const p =
|
|
7322
|
+
const p = He();
|
|
7323
7323
|
if (!p)
|
|
7324
7324
|
return null;
|
|
7325
7325
|
const y = await B.getBriefing(
|
|
@@ -7331,9 +7331,9 @@ function Nc({
|
|
|
7331
7331
|
}, io = async () => {
|
|
7332
7332
|
if (!(R != null && R.id) || !(ke != null && ke.id))
|
|
7333
7333
|
return;
|
|
7334
|
-
const p =
|
|
7334
|
+
const p = He();
|
|
7335
7335
|
if (p) {
|
|
7336
|
-
Y("cancelRun"),
|
|
7336
|
+
Y("cancelRun"), q(null);
|
|
7337
7337
|
try {
|
|
7338
7338
|
const y = await B.cancelBriefingRun(
|
|
7339
7339
|
p.apiServiceUrl,
|
|
@@ -7343,7 +7343,7 @@ function Nc({
|
|
|
7343
7343
|
);
|
|
7344
7344
|
xn(), Te(y.run), E("result"), await Er().catch(() => null);
|
|
7345
7345
|
} catch (y) {
|
|
7346
|
-
|
|
7346
|
+
q(Me(y));
|
|
7347
7347
|
} finally {
|
|
7348
7348
|
Y(null);
|
|
7349
7349
|
}
|
|
@@ -7356,7 +7356,7 @@ function Nc({
|
|
|
7356
7356
|
}, co = async () => {
|
|
7357
7357
|
if (!D.instruction.trim())
|
|
7358
7358
|
return;
|
|
7359
|
-
const y =
|
|
7359
|
+
const y = He();
|
|
7360
7360
|
if (y) {
|
|
7361
7361
|
gr(!0), xr(null);
|
|
7362
7362
|
try {
|
|
@@ -7377,9 +7377,9 @@ function Nc({
|
|
|
7377
7377
|
}, Ir = async (p) => {
|
|
7378
7378
|
if (!(R != null && R.id))
|
|
7379
7379
|
return;
|
|
7380
|
-
const y =
|
|
7380
|
+
const y = He();
|
|
7381
7381
|
if (y) {
|
|
7382
|
-
Y("deleteRun"),
|
|
7382
|
+
Y("deleteRun"), q(null);
|
|
7383
7383
|
try {
|
|
7384
7384
|
await B.deleteBriefingRun(
|
|
7385
7385
|
y.apiServiceUrl,
|
|
@@ -7390,7 +7390,7 @@ function Nc({
|
|
|
7390
7390
|
const P = await Er().catch(() => null), re = (P == null ? void 0 : P.latestRun) ?? null;
|
|
7391
7391
|
Te(re), re || E("edit");
|
|
7392
7392
|
} catch (P) {
|
|
7393
|
-
|
|
7393
|
+
q(Me(P));
|
|
7394
7394
|
} finally {
|
|
7395
7395
|
Y(null);
|
|
7396
7396
|
}
|
|
@@ -7398,9 +7398,9 @@ function Nc({
|
|
|
7398
7398
|
}, mo = async (p) => {
|
|
7399
7399
|
if (!(R != null && R.id))
|
|
7400
7400
|
return;
|
|
7401
|
-
const y =
|
|
7401
|
+
const y = He();
|
|
7402
7402
|
if (y) {
|
|
7403
|
-
Y(p === "PAUSED" ? "pause" : "resume"),
|
|
7403
|
+
Y(p === "PAUSED" ? "pause" : "resume"), q(null);
|
|
7404
7404
|
try {
|
|
7405
7405
|
const P = p === "PAUSED" ? await B.pauseBriefing(
|
|
7406
7406
|
y.apiServiceUrl,
|
|
@@ -7413,7 +7413,7 @@ function Nc({
|
|
|
7413
7413
|
);
|
|
7414
7414
|
W(P.briefing), ce(It(P.briefing)), d == null || d(P.briefing);
|
|
7415
7415
|
} catch (P) {
|
|
7416
|
-
|
|
7416
|
+
q(Me(P));
|
|
7417
7417
|
} finally {
|
|
7418
7418
|
Y(null);
|
|
7419
7419
|
}
|
|
@@ -7598,7 +7598,7 @@ function Nc({
|
|
|
7598
7598
|
previewRun: G,
|
|
7599
7599
|
savedActiveRun: ke,
|
|
7600
7600
|
detailsVisible: Le,
|
|
7601
|
-
onShowDetails: () =>
|
|
7601
|
+
onShowDetails: () => Qe((p) => !p),
|
|
7602
7602
|
onCancelSavedRun: ke ? io : void 0,
|
|
7603
7603
|
onMinimizeRun: ke && g ? lo : void 0
|
|
7604
7604
|
}
|
|
@@ -7642,7 +7642,7 @@ function Nc({
|
|
|
7642
7642
|
}
|
|
7643
7643
|
) : null,
|
|
7644
7644
|
to && Ae ? /* @__PURE__ */ t(
|
|
7645
|
-
|
|
7645
|
+
Qd,
|
|
7646
7646
|
{
|
|
7647
7647
|
run: Ae,
|
|
7648
7648
|
onViewOutput: () => E("result"),
|
|
@@ -7743,7 +7743,7 @@ function Nc({
|
|
|
7743
7743
|
/* @__PURE__ */ t(
|
|
7744
7744
|
at,
|
|
7745
7745
|
{
|
|
7746
|
-
open:
|
|
7746
|
+
open: Js,
|
|
7747
7747
|
onOpenChange: pn,
|
|
7748
7748
|
children: /* @__PURE__ */ s(st, { className: "flex h-[80vh] max-h-[800px] w-[92vw] max-w-[860px] flex-col gap-0 p-0", children: [
|
|
7749
7749
|
/* @__PURE__ */ s(xt, { className: "border-b border-border/60 px-5 py-3", children: [
|
|
@@ -7829,7 +7829,7 @@ function Nc({
|
|
|
7829
7829
|
/* @__PURE__ */ t(
|
|
7830
7830
|
yd,
|
|
7831
7831
|
{
|
|
7832
|
-
open:
|
|
7832
|
+
open: Hs,
|
|
7833
7833
|
onOpenChange: mn,
|
|
7834
7834
|
source: D.source,
|
|
7835
7835
|
dashboard: k,
|
|
@@ -8043,18 +8043,18 @@ function Nc({
|
|
|
8043
8043
|
Pd,
|
|
8044
8044
|
{
|
|
8045
8045
|
source: D.source,
|
|
8046
|
-
resolvedSourceContext:
|
|
8046
|
+
resolvedSourceContext: Q,
|
|
8047
8047
|
sourceDetail: eo,
|
|
8048
8048
|
onChange: (p) => me({ source: p })
|
|
8049
8049
|
}
|
|
8050
8050
|
)
|
|
8051
8051
|
] })
|
|
8052
8052
|
] }) : Se === "plan" && Ve ? /* @__PURE__ */ t(
|
|
8053
|
-
|
|
8053
|
+
qd,
|
|
8054
8054
|
{
|
|
8055
8055
|
previewPlan: Ve,
|
|
8056
8056
|
previewRun: G && G.status !== "SUCCESS" ? G : null,
|
|
8057
|
-
scopeLabel:
|
|
8057
|
+
scopeLabel: Q.source.type === "dashboard" ? (k == null ? void 0 : k.title) ?? Q.label : Q.label
|
|
8058
8058
|
}
|
|
8059
8059
|
) : Se === "result" && G ? /* @__PURE__ */ t(
|
|
8060
8060
|
Ca,
|
|
@@ -8439,7 +8439,7 @@ function Vc({
|
|
|
8439
8439
|
className: v(Sc, "h-6 px-1 text-[11px]"),
|
|
8440
8440
|
children: [
|
|
8441
8441
|
"Manage all briefings",
|
|
8442
|
-
/* @__PURE__ */ t(
|
|
8442
|
+
/* @__PURE__ */ t(Qi, { className: "h-3 w-3" })
|
|
8443
8443
|
]
|
|
8444
8444
|
}
|
|
8445
8445
|
) }) : null
|
|
@@ -8704,7 +8704,7 @@ function $c({
|
|
|
8704
8704
|
onClick: (g) => g.stopPropagation(),
|
|
8705
8705
|
className: "inline-flex h-6 w-6 items-center justify-center rounded-control text-muted-foreground/70 opacity-60 hover:bg-muted hover:text-foreground/80 focus-visible:opacity-100 group-hover:opacity-100",
|
|
8706
8706
|
"aria-label": "Briefing actions",
|
|
8707
|
-
children: /* @__PURE__ */ t(
|
|
8707
|
+
children: /* @__PURE__ */ t(Qn, { className: "h-3.5 w-3.5" })
|
|
8708
8708
|
}
|
|
8709
8709
|
) }),
|
|
8710
8710
|
/* @__PURE__ */ s(on, { align: "end", className: "w-44", children: [
|
|
@@ -8790,7 +8790,7 @@ function zc({
|
|
|
8790
8790
|
}
|
|
8791
8791
|
}), m = Be(!1);
|
|
8792
8792
|
return fe(() => {
|
|
8793
|
-
m.current || (m.current = !0, Wt(n.status) ? u(n) :
|
|
8793
|
+
m.current || (m.current = !0, Wt(n.status) ? u(n) : qt(n.status) && o(n));
|
|
8794
8794
|
}, [n, o, u]), /* @__PURE__ */ t(Zd, { run: c, onExpand: l });
|
|
8795
8795
|
}
|
|
8796
8796
|
function gu({
|
|
@@ -8805,9 +8805,9 @@ function gu({
|
|
|
8805
8805
|
}) {
|
|
8806
8806
|
const { authToken: d, tokenProps: u } = Pt(), [m, f] = S(!1), [h, g] = S("list"), [I, N] = S("dashboard"), [w, b] = S(
|
|
8807
8807
|
[]
|
|
8808
|
-
), [k, x] = S(null), [C, L] = S(!1), [U, A] = S(null), [F, _] = S(null), [
|
|
8808
|
+
), [k, x] = S(null), [C, L] = S(!1), [U, A] = S(null), [F, _] = S(null), [H, V] = S(
|
|
8809
8809
|
null
|
|
8810
|
-
), [z, j] = S(null), [B,
|
|
8810
|
+
), [z, j] = S(null), [B, Q] = S(
|
|
8811
8811
|
null
|
|
8812
8812
|
), [te, R] = S(null), W = r ?? (u == null ? void 0 : u.apiServiceUrl), D = a ?? (d == null ? void 0 : d.accessToken), ce = O(() => ({ ...Cc, ...c }), [c]), Z = Dc(n), Y = O(
|
|
8813
8813
|
() => Tc(w, I, e),
|
|
@@ -8843,9 +8843,9 @@ function gu({
|
|
|
8843
8843
|
fe(() => {
|
|
8844
8844
|
!m || h !== "list" || !Ie || ue();
|
|
8845
8845
|
}, [Ie, ue, m, h]);
|
|
8846
|
-
const
|
|
8846
|
+
const q = () => {
|
|
8847
8847
|
x(null), N("dashboard"), g("list"), f(!0);
|
|
8848
|
-
},
|
|
8848
|
+
}, Je = () => {
|
|
8849
8849
|
x(null), g("author");
|
|
8850
8850
|
}, Te = async ($) => {
|
|
8851
8851
|
if (!(!W || !D)) {
|
|
@@ -8908,8 +8908,8 @@ function gu({
|
|
|
8908
8908
|
}
|
|
8909
8909
|
}
|
|
8910
8910
|
}, G = async () => {
|
|
8911
|
-
if (!
|
|
8912
|
-
const $ =
|
|
8911
|
+
if (!H || !W || !D) return;
|
|
8912
|
+
const $ = H;
|
|
8913
8913
|
_($.id);
|
|
8914
8914
|
try {
|
|
8915
8915
|
await ce.deleteBriefing(
|
|
@@ -8932,7 +8932,7 @@ function gu({
|
|
|
8932
8932
|
disabled: o || !Ie,
|
|
8933
8933
|
briefingCount: Pe,
|
|
8934
8934
|
className: i,
|
|
8935
|
-
onClick:
|
|
8935
|
+
onClick: q
|
|
8936
8936
|
}
|
|
8937
8937
|
),
|
|
8938
8938
|
/* @__PURE__ */ s(
|
|
@@ -8959,7 +8959,7 @@ function gu({
|
|
|
8959
8959
|
onEdit: ($) => {
|
|
8960
8960
|
Te($);
|
|
8961
8961
|
},
|
|
8962
|
-
onNew:
|
|
8962
|
+
onNew: Je,
|
|
8963
8963
|
onRunNow: ($) => {
|
|
8964
8964
|
Ve($);
|
|
8965
8965
|
},
|
|
@@ -8991,7 +8991,7 @@ function gu({
|
|
|
8991
8991
|
x($), ue();
|
|
8992
8992
|
},
|
|
8993
8993
|
onMinimizeRun: ({ briefing: $, run: ie }) => {
|
|
8994
|
-
|
|
8994
|
+
Q({ briefing: $, run: ie }), f(!1);
|
|
8995
8995
|
}
|
|
8996
8996
|
}
|
|
8997
8997
|
)
|
|
@@ -9009,13 +9009,13 @@ function gu({
|
|
|
9009
9009
|
R({
|
|
9010
9010
|
briefing: B.briefing,
|
|
9011
9011
|
run: $
|
|
9012
|
-
}),
|
|
9012
|
+
}), Q(null), ue();
|
|
9013
9013
|
},
|
|
9014
9014
|
onTimeout: () => {
|
|
9015
|
-
|
|
9015
|
+
Q(null), ue();
|
|
9016
9016
|
},
|
|
9017
9017
|
onExpand: () => {
|
|
9018
|
-
x(B.briefing), g("author"),
|
|
9018
|
+
x(B.briefing), g("author"), Q(null), f(!0);
|
|
9019
9019
|
}
|
|
9020
9020
|
}
|
|
9021
9021
|
) : null,
|
|
@@ -9037,9 +9037,9 @@ function gu({
|
|
|
9037
9037
|
}
|
|
9038
9038
|
) }) : null,
|
|
9039
9039
|
/* @__PURE__ */ t(
|
|
9040
|
-
|
|
9040
|
+
Qt,
|
|
9041
9041
|
{
|
|
9042
|
-
open: !!
|
|
9042
|
+
open: !!H,
|
|
9043
9043
|
onOpenChange: ($) => {
|
|
9044
9044
|
$ || V(null);
|
|
9045
9045
|
},
|
|
@@ -9048,14 +9048,14 @@ function gu({
|
|
|
9048
9048
|
/* @__PURE__ */ t(Zt, { children: "Delete briefing?" }),
|
|
9049
9049
|
/* @__PURE__ */ s(en, { children: [
|
|
9050
9050
|
"This permanently deletes ",
|
|
9051
|
-
/* @__PURE__ */ t("strong", { children:
|
|
9051
|
+
/* @__PURE__ */ t("strong", { children: H == null ? void 0 : H.name }),
|
|
9052
9052
|
". Recipients will stop receiving it."
|
|
9053
9053
|
] })
|
|
9054
9054
|
] }),
|
|
9055
9055
|
/* @__PURE__ */ s(tn, { children: [
|
|
9056
9056
|
/* @__PURE__ */ t(nn, { children: "Cancel" }),
|
|
9057
9057
|
/* @__PURE__ */ t(
|
|
9058
|
-
|
|
9058
|
+
Jn,
|
|
9059
9059
|
{
|
|
9060
9060
|
className: "bg-destructive/90 hover:bg-destructive",
|
|
9061
9061
|
onClick: G,
|
|
@@ -9077,7 +9077,7 @@ export {
|
|
|
9077
9077
|
cd as C,
|
|
9078
9078
|
wl as D,
|
|
9079
9079
|
vl as E,
|
|
9080
|
-
|
|
9080
|
+
qn as F,
|
|
9081
9081
|
It as G,
|
|
9082
9082
|
ta as H,
|
|
9083
9083
|
ud as I,
|