react-semaphor 0.1.15 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{dashboard-plus-CBv7eSjc.js → dashboard-plus-BZfcy33-.js} +254 -316
- package/dist/chunks/{dashboard-plus-DZgen5GW.js → dashboard-plus-CeMMSFt5.js} +57 -57
- package/dist/chunks/{index-BKBOtVL8.js → index-7W4r7H3W.js} +106 -106
- package/dist/chunks/{index-BNZeEoZU.js → index-DSZsNnIe.js} +5387 -5363
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +3 -3
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e, Fragment as q } from "react/jsx-runtime";
|
|
2
|
-
import { c as ie, a1 as Ys, u as W, a2 as St, a3 as kt, B as V, a4 as Dt, a5 as
|
|
2
|
+
import { c as ie, a1 as Ys, u as W, a2 as St, a3 as kt, B as V, a4 as Dt, a5 as Ye, a6 as Bs, _ as ht, a7 as We, a8 as st, a9 as Dl, aa as $e, ab as nt, ac as lt, ad as rt, ae as ft, af as U, ag as Ae, ah as Tt, I as ge, ai as qs, aj as Ht, ak as ui, al as Jn, am as Ks, f as B, an as Js, ao as mi, ap as Tl, aq as hi, ar as pi, as as da, at as de, w as Wn, au as fi, av as gi, aw as Xt, ax as Be, ay as le, az as Ie, aA as Ct, aB as Ve, aC as xa, aD as aa, aE as Na, aF as vi, aG as sa, aH as gt, aI as Ke, aJ as Je, aK as Aa, aL as Qe, aM as Ee, aN as Xe, aO as Ws, aP as Xa, aQ as ua, aR as Ut, aS as $t, aT as Qs, aU as Hs, aV as xi, aW as Ia, aX as Xs, aY as Zs, aZ as en, a_ as tn, R as Ot, a$ as Ml, b0 as Ni, b1 as an, b2 as Oa, b3 as sn, b4 as nn, b5 as ya, b6 as ba, b7 as Ca, b8 as ln, b9 as os, ba as rn, bb as El, bc as Al, bd as on, be as me, bf as he, bg as pe, bh as fe, bi as Z, bj as Il, bk as Ol, bl as yi, bm as bi, bn as Rt, bo as Ci, bp as wi, bq as Ft, br as Pt, bs as ze, bt as ct, bu as bt, $ as O, bv as Mt, bw as cs, bx as ds, by as cn, bz as Si, bA as ut, bB as Rs, bC as Gt, bD as Fs, bE as Rl, bF as Fl, bG as ki, bH as dn, bI as un, bJ as mn, bK as hn, bL as pn, bM as fn, bN as gn, bO as vn, bP as Di, bQ as us, bR as Ra, a0 as re, bS as Ti, bT as wt, bU as Mi, o as wa, bV as Pl, bW as _e, bX as Ei, bY as Fa, bZ as Za, b_ as xn, b$ as Ka, c0 as Pa, c1 as Nn, c2 as Ai, c3 as Ii, c4 as Oi, c5 as Ri, c6 as Fi, v as Pi, c7 as es, c8 as Ll, c9 as ms, ca as Li, cb as zi, cc as Vi, cd as Ja, ce as _i, cf as Wa, cg as Qa, ch as hs, W as La, A as Qn, Q as Hn, K as zl, J as Vl, y as Vt, z as ji, G as Ui, T as $i, ci as Xn, cj as Zn, ck as ps, cl as fs, cm as gs, cn as ot, co as za, cp as Gi, cq as ts, cr as jt, cs as _l, ct as vs, cu as jl, cv as mt, cw as ke, cx as De, cy as Te, cz as Ul, cA as Da, cB as $l, cC as Gl, cD as Va, g as Yt, cE as el, cF as Yl, cG as Yi, cH as Ps, cI as Bl, cJ as yn, cK as ql, cL as Ta, cM as tl, cN as Bi, cO as qi, cP as Ki, cQ as Kl, cR as Ji, cS as Wi, cT as Jl, cU as Qi, cV as xs, cW as Hi, cX as Xi, cY as Ls, cZ as Zt, c_ as at, c$ as ea, d0 as Zi, d1 as eo, d2 as Ns, d3 as to, d4 as bn, d5 as ao, d6 as Cn, d7 as so, d8 as Wl, d9 as Ha, da as Ql, db as no, dc as lo, dd as ro, de as wn, df as io, dg as oo, dh as al, di as co, E as _a, b as Sn, dj as uo, dk as mo, dl as ho, dm as po, dn as fo, dp as go, dq as Hl, dr as kn, ds as Xl, dt as Zl, du as er, dv as tr, dw as ar, dx as Dn, dy as Tn, dz as sr, dA as nr, dB as lr, dC as Mn, dD as ys, dE as bs, dF as vo, P as Bt, e as qt, dG as xo, dH as Jt, dI as No, dJ as yo, dK as bo, dL as Co, dM as wo, dN as So, dO as rr, dP as dt, dQ as Ma, dR as as, dS as _t, h as na, dT as ko, dU as Do, dV as To, dW as Mo, dX as Eo, dY as ir, dZ as Ao, i as Cs, j as ws, k as Ss, l as ks, m as ca, n as ja, d_ as Io, d$ as pt, e0 as $a, e1 as sl, e2 as Oo, e3 as nl, e4 as Ro, e5 as Fo, e6 as At, e7 as Po, e8 as Lo, e9 as ll, ea as zo, eb as Vo, ec as _o, ed as jo, ee as Uo, O as rl, ef as il, eg as $o, eh as Go, ei as or, ej as Yo, ek as cr, el as Bo, em as qo, en as Ko, eo as Jo, ep as Wo, eq as Qo, er as Ho, es as Xo, et as Zo, eu as ec, ev as tc, ew as ac, ex as sc, ey as nc, ez as lc, eA as rc, eB as dr, eC as Ms, eD as En, eE as ic, eF as oc, eG as cc, eH as dc, eI as ma, eJ as ha, eK as uc, eL as ur, eM as mc, eN as zs, eO as hc, eP as pc, eQ as fc, eR as ss, eS as Wt, eT as Vs, eU as _s, eV as ns, eW as mr, eX as pa, eY as fa, eZ as An, e_ as gc, e$ as vc, f0 as xc, f1 as Nc, f2 as yc, f3 as bc, f4 as Cc, f5 as wc, f6 as Es, f7 as Sc, f8 as kc, f9 as Dc, F as hr, fa as Tc, fb as Mc, fc as Ec, fd as pr, fe as fr, ff as Ac, fg as gr, fh as Ic, fi as Oc, fj as Rc, fk as Fc, fl as Pc, S as Lc, fm as zc, U as Vc, fn as _c, C as jc } from "./index-DSZsNnIe.js";
|
|
3
3
|
import * as js from "react";
|
|
4
|
-
import
|
|
4
|
+
import qe, { useState as _, useRef as Nt, useEffect as Ne, useMemo as He, useCallback as Ce, useContext as In, Suspense as vr } from "react";
|
|
5
5
|
import { createPortal as Uc } from "react-dom";
|
|
6
6
|
/**
|
|
7
7
|
* @license lucide-react v0.453.0 - ISC
|
|
@@ -512,7 +512,7 @@ const hd = ie("Rows3", [
|
|
|
512
512
|
* This source code is licensed under the ISC license.
|
|
513
513
|
* See the LICENSE file in the root directory of this source tree.
|
|
514
514
|
*/
|
|
515
|
-
const
|
|
515
|
+
const ga = ie("Save", [
|
|
516
516
|
[
|
|
517
517
|
"path",
|
|
518
518
|
{
|
|
@@ -762,7 +762,7 @@ function wd() {
|
|
|
762
762
|
] }) }),
|
|
763
763
|
/* @__PURE__ */ a(Dt, { align: "end", children: [
|
|
764
764
|
/* @__PURE__ */ e(
|
|
765
|
-
|
|
765
|
+
Ye,
|
|
766
766
|
{
|
|
767
767
|
onClick: () => {
|
|
768
768
|
t("light"), n("light");
|
|
@@ -771,7 +771,7 @@ function wd() {
|
|
|
771
771
|
}
|
|
772
772
|
),
|
|
773
773
|
/* @__PURE__ */ e(
|
|
774
|
-
|
|
774
|
+
Ye,
|
|
775
775
|
{
|
|
776
776
|
onClick: () => {
|
|
777
777
|
t("dark"), n("dark");
|
|
@@ -780,7 +780,7 @@ function wd() {
|
|
|
780
780
|
}
|
|
781
781
|
),
|
|
782
782
|
/* @__PURE__ */ e(
|
|
783
|
-
|
|
783
|
+
Ye,
|
|
784
784
|
{
|
|
785
785
|
onClick: () => {
|
|
786
786
|
t("system"), n("system");
|
|
@@ -901,7 +901,7 @@ function Md() {
|
|
|
901
901
|
className: "h-7 p-2",
|
|
902
902
|
size: "sm",
|
|
903
903
|
children: [
|
|
904
|
-
/* @__PURE__ */ e(
|
|
904
|
+
/* @__PURE__ */ e($e, { className: "mr-2 h-4 w-4" }),
|
|
905
905
|
"Lens"
|
|
906
906
|
]
|
|
907
907
|
}
|
|
@@ -914,7 +914,7 @@ function Md() {
|
|
|
914
914
|
/* @__PURE__ */ e("div", { className: "grid gap-4 py-4", children: /* @__PURE__ */ a("div", { className: "grid grid-cols-8 items-center gap-4", children: [
|
|
915
915
|
/* @__PURE__ */ e(U, { className: "text-right", children: "Name" }),
|
|
916
916
|
/* @__PURE__ */ e(
|
|
917
|
-
|
|
917
|
+
Ae,
|
|
918
918
|
{
|
|
919
919
|
value: t,
|
|
920
920
|
onChange: (b) => {
|
|
@@ -1078,11 +1078,11 @@ function Ad({
|
|
|
1078
1078
|
}
|
|
1079
1079
|
) }),
|
|
1080
1080
|
/* @__PURE__ */ a(Dt, { align: "end", children: [
|
|
1081
|
-
/* @__PURE__ */ a(
|
|
1081
|
+
/* @__PURE__ */ a(Ye, { onClick: u, children: [
|
|
1082
1082
|
/* @__PURE__ */ e(Tl, { className: "mr-2 h-4 w-4" }),
|
|
1083
1083
|
"Download PDF"
|
|
1084
1084
|
] }),
|
|
1085
|
-
/* @__PURE__ */ a(
|
|
1085
|
+
/* @__PURE__ */ a(Ye, { onClick: () => s(!0), children: [
|
|
1086
1086
|
/* @__PURE__ */ e(hi, { className: "mr-2 h-4 w-4" }),
|
|
1087
1087
|
"Download Protected PDF"
|
|
1088
1088
|
] })
|
|
@@ -1102,7 +1102,7 @@ function Ad({
|
|
|
1102
1102
|
/* @__PURE__ */ e(U, { htmlFor: "password", children: "Password" }),
|
|
1103
1103
|
/* @__PURE__ */ a("div", { className: "relative", children: [
|
|
1104
1104
|
/* @__PURE__ */ e(
|
|
1105
|
-
|
|
1105
|
+
Ae,
|
|
1106
1106
|
{
|
|
1107
1107
|
id: "password",
|
|
1108
1108
|
type: i ? "text" : "password",
|
|
@@ -1123,7 +1123,7 @@ function Ad({
|
|
|
1123
1123
|
size: "sm",
|
|
1124
1124
|
className: "absolute right-0 top-0 h-full px-3 py-2 hover:bg-transparent",
|
|
1125
1125
|
onClick: () => c(!i),
|
|
1126
|
-
children: i ? /* @__PURE__ */ e(pi, { className: "h-4 w-4 text-muted-foreground" }) : /* @__PURE__ */ e(
|
|
1126
|
+
children: i ? /* @__PURE__ */ e(pi, { className: "h-4 w-4 text-muted-foreground" }) : /* @__PURE__ */ e(da, { className: "h-4 w-4 text-muted-foreground" })
|
|
1127
1127
|
}
|
|
1128
1128
|
)
|
|
1129
1129
|
] })
|
|
@@ -1186,7 +1186,7 @@ function is({
|
|
|
1186
1186
|
return /* @__PURE__ */ a("div", { className: "relative", children: [
|
|
1187
1187
|
/* @__PURE__ */ e(Xt, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
1188
1188
|
/* @__PURE__ */ e(
|
|
1189
|
-
|
|
1189
|
+
Be,
|
|
1190
1190
|
{
|
|
1191
1191
|
placeholder: s,
|
|
1192
1192
|
value: t,
|
|
@@ -1218,7 +1218,7 @@ function ta({
|
|
|
1218
1218
|
}
|
|
1219
1219
|
) }),
|
|
1220
1220
|
/* @__PURE__ */ e(Dt, { className: "z-[51]", children: o.map((u) => /* @__PURE__ */ e(
|
|
1221
|
-
|
|
1221
|
+
Ye,
|
|
1222
1222
|
{
|
|
1223
1223
|
onClick: () => n(u.value),
|
|
1224
1224
|
disabled: l,
|
|
@@ -1273,7 +1273,7 @@ function wr({
|
|
|
1273
1273
|
{
|
|
1274
1274
|
onClick: () => s(i.id),
|
|
1275
1275
|
className: "ml-1 rounded-full p-0.5 hover:bg-muted-foreground/20",
|
|
1276
|
-
children: /* @__PURE__ */ e(
|
|
1276
|
+
children: /* @__PURE__ */ e(Ie, { className: "h-3 w-3" })
|
|
1277
1277
|
}
|
|
1278
1278
|
)
|
|
1279
1279
|
] }, i.id);
|
|
@@ -1311,7 +1311,7 @@ function Sr({
|
|
|
1311
1311
|
{
|
|
1312
1312
|
onClick: () => s(l.id),
|
|
1313
1313
|
className: "ml-1 rounded-full p-0.5 hover:bg-destructive-foreground/20",
|
|
1314
|
-
children: /* @__PURE__ */ e(
|
|
1314
|
+
children: /* @__PURE__ */ e(Ie, { className: "h-3 w-3" })
|
|
1315
1315
|
}
|
|
1316
1316
|
)
|
|
1317
1317
|
] }, l.id)) }),
|
|
@@ -1363,7 +1363,7 @@ function kr({
|
|
|
1363
1363
|
size: "sm",
|
|
1364
1364
|
className: "h-6 w-6 p-0 text-muted-foreground hover:text-destructive",
|
|
1365
1365
|
onClick: () => s(o.id),
|
|
1366
|
-
children: /* @__PURE__ */ e(
|
|
1366
|
+
children: /* @__PURE__ */ e(Ie, { className: "h-3 w-3" })
|
|
1367
1367
|
}
|
|
1368
1368
|
)
|
|
1369
1369
|
]
|
|
@@ -1456,7 +1456,7 @@ function Ld({
|
|
|
1456
1456
|
variant: "outline",
|
|
1457
1457
|
className: "border-green-200 bg-green-50 text-xs text-green-700",
|
|
1458
1458
|
children: [
|
|
1459
|
-
/* @__PURE__ */ e(
|
|
1459
|
+
/* @__PURE__ */ e(da, { className: "mr-1 h-3 w-3" }),
|
|
1460
1460
|
"Has Access"
|
|
1461
1461
|
]
|
|
1462
1462
|
}
|
|
@@ -1467,7 +1467,7 @@ function Ld({
|
|
|
1467
1467
|
variant: "outline",
|
|
1468
1468
|
className: "border-red-200 bg-red-50 text-xs text-red-700",
|
|
1469
1469
|
children: [
|
|
1470
|
-
/* @__PURE__ */ e(
|
|
1470
|
+
/* @__PURE__ */ e(Ie, { className: "mr-1 h-3 w-3" }),
|
|
1471
1471
|
"Remove Access"
|
|
1472
1472
|
]
|
|
1473
1473
|
}
|
|
@@ -1953,7 +1953,7 @@ function Mr({
|
|
|
1953
1953
|
handleRemoveAccess: d,
|
|
1954
1954
|
handleUpdateAccess: u
|
|
1955
1955
|
}) {
|
|
1956
|
-
const m =
|
|
1956
|
+
const m = xa(), p = aa(), h = Na(), f = vi(), v = sa(), g = c || ((D) => {
|
|
1957
1957
|
const S = m.some((C) => C.id === D), x = p.includes(D);
|
|
1958
1958
|
S ? v.removeSelectedUser(D) : x ? v.removeUserFromRemove(D) : v.addSelectedUser({ id: D, role: "VIEWER" });
|
|
1959
1959
|
}), b = o || v.updateSelectedUserRole, y = d || v.addUserToRemove, w = u || ((D, S, x) => {
|
|
@@ -2065,7 +2065,7 @@ function Rn({
|
|
|
2065
2065
|
htmlFor: i.value,
|
|
2066
2066
|
className: `flex flex-col items-center justify-between rounded-md border-2 border-muted bg-popover p-4 hover:bg-accent hover:text-accent-foreground peer-data-[state=checked]:border-primary peer-data-[state=checked]:bg-primary/5 [&:has([data-state=checked])]:border-primary [&:has([data-state=checked])]:bg-primary/5 ${i.disabled ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`,
|
|
2067
2067
|
children: [
|
|
2068
|
-
i.icon || /* @__PURE__ */ e(
|
|
2068
|
+
i.icon || /* @__PURE__ */ e(ua, { className: "mb-3 h-6 w-6" }),
|
|
2069
2069
|
/* @__PURE__ */ a("div", { className: "space-y-1 text-center", children: [
|
|
2070
2070
|
/* @__PURE__ */ e("p", { className: "text-sm font-medium leading-none", children: i.label }),
|
|
2071
2071
|
/* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground", children: i.description })
|
|
@@ -2112,13 +2112,13 @@ function Ud({
|
|
|
2112
2112
|
), m = n.role !== "NONE" ? n.role : "NONE", p = r ? r.newRole : m, h = n.role !== "NONE" && !i && (!r || r.newRole === m), f = r !== null && r.newRole !== m, v = i, g = m === "NONE" || !m, b = (w) => {
|
|
2113
2113
|
switch (w) {
|
|
2114
2114
|
case "VIEWER":
|
|
2115
|
-
return /* @__PURE__ */ e(
|
|
2115
|
+
return /* @__PURE__ */ e(da, { className: "h-4 w-4" });
|
|
2116
2116
|
case "EDITOR":
|
|
2117
2117
|
return /* @__PURE__ */ e(tn, { className: "h-4 w-4" });
|
|
2118
2118
|
case "CONTRIBUTOR":
|
|
2119
2119
|
return /* @__PURE__ */ e(pd, { className: "h-4 w-4" });
|
|
2120
2120
|
default:
|
|
2121
|
-
return /* @__PURE__ */ e(
|
|
2121
|
+
return /* @__PURE__ */ e(da, { className: "h-4 w-4" });
|
|
2122
2122
|
}
|
|
2123
2123
|
}, y = (w) => {
|
|
2124
2124
|
l(m, w);
|
|
@@ -2257,7 +2257,7 @@ function Er({
|
|
|
2257
2257
|
}
|
|
2258
2258
|
);
|
|
2259
2259
|
}
|
|
2260
|
-
function
|
|
2260
|
+
function va(t) {
|
|
2261
2261
|
const {
|
|
2262
2262
|
debouncedSearchQuery: n,
|
|
2263
2263
|
resourceId: s,
|
|
@@ -2297,20 +2297,20 @@ function $d({
|
|
|
2297
2297
|
isRemoving: c = !1
|
|
2298
2298
|
}) {
|
|
2299
2299
|
var G, se;
|
|
2300
|
-
const o = an(), d = Oa(), { searchQuery: u, setSearchQuery: m, debouncedSearchQuery: p } = sn(), h =
|
|
2300
|
+
const o = an(), d = Oa(), { searchQuery: u, setSearchQuery: m, debouncedSearchQuery: p } = sn(), h = xa(), f = aa(), v = Na(), g = Ut(), b = nn(), y = sa(), [w, P] = qe.useState("specific_users"), T = () => {
|
|
2301
2301
|
if (o === "org") return "organization";
|
|
2302
2302
|
if (o === "tenant") return "tenant";
|
|
2303
2303
|
}, D = () => {
|
|
2304
2304
|
if (o === "tenant" && d)
|
|
2305
2305
|
return d;
|
|
2306
|
-
}, { allUsers: S, existingShares: x, isLoadingUsers: C } =
|
|
2306
|
+
}, { allUsers: S, existingShares: x, isLoadingUsers: C } = va({
|
|
2307
2307
|
debouncedSearchQuery: p,
|
|
2308
2308
|
resourceId: (t == null ? void 0 : t.id) || "",
|
|
2309
2309
|
resourceType: n,
|
|
2310
2310
|
userType: T(),
|
|
2311
2311
|
tenantId: D()
|
|
2312
2312
|
});
|
|
2313
|
-
|
|
2313
|
+
qe.useEffect(() => {
|
|
2314
2314
|
y.setCurrentContext("org-tab"), y.setCurrentMode(
|
|
2315
2315
|
w === "all_users" ? "allOrgUsers" : "specificOrgUsers"
|
|
2316
2316
|
);
|
|
@@ -2348,7 +2348,7 @@ function $d({
|
|
|
2348
2348
|
}, z = () => {
|
|
2349
2349
|
y.setOrgWideRole((j == null ? void 0 : j.role) || "NONE");
|
|
2350
2350
|
}, j = (se = (G = x == null ? void 0 : x.shares) == null ? void 0 : G.orgUsersOnly) == null ? void 0 : se[0];
|
|
2351
|
-
|
|
2351
|
+
qe.useEffect(() => {
|
|
2352
2352
|
w === "all_users" && j && j.role !== void 0 && y.setOrgWideRole(j.role);
|
|
2353
2353
|
}, [w, j, y]);
|
|
2354
2354
|
const X = C, Q = !1;
|
|
@@ -2364,7 +2364,7 @@ function $d({
|
|
|
2364
2364
|
value: "specific_users",
|
|
2365
2365
|
label: "Specific Org User",
|
|
2366
2366
|
description: "Choose individual users to share with",
|
|
2367
|
-
icon: /* @__PURE__ */ e(
|
|
2367
|
+
icon: /* @__PURE__ */ e(ua, { className: "mb-3 h-6 w-6 text-orange-500" })
|
|
2368
2368
|
},
|
|
2369
2369
|
{
|
|
2370
2370
|
value: "all_users",
|
|
@@ -2482,7 +2482,7 @@ function Ar({
|
|
|
2482
2482
|
handleRemoveAccess: d,
|
|
2483
2483
|
handleUpdateAccess: u
|
|
2484
2484
|
}) {
|
|
2485
|
-
const m =
|
|
2485
|
+
const m = ya(), p = ba(), h = Ca(), f = sa(), v = r(i == null ? void 0 : i.type);
|
|
2486
2486
|
return s ? /* @__PURE__ */ e("div", { className: "flex items-center justify-center py-6", children: /* @__PURE__ */ e(Ee, { className: "h-6 w-6 animate-spin" }) }) : t.length === 0 ? /* @__PURE__ */ e("div", { className: "py-6 text-center text-sm text-muted-foreground", children: "No groups available to share with" }) : /* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
2487
2487
|
/* @__PURE__ */ e(U, { children: "Available Groups" }),
|
|
2488
2488
|
/* @__PURE__ */ e("div", { className: "max-h-[300px] space-y-2 overflow-y-auto rounded-md border p-3", children: t.map((g) => {
|
|
@@ -2577,7 +2577,7 @@ function Ar({
|
|
|
2577
2577
|
variant: "ghost",
|
|
2578
2578
|
size: "sm",
|
|
2579
2579
|
onClick: () => d == null ? void 0 : d(g.id),
|
|
2580
|
-
children: /* @__PURE__ */ e(
|
|
2580
|
+
children: /* @__PURE__ */ e(Ie, { className: "h-4 w-4" })
|
|
2581
2581
|
}
|
|
2582
2582
|
),
|
|
2583
2583
|
w && /* @__PURE__ */ e(
|
|
@@ -2657,7 +2657,7 @@ function Ir({
|
|
|
2657
2657
|
size: "icon",
|
|
2658
2658
|
className: "h-6 w-6",
|
|
2659
2659
|
onClick: () => s(c.id),
|
|
2660
|
-
children: /* @__PURE__ */ e(
|
|
2660
|
+
children: /* @__PURE__ */ e(Ie, { className: "h-3 w-3" })
|
|
2661
2661
|
}
|
|
2662
2662
|
)
|
|
2663
2663
|
] })
|
|
@@ -2678,7 +2678,7 @@ function ml({
|
|
|
2678
2678
|
isRemoving: c = !1
|
|
2679
2679
|
}) {
|
|
2680
2680
|
var K;
|
|
2681
|
-
const { searchQuery: o, debouncedSearchQuery: d, setSearchQuery: u } = sn(), m =
|
|
2681
|
+
const { searchQuery: o, debouncedSearchQuery: d, setSearchQuery: u } = sn(), m = xa(), p = aa(), h = Na(), f = ya(), v = ba(), g = Ca(), b = Ut(), y = os(), w = rn(), P = Oa(), T = sa(), { data: D, isLoading: S } = El({
|
|
2682
2682
|
enabled: (s == null ? void 0 : s.type) === "organization"
|
|
2683
2683
|
}), { groups: x, isLoading: C } = Al(
|
|
2684
2684
|
"tenant",
|
|
@@ -2686,7 +2686,7 @@ function ml({
|
|
|
2686
2686
|
), [N, F] = _(
|
|
2687
2687
|
(s == null ? void 0 : s.type) === "organization" ? "all_tenants" : "specific_tenant_users"
|
|
2688
2688
|
);
|
|
2689
|
-
|
|
2689
|
+
qe.useEffect(() => {
|
|
2690
2690
|
(s == null ? void 0 : s.type) === "tenant" ? (T.setCurrentContext("tenant-dialog"), T.setCurrentMode("specificTenantUsers")) : (T.setCurrentContext("tenant-tab"), T.setCurrentMode("allTenants"));
|
|
2691
2691
|
}, [T, s == null ? void 0 : s.type]);
|
|
2692
2692
|
const k = ($) => {
|
|
@@ -2696,11 +2696,11 @@ function ml({
|
|
|
2696
2696
|
);
|
|
2697
2697
|
let ce;
|
|
2698
2698
|
if ($ === "specific_tenant_users" ? ce = "specific_users" : $ === "all_tenant_users" || $ === "all_tenants" ? ce = "all_users" : $ === "groups" ? ce = "groups" : ce = "specific_users", l == null || l(ce), $ === "groups" ? (T.setCurrentContext("group-share"), T.setCurrentMode("specificGroups")) : (s == null ? void 0 : s.type) === "tenant" ? (T.setCurrentContext("tenant-dialog"), $ === "specific_tenant_users" ? T.setCurrentMode("specificTenantUsers") : $ === "all_tenant_users" && (T.setCurrentMode("allTenantUsers"), s != null && s.tenantId && T.setSelectedTenant(s.tenantId))) : (T.setCurrentContext("tenant-tab"), $ === "specific_tenant_users" ? T.setCurrentMode("specificTenantUsers") : $ === "all_tenant_users" ? T.setCurrentMode("allTenantUsers") : $ === "all_tenants" && T.setCurrentMode("allTenants")), $ === "all_tenant_users") {
|
|
2699
|
-
const
|
|
2700
|
-
|
|
2699
|
+
const Ge = (Fe = (Me = A == null ? void 0 : A.shares) == null ? void 0 : Me.tenantWide) == null ? void 0 : Fe[0];
|
|
2700
|
+
Ge && Ge.role !== void 0 && T.setTenantWideRole(Ge.role);
|
|
2701
2701
|
} else if ($ === "all_tenants") {
|
|
2702
|
-
const
|
|
2703
|
-
|
|
2702
|
+
const Ge = (Le = (be = A == null ? void 0 : A.shares) == null ? void 0 : be.allTenantsOnly) == null ? void 0 : Le[0];
|
|
2703
|
+
Ge && Ge.role !== void 0 && T.setAllTenantsRole(Ge.role);
|
|
2704
2704
|
}
|
|
2705
2705
|
}, L = ($) => {
|
|
2706
2706
|
T.setSelectedTenant($);
|
|
@@ -2711,7 +2711,7 @@ function ml({
|
|
|
2711
2711
|
isErrorLoadingUsers: R,
|
|
2712
2712
|
isLoadingShares: E,
|
|
2713
2713
|
isErrorLoadingShares: z
|
|
2714
|
-
} =
|
|
2714
|
+
} = va({
|
|
2715
2715
|
debouncedSearchQuery: d,
|
|
2716
2716
|
resourceId: (t == null ? void 0 : t.id) || "",
|
|
2717
2717
|
resourceType: n,
|
|
@@ -2720,8 +2720,8 @@ function ml({
|
|
|
2720
2720
|
tenantId: (s == null ? void 0 : s.type) === "tenant" ? s.tenantId : P
|
|
2721
2721
|
}), j = ($) => {
|
|
2722
2722
|
var be, Le;
|
|
2723
|
-
const ce = m.some((
|
|
2724
|
-
(
|
|
2723
|
+
const ce = m.some((Ge) => Ge.id === $), Me = p.includes($), Fe = (Le = (be = A == null ? void 0 : A.shares) == null ? void 0 : be.specificTenantUsers) == null ? void 0 : Le.some(
|
|
2724
|
+
(Ge) => Ge.tenantUserId === $
|
|
2725
2725
|
);
|
|
2726
2726
|
ce ? T.removeSelectedUser($) : Me ? T.removeUserFromRemove($) : Fe || T.addSelectedUser({ id: $, role: "VIEWER" });
|
|
2727
2727
|
}, X = ($, ce) => {
|
|
@@ -2742,7 +2742,7 @@ function ml({
|
|
|
2742
2742
|
var $, ce, Me, Fe;
|
|
2743
2743
|
return b === "allTenants" ? (ce = ($ = A == null ? void 0 : A.shares) == null ? void 0 : $.allTenantsOnly) == null ? void 0 : ce[0] : b === "allTenantUsers" ? (Fe = (Me = A == null ? void 0 : A.shares) == null ? void 0 : Me.tenantWide) == null ? void 0 : Fe[0] : null;
|
|
2744
2744
|
})();
|
|
2745
|
-
|
|
2745
|
+
qe.useEffect(() => {
|
|
2746
2746
|
var $, ce, Me, Fe;
|
|
2747
2747
|
if (N === "all_tenant_users") {
|
|
2748
2748
|
const be = (ce = ($ = A == null ? void 0 : A.shares) == null ? void 0 : $.tenantWide) == null ? void 0 : ce[0];
|
|
@@ -2767,7 +2767,7 @@ function ml({
|
|
|
2767
2767
|
T.addGroupToUpdate({ id: $, currentRole: ce, newRole: Me });
|
|
2768
2768
|
}, ue = x.filter(
|
|
2769
2769
|
($) => f.some((ce) => ce.id === $.id)
|
|
2770
|
-
), Re =
|
|
2770
|
+
), Re = qe.useMemo(() => N !== "groups" ? [] : x.filter(($) => $.type !== "TENANT_GROUP" ? !1 : $.name.toLowerCase().includes(o.toLowerCase()) || $.description && $.description.toLowerCase().includes(o.toLowerCase())), [x, N, o]), Se = qe.useMemo(() => {
|
|
2771
2771
|
var ce, Me;
|
|
2772
2772
|
const $ = ((ce = A == null ? void 0 : A.shares) == null ? void 0 : ce.specificGroups) || ((Me = A == null ? void 0 : A.shares) == null ? void 0 : Me.groups) || [];
|
|
2773
2773
|
return !$ || $.length === 0 ? [] : $.filter(
|
|
@@ -2809,7 +2809,7 @@ function ml({
|
|
|
2809
2809
|
value: "specific_tenant_users",
|
|
2810
2810
|
label: "Specific Users",
|
|
2811
2811
|
description: "Share with specific tenant users",
|
|
2812
|
-
icon: /* @__PURE__ */ e(
|
|
2812
|
+
icon: /* @__PURE__ */ e(ua, { className: "mb-3 h-6 w-6 text-orange-500" })
|
|
2813
2813
|
},
|
|
2814
2814
|
{
|
|
2815
2815
|
value: "groups",
|
|
@@ -2834,7 +2834,7 @@ function ml({
|
|
|
2834
2834
|
value: "specific_tenant_users",
|
|
2835
2835
|
label: "Specific Tenant User",
|
|
2836
2836
|
description: "Share with users of a specific tenant",
|
|
2837
|
-
icon: /* @__PURE__ */ e(
|
|
2837
|
+
icon: /* @__PURE__ */ e(ua, { className: "mb-3 h-6 w-6 text-orange-500" })
|
|
2838
2838
|
}
|
|
2839
2839
|
]
|
|
2840
2840
|
}
|
|
@@ -2998,7 +2998,7 @@ function Bd({
|
|
|
2998
2998
|
isRemoving: c = !1
|
|
2999
2999
|
}) {
|
|
3000
3000
|
var R, E;
|
|
3001
|
-
const { searchQuery: o, setSearchQuery: d } = sn(), u =
|
|
3001
|
+
const { searchQuery: o, setSearchQuery: d } = sn(), u = ya(), m = ba(), p = Ca(), h = sa(), [f, v] = qe.useState("org_groups"), [g, b] = qe.useState(""), { data: y, isLoading: w } = El({
|
|
3002
3002
|
enabled: (s == null ? void 0 : s.type) === "organization" && f === "tenant_groups"
|
|
3003
3003
|
}), P = Array.isArray(y) ? y : (y == null ? void 0 : y.tenants) || [], T = () => {
|
|
3004
3004
|
if ((s == null ? void 0 : s.type) === "organization") return "organization";
|
|
@@ -3006,12 +3006,12 @@ function Bd({
|
|
|
3006
3006
|
}, { groups: D, isLoading: S } = Al(
|
|
3007
3007
|
T(),
|
|
3008
3008
|
f === "tenant_groups" && (s == null ? void 0 : s.type) === "organization" ? g : s == null ? void 0 : s.tenantId
|
|
3009
|
-
), { existingShares: x } =
|
|
3009
|
+
), { existingShares: x } = va({
|
|
3010
3010
|
debouncedSearchQuery: "",
|
|
3011
3011
|
resourceId: (t == null ? void 0 : t.id) || "",
|
|
3012
3012
|
resourceType: n
|
|
3013
3013
|
}), C = D.filter((z) => f === "org_groups" && z.type !== "ORG_GROUP" || f === "tenant_groups" && z.type !== "TENANT_GROUP" || f === "tenant_groups" && (s == null ? void 0 : s.type) === "organization" && (!g || z.tenantId && z.tenantId !== g) ? !1 : z.name.toLowerCase().includes(o.toLowerCase()) || z.description && z.description.toLowerCase().includes(o.toLowerCase())), N = ((R = x == null ? void 0 : x.shares) == null ? void 0 : R.specificGroups) || ((E = x == null ? void 0 : x.shares) == null ? void 0 : E.groups) || [];
|
|
3014
|
-
|
|
3014
|
+
qe.useEffect(() => {
|
|
3015
3015
|
h.setCurrentContext("group-share"), h.setCurrentMode("specificGroups");
|
|
3016
3016
|
}, [h]);
|
|
3017
3017
|
const F = (z) => {
|
|
@@ -3138,7 +3138,7 @@ function Bd({
|
|
|
3138
3138
|
] }) : null;
|
|
3139
3139
|
}
|
|
3140
3140
|
const Or = () => {
|
|
3141
|
-
const t = Il(), n = Ut(), s =
|
|
3141
|
+
const t = Il(), n = Ut(), s = xa(), l = aa(), r = Na(), i = ya(), c = ba(), o = Ca(), d = Oa(), u = nn(), m = rn(), p = os(), h = Ol(), f = He(() => () => yi({
|
|
3142
3142
|
currentContext: t,
|
|
3143
3143
|
currentMode: n,
|
|
3144
3144
|
selectedUsers: s,
|
|
@@ -3221,7 +3221,7 @@ function hl({
|
|
|
3221
3221
|
currentAllUsersShare: d,
|
|
3222
3222
|
onRemoveAccess: u
|
|
3223
3223
|
}) {
|
|
3224
|
-
const m =
|
|
3224
|
+
const m = xa(), p = aa(), h = Na(), f = Oa(), v = nn(), g = rn(), b = os(), { buildShareData: y, validateShareData: w, isCurrentStateValid: P } = Or(), T = s || l || r, D = () => {
|
|
3225
3225
|
var F, k, L, M;
|
|
3226
3226
|
if (T) return "Updating...";
|
|
3227
3227
|
if (o === "specific_users") {
|
|
@@ -3342,7 +3342,7 @@ function hl({
|
|
|
3342
3342
|
};
|
|
3343
3343
|
return /* @__PURE__ */ a(Tt, { children: [
|
|
3344
3344
|
/* @__PURE__ */ a(V, { variant: "outline", onClick: c, disabled: T, children: [
|
|
3345
|
-
/* @__PURE__ */ e(
|
|
3345
|
+
/* @__PURE__ */ e(Ie, { className: "mr-2 h-4 w-4" }),
|
|
3346
3346
|
"Close"
|
|
3347
3347
|
] }),
|
|
3348
3348
|
(o === "specific_users" || o === "specific_tenant_users") && /* @__PURE__ */ e(q, { children: (m.length > 0 || p.length > 0 || h.length > 0) && /* @__PURE__ */ a(
|
|
@@ -3387,7 +3387,7 @@ function qd({
|
|
|
3387
3387
|
shareTabType: c,
|
|
3388
3388
|
currentAllUsersShare: o
|
|
3389
3389
|
}) {
|
|
3390
|
-
const d =
|
|
3390
|
+
const d = xa(), u = aa(), m = Na(), p = ya(), h = ba(), f = Ca();
|
|
3391
3391
|
Ut(), Il();
|
|
3392
3392
|
const v = os();
|
|
3393
3393
|
Oa();
|
|
@@ -3445,7 +3445,7 @@ function qd({
|
|
|
3445
3445
|
}, C = () => !o || o.role === "NONE" ? "default" : "destructive";
|
|
3446
3446
|
return /* @__PURE__ */ a(Tt, { children: [
|
|
3447
3447
|
/* @__PURE__ */ a(V, { variant: "outline", onClick: i, disabled: w, children: [
|
|
3448
|
-
/* @__PURE__ */ e(
|
|
3448
|
+
/* @__PURE__ */ e(Ie, { className: "mr-2 h-4 w-4" }),
|
|
3449
3449
|
"Close"
|
|
3450
3450
|
] }),
|
|
3451
3451
|
c === "specific_users" && /* @__PURE__ */ e(q, { children: (d.length > 0 || u.length > 0 || m.length > 0) && /* @__PURE__ */ a(
|
|
@@ -3509,7 +3509,7 @@ function Kd({
|
|
|
3509
3509
|
currentAllGroupsShare: d,
|
|
3510
3510
|
onRemoveAccess: u
|
|
3511
3511
|
}) {
|
|
3512
|
-
const m =
|
|
3512
|
+
const m = ya(), p = ba(), h = Ca();
|
|
3513
3513
|
Ol(), Ut();
|
|
3514
3514
|
const f = () => {
|
|
3515
3515
|
i({
|
|
@@ -3985,7 +3985,7 @@ function Wd(t, n, s, l) {
|
|
|
3985
3985
|
}
|
|
3986
3986
|
}
|
|
3987
3987
|
function Qd(t, n, s) {
|
|
3988
|
-
const l = sa(), r = aa(), i = an(), c = Ut(), { currentUser: o } = Rt(), { existingShares: d } =
|
|
3988
|
+
const l = sa(), r = aa(), i = an(), c = Ut(), { currentUser: o } = Rt(), { existingShares: d } = va({
|
|
3989
3989
|
debouncedSearchQuery: "",
|
|
3990
3990
|
resourceId: t || "",
|
|
3991
3991
|
resourceType: Ot.DASHBOARD,
|
|
@@ -4056,7 +4056,7 @@ function Fn({
|
|
|
4056
4056
|
onRemoveSuccess: r
|
|
4057
4057
|
}) {
|
|
4058
4058
|
var M, A, I, R, E, z, j, X;
|
|
4059
|
-
const { currentUser: i } = Rt(), [c, o] =
|
|
4059
|
+
const { currentUser: i } = Rt(), [c, o] = qe.useState("specific_users"), [d, u] = qe.useState("specific_users"), [m, p] = qe.useState("specific_groups"), h = sa(), f = an(), v = Ut(), g = Ci(), b = wi(), { handleShareSubmit: y, handleRemoveAccess: w } = Qd(
|
|
4060
4060
|
t.id,
|
|
4061
4061
|
(Q, G) => {
|
|
4062
4062
|
g.mutate(Q, {
|
|
@@ -4076,12 +4076,12 @@ function Fn({
|
|
|
4076
4076
|
}
|
|
4077
4077
|
});
|
|
4078
4078
|
}
|
|
4079
|
-
), P = g.isPending, T = b.isPending, D = g.isPending, { existingShares: S } =
|
|
4079
|
+
), P = g.isPending, T = b.isPending, D = g.isPending, { existingShares: S } = va({
|
|
4080
4080
|
debouncedSearchQuery: "",
|
|
4081
4081
|
resourceId: (t == null ? void 0 : t.id) || "",
|
|
4082
4082
|
resourceType: n,
|
|
4083
4083
|
userType: "tenant"
|
|
4084
|
-
}), { existingShares: x } =
|
|
4084
|
+
}), { existingShares: x } = va({
|
|
4085
4085
|
debouncedSearchQuery: "",
|
|
4086
4086
|
resourceId: (t == null ? void 0 : t.id) || "",
|
|
4087
4087
|
resourceType: n,
|
|
@@ -4099,7 +4099,7 @@ function Fn({
|
|
|
4099
4099
|
default:
|
|
4100
4100
|
return "specific_tenant_users";
|
|
4101
4101
|
}
|
|
4102
|
-
}, k =
|
|
4102
|
+
}, k = qe.useCallback(() => {
|
|
4103
4103
|
h.resetShareState(), s();
|
|
4104
4104
|
}, [h, s]), L = (i == null ? void 0 : i.type) === "organization";
|
|
4105
4105
|
return /* @__PURE__ */ e(st, { open: !0, onOpenChange: k, children: /* @__PURE__ */ a(nt, { className: "z-[51] flex max-h-[80vh] max-w-3xl flex-col", children: [
|
|
@@ -4438,7 +4438,7 @@ function ru({
|
|
|
4438
4438
|
/* @__PURE__ */ e("span", { className: "text-destructive", children: "*" })
|
|
4439
4439
|
] }),
|
|
4440
4440
|
/* @__PURE__ */ e(
|
|
4441
|
-
|
|
4441
|
+
Ae,
|
|
4442
4442
|
{
|
|
4443
4443
|
id: "group-name",
|
|
4444
4444
|
placeholder: "e.g., Marketing Team, Engineering Squad",
|
|
@@ -4600,7 +4600,7 @@ function iu({
|
|
|
4600
4600
|
/* @__PURE__ */ a("div", { className: "relative", children: [
|
|
4601
4601
|
/* @__PURE__ */ e(Xt, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
4602
4602
|
/* @__PURE__ */ e(
|
|
4603
|
-
|
|
4603
|
+
Ae,
|
|
4604
4604
|
{
|
|
4605
4605
|
placeholder: "Search members...",
|
|
4606
4606
|
value: c,
|
|
@@ -4651,7 +4651,7 @@ function iu({
|
|
|
4651
4651
|
/* @__PURE__ */ a("div", { className: "relative", children: [
|
|
4652
4652
|
/* @__PURE__ */ e(Xt, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
4653
4653
|
/* @__PURE__ */ e(
|
|
4654
|
-
|
|
4654
|
+
Ae,
|
|
4655
4655
|
{
|
|
4656
4656
|
placeholder: "Search users to add...",
|
|
4657
4657
|
value: c,
|
|
@@ -4786,7 +4786,7 @@ function du({
|
|
|
4786
4786
|
"Groups"
|
|
4787
4787
|
] }),
|
|
4788
4788
|
/* @__PURE__ */ a(ze, { value: "create", className: "flex items-center gap-2", children: [
|
|
4789
|
-
/* @__PURE__ */ e(
|
|
4789
|
+
/* @__PURE__ */ e($e, { className: "h-4 w-4" }),
|
|
4790
4790
|
"Create Group"
|
|
4791
4791
|
] })
|
|
4792
4792
|
] }),
|
|
@@ -4794,7 +4794,7 @@ function du({
|
|
|
4794
4794
|
/* @__PURE__ */ a("div", { className: "relative", children: [
|
|
4795
4795
|
/* @__PURE__ */ e(Xt, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
4796
4796
|
/* @__PURE__ */ e(
|
|
4797
|
-
|
|
4797
|
+
Ae,
|
|
4798
4798
|
{
|
|
4799
4799
|
placeholder: "Search groups...",
|
|
4800
4800
|
value: r,
|
|
@@ -5105,7 +5105,7 @@ function fu() {
|
|
|
5105
5105
|
m
|
|
5106
5106
|
]) };
|
|
5107
5107
|
}
|
|
5108
|
-
function
|
|
5108
|
+
function la() {
|
|
5109
5109
|
const { authToken: t, tokenProps: n } = We(), s = Mt(), l = us(), { selectVisual: r } = Ra(), {
|
|
5110
5110
|
setFrame: i,
|
|
5111
5111
|
setCard: c,
|
|
@@ -5257,7 +5257,7 @@ function gu({
|
|
|
5257
5257
|
const [c, o] = _(
|
|
5258
5258
|
s && l ? `Copy of ${l}` : l || ""
|
|
5259
5259
|
), [d, u] = _(""), [m, p] = _(!s), [h, f] = _(!0);
|
|
5260
|
-
|
|
5260
|
+
qe.useEffect(() => {
|
|
5261
5261
|
t && (o(
|
|
5262
5262
|
s && l ? `Copy of ${l}` : l || ""
|
|
5263
5263
|
), u(""), p(!s), f(!0));
|
|
@@ -5279,7 +5279,7 @@ function gu({
|
|
|
5279
5279
|
/* @__PURE__ */ a("div", { className: "grid gap-2", children: [
|
|
5280
5280
|
/* @__PURE__ */ e(U, { htmlFor: "name", children: "Name" }),
|
|
5281
5281
|
/* @__PURE__ */ e(
|
|
5282
|
-
|
|
5282
|
+
Be,
|
|
5283
5283
|
{
|
|
5284
5284
|
id: "name",
|
|
5285
5285
|
value: c,
|
|
@@ -5390,7 +5390,7 @@ function vu({
|
|
|
5390
5390
|
), O((d) => d.selectedTableName), O(
|
|
5391
5391
|
(d) => d.selectedConnectionId
|
|
5392
5392
|
), O((d) => d.isShowingVisual), l.sql;
|
|
5393
|
-
const r = O((d) => d.onSave), { getUpdatedFrame: i } =
|
|
5393
|
+
const r = O((d) => d.onSave), { getUpdatedFrame: i } = la();
|
|
5394
5394
|
function c() {
|
|
5395
5395
|
const d = i();
|
|
5396
5396
|
r == null || r(d);
|
|
@@ -5403,7 +5403,7 @@ function vu({
|
|
|
5403
5403
|
size: "sm",
|
|
5404
5404
|
variant: n,
|
|
5405
5405
|
children: [
|
|
5406
|
-
/* @__PURE__ */ e(
|
|
5406
|
+
/* @__PURE__ */ e(wa, { className: "mr-2 size-4 font-bold" }),
|
|
5407
5407
|
"Accept"
|
|
5408
5408
|
]
|
|
5409
5409
|
}
|
|
@@ -5415,7 +5415,7 @@ function xu({
|
|
|
5415
5415
|
}) {
|
|
5416
5416
|
const s = Mt(), [l, r] = _(!1), i = W(
|
|
5417
5417
|
(h) => h.actions.setIsDashboardPanelOpen
|
|
5418
|
-
), { setIsVisualEditing: c } = ht(), { getUpdatedFrame: o } =
|
|
5418
|
+
), { setIsVisualEditing: c } = ht(), { getUpdatedFrame: o } = la(), d = us(), u = O((h) => h.frame), m = Pl();
|
|
5419
5419
|
return /* @__PURE__ */ a(
|
|
5420
5420
|
V,
|
|
5421
5421
|
{
|
|
@@ -5454,7 +5454,7 @@ function xu({
|
|
|
5454
5454
|
" Saving"
|
|
5455
5455
|
] }),
|
|
5456
5456
|
!l && /* @__PURE__ */ a(q, { children: [
|
|
5457
|
-
/* @__PURE__ */ e(
|
|
5457
|
+
/* @__PURE__ */ e(ga, { className: "mr-2 size-4 font-bold" }),
|
|
5458
5458
|
"Save to Library"
|
|
5459
5459
|
] })
|
|
5460
5460
|
]
|
|
@@ -5464,7 +5464,7 @@ function xu({
|
|
|
5464
5464
|
function Nu({
|
|
5465
5465
|
className: t
|
|
5466
5466
|
}) {
|
|
5467
|
-
const n = Mt(), [s, l] = _(!1), r = us(), i = O((h) => h.frame), c = W((h) => h.selectedSheetId), { updateFrame: o, setIsVisualEditing: d } = ht(), { getUpdatedFrame: u } =
|
|
5467
|
+
const n = Mt(), [s, l] = _(!1), r = us(), i = O((h) => h.frame), c = W((h) => h.selectedSheetId), { updateFrame: o, setIsVisualEditing: d } = ht(), { getUpdatedFrame: u } = la(), m = Pl();
|
|
5468
5468
|
return /* @__PURE__ */ e(
|
|
5469
5469
|
V,
|
|
5470
5470
|
{
|
|
@@ -5509,14 +5509,14 @@ function Nu({
|
|
|
5509
5509
|
/* @__PURE__ */ e(Ee, { className: "mr-2 size-4 animate-spin font-bold" }),
|
|
5510
5510
|
" Saving..."
|
|
5511
5511
|
] }) : /* @__PURE__ */ a(q, { children: [
|
|
5512
|
-
/* @__PURE__ */ e(
|
|
5512
|
+
/* @__PURE__ */ e(ga, { className: "mr-2 size-4 font-bold" }),
|
|
5513
5513
|
"Save & Apply"
|
|
5514
5514
|
] })
|
|
5515
5515
|
}
|
|
5516
5516
|
);
|
|
5517
5517
|
}
|
|
5518
5518
|
function yu({ className: t }) {
|
|
5519
|
-
const { getUpdatedFrame: n } =
|
|
5519
|
+
const { getUpdatedFrame: n } = la();
|
|
5520
5520
|
O((d) => d.frame);
|
|
5521
5521
|
const s = W((d) => d.selectedSheetId), { updateFrame: l, setIsVisualEditing: r } = ht(), [i, c] = _(!1);
|
|
5522
5522
|
return /* @__PURE__ */ a(
|
|
@@ -5546,7 +5546,7 @@ function yu({ className: t }) {
|
|
|
5546
5546
|
" Applying"
|
|
5547
5547
|
] }),
|
|
5548
5548
|
!i && /* @__PURE__ */ a(q, { children: [
|
|
5549
|
-
/* @__PURE__ */ e(
|
|
5549
|
+
/* @__PURE__ */ e(wa, { className: "mr-2 size-4 font-bold" }),
|
|
5550
5550
|
"Apply Locally"
|
|
5551
5551
|
] })
|
|
5552
5552
|
]
|
|
@@ -5570,7 +5570,7 @@ function bu({ className: t }) {
|
|
|
5570
5570
|
size: "sm",
|
|
5571
5571
|
variant: "outline",
|
|
5572
5572
|
children: [
|
|
5573
|
-
/* @__PURE__ */ e(
|
|
5573
|
+
/* @__PURE__ */ e(Ie, { className: "mr-2 size-4" }),
|
|
5574
5574
|
"Close"
|
|
5575
5575
|
]
|
|
5576
5576
|
}
|
|
@@ -5614,7 +5614,7 @@ function Ln() {
|
|
|
5614
5614
|
function Cu() {
|
|
5615
5615
|
const [t, n] = _(!1), [s, l] = _(!1), [r, i] = _(null), c = O((T) => T.frame), o = O((T) => T.card), d = us(), u = W((T) => T.selectedSheetId), m = W(
|
|
5616
5616
|
(T) => T.actions.setIsDashboardPanelOpen
|
|
5617
|
-
), { getUpdatedFrame: p } =
|
|
5617
|
+
), { getUpdatedFrame: p } = la(), { selectVisual: h } = Ra(), { addFrame: f, setSelectedFrameId: v, setIsVisualEditing: g } = ht(), b = !!(c != null && c.visualId), y = (d == null ? void 0 : d.title) || (o == null ? void 0 : o.title) || "Untitled Visual", w = Ei((T) => {
|
|
5618
5618
|
if (T != null && T.id) {
|
|
5619
5619
|
if (h(T), s && r && u) {
|
|
5620
5620
|
const D = {
|
|
@@ -5675,7 +5675,7 @@ function wu({
|
|
|
5675
5675
|
isLibraryVisual: f,
|
|
5676
5676
|
currentVisualName: v,
|
|
5677
5677
|
isSaving: g
|
|
5678
|
-
} = Cu(), { handleAddLibraryVisual: b } =
|
|
5678
|
+
} = Cu(), { handleAddLibraryVisual: b } = la(), y = async () => {
|
|
5679
5679
|
if (!i) {
|
|
5680
5680
|
de.error("No dashboard sheet selected");
|
|
5681
5681
|
return;
|
|
@@ -5717,13 +5717,13 @@ function wu({
|
|
|
5717
5717
|
}
|
|
5718
5718
|
) }),
|
|
5719
5719
|
/* @__PURE__ */ e(Dt, { align: "end", children: /* @__PURE__ */ a(
|
|
5720
|
-
|
|
5720
|
+
Ye,
|
|
5721
5721
|
{
|
|
5722
5722
|
onClick: (w) => {
|
|
5723
5723
|
w.stopPropagation(), p(!0);
|
|
5724
5724
|
},
|
|
5725
5725
|
children: [
|
|
5726
|
-
/* @__PURE__ */ e(
|
|
5726
|
+
/* @__PURE__ */ e(ga, { className: "mr-2 h-4 w-4" }),
|
|
5727
5727
|
"Save As..."
|
|
5728
5728
|
]
|
|
5729
5729
|
}
|
|
@@ -5740,8 +5740,8 @@ function wu({
|
|
|
5740
5740
|
children: /* @__PURE__ */ e(Za, { className: "h-4 w-4" })
|
|
5741
5741
|
}
|
|
5742
5742
|
) }),
|
|
5743
|
-
/* @__PURE__ */ e(Dt, { align: "end", children: /* @__PURE__ */ a(
|
|
5744
|
-
/* @__PURE__ */ e(
|
|
5743
|
+
/* @__PURE__ */ e(Dt, { align: "end", children: /* @__PURE__ */ a(Ye, { onClick: () => p(!0), children: [
|
|
5744
|
+
/* @__PURE__ */ e(ga, { className: "mr-2 h-4 w-4" }),
|
|
5745
5745
|
"Save As..."
|
|
5746
5746
|
] }) })
|
|
5747
5747
|
] }),
|
|
@@ -5964,7 +5964,7 @@ function ku() {
|
|
|
5964
5964
|
onClick: we,
|
|
5965
5965
|
size: "sm",
|
|
5966
5966
|
children: [
|
|
5967
|
-
/* @__PURE__ */ e(
|
|
5967
|
+
/* @__PURE__ */ e(ga, { className: "mr-2 h-4 w-4" }),
|
|
5968
5968
|
"Save Lens"
|
|
5969
5969
|
]
|
|
5970
5970
|
}
|
|
@@ -5978,7 +5978,7 @@ function ku() {
|
|
|
5978
5978
|
disabled: !p,
|
|
5979
5979
|
onClick: () => oe(),
|
|
5980
5980
|
children: [
|
|
5981
|
-
/* @__PURE__ */ e(
|
|
5981
|
+
/* @__PURE__ */ e($e, { className: "mr-2 h-4 w-4" }),
|
|
5982
5982
|
"Visual"
|
|
5983
5983
|
]
|
|
5984
5984
|
}
|
|
@@ -6004,7 +6004,7 @@ function ku() {
|
|
|
6004
6004
|
onClick: ae,
|
|
6005
6005
|
size: "sm",
|
|
6006
6006
|
children: [
|
|
6007
|
-
ve ? /* @__PURE__ */ e(Ee, { className: "mr-2 h-4 w-4 animate-spin" }) : /* @__PURE__ */ e(
|
|
6007
|
+
ve ? /* @__PURE__ */ e(Ee, { className: "mr-2 h-4 w-4 animate-spin" }) : /* @__PURE__ */ e(ga, { className: "mr-2 h-4 w-4" }),
|
|
6008
6008
|
ve ? "Saving..." : "Save"
|
|
6009
6009
|
]
|
|
6010
6010
|
}
|
|
@@ -6972,7 +6972,7 @@ function Au({ context: t = "editor" } = {}) {
|
|
|
6972
6972
|
m.length > 0 && /* @__PURE__ */ a("div", { className: "relative mb-4", children: [
|
|
6973
6973
|
/* @__PURE__ */ e(Xt, { className: "absolute left-3 top-1/2 size-3.5 -translate-y-1/2 transform text-muted-foreground" }),
|
|
6974
6974
|
/* @__PURE__ */ e(
|
|
6975
|
-
|
|
6975
|
+
Be,
|
|
6976
6976
|
{
|
|
6977
6977
|
className: "pl-10 pr-10",
|
|
6978
6978
|
type: "text",
|
|
@@ -6987,7 +6987,7 @@ function Au({ context: t = "editor" } = {}) {
|
|
|
6987
6987
|
className: "absolute right-3 top-1/2 -translate-y-1/2 transform text-muted-foreground hover:text-foreground",
|
|
6988
6988
|
onClick: () => s(""),
|
|
6989
6989
|
type: "button",
|
|
6990
|
-
children: /* @__PURE__ */ e(
|
|
6990
|
+
children: /* @__PURE__ */ e(Ie, { className: "size-3.5" })
|
|
6991
6991
|
}
|
|
6992
6992
|
)
|
|
6993
6993
|
] }),
|
|
@@ -7471,7 +7471,7 @@ function Ou({
|
|
|
7471
7471
|
")"
|
|
7472
7472
|
] }),
|
|
7473
7473
|
/* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ a(V, { variant: "outline", size: "sm", onClick: m, children: [
|
|
7474
|
-
/* @__PURE__ */ e(
|
|
7474
|
+
/* @__PURE__ */ e($e, { className: "mr-1 h-4 w-4" }),
|
|
7475
7475
|
"Add Join"
|
|
7476
7476
|
] }) })
|
|
7477
7477
|
] }),
|
|
@@ -7533,7 +7533,7 @@ function Ou({
|
|
|
7533
7533
|
variant: "ghost",
|
|
7534
7534
|
size: "sm",
|
|
7535
7535
|
onClick: () => p(k.id),
|
|
7536
|
-
children: /* @__PURE__ */ e(
|
|
7536
|
+
children: /* @__PURE__ */ e(Ie, { className: "h-4 w-4" })
|
|
7537
7537
|
}
|
|
7538
7538
|
)
|
|
7539
7539
|
] })
|
|
@@ -7706,7 +7706,7 @@ function Ou({
|
|
|
7706
7706
|
size: "sm",
|
|
7707
7707
|
onClick: () => w(k.id),
|
|
7708
7708
|
children: [
|
|
7709
|
-
/* @__PURE__ */ e(
|
|
7709
|
+
/* @__PURE__ */ e($e, { className: "mr-1 h-3 w-3" }),
|
|
7710
7710
|
" Add Condition Group"
|
|
7711
7711
|
]
|
|
7712
7712
|
}
|
|
@@ -7920,7 +7920,7 @@ function Ou({
|
|
|
7920
7920
|
R,
|
|
7921
7921
|
z
|
|
7922
7922
|
),
|
|
7923
|
-
children: /* @__PURE__ */ e(
|
|
7923
|
+
children: /* @__PURE__ */ e(Ie, { className: "size-3.5" })
|
|
7924
7924
|
}
|
|
7925
7925
|
)
|
|
7926
7926
|
]
|
|
@@ -7936,7 +7936,7 @@ function Ou({
|
|
|
7936
7936
|
className: "mt-2",
|
|
7937
7937
|
onClick: () => D(k.id, R),
|
|
7938
7938
|
children: [
|
|
7939
|
-
/* @__PURE__ */ e(
|
|
7939
|
+
/* @__PURE__ */ e($e, { className: "mr-1 h-3 w-3" }),
|
|
7940
7940
|
" Add Condition"
|
|
7941
7941
|
]
|
|
7942
7942
|
}
|
|
@@ -8575,7 +8575,7 @@ function _r({
|
|
|
8575
8575
|
});
|
|
8576
8576
|
},
|
|
8577
8577
|
className: "absolute right-1 top-1/2 -translate-y-1/2 rounded-full p-0.5 hover:bg-red-100",
|
|
8578
|
-
children: /* @__PURE__ */ e(
|
|
8578
|
+
children: /* @__PURE__ */ e(Ie, { className: "h-2.5 w-2.5 group-hover:text-red-500" })
|
|
8579
8579
|
}
|
|
8580
8580
|
)
|
|
8581
8581
|
]
|
|
@@ -9032,7 +9032,7 @@ ${u}` : ""}
|
|
|
9032
9032
|
variant: "ghost",
|
|
9033
9033
|
onClick: () => i(!r),
|
|
9034
9034
|
className: "absolute bottom-0 right-6 size-7 p-1",
|
|
9035
|
-
children: r ? /* @__PURE__ */ e(
|
|
9035
|
+
children: r ? /* @__PURE__ */ e(Ie, { className: "size-3.5 text-muted-foreground" }) : /* @__PURE__ */ e(es, { className: "size-3.5 text-muted-foreground" })
|
|
9036
9036
|
}
|
|
9037
9037
|
)
|
|
9038
9038
|
] });
|
|
@@ -10402,7 +10402,7 @@ function nm() {
|
|
|
10402
10402
|
displayTab: b
|
|
10403
10403
|
});
|
|
10404
10404
|
},
|
|
10405
|
-
children: g.displayTab === !0 || g.displayTab === void 0 ? /* @__PURE__ */ e(
|
|
10405
|
+
children: g.displayTab === !0 || g.displayTab === void 0 ? /* @__PURE__ */ e(da, { className: "mr-2 size-3.5 text-muted-foreground hover:text-foreground" }) : /* @__PURE__ */ e(Qc, { className: "mr-2 size-3.5 text-muted-foreground hover:text-foreground" })
|
|
10406
10406
|
}
|
|
10407
10407
|
);
|
|
10408
10408
|
}
|
|
@@ -10440,7 +10440,7 @@ function nm() {
|
|
|
10440
10440
|
}
|
|
10441
10441
|
),
|
|
10442
10442
|
t.activeCardId === v.id && t.cards.length > 1 && /* @__PURE__ */ e(
|
|
10443
|
-
|
|
10443
|
+
Ie,
|
|
10444
10444
|
{
|
|
10445
10445
|
className: "ml-2 size-3.5 text-muted-foreground hover:text-foreground",
|
|
10446
10446
|
onClick: () => u(v.id)
|
|
@@ -10456,7 +10456,7 @@ function nm() {
|
|
|
10456
10456
|
tooltip: "Add Card",
|
|
10457
10457
|
className: "ml-1 h-8 px-2 hover:bg-muted-foreground/50",
|
|
10458
10458
|
onClick: () => h(n),
|
|
10459
|
-
children: /* @__PURE__ */ e(
|
|
10459
|
+
children: /* @__PURE__ */ e($e, { className: "h-4 w-4" })
|
|
10460
10460
|
}
|
|
10461
10461
|
)
|
|
10462
10462
|
] }) });
|
|
@@ -10717,7 +10717,7 @@ function rm() {
|
|
|
10717
10717
|
)
|
|
10718
10718
|
] });
|
|
10719
10719
|
}
|
|
10720
|
-
function
|
|
10720
|
+
function It({
|
|
10721
10721
|
defaultValue: t,
|
|
10722
10722
|
label: n,
|
|
10723
10723
|
options: s,
|
|
@@ -10793,7 +10793,7 @@ function im() {
|
|
|
10793
10793
|
children: [
|
|
10794
10794
|
/* @__PURE__ */ e("div", { className: "col-span-4 flex items-center", children: D }),
|
|
10795
10795
|
/* @__PURE__ */ e(
|
|
10796
|
-
|
|
10796
|
+
It,
|
|
10797
10797
|
{
|
|
10798
10798
|
className: "col-span-6 h-8 w-full justify-between",
|
|
10799
10799
|
label: "",
|
|
@@ -10811,7 +10811,7 @@ function im() {
|
|
|
10811
10811
|
function h(y, w, P = [], T = "") {
|
|
10812
10812
|
var D, S;
|
|
10813
10813
|
return t ? y === "input" ? /* @__PURE__ */ e(
|
|
10814
|
-
|
|
10814
|
+
Ae,
|
|
10815
10815
|
{
|
|
10816
10816
|
className: `h-8 w-full ${_t}`,
|
|
10817
10817
|
value: ((D = t == null ? void 0 : t.settings) == null ? void 0 : D[w]) || T,
|
|
@@ -10827,7 +10827,7 @@ function im() {
|
|
|
10827
10827
|
},
|
|
10828
10828
|
w
|
|
10829
10829
|
) : y === "select" ? /* @__PURE__ */ e(
|
|
10830
|
-
|
|
10830
|
+
It,
|
|
10831
10831
|
{
|
|
10832
10832
|
className: "h-8 w-full",
|
|
10833
10833
|
label: "",
|
|
@@ -10873,7 +10873,7 @@ function im() {
|
|
|
10873
10873
|
/* @__PURE__ */ e(Te, { children: /* @__PURE__ */ a("div", { className: "space-y-4 text-sm", children: [
|
|
10874
10874
|
/* @__PURE__ */ e("div", { className: "space-y-2", children: /* @__PURE__ */ a("div", { className: "space-y-4", children: [
|
|
10875
10875
|
/* @__PURE__ */ e(
|
|
10876
|
-
|
|
10876
|
+
It,
|
|
10877
10877
|
{
|
|
10878
10878
|
icon: /* @__PURE__ */ e($c, { className: "h-3.5 w-3.5" }),
|
|
10879
10879
|
className: "h-9 w-full",
|
|
@@ -10902,7 +10902,7 @@ function im() {
|
|
|
10902
10902
|
)
|
|
10903
10903
|
] }) }),
|
|
10904
10904
|
((t == null ? void 0 : t.type) === "component" || (t == null ? void 0 : t.type) === void 0) && t && /* @__PURE__ */ e(q, { children: o && /* @__PURE__ */ e(
|
|
10905
|
-
|
|
10905
|
+
It,
|
|
10906
10906
|
{
|
|
10907
10907
|
icon: /* @__PURE__ */ e(Kc, { className: "h-3.5 w-3.5" }),
|
|
10908
10908
|
className: "h-9 w-full",
|
|
@@ -10936,7 +10936,7 @@ function im() {
|
|
|
10936
10936
|
}
|
|
10937
10937
|
);
|
|
10938
10938
|
}
|
|
10939
|
-
function
|
|
10939
|
+
function ra() {
|
|
10940
10940
|
const [t, n] = _([]), s = O((u) => u.card.preferences), { setFilterOnClickColumnIndex: l, setCardPreferences: r } = O(
|
|
10941
10941
|
(u) => u.actions
|
|
10942
10942
|
), i = O(
|
|
@@ -10994,7 +10994,7 @@ function ia() {
|
|
|
10994
10994
|
var m, p, h, f;
|
|
10995
10995
|
if (t != null && t[u] || (p = (m = s == null ? void 0 : s.onClickFilter) == null ? void 0 : m.find((v) => v.columnIndex === u)) != null && p.expression)
|
|
10996
10996
|
return /* @__PURE__ */ e(
|
|
10997
|
-
|
|
10997
|
+
Ae,
|
|
10998
10998
|
{
|
|
10999
10999
|
value: (f = (h = s == null ? void 0 : s.onClickFilter) == null ? void 0 : h.find((v) => v.columnIndex === u)) == null ? void 0 : f.expression,
|
|
11000
11000
|
onChange: (v) => o(u, v),
|
|
@@ -11096,13 +11096,13 @@ function om({ idx: t }) {
|
|
|
11096
11096
|
}
|
|
11097
11097
|
return /* @__PURE__ */ a(Bt, { children: [
|
|
11098
11098
|
/* @__PURE__ */ e(qt, { children: /* @__PURE__ */ e(br, { className: "size-4 rotate-[135deg] cursor-pointer text-muted-foreground hover:text-foreground" }) }),
|
|
11099
|
-
/* @__PURE__ */ e(
|
|
11099
|
+
/* @__PURE__ */ e(na, { className: "w-fit px-2 py-1", children: /* @__PURE__ */ a("div", { className: "flex gap-1", children: [
|
|
11100
11100
|
/* @__PURE__ */ e(
|
|
11101
11101
|
"button",
|
|
11102
11102
|
{
|
|
11103
11103
|
onClick: () => c("none", t),
|
|
11104
11104
|
className: "h-7 p-1 text-xs font-normal",
|
|
11105
|
-
children: /* @__PURE__ */ e(
|
|
11105
|
+
children: /* @__PURE__ */ e(Ie, { className: "size-3.5" })
|
|
11106
11106
|
}
|
|
11107
11107
|
),
|
|
11108
11108
|
/* @__PURE__ */ e(
|
|
@@ -11352,11 +11352,11 @@ function dm({
|
|
|
11352
11352
|
]
|
|
11353
11353
|
}
|
|
11354
11354
|
) }),
|
|
11355
|
-
/* @__PURE__ */ e(
|
|
11355
|
+
/* @__PURE__ */ e(na, { className: "w-[200px] p-0", children: /* @__PURE__ */ a(Cs, { children: [
|
|
11356
11356
|
/* @__PURE__ */ e(ws, { placeholder: "Search column", className: "h-9" }),
|
|
11357
11357
|
/* @__PURE__ */ a(Ss, { children: [
|
|
11358
11358
|
/* @__PURE__ */ e(ks, { children: "No framework found." }),
|
|
11359
|
-
/* @__PURE__ */ e(
|
|
11359
|
+
/* @__PURE__ */ e(ca, { children: t == null ? void 0 : t.map((o) => /* @__PURE__ */ a(
|
|
11360
11360
|
ja,
|
|
11361
11361
|
{
|
|
11362
11362
|
value: o.column_name,
|
|
@@ -11419,7 +11419,7 @@ function um({
|
|
|
11419
11419
|
/* @__PURE__ */ a(ke, { value: "item-3", children: [
|
|
11420
11420
|
/* @__PURE__ */ e(De, { children: "Click Filters" }),
|
|
11421
11421
|
/* @__PURE__ */ a(Te, { className: "space-y-4 px-2", children: [
|
|
11422
|
-
/* @__PURE__ */ e(
|
|
11422
|
+
/* @__PURE__ */ e(ra, {}),
|
|
11423
11423
|
/* @__PURE__ */ e(Sa, {})
|
|
11424
11424
|
] })
|
|
11425
11425
|
] })
|
|
@@ -11462,7 +11462,7 @@ function mm({
|
|
|
11462
11462
|
/* @__PURE__ */ a(ke, { value: "item-3", children: [
|
|
11463
11463
|
/* @__PURE__ */ e(De, { children: "Click Filters" }),
|
|
11464
11464
|
/* @__PURE__ */ a(Te, { className: "space-y-4 px-2", children: [
|
|
11465
|
-
/* @__PURE__ */ e(
|
|
11465
|
+
/* @__PURE__ */ e(ra, {}),
|
|
11466
11466
|
/* @__PURE__ */ e(Sa, {})
|
|
11467
11467
|
] })
|
|
11468
11468
|
] })
|
|
@@ -11574,7 +11574,7 @@ function fm() {
|
|
|
11574
11574
|
),
|
|
11575
11575
|
!["kpi"].includes(t) && /* @__PURE__ */ a("div", { className: "space-y-4", children: [
|
|
11576
11576
|
/* @__PURE__ */ e(Xr, {}),
|
|
11577
|
-
/* @__PURE__ */ e(
|
|
11577
|
+
/* @__PURE__ */ e(ra, {}),
|
|
11578
11578
|
/* @__PURE__ */ e(Sa, {})
|
|
11579
11579
|
] })
|
|
11580
11580
|
] });
|
|
@@ -11708,13 +11708,13 @@ function vm({
|
|
|
11708
11708
|
onClick: i,
|
|
11709
11709
|
variant: "secondary",
|
|
11710
11710
|
className: "h-5 p-1 text-muted-foreground",
|
|
11711
|
-
children: /* @__PURE__ */ e(
|
|
11711
|
+
children: /* @__PURE__ */ e($e, { className: "size-3" })
|
|
11712
11712
|
}
|
|
11713
11713
|
)
|
|
11714
11714
|
] }),
|
|
11715
11715
|
t.map((c, o) => /* @__PURE__ */ a("div", { className: "flex items-center gap-2 px-2", children: [
|
|
11716
11716
|
/* @__PURE__ */ e(
|
|
11717
|
-
|
|
11717
|
+
Ae,
|
|
11718
11718
|
{
|
|
11719
11719
|
onChange: (d) => l(o, "start", d.target.value),
|
|
11720
11720
|
value: c.start,
|
|
@@ -11723,7 +11723,7 @@ function vm({
|
|
|
11723
11723
|
),
|
|
11724
11724
|
/* @__PURE__ */ e("span", { children: "-" }),
|
|
11725
11725
|
/* @__PURE__ */ e(
|
|
11726
|
-
|
|
11726
|
+
Ae,
|
|
11727
11727
|
{
|
|
11728
11728
|
value: c.end,
|
|
11729
11729
|
onChange: (d) => l(o, "end", d.target.value),
|
|
@@ -11731,7 +11731,7 @@ function vm({
|
|
|
11731
11731
|
}
|
|
11732
11732
|
),
|
|
11733
11733
|
/* @__PURE__ */ e(
|
|
11734
|
-
|
|
11734
|
+
Ae,
|
|
11735
11735
|
{
|
|
11736
11736
|
onChange: (d) => l(o, "color", d.target.value),
|
|
11737
11737
|
value: c.color,
|
|
@@ -11752,7 +11752,7 @@ function vm({
|
|
|
11752
11752
|
onClick: () => r(o),
|
|
11753
11753
|
variant: "secondary",
|
|
11754
11754
|
className: "h-5 p-1 text-muted-foreground",
|
|
11755
|
-
children: /* @__PURE__ */ e(
|
|
11755
|
+
children: /* @__PURE__ */ e(Ie, { className: "size-3" })
|
|
11756
11756
|
}
|
|
11757
11757
|
)
|
|
11758
11758
|
] }, o))
|
|
@@ -11894,7 +11894,7 @@ function xm() {
|
|
|
11894
11894
|
/* @__PURE__ */ a("div", { className: "w-full space-y-1", children: [
|
|
11895
11895
|
/* @__PURE__ */ e(U, { children: "Suffix" }),
|
|
11896
11896
|
/* @__PURE__ */ e(
|
|
11897
|
-
|
|
11897
|
+
Ae,
|
|
11898
11898
|
{
|
|
11899
11899
|
value: ((v = t == null ? void 0 : t.formatNumber) == null ? void 0 : v.suffix) || "",
|
|
11900
11900
|
className: "h-8 font-mono text-xs focus-visible:ring-0 focus-visible:ring-ring focus-visible:ring-offset-0",
|
|
@@ -12089,7 +12089,7 @@ function wm() {
|
|
|
12089
12089
|
/* @__PURE__ */ e(Ct, { className: "my-4" }),
|
|
12090
12090
|
/* @__PURE__ */ e(Is, { open: !0, summary: "Settings", children: /* @__PURE__ */ a("div", { className: "space-y-3 px-2", children: [
|
|
12091
12091
|
/* @__PURE__ */ e(
|
|
12092
|
-
|
|
12092
|
+
It,
|
|
12093
12093
|
{
|
|
12094
12094
|
className: "h-9",
|
|
12095
12095
|
options: [
|
|
@@ -12120,7 +12120,7 @@ function wm() {
|
|
|
12120
12120
|
}
|
|
12121
12121
|
),
|
|
12122
12122
|
n === "custom" && /* @__PURE__ */ e(
|
|
12123
|
-
|
|
12123
|
+
Ae,
|
|
12124
12124
|
{
|
|
12125
12125
|
onChange: (F) => {
|
|
12126
12126
|
l(F.target.value);
|
|
@@ -12144,7 +12144,7 @@ function wm() {
|
|
|
12144
12144
|
/* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
12145
12145
|
/* @__PURE__ */ e(U, { children: "Map Object" }),
|
|
12146
12146
|
/* @__PURE__ */ e(
|
|
12147
|
-
|
|
12147
|
+
It,
|
|
12148
12148
|
{
|
|
12149
12149
|
className: "h-9",
|
|
12150
12150
|
options: c,
|
|
@@ -12166,7 +12166,7 @@ function wm() {
|
|
|
12166
12166
|
/* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
12167
12167
|
/* @__PURE__ */ e(U, { children: "Projection" }),
|
|
12168
12168
|
/* @__PURE__ */ e(
|
|
12169
|
-
|
|
12169
|
+
It,
|
|
12170
12170
|
{
|
|
12171
12171
|
className: "h-9",
|
|
12172
12172
|
options: ym,
|
|
@@ -12188,7 +12188,7 @@ function wm() {
|
|
|
12188
12188
|
/* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
12189
12189
|
/* @__PURE__ */ e(U, { children: "Colors" }),
|
|
12190
12190
|
/* @__PURE__ */ e(
|
|
12191
|
-
|
|
12191
|
+
It,
|
|
12192
12192
|
{
|
|
12193
12193
|
className: "h-9",
|
|
12194
12194
|
options: Cm,
|
|
@@ -12212,7 +12212,7 @@ function wm() {
|
|
|
12212
12212
|
/* @__PURE__ */ e(Ct, { className: "my-4" }),
|
|
12213
12213
|
/* @__PURE__ */ e(Is, { className: "", summary: "Scale Options", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-3", children: [
|
|
12214
12214
|
/* @__PURE__ */ e(
|
|
12215
|
-
|
|
12215
|
+
Ae,
|
|
12216
12216
|
{
|
|
12217
12217
|
className: `h-9 w-full ${_t}`,
|
|
12218
12218
|
type: "number",
|
|
@@ -12232,7 +12232,7 @@ function wm() {
|
|
|
12232
12232
|
),
|
|
12233
12233
|
/* @__PURE__ */ e(U, { children: "X" }),
|
|
12234
12234
|
/* @__PURE__ */ e(
|
|
12235
|
-
|
|
12235
|
+
Ae,
|
|
12236
12236
|
{
|
|
12237
12237
|
className: `h-9 w-full ${_t}`,
|
|
12238
12238
|
type: "number",
|
|
@@ -12255,7 +12255,7 @@ function wm() {
|
|
|
12255
12255
|
),
|
|
12256
12256
|
/* @__PURE__ */ e(U, { children: "Y" }),
|
|
12257
12257
|
/* @__PURE__ */ e(
|
|
12258
|
-
|
|
12258
|
+
Ae,
|
|
12259
12259
|
{
|
|
12260
12260
|
className: `h-9 w-full ${_t}`,
|
|
12261
12261
|
type: "number",
|
|
@@ -12278,7 +12278,7 @@ function wm() {
|
|
|
12278
12278
|
)
|
|
12279
12279
|
] }) }),
|
|
12280
12280
|
/* @__PURE__ */ e(Ct, { className: "my-4" }),
|
|
12281
|
-
/* @__PURE__ */ e(
|
|
12281
|
+
/* @__PURE__ */ e(ra, {})
|
|
12282
12282
|
] });
|
|
12283
12283
|
}
|
|
12284
12284
|
function Sm() {
|
|
@@ -12351,7 +12351,7 @@ function Ya({
|
|
|
12351
12351
|
!["range", "text"].includes(t) && /* @__PURE__ */ a(ke, { value: "item-3", children: [
|
|
12352
12352
|
/* @__PURE__ */ e(De, { children: "Click Filters" }),
|
|
12353
12353
|
/* @__PURE__ */ a(Te, { className: "space-y-4 px-2", children: [
|
|
12354
|
-
/* @__PURE__ */ e(
|
|
12354
|
+
/* @__PURE__ */ e(ra, {}),
|
|
12355
12355
|
/* @__PURE__ */ e(Sa, {})
|
|
12356
12356
|
] })
|
|
12357
12357
|
] })
|
|
@@ -12368,7 +12368,7 @@ function km() {
|
|
|
12368
12368
|
return /* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
12369
12369
|
/* @__PURE__ */ e(U, { children: "Sort" }),
|
|
12370
12370
|
/* @__PURE__ */ e(
|
|
12371
|
-
|
|
12371
|
+
It,
|
|
12372
12372
|
{
|
|
12373
12373
|
className: "h-8",
|
|
12374
12374
|
label: "Sort Chart",
|
|
@@ -12430,7 +12430,7 @@ function km() {
|
|
|
12430
12430
|
/* @__PURE__ */ a(ke, { value: "item-3", children: [
|
|
12431
12431
|
/* @__PURE__ */ e(De, { children: "Click Filters" }),
|
|
12432
12432
|
/* @__PURE__ */ a(Te, { className: "space-y-4 px-2", children: [
|
|
12433
|
-
/* @__PURE__ */ e(
|
|
12433
|
+
/* @__PURE__ */ e(ra, {}),
|
|
12434
12434
|
/* @__PURE__ */ e(Sa, {})
|
|
12435
12435
|
] })
|
|
12436
12436
|
] })
|
|
@@ -12450,7 +12450,7 @@ function Dm({
|
|
|
12450
12450
|
/* @__PURE__ */ e(mt, { defaultValue: ["item-3"], type: "multiple", children: /* @__PURE__ */ a(ke, { value: "item-3", children: [
|
|
12451
12451
|
/* @__PURE__ */ e(De, { children: "Click Filters" }),
|
|
12452
12452
|
/* @__PURE__ */ a(Te, { className: "space-y-4 px-2", children: [
|
|
12453
|
-
/* @__PURE__ */ e(
|
|
12453
|
+
/* @__PURE__ */ e(ra, {}),
|
|
12454
12454
|
/* @__PURE__ */ e(Sa, {})
|
|
12455
12455
|
] })
|
|
12456
12456
|
] }) }),
|
|
@@ -12562,7 +12562,7 @@ function Zr({ color: t, onColorChange: n, onClose: s }) {
|
|
|
12562
12562
|
/* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
12563
12563
|
/* @__PURE__ */ e(U, { children: "HEX" }),
|
|
12564
12564
|
/* @__PURE__ */ e(
|
|
12565
|
-
|
|
12565
|
+
Ae,
|
|
12566
12566
|
{
|
|
12567
12567
|
value: u,
|
|
12568
12568
|
onChange: (b) => v(b.target.value),
|
|
@@ -12834,7 +12834,7 @@ function ei() {
|
|
|
12834
12834
|
style: { backgroundColor: i[M] }
|
|
12835
12835
|
}
|
|
12836
12836
|
) }),
|
|
12837
|
-
/* @__PURE__ */ e(
|
|
12837
|
+
/* @__PURE__ */ e(na, { align: "start", className: "w-auto p-3", children: /* @__PURE__ */ a("div", { className: "space-y-2.5", children: [
|
|
12838
12838
|
/* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
12839
12839
|
/* @__PURE__ */ e("p", { className: "text-xs font-medium text-muted-foreground", children: "Theme Colors" }),
|
|
12840
12840
|
/* @__PURE__ */ e("div", { className: "grid grid-cols-5 gap-1.5", children: h.slice(0, 10).map((E, z) => /* @__PURE__ */ a(
|
|
@@ -12932,68 +12932,6 @@ function ei() {
|
|
|
12932
12932
|
] }) })
|
|
12933
12933
|
] });
|
|
12934
12934
|
}
|
|
12935
|
-
function It({
|
|
12936
|
-
value: t,
|
|
12937
|
-
onSave: n,
|
|
12938
|
-
placeholder: s = "",
|
|
12939
|
-
type: l = "text",
|
|
12940
|
-
className: r = ""
|
|
12941
|
-
}) {
|
|
12942
|
-
const [i, c] = _(t ?? ""), [o, d] = _(!1);
|
|
12943
|
-
Ge.useEffect(() => {
|
|
12944
|
-
c(t ?? "");
|
|
12945
|
-
}, [t]);
|
|
12946
|
-
const u = () => {
|
|
12947
|
-
n(i), d(!1);
|
|
12948
|
-
}, m = () => {
|
|
12949
|
-
c(t ?? ""), d(!1);
|
|
12950
|
-
};
|
|
12951
|
-
return /* @__PURE__ */ a("div", { className: `flex items-center gap-2 ${r}`, children: [
|
|
12952
|
-
/* @__PURE__ */ e(
|
|
12953
|
-
$e,
|
|
12954
|
-
{
|
|
12955
|
-
placeholder: s,
|
|
12956
|
-
type: l,
|
|
12957
|
-
value: o ? i : t ?? "",
|
|
12958
|
-
onChange: (p) => {
|
|
12959
|
-
c(p.target.value), d(!0);
|
|
12960
|
-
},
|
|
12961
|
-
onFocus: () => d(!0),
|
|
12962
|
-
onClick: (p) => p.stopPropagation(),
|
|
12963
|
-
className: "h-8 text-xs",
|
|
12964
|
-
onPointerDown: (p) => p.stopPropagation(),
|
|
12965
|
-
onKeyDown: (p) => {
|
|
12966
|
-
p.stopPropagation(), p.key === "Enter" && o && i !== t ? u() : p.key === "Escape" && m();
|
|
12967
|
-
},
|
|
12968
|
-
"aria-label": s || "Edit field"
|
|
12969
|
-
}
|
|
12970
|
-
),
|
|
12971
|
-
o && i !== t && /* @__PURE__ */ a(q, { children: [
|
|
12972
|
-
/* @__PURE__ */ e(
|
|
12973
|
-
V,
|
|
12974
|
-
{
|
|
12975
|
-
variant: "ghost",
|
|
12976
|
-
size: "icon",
|
|
12977
|
-
className: "h-6 w-6 p-0",
|
|
12978
|
-
"aria-label": "Confirm edit",
|
|
12979
|
-
onClick: u,
|
|
12980
|
-
children: /* @__PURE__ */ e(na, { className: "h-4 w-4 text-green-600" })
|
|
12981
|
-
}
|
|
12982
|
-
),
|
|
12983
|
-
/* @__PURE__ */ e(
|
|
12984
|
-
V,
|
|
12985
|
-
{
|
|
12986
|
-
variant: "ghost",
|
|
12987
|
-
size: "icon",
|
|
12988
|
-
className: "h-6 w-6 p-0",
|
|
12989
|
-
"aria-label": "Cancel edit",
|
|
12990
|
-
onClick: m,
|
|
12991
|
-
children: /* @__PURE__ */ e(Ae, { className: "h-4 w-4 text-muted-foreground" })
|
|
12992
|
-
}
|
|
12993
|
-
)
|
|
12994
|
-
] })
|
|
12995
|
-
] });
|
|
12996
|
-
}
|
|
12997
12935
|
const Am = [
|
|
12998
12936
|
"auto",
|
|
12999
12937
|
"number",
|
|
@@ -13103,7 +13041,7 @@ function Un({
|
|
|
13103
13041
|
["number", "currency", "percent"].includes(r) && /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
13104
13042
|
/* @__PURE__ */ e(U, { className: "w-20 text-xs text-muted-foreground", children: "Decimals" }),
|
|
13105
13043
|
/* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
|
|
13106
|
-
|
|
13044
|
+
Ae,
|
|
13107
13045
|
{
|
|
13108
13046
|
type: "number",
|
|
13109
13047
|
min: "0",
|
|
@@ -13175,7 +13113,7 @@ function Un({
|
|
|
13175
13113
|
r === "number" && /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
13176
13114
|
/* @__PURE__ */ e(U, { className: "w-20 text-xs text-muted-foreground", children: "Prefix" }),
|
|
13177
13115
|
/* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
|
|
13178
|
-
|
|
13116
|
+
Ae,
|
|
13179
13117
|
{
|
|
13180
13118
|
placeholder: "e.g., $",
|
|
13181
13119
|
value: t.prefix || "",
|
|
@@ -13187,7 +13125,7 @@ function Un({
|
|
|
13187
13125
|
r === "number" && /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
13188
13126
|
/* @__PURE__ */ e(U, { className: "w-20 text-xs text-muted-foreground", children: "Suffix" }),
|
|
13189
13127
|
/* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
|
|
13190
|
-
|
|
13128
|
+
Ae,
|
|
13191
13129
|
{
|
|
13192
13130
|
placeholder: "e.g., units",
|
|
13193
13131
|
value: t.suffix || "",
|
|
@@ -13209,7 +13147,7 @@ function Un({
|
|
|
13209
13147
|
r === "percent" && /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
13210
13148
|
/* @__PURE__ */ e(U, { className: "w-20 text-xs text-muted-foreground", children: "Multiply By" }),
|
|
13211
13149
|
/* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
|
|
13212
|
-
|
|
13150
|
+
Ae,
|
|
13213
13151
|
{
|
|
13214
13152
|
type: "number",
|
|
13215
13153
|
placeholder: "100",
|
|
@@ -13225,7 +13163,7 @@ function Un({
|
|
|
13225
13163
|
r === "date" && /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
13226
13164
|
/* @__PURE__ */ e(U, { className: "w-20 text-xs text-muted-foreground", children: "Format" }),
|
|
13227
13165
|
/* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
|
|
13228
|
-
|
|
13166
|
+
Ae,
|
|
13229
13167
|
{
|
|
13230
13168
|
type: "text",
|
|
13231
13169
|
placeholder: "MM/DD/YYYY",
|
|
@@ -13297,7 +13235,7 @@ function Nl({ axis: t, label: n, type: s, config: l, onChange: r }) {
|
|
|
13297
13235
|
)
|
|
13298
13236
|
] }),
|
|
13299
13237
|
((h = l == null ? void 0 : l.name) == null ? void 0 : h.enabled) && /* @__PURE__ */ e(
|
|
13300
|
-
|
|
13238
|
+
At,
|
|
13301
13239
|
{
|
|
13302
13240
|
placeholder: `${n} title`,
|
|
13303
13241
|
value: ((f = l == null ? void 0 : l.name) == null ? void 0 : f.text) || "",
|
|
@@ -13367,7 +13305,7 @@ function Nl({ axis: t, label: n, type: s, config: l, onChange: r }) {
|
|
|
13367
13305
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
13368
13306
|
/* @__PURE__ */ e(U, { className: "w-8 text-xs text-muted-foreground", children: "Min" }),
|
|
13369
13307
|
/* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
|
|
13370
|
-
|
|
13308
|
+
At,
|
|
13371
13309
|
{
|
|
13372
13310
|
type: "number",
|
|
13373
13311
|
placeholder: "auto",
|
|
@@ -13380,7 +13318,7 @@ function Nl({ axis: t, label: n, type: s, config: l, onChange: r }) {
|
|
|
13380
13318
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
13381
13319
|
/* @__PURE__ */ e(U, { className: "w-8 text-xs text-muted-foreground", children: "Max" }),
|
|
13382
13320
|
/* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
|
|
13383
|
-
|
|
13321
|
+
At,
|
|
13384
13322
|
{
|
|
13385
13323
|
type: "number",
|
|
13386
13324
|
placeholder: "auto",
|
|
@@ -13393,7 +13331,7 @@ function Nl({ axis: t, label: n, type: s, config: l, onChange: r }) {
|
|
|
13393
13331
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
13394
13332
|
/* @__PURE__ */ e(U, { className: "w-8 text-xs text-muted-foreground", children: "Step" }),
|
|
13395
13333
|
/* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
|
|
13396
|
-
|
|
13334
|
+
At,
|
|
13397
13335
|
{
|
|
13398
13336
|
type: "number",
|
|
13399
13337
|
placeholder: "auto",
|
|
@@ -13703,7 +13641,7 @@ function si() {
|
|
|
13703
13641
|
["number", "currency", "percent"].includes(n.format) && /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
13704
13642
|
/* @__PURE__ */ e(U, { className: "text-xs text-muted-foreground w-20", children: "Decimals" }),
|
|
13705
13643
|
/* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
|
|
13706
|
-
|
|
13644
|
+
At,
|
|
13707
13645
|
{
|
|
13708
13646
|
type: "number",
|
|
13709
13647
|
placeholder: "0",
|
|
@@ -13757,7 +13695,7 @@ function si() {
|
|
|
13757
13695
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
13758
13696
|
/* @__PURE__ */ e(U, { className: "text-xs text-muted-foreground w-20", children: "Size" }),
|
|
13759
13697
|
/* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
|
|
13760
|
-
|
|
13698
|
+
At,
|
|
13761
13699
|
{
|
|
13762
13700
|
type: "number",
|
|
13763
13701
|
placeholder: "12",
|
|
@@ -13806,7 +13744,7 @@ function si() {
|
|
|
13806
13744
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
13807
13745
|
/* @__PURE__ */ e(U, { className: "text-xs text-muted-foreground w-20", children: "Rotation" }),
|
|
13808
13746
|
/* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
|
|
13809
|
-
|
|
13747
|
+
At,
|
|
13810
13748
|
{
|
|
13811
13749
|
type: "number",
|
|
13812
13750
|
placeholder: "0",
|
|
@@ -14088,7 +14026,7 @@ function jm(t) {
|
|
|
14088
14026
|
}), k(!1));
|
|
14089
14027
|
}, [y, b, Q, k]);
|
|
14090
14028
|
async function xe({ toolCall: Y }) {
|
|
14091
|
-
var ue, Re, Se, Ze, Pe, ee, K, $, ce, Me, Fe, be, Le,
|
|
14029
|
+
var ue, Re, Se, Ze, Pe, ee, K, $, ce, Me, Fe, be, Le, Ge, ia, oa;
|
|
14092
14030
|
if (["createChartFromSql", "createForecast"].includes(Y.toolName)) {
|
|
14093
14031
|
const Lt = ((ue = Y.input) == null ? void 0 : ue.sql) ?? ((Re = Y.args) == null ? void 0 : Re.sql), vt = ((Se = Y.input) == null ? void 0 : Se.python) ?? ((Ze = Y.args) == null ? void 0 : Ze.python), ne = ((Pe = Y.input) == null ? void 0 : Pe.chartType) ?? ((ee = Y.args) == null ? void 0 : ee.chartType);
|
|
14094
14032
|
f(ne), p(Lt), m(vt), h(!0), se({
|
|
@@ -14132,12 +14070,12 @@ function jm(t) {
|
|
|
14132
14070
|
output: {
|
|
14133
14071
|
status: "error",
|
|
14134
14072
|
queryConfig: vt,
|
|
14135
|
-
message: (
|
|
14073
|
+
message: (Ge = ne == null ? void 0 : ne.data) == null ? void 0 : Ge.error.message
|
|
14136
14074
|
}
|
|
14137
14075
|
});
|
|
14138
14076
|
return;
|
|
14139
14077
|
}
|
|
14140
|
-
if ((
|
|
14078
|
+
if ((ia = ne == null ? void 0 : ne.data) != null && ia.records) {
|
|
14141
14079
|
se({
|
|
14142
14080
|
tool: Y.toolName,
|
|
14143
14081
|
toolCallId: Y.toolCallId,
|
|
@@ -14156,7 +14094,7 @@ function jm(t) {
|
|
|
14156
14094
|
status: "success",
|
|
14157
14095
|
queryConfig: vt,
|
|
14158
14096
|
message: "The data has been visualized",
|
|
14159
|
-
records: (
|
|
14097
|
+
records: (oa = ne == null ? void 0 : ne.data) == null ? void 0 : oa.records
|
|
14160
14098
|
}
|
|
14161
14099
|
});
|
|
14162
14100
|
} else
|
|
@@ -14376,13 +14314,13 @@ function yl({
|
|
|
14376
14314
|
};
|
|
14377
14315
|
R(et);
|
|
14378
14316
|
}
|
|
14379
|
-
function
|
|
14317
|
+
function Ge(ne) {
|
|
14380
14318
|
be(), R({
|
|
14381
14319
|
role: "user",
|
|
14382
14320
|
parts: [{ type: "text", text: ne }]
|
|
14383
14321
|
});
|
|
14384
14322
|
}
|
|
14385
|
-
function
|
|
14323
|
+
function ia() {
|
|
14386
14324
|
return /* @__PURE__ */ a(St, { children: [
|
|
14387
14325
|
/* @__PURE__ */ e(kt, { asChild: !0, children: /* @__PURE__ */ e(
|
|
14388
14326
|
V,
|
|
@@ -14423,7 +14361,7 @@ function yl({
|
|
|
14423
14361
|
] })
|
|
14424
14362
|
] });
|
|
14425
14363
|
}
|
|
14426
|
-
function
|
|
14364
|
+
function oa() {
|
|
14427
14365
|
return /* @__PURE__ */ e("div", { "data-role": "header", children: /* @__PURE__ */ e("div", { className: "text-lg font-semibold", children: "Assistant" }) });
|
|
14428
14366
|
}
|
|
14429
14367
|
const Lt = (se == null ? void 0 : se.length) === 0 && (A == null ? void 0 : A.filter((ne) => ne.role === "user").length) === 0, vt = /* @__PURE__ */ a(
|
|
@@ -14441,7 +14379,7 @@ function yl({
|
|
|
14441
14379
|
"data-role": "header-section",
|
|
14442
14380
|
className: "flex items-start justify-between gap-2",
|
|
14443
14381
|
children: [
|
|
14444
|
-
|
|
14382
|
+
oa(),
|
|
14445
14383
|
N && /* @__PURE__ */ e(
|
|
14446
14384
|
V,
|
|
14447
14385
|
{
|
|
@@ -14453,7 +14391,7 @@ function yl({
|
|
|
14453
14391
|
}
|
|
14454
14392
|
),
|
|
14455
14393
|
/* @__PURE__ */ a("div", { "data-role": "header-actions", className: "flex items-center", children: [
|
|
14456
|
-
|
|
14394
|
+
ia(),
|
|
14457
14395
|
c && /* @__PURE__ */ e(
|
|
14458
14396
|
V,
|
|
14459
14397
|
{
|
|
@@ -14493,7 +14431,7 @@ function yl({
|
|
|
14493
14431
|
onClick: () => {
|
|
14494
14432
|
F(!1);
|
|
14495
14433
|
},
|
|
14496
|
-
children: /* @__PURE__ */ e(
|
|
14434
|
+
children: /* @__PURE__ */ e(Ie, { className: "size-4" })
|
|
14497
14435
|
}
|
|
14498
14436
|
)
|
|
14499
14437
|
] })
|
|
@@ -14569,7 +14507,7 @@ function yl({
|
|
|
14569
14507
|
nc,
|
|
14570
14508
|
{
|
|
14571
14509
|
seedQuestions: M.seedQuestions || [],
|
|
14572
|
-
handleSeedQuestionClick:
|
|
14510
|
+
handleSeedQuestionClick: Ge
|
|
14573
14511
|
}
|
|
14574
14512
|
) })
|
|
14575
14513
|
] }),
|
|
@@ -14748,14 +14686,14 @@ function Ym({
|
|
|
14748
14686
|
]
|
|
14749
14687
|
}
|
|
14750
14688
|
) }),
|
|
14751
|
-
/* @__PURE__ */ e(
|
|
14689
|
+
/* @__PURE__ */ e(na, { className: "w-[300px] p-0", align: "start", children: /* @__PURE__ */ a(Cs, { children: [
|
|
14752
14690
|
/* @__PURE__ */ e(ws, { placeholder: "Search chart types..." }),
|
|
14753
14691
|
/* @__PURE__ */ a(Ss, { className: "mb-2 max-h-[300px]", children: [
|
|
14754
14692
|
/* @__PURE__ */ e(ks, { children: "No chart type found." }),
|
|
14755
14693
|
g.map((D) => {
|
|
14756
14694
|
if (D === "default")
|
|
14757
14695
|
return /* @__PURE__ */ e(
|
|
14758
|
-
|
|
14696
|
+
ca,
|
|
14759
14697
|
{
|
|
14760
14698
|
heading: /* @__PURE__ */ a("div", { className: "group flex w-full items-center justify-between", children: [
|
|
14761
14699
|
/* @__PURE__ */ a(Ke, { children: [
|
|
@@ -14799,7 +14737,7 @@ function Ym({
|
|
|
14799
14737
|
(x) => x.pluginType === "standard"
|
|
14800
14738
|
);
|
|
14801
14739
|
return S.length ? /* @__PURE__ */ e(
|
|
14802
|
-
|
|
14740
|
+
ca,
|
|
14803
14741
|
{
|
|
14804
14742
|
heading: /* @__PURE__ */ a("div", { className: "group flex w-full items-center justify-between", children: [
|
|
14805
14743
|
/* @__PURE__ */ e("p", { children: "Standard Visuals" }),
|
|
@@ -14836,7 +14774,7 @@ function Ym({
|
|
|
14836
14774
|
(x) => x.pluginType === "custom"
|
|
14837
14775
|
);
|
|
14838
14776
|
return S.length ? /* @__PURE__ */ e(
|
|
14839
|
-
|
|
14777
|
+
ca,
|
|
14840
14778
|
{
|
|
14841
14779
|
heading: /* @__PURE__ */ a("div", { className: "group flex w-full items-center justify-between", children: [
|
|
14842
14780
|
/* @__PURE__ */ a(Ke, { children: [
|
|
@@ -14946,7 +14884,7 @@ function Jm({
|
|
|
14946
14884
|
/* @__PURE__ */ e(U, { className: "text-xs font-medium text-gray-600", children: "Pivot Alias Template" }),
|
|
14947
14885
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
14948
14886
|
/* @__PURE__ */ e(
|
|
14949
|
-
|
|
14887
|
+
Be,
|
|
14950
14888
|
{
|
|
14951
14889
|
placeholder: o,
|
|
14952
14890
|
value: r ? s : t,
|
|
@@ -14973,7 +14911,7 @@ function Jm({
|
|
|
14973
14911
|
onClick: () => {
|
|
14974
14912
|
n(s), i(!1);
|
|
14975
14913
|
},
|
|
14976
|
-
children: /* @__PURE__ */ e(
|
|
14914
|
+
children: /* @__PURE__ */ e(wa, { className: "h-4 w-4 text-green-600" })
|
|
14977
14915
|
}
|
|
14978
14916
|
),
|
|
14979
14917
|
/* @__PURE__ */ e(
|
|
@@ -14986,7 +14924,7 @@ function Jm({
|
|
|
14986
14924
|
onClick: () => {
|
|
14987
14925
|
l(t), i(!1);
|
|
14988
14926
|
},
|
|
14989
|
-
children: /* @__PURE__ */ e(
|
|
14927
|
+
children: /* @__PURE__ */ e(Ie, { className: "h-4 w-4 text-gray-400" })
|
|
14990
14928
|
}
|
|
14991
14929
|
)
|
|
14992
14930
|
] })
|
|
@@ -15011,7 +14949,7 @@ function Wm({
|
|
|
15011
14949
|
/* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
15012
14950
|
Object.entries(t).map(([p, h], f) => /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: s === p ? /* @__PURE__ */ a(q, { children: [
|
|
15013
14951
|
/* @__PURE__ */ e(
|
|
15014
|
-
|
|
14952
|
+
Be,
|
|
15015
14953
|
{
|
|
15016
14954
|
placeholder: "Value key",
|
|
15017
14955
|
value: r,
|
|
@@ -15025,7 +14963,7 @@ function Wm({
|
|
|
15025
14963
|
}
|
|
15026
14964
|
),
|
|
15027
14965
|
/* @__PURE__ */ e(
|
|
15028
|
-
|
|
14966
|
+
Be,
|
|
15029
14967
|
{
|
|
15030
14968
|
placeholder: "Alias label",
|
|
15031
14969
|
value: c,
|
|
@@ -15046,7 +14984,7 @@ function Wm({
|
|
|
15046
14984
|
className: "h-6 w-6 p-0",
|
|
15047
14985
|
"aria-label": "Confirm value alias edit",
|
|
15048
14986
|
onClick: () => m(p),
|
|
15049
|
-
children: /* @__PURE__ */ e(
|
|
14987
|
+
children: /* @__PURE__ */ e(wa, { className: "h-4 w-4 text-green-600" })
|
|
15050
14988
|
}
|
|
15051
14989
|
),
|
|
15052
14990
|
/* @__PURE__ */ e(
|
|
@@ -15057,12 +14995,12 @@ function Wm({
|
|
|
15057
14995
|
className: "h-6 w-6 p-0",
|
|
15058
14996
|
"aria-label": "Cancel value alias edit",
|
|
15059
14997
|
onClick: () => l(null),
|
|
15060
|
-
children: /* @__PURE__ */ e(
|
|
14998
|
+
children: /* @__PURE__ */ e(Ie, { className: "h-4 w-4 text-muted-foreground" })
|
|
15061
14999
|
}
|
|
15062
15000
|
)
|
|
15063
15001
|
] }) : /* @__PURE__ */ a(q, { children: [
|
|
15064
15002
|
/* @__PURE__ */ e(
|
|
15065
|
-
|
|
15003
|
+
Be,
|
|
15066
15004
|
{
|
|
15067
15005
|
placeholder: "Value key",
|
|
15068
15006
|
value: p,
|
|
@@ -15075,7 +15013,7 @@ function Wm({
|
|
|
15075
15013
|
}
|
|
15076
15014
|
),
|
|
15077
15015
|
/* @__PURE__ */ e(
|
|
15078
|
-
|
|
15016
|
+
Be,
|
|
15079
15017
|
{
|
|
15080
15018
|
placeholder: "Alias label",
|
|
15081
15019
|
value: h,
|
|
@@ -15095,7 +15033,7 @@ function Wm({
|
|
|
15095
15033
|
className: "h-8 w-8 p-0",
|
|
15096
15034
|
onClick: () => u(p),
|
|
15097
15035
|
"aria-label": "Remove value alias",
|
|
15098
|
-
children: /* @__PURE__ */ e(
|
|
15036
|
+
children: /* @__PURE__ */ e(Ie, { className: "h-3 w-3" })
|
|
15099
15037
|
}
|
|
15100
15038
|
)
|
|
15101
15039
|
] }) }, p + f)),
|
|
@@ -15107,7 +15045,7 @@ function Wm({
|
|
|
15107
15045
|
className: "mt-1 h-8 text-xs",
|
|
15108
15046
|
onClick: d,
|
|
15109
15047
|
children: [
|
|
15110
|
-
/* @__PURE__ */ e(
|
|
15048
|
+
/* @__PURE__ */ e($e, { className: "mr-1 h-3 w-3" }),
|
|
15111
15049
|
" Add Value Alias"
|
|
15112
15050
|
]
|
|
15113
15051
|
}
|
|
@@ -15333,7 +15271,7 @@ function Xm({
|
|
|
15333
15271
|
/* @__PURE__ */ a("div", { className: "relative", children: [
|
|
15334
15272
|
/* @__PURE__ */ e(Xt, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
15335
15273
|
/* @__PURE__ */ e(
|
|
15336
|
-
|
|
15274
|
+
Be,
|
|
15337
15275
|
{
|
|
15338
15276
|
placeholder: "Search fields...",
|
|
15339
15277
|
value: u,
|
|
@@ -15427,7 +15365,7 @@ function Zm({
|
|
|
15427
15365
|
/* @__PURE__ */ a("div", { className: "relative", children: [
|
|
15428
15366
|
/* @__PURE__ */ e(Xt, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
15429
15367
|
/* @__PURE__ */ e(
|
|
15430
|
-
|
|
15368
|
+
Be,
|
|
15431
15369
|
{
|
|
15432
15370
|
placeholder: "Search values...",
|
|
15433
15371
|
value: r,
|
|
@@ -15605,7 +15543,7 @@ function eh({
|
|
|
15605
15543
|
{ value: "custom", label: "Custom Format..." }
|
|
15606
15544
|
];
|
|
15607
15545
|
}
|
|
15608
|
-
}, Me = ce(G), Fe = n !== "pivotBy", be = K && n === "groupBy", Le = !$ && K && n === "groupBy",
|
|
15546
|
+
}, Me = ce(G), Fe = n !== "pivotBy", be = K && n === "groupBy", Le = !$ && K && n === "groupBy", Ge = $ && K && n === "groupBy", ia = $ && n === "metrics" && ((qn = f.config) == null ? void 0 : qn.comparisonType) === "target", oa = n === "metrics", Lt = () => /* @__PURE__ */ e(
|
|
15609
15547
|
"div",
|
|
15610
15548
|
{
|
|
15611
15549
|
title: `${t.entityName}.${t.name}`,
|
|
@@ -15618,7 +15556,7 @@ function eh({
|
|
|
15618
15556
|
), vt = () => Fe ? /* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
15619
15557
|
/* @__PURE__ */ e(U, { className: "text-xs font-medium text-muted-foreground", children: "Label" }),
|
|
15620
15558
|
/* @__PURE__ */ e(
|
|
15621
|
-
|
|
15559
|
+
At,
|
|
15622
15560
|
{
|
|
15623
15561
|
value: t.label ?? "",
|
|
15624
15562
|
onSave: Re,
|
|
@@ -15664,7 +15602,7 @@ function eh({
|
|
|
15664
15602
|
),
|
|
15665
15603
|
X && /* @__PURE__ */ a("div", { className: "mt-2 space-y-1", children: [
|
|
15666
15604
|
/* @__PURE__ */ e(
|
|
15667
|
-
|
|
15605
|
+
Be,
|
|
15668
15606
|
{
|
|
15669
15607
|
placeholder: "Enter custom format (e.g., YYYY-MM-DD HH:mm)",
|
|
15670
15608
|
value: z,
|
|
@@ -15680,7 +15618,7 @@ function eh({
|
|
|
15680
15618
|
] })
|
|
15681
15619
|
] }) : null, ka = () => {
|
|
15682
15620
|
var J, je, Ue, tt, zt;
|
|
15683
|
-
return
|
|
15621
|
+
return Ge ? /* @__PURE__ */ a(q, { children: [
|
|
15684
15622
|
/* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
15685
15623
|
/* @__PURE__ */ e(U, { className: "text-xs font-medium text-muted-foreground", children: "Comparison Type" }),
|
|
15686
15624
|
/* @__PURE__ */ a(
|
|
@@ -15714,7 +15652,7 @@ function eh({
|
|
|
15714
15652
|
/* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
15715
15653
|
/* @__PURE__ */ e(U, { className: "text-xs font-medium text-muted-foreground", children: "Trendline Window" }),
|
|
15716
15654
|
/* @__PURE__ */ e(
|
|
15717
|
-
|
|
15655
|
+
Be,
|
|
15718
15656
|
{
|
|
15719
15657
|
type: "number",
|
|
15720
15658
|
min: "1",
|
|
@@ -15751,10 +15689,10 @@ function eh({
|
|
|
15751
15689
|
] }) : null;
|
|
15752
15690
|
}, Kt = () => {
|
|
15753
15691
|
var J, je;
|
|
15754
|
-
return
|
|
15692
|
+
return ia ? /* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
15755
15693
|
/* @__PURE__ */ e(U, { className: "text-xs font-medium text-muted-foreground", children: "Target Value" }),
|
|
15756
15694
|
/* @__PURE__ */ e(
|
|
15757
|
-
|
|
15695
|
+
At,
|
|
15758
15696
|
{
|
|
15759
15697
|
value: ((J = f.config) == null ? void 0 : J.targetValue) !== void 0 && ((je = f.config) == null ? void 0 : je.targetValue) !== null ? String(f.config.targetValue) : "",
|
|
15760
15698
|
onSave: (Ue) => {
|
|
@@ -15765,7 +15703,7 @@ function eh({
|
|
|
15765
15703
|
}
|
|
15766
15704
|
)
|
|
15767
15705
|
] }) : null;
|
|
15768
|
-
}, ii = () =>
|
|
15706
|
+
}, ii = () => oa ? /* @__PURE__ */ a(q, { children: [
|
|
15769
15707
|
/* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
15770
15708
|
/* @__PURE__ */ e(U, { className: "text-xs font-medium text-muted-foreground", children: "Aggregation" }),
|
|
15771
15709
|
/* @__PURE__ */ a(
|
|
@@ -15857,7 +15795,7 @@ function eh({
|
|
|
15857
15795
|
});
|
|
15858
15796
|
}
|
|
15859
15797
|
},
|
|
15860
|
-
children: /* @__PURE__ */ e(
|
|
15798
|
+
children: /* @__PURE__ */ e(Ie, { className: "h-3 w-3" })
|
|
15861
15799
|
}
|
|
15862
15800
|
)
|
|
15863
15801
|
]
|
|
@@ -15978,7 +15916,7 @@ function eh({
|
|
|
15978
15916
|
onClick: (J) => {
|
|
15979
15917
|
J.stopPropagation(), Ze();
|
|
15980
15918
|
},
|
|
15981
|
-
children: /* @__PURE__ */ e(
|
|
15919
|
+
children: /* @__PURE__ */ e(Ie, { className: "h-2.5 w-2.5" })
|
|
15982
15920
|
}
|
|
15983
15921
|
)
|
|
15984
15922
|
] }),
|
|
@@ -16154,10 +16092,10 @@ function Ba({
|
|
|
16154
16092
|
ref: o,
|
|
16155
16093
|
className: `rounded-lg border-2 border-dashed p-1 transition-all ${c ? "border-blue-500 bg-blue-50 dark:bg-blue-950" : p ? "border-blue-200 bg-blue-50/30 dark:border-blue-800 dark:bg-blue-950/30" : "min-h-[60px] border-muted-foreground/20 bg-background"}`,
|
|
16156
16094
|
children: n.length === 0 ? /* @__PURE__ */ e("div", { className: "flex min-h-[40px] items-center justify-center text-sm text-gray-400", children: l }) : /* @__PURE__ */ e(
|
|
16157
|
-
|
|
16095
|
+
ma,
|
|
16158
16096
|
{
|
|
16159
16097
|
items: n.map((v) => v.id),
|
|
16160
|
-
strategy:
|
|
16098
|
+
strategy: ha,
|
|
16161
16099
|
children: /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-1", children: n.map((v, g) => {
|
|
16162
16100
|
const y = v.direction;
|
|
16163
16101
|
return /* @__PURE__ */ e(
|
|
@@ -16230,7 +16168,7 @@ function Os({
|
|
|
16230
16168
|
"aria-label": `Change color for ${s}`
|
|
16231
16169
|
}
|
|
16232
16170
|
) }),
|
|
16233
|
-
/* @__PURE__ */ e(
|
|
16171
|
+
/* @__PURE__ */ e(na, { align: "start", className: "w-auto p-2", children: /* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
16234
16172
|
/* @__PURE__ */ e("div", { className: "grid grid-cols-3 items-center justify-items-center gap-1", children: ah.map((d) => /* @__PURE__ */ e(
|
|
16235
16173
|
"button",
|
|
16236
16174
|
{
|
|
@@ -16537,7 +16475,7 @@ function sh() {
|
|
|
16537
16475
|
}
|
|
16538
16476
|
),
|
|
16539
16477
|
/* @__PURE__ */ e(
|
|
16540
|
-
|
|
16478
|
+
Ae,
|
|
16541
16479
|
{
|
|
16542
16480
|
id: "label-increase",
|
|
16543
16481
|
type: "text",
|
|
@@ -16567,7 +16505,7 @@ function sh() {
|
|
|
16567
16505
|
}
|
|
16568
16506
|
),
|
|
16569
16507
|
/* @__PURE__ */ e(
|
|
16570
|
-
|
|
16508
|
+
Ae,
|
|
16571
16509
|
{
|
|
16572
16510
|
id: "label-decrease",
|
|
16573
16511
|
type: "text",
|
|
@@ -16593,7 +16531,7 @@ function sh() {
|
|
|
16593
16531
|
}
|
|
16594
16532
|
),
|
|
16595
16533
|
/* @__PURE__ */ e(
|
|
16596
|
-
|
|
16534
|
+
Ae,
|
|
16597
16535
|
{
|
|
16598
16536
|
id: "label-no-change",
|
|
16599
16537
|
type: "text",
|
|
@@ -16622,7 +16560,7 @@ function sh() {
|
|
|
16622
16560
|
}
|
|
16623
16561
|
),
|
|
16624
16562
|
/* @__PURE__ */ e(
|
|
16625
|
-
|
|
16563
|
+
Ae,
|
|
16626
16564
|
{
|
|
16627
16565
|
id: "label-name",
|
|
16628
16566
|
type: "text",
|
|
@@ -17285,7 +17223,7 @@ const dh = (t) => {
|
|
|
17285
17223
|
case "table":
|
|
17286
17224
|
return /* @__PURE__ */ e(Ps, { className: "h-3 w-3" });
|
|
17287
17225
|
case "view":
|
|
17288
|
-
return /* @__PURE__ */ e(
|
|
17226
|
+
return /* @__PURE__ */ e(da, { className: "h-3 w-3" });
|
|
17289
17227
|
case "dataset":
|
|
17290
17228
|
return /* @__PURE__ */ e(vs, { className: "h-3 w-3" });
|
|
17291
17229
|
case "file":
|
|
@@ -17307,7 +17245,7 @@ function mh({
|
|
|
17307
17245
|
placeholder: l = "Select field",
|
|
17308
17246
|
className: r = "w-64"
|
|
17309
17247
|
}) {
|
|
17310
|
-
const [i, c] =
|
|
17248
|
+
const [i, c] = qe.useState(!1), o = qe.useMemo(() => {
|
|
17311
17249
|
const d = {};
|
|
17312
17250
|
return s.forEach((u) => {
|
|
17313
17251
|
const m = uh(u);
|
|
@@ -17336,11 +17274,11 @@ function mh({
|
|
|
17336
17274
|
]
|
|
17337
17275
|
}
|
|
17338
17276
|
) }),
|
|
17339
|
-
/* @__PURE__ */ e(
|
|
17277
|
+
/* @__PURE__ */ e(na, { className: "z-50 w-80 p-0", align: "start", children: /* @__PURE__ */ a(Cs, { children: [
|
|
17340
17278
|
/* @__PURE__ */ e(ws, { placeholder: "Search fields...", className: "h-9" }),
|
|
17341
17279
|
/* @__PURE__ */ e(ks, { children: "No fields found." }),
|
|
17342
17280
|
/* @__PURE__ */ e(Ss, { className: "max-h-80", children: Object.entries(o).map(([d, u]) => /* @__PURE__ */ e(
|
|
17343
|
-
|
|
17281
|
+
ca,
|
|
17344
17282
|
{
|
|
17345
17283
|
heading: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
17346
17284
|
/* @__PURE__ */ e(jt, { className: "h-3 w-3" }),
|
|
@@ -17361,7 +17299,7 @@ function mh({
|
|
|
17361
17299
|
className: "overflow-x-auto",
|
|
17362
17300
|
children: [
|
|
17363
17301
|
/* @__PURE__ */ e(
|
|
17364
|
-
|
|
17302
|
+
wa,
|
|
17365
17303
|
{
|
|
17366
17304
|
className: B(
|
|
17367
17305
|
"mr-2 h-4 w-4",
|
|
@@ -17481,7 +17419,7 @@ function hh({
|
|
|
17481
17419
|
onClick: (h) => {
|
|
17482
17420
|
h.stopPropagation(), d(m);
|
|
17483
17421
|
},
|
|
17484
|
-
children: /* @__PURE__ */ e(
|
|
17422
|
+
children: /* @__PURE__ */ e(Ie, { className: "h-3 w-3 text-muted-foreground hover:text-foreground" })
|
|
17485
17423
|
}
|
|
17486
17424
|
)
|
|
17487
17425
|
] }, m);
|
|
@@ -17490,17 +17428,17 @@ function hh({
|
|
|
17490
17428
|
]
|
|
17491
17429
|
}
|
|
17492
17430
|
) }),
|
|
17493
|
-
/* @__PURE__ */ e(
|
|
17431
|
+
/* @__PURE__ */ e(na, { className: "z-50 w-fit overflow-auto p-0", align: "start", children: /* @__PURE__ */ a(Cs, { children: [
|
|
17494
17432
|
/* @__PURE__ */ e(ws, { placeholder: "Search..." }),
|
|
17495
17433
|
/* @__PURE__ */ a(Ss, { children: [
|
|
17496
17434
|
/* @__PURE__ */ e(ks, { children: "No results found." }),
|
|
17497
|
-
/* @__PURE__ */ e(
|
|
17435
|
+
/* @__PURE__ */ e(ca, { children: o.map((m, p) => /* @__PURE__ */ a(
|
|
17498
17436
|
ja,
|
|
17499
17437
|
{
|
|
17500
17438
|
onSelect: () => u(m.value),
|
|
17501
17439
|
children: [
|
|
17502
17440
|
/* @__PURE__ */ e(
|
|
17503
|
-
|
|
17441
|
+
wa,
|
|
17504
17442
|
{
|
|
17505
17443
|
className: B(
|
|
17506
17444
|
"mr-2 h-4 w-4",
|
|
@@ -17798,7 +17736,7 @@ function ni({
|
|
|
17798
17736
|
) : ["contains", "startsWith", "endsWith"].includes(
|
|
17799
17737
|
t.operator
|
|
17800
17738
|
) ? /* @__PURE__ */ e(
|
|
17801
|
-
|
|
17739
|
+
Be,
|
|
17802
17740
|
{
|
|
17803
17741
|
value: typeof t.value == "string" ? t.value : "",
|
|
17804
17742
|
onChange: (w) => d(s, t.id, {
|
|
@@ -17846,7 +17784,7 @@ function ni({
|
|
|
17846
17784
|
}
|
|
17847
17785
|
)
|
|
17848
17786
|
) : /* @__PURE__ */ e(
|
|
17849
|
-
|
|
17787
|
+
Be,
|
|
17850
17788
|
{
|
|
17851
17789
|
value: typeof t.value == "string" || typeof t.value == "number" ? t.value : "",
|
|
17852
17790
|
onChange: (w) => r(s, t.id, "value", w.target.value),
|
|
@@ -17861,7 +17799,7 @@ function ni({
|
|
|
17861
17799
|
size: "sm",
|
|
17862
17800
|
className: "h-7 w-7 flex-shrink-0 p-0",
|
|
17863
17801
|
onClick: () => i(s, t.id),
|
|
17864
|
-
children: /* @__PURE__ */ e(
|
|
17802
|
+
children: /* @__PURE__ */ e(Ie, { className: "h-3 w-3" })
|
|
17865
17803
|
}
|
|
17866
17804
|
)
|
|
17867
17805
|
]
|
|
@@ -17970,7 +17908,7 @@ function wh({
|
|
|
17970
17908
|
] }),
|
|
17971
17909
|
/* @__PURE__ */ a("div", { className: `p-3 ${n > 0 ? "" : "px-0"}`, children: [
|
|
17972
17910
|
/* @__PURE__ */ e(
|
|
17973
|
-
|
|
17911
|
+
pa,
|
|
17974
17912
|
{
|
|
17975
17913
|
sensors: ss(
|
|
17976
17914
|
Wt(ns),
|
|
@@ -17978,13 +17916,13 @@ function wh({
|
|
|
17978
17916
|
coordinateGetter: Vs
|
|
17979
17917
|
})
|
|
17980
17918
|
),
|
|
17981
|
-
collisionDetection:
|
|
17919
|
+
collisionDetection: fa,
|
|
17982
17920
|
onDragEnd: x,
|
|
17983
17921
|
children: /* @__PURE__ */ e(
|
|
17984
|
-
|
|
17922
|
+
ma,
|
|
17985
17923
|
{
|
|
17986
17924
|
items: t.conditions.map((N) => N.id),
|
|
17987
|
-
strategy:
|
|
17925
|
+
strategy: ha,
|
|
17988
17926
|
children: t.conditions.map((N, F) => /* @__PURE__ */ e(
|
|
17989
17927
|
ni,
|
|
17990
17928
|
{
|
|
@@ -18006,7 +17944,7 @@ function wh({
|
|
|
18006
17944
|
}
|
|
18007
17945
|
),
|
|
18008
17946
|
/* @__PURE__ */ e(
|
|
18009
|
-
|
|
17947
|
+
pa,
|
|
18010
17948
|
{
|
|
18011
17949
|
sensors: ss(
|
|
18012
17950
|
Wt(ns),
|
|
@@ -18014,13 +17952,13 @@ function wh({
|
|
|
18014
17952
|
coordinateGetter: Vs
|
|
18015
17953
|
})
|
|
18016
17954
|
),
|
|
18017
|
-
collisionDetection:
|
|
17955
|
+
collisionDetection: fa,
|
|
18018
17956
|
onDragEnd: C,
|
|
18019
17957
|
children: /* @__PURE__ */ e(
|
|
18020
|
-
|
|
17958
|
+
ma,
|
|
18021
17959
|
{
|
|
18022
17960
|
items: t.groups.map((N) => N.id),
|
|
18023
|
-
strategy:
|
|
17961
|
+
strategy: ha,
|
|
18024
17962
|
children: t.groups.map(
|
|
18025
17963
|
(N) => v(N, n + 1, t.id)
|
|
18026
17964
|
)
|
|
@@ -18037,7 +17975,7 @@ function wh({
|
|
|
18037
17975
|
className: "h-7 text-xs",
|
|
18038
17976
|
onClick: () => p(t.id),
|
|
18039
17977
|
children: [
|
|
18040
|
-
/* @__PURE__ */ e(
|
|
17978
|
+
/* @__PURE__ */ e($e, { className: "mr-1 h-3 w-3" }),
|
|
18041
17979
|
"Add Condition"
|
|
18042
17980
|
]
|
|
18043
17981
|
}
|
|
@@ -18050,7 +17988,7 @@ function wh({
|
|
|
18050
17988
|
className: "h-7 text-xs",
|
|
18051
17989
|
onClick: () => h(t.id),
|
|
18052
17990
|
children: [
|
|
18053
|
-
/* @__PURE__ */ e(
|
|
17991
|
+
/* @__PURE__ */ e($e, { className: "mr-1 h-3 w-3" }),
|
|
18054
17992
|
"Add Group"
|
|
18055
17993
|
]
|
|
18056
17994
|
}
|
|
@@ -18108,10 +18046,10 @@ function Sh({
|
|
|
18108
18046
|
T(A(i));
|
|
18109
18047
|
}, N = (k, L = 0, M) => L === 0 ? /* @__PURE__ */ e("div", { className: "rounded-lg", children: /* @__PURE__ */ a("div", { className: "p-3 px-0", children: [
|
|
18110
18048
|
/* @__PURE__ */ e(
|
|
18111
|
-
|
|
18049
|
+
pa,
|
|
18112
18050
|
{
|
|
18113
18051
|
sensors: D,
|
|
18114
|
-
collisionDetection:
|
|
18052
|
+
collisionDetection: fa,
|
|
18115
18053
|
onDragEnd: (A) => {
|
|
18116
18054
|
const { active: I, over: R } = A;
|
|
18117
18055
|
if (R && I.id !== R.id) {
|
|
@@ -18124,10 +18062,10 @@ function Sh({
|
|
|
18124
18062
|
}
|
|
18125
18063
|
},
|
|
18126
18064
|
children: /* @__PURE__ */ e(
|
|
18127
|
-
|
|
18065
|
+
ma,
|
|
18128
18066
|
{
|
|
18129
18067
|
items: k.conditions.map((A) => A.id),
|
|
18130
|
-
strategy:
|
|
18068
|
+
strategy: ha,
|
|
18131
18069
|
children: k.conditions.map((A, I) => /* @__PURE__ */ e(
|
|
18132
18070
|
ni,
|
|
18133
18071
|
{
|
|
@@ -18149,10 +18087,10 @@ function Sh({
|
|
|
18149
18087
|
}
|
|
18150
18088
|
),
|
|
18151
18089
|
/* @__PURE__ */ e(
|
|
18152
|
-
|
|
18090
|
+
pa,
|
|
18153
18091
|
{
|
|
18154
18092
|
sensors: D,
|
|
18155
|
-
collisionDetection:
|
|
18093
|
+
collisionDetection: fa,
|
|
18156
18094
|
onDragEnd: (A) => {
|
|
18157
18095
|
const { active: I, over: R } = A;
|
|
18158
18096
|
if (R && I.id !== R.id) {
|
|
@@ -18165,10 +18103,10 @@ function Sh({
|
|
|
18165
18103
|
}
|
|
18166
18104
|
},
|
|
18167
18105
|
children: /* @__PURE__ */ e(
|
|
18168
|
-
|
|
18106
|
+
ma,
|
|
18169
18107
|
{
|
|
18170
18108
|
items: k.groups.map((A) => A.id),
|
|
18171
|
-
strategy:
|
|
18109
|
+
strategy: ha,
|
|
18172
18110
|
children: k.groups.map(
|
|
18173
18111
|
(A) => N(A, L + 1, k.id)
|
|
18174
18112
|
)
|
|
@@ -18185,7 +18123,7 @@ function Sh({
|
|
|
18185
18123
|
variant: "outline",
|
|
18186
18124
|
onClick: () => d(k.id),
|
|
18187
18125
|
children: [
|
|
18188
|
-
/* @__PURE__ */ e(
|
|
18126
|
+
/* @__PURE__ */ e($e, { className: "mr-1 h-3 w-3" }),
|
|
18189
18127
|
"Add Condition"
|
|
18190
18128
|
]
|
|
18191
18129
|
}
|
|
@@ -18198,7 +18136,7 @@ function Sh({
|
|
|
18198
18136
|
className: "h-7 text-xs",
|
|
18199
18137
|
onClick: () => u(k.id),
|
|
18200
18138
|
children: [
|
|
18201
|
-
/* @__PURE__ */ e(
|
|
18139
|
+
/* @__PURE__ */ e($e, { className: "mr-1 h-3 w-3" }),
|
|
18202
18140
|
"Add Group"
|
|
18203
18141
|
]
|
|
18204
18142
|
}
|
|
@@ -18544,7 +18482,7 @@ function Eh() {
|
|
|
18544
18482
|
l(!1), n(t.id, parseInt(m));
|
|
18545
18483
|
};
|
|
18546
18484
|
return /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: s ? /* @__PURE__ */ e(
|
|
18547
|
-
|
|
18485
|
+
Ae,
|
|
18548
18486
|
{
|
|
18549
18487
|
type: "number",
|
|
18550
18488
|
value: r,
|
|
@@ -18611,7 +18549,7 @@ function Ah({
|
|
|
18611
18549
|
tooltip: "Hide",
|
|
18612
18550
|
onClick: n,
|
|
18613
18551
|
className: "h-7 p-2 text-muted-foreground hover:text-foreground",
|
|
18614
|
-
children: /* @__PURE__ */ e(
|
|
18552
|
+
children: /* @__PURE__ */ e(Ie, { className: "size-3.5" })
|
|
18615
18553
|
}
|
|
18616
18554
|
)
|
|
18617
18555
|
] }),
|
|
@@ -18691,7 +18629,7 @@ function Ih({
|
|
|
18691
18629
|
onClick: l,
|
|
18692
18630
|
className: "absolute right-4 top-4 rounded-md p-1 hover:bg-muted",
|
|
18693
18631
|
"aria-label": "Close Debug Panel",
|
|
18694
|
-
children: /* @__PURE__ */ e(
|
|
18632
|
+
children: /* @__PURE__ */ e(Ie, { className: "h-4 w-4" })
|
|
18695
18633
|
}
|
|
18696
18634
|
),
|
|
18697
18635
|
/* @__PURE__ */ a("div", { className: "space-y-4 pr-8", children: [
|
|
@@ -19023,10 +18961,10 @@ function Fh() {
|
|
|
19023
18961
|
}), G;
|
|
19024
18962
|
}, z = E(((j = C == null ? void 0 : C.config) == null ? void 0 : j.filters) || null);
|
|
19025
18963
|
return /* @__PURE__ */ a(
|
|
19026
|
-
|
|
18964
|
+
pa,
|
|
19027
18965
|
{
|
|
19028
18966
|
sensors: x,
|
|
19029
|
-
collisionDetection:
|
|
18967
|
+
collisionDetection: fa,
|
|
19030
18968
|
onDragStart: L,
|
|
19031
18969
|
onDragEnd: M,
|
|
19032
18970
|
children: [
|
|
@@ -19293,7 +19231,7 @@ function Vh() {
|
|
|
19293
19231
|
/* @__PURE__ */ e("h3", { className: "mb-2 text-sm font-medium text-foreground", children: "No fields configured" }),
|
|
19294
19232
|
/* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground", children: "Please configure a data source for this card to enable filtering" })
|
|
19295
19233
|
] }),
|
|
19296
|
-
n && /* @__PURE__ */ e("div", { className: "flex grow", children: /* @__PURE__ */ e(
|
|
19234
|
+
n && /* @__PURE__ */ e("div", { className: "flex grow", children: /* @__PURE__ */ e(pa, { collisionDetection: fa, children: /* @__PURE__ */ e(ma, { items: [], strategy: ha, children: /* @__PURE__ */ e(zr, { context: "filter" }) }) }) })
|
|
19297
19235
|
] });
|
|
19298
19236
|
}
|
|
19299
19237
|
function _h() {
|
|
@@ -19364,7 +19302,7 @@ function Uh() {
|
|
|
19364
19302
|
className: "absolute right-2 top-2 z-10 h-8",
|
|
19365
19303
|
onClick: () => l(!1),
|
|
19366
19304
|
children: [
|
|
19367
|
-
/* @__PURE__ */ e(
|
|
19305
|
+
/* @__PURE__ */ e(Ie, { className: "mr-2 h-4 w-4" }),
|
|
19368
19306
|
"Close"
|
|
19369
19307
|
]
|
|
19370
19308
|
}
|
|
@@ -19439,7 +19377,7 @@ function Gh({
|
|
|
19439
19377
|
formatDate: u
|
|
19440
19378
|
}) {
|
|
19441
19379
|
var D, S, x, C;
|
|
19442
|
-
const { selectVisual: m } = Ra(), p = Ec(t.id), h = $h(t.id), { isConsoleMode: f } = Pa(), v =
|
|
19380
|
+
const { selectVisual: m } = Ra(), p = Ec(t.id), h = $h(t.id), { isConsoleMode: f } = Pa(), v = qe.useRef(null), [g, b] = _(!1), [y, w] = _(!1);
|
|
19443
19381
|
Ne(() => {
|
|
19444
19382
|
s ? (b(!0), w(!0)) : y && (b(!1), w(!1));
|
|
19445
19383
|
}, [s, y]), Ne(() => {
|
|
@@ -19505,7 +19443,7 @@ function Gh({
|
|
|
19505
19443
|
N.stopPropagation(), l(t);
|
|
19506
19444
|
},
|
|
19507
19445
|
title: "Add to dashboard",
|
|
19508
|
-
children: /* @__PURE__ */ e(
|
|
19446
|
+
children: /* @__PURE__ */ e($e, { className: "h-3.5 w-3.5" })
|
|
19509
19447
|
}
|
|
19510
19448
|
),
|
|
19511
19449
|
t.ownership.isOwner && /* @__PURE__ */ e(
|
|
@@ -19531,19 +19469,19 @@ function Gh({
|
|
|
19531
19469
|
/* @__PURE__ */ e(kt, { asChild: !0, children: /* @__PURE__ */ e(V, { size: "sm", variant: "ghost", className: "h-6 w-6 p-0", children: /* @__PURE__ */ e(pr, { className: "h-3 w-3" }) }) }),
|
|
19532
19470
|
/* @__PURE__ */ a(Dt, { align: "end", className: "z-[51] w-40", children: [
|
|
19533
19471
|
/* @__PURE__ */ a(
|
|
19534
|
-
|
|
19472
|
+
Ye,
|
|
19535
19473
|
{
|
|
19536
19474
|
onClick: (N) => {
|
|
19537
19475
|
N.stopPropagation(), l(t);
|
|
19538
19476
|
},
|
|
19539
19477
|
children: [
|
|
19540
|
-
/* @__PURE__ */ e(
|
|
19478
|
+
/* @__PURE__ */ e($e, { className: "mr-2 h-3 w-3" }),
|
|
19541
19479
|
"Add"
|
|
19542
19480
|
]
|
|
19543
19481
|
}
|
|
19544
19482
|
),
|
|
19545
19483
|
/* @__PURE__ */ a(
|
|
19546
|
-
|
|
19484
|
+
Ye,
|
|
19547
19485
|
{
|
|
19548
19486
|
onClick: (N) => {
|
|
19549
19487
|
N.stopPropagation(), r == null || r(t);
|
|
@@ -19555,7 +19493,7 @@ function Gh({
|
|
|
19555
19493
|
}
|
|
19556
19494
|
),
|
|
19557
19495
|
/* @__PURE__ */ a(
|
|
19558
|
-
|
|
19496
|
+
Ye,
|
|
19559
19497
|
{
|
|
19560
19498
|
onClick: (N) => {
|
|
19561
19499
|
N.preventDefault(), N.stopPropagation(), o(t.id);
|
|
@@ -19569,7 +19507,7 @@ function Gh({
|
|
|
19569
19507
|
),
|
|
19570
19508
|
t.ownership.isOwner && /* @__PURE__ */ a(q, { children: [
|
|
19571
19509
|
/* @__PURE__ */ a(
|
|
19572
|
-
|
|
19510
|
+
Ye,
|
|
19573
19511
|
{
|
|
19574
19512
|
onClick: (N) => {
|
|
19575
19513
|
N.stopPropagation(), i == null || i(t);
|
|
@@ -19581,7 +19519,7 @@ function Gh({
|
|
|
19581
19519
|
}
|
|
19582
19520
|
),
|
|
19583
19521
|
/* @__PURE__ */ a(
|
|
19584
|
-
|
|
19522
|
+
Ye,
|
|
19585
19523
|
{
|
|
19586
19524
|
onClick: (N) => {
|
|
19587
19525
|
N.stopPropagation(), d(t);
|
|
@@ -19594,7 +19532,7 @@ function Gh({
|
|
|
19594
19532
|
),
|
|
19595
19533
|
/* @__PURE__ */ e(Ht, {}),
|
|
19596
19534
|
/* @__PURE__ */ a(
|
|
19597
|
-
|
|
19535
|
+
Ye,
|
|
19598
19536
|
{
|
|
19599
19537
|
onClick: (N) => {
|
|
19600
19538
|
N.stopPropagation(), c(t);
|
|
@@ -19611,7 +19549,7 @@ function Gh({
|
|
|
19611
19549
|
/* @__PURE__ */ e(Ht, {}),
|
|
19612
19550
|
/* @__PURE__ */ a("div", { className: "space-y-1 px-2 py-2 text-xs text-slate-500 dark:text-slate-400", children: [
|
|
19613
19551
|
(((S = t.ownership.createdBy) == null ? void 0 : S.type) === "tenant" || ((x = t.ownership.createdBy) == null ? void 0 : x.type) === "organization" && f) && /* @__PURE__ */ a("div", { className: "flex items-center gap-1", children: [
|
|
19614
|
-
/* @__PURE__ */ e(
|
|
19552
|
+
/* @__PURE__ */ e(ua, { className: "h-3 w-3" }),
|
|
19615
19553
|
/* @__PURE__ */ e("span", { children: ((C = t.ownership.createdBy) == null ? void 0 : C.name) || "Unknown" })
|
|
19616
19554
|
] }),
|
|
19617
19555
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-1", children: [
|
|
@@ -19665,7 +19603,7 @@ function ri({
|
|
|
19665
19603
|
/* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
19666
19604
|
/* @__PURE__ */ e(U, { htmlFor: "resource-title", children: "Title" }),
|
|
19667
19605
|
/* @__PURE__ */ e(
|
|
19668
|
-
|
|
19606
|
+
Ae,
|
|
19669
19607
|
{
|
|
19670
19608
|
id: "resource-title",
|
|
19671
19609
|
value: o,
|
|
@@ -19727,7 +19665,7 @@ function Yh({
|
|
|
19727
19665
|
/* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
19728
19666
|
/* @__PURE__ */ e(U, { htmlFor: "title", children: "Visual Title" }),
|
|
19729
19667
|
/* @__PURE__ */ e(
|
|
19730
|
-
|
|
19668
|
+
Be,
|
|
19731
19669
|
{
|
|
19732
19670
|
id: "title",
|
|
19733
19671
|
placeholder: "Enter visual title...",
|
|
@@ -19743,7 +19681,7 @@ function Yh({
|
|
|
19743
19681
|
/* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
19744
19682
|
/* @__PURE__ */ e(U, { htmlFor: "description", children: "Description (optional)" }),
|
|
19745
19683
|
/* @__PURE__ */ e(
|
|
19746
|
-
|
|
19684
|
+
Be,
|
|
19747
19685
|
{
|
|
19748
19686
|
id: "description",
|
|
19749
19687
|
placeholder: "Enter visual description...",
|
|
@@ -19783,7 +19721,7 @@ function Bh() {
|
|
|
19783
19721
|
null
|
|
19784
19722
|
), [d, u] = _(!1), [m, p] = _(null), [h, f] = _(null), [v, g] = _(
|
|
19785
19723
|
null
|
|
19786
|
-
), { selectVisual: b } = Ra(), { handleEditLibraryVisual: y, handleAddLibraryVisual: w } =
|
|
19724
|
+
), { selectVisual: b } = Ra(), { handleEditLibraryVisual: y, handleAddLibraryVisual: w } = la(), {
|
|
19787
19725
|
resources: P,
|
|
19788
19726
|
isLoading: T,
|
|
19789
19727
|
isError: D,
|
|
@@ -19900,7 +19838,7 @@ function Bh() {
|
|
|
19900
19838
|
)
|
|
19901
19839
|
] }) }) : /* @__PURE__ */ a("div", { className: "relative flex h-full flex-1 flex-col gap-4", children: [
|
|
19902
19840
|
P && P.length > 5 && /* @__PURE__ */ e("div", { className: "space-y-2", children: /* @__PURE__ */ e(
|
|
19903
|
-
|
|
19841
|
+
Be,
|
|
19904
19842
|
{
|
|
19905
19843
|
id: "search",
|
|
19906
19844
|
placeholder: "Search by title or description...",
|
|
@@ -19920,7 +19858,7 @@ function Bh() {
|
|
|
19920
19858
|
className: "bg-primary hover:bg-primary/90",
|
|
19921
19859
|
onClick: () => l(!0),
|
|
19922
19860
|
children: [
|
|
19923
|
-
/* @__PURE__ */ e(
|
|
19861
|
+
/* @__PURE__ */ e($e, { className: "mr-2 h-4 w-4" }),
|
|
19924
19862
|
"Create Visual"
|
|
19925
19863
|
]
|
|
19926
19864
|
}
|
|
@@ -20016,7 +19954,7 @@ function Bh() {
|
|
|
20016
19954
|
className: "absolute bottom-2 left-2 h-11 w-11 rounded-full shadow-lg shadow-black/15",
|
|
20017
19955
|
onClick: () => l(!0),
|
|
20018
19956
|
"aria-label": "Create visual",
|
|
20019
|
-
children: /* @__PURE__ */ e(
|
|
19957
|
+
children: /* @__PURE__ */ e($e, { className: "h-5 w-5" })
|
|
20020
19958
|
}
|
|
20021
19959
|
)
|
|
20022
19960
|
] });
|
|
@@ -20104,7 +20042,7 @@ function qh({
|
|
|
20104
20042
|
/* @__PURE__ */ e(kt, { asChild: !0, children: /* @__PURE__ */ e(V, { size: "sm", variant: "ghost", className: "h-6 w-6 p-0", children: /* @__PURE__ */ e(pr, { className: "h-3 w-3" }) }) }),
|
|
20105
20043
|
/* @__PURE__ */ a(Dt, { align: "end", className: "z-[51] w-40", children: [
|
|
20106
20044
|
/* @__PURE__ */ a(
|
|
20107
|
-
|
|
20045
|
+
Ye,
|
|
20108
20046
|
{
|
|
20109
20047
|
onClick: (M) => {
|
|
20110
20048
|
M.preventDefault(), M.stopPropagation(), c(t.id);
|
|
@@ -20117,7 +20055,7 @@ function qh({
|
|
|
20117
20055
|
}
|
|
20118
20056
|
),
|
|
20119
20057
|
t.permissions.canEdit && /* @__PURE__ */ a(
|
|
20120
|
-
|
|
20058
|
+
Ye,
|
|
20121
20059
|
{
|
|
20122
20060
|
onClick: (M) => {
|
|
20123
20061
|
M.stopPropagation(), r == null || r(t);
|
|
@@ -20129,7 +20067,7 @@ function qh({
|
|
|
20129
20067
|
}
|
|
20130
20068
|
),
|
|
20131
20069
|
t.permissions.canEdit && /* @__PURE__ */ e(q, { children: /* @__PURE__ */ a(
|
|
20132
|
-
|
|
20070
|
+
Ye,
|
|
20133
20071
|
{
|
|
20134
20072
|
onClick: (M) => {
|
|
20135
20073
|
M.stopPropagation(), o(t);
|
|
@@ -20143,7 +20081,7 @@ function qh({
|
|
|
20143
20081
|
t.permissions.canDelete && /* @__PURE__ */ a(q, { children: [
|
|
20144
20082
|
/* @__PURE__ */ e(Ht, {}),
|
|
20145
20083
|
/* @__PURE__ */ a(
|
|
20146
|
-
|
|
20084
|
+
Ye,
|
|
20147
20085
|
{
|
|
20148
20086
|
onClick: (M) => {
|
|
20149
20087
|
M.stopPropagation(), i(t);
|
|
@@ -20160,7 +20098,7 @@ function qh({
|
|
|
20160
20098
|
/* @__PURE__ */ e(Ht, {}),
|
|
20161
20099
|
/* @__PURE__ */ a("div", { className: "space-y-1 px-2 py-2 text-xs text-slate-500 dark:text-slate-400", children: [
|
|
20162
20100
|
(((F = t.ownership.createdBy) == null ? void 0 : F.type) === "tenant" || ((k = t.ownership.createdBy) == null ? void 0 : k.type) === "organization" && h) && /* @__PURE__ */ a("div", { className: "flex items-center gap-1", children: [
|
|
20163
|
-
/* @__PURE__ */ e(
|
|
20101
|
+
/* @__PURE__ */ e(ua, { className: "h-3 w-3" }),
|
|
20164
20102
|
/* @__PURE__ */ e("span", { children: ((L = t.ownership.createdBy) == null ? void 0 : L.name) || "Unknown" })
|
|
20165
20103
|
] }),
|
|
20166
20104
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-1", children: [
|
|
@@ -20305,7 +20243,7 @@ function Jh(t) {
|
|
|
20305
20243
|
};
|
|
20306
20244
|
return M ? /* @__PURE__ */ e(li, {}) : A ? /* @__PURE__ */ e(Kh, { onRetry: () => window.location.reload() }) : /* @__PURE__ */ a("div", { className: "relative flex h-full flex-1 flex-col gap-4", children: [
|
|
20307
20245
|
L && L.length > 5 && /* @__PURE__ */ e("div", { className: "space-y-2", children: /* @__PURE__ */ e(
|
|
20308
|
-
|
|
20246
|
+
Be,
|
|
20309
20247
|
{
|
|
20310
20248
|
id: "search",
|
|
20311
20249
|
placeholder: "Search by title or description...",
|
|
@@ -20325,7 +20263,7 @@ function Jh(t) {
|
|
|
20325
20263
|
className: "bg-primary hover:bg-primary/90",
|
|
20326
20264
|
onClick: () => o(!0),
|
|
20327
20265
|
children: [
|
|
20328
|
-
/* @__PURE__ */ e(
|
|
20266
|
+
/* @__PURE__ */ e($e, { className: "mr-2 h-4 w-4" }),
|
|
20329
20267
|
"Create Dashboard"
|
|
20330
20268
|
]
|
|
20331
20269
|
}
|
|
@@ -20421,7 +20359,7 @@ function Jh(t) {
|
|
|
20421
20359
|
className: "absolute bottom-2 left-2 h-11 w-11 rounded-full shadow-lg shadow-black/15",
|
|
20422
20360
|
onClick: () => o(!0),
|
|
20423
20361
|
"aria-label": "Create dashboard",
|
|
20424
|
-
children: /* @__PURE__ */ e(
|
|
20362
|
+
children: /* @__PURE__ */ e($e, { className: "h-5 w-5" })
|
|
20425
20363
|
}
|
|
20426
20364
|
)
|
|
20427
20365
|
] });
|