react-semaphor 0.1.381 → 0.1.383
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/DATA_APP_SDK.md +238 -0
- package/README.md +7 -0
- package/dist/analytics-protocol/index.cjs +1 -1
- package/dist/analytics-protocol/index.js +45 -41
- package/dist/brand-studio/index.cjs +4 -4
- package/dist/brand-studio/index.js +28 -28
- package/dist/chunks/analyze-result-contract-CtXfp3nv.js +1 -0
- package/dist/chunks/analyze-result-contract-DuhlklhI.js +102 -0
- package/dist/chunks/{braces-DOxxfERN.js → braces--20GzUQh.js} +1 -1
- package/dist/chunks/{braces-BT-ZyB-g.js → braces-C0Vh_Mft.js} +1 -1
- package/dist/chunks/{calendar-preferences-dialog-Dsgs8WDv.js → calendar-preferences-dialog-B-VsxhsA.js} +4 -4
- package/dist/chunks/calendar-preferences-dialog-DE67Z3oQ.js +1 -0
- package/dist/chunks/catalog-field-grounding-Bnx-3tE0.js +1 -0
- package/dist/chunks/catalog-field-grounding-CJKAqtiC.js +100 -0
- package/dist/chunks/{dashboard-briefing-launcher-Coks66cV.js → dashboard-briefing-launcher-BIj3X7b3.js} +108 -107
- package/dist/chunks/dashboard-briefing-launcher-Czx6BcXW.js +80 -0
- package/dist/chunks/dashboard-controls-BP-DcPFs.js +52 -0
- package/dist/chunks/{dashboard-controls-BfkcnIdy.js → dashboard-controls-BXxucM4f.js} +115 -114
- package/dist/chunks/dashboard-json-BNwshkK2.js +1 -0
- package/dist/chunks/{dashboard-json-DjXi4cI6.js → dashboard-json-C6oZuipD.js} +9 -9
- package/dist/chunks/edit-dashboard-visual-BAprin3J.js +178 -0
- package/dist/chunks/{edit-dashboard-visual-DOW1Ap1N.js → edit-dashboard-visual-CmfrI_L3.js} +1278 -1277
- package/dist/chunks/{index-CkoRCh3g.js → index-4W_ElSBJ.js} +219 -239
- package/dist/chunks/{index-DlprYjr6.js → index-icb12JV1.js} +900 -952
- package/dist/chunks/{layout-grid-DccceHv4.js → layout-grid-B7-klXiK.js} +1 -1
- package/dist/chunks/{layout-grid-DTbOIOsE.js → layout-grid-DV89AC9_.js} +1 -1
- package/dist/chunks/operators-C8TxpM4C.js +48 -0
- package/dist/chunks/operators-DrTQsJXv.js +1 -0
- package/dist/chunks/{palette-DCzLwqIw.js → palette-5IwhMbSF.js} +1 -1
- package/dist/chunks/{palette-SimHJELn.js → palette-Dj-dgPYh.js} +1 -1
- package/dist/chunks/{save-zNVYH02T.js → save-16C6YSW2.js} +1 -1
- package/dist/chunks/{save-D2O96E5A.js → save-C5fwVdTF.js} +1 -1
- package/dist/chunks/search-0LmWwZzW.js +57 -0
- package/dist/chunks/search-Dq1Mbb03.js +21 -0
- package/dist/chunks/{source-identity-Dj3dryN9.js → source-identity-CN4xiyKJ.js} +5 -5
- package/dist/chunks/{switch-DMPsMpHW.js → switch-DUdaHFZQ.js} +2328 -2414
- package/dist/chunks/{switch-Jhyl63RF.js → switch-bdJp0Bkw.js} +29 -54
- package/dist/chunks/use-create-flow-overlay-state-BIHKf_XK.js +21 -0
- package/dist/chunks/{use-create-flow-overlay-state-r5JKyXU8.js → use-create-flow-overlay-state-YvqCp6Zo.js} +75 -75
- package/dist/chunks/{validators-CtNmgsvG.js → validators-CHPH6ORs.js} +641 -498
- package/dist/chunks/validators-lWo8m0Q7.js +1 -0
- package/dist/chunks/x-B_cx7LwM.js +26 -0
- package/dist/chunks/x-IdR_js6f.js +139 -0
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.cjs +3 -3
- package/dist/dashboard-authoring/index.js +105 -92
- package/dist/data-app-builder/index.cjs +23 -23
- package/dist/data-app-builder/index.js +17 -15
- package/dist/data-app-sdk/index.cjs +68 -1
- package/dist/data-app-sdk/index.js +2731 -384
- package/dist/data-app-sdk-adapters/index.cjs +1 -0
- package/dist/data-app-sdk-adapters/index.js +383 -0
- package/dist/data-app-sdk-validation/index.cjs +1 -1
- package/dist/data-app-sdk-validation/index.js +1073 -6
- package/dist/index.cjs +1 -1
- package/dist/index.js +15 -15
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/analytics-protocol.d.ts +58 -31
- package/dist/types/dashboard-assistant.d.ts +40 -15
- package/dist/types/dashboard-authoring.d.ts +36 -16
- package/dist/types/dashboard.d.ts +8 -8
- package/dist/types/data-app-builder.d.ts +35 -11
- package/dist/types/data-app-sdk-adapters.d.ts +733 -0
- package/dist/types/data-app-sdk-validation.d.ts +85 -25
- package/dist/types/data-app-sdk.d.ts +217 -147
- package/dist/types/main.d.ts +35 -11
- package/dist/types/shared.d.ts +8 -8
- package/dist/types/surfboard.d.ts +8 -8
- package/dist/types/types.d.ts +8 -8
- package/package.json +9 -2
- package/src/data-app-sdk/README.md +240 -0
- package/dist/chunks/calendar-preferences-dialog-iZs8XqyH.js +0 -1
- package/dist/chunks/catalog-field-grounding-8L9I0zdg.js +0 -1
- package/dist/chunks/catalog-field-grounding-BK4BX8sZ.js +0 -200
- package/dist/chunks/dashboard-briefing-launcher-B5vPTl8P.js +0 -80
- package/dist/chunks/dashboard-controls-Dyqye6fh.js +0 -52
- package/dist/chunks/dashboard-json-CV_LnO9x.js +0 -1
- package/dist/chunks/edit-dashboard-visual-yinO0yU-.js +0 -178
- package/dist/chunks/index-BxM99sFL.js +0 -1
- package/dist/chunks/index-CuHybtft.js +0 -51
- package/dist/chunks/use-create-flow-overlay-state-NsqFPwdB.js +0 -21
- package/dist/chunks/validation-BM3-ShHV.js +0 -1003
- package/dist/chunks/validation-BVpqRFar.js +0 -1
- package/dist/chunks/validators-jpoYhpHh.js +0 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { jsx as t, jsxs as s, Fragment as le } from "react/jsx-runtime";
|
|
2
2
|
import bo, { useState as S, useEffect as fe, useMemo as O, useContext as xo, useRef as Me, useCallback as ye } from "react";
|
|
3
|
-
import { b as rt, c as at, e as st,
|
|
4
|
-
import {
|
|
5
|
-
import { L as ar } from "./layout-grid-
|
|
6
|
-
import {
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
3
|
+
import { b as rt, c as at, e as st, aG as ka, bt as yo, bP as vo, bQ as No, ar as Ft, bD as Sa, aX as gt, J as wo, A as Co, bR as ko, ah as Jt, ak as Qt, al as Yt, am as Xt, an as Zt, ao as en, ap as tn, aq as Xn, aW as nn, p as be, bS as So, bT as Do, bU as In, bE as rn, bF as an, bV as Zn, bG as sn, bH as De, av as Eo, b9 as jt, bW as Da, bs as $n, d as bt, f as xt, bX as Ao, o as Ea, aF as Io, aU as Aa, bY as To, aV as _n, y as Lo, ae as Ro, ax as Fo, u as Pt, a0 as mt, ab as er, a7 as Ia, a8 as tr, a1 as Ta, a6 as Po, ad as Bo, bK as Mo, bZ as Vo, b5 as Oo, a9 as qr, x as zt, a3 as Uo, b_ as $o, b$ as _o, c0 as jo, c1 as zo, c2 as Ko, c3 as qo, c4 as Ho, c5 as Go, c6 as La, c7 as Wo, c8 as Jo, c9 as Qo, ca as Yo, cb as Xo, az as yt, cc as Zo, bI as Ra, cd as ei, ce as ti, cf as ni, cg as ri, ch as ai, ci as si, cj as oi, ck as Fa, cl as ii, cm as li, cn as Pa, co as Ba, cp as Ma, cq as di, cr as ci, bf as Va, bq as ui, bn as mi, cs as hi, aw as Oa, ct as pi, cu as fi, cv as gi, cw as bi, cx as jn, cy as xi, cz as yi, cA as Ua, cB as nr, cC as vi, cD as Ni, cE as $a, cF as wi, cG as Ci, ay as zn, cH as ki, cI as _a, as as Si, cJ as Di, cK as Ei, cL as Ai, cM as Ii, cN as Ti, cO as Li, cP as Ri } from "./index-icb12JV1.js";
|
|
4
|
+
import { B as Z, L as Lt, _ as Kn, e as se, O as ja, d as je, c as v, N as za, F as vt, u as Q, D as Nt, aG as Hr, a7 as Ka, f as Ge, G as qa, S as rr, P as $e, a as ot, b as it, aH as Fi, aI as Pi, aE as Ha, aJ as Ga, $ as Xe, a0 as Ze, a1 as et, a2 as tt, a3 as xe, aK as Wa, aL as Ja, Y as nt, T as Bi, H as Mi, I as Gr, aM as Vi } from "./switch-DUdaHFZQ.js";
|
|
5
|
+
import { L as ar } from "./layout-grid-DV89AC9_.js";
|
|
6
|
+
import { c as Pe, X as Ae } from "./x-IdR_js6f.js";
|
|
7
|
+
import { u as sr, V as Oi, E as Wr, a as Jr, b as Ui, c as $i, L as _i, d as ji, e as Qa, C as Ya, f as zi, R as Ki, S as qi } from "./use-create-flow-overlay-state-YvqCp6Zo.js";
|
|
8
|
+
import "./analyze-result-contract-DuhlklhI.js";
|
|
9
|
+
import { S as Hi, M as Gi, a as Bt } from "./search-0LmWwZzW.js";
|
|
9
10
|
import { l as Qr } from "./date-formatter-CzcPZx39.js";
|
|
10
11
|
import "./index-CJdxSyQq.js";
|
|
11
12
|
import "react-dom";
|
|
@@ -290,13 +291,13 @@ function nl(e, n) {
|
|
|
290
291
|
}
|
|
291
292
|
function rl(e) {
|
|
292
293
|
const n = (e || "").toLowerCase();
|
|
293
|
-
return n.includes("table") ? ja : n.includes("pie") || n.includes("donut") ?
|
|
294
|
+
return n.includes("table") ? ja : n.includes("pie") || n.includes("donut") ? So : n.includes("line") ? Do : n.includes("bar") ? za : ar;
|
|
294
295
|
}
|
|
295
296
|
function al({ visual: e }) {
|
|
296
297
|
const n = e.ownership.status === "public" ? "Public" : e.ownership.status === "shared" || e.ownership.sharedCount > 0 ? "Shared" : "Private";
|
|
297
298
|
return /* @__PURE__ */ t("span", { className: "inline-flex items-center rounded-[4px] border border-border/60 px-1.5 py-px text-[11px] text-muted-foreground", children: n });
|
|
298
299
|
}
|
|
299
|
-
function
|
|
300
|
+
function ru({
|
|
300
301
|
open: e,
|
|
301
302
|
onOpenChange: n
|
|
302
303
|
}) {
|
|
@@ -469,7 +470,7 @@ function nu({
|
|
|
469
470
|
] }),
|
|
470
471
|
/* @__PURE__ */ s("div", { className: "flex shrink-0 items-center gap-2 border-b border-border/60 px-3 py-2", children: [
|
|
471
472
|
/* @__PURE__ */ s("div", { className: "relative min-w-[12rem] flex-1 md:max-w-md", children: [
|
|
472
|
-
/* @__PURE__ */ t(
|
|
473
|
+
/* @__PURE__ */ t(Hi, { className: "pointer-events-none absolute left-2 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground" }),
|
|
473
474
|
/* @__PURE__ */ t(
|
|
474
475
|
"input",
|
|
475
476
|
{
|
|
@@ -604,15 +605,15 @@ function nu({
|
|
|
604
605
|
}
|
|
605
606
|
),
|
|
606
607
|
d && /* @__PURE__ */ t(
|
|
607
|
-
|
|
608
|
+
wo,
|
|
608
609
|
{
|
|
609
610
|
resource: d,
|
|
610
|
-
resourceType:
|
|
611
|
+
resourceType: Co.VISUAL,
|
|
611
612
|
onClose: () => u(null)
|
|
612
613
|
}
|
|
613
614
|
),
|
|
614
615
|
m && /* @__PURE__ */ t(
|
|
615
|
-
|
|
616
|
+
ko,
|
|
616
617
|
{
|
|
617
618
|
open: !!m,
|
|
618
619
|
resourceLabel: "Visual",
|
|
@@ -860,7 +861,7 @@ function il({
|
|
|
860
861
|
onClick: () => i(e.id),
|
|
861
862
|
disabled: l === e.id,
|
|
862
863
|
children: [
|
|
863
|
-
l === e.id ? /* @__PURE__ */ t(se, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ t(
|
|
864
|
+
l === e.id ? /* @__PURE__ */ t(se, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ t(Eo, { className: "h-3.5 w-3.5" }),
|
|
864
865
|
l === e.id ? "Duplicating..." : "Duplicate"
|
|
865
866
|
]
|
|
866
867
|
}
|
|
@@ -955,7 +956,7 @@ function ll({
|
|
|
955
956
|
/* @__PURE__ */ s(st, { className: "flex items-center gap-2", children: [
|
|
956
957
|
/* @__PURE__ */ t("span", { children: "Save Visual As" }),
|
|
957
958
|
p.badgeType !== "local" && /* @__PURE__ */ t(
|
|
958
|
-
|
|
959
|
+
Oi,
|
|
959
960
|
{
|
|
960
961
|
type: p.badgeType,
|
|
961
962
|
showLabel: !0,
|
|
@@ -982,7 +983,7 @@ function ll({
|
|
|
982
983
|
/* @__PURE__ */ s("div", { className: "grid gap-2", children: [
|
|
983
984
|
/* @__PURE__ */ t(Lt, { htmlFor: "description", children: "Description (optional)" }),
|
|
984
985
|
/* @__PURE__ */ t(
|
|
985
|
-
|
|
986
|
+
Ao,
|
|
986
987
|
{
|
|
987
988
|
id: "description",
|
|
988
989
|
value: u,
|
|
@@ -1012,10 +1013,10 @@ function ll({
|
|
|
1012
1013
|
] }) });
|
|
1013
1014
|
}
|
|
1014
1015
|
function dl() {
|
|
1015
|
-
const [e, n] = S(!1), [r, a] = S(!1), [o, i] = S(null), [l, c] = S(null), d = vt((E) => E.frame), u = vt((E) => E.card), m =
|
|
1016
|
+
const [e, n] = S(!1), [r, a] = S(!1), [o, i] = S(null), [l, c] = S(null), d = vt((E) => E.frame), u = vt((E) => E.card), m = Io(), f = Q((E) => E.selectedSheetId), p = Q((E) => E.dashboard), { getUpdatedFrame: g } = sr(), { selectVisual: I } = ka(), { addFrame: C, setSelectedFrameId: N, setIsVisualEditing: b } = Nt(), k = Aa(), x = !!(d != null && d.visualId), w = (() => {
|
|
1016
1017
|
var E, F;
|
|
1017
1018
|
return ((E = d == null ? void 0 : d.cards) == null ? void 0 : E.length) === 1 && ((F = d.cards[0]) != null && F.title) ? d.cards[0].title : m != null && m.title ? m.title : (u == null ? void 0 : u.title) || "Untitled Visual";
|
|
1018
|
-
})(), L =
|
|
1019
|
+
})(), L = To((E) => {
|
|
1019
1020
|
E != null && E.id && (I(E), r && o && l && f && (async () => {
|
|
1020
1021
|
try {
|
|
1021
1022
|
const F = {
|
|
@@ -1112,8 +1113,8 @@ function dl() {
|
|
|
1112
1113
|
isSaving: L.isPending
|
|
1113
1114
|
};
|
|
1114
1115
|
}
|
|
1115
|
-
function
|
|
1116
|
-
const n = vt((V) => V.frame), r = vt((V) => V.editorContext), a =
|
|
1116
|
+
function au(e = {}) {
|
|
1117
|
+
const n = vt((V) => V.frame), r = vt((V) => V.editorContext), a = Lo((V) => V.selectedVisual), o = Q((V) => V.selectedFrameId), i = Q((V) => V.selectedSheetId), l = Q((V) => V.dashboard), { setIsVisualEditing: c, updateFrame: d } = Nt(), [u, m] = S(!1), [f, p] = S("both"), g = Aa(), I = (r == null ? void 0 : r.type) === "documentSection", C = !!(n != null && n.visualId || a != null && a.id), N = !!(n != null && n.visualId && o), b = C && !N, {
|
|
1117
1118
|
saveAsDialogOpen: k,
|
|
1118
1119
|
setSaveAsDialogOpen: x,
|
|
1119
1120
|
handleSaveAs: w,
|
|
@@ -1164,8 +1165,8 @@ function ru(e = {}) {
|
|
|
1164
1165
|
return /* @__PURE__ */ s(le, { children: [
|
|
1165
1166
|
/* @__PURE__ */ s("div", { className: "inline-flex items-center overflow-hidden rounded-control", children: [
|
|
1166
1167
|
!C && /* @__PURE__ */ t(Wr, { className: "!rounded-none", variant: "default" }),
|
|
1167
|
-
C && b && /* @__PURE__ */ t(
|
|
1168
|
-
C && N && /* @__PURE__ */ t(
|
|
1168
|
+
C && b && /* @__PURE__ */ t(Ui, { className: "!rounded-none", variant: "default" }),
|
|
1169
|
+
C && N && /* @__PURE__ */ t($i, { className: "!rounded-none" }),
|
|
1169
1170
|
/* @__PURE__ */ s(rn, { modal: !1, children: [
|
|
1170
1171
|
/* @__PURE__ */ t(an, { asChild: !0, children: /* @__PURE__ */ t(
|
|
1171
1172
|
Z,
|
|
@@ -1215,7 +1216,7 @@ function ru(e = {}) {
|
|
|
1215
1216
|
onClick: () => G("library"),
|
|
1216
1217
|
disabled: E,
|
|
1217
1218
|
children: [
|
|
1218
|
-
/* @__PURE__ */ t(
|
|
1219
|
+
/* @__PURE__ */ t(_i, { className: "h-3.5 w-3.5" }),
|
|
1219
1220
|
"Save as Library Visual"
|
|
1220
1221
|
]
|
|
1221
1222
|
}
|
|
@@ -1226,7 +1227,7 @@ function ru(e = {}) {
|
|
|
1226
1227
|
onClick: () => G("both"),
|
|
1227
1228
|
disabled: E,
|
|
1228
1229
|
children: [
|
|
1229
|
-
/* @__PURE__ */ t(
|
|
1230
|
+
/* @__PURE__ */ t(ji, { className: "h-3.5 w-3.5" }),
|
|
1230
1231
|
"Save Copy as Linked Visual"
|
|
1231
1232
|
]
|
|
1232
1233
|
}
|
|
@@ -1253,11 +1254,11 @@ function ru(e = {}) {
|
|
|
1253
1254
|
)
|
|
1254
1255
|
] });
|
|
1255
1256
|
}
|
|
1256
|
-
function
|
|
1257
|
-
const n = vt((u) => u.isDevMode), r = Q((u) => u.isVisualEditing), { setIsDevMode: a } = qa(), { config: o } = xo(
|
|
1257
|
+
function su({ className: e }) {
|
|
1258
|
+
const n = vt((u) => u.isDevMode), r = Q((u) => u.isVisualEditing), { setIsDevMode: a } = qa(), { config: o } = xo(Ro).tokenProps, i = (o == null ? void 0 : o.showAdvancedMode) !== !1;
|
|
1258
1259
|
if (!r || !i)
|
|
1259
1260
|
return null;
|
|
1260
|
-
const l = n ? rr :
|
|
1261
|
+
const l = n ? rr : Fo, c = n ? "Drag & drop" : "SQL", d = n ? "Switch to drag-and-drop mode" : "Switch to SQL mode";
|
|
1261
1262
|
return /* @__PURE__ */ s(
|
|
1262
1263
|
"button",
|
|
1263
1264
|
{
|
|
@@ -1276,7 +1277,7 @@ function au({ className: e }) {
|
|
|
1276
1277
|
}
|
|
1277
1278
|
);
|
|
1278
1279
|
}
|
|
1279
|
-
function
|
|
1280
|
+
function ou({
|
|
1280
1281
|
open: e,
|
|
1281
1282
|
onOpenChange: n,
|
|
1282
1283
|
onSave: r,
|
|
@@ -1321,7 +1322,7 @@ function fl(e) {
|
|
|
1321
1322
|
const n = Date.now() - e.getTime();
|
|
1322
1323
|
return n < hl ? cl : n < pl ? ul : ml;
|
|
1323
1324
|
}
|
|
1324
|
-
function
|
|
1325
|
+
function iu() {
|
|
1325
1326
|
const { authToken: e, tokenProps: n } = Pt(), r = mt((p) => p.activeExports), [a, o] = S(
|
|
1326
1327
|
typeof document < "u" ? !document.hidden : !0
|
|
1327
1328
|
), i = Me(null), l = Me(!1), c = Me(void 0), d = n == null ? void 0 : n.apiServiceUrl, u = e == null ? void 0 : e.accessToken, m = ye(() => {
|
|
@@ -1435,13 +1436,13 @@ function ou() {
|
|
|
1435
1436
|
inProgressCount: m().length
|
|
1436
1437
|
};
|
|
1437
1438
|
}
|
|
1438
|
-
function
|
|
1439
|
+
function lu() {
|
|
1439
1440
|
const { authToken: e, tokenProps: n } = Pt(), r = mt((c) => c.activeExports), { addExport: a } = Ta(), o = Me(!1), i = n == null ? void 0 : n.apiServiceUrl, l = e == null ? void 0 : e.accessToken;
|
|
1440
1441
|
fe(() => {
|
|
1441
1442
|
if (o.current || !i || !l) return;
|
|
1442
1443
|
(async () => {
|
|
1443
1444
|
try {
|
|
1444
|
-
const { exports: d } = await
|
|
1445
|
+
const { exports: d } = await Po(i, l, {
|
|
1445
1446
|
status: ["pending", "processing", "chunking", "compacting", "completed", "failed"],
|
|
1446
1447
|
limit: 20
|
|
1447
1448
|
// Limit to recent exports
|
|
@@ -1500,7 +1501,7 @@ function bl({
|
|
|
1500
1501
|
}, o = () => {
|
|
1501
1502
|
switch (e.status) {
|
|
1502
1503
|
case "completed":
|
|
1503
|
-
return /* @__PURE__ */ t(
|
|
1504
|
+
return /* @__PURE__ */ t(Oo, { className: "mt-0.5 h-5 w-5 shrink-0 text-green-600" });
|
|
1504
1505
|
case "failed":
|
|
1505
1506
|
return /* @__PURE__ */ t(Ji, { className: "mt-0.5 h-5 w-5 shrink-0 text-destructive" });
|
|
1506
1507
|
default:
|
|
@@ -1533,7 +1534,7 @@ function bl({
|
|
|
1533
1534
|
] }),
|
|
1534
1535
|
e.fileSize && /* @__PURE__ */ s(le, { children: [
|
|
1535
1536
|
/* @__PURE__ */ t("span", { children: "•" }),
|
|
1536
|
-
/* @__PURE__ */ t("span", { children:
|
|
1537
|
+
/* @__PURE__ */ t("span", { children: Bo(e.fileSize) })
|
|
1537
1538
|
] })
|
|
1538
1539
|
] }),
|
|
1539
1540
|
i && /* @__PURE__ */ t("div", { className: "text-xs text-muted-foreground", children: l }),
|
|
@@ -1563,14 +1564,14 @@ function bl({
|
|
|
1563
1564
|
className: "h-8 bg-transparent",
|
|
1564
1565
|
onClick: r,
|
|
1565
1566
|
children: [
|
|
1566
|
-
/* @__PURE__ */ t(
|
|
1567
|
+
/* @__PURE__ */ t(Mo, { className: "mr-1.5 h-3.5 w-3.5" }),
|
|
1567
1568
|
"Download"
|
|
1568
1569
|
]
|
|
1569
1570
|
}
|
|
1570
1571
|
)
|
|
1571
1572
|
] }),
|
|
1572
1573
|
i && /* @__PURE__ */ s("div", { children: [
|
|
1573
|
-
/* @__PURE__ */ t(
|
|
1574
|
+
/* @__PURE__ */ t(Vo, { value: e.progress, className: "h-1.5" }),
|
|
1574
1575
|
/* @__PURE__ */ s("span", { className: "mt-1 block text-xs text-muted-foreground", children: [
|
|
1575
1576
|
e.progress,
|
|
1576
1577
|
"% complete"
|
|
@@ -1719,10 +1720,10 @@ function xl() {
|
|
|
1719
1720
|
)) }) })
|
|
1720
1721
|
] });
|
|
1721
1722
|
}
|
|
1722
|
-
function
|
|
1723
|
+
function du({
|
|
1723
1724
|
variant: e
|
|
1724
1725
|
}) {
|
|
1725
|
-
const n = mt((d) => d.activeExports), r =
|
|
1726
|
+
const n = mt((d) => d.activeExports), r = Uo(), a = n.size > 0, o = Array.from(n.values()).some(
|
|
1726
1727
|
(d) => d.status === "completed" || d.status === "failed"
|
|
1727
1728
|
), l = r > 0 ? r > 9 ? "9+" : String(r) : null;
|
|
1728
1729
|
return /* @__PURE__ */ s($e, { children: [
|
|
@@ -1734,7 +1735,7 @@ function lu({
|
|
|
1734
1735
|
className: "relative w-7 px-0 text-muted-foreground hover:text-foreground",
|
|
1735
1736
|
"aria-label": "Export notifications",
|
|
1736
1737
|
children: [
|
|
1737
|
-
/* @__PURE__ */ t(
|
|
1738
|
+
/* @__PURE__ */ t($o, { className: "h-3.5 w-3.5" }),
|
|
1738
1739
|
a && /* @__PURE__ */ t(
|
|
1739
1740
|
"span",
|
|
1740
1741
|
{
|
|
@@ -1782,7 +1783,7 @@ function vl({
|
|
|
1782
1783
|
// create and make consumers use `forceClose()` from a dedicated
|
|
1783
1784
|
// button.
|
|
1784
1785
|
dismissMode: a ? "passive" : "explicit-only"
|
|
1785
|
-
}), p = Q((F) => F.dashboard), { setDashboardControlsModel: g } = Nt(), { participants: I } =
|
|
1786
|
+
}), p = Q((F) => F.dashboard), { setDashboardControlsModel: g } = Nt(), { participants: I } = _o(Fi(p)), C = Array.from(
|
|
1786
1787
|
new Map(
|
|
1787
1788
|
I.flatMap(
|
|
1788
1789
|
(F) => F.fieldChoices.map((_) => {
|
|
@@ -1812,10 +1813,10 @@ function vl({
|
|
|
1812
1813
|
})
|
|
1813
1814
|
)
|
|
1814
1815
|
).values()
|
|
1815
|
-
), b =
|
|
1816
|
+
), b = Pi({
|
|
1816
1817
|
...p || {},
|
|
1817
1818
|
controls: []
|
|
1818
|
-
}), k =
|
|
1819
|
+
}), k = jo(p), x = (F, _, G) => {
|
|
1819
1820
|
g(
|
|
1820
1821
|
F,
|
|
1821
1822
|
_,
|
|
@@ -1834,7 +1835,7 @@ function vl({
|
|
|
1834
1835
|
controls: p.controls || [],
|
|
1835
1836
|
reservedControlIds: b,
|
|
1836
1837
|
defaultValues: p.defaultControlValues || {},
|
|
1837
|
-
usageByControlId:
|
|
1838
|
+
usageByControlId: zo(p),
|
|
1838
1839
|
availableFieldChoices: C,
|
|
1839
1840
|
availableMetricChoices: N,
|
|
1840
1841
|
structuralParticipants: I,
|
|
@@ -1924,7 +1925,7 @@ function wl({
|
|
|
1924
1925
|
}), m = Q((F) => F.dashboard), f = Q((F) => F.selectedSheetId), { setDashboardInputs: p } = Nt(), g = (E = m.sheets) == null ? void 0 : E.find(
|
|
1925
1926
|
(F) => F.id === f
|
|
1926
1927
|
), I = (g == null ? void 0 : g.kind) === "document" && !!g.document, C = O(
|
|
1927
|
-
() => I && (g != null && g.document) ?
|
|
1928
|
+
() => I && (g != null && g.document) ? Ko(m, g.id) : [],
|
|
1928
1929
|
[m, I, g == null ? void 0 : g.document, g == null ? void 0 : g.id]
|
|
1929
1930
|
), N = O(
|
|
1930
1931
|
() => C.filter(
|
|
@@ -2046,7 +2047,7 @@ function Dl({
|
|
|
2046
2047
|
if (!g)
|
|
2047
2048
|
continue;
|
|
2048
2049
|
d.add(g.id);
|
|
2049
|
-
const I =
|
|
2050
|
+
const I = qo(
|
|
2050
2051
|
g.id,
|
|
2051
2052
|
[...e, ...u].filter(
|
|
2052
2053
|
(N) => N.id !== p.id
|
|
@@ -2062,7 +2063,7 @@ function Dl({
|
|
|
2062
2063
|
}
|
|
2063
2064
|
for (const p of l.values())
|
|
2064
2065
|
d.has(p.id) || u.push(
|
|
2065
|
-
|
|
2066
|
+
Ho({
|
|
2066
2067
|
control: p,
|
|
2067
2068
|
existingInputs: [...e, ...u],
|
|
2068
2069
|
sheetId: n
|
|
@@ -2087,7 +2088,7 @@ function El({
|
|
|
2087
2088
|
pickerContentClassName: d,
|
|
2088
2089
|
settingsContentClassName: u
|
|
2089
2090
|
}) {
|
|
2090
|
-
const m = o === "toolbar", [f, p] = S(!1), g =
|
|
2091
|
+
const m = o === "toolbar", [f, p] = S(!1), g = Go("interactive");
|
|
2091
2092
|
return /* @__PURE__ */ s(
|
|
2092
2093
|
"div",
|
|
2093
2094
|
{
|
|
@@ -2163,7 +2164,7 @@ function El({
|
|
|
2163
2164
|
);
|
|
2164
2165
|
}
|
|
2165
2166
|
function Al() {
|
|
2166
|
-
|
|
2167
|
+
zi();
|
|
2167
2168
|
const e = Q((d) => d.selectedSheetId), n = Q((d) => d.selectedFrameId), r = Q((d) => d.dashboard), a = Q((d) => d.actions.getSelectedFrame), { setSelectedFrameId: o } = Nt(), { setCard: i } = qa(), l = vt((d) => d.card.dataSource);
|
|
2168
2169
|
return fe(() => {
|
|
2169
2170
|
var u, m;
|
|
@@ -2183,20 +2184,20 @@ function Al() {
|
|
|
2183
2184
|
function Il() {
|
|
2184
2185
|
const e = Q((d) => d.dashboard), n = Q(
|
|
2185
2186
|
(d) => d.semanticExecutionPayload
|
|
2186
|
-
), r = Q((d) => d.actions.addFilter), { hasEntities: a } = Al(), { isLoading: o } =
|
|
2187
|
-
() =>
|
|
2187
|
+
), r = Q((d) => d.actions.addFilter), { hasEntities: a } = Al(), { isLoading: o } = Wo(), i = O(
|
|
2188
|
+
() => Jo(e, n),
|
|
2188
2189
|
[e, n]
|
|
2189
|
-
), c = !
|
|
2190
|
+
), c = !Qo(e.filters) && i.hasEligibleCards && !o;
|
|
2190
2191
|
return /* @__PURE__ */ s("div", { className: "flex h-[520px] w-[400px] flex-col", children: [
|
|
2191
2192
|
c && /* @__PURE__ */ t("div", { className: "border-b border-border/60 p-2", children: /* @__PURE__ */ s(
|
|
2192
2193
|
"button",
|
|
2193
2194
|
{
|
|
2194
2195
|
type: "button",
|
|
2195
|
-
onClick: () => r(
|
|
2196
|
+
onClick: () => r(Xo()),
|
|
2196
2197
|
title: `Applies to ${i.eligibleCardCount} of ${i.totalCardCount} date-aware cards`,
|
|
2197
2198
|
className: "flex w-full items-start gap-2 rounded-[4px] px-2 py-1.5 text-left outline-none transition-colors hover:bg-muted/40 focus-visible:bg-muted/40 focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-border",
|
|
2198
2199
|
children: [
|
|
2199
|
-
/* @__PURE__ */ t(
|
|
2200
|
+
/* @__PURE__ */ t(Yo, { className: "mt-0.5 h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
|
|
2200
2201
|
/* @__PURE__ */ s("span", { className: "flex min-w-0 flex-col", children: [
|
|
2201
2202
|
/* @__PURE__ */ t("span", { className: "text-[12px] font-medium text-foreground", children: "Add global date filter" }),
|
|
2202
2203
|
/* @__PURE__ */ t("span", { className: "text-[11px] leading-[1.4] text-muted-foreground", children: "One date range across all date-aware cards." })
|
|
@@ -2209,7 +2210,7 @@ function Il() {
|
|
|
2209
2210
|
/* @__PURE__ */ t("h3", { className: "mb-1 text-[13px] font-medium text-foreground", children: "No fields configured" }),
|
|
2210
2211
|
/* @__PURE__ */ t("p", { className: "text-[11px] text-muted-foreground", children: "Configure a data source for this card to enable filtering." })
|
|
2211
2212
|
] }),
|
|
2212
|
-
a && /* @__PURE__ */ t("div", { className: "flex flex-1 overflow-hidden", children: /* @__PURE__ */ t(
|
|
2213
|
+
a && /* @__PURE__ */ t("div", { className: "flex flex-1 overflow-hidden", children: /* @__PURE__ */ t(Zo, { context: "filter" }) })
|
|
2213
2214
|
] });
|
|
2214
2215
|
}
|
|
2215
2216
|
const Zr = !1;
|
|
@@ -2310,7 +2311,7 @@ function Ll({
|
|
|
2310
2311
|
)
|
|
2311
2312
|
] });
|
|
2312
2313
|
}
|
|
2313
|
-
function
|
|
2314
|
+
function cu({
|
|
2314
2315
|
size: e,
|
|
2315
2316
|
className: n,
|
|
2316
2317
|
primaryButtonClassName: r,
|
|
@@ -2319,7 +2320,7 @@ function du({
|
|
|
2319
2320
|
settingsContentClassName: i
|
|
2320
2321
|
}) {
|
|
2321
2322
|
var U;
|
|
2322
|
-
const [l, c] = S(null), d = Q((E) => E.dashboard), u = Q((E) => E.selectedSheetId), m = Q((E) => E.showFilters), f =
|
|
2323
|
+
const [l, c] = S(null), d = Q((E) => E.dashboard), u = Q((E) => E.selectedSheetId), m = Q((E) => E.showFilters), f = ei((E) => E.setPanelOpen), p = Q((E) => E.actions), { setDocumentInspectorTab: g, setShowFilters: I } = p, C = (U = d.sheets) == null ? void 0 : U.find(
|
|
2323
2324
|
(E) => E.id === u
|
|
2324
2325
|
), N = Ha(C), b = ye((E) => {
|
|
2325
2326
|
window.setTimeout(() => {
|
|
@@ -2484,7 +2485,7 @@ async function Pl(e, n, r) {
|
|
|
2484
2485
|
})}`
|
|
2485
2486
|
);
|
|
2486
2487
|
}
|
|
2487
|
-
async function
|
|
2488
|
+
async function uu(e, n, r) {
|
|
2488
2489
|
return we(
|
|
2489
2490
|
e,
|
|
2490
2491
|
n,
|
|
@@ -2559,7 +2560,7 @@ async function Ul(e, n, r) {
|
|
|
2559
2560
|
}
|
|
2560
2561
|
);
|
|
2561
2562
|
}
|
|
2562
|
-
async function
|
|
2563
|
+
async function mu(e, n, r, a) {
|
|
2563
2564
|
return we(
|
|
2564
2565
|
e,
|
|
2565
2566
|
n,
|
|
@@ -2598,7 +2599,7 @@ async function _l(e, n, r, a) {
|
|
|
2598
2599
|
}
|
|
2599
2600
|
);
|
|
2600
2601
|
}
|
|
2601
|
-
async function
|
|
2602
|
+
async function hu(e, n, r, a, o) {
|
|
2602
2603
|
return ss(
|
|
2603
2604
|
e,
|
|
2604
2605
|
n,
|
|
@@ -2606,7 +2607,7 @@ async function mu(e, n, r, a, o) {
|
|
|
2606
2607
|
o
|
|
2607
2608
|
);
|
|
2608
2609
|
}
|
|
2609
|
-
async function
|
|
2610
|
+
async function pu(e, n, r, a) {
|
|
2610
2611
|
return ss(
|
|
2611
2612
|
e,
|
|
2612
2613
|
n,
|
|
@@ -2779,7 +2780,7 @@ function hs(e) {
|
|
|
2779
2780
|
controlBindings: d.card.controlBindings,
|
|
2780
2781
|
tablePreferences: (c = d.card.preferences) == null ? void 0 : c.tablePrefs,
|
|
2781
2782
|
formats: u,
|
|
2782
|
-
defaultFormat:
|
|
2783
|
+
defaultFormat: ti(d.card.type)
|
|
2783
2784
|
});
|
|
2784
2785
|
}
|
|
2785
2786
|
return a;
|
|
@@ -2846,7 +2847,7 @@ function Jl(e) {
|
|
|
2846
2847
|
Ql({ settings: n, option: r, runtime: a });
|
|
2847
2848
|
return;
|
|
2848
2849
|
}
|
|
2849
|
-
const o = r.kind === "dashboard" ? "all" : "current", i = r.kind === "dashboard" ? a.selectedSheetId : r.sheetId, l =
|
|
2850
|
+
const o = r.kind === "dashboard" ? "all" : "current", i = r.kind === "dashboard" ? a.selectedSheetId : r.sheetId, l = ri({
|
|
2850
2851
|
dashboard: a.dashboard || void 0,
|
|
2851
2852
|
filterValues: a.filterValues,
|
|
2852
2853
|
selectedSheetId: i,
|
|
@@ -2867,7 +2868,7 @@ function Jl(e) {
|
|
|
2867
2868
|
}
|
|
2868
2869
|
function Ql(e) {
|
|
2869
2870
|
var u, m, f;
|
|
2870
|
-
const { settings: n, option: r, runtime: a } = e, o = r.cardId, i =
|
|
2871
|
+
const { settings: n, option: r, runtime: a } = e, o = r.cardId, i = si(
|
|
2871
2872
|
a.filters,
|
|
2872
2873
|
a.filterValues,
|
|
2873
2874
|
r.sheetId
|
|
@@ -2878,7 +2879,7 @@ function Ql(e) {
|
|
|
2878
2879
|
}
|
|
2879
2880
|
const l = ((u = a.inlineFilterValuesMap) == null ? void 0 : u[o]) || [];
|
|
2880
2881
|
l.length > 0 && (n.inlineFilterValues = de(l));
|
|
2881
|
-
const c =
|
|
2882
|
+
const c = oi({
|
|
2882
2883
|
dashboard: a.dashboard || void 0,
|
|
2883
2884
|
cardId: o,
|
|
2884
2885
|
interactionStates: a.interactionStates || {},
|
|
@@ -2939,7 +2940,7 @@ function Yl(e) {
|
|
|
2939
2940
|
}).snapshot;
|
|
2940
2941
|
const l = e.sheetSelection === "all" ? Ga(a.sheets).map((d) => d.id) : e.selectedSheetId ? [e.selectedSheetId] : [];
|
|
2941
2942
|
if (l.length !== 0)
|
|
2942
|
-
return
|
|
2943
|
+
return ii({
|
|
2943
2944
|
dashboard: a,
|
|
2944
2945
|
sheetIds: l,
|
|
2945
2946
|
sheetKind: "dashboard",
|
|
@@ -2963,7 +2964,7 @@ function Xl(e) {
|
|
|
2963
2964
|
const o = Zl(a, n.sheetId, n.cardId), i = e.inlineFilterValues !== void 0 ? {
|
|
2964
2965
|
...r.inlineFilterValuesMap || {},
|
|
2965
2966
|
[n.cardId]: e.inlineFilterValues
|
|
2966
|
-
} : r.inlineFilterValuesMap, l = e.filterValues !== void 0 ?
|
|
2967
|
+
} : r.inlineFilterValuesMap, l = e.filterValues !== void 0 ? li({
|
|
2967
2968
|
dashboardInputValues: r.dashboardInputValues,
|
|
2968
2969
|
dashboard: a,
|
|
2969
2970
|
filterValues: e.filterValues,
|
|
@@ -3004,13 +3005,13 @@ function ed(e) {
|
|
|
3004
3005
|
const n = e.filter(
|
|
3005
3006
|
(r) => !!r && typeof r == "object" && typeof r.name == "string"
|
|
3006
3007
|
);
|
|
3007
|
-
return
|
|
3008
|
+
return ai(n);
|
|
3008
3009
|
}
|
|
3009
3010
|
function fs(e, n) {
|
|
3010
3011
|
return n === "csv" ? { ...Kl, ...e } : { ...zl, ...e };
|
|
3011
3012
|
}
|
|
3012
3013
|
function gs(e) {
|
|
3013
|
-
return e ?
|
|
3014
|
+
return e ? ni(e).filter(
|
|
3014
3015
|
(n) => n !== "png"
|
|
3015
3016
|
) : ["pdf"];
|
|
3016
3017
|
}
|
|
@@ -3829,7 +3830,7 @@ function vd({
|
|
|
3829
3830
|
cardType: r,
|
|
3830
3831
|
className: a
|
|
3831
3832
|
}) {
|
|
3832
|
-
return /* @__PURE__ */ t(n === "csv" ? Ba : e === "dashboard" ?
|
|
3833
|
+
return /* @__PURE__ */ t(n === "csv" ? Ba : e === "dashboard" ? di : e === "card" ? r === "table" || r === "aggregateTable" || r === "pivotTable" || r === "detailTable" ? Ki : za : Ma, { className: a });
|
|
3833
3834
|
}
|
|
3834
3835
|
const Nd = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, wd = 250;
|
|
3835
3836
|
function Et(e) {
|
|
@@ -3884,13 +3885,13 @@ function oa({
|
|
|
3884
3885
|
() => /* @__PURE__ */ new Map()
|
|
3885
3886
|
), [C, N] = S(
|
|
3886
3887
|
() => /* @__PURE__ */ new Map()
|
|
3887
|
-
), [b, k] = S("people"), x =
|
|
3888
|
+
), [b, k] = S("people"), x = ci(u, wd), { currentUser: w } = Va(), L = (w == null ? void 0 : w.type) === "tenant", { users: U, isLoading: E } = ui({
|
|
3888
3889
|
search: x,
|
|
3889
3890
|
active: !0,
|
|
3890
3891
|
type: L ? "tenant" : "all",
|
|
3891
3892
|
tenantId: L ? w.tenantId : void 0,
|
|
3892
3893
|
limit: 25
|
|
3893
|
-
}), { groups: F, isLoading: _ } =
|
|
3894
|
+
}), { groups: F, isLoading: _ } = mi({
|
|
3894
3895
|
search: x,
|
|
3895
3896
|
type: L ? "TENANT_GROUP" : "all",
|
|
3896
3897
|
tenantId: L ? w.tenantId : void 0,
|
|
@@ -4058,7 +4059,7 @@ function oa({
|
|
|
4058
4059
|
return {
|
|
4059
4060
|
key: B,
|
|
4060
4061
|
label: T.name || T.address,
|
|
4061
|
-
icon: /* @__PURE__ */ t(
|
|
4062
|
+
icon: /* @__PURE__ */ t(hi, { className: "h-3 w-3" }),
|
|
4062
4063
|
onRemove: () => q(B)
|
|
4063
4064
|
};
|
|
4064
4065
|
if (T.type === "group") {
|
|
@@ -4636,7 +4637,7 @@ function Id({
|
|
|
4636
4637
|
timezone: n,
|
|
4637
4638
|
onScheduleChange: r
|
|
4638
4639
|
}) {
|
|
4639
|
-
const a = O(() =>
|
|
4640
|
+
const a = O(() => pi(e), [e]), [o, i] = S(() => Gt()), [l, c] = S(null), d = fi(
|
|
4640
4641
|
a,
|
|
4641
4642
|
n,
|
|
4642
4643
|
ma(o),
|
|
@@ -4772,14 +4773,14 @@ function Id({
|
|
|
4772
4773
|
}),
|
|
4773
4774
|
children: [
|
|
4774
4775
|
/* @__PURE__ */ t(Ze, { size: "sm", className: "h-8 text-[12.5px]", children: /* @__PURE__ */ s("div", { className: "flex min-w-0 flex-1 items-center gap-1.5 overflow-hidden", children: [
|
|
4775
|
-
/* @__PURE__ */ t(
|
|
4776
|
+
/* @__PURE__ */ t(gi, { className: "h-3 w-3 shrink-0 text-muted-foreground/70" }),
|
|
4776
4777
|
/* @__PURE__ */ t("span", { className: "min-w-0 truncate", children: /* @__PURE__ */ t(et, {}) })
|
|
4777
4778
|
] }) }),
|
|
4778
4779
|
/* @__PURE__ */ t(
|
|
4779
4780
|
tt,
|
|
4780
4781
|
{
|
|
4781
4782
|
className: v(Vn, "max-h-[280px]"),
|
|
4782
|
-
children:
|
|
4783
|
+
children: bi.map((b) => /* @__PURE__ */ t(xe, { value: b, children: Ld(b) }, b))
|
|
4783
4784
|
}
|
|
4784
4785
|
)
|
|
4785
4786
|
]
|
|
@@ -4836,7 +4837,7 @@ function Td() {
|
|
|
4836
4837
|
for (let n = 0; n < 24; n += 1)
|
|
4837
4838
|
for (const r of [0, 30]) {
|
|
4838
4839
|
const a = `${String(n).padStart(2, "0")}:${String(r).padStart(2, "0")}`;
|
|
4839
|
-
e.push({ value: a, label:
|
|
4840
|
+
e.push({ value: a, label: xi(n, r) });
|
|
4840
4841
|
}
|
|
4841
4842
|
return e;
|
|
4842
4843
|
}
|
|
@@ -4917,7 +4918,7 @@ function pa({
|
|
|
4917
4918
|
onOpenAutoFocus: (p) => p.preventDefault(),
|
|
4918
4919
|
children: [
|
|
4919
4920
|
/* @__PURE__ */ t(
|
|
4920
|
-
|
|
4921
|
+
yi,
|
|
4921
4922
|
{
|
|
4922
4923
|
mode: "single",
|
|
4923
4924
|
selected: e ?? void 0,
|
|
@@ -5381,7 +5382,7 @@ function Es({
|
|
|
5381
5382
|
className: r
|
|
5382
5383
|
}) {
|
|
5383
5384
|
const a = O(
|
|
5384
|
-
() =>
|
|
5385
|
+
() => vi.sanitize(e, {
|
|
5385
5386
|
WHOLE_DOCUMENT: !0,
|
|
5386
5387
|
ADD_TAGS: ["style"]
|
|
5387
5388
|
}),
|
|
@@ -5827,7 +5828,7 @@ function Gd({ run: e }) {
|
|
|
5827
5828
|
"aria-label": "Email delivery status",
|
|
5828
5829
|
children: [
|
|
5829
5830
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-2 font-medium", children: [
|
|
5830
|
-
/* @__PURE__ */ t(
|
|
5831
|
+
/* @__PURE__ */ t(qi, { className: "h-3.5 w-3.5 shrink-0" }),
|
|
5831
5832
|
/* @__PURE__ */ t("span", { children: _d(n) })
|
|
5832
5833
|
] }),
|
|
5833
5834
|
n.message ? /* @__PURE__ */ t("p", { className: "mt-1 text-[11px] leading-[1.5] opacity-80", children: n.message }) : null,
|
|
@@ -6075,7 +6076,7 @@ function Xd({
|
|
|
6075
6076
|
className: "inline-flex h-6 items-center gap-1 rounded-control bg-primary px-2 text-[11px] font-medium text-primary-foreground hover:bg-primary/90",
|
|
6076
6077
|
children: [
|
|
6077
6078
|
"View briefing",
|
|
6078
|
-
/* @__PURE__ */ t(
|
|
6079
|
+
/* @__PURE__ */ t(Ni, { className: "h-3 w-3" })
|
|
6079
6080
|
]
|
|
6080
6081
|
}
|
|
6081
6082
|
) : null,
|
|
@@ -6162,7 +6163,7 @@ function ec({
|
|
|
6162
6163
|
"aria-label": "Run in background",
|
|
6163
6164
|
title: "Run in background — we'll save the result",
|
|
6164
6165
|
children: [
|
|
6165
|
-
/* @__PURE__ */ t(
|
|
6166
|
+
/* @__PURE__ */ t(Gi, { className: "h-3 w-3" }),
|
|
6166
6167
|
"Run in background"
|
|
6167
6168
|
]
|
|
6168
6169
|
}
|
|
@@ -6266,9 +6267,9 @@ function Ms({
|
|
|
6266
6267
|
n
|
|
6267
6268
|
),
|
|
6268
6269
|
children: /* @__PURE__ */ t(
|
|
6269
|
-
|
|
6270
|
+
wi,
|
|
6270
6271
|
{
|
|
6271
|
-
remarkPlugins: [
|
|
6272
|
+
remarkPlugins: [Ci],
|
|
6272
6273
|
components: {
|
|
6273
6274
|
h1: ({ children: r }) => /* @__PURE__ */ t("h1", { className: "mb-4 text-[18px] font-semibold leading-6 text-foreground", children: r }),
|
|
6274
6275
|
h2: ({ children: r }) => /* @__PURE__ */ t("h2", { className: "mb-2 mt-5 text-[11px] font-semibold uppercase tracking-[0.08em] text-muted-foreground first:mt-0", children: r }),
|
|
@@ -6339,11 +6340,11 @@ function hr({
|
|
|
6339
6340
|
] }),
|
|
6340
6341
|
o || n ? /* @__PURE__ */ s("div", { className: "flex shrink-0 items-center gap-2", children: [
|
|
6341
6342
|
o ? /* @__PURE__ */ t(
|
|
6342
|
-
|
|
6343
|
+
Bi,
|
|
6343
6344
|
{
|
|
6344
6345
|
value: r,
|
|
6345
6346
|
onValueChange: (l) => a(l === "html" ? "html" : "rendered"),
|
|
6346
|
-
children: /* @__PURE__ */ s(
|
|
6347
|
+
children: /* @__PURE__ */ s(Mi, { size: "xs", children: [
|
|
6347
6348
|
/* @__PURE__ */ t(Gr, { value: "rendered", children: "Rendered" }),
|
|
6348
6349
|
/* @__PURE__ */ t(Gr, { value: "html", children: "HTML" })
|
|
6349
6350
|
] })
|
|
@@ -6904,7 +6905,7 @@ function yc({
|
|
|
6904
6905
|
(h) => h.inlineFilterValuesMap
|
|
6905
6906
|
), G = Q(
|
|
6906
6907
|
(h) => h.dashboardInputValues
|
|
6907
|
-
), V =
|
|
6908
|
+
), V = Vi((h) => h.interactionStates), z = e ?? (C == null ? void 0 : C.apiServiceUrl), j = n ?? (I == null ? void 0 : I.accessToken), M = O(() => ({ ...mc, ...l }), [l]), Y = O(
|
|
6908
6909
|
() => Vs(r, a),
|
|
6909
6910
|
[r, a]
|
|
6910
6911
|
), ne = O(
|
|
@@ -7746,7 +7747,7 @@ function yc({
|
|
|
7746
7747
|
title: "Fix typos, grammar, and minor wording without changing your meaning",
|
|
7747
7748
|
className: He,
|
|
7748
7749
|
children: [
|
|
7749
|
-
pn ? /* @__PURE__ */ t(se, { className: "h-3 w-3 animate-spin" }) : /* @__PURE__ */ t(
|
|
7750
|
+
pn ? /* @__PURE__ */ t(se, { className: "h-3 w-3 animate-spin" }) : /* @__PURE__ */ t(ki, { className: "h-3 w-3" }),
|
|
7750
7751
|
pn ? "Polishing…" : "Polish"
|
|
7751
7752
|
]
|
|
7752
7753
|
}
|
|
@@ -7817,7 +7818,7 @@ function yc({
|
|
|
7817
7818
|
D.schedule.enabled ? /* @__PURE__ */ t("div", { className: "mt-3 pl-6", children: /* @__PURE__ */ t(
|
|
7818
7819
|
Id,
|
|
7819
7820
|
{
|
|
7820
|
-
scheduleExpr: D.schedule.scheduleExpr || jn(
|
|
7821
|
+
scheduleExpr: D.schedule.scheduleExpr || jn(Di),
|
|
7821
7822
|
timezone: D.schedule.timezone || "UTC",
|
|
7822
7823
|
onScheduleChange: (h) => me({
|
|
7823
7824
|
schedule: {
|
|
@@ -8114,7 +8115,7 @@ function yc({
|
|
|
8114
8115
|
onClick: Dn,
|
|
8115
8116
|
title: he && ut ? "Save your changes before running — Run now uses the saved briefing." : void 0,
|
|
8116
8117
|
children: [
|
|
8117
|
-
ee === "run" || ee === "preview" || Nn ? /* @__PURE__ */ t(se, { className: "h-3 w-3 animate-spin" }) : Se === "result" ? /* @__PURE__ */ t(zt, { className: "h-3 w-3" }) : Se === "plan" ? /* @__PURE__ */ t(Hn, { className: "h-3 w-3" }) : he ? /* @__PURE__ */ t(
|
|
8118
|
+
ee === "run" || ee === "preview" || Nn ? /* @__PURE__ */ t(se, { className: "h-3 w-3 animate-spin" }) : Se === "result" ? /* @__PURE__ */ t(zt, { className: "h-3 w-3" }) : Se === "plan" ? /* @__PURE__ */ t(Hn, { className: "h-3 w-3" }) : he ? /* @__PURE__ */ t(Si, { className: "h-3 w-3" }) : /* @__PURE__ */ t(Hn, { className: "h-3 w-3" }),
|
|
8118
8119
|
he ? "Run now" : Se === "plan" ? "Run plan" : Se === "result" ? "Run again" : "Dry run"
|
|
8119
8120
|
]
|
|
8120
8121
|
}
|
|
@@ -8621,7 +8622,7 @@ function Oc({
|
|
|
8621
8622
|
/* @__PURE__ */ s("div", { className: "mt-1 flex flex-wrap items-center gap-x-1.5 text-[11px] text-muted-foreground", children: [
|
|
8622
8623
|
/* @__PURE__ */ t("span", { children: Fc(e) }),
|
|
8623
8624
|
/* @__PURE__ */ t("span", { className: "text-border", children: "·" }),
|
|
8624
|
-
/* @__PURE__ */ t(
|
|
8625
|
+
/* @__PURE__ */ t(Ri, { className: "h-3 w-3" }),
|
|
8625
8626
|
/* @__PURE__ */ t("span", { className: "truncate", children: Lc(e) }),
|
|
8626
8627
|
e.lastRunAt ? /* @__PURE__ */ s(le, { children: [
|
|
8627
8628
|
/* @__PURE__ */ t("span", { className: "text-border", children: "·" }),
|
|
@@ -8743,7 +8744,7 @@ function _c({
|
|
|
8743
8744
|
m.current || (m.current = !0, Ht(n.status) ? u(n) : qt(n.status) && o(n));
|
|
8744
8745
|
}, [n, o, u]), /* @__PURE__ */ t(Yd, { run: c, onExpand: l });
|
|
8745
8746
|
}
|
|
8746
|
-
function
|
|
8747
|
+
function fu({
|
|
8747
8748
|
dashboardId: e,
|
|
8748
8749
|
dashboardTitle: n,
|
|
8749
8750
|
apiServiceUrl: r,
|
|
@@ -8875,7 +8876,7 @@ function pu({
|
|
|
8875
8876
|
_(null);
|
|
8876
8877
|
}
|
|
8877
8878
|
}, Le = J.length;
|
|
8878
|
-
return /* @__PURE__ */ s(
|
|
8879
|
+
return /* @__PURE__ */ s(Ei, { open: m, onOpenChange: f, children: [
|
|
8879
8880
|
/* @__PURE__ */ t(
|
|
8880
8881
|
vc,
|
|
8881
8882
|
{
|
|
@@ -8886,15 +8887,15 @@ function pu({
|
|
|
8886
8887
|
}
|
|
8887
8888
|
),
|
|
8888
8889
|
/* @__PURE__ */ s(
|
|
8889
|
-
|
|
8890
|
+
Ai,
|
|
8890
8891
|
{
|
|
8891
8892
|
side: "right",
|
|
8892
8893
|
hideClose: !0,
|
|
8893
8894
|
className: "flex h-full w-full flex-col overflow-hidden p-0 sm:max-w-[560px]",
|
|
8894
8895
|
children: [
|
|
8895
|
-
/* @__PURE__ */ s(
|
|
8896
|
-
/* @__PURE__ */ t(
|
|
8897
|
-
/* @__PURE__ */ t(
|
|
8896
|
+
/* @__PURE__ */ s(Ii, { className: "sr-only", children: [
|
|
8897
|
+
/* @__PURE__ */ t(Ti, { children: "Briefings" }),
|
|
8898
|
+
/* @__PURE__ */ t(Li, { children: "Manage briefings for this dashboard." })
|
|
8898
8899
|
] }),
|
|
8899
8900
|
p === "list" ? /* @__PURE__ */ t(
|
|
8900
8901
|
Bc,
|
|
@@ -9022,7 +9023,7 @@ function jc() {
|
|
|
9022
9023
|
return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : `briefing-run-now-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
|
|
9023
9024
|
}
|
|
9024
9025
|
export {
|
|
9025
|
-
|
|
9026
|
+
su as A,
|
|
9026
9027
|
ir as B,
|
|
9027
9028
|
jl as C,
|
|
9028
9029
|
vl as D,
|
|
@@ -9034,20 +9035,20 @@ export {
|
|
|
9034
9035
|
cd as J,
|
|
9035
9036
|
ra as K,
|
|
9036
9037
|
yc as L,
|
|
9037
|
-
|
|
9038
|
-
|
|
9038
|
+
fu as M,
|
|
9039
|
+
du as N,
|
|
9039
9040
|
es as O,
|
|
9040
9041
|
Zi as P,
|
|
9041
|
-
|
|
9042
|
-
|
|
9042
|
+
ou as U,
|
|
9043
|
+
ru as V,
|
|
9043
9044
|
vc as W,
|
|
9044
|
-
|
|
9045
|
+
au as a,
|
|
9045
9046
|
bl as b,
|
|
9046
|
-
|
|
9047
|
+
lu as c,
|
|
9047
9048
|
wl as d,
|
|
9048
9049
|
El as e,
|
|
9049
|
-
|
|
9050
|
-
|
|
9050
|
+
cu as f,
|
|
9051
|
+
uu as g,
|
|
9051
9052
|
os as h,
|
|
9052
9053
|
Bl as i,
|
|
9053
9054
|
lr as j,
|
|
@@ -9060,11 +9061,11 @@ export {
|
|
|
9060
9061
|
Ol as q,
|
|
9061
9062
|
ls as r,
|
|
9062
9063
|
Ul as s,
|
|
9063
|
-
|
|
9064
|
-
|
|
9064
|
+
mu as t,
|
|
9065
|
+
iu as u,
|
|
9065
9066
|
us as v,
|
|
9066
9067
|
$l as w,
|
|
9067
9068
|
_l as x,
|
|
9068
|
-
|
|
9069
|
-
|
|
9069
|
+
hu as y,
|
|
9070
|
+
pu as z
|
|
9070
9071
|
};
|