react-semaphor 0.1.561 → 0.1.562
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.js +452 -429
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +5 -5
- package/dist/brand-studio/index.js +9 -9
- package/dist/briefings/index.js +5 -5
- package/dist/chunks/{analytics-base-schemas-CB3oFAXk.js → analytics-base-schemas-BaIQrEzX.js} +139 -134
- package/dist/chunks/{assistant-chat-DiVHY3Hw.js → assistant-chat-R_yT8xH4.js} +104 -104
- package/dist/chunks/{bookmark-impact-CR09dpkn.js → bookmark-impact-D4Kl4amw.js} +2 -2
- package/dist/chunks/{bookmark-state-BusLpkb7.js → bookmark-state-CWeoGbrx.js} +25 -25
- package/dist/chunks/{braces-u8VorWJc.js → braces-DzgoQC64.js} +1 -1
- package/dist/chunks/{comparison-window-caption-DDsIWJYT.js → comparison-window-caption-D1EUXzaR.js} +562 -437
- package/dist/chunks/{context-TUjw9eqr.js → context-R31TSL5V.js} +1 -1
- package/dist/chunks/{dashboard-BRdZBPqr.js → dashboard-Bp1y5oun.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-CgvTLndW.js → dashboard-briefing-launcher-S5FB3aUW.js} +155 -154
- package/dist/chunks/{dashboard-controls-B4vfSzTF.js → dashboard-controls-CfC_6Ztn.js} +970 -968
- package/dist/chunks/{dashboard-json-Y3MF59g7.js → dashboard-json-gYZT7ZQY.js} +5 -5
- package/dist/chunks/dates-DFY7Gfss.js +91 -0
- package/dist/chunks/{edit-dashboard-visual-DwjZcxj-.js → edit-dashboard-visual-u7OI_g8Q.js} +4636 -4681
- package/dist/chunks/{filter-reach-copy-bijwf_-b.js → filter-reach-copy-CvV7W5dd.js} +1470 -1101
- package/dist/chunks/{filter-value-text-DFnhwuEW.js → filter-value-text-CPwFkrMz.js} +11 -10
- package/dist/chunks/{global-date-filter-utils-BXgCpvQM.js → global-date-filter-utils-N1kcsOFE.js} +8997 -7417
- package/dist/chunks/{index-ClwbY3BL.js → index-CNGkfUp4.js} +91 -85
- package/dist/chunks/{layout-grid-CtvCBfOm.js → layout-grid-BM65viQh.js} +1 -1
- package/dist/chunks/{list-filter-BklYgciR.js → list-filter-BoeLBfL3.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-pU51-JmY.js → matrix-analytical-definition-hEucouWM.js} +4 -4
- package/dist/chunks/{matrix-card-CUorIB7Q.js → matrix-card-CCh9JjP1.js} +3 -3
- package/dist/chunks/{matrix-member-presentation-Df5UgCGN.js → matrix-member-presentation-DsAUbuoL.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-BSiGEXVC.js → matrix-operation-contract-DsLdFdSa.js} +339 -330
- package/dist/chunks/{metric-comparison-95aC0uEO.js → metric-comparison-Bnso1cm1.js} +2 -2
- package/dist/chunks/{model-change-B5wQhg5G.js → model-change-T1cRkh3m.js} +1 -1
- package/dist/chunks/{palette-DTnMhipt.js → palette-p1XSJFgB.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-Bo-86vwS.js → pivot-result-contract-expectations-B53jqszr.js} +5 -5
- package/dist/chunks/{pivot-result-identity-olvXJoB9.js → pivot-result-identity-Dq5jm-EC.js} +1 -1
- package/dist/chunks/{zoned-wall-clock-CGLVI40Q.js → raw-temporal-value-Bqz8wc7L.js} +97 -46
- package/dist/chunks/{report-preferences-dialog-C2YUIwKG.js → report-preferences-dialog-C4RAR8u5.js} +68 -63
- package/dist/chunks/{report-runtime-context-DoIUr3MP.js → report-runtime-context-BITkNSDa.js} +2 -2
- package/dist/chunks/{resolve-dashboard-input-context-q_iiNXE1.js → resolve-dashboard-input-context-DaDrZGuA.js} +3455 -1744
- package/dist/chunks/{save-DH4RyrnG.js → save-CHV1B1fL.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-8jqfI7hI.js → saved-dashboard-context-DFYBrE6O.js} +94 -95
- package/dist/chunks/{selection-filter-compiler-BKXmyLrS.js → selection-filter-compiler-CUDRnUxc.js} +19 -18
- package/dist/chunks/{selection-reducer-CV7K4FI6.js → selection-reducer-Bz5aywT4.js} +1 -1
- package/dist/chunks/{semaphor-ready-indicator-E2XWyibu.js → semaphor-ready-indicator-Cfuafnem.js} +37067 -38400
- package/dist/chunks/{shelf-drop-preview-context-C29EUzDp.js → shelf-drop-preview-context-BR2GEYog.js} +81 -82
- package/dist/chunks/{source-entity-resolution-BXI3nQ5Z.js → source-entity-resolution-DdDVXFB8.js} +6 -6
- package/dist/chunks/{switch-balDSHc7.js → switch-BW4yXSYs.js} +3 -3
- package/dist/chunks/{table-export-sheet-CK8tvh4d.js → table-export-sheet-bSXxGn-v.js} +1 -1
- package/dist/chunks/{temporal-input-presentation-B77JsAzU.js → temporal-input-presentation-sk9gqLi6.js} +699 -741
- package/dist/chunks/{token-types-DhYH5YKb.js → token-types-BUK06hU2.js} +1 -1
- package/dist/chunks/{upload-Ufj8vjyn.js → upload-BnmuyPqW.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-9WsnzEO5.js → use-create-flow-overlay-state-DyzhWvRJ.js} +6 -6
- package/dist/chunks/{validators-BtaCFIEB.js → validators-BIM0FE31.js} +764 -885
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +2278 -3030
- package/dist/data-app-sdk/index.js +43 -43
- package/dist/data-app-sdk-adapters/index.js +3 -3
- package/dist/data-app-sdk-validation/index.js +22 -22
- package/dist/format-utils/index.js +215 -209
- package/dist/index.js +225 -224
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/briefings/attachment-outcomes.d.ts +1 -1
- package/dist/types/components/dashboard/dashboard-create-dialog.d.ts +23 -0
- package/dist/types/components/index.d.ts +1 -2
- package/dist/types/components/surfboard/filter/types.d.ts +3 -1
- package/dist/types/index.js +5 -5
- package/dist/types/lib/formatters/raw-temporal-presentation.d.ts +59 -2
- package/dist/types/lib/interactions/get-click-context-from-matrix.d.ts +5 -0
- package/dist/types/lib/interactions/get-click-context-from-table.d.ts +45 -0
- package/dist/types/lib/print/print-inputs.d.ts +2 -1
- package/dist/types/lib/query-context/assemble-card-query.d.ts +2 -0
- package/dist/types/lib/query-context/build-dashboard-execution-snapshot.d.ts +5 -0
- package/dist/types/lib/selection/selection-from-click-context.d.ts +41 -0
- package/dist/types/lib/types/common-types.d.ts +6 -0
- package/dist/types/lib/types/explorer-types.d.ts +7 -1
- package/dist/types/lib/types/interaction-types.d.ts +3 -1
- package/dist/types/lib/types/token-types.d.ts +0 -1
- package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +3 -1
- package/dist/types/shared/analytics-protocol/contracts.d.ts +9 -40
- package/dist/types/shared/analytics-protocol/selection-contract.d.ts +12 -2
- package/dist/types/shared/analytics-protocol/validators.d.ts +1 -2
- package/dist/types/shared/assistant-protocol/context.d.ts +8 -8
- package/dist/types/shared/dashboard-authoring/card-formats/sql-date-pattern.d.ts +7 -1
- package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +24 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/column-polarity-write.d.ts +5 -0
- package/dist/types/shared/dashboard-authoring/card-settings/index.d.ts +4 -2
- package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +15 -0
- package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +12 -1
- package/dist/types/shared/dashboard-authoring/card-settings/views.d.ts +5 -3
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +3230 -4658
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +24 -2
- package/dist/types/shared/dashboard-authoring/changes/field-ref.d.ts +91 -0
- package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +7 -0
- package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +27 -1
- package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-create.d.ts +26 -0
- package/dist/types/shared/dashboard-authoring/click-to-filter-settings.d.ts +2 -1
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
- package/dist/types/shared/dashboard-authoring/detail-date-presentation.d.ts +9 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +8 -6
- package/dist/types/shared/dashboard-authoring/measure-calculations/apply.d.ts +8 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/comparison.d.ts +16 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/dates.d.ts +41 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/index.d.ts +17 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/options.d.ts +63 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/read.d.ts +16 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/resolve.d.ts +79 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/schemas.d.ts +934 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/sentences.d.ts +4 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/set.d.ts +11 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/transform.d.ts +63 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/window-transforms.d.ts +60 -0
- package/dist/types/shared/dashboard-authoring/new-card.d.ts +12 -1
- package/dist/types/shared/dashboard-authoring/operations/apply-dashboard-operations.d.ts +2 -1
- package/dist/types/shared/dashboard-authoring/operations/operation-sentences.d.ts +46 -0
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +52 -2
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +13 -1
- package/dist/types/shared/dashboard-authoring/text-card-words/blocks.d.ts +58 -0
- package/dist/types/shared/dashboard-authoring/text-card-words/index.d.ts +55 -0
- package/dist/types/shared/dashboard-authoring/text-card-words/rich-content.d.ts +18 -0
- package/dist/types/shared/format-utils/document-print.d.ts +82 -0
- package/dist/types/shared/format-utils/index.d.ts +1 -0
- package/dist/types/shared/format-utils/raw-temporal.d.ts +2 -7
- package/dist/types/shared/temporal/index.d.ts +1 -0
- package/dist/types/shared/temporal/raw-temporal-equality.d.ts +19 -0
- package/dist/types/shared/temporal/raw-temporal-value.d.ts +29 -0
- package/dist/types/shared/temporal/zoned-wall-clock.d.ts +6 -0
- package/package.json +1 -1
- package/dist/chunks/custom-visual-inputs-DfolidZ9.js +0 -292
- package/dist/chunks/document-dashboard-inputs-CvBbFTUA.js +0 -1718
- package/dist/types/components/dashboard/ai-dashboard-create-dialog.d.ts +0 -38
- package/dist/types/components/dashboard/dashboard-create-template.d.ts +0 -10
- package/dist/types/lib/hooks/use-dashboard-authoring.d.ts +0 -49
- package/dist/types/shared/dashboard-authoring/artifact-compiler.d.ts +0 -6
- package/dist/types/shared/dashboard-authoring/contracts.d.ts +0 -106
- package/dist/types/shared/dashboard-authoring/protocol-adapter.d.ts +0 -7
- package/dist/types/shared/dashboard-authoring/source-matching.d.ts +0 -34
- package/dist/types/shared/dashboard-authoring/validators.d.ts +0 -2
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
import { jsx as e, jsxs as s, Fragment as R } from "react/jsx-runtime";
|
|
2
2
|
import Mt, { useState as D, useEffect as ve, useCallback as Y, useMemo as ee, useLayoutEffect as Dt, useRef as nt, useContext as Ut } from "react";
|
|
3
|
-
import { cF as ot, bK as Ie, bL as Te, bN as
|
|
4
|
-
import { c as fe, B as T, X as Xe, m as De, r as st, L as ae, k as qt, d as Ct, j as gr, y as wt, P as Ae, a3 as br, b as Fe, a as qe, S as Ht } from "./switch-
|
|
5
|
-
import { L as Ee } from "./layout-grid-
|
|
3
|
+
import { cF as ot, bK as Ie, bL as Te, bN as Ve, cG as na, b8 as it, b5 as Qe, cH as sa, cI as Ke, cJ as lt, a7 as Ge, a4 as de, u as w, cK as oa, cL as ia, bJ as E, cM as la, a6 as J, b3 as da, ca, cN as ua, cO as ha, bD as ma, a$ as xe, cu as Ot, aS as $e, o as pa, k as fa, cP as ga, cx as dt, cy as ct, cz as ut, cA as ht, cB as mt, cC as pt, cD as ft, cE as Rt, aP as gt, cQ as ba, cR as va, cm as et, cj as Le, ck as Be, cS as zt, cl as Pe, c6 as K, cv as xa, cq as We, cT as ya, c4 as Ca, bM as bt, bO as vt, cU as wa, bI as Na, cV as _t, bu as xt, cW as Sa, bv as ka, i as Da, cX as Aa, bp as Fa, w as Ea, t as Ia, cY as Ta, cZ as Va, c_ as La, c$ as ue, d0 as Ba, R as jt, d1 as Pa, d2 as Ma, d3 as Ua, aM as Oa, d4 as Ra, d5 as le, d6 as za, W as yt, d7 as _a, d8 as ja, d9 as $a, da as Wa, db as qa, dc as Ha, dd as Qa, de as $t, df as Ka, dg as Ga, dh as Xa, di as Wt, dj as Ya, dk as ze, dl as Za, dm as Ja, dn as er, A as tr, aB as ar, aC as rr, ah as nr, ag as sr, af as or, ae as ir, ab as lr, a9 as dr, dp as cr, dq as ur, dr as hr, ds as mr, dt as pr, az as fr } from "./semaphor-ready-indicator-Cfuafnem.js";
|
|
4
|
+
import { c as fe, B as T, X as Xe, m as De, r as st, L as ae, k as qt, d as Ct, j as gr, y as wt, P as Ae, a3 as br, b as Fe, a as qe, S as Ht } from "./switch-BW4yXSYs.js";
|
|
5
|
+
import { L as Ee } from "./layout-grid-BM65viQh.js";
|
|
6
6
|
import "./index-CuHybtft.js";
|
|
7
|
-
import { o as vr } from "./validators-
|
|
8
|
-
import "./matrix-operation-contract-
|
|
9
|
-
import "./analytics-base-schemas-
|
|
7
|
+
import { o as vr } from "./validators-BIM0FE31.js";
|
|
8
|
+
import "./matrix-operation-contract-DsLdFdSa.js";
|
|
9
|
+
import "./analytics-base-schemas-BaIQrEzX.js";
|
|
10
10
|
import "zod";
|
|
11
11
|
import "../value-format-preferences/index.js";
|
|
12
|
-
import { c as
|
|
12
|
+
import { c as Z } from "./_commonjsHelpers-DimLPMtv.js";
|
|
13
13
|
import { s as _e } from "./normalize-dashboard-for-dirty-check-XKgH3GFX.js";
|
|
14
|
-
import {
|
|
14
|
+
import { bv as At, b8 as Ft, e6 as Et, eO as xr, eP as He, eQ as It, eR as yr, a$ as Nt, eS as Cr, eT as wr, eU as Nr, ck as Sr, eV as kr } from "./global-date-filter-utils-N1kcsOFE.js";
|
|
15
15
|
import { createPortal as Dr } from "react-dom";
|
|
16
|
-
import {
|
|
16
|
+
import { aH as Tt } from "./temporal-input-presentation-sk9gqLi6.js";
|
|
17
|
+
import { O as Ar } from "./bookmark-state-CWeoGbrx.js";
|
|
17
18
|
import "./index-CJW5BdWT.js";
|
|
18
|
-
import
|
|
19
|
-
import { S as Qt } from "./save-
|
|
20
|
-
import { V as Fr, L as Er, a as Ir, u as Kt, C as Gt, F as Tr, b as
|
|
21
|
-
import { m as
|
|
22
|
-
import {
|
|
23
|
-
import { g as ie, d as Mr, a as Ur } from "./index-
|
|
19
|
+
import "./context-R31TSL5V.js";
|
|
20
|
+
import { S as Qt } from "./save-CHV1B1fL.js";
|
|
21
|
+
import { V as Fr, L as Er, a as Ir, u as Kt, C as Gt, F as Tr, b as Vr } from "./use-create-flow-overlay-state-DyzhWvRJ.js";
|
|
22
|
+
import { m as Lr, k as Xt, n as Yt } from "./report-preferences-dialog-C4RAR8u5.js";
|
|
23
|
+
import { s as Br, a8 as Pr } from "./resolve-dashboard-input-context-DaDrZGuA.js";
|
|
24
|
+
import { g as ie, d as Mr, a as Ur } from "./index-CNGkfUp4.js";
|
|
24
25
|
/**
|
|
25
26
|
* @license lucide-react v0.453.0 - ISC
|
|
26
27
|
*
|
|
@@ -37,7 +38,7 @@ const Or = fe("ArrowUpRight", [
|
|
|
37
38
|
* This source code is licensed under the ISC license.
|
|
38
39
|
* See the LICENSE file in the root directory of this source tree.
|
|
39
40
|
*/
|
|
40
|
-
const
|
|
41
|
+
const Vt = fe("Bell", [
|
|
41
42
|
["path", { d: "M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9", key: "1qo2s2" }],
|
|
42
43
|
["path", { d: "M10.3 21a1.94 1.94 0 0 0 3.4 0", key: "qgo35s" }]
|
|
43
44
|
]);
|
|
@@ -74,7 +75,7 @@ const zr = fe("CodeXml", [
|
|
|
74
75
|
* This source code is licensed under the ISC license.
|
|
75
76
|
* See the LICENSE file in the root directory of this source tree.
|
|
76
77
|
*/
|
|
77
|
-
const
|
|
78
|
+
const Lt = fe("MonitorSmartphone", [
|
|
78
79
|
["path", { d: "M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8", key: "10dyio" }],
|
|
79
80
|
["path", { d: "M10 19v-3.96 3.15", key: "1irgej" }],
|
|
80
81
|
["path", { d: "M7 19h5", key: "qswx4l" }],
|
|
@@ -155,7 +156,7 @@ function Wr({
|
|
|
155
156
|
/* @__PURE__ */ s("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
156
157
|
/* @__PURE__ */ e(Ee, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
|
|
157
158
|
/* @__PURE__ */ s("div", { className: "flex min-w-0 items-baseline gap-2", children: [
|
|
158
|
-
/* @__PURE__ */ e(
|
|
159
|
+
/* @__PURE__ */ e(Ve, { className: "truncate text-[13px] font-medium leading-none tracking-normal", children: "New library visual" }),
|
|
159
160
|
/* @__PURE__ */ e("span", { className: "shrink-0 text-[10px] font-medium uppercase leading-none tracking-[0.08em] text-muted-foreground", children: "Visual" })
|
|
160
161
|
] })
|
|
161
162
|
] }),
|
|
@@ -328,7 +329,7 @@ async function Bt(t, a, o, n, i = "Opening library visual...") {
|
|
|
328
329
|
throw E.dismiss(c), l;
|
|
329
330
|
}
|
|
330
331
|
}
|
|
331
|
-
function
|
|
332
|
+
function Zt(t) {
|
|
332
333
|
if (typeof t == "string")
|
|
333
334
|
return JSON.parse(t);
|
|
334
335
|
if (typeof t == "object")
|
|
@@ -340,7 +341,7 @@ function Qr(t, a) {
|
|
|
340
341
|
const o = (t == null ? void 0 : t.frameObject) ?? ((r = t == null ? void 0 : t.visual) == null ? void 0 : r.frameObject);
|
|
341
342
|
if (!o)
|
|
342
343
|
return !1;
|
|
343
|
-
const n =
|
|
344
|
+
const n = Zt(o);
|
|
344
345
|
if (!(n != null && n.cards) || n.cards.length === 0)
|
|
345
346
|
return !1;
|
|
346
347
|
const i = (d = n.cards) == null ? void 0 : d.find(
|
|
@@ -354,7 +355,7 @@ function Qr(t, a) {
|
|
|
354
355
|
}), !0) : !1;
|
|
355
356
|
}
|
|
356
357
|
function Kr() {
|
|
357
|
-
const t =
|
|
358
|
+
const t = J(
|
|
358
359
|
(n) => {
|
|
359
360
|
var i;
|
|
360
361
|
return ((i = n.card.customCardPreferences) == null ? void 0 : i.url) || "";
|
|
@@ -371,7 +372,7 @@ function Kr() {
|
|
|
371
372
|
selectedDatabaseName: c,
|
|
372
373
|
selectedTableName: l,
|
|
373
374
|
selectedConnectionId: u
|
|
374
|
-
} =
|
|
375
|
+
} = J.getState(), h = i.sql, m = (N = a == null ? void 0 : a.getState()) == null ? void 0 : N.settings, p = At(i, {
|
|
375
376
|
isDevMode: r,
|
|
376
377
|
cardSql: h,
|
|
377
378
|
selectedSchemaName: d,
|
|
@@ -417,18 +418,18 @@ function ye() {
|
|
|
417
418
|
setIsDashboardEditing: O,
|
|
418
419
|
setIsVisualEditing: b,
|
|
419
420
|
clearSelectedFrameId: I
|
|
420
|
-
} = de(), C = w((
|
|
421
|
-
(
|
|
422
|
-
),
|
|
421
|
+
} = de(), C = w((L) => L.selectedSheetId), A = w((L) => L.selectedFrameId), k = w((L) => L.dashboard), j = w(
|
|
422
|
+
(L) => L.inlineFilterValuesMap
|
|
423
|
+
), V = oa((i == null ? void 0 : i.id) || "", {
|
|
423
424
|
enabled: !!(i != null && i.id) && !!(t != null && t.accessToken)
|
|
424
425
|
}), z = Y(
|
|
425
|
-
async (
|
|
426
|
+
async (L) => {
|
|
426
427
|
try {
|
|
427
|
-
r(
|
|
428
|
+
r(L), I(), F();
|
|
428
429
|
const { data: te, fromCache: X } = await Bt(
|
|
429
430
|
a.apiServiceUrl,
|
|
430
431
|
(t == null ? void 0 : t.accessToken) || "",
|
|
431
|
-
|
|
432
|
+
L.id,
|
|
432
433
|
o,
|
|
433
434
|
"Opening library visual..."
|
|
434
435
|
);
|
|
@@ -489,27 +490,27 @@ function ye() {
|
|
|
489
490
|
j
|
|
490
491
|
]
|
|
491
492
|
), G = Y(
|
|
492
|
-
async (
|
|
493
|
+
async (L) => {
|
|
493
494
|
var X;
|
|
494
495
|
const te = (H) => (E.error(H), { success: !1, error: H });
|
|
495
496
|
try {
|
|
496
|
-
if (r(
|
|
497
|
+
if (r(L), !C)
|
|
497
498
|
return te("No sheet selected. Please select a sheet first.");
|
|
498
499
|
const { data: H, fromCache: he } = await Bt(
|
|
499
500
|
a.apiServiceUrl,
|
|
500
501
|
(t == null ? void 0 : t.accessToken) || "",
|
|
501
|
-
|
|
502
|
+
L.id,
|
|
502
503
|
o,
|
|
503
504
|
"Adding visual to dashboard..."
|
|
504
505
|
), ge = (H == null ? void 0 : H.frameObject) ?? ((X = H == null ? void 0 : H.visual) == null ? void 0 : X.frameObject);
|
|
505
506
|
if (!ge)
|
|
506
507
|
return te("Visual has no frame data");
|
|
507
|
-
const Q =
|
|
508
|
+
const Q = Zt(ge);
|
|
508
509
|
if (!(Q != null && Q.cards) || Q.cards.length === 0)
|
|
509
510
|
return te("Visual frame is malformed");
|
|
510
511
|
const _ = {
|
|
511
512
|
...ia(Q),
|
|
512
|
-
visualId:
|
|
513
|
+
visualId: L.id
|
|
513
514
|
// Link this frame to the library visual
|
|
514
515
|
};
|
|
515
516
|
return await n(C, _), O(!0), { success: !0, fromCache: he };
|
|
@@ -530,17 +531,17 @@ function ye() {
|
|
|
530
531
|
]
|
|
531
532
|
);
|
|
532
533
|
return {
|
|
533
|
-
visual:
|
|
534
|
-
isLoading:
|
|
535
|
-
isError:
|
|
536
|
-
error:
|
|
534
|
+
visual: V.data,
|
|
535
|
+
isLoading: V.isLoading,
|
|
536
|
+
isError: V.isError,
|
|
537
|
+
error: V.error,
|
|
537
538
|
handleEditLibraryVisual: z,
|
|
538
539
|
handleAddLibraryVisual: G,
|
|
539
540
|
getUpdatedFrame: Kr().getUpdatedFrame,
|
|
540
|
-
refetch:
|
|
541
|
+
refetch: V.refetch
|
|
541
542
|
};
|
|
542
543
|
}
|
|
543
|
-
function
|
|
544
|
+
function Jt(t) {
|
|
544
545
|
return t ? new Date(t).toLocaleDateString("en-US", {
|
|
545
546
|
month: "short",
|
|
546
547
|
day: "numeric",
|
|
@@ -567,7 +568,7 @@ function Yr({ visual: t }) {
|
|
|
567
568
|
const a = t.ownership.status === "public" ? "Public" : t.ownership.status === "shared" || t.ownership.sharedCount > 0 ? "Shared" : "Private";
|
|
568
569
|
return /* @__PURE__ */ e("span", { className: "inline-flex items-center rounded-[4px] border border-border/60 px-1.5 py-px text-[11px] text-muted-foreground", children: a });
|
|
569
570
|
}
|
|
570
|
-
function
|
|
571
|
+
function cs({
|
|
571
572
|
open: t,
|
|
572
573
|
onOpenChange: a
|
|
573
574
|
}) {
|
|
@@ -583,10 +584,10 @@ function ds({
|
|
|
583
584
|
resources: A,
|
|
584
585
|
isLoading: k,
|
|
585
586
|
isError: j,
|
|
586
|
-
createResource:
|
|
587
|
+
createResource: V,
|
|
587
588
|
updateResource: z,
|
|
588
589
|
deleteResourceAsync: G,
|
|
589
|
-
duplicateResource:
|
|
590
|
+
duplicateResource: L,
|
|
590
591
|
isCreating: te,
|
|
591
592
|
isDeleting: X
|
|
592
593
|
} = ua(
|
|
@@ -647,10 +648,10 @@ function ds({
|
|
|
647
648
|
break;
|
|
648
649
|
}
|
|
649
650
|
B || F();
|
|
650
|
-
},
|
|
651
|
+
}, Ze = (v) => {
|
|
651
652
|
I(v), F();
|
|
652
653
|
}, be = (v) => {
|
|
653
|
-
M(v),
|
|
654
|
+
M(v), L(v, {
|
|
654
655
|
onSettled: () => M(null)
|
|
655
656
|
});
|
|
656
657
|
}, Ue = () => {
|
|
@@ -659,7 +660,7 @@ function ds({
|
|
|
659
660
|
return;
|
|
660
661
|
}
|
|
661
662
|
N(null), g(!0);
|
|
662
|
-
},
|
|
663
|
+
}, Je = async () => {
|
|
663
664
|
const v = x ? [x] : me;
|
|
664
665
|
try {
|
|
665
666
|
for (const B of v)
|
|
@@ -723,7 +724,7 @@ function ds({
|
|
|
723
724
|
/* @__PURE__ */ s("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
724
725
|
/* @__PURE__ */ e(qt, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
|
|
725
726
|
/* @__PURE__ */ s("div", { className: "flex min-w-0 items-baseline gap-2", children: [
|
|
726
|
-
/* @__PURE__ */ e(
|
|
727
|
+
/* @__PURE__ */ e(Ve, { className: "truncate text-[13px] font-medium leading-none tracking-normal", children: "Visuals library" }),
|
|
727
728
|
/* @__PURE__ */ e("span", { className: "shrink-0 text-[10px] font-medium uppercase leading-none tracking-[0.08em] text-muted-foreground", children: "Add to dashboard" })
|
|
728
729
|
] })
|
|
729
730
|
] }),
|
|
@@ -773,7 +774,7 @@ function ds({
|
|
|
773
774
|
/* @__PURE__ */ e("p", { className: "text-[13px] font-medium", children: n ? "No visuals found" : "No visuals yet" }),
|
|
774
775
|
/* @__PURE__ */ e("p", { className: "text-[12px] text-muted-foreground", children: n ? "Try a different search." : "Create a saved visual to add it here." })
|
|
775
776
|
] }) : /* @__PURE__ */ e(
|
|
776
|
-
|
|
777
|
+
Zr,
|
|
777
778
|
{
|
|
778
779
|
visuals: _,
|
|
779
780
|
selectedIds: r,
|
|
@@ -782,7 +783,7 @@ function ds({
|
|
|
782
783
|
onSelectAll: W,
|
|
783
784
|
onToggleSelection: $,
|
|
784
785
|
onAddVisual: re,
|
|
785
|
-
onOpenVisual:
|
|
786
|
+
onOpenVisual: Ze,
|
|
786
787
|
onEditDetails: p,
|
|
787
788
|
onShareVisual: h,
|
|
788
789
|
onDeleteVisual: (v) => {
|
|
@@ -871,7 +872,7 @@ function ds({
|
|
|
871
872
|
{
|
|
872
873
|
open: c,
|
|
873
874
|
onOpenChange: l,
|
|
874
|
-
onSubmit:
|
|
875
|
+
onSubmit: V,
|
|
875
876
|
isCreating: te
|
|
876
877
|
}
|
|
877
878
|
),
|
|
@@ -919,7 +920,7 @@ function ds({
|
|
|
919
920
|
Rt,
|
|
920
921
|
{
|
|
921
922
|
onClick: (v) => {
|
|
922
|
-
v.preventDefault(),
|
|
923
|
+
v.preventDefault(), Je();
|
|
923
924
|
},
|
|
924
925
|
disabled: X || ke === 0,
|
|
925
926
|
children: [
|
|
@@ -934,7 +935,7 @@ function ds({
|
|
|
934
935
|
)
|
|
935
936
|
] });
|
|
936
937
|
}
|
|
937
|
-
function
|
|
938
|
+
function Zr({
|
|
938
939
|
visuals: t,
|
|
939
940
|
selectedIds: a,
|
|
940
941
|
allFilteredSelected: o,
|
|
@@ -969,7 +970,7 @@ function Jr({
|
|
|
969
970
|
/* @__PURE__ */ e("span", { className: "text-right", children: "Actions" })
|
|
970
971
|
] }),
|
|
971
972
|
t.map((x) => /* @__PURE__ */ e(
|
|
972
|
-
|
|
973
|
+
Jr,
|
|
973
974
|
{
|
|
974
975
|
visual: x,
|
|
975
976
|
selected: a.has(x.id),
|
|
@@ -988,7 +989,7 @@ function Jr({
|
|
|
988
989
|
))
|
|
989
990
|
] });
|
|
990
991
|
}
|
|
991
|
-
function
|
|
992
|
+
function Jr({
|
|
992
993
|
visual: t,
|
|
993
994
|
selected: a,
|
|
994
995
|
onToggleSelection: o,
|
|
@@ -1009,7 +1010,7 @@ function Zr({
|
|
|
1009
1010
|
return /* @__PURE__ */ s(
|
|
1010
1011
|
"div",
|
|
1011
1012
|
{
|
|
1012
|
-
className:
|
|
1013
|
+
className: Z(
|
|
1013
1014
|
"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",
|
|
1014
1015
|
a && "bg-muted/70"
|
|
1015
1016
|
),
|
|
@@ -1056,7 +1057,7 @@ function Zr({
|
|
|
1056
1057
|
/* @__PURE__ */ e("div", { className: "flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-muted text-[9px] font-medium text-muted-foreground", children: Gr(t, m) }),
|
|
1057
1058
|
/* @__PURE__ */ e("span", { className: "truncate text-muted-foreground", children: St(t, m) })
|
|
1058
1059
|
] }),
|
|
1059
|
-
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children:
|
|
1060
|
+
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children: Jt(t.updatedAt) }),
|
|
1060
1061
|
/* @__PURE__ */ e(Yr, { visual: t }),
|
|
1061
1062
|
/* @__PURE__ */ e("span", { className: "text-right tabular-nums text-muted-foreground", children: t.ownership.sharedCount > 0 ? t.ownership.sharedCount : "—" }),
|
|
1062
1063
|
/* @__PURE__ */ e(
|
|
@@ -1105,7 +1106,7 @@ function en({
|
|
|
1105
1106
|
children: /* @__PURE__ */ e(et, { className: "h-3.5 w-3.5" })
|
|
1106
1107
|
}
|
|
1107
1108
|
),
|
|
1108
|
-
/* @__PURE__ */ s(
|
|
1109
|
+
/* @__PURE__ */ s(Le, { modal: !1, children: [
|
|
1109
1110
|
/* @__PURE__ */ e(Be, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1110
1111
|
T,
|
|
1111
1112
|
{
|
|
@@ -1168,7 +1169,7 @@ function en({
|
|
|
1168
1169
|
] }),
|
|
1169
1170
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-1.5", children: [
|
|
1170
1171
|
/* @__PURE__ */ e(Ca, { className: "h-3 w-3" }),
|
|
1171
|
-
/* @__PURE__ */ e("span", { children:
|
|
1172
|
+
/* @__PURE__ */ e("span", { children: Jt(t.updatedAt) })
|
|
1172
1173
|
] })
|
|
1173
1174
|
] })
|
|
1174
1175
|
]
|
|
@@ -1179,7 +1180,7 @@ function en({
|
|
|
1179
1180
|
}
|
|
1180
1181
|
);
|
|
1181
1182
|
}
|
|
1182
|
-
function
|
|
1183
|
+
function us(t, a, o = !1) {
|
|
1183
1184
|
const n = w((u) => u.dashboard), i = w(
|
|
1184
1185
|
(u) => u.isDashboardEditing
|
|
1185
1186
|
), r = w(
|
|
@@ -1263,7 +1264,7 @@ function tn({
|
|
|
1263
1264
|
};
|
|
1264
1265
|
return /* @__PURE__ */ e(Ie, { open: t, onOpenChange: a, children: /* @__PURE__ */ s(Te, { className: "sm:max-w-[500px]", children: [
|
|
1265
1266
|
/* @__PURE__ */ s(bt, { children: [
|
|
1266
|
-
/* @__PURE__ */ s(
|
|
1267
|
+
/* @__PURE__ */ s(Ve, { className: "flex items-center gap-2", children: [
|
|
1267
1268
|
/* @__PURE__ */ e("span", { children: "Save Visual As" }),
|
|
1268
1269
|
p.badgeType !== "local" && /* @__PURE__ */ e(
|
|
1269
1270
|
Fr,
|
|
@@ -1333,7 +1334,7 @@ function tt({
|
|
|
1333
1334
|
className: t,
|
|
1334
1335
|
variant: a = "outline"
|
|
1335
1336
|
}) {
|
|
1336
|
-
const o =
|
|
1337
|
+
const o = J((r) => r.onSave), { getUpdatedFrame: n } = ye();
|
|
1337
1338
|
function i() {
|
|
1338
1339
|
const r = n();
|
|
1339
1340
|
kt(r) && (o == null || o(r));
|
|
@@ -1356,7 +1357,7 @@ function an({
|
|
|
1356
1357
|
className: t,
|
|
1357
1358
|
variant: a = "default"
|
|
1358
1359
|
}) {
|
|
1359
|
-
const o = Qe(), [n, i] = D(!1), { setIsVisualEditing: r } = de(), { getUpdatedFrame: d } = ye(), c = Ke(), l =
|
|
1360
|
+
const o = Qe(), [n, i] = D(!1), { setIsVisualEditing: r } = de(), { getUpdatedFrame: d } = ye(), c = Ke(), l = J((m) => m.frame), u = _t();
|
|
1360
1361
|
return /* @__PURE__ */ e(
|
|
1361
1362
|
T,
|
|
1362
1363
|
{
|
|
@@ -1405,7 +1406,7 @@ function an({
|
|
|
1405
1406
|
function rn({
|
|
1406
1407
|
className: t
|
|
1407
1408
|
}) {
|
|
1408
|
-
const a = Qe(), [o, n] = D(!1), i = Ke(), r =
|
|
1409
|
+
const a = Qe(), [o, n] = D(!1), i = Ke(), r = J((g) => g.frame), d = w((g) => g.selectedSheetId), c = w((g) => g.dashboard), { updateFrame: l, setIsVisualEditing: u } = de(), { getUpdatedFrame: h } = ye(), m = _t(), p = xt();
|
|
1409
1410
|
return /* @__PURE__ */ e(
|
|
1410
1411
|
T,
|
|
1411
1412
|
{
|
|
@@ -1466,7 +1467,7 @@ function rn({
|
|
|
1466
1467
|
);
|
|
1467
1468
|
}
|
|
1468
1469
|
function at({ className: t }) {
|
|
1469
|
-
const { setTempQueryData: a, setSqlGen: o } = Ge(), n = Qe(), i =
|
|
1470
|
+
const { setTempQueryData: a, setSqlGen: o } = Ge(), n = Qe(), i = J((c) => c.tempQueryData), r = J((c) => c.onClose);
|
|
1470
1471
|
function d() {
|
|
1471
1472
|
if (i) {
|
|
1472
1473
|
const { queryKey: c, queryData: l } = i;
|
|
@@ -1489,7 +1490,7 @@ function at({ className: t }) {
|
|
|
1489
1490
|
);
|
|
1490
1491
|
}
|
|
1491
1492
|
function nn() {
|
|
1492
|
-
const [t, a] = D(!1), [o, n] = D(!1), [i, r] = D(null), [d, c] = D(null), l =
|
|
1493
|
+
const [t, a] = D(!1), [o, n] = D(!1), [i, r] = D(null), [d, c] = D(null), l = J((b) => b.frame), u = J((b) => b.card), h = Ke(), m = w((b) => b.selectedSheetId), p = w((b) => b.dashboard), { getUpdatedFrame: f } = ye(), { selectVisual: g } = lt(), { addFrame: x, setIsVisualEditing: N } = de(), S = xt(), M = !!(l != null && l.visualId), U = (() => {
|
|
1493
1494
|
var b, I;
|
|
1494
1495
|
return ((b = l == null ? void 0 : l.cards) == null ? void 0 : b.length) === 1 && ((I = l.cards[0]) != null && I.title) ? l.cards[0].title : h != null && h.title ? h.title : (u == null ? void 0 : u.title) || "Untitled Visual";
|
|
1495
1496
|
})(), F = Sa((b) => {
|
|
@@ -1537,12 +1538,12 @@ function nn() {
|
|
|
1537
1538
|
k = await S(A, {
|
|
1538
1539
|
previousFrame: He(p, A.id)
|
|
1539
1540
|
});
|
|
1540
|
-
} catch (
|
|
1541
|
+
} catch (V) {
|
|
1541
1542
|
console.error(
|
|
1542
1543
|
"Failed to prepare semantic metadata before saving visual:",
|
|
1543
|
-
|
|
1544
|
+
V
|
|
1544
1545
|
), E.error(
|
|
1545
|
-
|
|
1546
|
+
V instanceof Error ? V.message : "Failed to prepare semantic metadata for the saved visual"
|
|
1546
1547
|
);
|
|
1547
1548
|
return;
|
|
1548
1549
|
}
|
|
@@ -1582,8 +1583,8 @@ function nn() {
|
|
|
1582
1583
|
isSaving: F.isPending
|
|
1583
1584
|
};
|
|
1584
1585
|
}
|
|
1585
|
-
function
|
|
1586
|
-
const { isInspectionMode: a } = ka(), o =
|
|
1586
|
+
function hs(t = {}) {
|
|
1587
|
+
const { isInspectionMode: a } = ka(), o = J((V) => V.frame), n = J((V) => V.editorContext), i = Da((V) => V.selectedVisual), r = w((V) => V.selectedFrameId), d = w((V) => V.selectedSheetId), c = w((V) => V.dashboard), { setIsVisualEditing: l, updateFrame: u } = de(), [h, m] = D(!1), [p, f] = D("both"), g = xt(), x = (n == null ? void 0 : n.type) === "documentSection", N = !!(o != null && o.visualId || i != null && i.id), S = !!(o != null && o.visualId && r), M = N && !S, {
|
|
1587
1588
|
saveAsDialogOpen: U,
|
|
1588
1589
|
setSaveAsDialogOpen: F,
|
|
1589
1590
|
handleSaveAs: O,
|
|
@@ -1619,30 +1620,30 @@ function us(t = {}) {
|
|
|
1619
1620
|
visualId: void 0
|
|
1620
1621
|
}, G = He(c, z.id);
|
|
1621
1622
|
try {
|
|
1622
|
-
const
|
|
1623
|
+
const L = await g(z, {
|
|
1623
1624
|
previousFrame: G
|
|
1624
1625
|
});
|
|
1625
1626
|
u(d, z, {
|
|
1626
|
-
semanticExecutionPayload:
|
|
1627
|
+
semanticExecutionPayload: L
|
|
1627
1628
|
});
|
|
1628
|
-
} catch (
|
|
1629
|
-
console.error("Failed to apply local semantic metadata:",
|
|
1630
|
-
|
|
1629
|
+
} catch (L) {
|
|
1630
|
+
console.error("Failed to apply local semantic metadata:", L), m(!1), E.error(
|
|
1631
|
+
L instanceof Error ? L.message : "Failed to prepare semantic metadata for this visual"
|
|
1631
1632
|
);
|
|
1632
1633
|
return;
|
|
1633
1634
|
}
|
|
1634
1635
|
setTimeout(() => {
|
|
1635
1636
|
m(!1), E.success("Changes applied. Visual is now local to this dashboard"), l(!1);
|
|
1636
1637
|
}, 300);
|
|
1637
|
-
}, j = (
|
|
1638
|
-
f(
|
|
1638
|
+
}, j = (V) => {
|
|
1639
|
+
f(V), F(!0);
|
|
1639
1640
|
};
|
|
1640
1641
|
return /* @__PURE__ */ s(R, { children: [
|
|
1641
1642
|
/* @__PURE__ */ s("div", { className: "inline-flex items-center overflow-hidden rounded-control", children: [
|
|
1642
1643
|
!N && /* @__PURE__ */ e(tt, { className: "!rounded-none", variant: "default" }),
|
|
1643
1644
|
N && M && /* @__PURE__ */ e(an, { className: "!rounded-none", variant: "default" }),
|
|
1644
1645
|
N && S && /* @__PURE__ */ e(rn, { className: "!rounded-none" }),
|
|
1645
|
-
/* @__PURE__ */ s(
|
|
1646
|
+
/* @__PURE__ */ s(Le, { modal: !1, children: [
|
|
1646
1647
|
/* @__PURE__ */ e(Be, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1647
1648
|
T,
|
|
1648
1649
|
{
|
|
@@ -1717,8 +1718,8 @@ function us(t = {}) {
|
|
|
1717
1718
|
tn,
|
|
1718
1719
|
{
|
|
1719
1720
|
open: U,
|
|
1720
|
-
onOpenChange: (
|
|
1721
|
-
C || F(
|
|
1721
|
+
onOpenChange: (V) => {
|
|
1722
|
+
C || F(V);
|
|
1722
1723
|
},
|
|
1723
1724
|
isLibraryVisual: b,
|
|
1724
1725
|
currentVisualName: I,
|
|
@@ -1729,8 +1730,8 @@ function us(t = {}) {
|
|
|
1729
1730
|
)
|
|
1730
1731
|
] });
|
|
1731
1732
|
}
|
|
1732
|
-
function
|
|
1733
|
-
const a =
|
|
1733
|
+
function ms({ className: t }) {
|
|
1734
|
+
const a = J((h) => h.isDevMode), o = J((h) => h.card.type), n = w((h) => h.isVisualEditing), { setIsDevMode: i } = Ge(), { config: r } = Ut(Aa).tokenProps, d = (r == null ? void 0 : r.showAdvancedMode) !== !1;
|
|
1734
1735
|
if (!n || !d || !yr(o))
|
|
1735
1736
|
return null;
|
|
1736
1737
|
const c = a ? _r : zr, l = a ? "Visual editor" : "SQL editor", u = a ? "Switch to visual editor" : "Switch to SQL editor";
|
|
@@ -1741,7 +1742,7 @@ function hs({ className: t }) {
|
|
|
1741
1742
|
"aria-label": u,
|
|
1742
1743
|
title: u,
|
|
1743
1744
|
onClick: () => i(!a),
|
|
1744
|
-
className:
|
|
1745
|
+
className: Z(
|
|
1745
1746
|
"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",
|
|
1746
1747
|
t
|
|
1747
1748
|
),
|
|
@@ -1752,8 +1753,8 @@ function hs({ className: t }) {
|
|
|
1752
1753
|
}
|
|
1753
1754
|
);
|
|
1754
1755
|
}
|
|
1755
|
-
function
|
|
1756
|
-
const t =
|
|
1756
|
+
function ps() {
|
|
1757
|
+
const t = Lr() === "sm", a = w((l) => l.isDashboardEditing), o = w((l) => l.isVisualEditing), n = w((l) => {
|
|
1757
1758
|
var h;
|
|
1758
1759
|
const u = ((h = l.dashboard) == null ? void 0 : h.sheets) ?? [];
|
|
1759
1760
|
return u.find((m) => m.id === l.selectedSheetId) ?? u[0];
|
|
@@ -1795,7 +1796,7 @@ function ms() {
|
|
|
1795
1796
|
]
|
|
1796
1797
|
}
|
|
1797
1798
|
),
|
|
1798
|
-
/* @__PURE__ */ s(
|
|
1799
|
+
/* @__PURE__ */ s(Le, { modal: !1, children: [
|
|
1799
1800
|
/* @__PURE__ */ e(Be, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1800
1801
|
T,
|
|
1801
1802
|
{
|
|
@@ -1814,7 +1815,7 @@ function ms() {
|
|
|
1814
1815
|
] })
|
|
1815
1816
|
] });
|
|
1816
1817
|
}
|
|
1817
|
-
function
|
|
1818
|
+
function fs() {
|
|
1818
1819
|
const t = w((i) => i.screenSizesOpen), a = w((i) => {
|
|
1819
1820
|
var c, l;
|
|
1820
1821
|
const r = ((c = i.dashboard) == null ? void 0 : c.sheets) ?? [], d = r.find((u) => u.id === i.selectedSheetId) ?? r[0];
|
|
@@ -1824,7 +1825,7 @@ function ps() {
|
|
|
1824
1825
|
"lg",
|
|
1825
1826
|
a ? {
|
|
1826
1827
|
label: "Screen sizes",
|
|
1827
|
-
icon: /* @__PURE__ */ e(
|
|
1828
|
+
icon: /* @__PURE__ */ e(Lt, { className: "h-3.5 w-3.5", "aria-hidden": !0 }),
|
|
1828
1829
|
checked: t,
|
|
1829
1830
|
order: 40,
|
|
1830
1831
|
onSelect: () => o(!t)
|
|
@@ -1841,11 +1842,11 @@ function ps() {
|
|
|
1841
1842
|
title: "Screen sizes",
|
|
1842
1843
|
onClick: () => o(!t),
|
|
1843
1844
|
className: "w-7 px-0",
|
|
1844
|
-
children: /* @__PURE__ */ e(
|
|
1845
|
+
children: /* @__PURE__ */ e(Lt, { className: "h-3.5 w-3.5", "aria-hidden": !0 })
|
|
1845
1846
|
}
|
|
1846
1847
|
);
|
|
1847
1848
|
}
|
|
1848
|
-
function
|
|
1849
|
+
function gs({ dashboardId: t }) {
|
|
1849
1850
|
const { openDashboardId: a, access: o, printMode: n, serverIsFavorite: i, fetchedAt: r } = w(
|
|
1850
1851
|
Fa((l) => {
|
|
1851
1852
|
var u;
|
|
@@ -1869,7 +1870,7 @@ function fs({ dashboardId: t }) {
|
|
|
1869
1870
|
}
|
|
1870
1871
|
);
|
|
1871
1872
|
}
|
|
1872
|
-
function
|
|
1873
|
+
function bs({
|
|
1873
1874
|
width: t,
|
|
1874
1875
|
hasOverflowMenu: a = !0,
|
|
1875
1876
|
children: o
|
|
@@ -1895,13 +1896,13 @@ function gs({
|
|
|
1895
1896
|
);
|
|
1896
1897
|
return /* @__PURE__ */ e(Yt.Provider, { value: h, children: o });
|
|
1897
1898
|
}
|
|
1898
|
-
function
|
|
1899
|
+
function vs() {
|
|
1899
1900
|
const { setAnchorSlot: t } = Ut(Yt);
|
|
1900
1901
|
return /* @__PURE__ */ e("span", { ref: t, "aria-hidden": !0, className: "relative -mr-1.5 block h-7 w-0" });
|
|
1901
1902
|
}
|
|
1902
|
-
function
|
|
1903
|
+
function xs(t) {
|
|
1903
1904
|
var l;
|
|
1904
|
-
const { authToken: a, tokenProps: o } = it(), { data: n } = Ta(), { mutate: i, isPending: r } =
|
|
1905
|
+
const { authToken: a, tokenProps: o } = it(), { data: n } = Ta(), { mutate: i, isPending: r } = Va(), d = !!t && ((l = n == null ? void 0 : n.preference) == null ? void 0 : l.defaultDashboardId) === t, c = !n || r;
|
|
1905
1906
|
return {
|
|
1906
1907
|
available: !!t && !!(a != null && a.accessToken) && !!(o != null && o.apiServiceUrl),
|
|
1907
1908
|
isDefault: d,
|
|
@@ -1911,7 +1912,7 @@ function vs(t) {
|
|
|
1911
1912
|
}
|
|
1912
1913
|
};
|
|
1913
1914
|
}
|
|
1914
|
-
function
|
|
1915
|
+
function ys({
|
|
1915
1916
|
open: t,
|
|
1916
1917
|
onOpenChange: a,
|
|
1917
1918
|
onSave: o,
|
|
@@ -1951,7 +1952,7 @@ function xs({
|
|
|
1951
1952
|
] })
|
|
1952
1953
|
] }) });
|
|
1953
1954
|
}
|
|
1954
|
-
async function
|
|
1955
|
+
async function Cs(t) {
|
|
1955
1956
|
var r, d;
|
|
1956
1957
|
const a = (d = (r = w.getState()) == null ? void 0 : r.authToken) == null ? void 0 : d.accessToken;
|
|
1957
1958
|
if (!a)
|
|
@@ -1994,7 +1995,7 @@ function sn(t) {
|
|
|
1994
1995
|
};
|
|
1995
1996
|
}
|
|
1996
1997
|
function on({ row: t, now: a, api: o }) {
|
|
1997
|
-
const [n, i] = D("idle"), r = sn(t), d =
|
|
1998
|
+
const [n, i] = D("idle"), r = sn(t), d = La(t, o), c = async () => {
|
|
1998
1999
|
if (!d) return;
|
|
1999
2000
|
i("working");
|
|
2000
2001
|
const g = await za(o, t, d);
|
|
@@ -2054,10 +2055,10 @@ function on({ row: t, now: a, api: o }) {
|
|
|
2054
2055
|
] })
|
|
2055
2056
|
] });
|
|
2056
2057
|
}
|
|
2057
|
-
function
|
|
2058
|
+
function ws({ variant: t }) {
|
|
2058
2059
|
const { snapshot: a, markSeen: o } = yt(), n = a.runningCount > 0 ? a.runningCount > 9 ? "9+" : String(a.runningCount) : a.hasUnseenFinished ? "" : null, i = Xt("activity", "md", {
|
|
2059
2060
|
label: le.title,
|
|
2060
|
-
icon: /* @__PURE__ */ e(
|
|
2061
|
+
icon: /* @__PURE__ */ e(Vt, { className: "h-3.5 w-3.5" }),
|
|
2061
2062
|
hint: n || (n === "" ? "New" : void 0),
|
|
2062
2063
|
order: 30,
|
|
2063
2064
|
onOpen: o
|
|
@@ -2098,7 +2099,7 @@ function Cs({ variant: t }) {
|
|
|
2098
2099
|
"aria-label": le.title,
|
|
2099
2100
|
title: le.title,
|
|
2100
2101
|
children: [
|
|
2101
|
-
/* @__PURE__ */ e(
|
|
2102
|
+
/* @__PURE__ */ e(Vt, { className: "h-3.5 w-3.5" }),
|
|
2102
2103
|
n !== null && /* @__PURE__ */ e(
|
|
2103
2104
|
"span",
|
|
2104
2105
|
{
|
|
@@ -2282,7 +2283,7 @@ function dn({
|
|
|
2282
2283
|
{
|
|
2283
2284
|
className: l ? "space-y-0" : void 0,
|
|
2284
2285
|
children: [
|
|
2285
|
-
/* @__PURE__ */ e(
|
|
2286
|
+
/* @__PURE__ */ e(Ve, { className: "text-[15px]", children: b }),
|
|
2286
2287
|
/* @__PURE__ */ e(
|
|
2287
2288
|
vt,
|
|
2288
2289
|
{
|
|
@@ -2378,7 +2379,7 @@ function un({
|
|
|
2378
2379
|
onPointerDownOutside: c,
|
|
2379
2380
|
children: [
|
|
2380
2381
|
/* @__PURE__ */ s(bt, { className: d ? "space-y-0" : void 0, children: [
|
|
2381
|
-
/* @__PURE__ */ e(
|
|
2382
|
+
/* @__PURE__ */ e(Ve, { className: "text-[15px]", children: d ? "Add document control" : "Document Controls" }),
|
|
2382
2383
|
/* @__PURE__ */ e(
|
|
2383
2384
|
vt,
|
|
2384
2385
|
{
|
|
@@ -2494,7 +2495,7 @@ function gn({
|
|
|
2494
2495
|
return /* @__PURE__ */ s(
|
|
2495
2496
|
"div",
|
|
2496
2497
|
{
|
|
2497
|
-
className:
|
|
2498
|
+
className: Z(
|
|
2498
2499
|
// Height lives on the shell so the outer border is part of the
|
|
2499
2500
|
// h-7 box (matches regular `size="xs"` buttons). Inner triggers
|
|
2500
2501
|
// stretch to fill via `h-full`.
|
|
@@ -2509,7 +2510,7 @@ function gn({
|
|
|
2509
2510
|
{
|
|
2510
2511
|
variant: "ghost",
|
|
2511
2512
|
size: "xs",
|
|
2512
|
-
className:
|
|
2513
|
+
className: Z(
|
|
2513
2514
|
"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",
|
|
2514
2515
|
d
|
|
2515
2516
|
),
|
|
@@ -2524,7 +2525,7 @@ function gn({
|
|
|
2524
2525
|
{
|
|
2525
2526
|
align: "end",
|
|
2526
2527
|
sideOffset: 6,
|
|
2527
|
-
className:
|
|
2528
|
+
className: Z(
|
|
2528
2529
|
"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)]",
|
|
2529
2530
|
l
|
|
2530
2531
|
),
|
|
@@ -2539,7 +2540,7 @@ function gn({
|
|
|
2539
2540
|
{
|
|
2540
2541
|
variant: "ghost",
|
|
2541
2542
|
size: "xs",
|
|
2542
|
-
className:
|
|
2543
|
+
className: Z(
|
|
2543
2544
|
"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",
|
|
2544
2545
|
c
|
|
2545
2546
|
),
|
|
@@ -2552,7 +2553,7 @@ function gn({
|
|
|
2552
2553
|
{
|
|
2553
2554
|
align: "end",
|
|
2554
2555
|
sideOffset: 6,
|
|
2555
|
-
className:
|
|
2556
|
+
className: Z(
|
|
2556
2557
|
"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)]",
|
|
2557
2558
|
u
|
|
2558
2559
|
),
|
|
@@ -2566,8 +2567,8 @@ function gn({
|
|
|
2566
2567
|
);
|
|
2567
2568
|
}
|
|
2568
2569
|
function bn() {
|
|
2569
|
-
|
|
2570
|
-
const t = w((l) => l.selectedSheetId), a = w((l) => l.selectedFrameId), o = w((l) => l.dashboard), n = w((l) => l.actions.getSelectedFrame), { setSelectedFrameId: i } = de(), { setCard: r } = Ge(), d =
|
|
2570
|
+
Vr();
|
|
2571
|
+
const t = w((l) => l.selectedSheetId), a = w((l) => l.selectedFrameId), o = w((l) => l.dashboard), n = w((l) => l.actions.getSelectedFrame), { setSelectedFrameId: i } = de(), { setCard: r } = Ge(), d = J((l) => l.card.dataSource);
|
|
2571
2572
|
return ve(() => {
|
|
2572
2573
|
var u, h;
|
|
2573
2574
|
let l = n();
|
|
@@ -2713,7 +2714,7 @@ function yn({
|
|
|
2713
2714
|
)
|
|
2714
2715
|
] });
|
|
2715
2716
|
}
|
|
2716
|
-
function
|
|
2717
|
+
function Ns({
|
|
2717
2718
|
size: t,
|
|
2718
2719
|
className: a,
|
|
2719
2720
|
primaryButtonClassName: o,
|
|
@@ -2812,7 +2813,7 @@ function Cn({
|
|
|
2812
2813
|
size: "xs",
|
|
2813
2814
|
variant: "outline",
|
|
2814
2815
|
disabled: t,
|
|
2815
|
-
className:
|
|
2816
|
+
className: Z("gap-1.5", o),
|
|
2816
2817
|
onClick: n,
|
|
2817
2818
|
"aria-label": "Reports & briefings",
|
|
2818
2819
|
children: [
|
|
@@ -2879,7 +2880,7 @@ function Fn({
|
|
|
2879
2880
|
role: "tab",
|
|
2880
2881
|
"aria-selected": n,
|
|
2881
2882
|
onClick: () => a(o),
|
|
2882
|
-
className:
|
|
2883
|
+
className: Z(
|
|
2883
2884
|
"h-6 rounded-[3px] px-2 text-[11px] transition-colors",
|
|
2884
2885
|
n ? "bg-background font-medium text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
2885
2886
|
),
|
|
@@ -2974,7 +2975,7 @@ function En({
|
|
|
2974
2975
|
// case without crowding the toolbar.
|
|
2975
2976
|
/* @__PURE__ */ e(ae, { className: "h-3.5 w-3.5 animate-spin text-muted-foreground" })
|
|
2976
2977
|
) : null,
|
|
2977
|
-
F > 0 && u ? m && h ? /* @__PURE__ */ s(
|
|
2978
|
+
F > 0 && u ? m && h ? /* @__PURE__ */ s(Le, { children: [
|
|
2978
2979
|
/* @__PURE__ */ e(Be, { asChild: !0, children: /* @__PURE__ */ s("button", { className: je, children: [
|
|
2979
2980
|
/* @__PURE__ */ e(xe, { className: "h-3 w-3" }),
|
|
2980
2981
|
" New"
|
|
@@ -3031,7 +3032,7 @@ function En({
|
|
|
3031
3032
|
}
|
|
3032
3033
|
) : null,
|
|
3033
3034
|
t.map((k) => /* @__PURE__ */ e(
|
|
3034
|
-
|
|
3035
|
+
Vn,
|
|
3035
3036
|
{
|
|
3036
3037
|
briefing: k,
|
|
3037
3038
|
isOpening: x === k.id,
|
|
@@ -3048,7 +3049,7 @@ function En({
|
|
|
3048
3049
|
"a",
|
|
3049
3050
|
{
|
|
3050
3051
|
href: S,
|
|
3051
|
-
className:
|
|
3052
|
+
className: Z(ta, "h-6 px-1 text-[11px]"),
|
|
3052
3053
|
children: [
|
|
3053
3054
|
"Manage all reports & briefings",
|
|
3054
3055
|
/* @__PURE__ */ e(Or, { className: "h-3 w-3" })
|
|
@@ -3277,7 +3278,7 @@ function Tn({ className: t }) {
|
|
|
3277
3278
|
}
|
|
3278
3279
|
);
|
|
3279
3280
|
}
|
|
3280
|
-
function
|
|
3281
|
+
function Vn({
|
|
3281
3282
|
briefing: t,
|
|
3282
3283
|
isOpening: a,
|
|
3283
3284
|
isBusy: o,
|
|
@@ -3290,7 +3291,7 @@ function Ln({
|
|
|
3290
3291
|
return /* @__PURE__ */ s(
|
|
3291
3292
|
"div",
|
|
3292
3293
|
{
|
|
3293
|
-
className:
|
|
3294
|
+
className: Z(
|
|
3294
3295
|
"group relative border-b border-border/60 px-4 py-3 transition-colors hover:bg-muted/60",
|
|
3295
3296
|
c && "opacity-70"
|
|
3296
3297
|
),
|
|
@@ -3329,7 +3330,7 @@ function Ln({
|
|
|
3329
3330
|
l ? /* @__PURE__ */ e(ae, { className: "h-3 w-3 shrink-0 animate-spin text-muted-foreground/70" }) : /* @__PURE__ */ e(
|
|
3330
3331
|
"span",
|
|
3331
3332
|
{
|
|
3332
|
-
className:
|
|
3333
|
+
className: Z(
|
|
3333
3334
|
"inline-block h-1.5 w-1.5 shrink-0 rounded-full",
|
|
3334
3335
|
f
|
|
3335
3336
|
)
|
|
@@ -3340,7 +3341,7 @@ function Ln({
|
|
|
3340
3341
|
]
|
|
3341
3342
|
}
|
|
3342
3343
|
),
|
|
3343
|
-
/* @__PURE__ */ e("div", { className: "absolute right-3 top-3", children: o ? /* @__PURE__ */ e(ae, { className: "h-3.5 w-3.5 animate-spin text-muted-foreground/70" }) : a ? /* @__PURE__ */ e(ae, { className: "h-3.5 w-3.5 animate-spin text-muted-foreground/70" }) : /* @__PURE__ */ s(
|
|
3344
|
+
/* @__PURE__ */ e("div", { className: "absolute right-3 top-3", children: o ? /* @__PURE__ */ e(ae, { className: "h-3.5 w-3.5 animate-spin text-muted-foreground/70" }) : a ? /* @__PURE__ */ e(ae, { className: "h-3.5 w-3.5 animate-spin text-muted-foreground/70" }) : /* @__PURE__ */ s(Le, { children: [
|
|
3344
3345
|
/* @__PURE__ */ e(Be, { asChild: !0, children: /* @__PURE__ */ e(
|
|
3345
3346
|
"button",
|
|
3346
3347
|
{
|
|
@@ -3364,7 +3365,7 @@ function Ln({
|
|
|
3364
3365
|
g.preventDefault(), i();
|
|
3365
3366
|
},
|
|
3366
3367
|
children: [
|
|
3367
|
-
/* @__PURE__ */ e(
|
|
3368
|
+
/* @__PURE__ */ e(Za, { className: "h-3.5 w-3.5" }),
|
|
3368
3369
|
"Run now"
|
|
3369
3370
|
]
|
|
3370
3371
|
}
|
|
@@ -3376,7 +3377,7 @@ function Ln({
|
|
|
3376
3377
|
g.preventDefault(), r();
|
|
3377
3378
|
},
|
|
3378
3379
|
children: c ? /* @__PURE__ */ s(R, { children: [
|
|
3379
|
-
/* @__PURE__ */ e(
|
|
3380
|
+
/* @__PURE__ */ e(Ja, { className: "h-3.5 w-3.5" }),
|
|
3380
3381
|
"Resume"
|
|
3381
3382
|
] }) : /* @__PURE__ */ s(R, { children: [
|
|
3382
3383
|
/* @__PURE__ */ e(er, { className: "h-3.5 w-3.5" }),
|
|
@@ -3405,7 +3406,7 @@ function Ln({
|
|
|
3405
3406
|
}
|
|
3406
3407
|
);
|
|
3407
3408
|
}
|
|
3408
|
-
function
|
|
3409
|
+
function Ln(t) {
|
|
3409
3410
|
return (t == null ? void 0 : t.trim()) || "This dashboard";
|
|
3410
3411
|
}
|
|
3411
3412
|
function Bn(t) {
|
|
@@ -3438,7 +3439,7 @@ const Un = {
|
|
|
3438
3439
|
deleteBriefing: sr,
|
|
3439
3440
|
runBriefingNow: nr
|
|
3440
3441
|
};
|
|
3441
|
-
function
|
|
3442
|
+
function Ss(t) {
|
|
3442
3443
|
return /* @__PURE__ */ e(tr, { authToken: t.token ? { accessToken: t.token } : void 0, children: /* @__PURE__ */ e(ar, { children: /* @__PURE__ */ e(On, { ...t }) }) });
|
|
3443
3444
|
}
|
|
3444
3445
|
function On({
|
|
@@ -3462,28 +3463,28 @@ function On({
|
|
|
3462
3463
|
h ? "author" : "list"
|
|
3463
3464
|
), [I, C] = D(
|
|
3464
3465
|
h ?? "analytical_briefing"
|
|
3465
|
-
), [A, k] = D("dashboard"), [j,
|
|
3466
|
+
), [A, k] = D("dashboard"), [j, V] = D(
|
|
3466
3467
|
[]
|
|
3467
|
-
), [z, G] = D(null),
|
|
3468
|
+
), [z, G] = D(null), L = h && !N && !z ? "list" : O, [te, X] = D(!1), [H, he] = D(null), [ge, Q] = D(null), [_, se] = D(
|
|
3468
3469
|
null
|
|
3469
3470
|
), [me, pe] = D(null), Ce = nt(null), Me = nt(U);
|
|
3470
3471
|
ve(() => {
|
|
3471
3472
|
const y = U && !Me.current;
|
|
3472
3473
|
Me.current = U, !(!y || !h) && (G(null), k("dashboard"), C(h), b("author"), pe(null));
|
|
3473
3474
|
}, [U, h]);
|
|
3474
|
-
const Ye = yt(), $ = o ?? (g == null ? void 0 : g.apiServiceUrl), W = n ?? (f == null ? void 0 : f.accessToken), re = ee(() => ({ ...Un, ...p }), [p]), [we,
|
|
3475
|
+
const Ye = yt(), $ = o ?? (g == null ? void 0 : g.apiServiceUrl), W = n ?? (f == null ? void 0 : f.accessToken), re = ee(() => ({ ...Un, ...p }), [p]), [we, Ze] = D(null);
|
|
3475
3476
|
ve(() => {
|
|
3476
3477
|
if (!m || !$ || !W) return;
|
|
3477
3478
|
let y = !0;
|
|
3478
3479
|
return re.getBriefing($, W, m.briefingId).then(({ briefing: P }) => {
|
|
3479
|
-
y && (G(P),
|
|
3480
|
+
y && (G(P), Ze(m), b("author"));
|
|
3480
3481
|
}, (P) => {
|
|
3481
3482
|
y && E.error(P instanceof Error ? P.message : "Could not open the run.");
|
|
3482
3483
|
}), () => {
|
|
3483
3484
|
y = !1;
|
|
3484
3485
|
};
|
|
3485
3486
|
}, [m, $, W, re]);
|
|
3486
|
-
const be =
|
|
3487
|
+
const be = Ln(a), Ue = ee(() => {
|
|
3487
3488
|
const y = Pn(
|
|
3488
3489
|
j,
|
|
3489
3490
|
A,
|
|
@@ -3495,7 +3496,7 @@ function On({
|
|
|
3495
3496
|
return y.filter(
|
|
3496
3497
|
(Oe) => ie(Oe).noun === P
|
|
3497
3498
|
);
|
|
3498
|
-
}, [t, j, A, h]),
|
|
3499
|
+
}, [t, j, A, h]), Je = ee(() => A === "dashboard" ? {
|
|
3499
3500
|
source: { type: "dashboard", dashboardId: t },
|
|
3500
3501
|
label: be,
|
|
3501
3502
|
detail: Bn(be)
|
|
@@ -3511,7 +3512,7 @@ function On({
|
|
|
3511
3512
|
if (!(!$ || !W)) {
|
|
3512
3513
|
X(!0), pe(null);
|
|
3513
3514
|
try {
|
|
3514
|
-
|
|
3515
|
+
V(
|
|
3515
3516
|
await Mn({
|
|
3516
3517
|
apiClient: re,
|
|
3517
3518
|
apiServiceUrl: $,
|
|
@@ -3528,8 +3529,8 @@ function On({
|
|
|
3528
3529
|
}
|
|
3529
3530
|
}, [re, $, W]);
|
|
3530
3531
|
ve(() => {
|
|
3531
|
-
!U ||
|
|
3532
|
-
}, [Ne,
|
|
3532
|
+
!U || L !== "list" || !Ne || ne();
|
|
3533
|
+
}, [Ne, L, ne, U]);
|
|
3533
3534
|
const ke = () => {
|
|
3534
3535
|
G(null), k("dashboard"), b("list"), F(!0);
|
|
3535
3536
|
}, v = (y) => {
|
|
@@ -3654,11 +3655,11 @@ function On({
|
|
|
3654
3655
|
{
|
|
3655
3656
|
type: "button",
|
|
3656
3657
|
role: "tab",
|
|
3657
|
-
"aria-selected":
|
|
3658
|
+
"aria-selected": L === "author",
|
|
3658
3659
|
disabled: !N,
|
|
3659
|
-
className:
|
|
3660
|
+
className: Z(
|
|
3660
3661
|
"-mb-px border-b-2 px-0.5 pb-2 text-[12px] transition-colors",
|
|
3661
|
-
|
|
3662
|
+
L === "author" ? "border-foreground font-medium text-foreground" : "border-transparent text-muted-foreground hover:text-foreground",
|
|
3662
3663
|
!N && "cursor-not-allowed opacity-50"
|
|
3663
3664
|
),
|
|
3664
3665
|
onClick: () => {
|
|
@@ -3672,10 +3673,10 @@ function On({
|
|
|
3672
3673
|
{
|
|
3673
3674
|
type: "button",
|
|
3674
3675
|
role: "tab",
|
|
3675
|
-
"aria-selected":
|
|
3676
|
-
className:
|
|
3676
|
+
"aria-selected": L === "list",
|
|
3677
|
+
className: Z(
|
|
3677
3678
|
"-mb-px border-b-2 px-0.5 pb-2 text-[12px] transition-colors",
|
|
3678
|
-
|
|
3679
|
+
L === "list" ? "border-foreground font-medium text-foreground" : "border-transparent text-muted-foreground hover:text-foreground"
|
|
3679
3680
|
),
|
|
3680
3681
|
onClick: () => b("list"),
|
|
3681
3682
|
children: h === "scheduled_report" ? "Manage reports" : "Manage briefings"
|
|
@@ -3695,7 +3696,7 @@ function On({
|
|
|
3695
3696
|
}
|
|
3696
3697
|
)
|
|
3697
3698
|
] }) : null,
|
|
3698
|
-
|
|
3699
|
+
L === "list" ? /* @__PURE__ */ e(
|
|
3699
3700
|
En,
|
|
3700
3701
|
{
|
|
3701
3702
|
briefings: Ue,
|
|
@@ -3737,7 +3738,7 @@ function On({
|
|
|
3737
3738
|
briefing: z,
|
|
3738
3739
|
initialRunId: we && (z == null ? void 0 : z.id) === we.briefingId ? we.runId : void 0,
|
|
3739
3740
|
intent: I,
|
|
3740
|
-
sourceContext: z ? void 0 :
|
|
3741
|
+
sourceContext: z ? void 0 : Je,
|
|
3741
3742
|
title: z ? `Edit ${ie(z).noun}` : I === "scheduled_report" ? "Schedule report" : "Create analytical briefing",
|
|
3742
3743
|
hideHeader: !!h,
|
|
3743
3744
|
className: "h-full min-h-0 max-w-none border-0 shadow-none",
|
|
@@ -3805,23 +3806,23 @@ function Rn() {
|
|
|
3805
3806
|
return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : `briefing-run-now-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
|
|
3806
3807
|
}
|
|
3807
3808
|
export {
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3809
|
+
ms as A,
|
|
3810
|
+
gs as D,
|
|
3811
|
+
fs as S,
|
|
3812
|
+
vs as T,
|
|
3813
|
+
ys as U,
|
|
3814
|
+
cs as V,
|
|
3814
3815
|
Cn as W,
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3816
|
+
hs as a,
|
|
3817
|
+
ps as b,
|
|
3818
|
+
bs as c,
|
|
3819
|
+
xs as d,
|
|
3820
|
+
ws as e,
|
|
3820
3821
|
dn as f,
|
|
3821
3822
|
un as g,
|
|
3822
3823
|
gn as h,
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3824
|
+
Cs as i,
|
|
3825
|
+
Ns as j,
|
|
3826
|
+
Ss as k,
|
|
3827
|
+
us as u
|
|
3827
3828
|
};
|