react-semaphor 0.1.476 → 0.1.478
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 +9 -9
- package/dist/brand-studio/index.cjs +1 -1
- package/dist/brand-studio/index.js +4 -4
- package/dist/briefings/index.cjs +1 -1
- package/dist/briefings/index.js +4 -4
- package/dist/chunks/{analyze-result-contract-OgPk-zGu.cjs → analyze-result-contract-BX_nQmPN.cjs} +1 -1
- package/dist/chunks/{analyze-result-contract-C8s8EUL5.js → analyze-result-contract-DsiAzCYn.js} +1 -1
- package/dist/chunks/{saved-temporal-bucket-format-CHsXUPJI.js → card-config-utils-CyDKaPNT.js} +190 -190
- package/dist/chunks/card-config-utils-D3Xuu0ub.cjs +1 -0
- package/dist/chunks/{common-types-C1IM7gao.cjs → common-types-BCSbPclk.cjs} +1 -1
- package/dist/chunks/{common-types-BLPy5_E0.js → common-types-D3r4PILe.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-ZfuxdRN2.cjs → dashboard-briefing-launcher-7qAW16mO.cjs} +2 -2
- package/dist/chunks/{dashboard-briefing-launcher-eBsB9kr8.js → dashboard-briefing-launcher-DAhtLQPc.js} +134 -134
- package/dist/chunks/{dashboard-controls-BX6p6z8a.js → dashboard-controls-C_CBmEwW.js} +13 -12
- package/dist/chunks/{dashboard-controls-DwjEc7sO.cjs → dashboard-controls-CoVqAeKG.cjs} +10 -10
- package/dist/chunks/{dashboard-input-contract-JFJZgenC.cjs → dashboard-date-comparison-definition-C93wv8Ua.cjs} +1 -1
- package/dist/chunks/{dashboard-input-contract-BrGdGFz0.js → dashboard-date-comparison-definition-KohOqBqR.js} +19 -19
- package/dist/chunks/dashboard-filter-value-compatibility-BAatYtUS.js +1215 -0
- package/dist/chunks/dashboard-filter-value-compatibility-Bco2gN96.cjs +1 -0
- package/dist/chunks/{dashboard-json-BfgitBXc.js → dashboard-json-0w58H39L.js} +7 -7
- package/dist/chunks/dashboard-json-B3XSl7b_.cjs +1 -0
- package/dist/chunks/{edit-dashboard-visual-Cbougpzc.cjs → edit-dashboard-visual-BsLRKeuO.cjs} +6 -6
- package/dist/chunks/{edit-dashboard-visual-D80DLF7C.js → edit-dashboard-visual-BsWEU8xf.js} +277 -277
- package/dist/chunks/{editor-action-buttons-DjsEDQok.js → editor-action-buttons-B3CB5c__.js} +39 -39
- package/dist/chunks/{editor-action-buttons-BDRLfaW-.cjs → editor-action-buttons-DMLDvrJD.cjs} +1 -1
- package/dist/chunks/{index-CneWIz__.cjs → index--0Il-Bpd.cjs} +238 -238
- package/dist/chunks/{format-types-CFHQoIuk.js → index-BS0_dp0l.js} +168 -168
- package/dist/chunks/{index-D9S3j7_z.js → index-BvRREsU9.js} +9 -9
- package/dist/chunks/index-ByQgqT9d.cjs +1 -0
- package/dist/chunks/{index-v2MZLyus.cjs → index-CXeIDdjd.cjs} +1 -1
- package/dist/chunks/{index-Dv5hbC1r.js → index-DgGcVyUs.js} +35550 -35937
- package/dist/chunks/matrix-result-contract-CFPnlcLm.cjs +1 -0
- package/dist/chunks/{matrix-result-contract-BpzhImar.js → matrix-result-contract-DFfUvb1r.js} +3 -3
- package/dist/chunks/{temporal-bucket-CtP7hKLa.js → metric-comparison-CTexJ8V1.js} +705 -705
- package/dist/chunks/metric-comparison-x0lipytf.cjs +1 -0
- package/dist/chunks/pivot-header-presentation-8Ra1RfHg.cjs +4 -0
- package/dist/chunks/{pivot-header-presentation-CaERAWpl.js → pivot-header-presentation-tpb_J900.js} +118 -118
- package/dist/chunks/{pivot-result-identity-CIZXsI53.js → pivot-result-identity-BIeP9v8I.js} +1 -1
- package/dist/chunks/{pivot-result-identity-DRUlTWUq.cjs → pivot-result-identity-BVnhG2rR.cjs} +1 -1
- package/dist/chunks/pivot-result-lifecycle-D_bRCqaB.cjs +1 -0
- package/dist/chunks/{pivot-result-lifecycle-B9FTybxN.js → pivot-result-lifecycle-mjJ1rBvV.js} +7 -7
- package/dist/chunks/{raw-temporal-contract-U8J9RlEH.js → raw-temporal-contract-BuQIB31z.js} +1 -1
- package/dist/chunks/{raw-temporal-contract-D8YuxTAg.cjs → raw-temporal-contract-vnNwLy9R.cjs} +1 -1
- package/dist/chunks/{report-preferences-dialog-BXBlvW79.js → report-preferences-dialog-Bytgubvz.js} +25 -25
- package/dist/chunks/report-preferences-dialog-I0Pbn_Yb.cjs +1 -0
- package/dist/chunks/{report-runtime-context-DNbgCsko.js → report-runtime-context-B_pAmqxl.js} +1 -1
- package/dist/chunks/{report-runtime-context-RFiWq4wK.cjs → report-runtime-context-BfW4qiMJ.cjs} +1 -1
- package/dist/chunks/{source-entity-resolution-BDC-Qngk.cjs → source-entity-resolution-DCAAS-y8.cjs} +1 -1
- package/dist/chunks/{source-entity-resolution-ugN3sZUk.js → source-entity-resolution-WUstJID6.js} +1 -1
- package/dist/chunks/{switch-C8NihGV4.js → switch-BsGTOjuD.js} +12342 -11110
- package/dist/chunks/switch-Cpj3DrCZ.cjs +138 -0
- package/dist/chunks/{temporal-bucket-authoring-DJ9kK2wD.js → temporal-bucket-authoring-CyTCHy1K.js} +3 -3
- package/dist/chunks/temporal-bucket-authoring-DueSgLJU.cjs +1 -0
- package/dist/chunks/{temporal-bucket-contract-CZl5D7FZ.js → temporal-bucket-contract-BeOx0uYe.js} +1 -1
- package/dist/chunks/{temporal-bucket-contract-BD862TAa.cjs → temporal-bucket-contract-Cp-usD9Z.cjs} +1 -1
- package/dist/chunks/{token-types-CoHsSJ4E.cjs → token-types-D9eN35rf.cjs} +1 -1
- package/dist/chunks/{token-types-DfDtCqlw.js → token-types-Dvomvqw0.js} +1 -1
- package/dist/chunks/{update-policy-BGNXFgBU.cjs → update-policy-Buw2LmvX.cjs} +1 -1
- package/dist/chunks/{update-policy-BybMiM61.js → update-policy-MWg0aH3d.js} +1 -1
- package/dist/chunks/{validators-D-T-2HOR.js → validators-D3AarM2T.js} +662 -663
- package/dist/chunks/validators-DqIM0B3C.cjs +1 -0
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.cjs +3 -3
- package/dist/dashboard-authoring/index.js +81 -79
- package/dist/data-app-builder/index.cjs +1 -1
- package/dist/data-app-builder/index.js +2 -2
- package/dist/data-app-codegen/index.cjs +1 -1
- package/dist/data-app-codegen/index.js +2 -2
- package/dist/data-app-codegen-node/index.cjs +1 -1
- package/dist/data-app-codegen-node/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-adapters/index.cjs +1 -1
- package/dist/data-app-sdk-adapters/index.js +2 -2
- package/dist/data-app-sdk-validation/index.cjs +1 -1
- package/dist/data-app-sdk-validation/index.js +3 -3
- package/dist/format-utils/index.cjs +3 -3
- package/dist/format-utils/index.js +9 -9
- package/dist/index.cjs +1 -1
- package/dist/index.js +177 -176
- package/dist/report-runtime-context/index.cjs +1 -1
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +3 -3
- package/dist/types/briefings.d.ts +15 -2
- package/dist/types/dashboard-authoring.d.ts +21 -2
- package/dist/types/dashboard.d.ts +15 -2
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.js +4 -4
- package/dist/types/main.d.ts +25 -6
- package/dist/types/shared.d.ts +15 -2
- package/dist/types/surfboard.d.ts +15 -2
- package/dist/types/types.d.ts +15 -2
- package/package.json +1 -1
- package/dist/chunks/dashboard-filter-value-compatibility-BCVF9IHg.js +0 -1026
- package/dist/chunks/dashboard-filter-value-compatibility-DLkdeypb.cjs +0 -1
- package/dist/chunks/dashboard-json-CdwYFOsc.cjs +0 -1
- package/dist/chunks/format-types-PSZZ7hG8.cjs +0 -1
- package/dist/chunks/matrix-result-contract-Bhg60NtS.cjs +0 -1
- package/dist/chunks/pivot-header-presentation-CePk1R6g.cjs +0 -4
- package/dist/chunks/pivot-result-lifecycle-CcGt_29N.cjs +0 -1
- package/dist/chunks/report-preferences-dialog-cSMJYqns.cjs +0 -1
- package/dist/chunks/saved-temporal-bucket-format-DNMtD77o.cjs +0 -1
- package/dist/chunks/switch-B1mZx2k9.cjs +0 -138
- package/dist/chunks/temporal-bucket-9Wz9Ds6H.cjs +0 -1
- package/dist/chunks/temporal-bucket-authoring-DSpzgXHc.cjs +0 -1
- package/dist/chunks/validators-DcshgK7w.cjs +0 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { jsx as e, jsxs as r, Fragment as W } from "react/jsx-runtime";
|
|
2
|
-
import Wt, { useState as E, useEffect as
|
|
3
|
-
import {
|
|
4
|
-
import { B, O as Se, Z as
|
|
2
|
+
import Wt, { useState as E, useEffect as Y, useMemo as ee, useContext as Ht, useRef as he, useCallback as q } from "react";
|
|
3
|
+
import { cl as et, aG as De, aH as ke, aJ as Ae, ba as wt, bX as Gt, cm as qt, cn as Kt, aY as fe, c9 as Nt, bk as Pe, r as Qt, n as Xt, co as Yt, aO as tt, aR as rt, aS as at, aT as nt, aU as st, aV as ot, aW as it, aX as St, bj as lt, aF as O, cp as Zt, cq as Jt, cr as Ke, ca as $e, cb as je, cs as Dt, cc as We, bV as G, b0 as er, bA as Me, ct as tr, bU as rr, aI as ct, aK as dt, cu as ar, aE as nr, b9 as sr, bv as kt, cv as or, bY as ir, u as lr, aL as cr, b2 as dr, ay as He, N as ue, av as ut, ar as At, as as ht, O as Et, aq as ur, ax as hr, cg as mr, cw as pr, bt as fr, at as gt, R as gr, Q as br, cx as xr, cy as vr, cz as yr, cA as Cr, cB as wr, cC as Nr, cD as It, cE as Sr, b3 as Dr, cF as kr, cd as Ft, cG as Ar, cH as Er, cI as Re, cJ as Ir, cK as Fr, cL as Lr, am as Br, ao as Tr, a2 as Vr, a1 as Rr, a0 as Ur, $ as Pr, Y as Mr, W as Or, cM as _r, cN as zr, cO as $r, cP as jr, cQ as Wr, ak as Hr, cR as Gr, cS as qr, a8 as Kr, cT as Qr, cU as Xr, cV as Yr } from "./index-DgGcVyUs.js";
|
|
4
|
+
import { B, O as Se, Z as Ze, L as te, M as Lt, d as Bt, c as K, K as Zr, D as ge, u as P, z as be, aw as Tt, av as Je, E as Vt, P as Oe, a as _e, b as ze, aH as Jr, aI as ea, S as Rt, aJ as ta, aK as ra, aL as aa, aM as na, aF as sa } from "./switch-BsGTOjuD.js";
|
|
5
5
|
import { L as mt } from "./layout-grid-CiubineE.js";
|
|
6
6
|
import { c as Ee, X as Ge, C as Ut } from "./x-CXDkqdur.js";
|
|
7
|
-
import { u as pt, V as oa, E as
|
|
8
|
-
import { v as bt } from "./
|
|
9
|
-
import "./validators-
|
|
10
|
-
import "./analyze-result-contract-
|
|
7
|
+
import { u as pt, V as oa, E as Qe, a as Xe, b as ia, c as la, L as ca, d as da, e as Pt, C as Mt, F as ua, f as ha } from "./editor-action-buttons-B3CB5c__.js";
|
|
8
|
+
import { v as bt } from "./card-config-utils-CyDKaPNT.js";
|
|
9
|
+
import "./validators-D3AarM2T.js";
|
|
10
|
+
import "./analyze-result-contract-DsiAzCYn.js";
|
|
11
11
|
import "../value-format-preferences/index.js";
|
|
12
12
|
import { S as ma } from "./search-BHsQIWBV.js";
|
|
13
13
|
import { M as pa } from "./mouse-pointer-2-BZvGk45-.js";
|
|
14
|
-
import { w as xt } from "./pivot-header-presentation-
|
|
14
|
+
import { w as xt } from "./pivot-header-presentation-tpb_J900.js";
|
|
15
15
|
import "./appearance-runtime-provider-CjmE4gBY.js";
|
|
16
16
|
import "./appearance-context-DVXt8qjW.js";
|
|
17
17
|
import "./index-DSKR3nKn.js";
|
|
18
|
-
import "./temporal-bucket-authoring-
|
|
18
|
+
import "./temporal-bucket-authoring-CyTCHy1K.js";
|
|
19
19
|
import "./color-CJvdlFM_.js";
|
|
20
20
|
import "react-dom";
|
|
21
|
-
import { g as se, d as fa, a as ga } from "./index-
|
|
21
|
+
import { g as se, d as fa, a as ga } from "./index-BvRREsU9.js";
|
|
22
22
|
/**
|
|
23
23
|
* @license lucide-react v0.453.0 - ISC
|
|
24
24
|
*
|
|
@@ -109,7 +109,7 @@ function wa({
|
|
|
109
109
|
isCreating: n
|
|
110
110
|
}) {
|
|
111
111
|
const i = et("interactive"), [s, d] = E(""), [p, l] = E("");
|
|
112
|
-
|
|
112
|
+
Y(() => {
|
|
113
113
|
t || (d(""), l(""));
|
|
114
114
|
}, [t]);
|
|
115
115
|
const u = () => {
|
|
@@ -150,7 +150,7 @@ function wa({
|
|
|
150
150
|
/* @__PURE__ */ r("div", { className: "space-y-1.5", children: [
|
|
151
151
|
/* @__PURE__ */ e(Se, { htmlFor: "visual-title", className: "text-[12px]", children: "Name" }),
|
|
152
152
|
/* @__PURE__ */ e(
|
|
153
|
-
|
|
153
|
+
Ze,
|
|
154
154
|
{
|
|
155
155
|
id: "visual-title",
|
|
156
156
|
size: "sm",
|
|
@@ -167,7 +167,7 @@ function wa({
|
|
|
167
167
|
/* @__PURE__ */ r("div", { className: "space-y-1.5", children: [
|
|
168
168
|
/* @__PURE__ */ e(Se, { htmlFor: "visual-description", className: "text-[12px]", children: "Description" }),
|
|
169
169
|
/* @__PURE__ */ e(
|
|
170
|
-
|
|
170
|
+
Ze,
|
|
171
171
|
{
|
|
172
172
|
id: "visual-description",
|
|
173
173
|
size: "sm",
|
|
@@ -228,7 +228,7 @@ function Na(t, a) {
|
|
|
228
228
|
}
|
|
229
229
|
function Sa(t) {
|
|
230
230
|
const a = (t || "").toLowerCase();
|
|
231
|
-
return a.includes("table") ? Lt : a.includes("pie") || a.includes("donut") ?
|
|
231
|
+
return a.includes("table") ? Lt : a.includes("pie") || a.includes("donut") ? Zt : a.includes("line") ? Jt : a.includes("bar") ? Zr : mt;
|
|
232
232
|
}
|
|
233
233
|
function Da({ visual: t }) {
|
|
234
234
|
const a = t.ownership.status === "public" ? "Public" : t.ownership.status === "shared" || t.ownership.sharedCount > 0 ? "Shared" : "Private";
|
|
@@ -256,7 +256,7 @@ function jn({
|
|
|
256
256
|
duplicateResource: xe,
|
|
257
257
|
isCreating: re,
|
|
258
258
|
isDeleting: oe
|
|
259
|
-
} =
|
|
259
|
+
} = qt(
|
|
260
260
|
void 0,
|
|
261
261
|
(y) => {
|
|
262
262
|
l(!1), y && (A(y), g(y), S());
|
|
@@ -265,7 +265,7 @@ function jn({
|
|
|
265
265
|
startUpdating: Ie,
|
|
266
266
|
stopUpdating: Fe,
|
|
267
267
|
isUpdating: ie
|
|
268
|
-
} =
|
|
268
|
+
} = Kt(), j = T, Z = ee(() => {
|
|
269
269
|
const y = n.trim().toLowerCase();
|
|
270
270
|
return y ? j.filter(
|
|
271
271
|
(L) => {
|
|
@@ -282,23 +282,23 @@ function jn({
|
|
|
282
282
|
(y) => y.permissions.canDelete
|
|
283
283
|
), Le = le.filter(
|
|
284
284
|
(y) => y.permissions.canShare
|
|
285
|
-
), ve =
|
|
285
|
+
), ve = Z.length > 0 && Z.every(
|
|
286
286
|
(y) => s.has(y.id)
|
|
287
|
-
), de =
|
|
287
|
+
), de = Z.some(
|
|
288
288
|
(y) => s.has(y.id)
|
|
289
289
|
), me = (y) => {
|
|
290
290
|
const L = new Set(s);
|
|
291
291
|
y(L), d(L);
|
|
292
|
-
},
|
|
292
|
+
}, X = (y) => {
|
|
293
293
|
me((L) => {
|
|
294
294
|
L.has(y) ? L.delete(y) : L.add(y);
|
|
295
295
|
});
|
|
296
296
|
}, ye = () => {
|
|
297
297
|
d((y) => {
|
|
298
298
|
const L = new Set(y);
|
|
299
|
-
return ve ?
|
|
299
|
+
return ve ? Z.forEach(
|
|
300
300
|
(M) => L.delete(M.id)
|
|
301
|
-
) :
|
|
301
|
+
) : Z.forEach(
|
|
302
302
|
(M) => L.add(M.id)
|
|
303
303
|
), L;
|
|
304
304
|
});
|
|
@@ -326,7 +326,7 @@ function jn({
|
|
|
326
326
|
return;
|
|
327
327
|
}
|
|
328
328
|
N(null), x(!0);
|
|
329
|
-
},
|
|
329
|
+
}, qe = async () => {
|
|
330
330
|
const y = C ? [C] : J;
|
|
331
331
|
try {
|
|
332
332
|
for (const L of y)
|
|
@@ -375,11 +375,11 @@ function jn({
|
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
377
|
);
|
|
378
|
-
},
|
|
378
|
+
}, Q = (y) => {
|
|
379
379
|
a(y), y || b();
|
|
380
380
|
}, Ne = C ? 1 : J.length;
|
|
381
381
|
return /* @__PURE__ */ r(W, { children: [
|
|
382
|
-
/* @__PURE__ */ e(De, { open: t, onOpenChange:
|
|
382
|
+
/* @__PURE__ */ e(De, { open: t, onOpenChange: Q, children: /* @__PURE__ */ r(
|
|
383
383
|
ke,
|
|
384
384
|
{
|
|
385
385
|
showCloseButton: !1,
|
|
@@ -400,7 +400,7 @@ function jn({
|
|
|
400
400
|
size: "xs",
|
|
401
401
|
variant: "ghost",
|
|
402
402
|
className: "w-7 px-0 text-muted-foreground hover:text-foreground",
|
|
403
|
-
onClick: () =>
|
|
403
|
+
onClick: () => Q(!1),
|
|
404
404
|
"aria-label": "Close visuals library",
|
|
405
405
|
children: "×"
|
|
406
406
|
}
|
|
@@ -435,19 +435,19 @@ function jn({
|
|
|
435
435
|
}
|
|
436
436
|
)
|
|
437
437
|
] }),
|
|
438
|
-
/* @__PURE__ */ e("div", { className: "min-h-0 flex-1 overflow-auto", children: F ? /* @__PURE__ */ e("div", { className: "p-3", children: /* @__PURE__ */ e(Ca, {}) }) : H ? /* @__PURE__ */ e("div", { className: "flex flex-col items-center gap-2 px-4 py-12 text-center", children: /* @__PURE__ */ e("p", { className: "text-[13px] text-destructive", children: "Failed to load visuals" }) }) :
|
|
438
|
+
/* @__PURE__ */ e("div", { className: "min-h-0 flex-1 overflow-auto", children: F ? /* @__PURE__ */ e("div", { className: "p-3", children: /* @__PURE__ */ e(Ca, {}) }) : H ? /* @__PURE__ */ e("div", { className: "flex flex-col items-center gap-2 px-4 py-12 text-center", children: /* @__PURE__ */ e("p", { className: "text-[13px] text-destructive", children: "Failed to load visuals" }) }) : Z.length === 0 ? /* @__PURE__ */ r("div", { className: "flex flex-col items-center gap-2 px-4 py-12 text-center", children: [
|
|
439
439
|
/* @__PURE__ */ e(mt, { className: "h-5 w-5 text-muted-foreground/60" }),
|
|
440
440
|
/* @__PURE__ */ e("p", { className: "text-[13px] font-medium", children: n ? "No visuals found" : "No visuals yet" }),
|
|
441
441
|
/* @__PURE__ */ e("p", { className: "text-[12px] text-muted-foreground", children: n ? "Try a different search." : "Create a saved visual to add it here." })
|
|
442
442
|
] }) : /* @__PURE__ */ e(
|
|
443
443
|
ka,
|
|
444
444
|
{
|
|
445
|
-
visuals:
|
|
445
|
+
visuals: Z,
|
|
446
446
|
selectedIds: s,
|
|
447
447
|
allFilteredSelected: ve,
|
|
448
448
|
someFilteredSelected: de,
|
|
449
449
|
onSelectAll: ye,
|
|
450
|
-
onToggleSelection:
|
|
450
|
+
onToggleSelection: X,
|
|
451
451
|
onAddVisual: _,
|
|
452
452
|
onOpenVisual: ne,
|
|
453
453
|
onEditDetails: h,
|
|
@@ -512,7 +512,7 @@ function jn({
|
|
|
512
512
|
{
|
|
513
513
|
size: "xs",
|
|
514
514
|
variant: "outline",
|
|
515
|
-
onClick: () =>
|
|
515
|
+
onClick: () => Q(!1),
|
|
516
516
|
children: "Close"
|
|
517
517
|
}
|
|
518
518
|
),
|
|
@@ -543,15 +543,15 @@ function jn({
|
|
|
543
543
|
}
|
|
544
544
|
),
|
|
545
545
|
u && /* @__PURE__ */ e(
|
|
546
|
-
|
|
546
|
+
Qt,
|
|
547
547
|
{
|
|
548
548
|
resource: u,
|
|
549
|
-
resourceType:
|
|
549
|
+
resourceType: Xt.VISUAL,
|
|
550
550
|
onClose: () => c(null)
|
|
551
551
|
}
|
|
552
552
|
),
|
|
553
553
|
m && /* @__PURE__ */ e(
|
|
554
|
-
|
|
554
|
+
Yt,
|
|
555
555
|
{
|
|
556
556
|
open: !!m,
|
|
557
557
|
resourceLabel: "Visual",
|
|
@@ -586,7 +586,7 @@ function jn({
|
|
|
586
586
|
St,
|
|
587
587
|
{
|
|
588
588
|
onClick: (y) => {
|
|
589
|
-
y.preventDefault(),
|
|
589
|
+
y.preventDefault(), qe();
|
|
590
590
|
},
|
|
591
591
|
disabled: oe || Ne === 0,
|
|
592
592
|
children: [
|
|
@@ -676,7 +676,7 @@ function Aa({
|
|
|
676
676
|
return /* @__PURE__ */ r(
|
|
677
677
|
"div",
|
|
678
678
|
{
|
|
679
|
-
className:
|
|
679
|
+
className: K(
|
|
680
680
|
"group grid min-h-12 grid-cols-[2.5rem_minmax(14rem,1.8fr)_minmax(10rem,1fr)_8rem_7rem_5rem_5.5rem] items-center border-b border-border/50 px-3 text-[13px] hover:bg-muted/50",
|
|
681
681
|
a && "bg-muted/70"
|
|
682
682
|
),
|
|
@@ -769,7 +769,7 @@ function Ea({
|
|
|
769
769
|
className: "w-7 px-0",
|
|
770
770
|
onClick: () => a(t),
|
|
771
771
|
"aria-label": "Edit visual",
|
|
772
|
-
children: /* @__PURE__ */ e(
|
|
772
|
+
children: /* @__PURE__ */ e(Ke, { className: "h-3.5 w-3.5" })
|
|
773
773
|
}
|
|
774
774
|
),
|
|
775
775
|
/* @__PURE__ */ r($e, { modal: !1, children: [
|
|
@@ -790,7 +790,7 @@ function Ea({
|
|
|
790
790
|
className: "z-[60] w-44 rounded-[6px] border-border/60 p-1 shadow-sm",
|
|
791
791
|
children: [
|
|
792
792
|
/* @__PURE__ */ r(G, { onClick: () => a(t), children: [
|
|
793
|
-
/* @__PURE__ */ e(
|
|
793
|
+
/* @__PURE__ */ e(Ke, { className: "h-3.5 w-3.5" }),
|
|
794
794
|
"Edit visual"
|
|
795
795
|
] }),
|
|
796
796
|
/* @__PURE__ */ r(
|
|
@@ -805,7 +805,7 @@ function Ea({
|
|
|
805
805
|
}
|
|
806
806
|
),
|
|
807
807
|
t.permissions.canEdit && /* @__PURE__ */ r(G, { onClick: () => o(t), children: [
|
|
808
|
-
/* @__PURE__ */ e(
|
|
808
|
+
/* @__PURE__ */ e(Ke, { className: "h-3.5 w-3.5" }),
|
|
809
809
|
"Edit details"
|
|
810
810
|
] }),
|
|
811
811
|
t.permissions.canShare && /* @__PURE__ */ r(G, { onClick: () => n(t), children: [
|
|
@@ -908,7 +908,7 @@ function Ia({
|
|
|
908
908
|
/* @__PURE__ */ r("div", { className: "grid gap-2", children: [
|
|
909
909
|
/* @__PURE__ */ e(Se, { htmlFor: "name", children: "Name" }),
|
|
910
910
|
/* @__PURE__ */ e(
|
|
911
|
-
|
|
911
|
+
Ze,
|
|
912
912
|
{
|
|
913
913
|
id: "name",
|
|
914
914
|
value: p,
|
|
@@ -1063,18 +1063,18 @@ function Wn(t = {}) {
|
|
|
1063
1063
|
if (a)
|
|
1064
1064
|
return /* @__PURE__ */ r(W, { children: [
|
|
1065
1065
|
/* @__PURE__ */ e(
|
|
1066
|
-
|
|
1066
|
+
Qe,
|
|
1067
1067
|
{
|
|
1068
1068
|
className: "rounded-control",
|
|
1069
1069
|
variant: "default"
|
|
1070
1070
|
}
|
|
1071
1071
|
),
|
|
1072
|
-
/* @__PURE__ */ e(
|
|
1072
|
+
/* @__PURE__ */ e(Xe, {})
|
|
1073
1073
|
] });
|
|
1074
1074
|
if (C)
|
|
1075
1075
|
return /* @__PURE__ */ r(W, { children: [
|
|
1076
|
-
/* @__PURE__ */ e(
|
|
1077
|
-
/* @__PURE__ */ e(
|
|
1076
|
+
/* @__PURE__ */ e(Qe, { className: "rounded-control", variant: "default" }),
|
|
1077
|
+
/* @__PURE__ */ e(Xe, {})
|
|
1078
1078
|
] });
|
|
1079
1079
|
const F = async () => {
|
|
1080
1080
|
if (!d) {
|
|
@@ -1113,7 +1113,7 @@ function Wn(t = {}) {
|
|
|
1113
1113
|
};
|
|
1114
1114
|
return /* @__PURE__ */ r(W, { children: [
|
|
1115
1115
|
/* @__PURE__ */ r("div", { className: "inline-flex items-center overflow-hidden rounded-control", children: [
|
|
1116
|
-
!N && /* @__PURE__ */ e(
|
|
1116
|
+
!N && /* @__PURE__ */ e(Qe, { className: "!rounded-none", variant: "default" }),
|
|
1117
1117
|
N && D && /* @__PURE__ */ e(ia, { className: "!rounded-none", variant: "default" }),
|
|
1118
1118
|
N && I && /* @__PURE__ */ e(la, { className: "!rounded-none" }),
|
|
1119
1119
|
/* @__PURE__ */ r($e, { modal: !1, children: [
|
|
@@ -1186,7 +1186,7 @@ function Wn(t = {}) {
|
|
|
1186
1186
|
)
|
|
1187
1187
|
] })
|
|
1188
1188
|
] }),
|
|
1189
|
-
/* @__PURE__ */ e(
|
|
1189
|
+
/* @__PURE__ */ e(Xe, {}),
|
|
1190
1190
|
/* @__PURE__ */ e(
|
|
1191
1191
|
Ia,
|
|
1192
1192
|
{
|
|
@@ -1215,7 +1215,7 @@ function Hn({ className: t }) {
|
|
|
1215
1215
|
"aria-label": l,
|
|
1216
1216
|
title: l,
|
|
1217
1217
|
onClick: () => n(!a),
|
|
1218
|
-
className:
|
|
1218
|
+
className: K(
|
|
1219
1219
|
"inline-flex h-7 items-center gap-1.5 rounded-control border border-input bg-background px-2 text-[12px] font-medium text-foreground transition-colors hover:bg-muted/40 focus-visible:border-ring focus-visible:outline-none",
|
|
1220
1220
|
t
|
|
1221
1221
|
),
|
|
@@ -1271,16 +1271,16 @@ function Ua(t) {
|
|
|
1271
1271
|
const a = Date.now() - t.getTime();
|
|
1272
1272
|
return a < Va ? La : a < Ra ? Ba : Ta;
|
|
1273
1273
|
}
|
|
1274
|
-
function
|
|
1274
|
+
function qn() {
|
|
1275
1275
|
const { authToken: t, tokenProps: a } = He(), o = ue((h) => h.activeExports), [n, i] = E(
|
|
1276
1276
|
typeof document < "u" ? !document.hidden : !0
|
|
1277
|
-
), s = he(null), d = he(!1), p = he(void 0), l = a == null ? void 0 : a.apiServiceUrl, u = t == null ? void 0 : t.accessToken, c =
|
|
1277
|
+
), s = he(null), d = he(!1), p = he(void 0), l = a == null ? void 0 : a.apiServiceUrl, u = t == null ? void 0 : t.accessToken, c = q(() => {
|
|
1278
1278
|
const h = ue.getState().activeExports;
|
|
1279
1279
|
return Array.from(h.values()).filter(
|
|
1280
1280
|
(f) => ut(f.status)
|
|
1281
1281
|
);
|
|
1282
1282
|
}, []);
|
|
1283
|
-
|
|
1283
|
+
Y(() => {
|
|
1284
1284
|
if (typeof document > "u") return;
|
|
1285
1285
|
const h = () => {
|
|
1286
1286
|
i(!document.hidden);
|
|
@@ -1289,7 +1289,7 @@ function Kn() {
|
|
|
1289
1289
|
document.removeEventListener("visibilitychange", h);
|
|
1290
1290
|
};
|
|
1291
1291
|
}, []);
|
|
1292
|
-
const m =
|
|
1292
|
+
const m = q(async () => {
|
|
1293
1293
|
if (!l || !u) {
|
|
1294
1294
|
d.current = !1;
|
|
1295
1295
|
return;
|
|
@@ -1366,18 +1366,18 @@ function Kn() {
|
|
|
1366
1366
|
} else
|
|
1367
1367
|
d.current = !1;
|
|
1368
1368
|
}, [l, u, c]);
|
|
1369
|
-
return
|
|
1369
|
+
return Y(() => {
|
|
1370
1370
|
p.current = m;
|
|
1371
|
-
}, [m]),
|
|
1371
|
+
}, [m]), Y(() => {
|
|
1372
1372
|
var f;
|
|
1373
1373
|
c().length > 0 && n && !d.current && (d.current = !0, (f = p.current) == null || f.call(p));
|
|
1374
|
-
}, [o, n, c]),
|
|
1374
|
+
}, [o, n, c]), Y(() => {
|
|
1375
1375
|
var f;
|
|
1376
1376
|
const h = c();
|
|
1377
1377
|
n && h.length > 0 && !d.current && (d.current = !0, (f = p.current) == null || f.call(p));
|
|
1378
|
-
}, [n, c]),
|
|
1378
|
+
}, [n, c]), Y(() => {
|
|
1379
1379
|
!n && s.current && (clearTimeout(s.current), s.current = null, d.current = !1);
|
|
1380
|
-
}, [n]),
|
|
1380
|
+
}, [n]), Y(() => () => {
|
|
1381
1381
|
s.current && (clearTimeout(s.current), s.current = null);
|
|
1382
1382
|
}, []), {
|
|
1383
1383
|
isPolling: d.current,
|
|
@@ -1385,9 +1385,9 @@ function Kn() {
|
|
|
1385
1385
|
inProgressCount: c().length
|
|
1386
1386
|
};
|
|
1387
1387
|
}
|
|
1388
|
-
function
|
|
1388
|
+
function Kn() {
|
|
1389
1389
|
const { authToken: t, tokenProps: a } = He(), o = ue((p) => p.activeExports), { addExport: n } = Et(), i = he(!1), s = a == null ? void 0 : a.apiServiceUrl, d = t == null ? void 0 : t.accessToken;
|
|
1390
|
-
|
|
1390
|
+
Y(() => {
|
|
1391
1391
|
if (i.current || !s || !d) return;
|
|
1392
1392
|
(async () => {
|
|
1393
1393
|
try {
|
|
@@ -1535,7 +1535,7 @@ function Oa() {
|
|
|
1535
1535
|
(C, N) => N.startedAt.getTime() - C.startedAt.getTime()
|
|
1536
1536
|
), m = c.some(
|
|
1537
1537
|
(C) => C.status === "completed" || C.status === "failed"
|
|
1538
|
-
), h =
|
|
1538
|
+
), h = q(async () => {
|
|
1539
1539
|
const C = a == null ? void 0 : a.apiServiceUrl, N = t == null ? void 0 : t.accessToken;
|
|
1540
1540
|
if (!(!C || !N)) {
|
|
1541
1541
|
p(!0);
|
|
@@ -1580,7 +1580,7 @@ function Oa() {
|
|
|
1580
1580
|
t == null ? void 0 : t.accessToken,
|
|
1581
1581
|
a == null ? void 0 : a.apiServiceUrl,
|
|
1582
1582
|
s
|
|
1583
|
-
]), f =
|
|
1583
|
+
]), f = q(async () => {
|
|
1584
1584
|
const C = a == null ? void 0 : a.apiServiceUrl, N = t == null ? void 0 : t.accessToken;
|
|
1585
1585
|
if (!C || !N) {
|
|
1586
1586
|
n();
|
|
@@ -1604,7 +1604,7 @@ function Oa() {
|
|
|
1604
1604
|
t == null ? void 0 : t.accessToken,
|
|
1605
1605
|
n,
|
|
1606
1606
|
i
|
|
1607
|
-
]), x =
|
|
1607
|
+
]), x = q(
|
|
1608
1608
|
async (C) => {
|
|
1609
1609
|
const N = a == null ? void 0 : a.apiServiceUrl, I = t == null ? void 0 : t.accessToken;
|
|
1610
1610
|
if (N && I)
|
|
@@ -1669,7 +1669,7 @@ function Oa() {
|
|
|
1669
1669
|
)) }) })
|
|
1670
1670
|
] });
|
|
1671
1671
|
}
|
|
1672
|
-
function
|
|
1672
|
+
function Qn({
|
|
1673
1673
|
variant: t
|
|
1674
1674
|
}) {
|
|
1675
1675
|
const a = ue((l) => l.activeExports), o = br(), n = a.size > 0, i = Array.from(a.values()).some(
|
|
@@ -1771,7 +1771,7 @@ function za({
|
|
|
1771
1771
|
T,
|
|
1772
1772
|
_a(F)
|
|
1773
1773
|
);
|
|
1774
|
-
}, S =
|
|
1774
|
+
}, S = q(() => {
|
|
1775
1775
|
if (s) {
|
|
1776
1776
|
d();
|
|
1777
1777
|
return;
|
|
@@ -1890,16 +1890,16 @@ function ja({
|
|
|
1890
1890
|
), b = ee(
|
|
1891
1891
|
() => Wa(c),
|
|
1892
1892
|
[c]
|
|
1893
|
-
), S =
|
|
1893
|
+
), S = q(() => {
|
|
1894
1894
|
if (n) {
|
|
1895
1895
|
i();
|
|
1896
1896
|
return;
|
|
1897
1897
|
}
|
|
1898
1898
|
u(!1);
|
|
1899
|
-
}, [n, i, u]), A =
|
|
1899
|
+
}, [n, i, u]), A = q(
|
|
1900
1900
|
(v, T, F) => {
|
|
1901
1901
|
!x || !(f != null && f.document) || h(
|
|
1902
|
-
|
|
1902
|
+
qa({
|
|
1903
1903
|
allInputs: c.inputs || [],
|
|
1904
1904
|
documentSheetId: f.id,
|
|
1905
1905
|
currentDocumentInputs: C,
|
|
@@ -1973,7 +1973,7 @@ function Ga(t, a) {
|
|
|
1973
1973
|
defaultValue: a[t.id]
|
|
1974
1974
|
} : t.defaultValue === void 0 ? t : { ...t, defaultValue: void 0 } : t.defaultValue === void 0 ? t : { ...t, defaultValue: void 0 };
|
|
1975
1975
|
}
|
|
1976
|
-
function
|
|
1976
|
+
function qa({
|
|
1977
1977
|
allInputs: t,
|
|
1978
1978
|
documentSheetId: a,
|
|
1979
1979
|
currentDocumentInputs: o,
|
|
@@ -2025,7 +2025,7 @@ function Ka({
|
|
|
2025
2025
|
(h) => !c.has(h.id)
|
|
2026
2026
|
), ...u];
|
|
2027
2027
|
}
|
|
2028
|
-
function
|
|
2028
|
+
function Ka({
|
|
2029
2029
|
showFilters: t,
|
|
2030
2030
|
onShowFiltersChange: a,
|
|
2031
2031
|
pickerContent: o,
|
|
@@ -2041,7 +2041,7 @@ function qa({
|
|
|
2041
2041
|
return /* @__PURE__ */ r(
|
|
2042
2042
|
"div",
|
|
2043
2043
|
{
|
|
2044
|
-
className:
|
|
2044
|
+
className: K(
|
|
2045
2045
|
// Height lives on the shell so the outer border is part of the
|
|
2046
2046
|
// h-7 box (matches regular `size="xs"` buttons). Inner triggers
|
|
2047
2047
|
// stretch to fill via `h-full`.
|
|
@@ -2056,7 +2056,7 @@ function qa({
|
|
|
2056
2056
|
{
|
|
2057
2057
|
variant: "ghost",
|
|
2058
2058
|
size: "xs",
|
|
2059
|
-
className:
|
|
2059
|
+
className: K(
|
|
2060
2060
|
"h-full rounded-none border-0 bg-transparent pl-2.5 pr-2 shadow-none hover:bg-accent/50 data-[state=open]:bg-accent/60",
|
|
2061
2061
|
d
|
|
2062
2062
|
),
|
|
@@ -2071,7 +2071,7 @@ function qa({
|
|
|
2071
2071
|
{
|
|
2072
2072
|
align: "end",
|
|
2073
2073
|
sideOffset: 6,
|
|
2074
|
-
className:
|
|
2074
|
+
className: K(
|
|
2075
2075
|
"w-auto rounded-card border border-border/60 p-0 shadow-[0_10px_28px_rgba(0,0,0,0.14)] dark:shadow-[0_10px_28px_rgba(0,0,0,0.5)]",
|
|
2076
2076
|
l
|
|
2077
2077
|
),
|
|
@@ -2086,7 +2086,7 @@ function qa({
|
|
|
2086
2086
|
{
|
|
2087
2087
|
variant: "ghost",
|
|
2088
2088
|
size: "xs",
|
|
2089
|
-
className:
|
|
2089
|
+
className: K(
|
|
2090
2090
|
"h-full w-7 rounded-none border-0 border-l border-border/60 bg-transparent px-0 shadow-none hover:bg-accent/50 data-[state=open]:bg-accent/60",
|
|
2091
2091
|
p
|
|
2092
2092
|
),
|
|
@@ -2099,7 +2099,7 @@ function qa({
|
|
|
2099
2099
|
{
|
|
2100
2100
|
align: "end",
|
|
2101
2101
|
sideOffset: 6,
|
|
2102
|
-
className:
|
|
2102
|
+
className: K(
|
|
2103
2103
|
"w-auto rounded-card border border-border/60 p-0 shadow-[0_10px_28px_rgba(0,0,0,0.14)] dark:shadow-[0_10px_28px_rgba(0,0,0,0.5)]",
|
|
2104
2104
|
u
|
|
2105
2105
|
),
|
|
@@ -2112,10 +2112,10 @@ function qa({
|
|
|
2112
2112
|
}
|
|
2113
2113
|
);
|
|
2114
2114
|
}
|
|
2115
|
-
function
|
|
2115
|
+
function Qa() {
|
|
2116
2116
|
ha();
|
|
2117
2117
|
const t = P((l) => l.selectedSheetId), a = P((l) => l.selectedFrameId), o = P((l) => l.dashboard), n = P((l) => l.actions.getSelectedFrame), { setSelectedFrameId: i } = be(), { setCard: s } = Vt(), d = ge((l) => l.card.dataSource);
|
|
2118
|
-
return
|
|
2118
|
+
return Y(() => {
|
|
2119
2119
|
var u, c;
|
|
2120
2120
|
let l = n();
|
|
2121
2121
|
if (!l) {
|
|
@@ -2130,10 +2130,10 @@ function Xa() {
|
|
|
2130
2130
|
hasEntities: !!(d != null && d.selectedEntities && d.selectedEntities.length > 0)
|
|
2131
2131
|
};
|
|
2132
2132
|
}
|
|
2133
|
-
function
|
|
2133
|
+
function Xa() {
|
|
2134
2134
|
const t = P((l) => l.dashboard), a = P(
|
|
2135
2135
|
(l) => l.semanticExecutionPayload
|
|
2136
|
-
), o = P((l) => l.actions.addFilter), { hasEntities: n } =
|
|
2136
|
+
), o = P((l) => l.actions.addFilter), { hasEntities: n } = Qa(), { isLoading: i } = Sr(), s = ee(
|
|
2137
2137
|
() => ra(t, a),
|
|
2138
2138
|
[t, a]
|
|
2139
2139
|
), p = !aa(t.filters) && s.hasEligibleCards && !i;
|
|
@@ -2163,7 +2163,7 @@ function Za() {
|
|
|
2163
2163
|
] });
|
|
2164
2164
|
}
|
|
2165
2165
|
const Ct = !1;
|
|
2166
|
-
function
|
|
2166
|
+
function Ya({
|
|
2167
2167
|
onAddFilter: t,
|
|
2168
2168
|
onAddControl: a,
|
|
2169
2169
|
onManageControls: o,
|
|
@@ -2177,7 +2177,7 @@ function Qa({
|
|
|
2177
2177
|
return i == null || i.showDownloadButton, /* @__PURE__ */ r("div", { className: "w-[300px]", children: [
|
|
2178
2178
|
/* @__PURE__ */ r("div", { className: "p-1", children: [
|
|
2179
2179
|
/* @__PURE__ */ e(
|
|
2180
|
-
|
|
2180
|
+
Ye,
|
|
2181
2181
|
{
|
|
2182
2182
|
icon: It,
|
|
2183
2183
|
label: "Add filter",
|
|
@@ -2187,7 +2187,7 @@ function Qa({
|
|
|
2187
2187
|
}
|
|
2188
2188
|
),
|
|
2189
2189
|
/* @__PURE__ */ e(
|
|
2190
|
-
|
|
2190
|
+
Ye,
|
|
2191
2191
|
{
|
|
2192
2192
|
icon: Rt,
|
|
2193
2193
|
label: "Add control",
|
|
@@ -2197,7 +2197,7 @@ function Qa({
|
|
|
2197
2197
|
}
|
|
2198
2198
|
),
|
|
2199
2199
|
/* @__PURE__ */ e(
|
|
2200
|
-
|
|
2200
|
+
Ye,
|
|
2201
2201
|
{
|
|
2202
2202
|
icon: Ft,
|
|
2203
2203
|
label: "Manage controls",
|
|
@@ -2212,7 +2212,7 @@ function Qa({
|
|
|
2212
2212
|
/* @__PURE__ */ e("p", { className: "px-1 text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Display" }),
|
|
2213
2213
|
Ct,
|
|
2214
2214
|
/* @__PURE__ */ e(
|
|
2215
|
-
|
|
2215
|
+
Za,
|
|
2216
2216
|
{
|
|
2217
2217
|
id: "filter-display-wrap",
|
|
2218
2218
|
label: "Wrap to multiple lines",
|
|
@@ -2224,7 +2224,7 @@ function Qa({
|
|
|
2224
2224
|
] })
|
|
2225
2225
|
] });
|
|
2226
2226
|
}
|
|
2227
|
-
function
|
|
2227
|
+
function Ye({
|
|
2228
2228
|
icon: t,
|
|
2229
2229
|
label: a,
|
|
2230
2230
|
onClick: o
|
|
@@ -2242,7 +2242,7 @@ function Qe({
|
|
|
2242
2242
|
}
|
|
2243
2243
|
);
|
|
2244
2244
|
}
|
|
2245
|
-
function
|
|
2245
|
+
function Za({
|
|
2246
2246
|
id: t,
|
|
2247
2247
|
label: a,
|
|
2248
2248
|
checked: o,
|
|
@@ -2260,7 +2260,7 @@ function Ya({
|
|
|
2260
2260
|
)
|
|
2261
2261
|
] });
|
|
2262
2262
|
}
|
|
2263
|
-
function
|
|
2263
|
+
function Xn({
|
|
2264
2264
|
size: t,
|
|
2265
2265
|
className: a,
|
|
2266
2266
|
primaryButtonClassName: o,
|
|
@@ -2271,11 +2271,11 @@ function Zn({
|
|
|
2271
2271
|
var U;
|
|
2272
2272
|
const [d, p] = E(null), l = P((g) => g.dashboard), u = P((g) => g.selectedSheetId), c = P((g) => g.showFilters), m = Ar((g) => g.setPanelOpen), h = P((g) => g.actions), { setDocumentInspectorTab: f, setShowFilters: x } = h, C = (U = l.sheets) == null ? void 0 : U.find(
|
|
2273
2273
|
(g) => g.id === u
|
|
2274
|
-
), N = sa(C), I =
|
|
2274
|
+
), N = sa(C), I = q((g) => {
|
|
2275
2275
|
window.setTimeout(() => {
|
|
2276
2276
|
p(g);
|
|
2277
2277
|
}, 0);
|
|
2278
|
-
}, []), D =
|
|
2278
|
+
}, []), D = q(
|
|
2279
2279
|
(g) => {
|
|
2280
2280
|
if (N && u) {
|
|
2281
2281
|
g && f(u, "inputs");
|
|
@@ -2290,22 +2290,22 @@ function Zn({
|
|
|
2290
2290
|
m,
|
|
2291
2291
|
x
|
|
2292
2292
|
]
|
|
2293
|
-
), b =
|
|
2293
|
+
), b = q(() => {
|
|
2294
2294
|
D(!0);
|
|
2295
|
-
}, [D]), S =
|
|
2295
|
+
}, [D]), S = q(() => {
|
|
2296
2296
|
I("create");
|
|
2297
|
-
}, [I]), A =
|
|
2297
|
+
}, [I]), A = q(() => {
|
|
2298
2298
|
I("manage");
|
|
2299
2299
|
}, [I]);
|
|
2300
2300
|
return /* @__PURE__ */ r(W, { children: [
|
|
2301
2301
|
/* @__PURE__ */ e(
|
|
2302
|
-
|
|
2302
|
+
Ka,
|
|
2303
2303
|
{
|
|
2304
2304
|
showFilters: N ? !1 : c,
|
|
2305
2305
|
onShowFiltersChange: D,
|
|
2306
|
-
pickerContent: /* @__PURE__ */ e(
|
|
2306
|
+
pickerContent: /* @__PURE__ */ e(Xa, {}),
|
|
2307
2307
|
settingsContent: (g) => /* @__PURE__ */ e(
|
|
2308
|
-
|
|
2308
|
+
Ya,
|
|
2309
2309
|
{
|
|
2310
2310
|
onAddFilter: b,
|
|
2311
2311
|
onAddControl: S,
|
|
@@ -2357,7 +2357,7 @@ function Ja({
|
|
|
2357
2357
|
size: "xs",
|
|
2358
2358
|
variant: "outline",
|
|
2359
2359
|
disabled: t,
|
|
2360
|
-
className:
|
|
2360
|
+
className: K("gap-1.5", o),
|
|
2361
2361
|
onClick: n,
|
|
2362
2362
|
"aria-label": "Reports & briefings",
|
|
2363
2363
|
children: [
|
|
@@ -2424,7 +2424,7 @@ function on({
|
|
|
2424
2424
|
role: "tab",
|
|
2425
2425
|
"aria-selected": n,
|
|
2426
2426
|
onClick: () => a(o),
|
|
2427
|
-
className:
|
|
2427
|
+
className: K(
|
|
2428
2428
|
"h-6 rounded-[3px] px-2 text-[11px] transition-colors",
|
|
2429
2429
|
n ? "bg-background font-medium text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
2430
2430
|
),
|
|
@@ -2593,7 +2593,7 @@ function ln({
|
|
|
2593
2593
|
"a",
|
|
2594
2594
|
{
|
|
2595
2595
|
href: I,
|
|
2596
|
-
className:
|
|
2596
|
+
className: K(zt, "h-6 px-1 text-[11px]"),
|
|
2597
2597
|
children: [
|
|
2598
2598
|
"Manage all reports & briefings",
|
|
2599
2599
|
/* @__PURE__ */ e(ba, { className: "h-3 w-3" })
|
|
@@ -2835,7 +2835,7 @@ function un({
|
|
|
2835
2835
|
return /* @__PURE__ */ r(
|
|
2836
2836
|
"div",
|
|
2837
2837
|
{
|
|
2838
|
-
className:
|
|
2838
|
+
className: K(
|
|
2839
2839
|
"group relative border-b border-border/60 px-4 py-3 transition-colors hover:bg-muted/60",
|
|
2840
2840
|
p && "opacity-70"
|
|
2841
2841
|
),
|
|
@@ -2874,7 +2874,7 @@ function un({
|
|
|
2874
2874
|
l ? /* @__PURE__ */ e(te, { className: "h-3 w-3 shrink-0 animate-spin text-muted-foreground/70" }) : /* @__PURE__ */ e(
|
|
2875
2875
|
"span",
|
|
2876
2876
|
{
|
|
2877
|
-
className:
|
|
2877
|
+
className: K(
|
|
2878
2878
|
"inline-block h-1.5 w-1.5 shrink-0 rounded-full",
|
|
2879
2879
|
f
|
|
2880
2880
|
)
|
|
@@ -2993,7 +2993,7 @@ function vn({
|
|
|
2993
2993
|
onTimeout: s,
|
|
2994
2994
|
onExpand: d
|
|
2995
2995
|
}) {
|
|
2996
|
-
const [p, l] = E(a), { startRun: u } =
|
|
2996
|
+
const [p, l] = E(a), { startRun: u } = qr({
|
|
2997
2997
|
apiServiceUrl: o,
|
|
2998
2998
|
token: n,
|
|
2999
2999
|
intervalMs: hn,
|
|
@@ -3002,7 +3002,7 @@ function vn({
|
|
|
3002
3002
|
apiServiceUrl: m,
|
|
3003
3003
|
token: h,
|
|
3004
3004
|
runId: f
|
|
3005
|
-
}) =>
|
|
3005
|
+
}) => Kr(m, h, t, f),
|
|
3006
3006
|
onRun: (m) => {
|
|
3007
3007
|
l(m);
|
|
3008
3008
|
},
|
|
@@ -3013,11 +3013,11 @@ function vn({
|
|
|
3013
3013
|
s();
|
|
3014
3014
|
}
|
|
3015
3015
|
}), c = he(!1);
|
|
3016
|
-
return
|
|
3017
|
-
c.current || (c.current = !0,
|
|
3018
|
-
}, [a, i, u]), /* @__PURE__ */ e(
|
|
3016
|
+
return Y(() => {
|
|
3017
|
+
c.current || (c.current = !0, Qr(a.status) ? u(a) : Xr(a.status) && i(a));
|
|
3018
|
+
}, [a, i, u]), /* @__PURE__ */ e(Yr, { run: p, onExpand: d });
|
|
3019
3019
|
}
|
|
3020
|
-
function
|
|
3020
|
+
function Yn(t) {
|
|
3021
3021
|
return /* @__PURE__ */ e(Br, { children: /* @__PURE__ */ e(yn, { ...t }) });
|
|
3022
3022
|
}
|
|
3023
3023
|
function yn({
|
|
@@ -3042,16 +3042,16 @@ function yn({
|
|
|
3042
3042
|
c ?? "analytical_briefing"
|
|
3043
3043
|
), [v, T] = E("dashboard"), [F, H] = E(
|
|
3044
3044
|
[]
|
|
3045
|
-
), [k, V] = E(null), $ = c && !C && !k ? "list" : S, [xe, re] = E(!1), [oe, Ie] = E(null), [Fe, ie] = E(null), [j,
|
|
3045
|
+
), [k, V] = E(null), $ = c && !C && !k ? "list" : S, [xe, re] = E(!1), [oe, Ie] = E(null), [Fe, ie] = E(null), [j, Z] = E(
|
|
3046
3046
|
null
|
|
3047
3047
|
), [le, J] = E(null), Le = he(null), ve = he(D);
|
|
3048
|
-
|
|
3048
|
+
Y(() => {
|
|
3049
3049
|
const w = D && !ve.current;
|
|
3050
3050
|
ve.current = D, !(!w || !c) && (V(null), T("dashboard"), g(c), A("author"), J(null));
|
|
3051
3051
|
}, [D, c]);
|
|
3052
3052
|
const [de, me] = E(
|
|
3053
3053
|
null
|
|
3054
|
-
), [
|
|
3054
|
+
), [X, ye] = E(null), _ = o ?? (f == null ? void 0 : f.apiServiceUrl), z = n ?? (h == null ? void 0 : h.accessToken), ne = ee(() => ({ ...xn, ...m }), [m]), pe = pn(a), Be = ee(() => {
|
|
3055
3055
|
const w = gn(
|
|
3056
3056
|
F,
|
|
3057
3057
|
v,
|
|
@@ -3063,7 +3063,7 @@ function yn({
|
|
|
3063
3063
|
return w.filter(
|
|
3064
3064
|
(Te) => se(Te).noun === R
|
|
3065
3065
|
);
|
|
3066
|
-
}, [t, F, v, c]),
|
|
3066
|
+
}, [t, F, v, c]), qe = ee(() => v === "dashboard" ? {
|
|
3067
3067
|
source: { type: "dashboard", dashboardId: t },
|
|
3068
3068
|
label: pe,
|
|
3069
3069
|
detail: fn(pe)
|
|
@@ -3075,7 +3075,7 @@ function yn({
|
|
|
3075
3075
|
canCreate: x.canCreate,
|
|
3076
3076
|
analyticalBriefingsEnabled: x.analyticalBriefingsEnabled,
|
|
3077
3077
|
scheduledReportAvailable: v === "dashboard"
|
|
3078
|
-
}),
|
|
3078
|
+
}), Q = q(async () => {
|
|
3079
3079
|
if (!(!_ || !z)) {
|
|
3080
3080
|
re(!0), J(null);
|
|
3081
3081
|
try {
|
|
@@ -3095,9 +3095,9 @@ function yn({
|
|
|
3095
3095
|
}
|
|
3096
3096
|
}
|
|
3097
3097
|
}, [ne, _, z]);
|
|
3098
|
-
|
|
3099
|
-
!D || $ !== "list" || !Ce ||
|
|
3100
|
-
}, [Ce, $,
|
|
3098
|
+
Y(() => {
|
|
3099
|
+
!D || $ !== "list" || !Ce || Q();
|
|
3100
|
+
}, [Ce, $, Q, D]);
|
|
3101
3101
|
const Ne = () => {
|
|
3102
3102
|
V(null), T("dashboard"), A("list"), b(!0);
|
|
3103
3103
|
}, y = (w) => {
|
|
@@ -3129,7 +3129,7 @@ function yn({
|
|
|
3129
3129
|
z,
|
|
3130
3130
|
w.id,
|
|
3131
3131
|
{ requestId: Cn() }
|
|
3132
|
-
),
|
|
3132
|
+
), Q();
|
|
3133
3133
|
} catch (R) {
|
|
3134
3134
|
O.error(
|
|
3135
3135
|
R instanceof Error ? R.message : "Could not start the run."
|
|
@@ -3154,7 +3154,7 @@ function yn({
|
|
|
3154
3154
|
);
|
|
3155
3155
|
O.success(
|
|
3156
3156
|
Ve.briefing.status === "PAUSED" ? `${Te} paused` : `${Te} resumed`
|
|
3157
|
-
),
|
|
3157
|
+
), Q();
|
|
3158
3158
|
} catch (Ve) {
|
|
3159
3159
|
O.error(
|
|
3160
3160
|
Ve instanceof Error ? Ve.message : `Could not update the ${R} status.`
|
|
@@ -3173,7 +3173,7 @@ function yn({
|
|
|
3173
3173
|
w.id
|
|
3174
3174
|
);
|
|
3175
3175
|
const { noun: R } = se(w);
|
|
3176
|
-
O.success(`${R === "report" ? "Report" : "Briefing"} deleted`),
|
|
3176
|
+
O.success(`${R === "report" ? "Report" : "Briefing"} deleted`), Z(null), Q();
|
|
3177
3177
|
} catch (R) {
|
|
3178
3178
|
O.error(
|
|
3179
3179
|
R instanceof Error ? R.message : "Could not delete the briefing."
|
|
@@ -3223,7 +3223,7 @@ function yn({
|
|
|
3223
3223
|
role: "tab",
|
|
3224
3224
|
"aria-selected": $ === "author",
|
|
3225
3225
|
disabled: !C,
|
|
3226
|
-
className:
|
|
3226
|
+
className: K(
|
|
3227
3227
|
"-mb-px border-b-2 px-0.5 pb-2 text-[12px] transition-colors",
|
|
3228
3228
|
$ === "author" ? "border-foreground font-medium text-foreground" : "border-transparent text-muted-foreground hover:text-foreground",
|
|
3229
3229
|
!C && "cursor-not-allowed opacity-50"
|
|
@@ -3240,7 +3240,7 @@ function yn({
|
|
|
3240
3240
|
type: "button",
|
|
3241
3241
|
role: "tab",
|
|
3242
3242
|
"aria-selected": $ === "list",
|
|
3243
|
-
className:
|
|
3243
|
+
className: K(
|
|
3244
3244
|
"-mb-px border-b-2 px-0.5 pb-2 text-[12px] transition-colors",
|
|
3245
3245
|
$ === "list" ? "border-foreground font-medium text-foreground" : "border-transparent text-muted-foreground hover:text-foreground"
|
|
3246
3246
|
),
|
|
@@ -3289,7 +3289,7 @@ function yn({
|
|
|
3289
3289
|
onTogglePause: (w) => {
|
|
3290
3290
|
ae(w);
|
|
3291
3291
|
},
|
|
3292
|
-
onDelete: (w) =>
|
|
3292
|
+
onDelete: (w) => Z(w),
|
|
3293
3293
|
selectingId: oe,
|
|
3294
3294
|
busyId: Fe,
|
|
3295
3295
|
manageBriefingsHref: d,
|
|
@@ -3303,7 +3303,7 @@ function yn({
|
|
|
3303
3303
|
token: z,
|
|
3304
3304
|
briefing: k,
|
|
3305
3305
|
intent: U,
|
|
3306
|
-
sourceContext: k ? void 0 :
|
|
3306
|
+
sourceContext: k ? void 0 : qe,
|
|
3307
3307
|
title: k ? `Edit ${se(k).noun}` : U === "scheduled_report" ? "Schedule report" : "Create analytical briefing",
|
|
3308
3308
|
hideHeader: !!c,
|
|
3309
3309
|
className: "h-full min-h-0 max-w-none border-0 shadow-none",
|
|
@@ -3311,12 +3311,12 @@ function yn({
|
|
|
3311
3311
|
onCancel: () => b(!1),
|
|
3312
3312
|
onDeleted: () => {
|
|
3313
3313
|
const w = k ? se(k).noun : "briefing";
|
|
3314
|
-
O.success(`${w === "report" ? "Report" : "Briefing"} deleted`), V(null), A("list"),
|
|
3314
|
+
O.success(`${w === "report" ? "Report" : "Briefing"} deleted`), V(null), A("list"), Q();
|
|
3315
3315
|
},
|
|
3316
3316
|
onRunStarted: () => {
|
|
3317
3317
|
},
|
|
3318
3318
|
onSaved: (w) => {
|
|
3319
|
-
V(w),
|
|
3319
|
+
V(w), Q();
|
|
3320
3320
|
},
|
|
3321
3321
|
onMinimizeRun: ({ briefing: w, run: R }) => {
|
|
3322
3322
|
me({ briefing: w, run: R }), b(!1);
|
|
@@ -3337,29 +3337,29 @@ function yn({
|
|
|
3337
3337
|
ye({
|
|
3338
3338
|
briefing: de.briefing,
|
|
3339
3339
|
run: w
|
|
3340
|
-
}), me(null),
|
|
3340
|
+
}), me(null), Q();
|
|
3341
3341
|
},
|
|
3342
3342
|
onTimeout: () => {
|
|
3343
|
-
me(null),
|
|
3343
|
+
me(null), Q();
|
|
3344
3344
|
},
|
|
3345
3345
|
onExpand: () => {
|
|
3346
3346
|
V(de.briefing), A("author"), me(null), b(!0);
|
|
3347
3347
|
}
|
|
3348
3348
|
}
|
|
3349
3349
|
) : null,
|
|
3350
|
-
|
|
3350
|
+
X ? /* @__PURE__ */ e("div", { className: "fixed bottom-4 right-4 z-50 w-[360px]", children: /* @__PURE__ */ e(
|
|
3351
3351
|
Gr,
|
|
3352
3352
|
{
|
|
3353
|
-
title:
|
|
3354
|
-
durationSeconds:
|
|
3353
|
+
title: X.run.status === "SUCCESS" ? `${X.briefing.name} is ready` : `${X.briefing.name} run failed`,
|
|
3354
|
+
durationSeconds: X.run.startedAt && X.run.completedAt ? Math.max(
|
|
3355
3355
|
0,
|
|
3356
3356
|
Math.floor(
|
|
3357
|
-
(new Date(
|
|
3357
|
+
(new Date(X.run.completedAt).getTime() - new Date(X.run.startedAt).getTime()) / 1e3
|
|
3358
3358
|
)
|
|
3359
3359
|
) : null,
|
|
3360
|
-
status:
|
|
3360
|
+
status: X.run.status === "SUCCESS" ? "success" : "failed",
|
|
3361
3361
|
onView: () => {
|
|
3362
|
-
V(
|
|
3362
|
+
V(X.briefing), A("author"), ye(null), b(!0);
|
|
3363
3363
|
},
|
|
3364
3364
|
onDismiss: () => ye(null)
|
|
3365
3365
|
}
|
|
@@ -3369,7 +3369,7 @@ function yn({
|
|
|
3369
3369
|
{
|
|
3370
3370
|
open: !!j,
|
|
3371
3371
|
onOpenChange: (w) => {
|
|
3372
|
-
w ||
|
|
3372
|
+
w || Z(null);
|
|
3373
3373
|
},
|
|
3374
3374
|
children: /* @__PURE__ */ r(rt, { children: [
|
|
3375
3375
|
/* @__PURE__ */ r(at, { children: [
|
|
@@ -3412,16 +3412,16 @@ export {
|
|
|
3412
3412
|
Hn as A,
|
|
3413
3413
|
za as D,
|
|
3414
3414
|
Oa as E,
|
|
3415
|
-
|
|
3415
|
+
Qn as N,
|
|
3416
3416
|
Gn as U,
|
|
3417
3417
|
jn as V,
|
|
3418
3418
|
Ja as W,
|
|
3419
3419
|
Wn as a,
|
|
3420
3420
|
Ma as b,
|
|
3421
|
-
|
|
3421
|
+
Kn as c,
|
|
3422
3422
|
ja as d,
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3423
|
+
Ka as e,
|
|
3424
|
+
Xn as f,
|
|
3425
|
+
Yn as g,
|
|
3426
|
+
qn as u
|
|
3427
3427
|
};
|