react-semaphor 0.1.556 → 0.1.557
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 +6 -29
- package/dist/analytics-protocol/index.js +19 -20
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +28 -29
- package/dist/briefings/index.js +55 -56
- package/dist/chunks/{assistant-chat-C7Acww1T.js → assistant-chat-WMTpYirZ.js} +78 -80
- package/dist/chunks/{bookmark-state-7iZErWnR.js → bookmark-state-PjQpxbG7.js} +3 -3
- package/dist/chunks/{braces-o9UiRQes.js → braces-BOErQVyi.js} +1 -1
- package/dist/chunks/{comparison-window-caption-BseG5aOZ.js → comparison-window-caption-Dc7BaCMz.js} +186 -189
- package/dist/chunks/{custom-visual-inputs-ChuKjx27.js → custom-visual-inputs-CxYI-gFa.js} +1 -1
- package/dist/chunks/{dashboard-BU6rE5kV.js → dashboard-4D8Vy4pL.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-qrYd2zkN.js → dashboard-briefing-launcher-C4EmOfxs.js} +147 -149
- package/dist/chunks/{dashboard-controls-BsapXI2H.js → dashboard-controls-DBWykmvL.js} +170 -172
- package/dist/chunks/{dashboard-json-CJqPqYnI.js → dashboard-json-DiX-p0F7.js} +20 -21
- package/dist/chunks/{document-dashboard-inputs-BNSprf5_.js → document-dashboard-inputs-DP5hquBR.js} +30 -30
- package/dist/chunks/{edit-dashboard-visual-CjAdV-WG.js → edit-dashboard-visual-n1jLV_7V.js} +4773 -4802
- package/dist/chunks/{filter-reach-copy-BTrqtFkh.js → filter-reach-copy-BB9iakLA.js} +147 -148
- package/dist/chunks/{filter-value-text-CJTJDCym.js → filter-value-text-CUBpotVN.js} +3 -3
- package/dist/chunks/{global-date-filter-utils-CTVf3dG3.js → global-date-filter-utils-Cc5tqkoW.js} +585 -591
- package/dist/chunks/{index-B_vIRa-q.js → index-CgjhzkKM.js} +69 -70
- package/dist/chunks/{layout-grid-Bgzth8vd.js → layout-grid-CcNklCwL.js} +1 -1
- package/dist/chunks/{list-filter-DsaTbM3J.js → list-filter-Ds_4UTpD.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-Cg0ioFGQ.js → matrix-analytical-definition-4GTUDheD.js} +3 -3
- package/dist/chunks/{matrix-card-yYibXSw1.js → matrix-card-fS_4O7zA.js} +2 -2
- package/dist/chunks/{matrix-member-presentation-DEEauKXC.js → matrix-member-presentation-Dj7HaAHC.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-C1G6AJNh.js → matrix-operation-contract-CpgLZ7E5.js} +21 -21
- package/dist/chunks/{metric-comparison-BfcmwxM1.js → metric-comparison-C8LY7GG5.js} +1 -1
- package/dist/chunks/{palette-D10o_yYX.js → palette-DMkIhagj.js} +1 -1
- package/dist/chunks/{matrix-formatter-C2kjsCDf.js → pivot-result-contract-expectations-DMk-mKhG.js} +444 -395
- package/dist/chunks/{pivot-result-identity-CWi5WrrY.js → pivot-result-identity-CrQ54Xbj.js} +1 -1
- package/dist/chunks/{raw-temporal-presentation-DWzLIHc3.js → raw-temporal-presentation-DdEpgPRB.js} +24 -25
- package/dist/chunks/report-preferences-dialog-CFg5VFLk.js +2109 -0
- package/dist/chunks/{report-runtime-context-BgM-iNWB.js → report-runtime-context-CohdtiMg.js} +1 -1
- package/dist/chunks/{resolve-dashboard-input-context-Df8V5QHW.js → resolve-dashboard-input-context-Djl3kCFL.js} +224 -226
- package/dist/chunks/{save-CfJpQQ68.js → save-D1EpMcwT.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-VvXI6r03.js → saved-dashboard-context-umlQFevH.js} +8 -8
- package/dist/chunks/selection-reducer-_d6aKJnj.js +46 -0
- package/dist/chunks/{semaphor-ready-indicator-fejZmdq9.js → semaphor-ready-indicator-4cOp6sla.js} +40458 -43400
- package/dist/chunks/{shelf-drop-preview-context-BuTCXe-S.js → shelf-drop-preview-context-DAtRuvR7.js} +6 -6
- package/dist/chunks/{source-entity-resolution-B46EZIzX.js → source-entity-resolution-DXW1HpKf.js} +1 -1
- package/dist/chunks/{switch-Bq92UGId.js → switch-9CJt5EF_.js} +1430 -1341
- package/dist/chunks/{table-export-sheet-noKl8-en.js → table-export-sheet-CTCTA_bd.js} +1 -1
- package/dist/chunks/{table-settings-PpINOzw8.js → table-settings-DF1gdVQR.js} +2 -2
- package/dist/chunks/temporal-input-presentation-DoSniQj1.js +2939 -0
- package/dist/chunks/{token-types--0bgRCaO.js → token-types-DFyLflLY.js} +1 -1
- package/dist/chunks/{upload-BFX7apKV.js → upload-LSNKpt0w.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-Cz-ve64t.js → use-create-flow-overlay-state-esyMT9vU.js} +124 -126
- package/dist/chunks/{validators-CZo_H4E6.js → validators-hmfNNQz8.js} +5 -5
- package/dist/chunks/zoned-wall-clock-E35Frf9v.js +191 -0
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +130 -131
- package/dist/data-app-sdk/index.js +788 -4153
- package/dist/data-app-sdk-adapters/index.js +2 -2
- package/dist/data-app-sdk-validation/index.js +5 -5
- package/dist/format-utils/index.js +230 -233
- package/dist/index.js +216 -217
- package/dist/report-runtime-context/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/data-app-sdk/contracts.d.ts +0 -146
- package/dist/types/data-app-sdk/index.d.ts +0 -2
- package/dist/types/index.js +6 -6
- package/dist/types/shared/dashboard-authoring/filter-model/filter-definitions.d.ts +1 -7
- package/package.json +1 -3
- package/src/data-app-sdk/README.md +7 -31
- package/dist/chunks/pivot-result-contract-expectations-fKBHFPfz.js +0 -56
- package/dist/chunks/raw-temporal-contract-CjHaUIsE.js +0 -64
- package/dist/chunks/report-preferences-dialog-D_wrbIQt.js +0 -2261
- package/dist/chunks/selection-reducer-By4CSmEF.js +0 -111
- package/dist/chunks/temporal-bucket-DzyadxVY.js +0 -2071
- package/dist/chunks/temporal-input-presentation-CJWS4d0L.js +0 -879
- package/dist/chunks/x-4f5U2XwU.js +0 -100
- package/dist/chunks/zoned-wall-clock-MulfA26h.js +0 -129
- package/dist/types/data-app-sdk/devtools/index.d.ts +0 -49
- package/dist/types/data-app-sdk/devtools.d.ts +0 -1
|
@@ -1,31 +1,29 @@
|
|
|
1
1
|
import { jsx as e, jsxs as o, Fragment as $ } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { B as G,
|
|
4
|
-
import { c as we, X as Kt, C as Xa } from "./x-4f5U2XwU.js";
|
|
2
|
+
import { bN as $r, u as C, bO as Br, bP as Fr, bQ as st, bR as Gr, bS as jr, bT as Vr, bU as Hr, bV as qr, bW as zr, b6 as J, b4 as ve, bX as ye, bH as D, bY as Kr, bI as Gt, bJ as jt, bL as et, bM as tt, bZ as Vt, aS as ot, bB as Qr, a$ as re, b_ as Wr, b$ as Yr, c0 as Ht, c1 as Jr, c2 as qt, aR as Xr, bK as Zr, c3 as ea, c4 as _, c5 as ta, c6 as ra, c7 as aa, aC as na, c8 as sa, bt as oa, c9 as ia, bu as da, j as ca, W as la, a6 as Ct, i as Pe, p as ua, k as Je, ca as ma, cb as ha, Q as pa, cc as fa, s as ba, cd as ga, ce as xa, cf as va, cg as ya, ch as Dt, ci as Et, cj as It, ck as wa, bv as Na, cl as Sa, cm as ka, cn as Ca, co as be, cp as _e, cq as Da, cr as Ea, cs as Ia, ct as At, o as Aa, cu as Oa, cv as La, cw as Ma, cx as Pa, cy as _a, cz as Ta, cA as Ra, cB as Ua, cC as Ot } from "./semaphor-ready-indicator-4cOp6sla.js";
|
|
3
|
+
import { c as we, B as G, a0 as $a, a1 as Ba, a2 as rt, L as Re, X as zt, m as Fa, s as Ga, t as ja, u as Va, v as Ha, w as qa, P as za, a as Ka, b as Qa, y as Wa, n as Ya, o as Ja, p as Xa, I as Za, q as en, d as Kt } from "./switch-9CJt5EF_.js";
|
|
5
4
|
import * as A from "react";
|
|
6
|
-
import Qt, { useMemo as j, useState as N, useEffect as ge, useRef as Lt, useLayoutEffect as
|
|
5
|
+
import Qt, { useMemo as j, useState as N, useEffect as ge, useRef as Lt, useLayoutEffect as tn } from "react";
|
|
7
6
|
import "./index-CuHybtft.js";
|
|
8
|
-
import "./validators-
|
|
9
|
-
import "./matrix-operation-contract-
|
|
7
|
+
import "./validators-hmfNNQz8.js";
|
|
8
|
+
import "./matrix-operation-contract-CpgLZ7E5.js";
|
|
10
9
|
import "./analytics-base-schemas-BUFUoO6G.js";
|
|
11
10
|
import "zod";
|
|
12
11
|
import "../value-format-preferences/index.js";
|
|
13
12
|
import { c as xe } from "./_commonjsHelpers-DimLPMtv.js";
|
|
14
|
-
import { u as
|
|
15
|
-
import { I as
|
|
16
|
-
import { u as
|
|
17
|
-
import { createPortal as
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { ai as Mt, aj as Cn, ak as Dn, a as at } from "./resolve-dashboard-input-context-Df8V5QHW.js";
|
|
13
|
+
import { u as rn, d as an, c as nn, D as sn, A as on, a as dn, j as cn, V as ln, b as un, e as mn, S as hn, T as pn, i as fn, k as bn, U as gn } from "./dashboard-briefing-launcher-C4EmOfxs.js";
|
|
14
|
+
import { I as xn } from "./use-create-flow-overlay-state-esyMT9vU.js";
|
|
15
|
+
import { u as vn, h as yn, R as wn, l as Nn } from "./report-preferences-dialog-CFg5VFLk.js";
|
|
16
|
+
import { createPortal as Sn } from "react-dom";
|
|
17
|
+
import { dr as Ne, ds as it, dt as Wt, as as kn } from "./global-date-filter-utils-Cc5tqkoW.js";
|
|
18
|
+
import { s as Yt } from "./pivot-result-contract-expectations-DMk-mKhG.js";
|
|
19
|
+
import { ai as Mt, aj as Cn, ak as Dn, a as at } from "./resolve-dashboard-input-context-Djl3kCFL.js";
|
|
22
20
|
import { r as En } from "./export-file-format-C-tJsxsf.js";
|
|
23
21
|
import { u as In, s as An } from "./normalize-dashboard-for-dirty-check-XKgH3GFX.js";
|
|
24
|
-
import { L as Ue, u as
|
|
25
|
-
import { l as On, h as
|
|
26
|
-
import { S as Mn } from "./save-
|
|
27
|
-
import { P as
|
|
28
|
-
import { B as
|
|
22
|
+
import { L as Ue, u as Pt } from "./table-settings-DF1gdVQR.js";
|
|
23
|
+
import { l as On, h as _t, e as Ln } from "./document-dashboard-inputs-DP5hquBR.js";
|
|
24
|
+
import { S as Mn } from "./save-D1EpMcwT.js";
|
|
25
|
+
import { P as Pn } from "./palette-DMkIhagj.js";
|
|
26
|
+
import { B as _n } from "./braces-BOErQVyi.js";
|
|
29
27
|
/**
|
|
30
28
|
* @license lucide-react v0.453.0 - ISC
|
|
31
29
|
*
|
|
@@ -239,9 +237,9 @@ function Vn() {
|
|
|
239
237
|
() => {
|
|
240
238
|
var h, g, v, m, c;
|
|
241
239
|
return {
|
|
242
|
-
canEdit: ((h = r == null ? void 0 : r.permissions) == null ? void 0 : h.canEdit) ??
|
|
243
|
-
canUseFilters: ((g = r == null ? void 0 : r.permissions) == null ? void 0 : g.canEdit) ??
|
|
244
|
-
canManageDashboards: ((v = r == null ? void 0 : r.permissions) == null ? void 0 : v.canCreateDashboard) ??
|
|
240
|
+
canEdit: ((h = r == null ? void 0 : r.permissions) == null ? void 0 : h.canEdit) ?? zr(n),
|
|
241
|
+
canUseFilters: ((g = r == null ? void 0 : r.permissions) == null ? void 0 : g.canEdit) ?? qr(n),
|
|
242
|
+
canManageDashboards: ((v = r == null ? void 0 : r.permissions) == null ? void 0 : v.canCreateDashboard) ?? Hr(n),
|
|
245
243
|
canCreateDashboards: ((m = r == null ? void 0 : r.permissions) == null ? void 0 : m.canCreateDashboard) ?? Vr(n),
|
|
246
244
|
canAccessVisuals: ((c = r == null ? void 0 : r.permissions) == null ? void 0 : c.canEdit) ?? jr(n)
|
|
247
245
|
};
|
|
@@ -255,7 +253,7 @@ function Vn() {
|
|
|
255
253
|
currentUser: n
|
|
256
254
|
};
|
|
257
255
|
}
|
|
258
|
-
function
|
|
256
|
+
function Hn(t, a = []) {
|
|
259
257
|
let n = [];
|
|
260
258
|
function r(d, f) {
|
|
261
259
|
const h = A.createContext(f);
|
|
@@ -287,9 +285,9 @@ function zn(t, a = []) {
|
|
|
287
285
|
);
|
|
288
286
|
};
|
|
289
287
|
};
|
|
290
|
-
return s.scopeName = t, [r,
|
|
288
|
+
return s.scopeName = t, [r, qn(s, ...a)];
|
|
291
289
|
}
|
|
292
|
-
function
|
|
290
|
+
function qn(...t) {
|
|
293
291
|
const a = t[0];
|
|
294
292
|
if (t.length === 1) return a;
|
|
295
293
|
const n = () => {
|
|
@@ -307,7 +305,7 @@ function Hn(...t) {
|
|
|
307
305
|
};
|
|
308
306
|
return n.scopeName = a.scopeName, n;
|
|
309
307
|
}
|
|
310
|
-
var
|
|
308
|
+
var zn = [
|
|
311
309
|
"a",
|
|
312
310
|
"button",
|
|
313
311
|
"div",
|
|
@@ -325,8 +323,8 @@ var qn = [
|
|
|
325
323
|
"span",
|
|
326
324
|
"svg",
|
|
327
325
|
"ul"
|
|
328
|
-
], dt =
|
|
329
|
-
const n =
|
|
326
|
+
], dt = zn.reduce((t, a) => {
|
|
327
|
+
const n = $a(`Primitive.${a}`), r = A.forwardRef((s, d) => {
|
|
330
328
|
const { asChild: f, ...h } = s, g = f ? n : a;
|
|
331
329
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ e(g, { ...h, ref: d });
|
|
332
330
|
});
|
|
@@ -343,7 +341,7 @@ function Qn() {
|
|
|
343
341
|
return () => {
|
|
344
342
|
};
|
|
345
343
|
}
|
|
346
|
-
var ct = "Avatar", [Wn] =
|
|
344
|
+
var ct = "Avatar", [Wn] = Hn(ct), [Yn, Xt] = Wn(ct), Zt = A.forwardRef(
|
|
347
345
|
(t, a) => {
|
|
348
346
|
const { __scopeAvatar: n, ...r } = t, [s, d] = A.useState("idle");
|
|
349
347
|
return /* @__PURE__ */ e(
|
|
@@ -361,7 +359,7 @@ Zt.displayName = ct;
|
|
|
361
359
|
var er = "AvatarImage", tr = A.forwardRef(
|
|
362
360
|
(t, a) => {
|
|
363
361
|
const { __scopeAvatar: n, src: r, onLoadingStatusChange: s = () => {
|
|
364
|
-
}, ...d } = t, f = Xt(er, n), h = Jn(r, d), g =
|
|
362
|
+
}, ...d } = t, f = Xt(er, n), h = Jn(r, d), g = Ba((v) => {
|
|
365
363
|
s(v), f.onImageLoadingStatusChange(v);
|
|
366
364
|
});
|
|
367
365
|
return rt(() => {
|
|
@@ -672,7 +670,7 @@ function us({
|
|
|
672
670
|
return /* @__PURE__ */ o("div", { className: "flex flex-1 flex-col overflow-hidden", children: [
|
|
673
671
|
/* @__PURE__ */ o("div", { className: "flex shrink-0 items-center gap-2 border-b border-border px-5 py-2.5", children: [
|
|
674
672
|
/* @__PURE__ */ o("div", { className: "flex flex-1 items-center gap-2 rounded-[5px] border border-border bg-background px-2 focus-within:border-foreground/40", children: [
|
|
675
|
-
/* @__PURE__ */ e(
|
|
673
|
+
/* @__PURE__ */ e(Qr, { className: "h-3 w-3 text-muted-foreground" }),
|
|
676
674
|
/* @__PURE__ */ e(
|
|
677
675
|
"input",
|
|
678
676
|
{
|
|
@@ -688,7 +686,7 @@ function us({
|
|
|
688
686
|
type: "button",
|
|
689
687
|
onClick: () => v(""),
|
|
690
688
|
className: "flex h-4 w-4 items-center justify-center rounded-[3px] text-muted-foreground hover:bg-accent hover:text-foreground",
|
|
691
|
-
children: /* @__PURE__ */ e(
|
|
689
|
+
children: /* @__PURE__ */ e(zt, { className: "h-2.5 w-2.5" })
|
|
692
690
|
}
|
|
693
691
|
)
|
|
694
692
|
] }),
|
|
@@ -759,7 +757,7 @@ function ms({
|
|
|
759
757
|
onClick: n,
|
|
760
758
|
className: "group flex w-full items-center gap-3 border-b border-border/60 px-5 py-2.5 text-left hover:bg-accent/40",
|
|
761
759
|
children: [
|
|
762
|
-
/* @__PURE__ */ e("div", { className: "flex h-7 w-7 shrink-0 items-center justify-center rounded-[4px] border border-border bg-background text-muted-foreground", children: /* @__PURE__ */ e(
|
|
760
|
+
/* @__PURE__ */ e("div", { className: "flex h-7 w-7 shrink-0 items-center justify-center rounded-[4px] border border-border bg-background text-muted-foreground", children: /* @__PURE__ */ e(Jr, { className: "h-3.5 w-3.5" }) }),
|
|
763
761
|
/* @__PURE__ */ o("div", { className: "min-w-0 flex-1", children: [
|
|
764
762
|
/* @__PURE__ */ e("div", { className: "truncate text-[13px] font-medium text-foreground", children: t.name }),
|
|
765
763
|
/* @__PURE__ */ o("div", { className: "mt-0.5 flex items-center gap-2 text-[11px] text-muted-foreground", children: [
|
|
@@ -772,7 +770,7 @@ function ms({
|
|
|
772
770
|
s && /* @__PURE__ */ o($, { children: [
|
|
773
771
|
/* @__PURE__ */ e("span", { className: "text-border", children: "·" }),
|
|
774
772
|
/* @__PURE__ */ o("span", { className: "inline-flex items-center gap-1", children: [
|
|
775
|
-
/* @__PURE__ */ e(
|
|
773
|
+
/* @__PURE__ */ e(qt, { className: "h-2.5 w-2.5" }),
|
|
776
774
|
s
|
|
777
775
|
] })
|
|
778
776
|
] }),
|
|
@@ -799,7 +797,7 @@ function ms({
|
|
|
799
797
|
children: /* @__PURE__ */ e(ot, { className: "h-3 w-3" })
|
|
800
798
|
}
|
|
801
799
|
),
|
|
802
|
-
/* @__PURE__ */ e(
|
|
800
|
+
/* @__PURE__ */ e(Xr, { className: "h-3.5 w-3.5 text-muted-foreground" })
|
|
803
801
|
] })
|
|
804
802
|
]
|
|
805
803
|
}
|
|
@@ -807,7 +805,7 @@ function ms({
|
|
|
807
805
|
}
|
|
808
806
|
function hs({ onCreate: t }) {
|
|
809
807
|
return /* @__PURE__ */ o("div", { className: "flex h-full flex-col items-center justify-center gap-2 py-12 text-center", children: [
|
|
810
|
-
/* @__PURE__ */ e("div", { className: "flex h-9 w-9 items-center justify-center rounded-full border border-border bg-muted/40 text-muted-foreground", children: /* @__PURE__ */ e(
|
|
808
|
+
/* @__PURE__ */ e("div", { className: "flex h-9 w-9 items-center justify-center rounded-full border border-border bg-muted/40 text-muted-foreground", children: /* @__PURE__ */ e(Ht, { className: "h-4 w-4" }) }),
|
|
811
809
|
/* @__PURE__ */ e("div", { className: "text-[13px] font-medium text-foreground", children: "No groups yet" }),
|
|
812
810
|
/* @__PURE__ */ e("div", { className: "max-w-[320px] text-[11.5px] leading-[1.55] text-muted-foreground", children: "Groups let you grant shared access to dashboards. Create one and add members." }),
|
|
813
811
|
/* @__PURE__ */ o(
|
|
@@ -840,7 +838,7 @@ function ps({
|
|
|
840
838
|
isLoading: m,
|
|
841
839
|
error: c,
|
|
842
840
|
refetch: u
|
|
843
|
-
} =
|
|
841
|
+
} = Wr(t.id), l = (v == null ? void 0 : v.members) ?? cs, p = c ? cr(c, "Unable to load members for this group.") : null, x = t.type === "TENANT_GROUP" ? "tenant" : "organization", { users: w } = Yr({
|
|
844
842
|
type: x,
|
|
845
843
|
tenantId: t.tenantId || void 0,
|
|
846
844
|
active: !0,
|
|
@@ -848,7 +846,7 @@ function ps({
|
|
|
848
846
|
}), S = j(
|
|
849
847
|
() => new Set(l.map((y) => y.userId)),
|
|
850
848
|
[l]
|
|
851
|
-
), b = is(), L = ds(), M = ss(), [k, E] = N(!1), [I, X] = N(t.name), [$e, V] = N(!1), [ae,
|
|
849
|
+
), b = is(), L = ds(), M = ss(), [k, E] = N(!1), [I, X] = N(t.name), [$e, V] = N(!1), [ae, H] = N(t.description || ""), [ne, se] = N(""), [Be, oe] = N(!1), Se = j(() => {
|
|
852
850
|
const y = ne.trim().toLowerCase();
|
|
853
851
|
return w.filter((B) => !S.has(B.id)).filter(
|
|
854
852
|
(B) => !y || (B.name || "").toLowerCase().includes(y) || (B.email || "").toLowerCase().includes(y)
|
|
@@ -954,10 +952,10 @@ function ps({
|
|
|
954
952
|
autoFocus: !0,
|
|
955
953
|
rows: 2,
|
|
956
954
|
value: ae,
|
|
957
|
-
onChange: (y) =>
|
|
955
|
+
onChange: (y) => H(y.target.value),
|
|
958
956
|
maxLength: 200,
|
|
959
957
|
onKeyDown: (y) => {
|
|
960
|
-
y.key === "Escape" && (
|
|
958
|
+
y.key === "Escape" && (H(t.description || ""), V(!1)), y.key === "Enter" && (y.metaKey || y.ctrlKey) && ie();
|
|
961
959
|
},
|
|
962
960
|
placeholder: "What is this group for?",
|
|
963
961
|
className: "block w-full resize-none rounded-[5px] border border-border bg-background px-2 py-1.5 text-[12px] text-foreground placeholder:text-muted-foreground focus:border-foreground/40 focus:outline-none"
|
|
@@ -974,7 +972,7 @@ function ps({
|
|
|
974
972
|
{
|
|
975
973
|
type: "button",
|
|
976
974
|
onClick: () => {
|
|
977
|
-
|
|
975
|
+
H(t.description || ""), V(!1);
|
|
978
976
|
},
|
|
979
977
|
className: "h-6 rounded-[5px] px-2 text-[11px] font-medium text-foreground/80 hover:bg-accent",
|
|
980
978
|
children: "Cancel"
|
|
@@ -996,7 +994,7 @@ function ps({
|
|
|
996
994
|
{
|
|
997
995
|
type: "button",
|
|
998
996
|
onClick: () => {
|
|
999
|
-
n && (
|
|
997
|
+
n && (H(t.description || ""), V(!0));
|
|
1000
998
|
},
|
|
1001
999
|
disabled: !n,
|
|
1002
1000
|
title: n ? "Click to edit description" : void 0,
|
|
@@ -1040,15 +1038,15 @@ function ps({
|
|
|
1040
1038
|
/* @__PURE__ */ e("div", { className: "text-[12px] text-foreground", children: "No members yet" }),
|
|
1041
1039
|
/* @__PURE__ */ e("div", { className: "text-[11px] text-muted-foreground", children: s ? "Search above to add people to this group." : "This group does not have any members." })
|
|
1042
1040
|
] }) : l.map((y) => {
|
|
1043
|
-
var B,
|
|
1041
|
+
var B, q, z, K, de, Q;
|
|
1044
1042
|
return /* @__PURE__ */ o(
|
|
1045
1043
|
"div",
|
|
1046
1044
|
{
|
|
1047
1045
|
className: "group flex items-center gap-2 border-b border-border/60 px-5 py-2",
|
|
1048
1046
|
children: [
|
|
1049
|
-
/* @__PURE__ */ e(ur, { name: ((B = y.user) == null ? void 0 : B.name) || ((
|
|
1047
|
+
/* @__PURE__ */ e(ur, { name: ((B = y.user) == null ? void 0 : B.name) || ((q = y.user) == null ? void 0 : q.email) || "?" }),
|
|
1050
1048
|
/* @__PURE__ */ o("div", { className: "min-w-0 flex-1", children: [
|
|
1051
|
-
/* @__PURE__ */ e("div", { className: "truncate text-[12.5px] font-medium text-foreground", children: ((
|
|
1049
|
+
/* @__PURE__ */ e("div", { className: "truncate text-[12.5px] font-medium text-foreground", children: ((z = y.user) == null ? void 0 : z.name) || ((K = y.user) == null ? void 0 : K.email) || "Unknown" }),
|
|
1052
1050
|
((de = y.user) == null ? void 0 : de.email) && y.user.name && /* @__PURE__ */ e("div", { className: "truncate text-[10.5px] text-muted-foreground", children: y.user.email })
|
|
1053
1051
|
] }),
|
|
1054
1052
|
!a && /* @__PURE__ */ e("span", { className: "text-[10px] uppercase tracking-[0.06em] text-muted-foreground", children: y.userType }),
|
|
@@ -1060,7 +1058,7 @@ function ps({
|
|
|
1060
1058
|
disabled: !s || L.isPending,
|
|
1061
1059
|
"aria-label": `Remove ${((Q = y.user) == null ? void 0 : Q.name) || "member"}`,
|
|
1062
1060
|
className: "flex h-6 w-6 items-center justify-center rounded-[3px] text-muted-foreground opacity-0 transition-opacity hover:bg-accent hover:text-foreground group-hover:opacity-100 disabled:opacity-30",
|
|
1063
|
-
children: /* @__PURE__ */ e(
|
|
1061
|
+
children: /* @__PURE__ */ e(zt, { className: "h-3 w-3" })
|
|
1064
1062
|
}
|
|
1065
1063
|
)
|
|
1066
1064
|
]
|
|
@@ -1180,7 +1178,7 @@ function bs({
|
|
|
1180
1178
|
busy: h
|
|
1181
1179
|
}) {
|
|
1182
1180
|
const g = Lt(null), v = Lt(null), [m, c] = N(null);
|
|
1183
|
-
|
|
1181
|
+
tn(() => {
|
|
1184
1182
|
if (!n) {
|
|
1185
1183
|
c(null);
|
|
1186
1184
|
return;
|
|
@@ -1233,7 +1231,7 @@ function bs({
|
|
|
1233
1231
|
]
|
|
1234
1232
|
}
|
|
1235
1233
|
),
|
|
1236
|
-
u && typeof document < "u" &&
|
|
1234
|
+
u && typeof document < "u" && Sn(
|
|
1237
1235
|
/* @__PURE__ */ e(
|
|
1238
1236
|
"div",
|
|
1239
1237
|
{
|
|
@@ -1319,20 +1317,20 @@ function xs({
|
|
|
1319
1317
|
(s) => s.actions
|
|
1320
1318
|
);
|
|
1321
1319
|
return /* @__PURE__ */ e(Gt, { open: t, onOpenChange: a, children: /* @__PURE__ */ o(jt, { className: "rounded-control border-border/60 sm:max-w-[440px] sm:rounded-control", children: [
|
|
1322
|
-
/* @__PURE__ */ o(
|
|
1320
|
+
/* @__PURE__ */ o(Zr, { children: [
|
|
1323
1321
|
/* @__PURE__ */ e(et, { className: "text-[15px]", children: "Download settings" }),
|
|
1324
1322
|
/* @__PURE__ */ e(tt, { className: "text-[13px] leading-5", children: "Applies to every CSV downloaded or delivered from this dashboard. People can still change it for a single download." })
|
|
1325
1323
|
] }),
|
|
1326
1324
|
/* @__PURE__ */ o("div", { className: "space-y-2", children: [
|
|
1327
|
-
/* @__PURE__ */ e(
|
|
1325
|
+
/* @__PURE__ */ e(Fa, { htmlFor: "dashboard-csv-encoding", className: gs, children: "CSV encoding" }),
|
|
1328
1326
|
/* @__PURE__ */ o(
|
|
1329
|
-
|
|
1327
|
+
Ga,
|
|
1330
1328
|
{
|
|
1331
1329
|
value: n,
|
|
1332
1330
|
onValueChange: (s) => r({ csvEncoding: s }),
|
|
1333
1331
|
children: [
|
|
1334
|
-
/* @__PURE__ */ e(
|
|
1335
|
-
/* @__PURE__ */ e(
|
|
1332
|
+
/* @__PURE__ */ e(ja, { id: "dashboard-csv-encoding", size: "sm", children: /* @__PURE__ */ e(Va, {}) }),
|
|
1333
|
+
/* @__PURE__ */ e(Ha, { children: ea.map((s) => /* @__PURE__ */ e(qa, { value: s.value, children: s.label }, s.value)) })
|
|
1336
1334
|
]
|
|
1337
1335
|
}
|
|
1338
1336
|
)
|
|
@@ -1444,8 +1442,8 @@ function ys({
|
|
|
1444
1442
|
visible: t,
|
|
1445
1443
|
onSelect: a
|
|
1446
1444
|
}) {
|
|
1447
|
-
return t ? /* @__PURE__ */ o(
|
|
1448
|
-
/* @__PURE__ */ e(
|
|
1445
|
+
return t ? /* @__PURE__ */ o(_, { onSelect: a, children: [
|
|
1446
|
+
/* @__PURE__ */ e(ta, { className: "h-3.5 w-3.5" }),
|
|
1449
1447
|
"Schedule email report"
|
|
1450
1448
|
] }) : null;
|
|
1451
1449
|
}
|
|
@@ -1463,7 +1461,7 @@ function ws({
|
|
|
1463
1461
|
onSelect: n
|
|
1464
1462
|
}
|
|
1465
1463
|
),
|
|
1466
|
-
a ? /* @__PURE__ */ o(
|
|
1464
|
+
a ? /* @__PURE__ */ o(_, { onSelect: r, children: [
|
|
1467
1465
|
/* @__PURE__ */ e(re, { className: "h-3.5 w-3.5" }),
|
|
1468
1466
|
"Create analytical briefing"
|
|
1469
1467
|
] }) : null
|
|
@@ -1473,7 +1471,7 @@ function Ns(t) {
|
|
|
1473
1471
|
var v, m, c;
|
|
1474
1472
|
const { saved: a, draft: n, usage: r } = t, s = [], d = On(a);
|
|
1475
1473
|
for (const [u, l] of Object.entries(r.inputs))
|
|
1476
|
-
!l || !
|
|
1474
|
+
!l || !_t(a, u) || _t(n, u) || s.push({
|
|
1477
1475
|
target: "input",
|
|
1478
1476
|
id: u,
|
|
1479
1477
|
label: Ln(a, d, u),
|
|
@@ -1491,7 +1489,7 @@ function Ns(t) {
|
|
|
1491
1489
|
remembered: 0
|
|
1492
1490
|
});
|
|
1493
1491
|
}
|
|
1494
|
-
const h =
|
|
1492
|
+
const h = Pt(a), g = Pt(n);
|
|
1495
1493
|
for (const [u, l] of Object.entries(r.tables)) {
|
|
1496
1494
|
if (!h.has(u)) continue;
|
|
1497
1495
|
const p = Ue(a, u), x = ((m = p == null ? void 0 : p.title) == null ? void 0 : m.trim()) || "Untitled table";
|
|
@@ -1526,7 +1524,7 @@ function Ns(t) {
|
|
|
1526
1524
|
const Ss = "dashboard-bookmark-usage";
|
|
1527
1525
|
function ks(t) {
|
|
1528
1526
|
var g;
|
|
1529
|
-
const a = C((v) => v.viewerStateClient), n = (g = t.saved) == null ? void 0 : g.id, s =
|
|
1527
|
+
const a = C((v) => v.viewerStateClient), n = (g = t.saved) == null ? void 0 : g.id, s = ra({
|
|
1530
1528
|
// Keyed by the viewer, never by the client object (TanStack drops functions when hashing).
|
|
1531
1529
|
queryKey: [Ss, (a == null ? void 0 : a.viewerKey) ?? null],
|
|
1532
1530
|
queryFn: () => a.bookmarks.usage(),
|
|
@@ -1553,19 +1551,19 @@ function Ds({
|
|
|
1553
1551
|
}) {
|
|
1554
1552
|
const r = ks({ saved: t, draft: a, enabled: n });
|
|
1555
1553
|
return r.length ? /* @__PURE__ */ o(za, { children: [
|
|
1556
|
-
/* @__PURE__ */ e(
|
|
1554
|
+
/* @__PURE__ */ e(Ka, { asChild: !0, children: /* @__PURE__ */ o(
|
|
1557
1555
|
G,
|
|
1558
1556
|
{
|
|
1559
1557
|
variant: "ghost",
|
|
1560
1558
|
size: "xs",
|
|
1561
1559
|
className: "gap-1 text-muted-foreground hover:text-foreground",
|
|
1562
1560
|
children: [
|
|
1563
|
-
/* @__PURE__ */ e(
|
|
1561
|
+
/* @__PURE__ */ e(aa, { className: "h-3.5 w-3.5", "aria-hidden": "true" }),
|
|
1564
1562
|
"Affects saved views"
|
|
1565
1563
|
]
|
|
1566
1564
|
}
|
|
1567
1565
|
) }),
|
|
1568
|
-
/* @__PURE__ */ o(
|
|
1566
|
+
/* @__PURE__ */ o(Qa, { align: "end", className: "w-[320px] p-3 text-[12px]", children: [
|
|
1569
1567
|
/* @__PURE__ */ e("p", { className: "text-foreground", children: "This edit removes parts of the dashboard that viewers saved. Their views still open, with a note about what no longer applies." }),
|
|
1570
1568
|
/* @__PURE__ */ e(
|
|
1571
1569
|
"ul",
|
|
@@ -1597,45 +1595,45 @@ function Ft(t, a) {
|
|
|
1597
1595
|
semanticExecutionPayload: at(a)
|
|
1598
1596
|
};
|
|
1599
1597
|
}
|
|
1600
|
-
function
|
|
1598
|
+
function eo() {
|
|
1601
1599
|
var wt, Nt, St, kt;
|
|
1602
1600
|
const {
|
|
1603
1601
|
authToken: t,
|
|
1604
1602
|
tokenProps: a,
|
|
1605
1603
|
id: n,
|
|
1606
1604
|
showBriefings: r
|
|
1607
|
-
} = J(), s =
|
|
1605
|
+
} = J(), s = na(), { isLocalDev: d, isConsoleMode: f } = sa(), {
|
|
1608
1606
|
canEditDashboard: h,
|
|
1609
1607
|
hasInspectionUser: g,
|
|
1610
1608
|
inspectionMessage: v,
|
|
1611
1609
|
isInspectionMode: m,
|
|
1612
1610
|
isInspectionSurface: c
|
|
1613
|
-
} =
|
|
1611
|
+
} = oa(), { openBrandStudioPreview: u } = ia(), { permissions: l } = Vn(), p = da(), { isLoading: x } = ca(), w = C((i) => i.theme), S = C((i) => i.isDownloadingPdf), b = C((i) => i.dashboard), L = C((i) => i.selectedSheetId), M = (wt = b == null ? void 0 : b.sheets) == null ? void 0 : wt.find(
|
|
1614
1612
|
(i) => i.id === L
|
|
1615
|
-
), k =
|
|
1613
|
+
), k = kn(M), E = k ? (Nt = M == null ? void 0 : M.document) == null ? void 0 : Nt.page : void 0, I = C(
|
|
1616
1614
|
(i) => i.isDashboardEditing
|
|
1617
|
-
), { setDashboardTitle: X } = C((i) => i.actions), [$e, V] = N(!1), [ae,
|
|
1615
|
+
), { setDashboardTitle: X } = C((i) => i.actions), [$e, V] = N(!1), [ae, H] = N(!1), [ne, se] = N(!1), [Be, oe] = N(!1), [Se, Z] = N(null), [ie, ke] = N(null), { registerBriefingViewer: Ce } = la();
|
|
1618
1616
|
ge(
|
|
1619
1617
|
() => Ce((i) => ke(i)),
|
|
1620
1618
|
[Ce]
|
|
1621
1619
|
);
|
|
1622
|
-
const [ee, y] = N(!1), [B,
|
|
1620
|
+
const [ee, y] = N(!1), [B, q] = N(!1), [z, K] = N(null), [de, Q] = N([]), [lt, De] = N(!1), [mr, ut] = N(!1), U = C((i) => i.isVisualEditing);
|
|
1623
1621
|
Ct((i) => i.card);
|
|
1624
|
-
const hr =
|
|
1622
|
+
const hr = Pe(
|
|
1625
1623
|
(i) => i.selectedDashboard
|
|
1626
|
-
), pr =
|
|
1624
|
+
), pr = Pe(
|
|
1627
1625
|
(i) => i.initialDashboard
|
|
1628
1626
|
);
|
|
1629
|
-
|
|
1627
|
+
Pe((i) => i.selectedVisual), C((i) => i.selectedFrameId), Ct((i) => i.frame);
|
|
1630
1628
|
const mt = C(
|
|
1631
1629
|
(i) => i.showDashboardJSON
|
|
1632
1630
|
);
|
|
1633
1631
|
C((i) => i.onSaveFunction);
|
|
1634
1632
|
const { setIsDashboardEditing: ht, setShowDashboardJSON: pt, markDashboardSaved: fr } = C(
|
|
1635
1633
|
(i) => i.actions
|
|
1636
|
-
), { setInitialDashboard: ft, clearSelectedDashboard: Fe } =
|
|
1634
|
+
), { setInitialDashboard: ft, clearSelectedDashboard: Fe } = Pe(
|
|
1637
1635
|
(i) => i.actions
|
|
1638
|
-
), ce = !!a.orgUserId || !!(a.tenantId && a.endUserId && a.endUserEmail), { resources: Ee } =
|
|
1636
|
+
), ce = !!a.orgUserId || !!(a.tenantId && a.endUserId && a.endUserEmail), { resources: Ee } = ua(Je.DASHBOARD), O = vn(), { currentUser: br } = st(), gr = ma(br), F = hr || pr, W = ha({
|
|
1639
1637
|
config: a.config,
|
|
1640
1638
|
canNavigateDashboardHub: ce,
|
|
1641
1639
|
canShareDashboard: ((St = F == null ? void 0 : F.permissions) == null ? void 0 : St.canShare) === !0,
|
|
@@ -1643,7 +1641,7 @@ function ro() {
|
|
|
1643
1641
|
}), bt = F ? {
|
|
1644
1642
|
id: F.id,
|
|
1645
1643
|
title: (b == null ? void 0 : b.title) || F.title || "Dashboard"
|
|
1646
|
-
} : null, { handleAddNewFrame: xr } =
|
|
1644
|
+
} : null, { handleAddNewFrame: xr } = pa(), [Ge, je] = N(!1), [vr, le] = N(!1), [Ve, Ie] = N("close"), ue = fa(Je.DASHBOARD), [P, me] = N(null), yr = async (i, R) => {
|
|
1647
1645
|
if (!m) {
|
|
1648
1646
|
if (!(b != null && b.id)) {
|
|
1649
1647
|
console.log("No dashboard ID found");
|
|
@@ -1687,7 +1685,7 @@ function ro() {
|
|
|
1687
1685
|
}
|
|
1688
1686
|
}
|
|
1689
1687
|
}, [Ee, b == null ? void 0 : b.id, ft]);
|
|
1690
|
-
const wr = a.orgUserId || a.tenantId,
|
|
1688
|
+
const wr = a.orgUserId || a.tenantId, He = j(
|
|
1691
1689
|
() => Is({
|
|
1692
1690
|
accessToken: t == null ? void 0 : t.accessToken,
|
|
1693
1691
|
dashboardId: (b == null ? void 0 : b.id) || n || a.dashboard_id,
|
|
@@ -1707,7 +1705,7 @@ function ro() {
|
|
|
1707
1705
|
w,
|
|
1708
1706
|
a.dashboard_id
|
|
1709
1707
|
]
|
|
1710
|
-
),
|
|
1708
|
+
), qe = I && !U && !m && wr && h, { setDashboard: ze } = C((i) => i.actions), Nr = C(
|
|
1711
1709
|
(i) => i.semanticExecutionPayload
|
|
1712
1710
|
), Sr = () => {
|
|
1713
1711
|
ht(!0);
|
|
@@ -1716,36 +1714,36 @@ function ro() {
|
|
|
1716
1714
|
};
|
|
1717
1715
|
ge(() => {
|
|
1718
1716
|
if (!I) {
|
|
1719
|
-
|
|
1717
|
+
P && me(null);
|
|
1720
1718
|
return;
|
|
1721
1719
|
}
|
|
1722
|
-
if (
|
|
1720
|
+
if (P || !b || x)
|
|
1723
1721
|
return;
|
|
1724
|
-
const i =
|
|
1722
|
+
const i = ba(C.getState());
|
|
1725
1723
|
me(
|
|
1726
1724
|
Ft(i.dashboard, i.semanticExecutionPayload)
|
|
1727
1725
|
);
|
|
1728
1726
|
}, [
|
|
1729
1727
|
b,
|
|
1730
|
-
|
|
1728
|
+
P,
|
|
1731
1729
|
I,
|
|
1732
1730
|
x,
|
|
1733
1731
|
Nr
|
|
1734
1732
|
]);
|
|
1735
|
-
const Ke = (
|
|
1733
|
+
const Ke = (P == null ? void 0 : P.dashboard) ?? null, { isDirty: Qe, isDirtyPending: kr, resetDirty: he } = In(
|
|
1736
1734
|
b,
|
|
1737
1735
|
Ke,
|
|
1738
1736
|
300,
|
|
1739
1737
|
1e3,
|
|
1740
1738
|
An
|
|
1741
|
-
), gt =
|
|
1739
|
+
), gt = rn(
|
|
1742
1740
|
Ke,
|
|
1743
1741
|
m,
|
|
1744
1742
|
h
|
|
1745
1743
|
), xt = Qe || kr, Oe = Ge || ue.isPending, Cr = () => {
|
|
1746
1744
|
if (m) {
|
|
1747
|
-
|
|
1748
|
-
semanticExecutionPayload:
|
|
1745
|
+
P && ze(P.dashboard, {
|
|
1746
|
+
semanticExecutionPayload: P.semanticExecutionPayload
|
|
1749
1747
|
}), Ae(), he();
|
|
1750
1748
|
return;
|
|
1751
1749
|
}
|
|
@@ -1757,12 +1755,12 @@ function ro() {
|
|
|
1757
1755
|
});
|
|
1758
1756
|
}, Er = () => {
|
|
1759
1757
|
const i = Ve === "home" && !!ce;
|
|
1760
|
-
|
|
1761
|
-
semanticExecutionPayload:
|
|
1758
|
+
P && ze(P.dashboard, {
|
|
1759
|
+
semanticExecutionPayload: P.semanticExecutionPayload
|
|
1762
1760
|
}), Ae(), i && Fe(), Ie("close"), le(!1), he();
|
|
1763
1761
|
}, Ir = () => {
|
|
1764
|
-
|
|
1765
|
-
semanticExecutionPayload:
|
|
1762
|
+
P && (ze(P.dashboard, {
|
|
1763
|
+
semanticExecutionPayload: P.semanticExecutionPayload
|
|
1766
1764
|
}), he());
|
|
1767
1765
|
}, Ar = () => {
|
|
1768
1766
|
if (ce) {
|
|
@@ -1781,24 +1779,24 @@ function ro() {
|
|
|
1781
1779
|
return;
|
|
1782
1780
|
const T = (i == null ? void 0 : i.closeAfterSave) ?? lt, te = (i == null ? void 0 : i.navigateHomeAfterSave) ?? !1;
|
|
1783
1781
|
De(T), T && le(!1);
|
|
1784
|
-
const
|
|
1785
|
-
|
|
1786
|
-
const
|
|
1782
|
+
const Pr = at(R);
|
|
1783
|
+
q(!0), K(null), Q([]), je(!0);
|
|
1784
|
+
const _r = {
|
|
1787
1785
|
template: R
|
|
1788
1786
|
};
|
|
1789
1787
|
ue.mutate(
|
|
1790
1788
|
{
|
|
1791
1789
|
resourceId: R.id,
|
|
1792
|
-
data:
|
|
1790
|
+
data: _r
|
|
1793
1791
|
},
|
|
1794
1792
|
{
|
|
1795
1793
|
onSuccess: () => {
|
|
1796
1794
|
je(!1), fr(), D.success("Dashboard saved!"), me(
|
|
1797
1795
|
Ft(
|
|
1798
|
-
|
|
1796
|
+
Pr,
|
|
1799
1797
|
C.getState().semanticExecutionPayload
|
|
1800
1798
|
)
|
|
1801
|
-
),
|
|
1799
|
+
), q(!1), De(!1), T && (Ae(), he(), te && ce && Fe()), Ie("close");
|
|
1802
1800
|
},
|
|
1803
1801
|
onError: (Tr) => {
|
|
1804
1802
|
je(!1), K("Failed to save dashboard. Please try again.");
|
|
@@ -1823,14 +1821,14 @@ function ro() {
|
|
|
1823
1821
|
dashboardStateTitle: b.title,
|
|
1824
1822
|
dashboardId: b == null ? void 0 : b.id
|
|
1825
1823
|
});
|
|
1826
|
-
const Or = ce && !!(t != null && t.accessToken) && !!(a != null && a.apiServiceUrl), Lr = !m && W.showDashboardHub && Or, Mr = !m && p && W.showDashboardHub, Y = (b == null ? void 0 : b.id) || null, yt =
|
|
1824
|
+
const Or = ce && !!(t != null && t.accessToken) && !!(a != null && a.apiServiceUrl), Lr = !m && W.showDashboardHub && Or, Mr = !m && p && W.showDashboardHub, Y = (b == null ? void 0 : b.id) || null, yt = ga(
|
|
1827
1825
|
(kt = a.config) == null ? void 0 : kt.showBriefings,
|
|
1828
1826
|
r
|
|
1829
|
-
), Le =
|
|
1827
|
+
), Le = an(Y);
|
|
1830
1828
|
if (!p && !U)
|
|
1831
1829
|
return null;
|
|
1832
1830
|
const Ye = !U && p && !m;
|
|
1833
|
-
return /* @__PURE__ */ e(
|
|
1831
|
+
return /* @__PURE__ */ e(nn, { width: O.width, hasOverflowMenu: Ye, children: /* @__PURE__ */ o(
|
|
1834
1832
|
"div",
|
|
1835
1833
|
{
|
|
1836
1834
|
ref: O.measure,
|
|
@@ -1839,14 +1837,14 @@ function ro() {
|
|
|
1839
1837
|
children: [
|
|
1840
1838
|
/* @__PURE__ */ o("div", { className: "flex min-w-[80px] flex-1 items-center gap-2", children: [
|
|
1841
1839
|
Mr && !U && /* @__PURE__ */ e(
|
|
1842
|
-
|
|
1840
|
+
xn,
|
|
1843
1841
|
{
|
|
1844
1842
|
"aria-label": "Dashboard Hub",
|
|
1845
1843
|
tooltip: "Dashboard Hub",
|
|
1846
1844
|
onClick: Ar,
|
|
1847
1845
|
className: "h-7 w-7 px-0",
|
|
1848
1846
|
buttonProps: { size: "xs" },
|
|
1849
|
-
children: /* @__PURE__ */ e(
|
|
1847
|
+
children: /* @__PURE__ */ e(xa, { className: "h-3.5 w-3.5" })
|
|
1850
1848
|
}
|
|
1851
1849
|
),
|
|
1852
1850
|
!U && p && (x ? /* @__PURE__ */ e(
|
|
@@ -1859,7 +1857,7 @@ function ro() {
|
|
|
1859
1857
|
}
|
|
1860
1858
|
) : /* @__PURE__ */ o("div", { className: "flex min-w-0 items-center gap-1", children: [
|
|
1861
1859
|
/* @__PURE__ */ e(
|
|
1862
|
-
|
|
1860
|
+
va,
|
|
1863
1861
|
{
|
|
1864
1862
|
value: vt || "Untitled Dashboard",
|
|
1865
1863
|
onSave: (i) => {
|
|
@@ -1871,7 +1869,7 @@ function ro() {
|
|
|
1871
1869
|
const R = (b == null ? void 0 : b.title) || "";
|
|
1872
1870
|
X(i), yr(i, R);
|
|
1873
1871
|
},
|
|
1874
|
-
isEditable:
|
|
1872
|
+
isEditable: ya({
|
|
1875
1873
|
isDashboardEditing: I,
|
|
1876
1874
|
canEditDashboard: h === !0 && !m
|
|
1877
1875
|
}),
|
|
@@ -1881,17 +1879,17 @@ function ro() {
|
|
|
1881
1879
|
isPending: ue.isPending
|
|
1882
1880
|
}
|
|
1883
1881
|
),
|
|
1884
|
-
!m && Y && /* @__PURE__ */ e(
|
|
1882
|
+
!m && Y && /* @__PURE__ */ e(sn, { dashboardId: Y })
|
|
1885
1883
|
] }))
|
|
1886
1884
|
] }),
|
|
1887
1885
|
/* @__PURE__ */ o("div", { className: "flex min-w-0 items-center gap-1.5", children: [
|
|
1888
1886
|
/* @__PURE__ */ o("div", { className: "-m-1 flex min-w-0 items-center gap-1.5 overflow-x-auto p-1 [scrollbar-width:thin] [&>*]:shrink-0", children: [
|
|
1889
1887
|
U && /* @__PURE__ */ o($, { children: [
|
|
1890
|
-
/* @__PURE__ */ e(
|
|
1891
|
-
/* @__PURE__ */ e(
|
|
1888
|
+
/* @__PURE__ */ e(on, {}),
|
|
1889
|
+
/* @__PURE__ */ e(dn, {})
|
|
1892
1890
|
] }),
|
|
1893
|
-
p && !m && /* @__PURE__ */ e(
|
|
1894
|
-
!U && I && !m && l.canUseFilters && p && /* @__PURE__ */ e(
|
|
1891
|
+
p && !m && /* @__PURE__ */ e(yn, {}),
|
|
1892
|
+
!U && I && !m && l.canUseFilters && p && /* @__PURE__ */ e(cn, {}),
|
|
1895
1893
|
I && !U && !m && p && !k && /* @__PURE__ */ o("div", { className: "inline-flex h-7 items-stretch overflow-hidden rounded-control border border-input bg-background", children: [
|
|
1896
1894
|
/* @__PURE__ */ o(
|
|
1897
1895
|
G,
|
|
@@ -1921,7 +1919,7 @@ function ro() {
|
|
|
1921
1919
|
className: "h-full w-7 rounded-none border-0 border-l border-border/60 px-0 shadow-none hover:bg-accent",
|
|
1922
1920
|
"aria-label": "Open visual options",
|
|
1923
1921
|
disabled: !I,
|
|
1924
|
-
children: /* @__PURE__ */ e(
|
|
1922
|
+
children: /* @__PURE__ */ e(Wa, { className: "h-3.5 w-3.5" })
|
|
1925
1923
|
}
|
|
1926
1924
|
) }),
|
|
1927
1925
|
/* @__PURE__ */ e(
|
|
@@ -1929,7 +1927,7 @@ function ro() {
|
|
|
1929
1927
|
{
|
|
1930
1928
|
align: "end",
|
|
1931
1929
|
className: "z-[60] w-48 rounded-[6px] border-border/60 p-1 shadow-sm",
|
|
1932
|
-
children: /* @__PURE__ */ o(
|
|
1930
|
+
children: /* @__PURE__ */ o(_, { onClick: () => ut(!0), children: [
|
|
1933
1931
|
/* @__PURE__ */ e(re, { className: "h-3.5 w-3.5" }),
|
|
1934
1932
|
"From library..."
|
|
1935
1933
|
] })
|
|
@@ -1937,14 +1935,14 @@ function ro() {
|
|
|
1937
1935
|
)
|
|
1938
1936
|
] }),
|
|
1939
1937
|
/* @__PURE__ */ e(
|
|
1940
|
-
|
|
1938
|
+
ln,
|
|
1941
1939
|
{
|
|
1942
1940
|
open: mr,
|
|
1943
1941
|
onOpenChange: ut
|
|
1944
1942
|
}
|
|
1945
1943
|
)
|
|
1946
1944
|
] }),
|
|
1947
|
-
!m && p && /* @__PURE__ */ e(
|
|
1945
|
+
!m && p && /* @__PURE__ */ e(un, {}),
|
|
1948
1946
|
!U && !I && (h || m) && (!c || !g || h !== void 0) && p && /* @__PURE__ */ o("div", { className: "inline-flex items-center gap-1", children: [
|
|
1949
1947
|
/* @__PURE__ */ o(
|
|
1950
1948
|
G,
|
|
@@ -1955,25 +1953,25 @@ function ro() {
|
|
|
1955
1953
|
title: O.width === "sm" ? m ? "Inspect" : "Edit" : void 0,
|
|
1956
1954
|
className: O.width === "sm" ? "w-7 px-0" : void 0,
|
|
1957
1955
|
children: [
|
|
1958
|
-
/* @__PURE__ */ e(
|
|
1956
|
+
/* @__PURE__ */ e(wa, { className: "h-3.5 w-3.5" }),
|
|
1959
1957
|
O.width !== "sm" && (m ? "Inspect" : "Edit")
|
|
1960
1958
|
]
|
|
1961
1959
|
}
|
|
1962
1960
|
),
|
|
1963
|
-
v ? /* @__PURE__ */ e(
|
|
1964
|
-
/* @__PURE__ */ e(
|
|
1961
|
+
v ? /* @__PURE__ */ e(Ya, { children: /* @__PURE__ */ o(Ja, { children: [
|
|
1962
|
+
/* @__PURE__ */ e(Xa, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1965
1963
|
"button",
|
|
1966
1964
|
{
|
|
1967
1965
|
type: "button",
|
|
1968
1966
|
"aria-label": v,
|
|
1969
1967
|
className: "inline-flex size-6 items-center justify-center rounded-control text-muted-foreground outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
1970
|
-
children: /* @__PURE__ */ e(
|
|
1968
|
+
children: /* @__PURE__ */ e(Za, { "aria-hidden": "true", className: "size-3.5" })
|
|
1971
1969
|
}
|
|
1972
1970
|
) }),
|
|
1973
|
-
/* @__PURE__ */ e(
|
|
1971
|
+
/* @__PURE__ */ e(en, { children: /* @__PURE__ */ e("p", { children: v }) })
|
|
1974
1972
|
] }) }) : null
|
|
1975
1973
|
] }),
|
|
1976
|
-
|
|
1974
|
+
qe && p && Qe && /* @__PURE__ */ e(
|
|
1977
1975
|
Ds,
|
|
1978
1976
|
{
|
|
1979
1977
|
saved: Ke,
|
|
@@ -1981,7 +1979,7 @@ function ro() {
|
|
|
1981
1979
|
enabled: I && !m
|
|
1982
1980
|
}
|
|
1983
1981
|
),
|
|
1984
|
-
|
|
1982
|
+
qe && p && Qe && /* @__PURE__ */ o(
|
|
1985
1983
|
G,
|
|
1986
1984
|
{
|
|
1987
1985
|
variant: "outline",
|
|
@@ -1992,12 +1990,12 @@ function ro() {
|
|
|
1992
1990
|
title: O.width === "sm" ? "Undo" : void 0,
|
|
1993
1991
|
className: O.width === "sm" ? "w-7 px-0" : void 0,
|
|
1994
1992
|
children: [
|
|
1995
|
-
/* @__PURE__ */ e(
|
|
1993
|
+
/* @__PURE__ */ e(Na, { className: "h-3.5 w-3.5" }),
|
|
1996
1994
|
O.width !== "sm" && "Undo"
|
|
1997
1995
|
]
|
|
1998
1996
|
}
|
|
1999
1997
|
),
|
|
2000
|
-
|
|
1998
|
+
qe && p && /* @__PURE__ */ o(
|
|
2001
1999
|
G,
|
|
2002
2000
|
{
|
|
2003
2001
|
size: "xs",
|
|
@@ -2020,18 +2018,18 @@ function ro() {
|
|
|
2020
2018
|
title: O.width === "sm" ? "Close" : void 0,
|
|
2021
2019
|
className: O.width === "sm" ? "w-7 px-0" : void 0,
|
|
2022
2020
|
children: [
|
|
2023
|
-
/* @__PURE__ */ e(
|
|
2021
|
+
/* @__PURE__ */ e(Sa, { className: "h-3.5 w-3.5" }),
|
|
2024
2022
|
O.width !== "sm" && "Close"
|
|
2025
2023
|
]
|
|
2026
2024
|
}
|
|
2027
2025
|
)
|
|
2028
2026
|
] }),
|
|
2029
2027
|
!U && p && /* @__PURE__ */ o($, { children: [
|
|
2030
|
-
/* @__PURE__ */ e(
|
|
2031
|
-
f && h === !0 && !m && /* @__PURE__ */ e(
|
|
2028
|
+
/* @__PURE__ */ e(mn, {}),
|
|
2029
|
+
f && h === !0 && !m && /* @__PURE__ */ e(hn, {})
|
|
2032
2030
|
] }),
|
|
2033
2031
|
!U && d && O.width === "lg" && /* @__PURE__ */ e(jn, {}),
|
|
2034
|
-
Ye && /* @__PURE__ */ e(
|
|
2032
|
+
Ye && /* @__PURE__ */ e(pn, {}),
|
|
2035
2033
|
Ye && /* @__PURE__ */ o(Dt, { children: [
|
|
2036
2034
|
/* @__PURE__ */ e(Et, { asChild: !0, children: /* @__PURE__ */ e(
|
|
2037
2035
|
G,
|
|
@@ -2040,7 +2038,7 @@ function ro() {
|
|
|
2040
2038
|
size: "xs",
|
|
2041
2039
|
className: "w-7 px-0",
|
|
2042
2040
|
"aria-label": "More dashboard options",
|
|
2043
|
-
children: /* @__PURE__ */ e(
|
|
2041
|
+
children: /* @__PURE__ */ e(ka, { className: "h-3.5 w-3.5" })
|
|
2044
2042
|
}
|
|
2045
2043
|
) }),
|
|
2046
2044
|
/* @__PURE__ */ o(
|
|
@@ -2052,27 +2050,27 @@ function ro() {
|
|
|
2052
2050
|
/* @__PURE__ */ e(Es, {}),
|
|
2053
2051
|
Le.available && Lr && /* @__PURE__ */ o($, { children: [
|
|
2054
2052
|
/* @__PURE__ */ o(
|
|
2055
|
-
|
|
2053
|
+
_,
|
|
2056
2054
|
{
|
|
2057
2055
|
disabled: Le.disabled,
|
|
2058
2056
|
onSelect: Le.toggle,
|
|
2059
2057
|
children: [
|
|
2060
|
-
/* @__PURE__ */ e(
|
|
2058
|
+
/* @__PURE__ */ e(Ca, { className: "h-3.5 w-3.5" }),
|
|
2061
2059
|
/* @__PURE__ */ e("span", { className: "flex-1", children: "Default dashboard" }),
|
|
2062
|
-
Le.isDefault && /* @__PURE__ */ e(
|
|
2060
|
+
Le.isDefault && /* @__PURE__ */ e(Kt, { className: "h-3.5 w-3.5" })
|
|
2063
2061
|
]
|
|
2064
2062
|
}
|
|
2065
2063
|
),
|
|
2066
2064
|
/* @__PURE__ */ e(be, {})
|
|
2067
2065
|
] }),
|
|
2068
|
-
/* @__PURE__ */ e(
|
|
2066
|
+
/* @__PURE__ */ e(_e, { children: "Reports & briefings" }),
|
|
2069
2067
|
/* @__PURE__ */ o(
|
|
2070
|
-
|
|
2068
|
+
_,
|
|
2071
2069
|
{
|
|
2072
2070
|
disabled: S,
|
|
2073
2071
|
onSelect: () => y(!0),
|
|
2074
2072
|
children: [
|
|
2075
|
-
/* @__PURE__ */ e(
|
|
2073
|
+
/* @__PURE__ */ e(Da, { className: "h-3.5 w-3.5" }),
|
|
2076
2074
|
"Export"
|
|
2077
2075
|
]
|
|
2078
2076
|
}
|
|
@@ -2087,44 +2085,44 @@ function ro() {
|
|
|
2087
2085
|
}
|
|
2088
2086
|
),
|
|
2089
2087
|
I && /* @__PURE__ */ o(
|
|
2090
|
-
|
|
2088
|
+
_,
|
|
2091
2089
|
{
|
|
2092
2090
|
onSelect: () => oe(!0),
|
|
2093
2091
|
children: [
|
|
2094
|
-
/* @__PURE__ */ e(
|
|
2092
|
+
/* @__PURE__ */ e(Ea, { className: "h-3.5 w-3.5" }),
|
|
2095
2093
|
"Download settings"
|
|
2096
2094
|
]
|
|
2097
2095
|
}
|
|
2098
2096
|
),
|
|
2099
2097
|
/* @__PURE__ */ e(be, {}),
|
|
2100
2098
|
(W.showDashboardSharing || W.showGroupManagement) && /* @__PURE__ */ o($, { children: [
|
|
2101
|
-
/* @__PURE__ */ e(
|
|
2102
|
-
W.showDashboardSharing && /* @__PURE__ */ o(
|
|
2103
|
-
/* @__PURE__ */ e(
|
|
2099
|
+
/* @__PURE__ */ e(_e, { children: "Access" }),
|
|
2100
|
+
W.showDashboardSharing && /* @__PURE__ */ o(_, { onSelect: () => V(!0), children: [
|
|
2101
|
+
/* @__PURE__ */ e(Ia, { className: "h-3.5 w-3.5" }),
|
|
2104
2102
|
"Share"
|
|
2105
2103
|
] }),
|
|
2106
2104
|
W.showGroupManagement && /* @__PURE__ */ o(
|
|
2107
|
-
|
|
2105
|
+
_,
|
|
2108
2106
|
{
|
|
2109
|
-
onClick: () =>
|
|
2107
|
+
onClick: () => H(!0),
|
|
2110
2108
|
children: [
|
|
2111
|
-
/* @__PURE__ */ e(
|
|
2109
|
+
/* @__PURE__ */ e(Ht, { className: "h-3.5 w-3.5" }),
|
|
2112
2110
|
"Manage Groups"
|
|
2113
2111
|
]
|
|
2114
2112
|
}
|
|
2115
2113
|
),
|
|
2116
2114
|
/* @__PURE__ */ e(be, {})
|
|
2117
2115
|
] }),
|
|
2118
|
-
/* @__PURE__ */ e(
|
|
2119
|
-
/* @__PURE__ */ o(
|
|
2120
|
-
/* @__PURE__ */ e(
|
|
2116
|
+
/* @__PURE__ */ e(_e, { children: "Preferences" }),
|
|
2117
|
+
/* @__PURE__ */ o(_, { onClick: () => se(!0), children: [
|
|
2118
|
+
/* @__PURE__ */ e(qt, { className: "h-3.5 w-3.5" }),
|
|
2121
2119
|
"Report preferences"
|
|
2122
2120
|
] }),
|
|
2123
2121
|
d && p && /* @__PURE__ */ o($, { children: [
|
|
2124
2122
|
/* @__PURE__ */ e(be, {}),
|
|
2125
|
-
/* @__PURE__ */ e(
|
|
2123
|
+
/* @__PURE__ */ e(_e, { children: "Developer" }),
|
|
2126
2124
|
/* @__PURE__ */ o(
|
|
2127
|
-
|
|
2125
|
+
_,
|
|
2128
2126
|
{
|
|
2129
2127
|
onSelect: () => {
|
|
2130
2128
|
var i;
|
|
@@ -2139,18 +2137,18 @@ function ro() {
|
|
|
2139
2137
|
}
|
|
2140
2138
|
),
|
|
2141
2139
|
k && /* @__PURE__ */ o(
|
|
2142
|
-
|
|
2140
|
+
_,
|
|
2143
2141
|
{
|
|
2144
|
-
disabled: !
|
|
2142
|
+
disabled: !He,
|
|
2145
2143
|
onSelect: () => {
|
|
2146
2144
|
var i;
|
|
2147
|
-
if (!
|
|
2145
|
+
if (!He) {
|
|
2148
2146
|
D.error(
|
|
2149
2147
|
"Open a document sheet with a token to copy the local PDF URL"
|
|
2150
2148
|
);
|
|
2151
2149
|
return;
|
|
2152
2150
|
}
|
|
2153
|
-
(i = navigator == null ? void 0 : navigator.clipboard) != null && i.writeText ? navigator.clipboard.writeText(
|
|
2151
|
+
(i = navigator == null ? void 0 : navigator.clipboard) != null && i.writeText ? navigator.clipboard.writeText(He).then(
|
|
2154
2152
|
() => D.success(
|
|
2155
2153
|
"Local document PDF URL copied to clipboard"
|
|
2156
2154
|
)
|
|
@@ -2167,25 +2165,25 @@ function ro() {
|
|
|
2167
2165
|
}
|
|
2168
2166
|
),
|
|
2169
2167
|
/* @__PURE__ */ o(
|
|
2170
|
-
|
|
2168
|
+
_,
|
|
2171
2169
|
{
|
|
2172
|
-
onSelect: () =>
|
|
2170
|
+
onSelect: () => fn(a.apiServiceUrl),
|
|
2173
2171
|
children: [
|
|
2174
2172
|
/* @__PURE__ */ e(Rn, { className: "h-3.5 w-3.5" }),
|
|
2175
2173
|
"Invalidate token"
|
|
2176
2174
|
]
|
|
2177
2175
|
}
|
|
2178
2176
|
),
|
|
2179
|
-
/* @__PURE__ */ o(
|
|
2180
|
-
/* @__PURE__ */ e(
|
|
2177
|
+
/* @__PURE__ */ o(_, { onSelect: u, children: [
|
|
2178
|
+
/* @__PURE__ */ e(Pn, { className: "h-3.5 w-3.5" }),
|
|
2181
2179
|
"Brand Studio"
|
|
2182
2180
|
] }),
|
|
2183
2181
|
I && /* @__PURE__ */ o(
|
|
2184
|
-
|
|
2182
|
+
_,
|
|
2185
2183
|
{
|
|
2186
2184
|
onSelect: () => pt(!mt),
|
|
2187
2185
|
children: [
|
|
2188
|
-
/* @__PURE__ */ e(
|
|
2186
|
+
/* @__PURE__ */ e(_n, { className: "h-3.5 w-3.5" }),
|
|
2189
2187
|
mt ? "Hide dashboard JSON" : "Show dashboard JSON"
|
|
2190
2188
|
]
|
|
2191
2189
|
}
|
|
@@ -2196,7 +2194,7 @@ function ro() {
|
|
|
2196
2194
|
)
|
|
2197
2195
|
] }),
|
|
2198
2196
|
$e && bt && /* @__PURE__ */ e(
|
|
2199
|
-
|
|
2197
|
+
Aa,
|
|
2200
2198
|
{
|
|
2201
2199
|
resource: bt,
|
|
2202
2200
|
resourceType: Je.DASHBOARD,
|
|
@@ -2207,11 +2205,11 @@ function ro() {
|
|
|
2207
2205
|
ls,
|
|
2208
2206
|
{
|
|
2209
2207
|
open: ae,
|
|
2210
|
-
onOpenChange:
|
|
2208
|
+
onOpenChange: H
|
|
2211
2209
|
}
|
|
2212
2210
|
),
|
|
2213
2211
|
/* @__PURE__ */ e(
|
|
2214
|
-
|
|
2212
|
+
wn,
|
|
2215
2213
|
{
|
|
2216
2214
|
open: ne,
|
|
2217
2215
|
onOpenChange: se
|
|
@@ -2225,7 +2223,7 @@ function ro() {
|
|
|
2225
2223
|
}
|
|
2226
2224
|
),
|
|
2227
2225
|
Y && (Se || ie) ? /* @__PURE__ */ e(
|
|
2228
|
-
|
|
2226
|
+
bn,
|
|
2229
2227
|
{
|
|
2230
2228
|
dashboardId: Y,
|
|
2231
2229
|
dashboardTitle: (b == null ? void 0 : b.title) || (F == null ? void 0 : F.title),
|
|
@@ -2239,34 +2237,34 @@ function ro() {
|
|
|
2239
2237
|
}
|
|
2240
2238
|
) : null,
|
|
2241
2239
|
p && /* @__PURE__ */ e(
|
|
2242
|
-
|
|
2240
|
+
Oa,
|
|
2243
2241
|
{
|
|
2244
2242
|
open: ee,
|
|
2245
2243
|
onOpenChange: y
|
|
2246
2244
|
}
|
|
2247
2245
|
),
|
|
2248
2246
|
/* @__PURE__ */ e(
|
|
2249
|
-
|
|
2247
|
+
La,
|
|
2250
2248
|
{
|
|
2251
2249
|
open: B,
|
|
2252
2250
|
onOpenChange: (i) => {
|
|
2253
|
-
!i && Ge && !
|
|
2251
|
+
!i && Ge && !z || (q(i), i || (K(null), Q([]), De(!1)));
|
|
2254
2252
|
},
|
|
2255
|
-
children: /* @__PURE__ */ o(
|
|
2256
|
-
/* @__PURE__ */ o(
|
|
2257
|
-
/* @__PURE__ */ e(
|
|
2258
|
-
/* @__PURE__ */ e(
|
|
2253
|
+
children: /* @__PURE__ */ o(Ma, { className: "max-w-sm", children: [
|
|
2254
|
+
/* @__PURE__ */ o(Pa, { children: [
|
|
2255
|
+
/* @__PURE__ */ e(_a, { children: z ? "Save failed" : "Saving dashboard" }),
|
|
2256
|
+
/* @__PURE__ */ e(Ta, { className: "pt-2", children: z ? "We could not save the dashboard. Please try again." : "Please wait while we save your changes." }),
|
|
2259
2257
|
de.length > 0 && /* @__PURE__ */ o("div", { className: "space-y-1 rounded-md border border-destructive/20 bg-destructive/5 p-3 text-left", children: [
|
|
2260
2258
|
/* @__PURE__ */ e("div", { className: "text-sm font-medium text-destructive", children: "What needs attention" }),
|
|
2261
2259
|
/* @__PURE__ */ e("ul", { className: "list-disc space-y-1 pl-4 text-xs text-muted-foreground", children: de.slice(0, 5).map((i) => /* @__PURE__ */ e("li", { children: i }, i)) })
|
|
2262
2260
|
] })
|
|
2263
2261
|
] }),
|
|
2264
|
-
/* @__PURE__ */ e(
|
|
2262
|
+
/* @__PURE__ */ e(Ra, { className: "flex-col gap-2 sm:flex-row sm:justify-end", children: z ? /* @__PURE__ */ o($, { children: [
|
|
2265
2263
|
/* @__PURE__ */ e(
|
|
2266
|
-
|
|
2264
|
+
Ua,
|
|
2267
2265
|
{
|
|
2268
2266
|
onClick: () => {
|
|
2269
|
-
|
|
2267
|
+
q(!1), K(null), Q([]), De(!1);
|
|
2270
2268
|
},
|
|
2271
2269
|
className: "m-0",
|
|
2272
2270
|
children: "Close"
|
|
@@ -2291,7 +2289,7 @@ function ro() {
|
|
|
2291
2289
|
}
|
|
2292
2290
|
),
|
|
2293
2291
|
/* @__PURE__ */ e(
|
|
2294
|
-
|
|
2292
|
+
gn,
|
|
2295
2293
|
{
|
|
2296
2294
|
open: vr,
|
|
2297
2295
|
onOpenChange: (i) => {
|
|
@@ -2310,13 +2308,13 @@ function ro() {
|
|
|
2310
2308
|
) });
|
|
2311
2309
|
}
|
|
2312
2310
|
function Es() {
|
|
2313
|
-
const t =
|
|
2311
|
+
const t = Nn();
|
|
2314
2312
|
return t.length === 0 ? null : /* @__PURE__ */ o($, { children: [
|
|
2315
|
-
t.map((a) => /* @__PURE__ */ o(
|
|
2313
|
+
t.map((a) => /* @__PURE__ */ o(_, { onSelect: a.onSelect, children: [
|
|
2316
2314
|
a.icon,
|
|
2317
2315
|
/* @__PURE__ */ e("span", { className: "flex-1", children: a.label }),
|
|
2318
2316
|
a.hint && /* @__PURE__ */ e("span", { className: "text-[11px] text-muted-foreground", children: a.hint }),
|
|
2319
|
-
a.checked && /* @__PURE__ */ e(
|
|
2317
|
+
a.checked && /* @__PURE__ */ e(Kt, { className: "h-3.5 w-3.5" })
|
|
2320
2318
|
] }, a.id)),
|
|
2321
2319
|
/* @__PURE__ */ e(be, {})
|
|
2322
2320
|
] });
|
|
@@ -2337,5 +2335,5 @@ function Is({
|
|
|
2337
2335
|
return h.searchParams.set("pdfMode", "document"), h.searchParams.set("pageSize", r || "letter"), h.searchParams.set("orientation", s || "portrait"), h.searchParams.set("url", f.toString()), h.toString();
|
|
2338
2336
|
}
|
|
2339
2337
|
export {
|
|
2340
|
-
|
|
2338
|
+
eo as default
|
|
2341
2339
|
};
|