react-semaphor 0.1.18 → 0.1.19
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-C9LJ5dP7.js → dashboard-plus-XEKMZ7Lk.js} +316 -254
- package/dist/chunks/{dashboard-plus-ZaWE-e3e.js → dashboard-plus-_lhN-s45.js} +57 -57
- package/dist/chunks/{index-DV06C4hG.js → index-BCkptgcw.js} +6563 -6605
- package/dist/chunks/{index-AzdRgdV0.js → index-WGPrKoOC.js} +124 -124
- 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 qe, a6 as Bs, _ as ht, a7 as We, a8 as st, a9 as Dl, aa as Ye, ab as nt, ac as lt, ad as rt, ae as ft, af as U, ag as Ie, 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 ua, at as de, w as Wn, au as fi, av as gi, aw as Xt, ax as $e, ay as le, az as Ae, aA as Ct, aB as Ve, aC as Na, aD as aa, aE as ya, 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 ma, 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 ba, b6 as Ca, b7 as wa, 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 na, 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 la, 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 da, 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 Po, e7 as Lo, e8 as ll, e9 as zo, ea as Vo, eb as _o, ec as jo, ed as Uo, O as rl, ee as il, ef as $o, eg as Go, eh as or, ei as Yo, ej as cr, ek as Bo, el as qo, em as Ko, en as Jo, eo as Wo, ep as Qo, eq as Ho, er as Xo, es as Zo, et as ec, eu as tc, ev as ac, ew as sc, ex as nc, ey as lc, ez as rc, eA as dr, eB as Ms, eC as En, eD as ic, eE as oc, eF as cc, eG as dc, eH as ha, eI as pa, eJ as uc, eK as ur, eL as mc, eM as zs, eN as hc, eO as pc, eP as fc, eQ as ss, eR as Wt, eS as Vs, eT as _s, eU as ns, eV as mr, eW as fa, eX as ga, eY as An, eZ as gc, e_ as vc, e$ as xc, f0 as Nc, f1 as yc, f2 as bc, f3 as Cc, f4 as wc, f5 as Es, f6 as Sc, f7 as kc, f8 as Dc, F as hr, f9 as Tc, fa as Mc, fb as Ec, fc as pr, fd as fr, fe as Ac, ff as gr, fg as Ic, fh as Oc, fi as Rc, fj as Fc, fk as Pc, S as Lc, fl as zc, U as Vc, fm as _c, C as jc } from "./index-BCkptgcw.js";
|
|
3
3
|
import * as js from "react";
|
|
4
|
-
import
|
|
4
|
+
import Ge, { 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 va = 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
|
+
qe,
|
|
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
|
+
qe,
|
|
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
|
+
qe,
|
|
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(Ye, { 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
|
+
Ie,
|
|
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(qe, { 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(qe, { 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
|
+
Ie,
|
|
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(ua, { 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
|
+
$e,
|
|
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
|
+
qe,
|
|
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(Ae, { 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(Ae, { 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(Ae, { 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(ua, { 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(Ae, { 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 = Na(), p = aa(), h = ya(), 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(ma, { 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(ua, { 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(ua, { 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 xa(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 = Na(), f = aa(), v = ya(), g = Ut(), b = nn(), y = sa(), [w, P] = Ge.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 } = xa({
|
|
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
|
+
Ge.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
|
+
Ge.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(ma, { 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 = ba(), p = Ca(), h = wa(), 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(Ae, { 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(Ae, { 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 = Na(), p = aa(), h = ya(), f = ba(), v = Ca(), g = wa(), 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
|
+
Ge.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 Be = (Fe = (Me = A == null ? void 0 : A.shares) == null ? void 0 : Me.tenantWide) == null ? void 0 : Fe[0];
|
|
2700
|
+
Be && Be.role !== void 0 && T.setTenantWideRole(Be.role);
|
|
2701
2701
|
} else if ($ === "all_tenants") {
|
|
2702
|
-
const
|
|
2703
|
-
|
|
2702
|
+
const Be = (Le = (be = A == null ? void 0 : A.shares) == null ? void 0 : be.allTenantsOnly) == null ? void 0 : Le[0];
|
|
2703
|
+
Be && Be.role !== void 0 && T.setAllTenantsRole(Be.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
|
+
} = xa({
|
|
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((Be) => Be.id === $), Me = p.includes($), Fe = (Le = (be = A == null ? void 0 : A.shares) == null ? void 0 : be.specificTenantUsers) == null ? void 0 : Le.some(
|
|
2724
|
+
(Be) => Be.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
|
+
Ge.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 = Ge.useMemo(() => N !== "groups" ? [] : x.filter(($) => $.type !== "TENANT_GROUP" ? !1 : $.name.toLowerCase().includes(o.toLowerCase()) || $.description && $.description.toLowerCase().includes(o.toLowerCase())), [x, N, o]), Se = Ge.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(ma, { 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(ma, { 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 = ba(), m = Ca(), p = wa(), h = sa(), [f, v] = Ge.useState("org_groups"), [g, b] = Ge.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 } = xa({
|
|
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
|
+
Ge.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 = Na(), l = aa(), r = ya(), i = ba(), c = Ca(), o = wa(), 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 = Na(), p = aa(), h = ya(), 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(Ae, { 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 = Na(), u = aa(), m = ya(), p = ba(), h = Ca(), f = wa();
|
|
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(Ae, { 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 = ba(), p = Ca(), h = wa();
|
|
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 } = xa({
|
|
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] = Ge.useState("specific_users"), [d, u] = Ge.useState("specific_users"), [m, p] = Ge.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 } = xa({
|
|
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 } = xa({
|
|
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 = Ge.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
|
+
Ie,
|
|
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
|
+
Ie,
|
|
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
|
+
Ie,
|
|
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(Ye, { 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
|
+
Ie,
|
|
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 ra() {
|
|
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
|
+
Ge.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
|
+
$e,
|
|
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 } = ra();
|
|
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(na, { 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 } = ra(), 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(va, { 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 } = ra(), 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(va, { 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 } = ra();
|
|
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(na, { 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(Ae, { 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 } = ra(), { 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 } = ra(), 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
|
+
qe,
|
|
5721
5721
|
{
|
|
5722
5722
|
onClick: (w) => {
|
|
5723
5723
|
w.stopPropagation(), p(!0);
|
|
5724
5724
|
},
|
|
5725
5725
|
children: [
|
|
5726
|
-
/* @__PURE__ */ e(
|
|
5726
|
+
/* @__PURE__ */ e(va, { 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(qe, { onClick: () => p(!0), children: [
|
|
5744
|
+
/* @__PURE__ */ e(va, { 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(va, { 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(Ye, { 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(va, { 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
|
+
$e,
|
|
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(Ae, { 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(Ye, { 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(Ae, { 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(Ye, { 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(Ae, { 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(Ye, { 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(Ae, { 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(Ae, { 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(ua, { 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
|
+
Ae,
|
|
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(Ye, { 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 At({
|
|
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
|
+
At,
|
|
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
|
+
Ie,
|
|
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
|
+
At,
|
|
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
|
+
At,
|
|
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
|
+
At,
|
|
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 ia() {
|
|
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 ra() {
|
|
|
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
|
+
Ie,
|
|
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(la, { 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(Ae, { 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(la, { 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(da, { 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(ia, {}),
|
|
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(ia, {}),
|
|
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(ia, {}),
|
|
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(Ye, { 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
|
+
Ie,
|
|
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
|
+
Ie,
|
|
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
|
+
Ie,
|
|
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(Ae, { 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
|
+
Ie,
|
|
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
|
+
At,
|
|
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
|
+
Ie,
|
|
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
|
+
At,
|
|
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
|
+
At,
|
|
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
|
+
At,
|
|
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
|
+
Ie,
|
|
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
|
+
Ie,
|
|
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
|
+
Ie,
|
|
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(ia, {})
|
|
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(ia, {}),
|
|
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
|
+
At,
|
|
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(ia, {}),
|
|
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(ia, {}),
|
|
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
|
+
Ie,
|
|
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(la, { 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,6 +12932,68 @@ 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
|
+
}
|
|
12935
12997
|
const Am = [
|
|
12936
12998
|
"auto",
|
|
12937
12999
|
"number",
|
|
@@ -13041,7 +13103,7 @@ function Un({
|
|
|
13041
13103
|
["number", "currency", "percent"].includes(r) && /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
13042
13104
|
/* @__PURE__ */ e(U, { className: "w-20 text-xs text-muted-foreground", children: "Decimals" }),
|
|
13043
13105
|
/* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
|
|
13044
|
-
|
|
13106
|
+
Ie,
|
|
13045
13107
|
{
|
|
13046
13108
|
type: "number",
|
|
13047
13109
|
min: "0",
|
|
@@ -13113,7 +13175,7 @@ function Un({
|
|
|
13113
13175
|
r === "number" && /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
13114
13176
|
/* @__PURE__ */ e(U, { className: "w-20 text-xs text-muted-foreground", children: "Prefix" }),
|
|
13115
13177
|
/* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
|
|
13116
|
-
|
|
13178
|
+
Ie,
|
|
13117
13179
|
{
|
|
13118
13180
|
placeholder: "e.g., $",
|
|
13119
13181
|
value: t.prefix || "",
|
|
@@ -13125,7 +13187,7 @@ function Un({
|
|
|
13125
13187
|
r === "number" && /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
13126
13188
|
/* @__PURE__ */ e(U, { className: "w-20 text-xs text-muted-foreground", children: "Suffix" }),
|
|
13127
13189
|
/* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
|
|
13128
|
-
|
|
13190
|
+
Ie,
|
|
13129
13191
|
{
|
|
13130
13192
|
placeholder: "e.g., units",
|
|
13131
13193
|
value: t.suffix || "",
|
|
@@ -13147,7 +13209,7 @@ function Un({
|
|
|
13147
13209
|
r === "percent" && /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
13148
13210
|
/* @__PURE__ */ e(U, { className: "w-20 text-xs text-muted-foreground", children: "Multiply By" }),
|
|
13149
13211
|
/* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
|
|
13150
|
-
|
|
13212
|
+
Ie,
|
|
13151
13213
|
{
|
|
13152
13214
|
type: "number",
|
|
13153
13215
|
placeholder: "100",
|
|
@@ -13163,7 +13225,7 @@ function Un({
|
|
|
13163
13225
|
r === "date" && /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
13164
13226
|
/* @__PURE__ */ e(U, { className: "w-20 text-xs text-muted-foreground", children: "Format" }),
|
|
13165
13227
|
/* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
|
|
13166
|
-
|
|
13228
|
+
Ie,
|
|
13167
13229
|
{
|
|
13168
13230
|
type: "text",
|
|
13169
13231
|
placeholder: "MM/DD/YYYY",
|
|
@@ -13235,7 +13297,7 @@ function Nl({ axis: t, label: n, type: s, config: l, onChange: r }) {
|
|
|
13235
13297
|
)
|
|
13236
13298
|
] }),
|
|
13237
13299
|
((h = l == null ? void 0 : l.name) == null ? void 0 : h.enabled) && /* @__PURE__ */ e(
|
|
13238
|
-
|
|
13300
|
+
It,
|
|
13239
13301
|
{
|
|
13240
13302
|
placeholder: `${n} title`,
|
|
13241
13303
|
value: ((f = l == null ? void 0 : l.name) == null ? void 0 : f.text) || "",
|
|
@@ -13305,7 +13367,7 @@ function Nl({ axis: t, label: n, type: s, config: l, onChange: r }) {
|
|
|
13305
13367
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
13306
13368
|
/* @__PURE__ */ e(U, { className: "w-8 text-xs text-muted-foreground", children: "Min" }),
|
|
13307
13369
|
/* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
|
|
13308
|
-
|
|
13370
|
+
It,
|
|
13309
13371
|
{
|
|
13310
13372
|
type: "number",
|
|
13311
13373
|
placeholder: "auto",
|
|
@@ -13318,7 +13380,7 @@ function Nl({ axis: t, label: n, type: s, config: l, onChange: r }) {
|
|
|
13318
13380
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
13319
13381
|
/* @__PURE__ */ e(U, { className: "w-8 text-xs text-muted-foreground", children: "Max" }),
|
|
13320
13382
|
/* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
|
|
13321
|
-
|
|
13383
|
+
It,
|
|
13322
13384
|
{
|
|
13323
13385
|
type: "number",
|
|
13324
13386
|
placeholder: "auto",
|
|
@@ -13331,7 +13393,7 @@ function Nl({ axis: t, label: n, type: s, config: l, onChange: r }) {
|
|
|
13331
13393
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
13332
13394
|
/* @__PURE__ */ e(U, { className: "w-8 text-xs text-muted-foreground", children: "Step" }),
|
|
13333
13395
|
/* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
|
|
13334
|
-
|
|
13396
|
+
It,
|
|
13335
13397
|
{
|
|
13336
13398
|
type: "number",
|
|
13337
13399
|
placeholder: "auto",
|
|
@@ -13641,7 +13703,7 @@ function si() {
|
|
|
13641
13703
|
["number", "currency", "percent"].includes(n.format) && /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
13642
13704
|
/* @__PURE__ */ e(U, { className: "text-xs text-muted-foreground w-20", children: "Decimals" }),
|
|
13643
13705
|
/* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
|
|
13644
|
-
|
|
13706
|
+
It,
|
|
13645
13707
|
{
|
|
13646
13708
|
type: "number",
|
|
13647
13709
|
placeholder: "0",
|
|
@@ -13695,7 +13757,7 @@ function si() {
|
|
|
13695
13757
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
13696
13758
|
/* @__PURE__ */ e(U, { className: "text-xs text-muted-foreground w-20", children: "Size" }),
|
|
13697
13759
|
/* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
|
|
13698
|
-
|
|
13760
|
+
It,
|
|
13699
13761
|
{
|
|
13700
13762
|
type: "number",
|
|
13701
13763
|
placeholder: "12",
|
|
@@ -13744,7 +13806,7 @@ function si() {
|
|
|
13744
13806
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
13745
13807
|
/* @__PURE__ */ e(U, { className: "text-xs text-muted-foreground w-20", children: "Rotation" }),
|
|
13746
13808
|
/* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
|
|
13747
|
-
|
|
13809
|
+
It,
|
|
13748
13810
|
{
|
|
13749
13811
|
type: "number",
|
|
13750
13812
|
placeholder: "0",
|
|
@@ -14026,7 +14088,7 @@ function jm(t) {
|
|
|
14026
14088
|
}), k(!1));
|
|
14027
14089
|
}, [y, b, Q, k]);
|
|
14028
14090
|
async function xe({ toolCall: Y }) {
|
|
14029
|
-
var ue, Re, Se, Ze, Pe, ee, K, $, ce, Me, Fe, be, Le,
|
|
14091
|
+
var ue, Re, Se, Ze, Pe, ee, K, $, ce, Me, Fe, be, Le, Be, oa, ca;
|
|
14030
14092
|
if (["createChartFromSql", "createForecast"].includes(Y.toolName)) {
|
|
14031
14093
|
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);
|
|
14032
14094
|
f(ne), p(Lt), m(vt), h(!0), se({
|
|
@@ -14070,12 +14132,12 @@ function jm(t) {
|
|
|
14070
14132
|
output: {
|
|
14071
14133
|
status: "error",
|
|
14072
14134
|
queryConfig: vt,
|
|
14073
|
-
message: (
|
|
14135
|
+
message: (Be = ne == null ? void 0 : ne.data) == null ? void 0 : Be.error.message
|
|
14074
14136
|
}
|
|
14075
14137
|
});
|
|
14076
14138
|
return;
|
|
14077
14139
|
}
|
|
14078
|
-
if ((
|
|
14140
|
+
if ((oa = ne == null ? void 0 : ne.data) != null && oa.records) {
|
|
14079
14141
|
se({
|
|
14080
14142
|
tool: Y.toolName,
|
|
14081
14143
|
toolCallId: Y.toolCallId,
|
|
@@ -14094,7 +14156,7 @@ function jm(t) {
|
|
|
14094
14156
|
status: "success",
|
|
14095
14157
|
queryConfig: vt,
|
|
14096
14158
|
message: "The data has been visualized",
|
|
14097
|
-
records: (
|
|
14159
|
+
records: (ca = ne == null ? void 0 : ne.data) == null ? void 0 : ca.records
|
|
14098
14160
|
}
|
|
14099
14161
|
});
|
|
14100
14162
|
} else
|
|
@@ -14314,13 +14376,13 @@ function yl({
|
|
|
14314
14376
|
};
|
|
14315
14377
|
R(et);
|
|
14316
14378
|
}
|
|
14317
|
-
function
|
|
14379
|
+
function Be(ne) {
|
|
14318
14380
|
be(), R({
|
|
14319
14381
|
role: "user",
|
|
14320
14382
|
parts: [{ type: "text", text: ne }]
|
|
14321
14383
|
});
|
|
14322
14384
|
}
|
|
14323
|
-
function
|
|
14385
|
+
function oa() {
|
|
14324
14386
|
return /* @__PURE__ */ a(St, { children: [
|
|
14325
14387
|
/* @__PURE__ */ e(kt, { asChild: !0, children: /* @__PURE__ */ e(
|
|
14326
14388
|
V,
|
|
@@ -14361,7 +14423,7 @@ function yl({
|
|
|
14361
14423
|
] })
|
|
14362
14424
|
] });
|
|
14363
14425
|
}
|
|
14364
|
-
function
|
|
14426
|
+
function ca() {
|
|
14365
14427
|
return /* @__PURE__ */ e("div", { "data-role": "header", children: /* @__PURE__ */ e("div", { className: "text-lg font-semibold", children: "Assistant" }) });
|
|
14366
14428
|
}
|
|
14367
14429
|
const Lt = (se == null ? void 0 : se.length) === 0 && (A == null ? void 0 : A.filter((ne) => ne.role === "user").length) === 0, vt = /* @__PURE__ */ a(
|
|
@@ -14379,7 +14441,7 @@ function yl({
|
|
|
14379
14441
|
"data-role": "header-section",
|
|
14380
14442
|
className: "flex items-start justify-between gap-2",
|
|
14381
14443
|
children: [
|
|
14382
|
-
|
|
14444
|
+
ca(),
|
|
14383
14445
|
N && /* @__PURE__ */ e(
|
|
14384
14446
|
V,
|
|
14385
14447
|
{
|
|
@@ -14391,7 +14453,7 @@ function yl({
|
|
|
14391
14453
|
}
|
|
14392
14454
|
),
|
|
14393
14455
|
/* @__PURE__ */ a("div", { "data-role": "header-actions", className: "flex items-center", children: [
|
|
14394
|
-
|
|
14456
|
+
oa(),
|
|
14395
14457
|
c && /* @__PURE__ */ e(
|
|
14396
14458
|
V,
|
|
14397
14459
|
{
|
|
@@ -14431,7 +14493,7 @@ function yl({
|
|
|
14431
14493
|
onClick: () => {
|
|
14432
14494
|
F(!1);
|
|
14433
14495
|
},
|
|
14434
|
-
children: /* @__PURE__ */ e(
|
|
14496
|
+
children: /* @__PURE__ */ e(Ae, { className: "size-4" })
|
|
14435
14497
|
}
|
|
14436
14498
|
)
|
|
14437
14499
|
] })
|
|
@@ -14507,7 +14569,7 @@ function yl({
|
|
|
14507
14569
|
nc,
|
|
14508
14570
|
{
|
|
14509
14571
|
seedQuestions: M.seedQuestions || [],
|
|
14510
|
-
handleSeedQuestionClick:
|
|
14572
|
+
handleSeedQuestionClick: Be
|
|
14511
14573
|
}
|
|
14512
14574
|
) })
|
|
14513
14575
|
] }),
|
|
@@ -14686,14 +14748,14 @@ function Ym({
|
|
|
14686
14748
|
]
|
|
14687
14749
|
}
|
|
14688
14750
|
) }),
|
|
14689
|
-
/* @__PURE__ */ e(
|
|
14751
|
+
/* @__PURE__ */ e(la, { className: "w-[300px] p-0", align: "start", children: /* @__PURE__ */ a(Cs, { children: [
|
|
14690
14752
|
/* @__PURE__ */ e(ws, { placeholder: "Search chart types..." }),
|
|
14691
14753
|
/* @__PURE__ */ a(Ss, { className: "mb-2 max-h-[300px]", children: [
|
|
14692
14754
|
/* @__PURE__ */ e(ks, { children: "No chart type found." }),
|
|
14693
14755
|
g.map((D) => {
|
|
14694
14756
|
if (D === "default")
|
|
14695
14757
|
return /* @__PURE__ */ e(
|
|
14696
|
-
|
|
14758
|
+
da,
|
|
14697
14759
|
{
|
|
14698
14760
|
heading: /* @__PURE__ */ a("div", { className: "group flex w-full items-center justify-between", children: [
|
|
14699
14761
|
/* @__PURE__ */ a(Ke, { children: [
|
|
@@ -14737,7 +14799,7 @@ function Ym({
|
|
|
14737
14799
|
(x) => x.pluginType === "standard"
|
|
14738
14800
|
);
|
|
14739
14801
|
return S.length ? /* @__PURE__ */ e(
|
|
14740
|
-
|
|
14802
|
+
da,
|
|
14741
14803
|
{
|
|
14742
14804
|
heading: /* @__PURE__ */ a("div", { className: "group flex w-full items-center justify-between", children: [
|
|
14743
14805
|
/* @__PURE__ */ e("p", { children: "Standard Visuals" }),
|
|
@@ -14774,7 +14836,7 @@ function Ym({
|
|
|
14774
14836
|
(x) => x.pluginType === "custom"
|
|
14775
14837
|
);
|
|
14776
14838
|
return S.length ? /* @__PURE__ */ e(
|
|
14777
|
-
|
|
14839
|
+
da,
|
|
14778
14840
|
{
|
|
14779
14841
|
heading: /* @__PURE__ */ a("div", { className: "group flex w-full items-center justify-between", children: [
|
|
14780
14842
|
/* @__PURE__ */ a(Ke, { children: [
|
|
@@ -14884,7 +14946,7 @@ function Jm({
|
|
|
14884
14946
|
/* @__PURE__ */ e(U, { className: "text-xs font-medium text-gray-600", children: "Pivot Alias Template" }),
|
|
14885
14947
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
14886
14948
|
/* @__PURE__ */ e(
|
|
14887
|
-
|
|
14949
|
+
$e,
|
|
14888
14950
|
{
|
|
14889
14951
|
placeholder: o,
|
|
14890
14952
|
value: r ? s : t,
|
|
@@ -14911,7 +14973,7 @@ function Jm({
|
|
|
14911
14973
|
onClick: () => {
|
|
14912
14974
|
n(s), i(!1);
|
|
14913
14975
|
},
|
|
14914
|
-
children: /* @__PURE__ */ e(
|
|
14976
|
+
children: /* @__PURE__ */ e(na, { className: "h-4 w-4 text-green-600" })
|
|
14915
14977
|
}
|
|
14916
14978
|
),
|
|
14917
14979
|
/* @__PURE__ */ e(
|
|
@@ -14924,7 +14986,7 @@ function Jm({
|
|
|
14924
14986
|
onClick: () => {
|
|
14925
14987
|
l(t), i(!1);
|
|
14926
14988
|
},
|
|
14927
|
-
children: /* @__PURE__ */ e(
|
|
14989
|
+
children: /* @__PURE__ */ e(Ae, { className: "h-4 w-4 text-gray-400" })
|
|
14928
14990
|
}
|
|
14929
14991
|
)
|
|
14930
14992
|
] })
|
|
@@ -14949,7 +15011,7 @@ function Wm({
|
|
|
14949
15011
|
/* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
14950
15012
|
Object.entries(t).map(([p, h], f) => /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: s === p ? /* @__PURE__ */ a(q, { children: [
|
|
14951
15013
|
/* @__PURE__ */ e(
|
|
14952
|
-
|
|
15014
|
+
$e,
|
|
14953
15015
|
{
|
|
14954
15016
|
placeholder: "Value key",
|
|
14955
15017
|
value: r,
|
|
@@ -14963,7 +15025,7 @@ function Wm({
|
|
|
14963
15025
|
}
|
|
14964
15026
|
),
|
|
14965
15027
|
/* @__PURE__ */ e(
|
|
14966
|
-
|
|
15028
|
+
$e,
|
|
14967
15029
|
{
|
|
14968
15030
|
placeholder: "Alias label",
|
|
14969
15031
|
value: c,
|
|
@@ -14984,7 +15046,7 @@ function Wm({
|
|
|
14984
15046
|
className: "h-6 w-6 p-0",
|
|
14985
15047
|
"aria-label": "Confirm value alias edit",
|
|
14986
15048
|
onClick: () => m(p),
|
|
14987
|
-
children: /* @__PURE__ */ e(
|
|
15049
|
+
children: /* @__PURE__ */ e(na, { className: "h-4 w-4 text-green-600" })
|
|
14988
15050
|
}
|
|
14989
15051
|
),
|
|
14990
15052
|
/* @__PURE__ */ e(
|
|
@@ -14995,12 +15057,12 @@ function Wm({
|
|
|
14995
15057
|
className: "h-6 w-6 p-0",
|
|
14996
15058
|
"aria-label": "Cancel value alias edit",
|
|
14997
15059
|
onClick: () => l(null),
|
|
14998
|
-
children: /* @__PURE__ */ e(
|
|
15060
|
+
children: /* @__PURE__ */ e(Ae, { className: "h-4 w-4 text-muted-foreground" })
|
|
14999
15061
|
}
|
|
15000
15062
|
)
|
|
15001
15063
|
] }) : /* @__PURE__ */ a(q, { children: [
|
|
15002
15064
|
/* @__PURE__ */ e(
|
|
15003
|
-
|
|
15065
|
+
$e,
|
|
15004
15066
|
{
|
|
15005
15067
|
placeholder: "Value key",
|
|
15006
15068
|
value: p,
|
|
@@ -15013,7 +15075,7 @@ function Wm({
|
|
|
15013
15075
|
}
|
|
15014
15076
|
),
|
|
15015
15077
|
/* @__PURE__ */ e(
|
|
15016
|
-
|
|
15078
|
+
$e,
|
|
15017
15079
|
{
|
|
15018
15080
|
placeholder: "Alias label",
|
|
15019
15081
|
value: h,
|
|
@@ -15033,7 +15095,7 @@ function Wm({
|
|
|
15033
15095
|
className: "h-8 w-8 p-0",
|
|
15034
15096
|
onClick: () => u(p),
|
|
15035
15097
|
"aria-label": "Remove value alias",
|
|
15036
|
-
children: /* @__PURE__ */ e(
|
|
15098
|
+
children: /* @__PURE__ */ e(Ae, { className: "h-3 w-3" })
|
|
15037
15099
|
}
|
|
15038
15100
|
)
|
|
15039
15101
|
] }) }, p + f)),
|
|
@@ -15045,7 +15107,7 @@ function Wm({
|
|
|
15045
15107
|
className: "mt-1 h-8 text-xs",
|
|
15046
15108
|
onClick: d,
|
|
15047
15109
|
children: [
|
|
15048
|
-
/* @__PURE__ */ e(
|
|
15110
|
+
/* @__PURE__ */ e(Ye, { className: "mr-1 h-3 w-3" }),
|
|
15049
15111
|
" Add Value Alias"
|
|
15050
15112
|
]
|
|
15051
15113
|
}
|
|
@@ -15271,7 +15333,7 @@ function Xm({
|
|
|
15271
15333
|
/* @__PURE__ */ a("div", { className: "relative", children: [
|
|
15272
15334
|
/* @__PURE__ */ e(Xt, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
15273
15335
|
/* @__PURE__ */ e(
|
|
15274
|
-
|
|
15336
|
+
$e,
|
|
15275
15337
|
{
|
|
15276
15338
|
placeholder: "Search fields...",
|
|
15277
15339
|
value: u,
|
|
@@ -15365,7 +15427,7 @@ function Zm({
|
|
|
15365
15427
|
/* @__PURE__ */ a("div", { className: "relative", children: [
|
|
15366
15428
|
/* @__PURE__ */ e(Xt, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
15367
15429
|
/* @__PURE__ */ e(
|
|
15368
|
-
|
|
15430
|
+
$e,
|
|
15369
15431
|
{
|
|
15370
15432
|
placeholder: "Search values...",
|
|
15371
15433
|
value: r,
|
|
@@ -15543,7 +15605,7 @@ function eh({
|
|
|
15543
15605
|
{ value: "custom", label: "Custom Format..." }
|
|
15544
15606
|
];
|
|
15545
15607
|
}
|
|
15546
|
-
}, Me = ce(G), Fe = n !== "pivotBy", be = K && n === "groupBy", Le = !$ && K && n === "groupBy",
|
|
15608
|
+
}, Me = ce(G), Fe = n !== "pivotBy", be = K && n === "groupBy", Le = !$ && K && n === "groupBy", Be = $ && K && n === "groupBy", oa = $ && n === "metrics" && ((qn = f.config) == null ? void 0 : qn.comparisonType) === "target", ca = n === "metrics", Lt = () => /* @__PURE__ */ e(
|
|
15547
15609
|
"div",
|
|
15548
15610
|
{
|
|
15549
15611
|
title: `${t.entityName}.${t.name}`,
|
|
@@ -15556,7 +15618,7 @@ function eh({
|
|
|
15556
15618
|
), vt = () => Fe ? /* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
15557
15619
|
/* @__PURE__ */ e(U, { className: "text-xs font-medium text-muted-foreground", children: "Label" }),
|
|
15558
15620
|
/* @__PURE__ */ e(
|
|
15559
|
-
|
|
15621
|
+
It,
|
|
15560
15622
|
{
|
|
15561
15623
|
value: t.label ?? "",
|
|
15562
15624
|
onSave: Re,
|
|
@@ -15602,7 +15664,7 @@ function eh({
|
|
|
15602
15664
|
),
|
|
15603
15665
|
X && /* @__PURE__ */ a("div", { className: "mt-2 space-y-1", children: [
|
|
15604
15666
|
/* @__PURE__ */ e(
|
|
15605
|
-
|
|
15667
|
+
$e,
|
|
15606
15668
|
{
|
|
15607
15669
|
placeholder: "Enter custom format (e.g., YYYY-MM-DD HH:mm)",
|
|
15608
15670
|
value: z,
|
|
@@ -15618,7 +15680,7 @@ function eh({
|
|
|
15618
15680
|
] })
|
|
15619
15681
|
] }) : null, ka = () => {
|
|
15620
15682
|
var J, je, Ue, tt, zt;
|
|
15621
|
-
return
|
|
15683
|
+
return Be ? /* @__PURE__ */ a(q, { children: [
|
|
15622
15684
|
/* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
15623
15685
|
/* @__PURE__ */ e(U, { className: "text-xs font-medium text-muted-foreground", children: "Comparison Type" }),
|
|
15624
15686
|
/* @__PURE__ */ a(
|
|
@@ -15652,7 +15714,7 @@ function eh({
|
|
|
15652
15714
|
/* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
15653
15715
|
/* @__PURE__ */ e(U, { className: "text-xs font-medium text-muted-foreground", children: "Trendline Window" }),
|
|
15654
15716
|
/* @__PURE__ */ e(
|
|
15655
|
-
|
|
15717
|
+
$e,
|
|
15656
15718
|
{
|
|
15657
15719
|
type: "number",
|
|
15658
15720
|
min: "1",
|
|
@@ -15689,10 +15751,10 @@ function eh({
|
|
|
15689
15751
|
] }) : null;
|
|
15690
15752
|
}, Kt = () => {
|
|
15691
15753
|
var J, je;
|
|
15692
|
-
return
|
|
15754
|
+
return oa ? /* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
15693
15755
|
/* @__PURE__ */ e(U, { className: "text-xs font-medium text-muted-foreground", children: "Target Value" }),
|
|
15694
15756
|
/* @__PURE__ */ e(
|
|
15695
|
-
|
|
15757
|
+
It,
|
|
15696
15758
|
{
|
|
15697
15759
|
value: ((J = f.config) == null ? void 0 : J.targetValue) !== void 0 && ((je = f.config) == null ? void 0 : je.targetValue) !== null ? String(f.config.targetValue) : "",
|
|
15698
15760
|
onSave: (Ue) => {
|
|
@@ -15703,7 +15765,7 @@ function eh({
|
|
|
15703
15765
|
}
|
|
15704
15766
|
)
|
|
15705
15767
|
] }) : null;
|
|
15706
|
-
}, ii = () =>
|
|
15768
|
+
}, ii = () => ca ? /* @__PURE__ */ a(q, { children: [
|
|
15707
15769
|
/* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
15708
15770
|
/* @__PURE__ */ e(U, { className: "text-xs font-medium text-muted-foreground", children: "Aggregation" }),
|
|
15709
15771
|
/* @__PURE__ */ a(
|
|
@@ -15795,7 +15857,7 @@ function eh({
|
|
|
15795
15857
|
});
|
|
15796
15858
|
}
|
|
15797
15859
|
},
|
|
15798
|
-
children: /* @__PURE__ */ e(
|
|
15860
|
+
children: /* @__PURE__ */ e(Ae, { className: "h-3 w-3" })
|
|
15799
15861
|
}
|
|
15800
15862
|
)
|
|
15801
15863
|
]
|
|
@@ -15916,7 +15978,7 @@ function eh({
|
|
|
15916
15978
|
onClick: (J) => {
|
|
15917
15979
|
J.stopPropagation(), Ze();
|
|
15918
15980
|
},
|
|
15919
|
-
children: /* @__PURE__ */ e(
|
|
15981
|
+
children: /* @__PURE__ */ e(Ae, { className: "h-2.5 w-2.5" })
|
|
15920
15982
|
}
|
|
15921
15983
|
)
|
|
15922
15984
|
] }),
|
|
@@ -16092,10 +16154,10 @@ function Ba({
|
|
|
16092
16154
|
ref: o,
|
|
16093
16155
|
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"}`,
|
|
16094
16156
|
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(
|
|
16095
|
-
|
|
16157
|
+
ha,
|
|
16096
16158
|
{
|
|
16097
16159
|
items: n.map((v) => v.id),
|
|
16098
|
-
strategy:
|
|
16160
|
+
strategy: pa,
|
|
16099
16161
|
children: /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-1", children: n.map((v, g) => {
|
|
16100
16162
|
const y = v.direction;
|
|
16101
16163
|
return /* @__PURE__ */ e(
|
|
@@ -16168,7 +16230,7 @@ function Os({
|
|
|
16168
16230
|
"aria-label": `Change color for ${s}`
|
|
16169
16231
|
}
|
|
16170
16232
|
) }),
|
|
16171
|
-
/* @__PURE__ */ e(
|
|
16233
|
+
/* @__PURE__ */ e(la, { align: "start", className: "w-auto p-2", children: /* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
16172
16234
|
/* @__PURE__ */ e("div", { className: "grid grid-cols-3 items-center justify-items-center gap-1", children: ah.map((d) => /* @__PURE__ */ e(
|
|
16173
16235
|
"button",
|
|
16174
16236
|
{
|
|
@@ -16475,7 +16537,7 @@ function sh() {
|
|
|
16475
16537
|
}
|
|
16476
16538
|
),
|
|
16477
16539
|
/* @__PURE__ */ e(
|
|
16478
|
-
|
|
16540
|
+
Ie,
|
|
16479
16541
|
{
|
|
16480
16542
|
id: "label-increase",
|
|
16481
16543
|
type: "text",
|
|
@@ -16505,7 +16567,7 @@ function sh() {
|
|
|
16505
16567
|
}
|
|
16506
16568
|
),
|
|
16507
16569
|
/* @__PURE__ */ e(
|
|
16508
|
-
|
|
16570
|
+
Ie,
|
|
16509
16571
|
{
|
|
16510
16572
|
id: "label-decrease",
|
|
16511
16573
|
type: "text",
|
|
@@ -16531,7 +16593,7 @@ function sh() {
|
|
|
16531
16593
|
}
|
|
16532
16594
|
),
|
|
16533
16595
|
/* @__PURE__ */ e(
|
|
16534
|
-
|
|
16596
|
+
Ie,
|
|
16535
16597
|
{
|
|
16536
16598
|
id: "label-no-change",
|
|
16537
16599
|
type: "text",
|
|
@@ -16560,7 +16622,7 @@ function sh() {
|
|
|
16560
16622
|
}
|
|
16561
16623
|
),
|
|
16562
16624
|
/* @__PURE__ */ e(
|
|
16563
|
-
|
|
16625
|
+
Ie,
|
|
16564
16626
|
{
|
|
16565
16627
|
id: "label-name",
|
|
16566
16628
|
type: "text",
|
|
@@ -17223,7 +17285,7 @@ const dh = (t) => {
|
|
|
17223
17285
|
case "table":
|
|
17224
17286
|
return /* @__PURE__ */ e(Ps, { className: "h-3 w-3" });
|
|
17225
17287
|
case "view":
|
|
17226
|
-
return /* @__PURE__ */ e(
|
|
17288
|
+
return /* @__PURE__ */ e(ua, { className: "h-3 w-3" });
|
|
17227
17289
|
case "dataset":
|
|
17228
17290
|
return /* @__PURE__ */ e(vs, { className: "h-3 w-3" });
|
|
17229
17291
|
case "file":
|
|
@@ -17245,7 +17307,7 @@ function mh({
|
|
|
17245
17307
|
placeholder: l = "Select field",
|
|
17246
17308
|
className: r = "w-64"
|
|
17247
17309
|
}) {
|
|
17248
|
-
const [i, c] =
|
|
17310
|
+
const [i, c] = Ge.useState(!1), o = Ge.useMemo(() => {
|
|
17249
17311
|
const d = {};
|
|
17250
17312
|
return s.forEach((u) => {
|
|
17251
17313
|
const m = uh(u);
|
|
@@ -17274,11 +17336,11 @@ function mh({
|
|
|
17274
17336
|
]
|
|
17275
17337
|
}
|
|
17276
17338
|
) }),
|
|
17277
|
-
/* @__PURE__ */ e(
|
|
17339
|
+
/* @__PURE__ */ e(la, { className: "z-50 w-80 p-0", align: "start", children: /* @__PURE__ */ a(Cs, { children: [
|
|
17278
17340
|
/* @__PURE__ */ e(ws, { placeholder: "Search fields...", className: "h-9" }),
|
|
17279
17341
|
/* @__PURE__ */ e(ks, { children: "No fields found." }),
|
|
17280
17342
|
/* @__PURE__ */ e(Ss, { className: "max-h-80", children: Object.entries(o).map(([d, u]) => /* @__PURE__ */ e(
|
|
17281
|
-
|
|
17343
|
+
da,
|
|
17282
17344
|
{
|
|
17283
17345
|
heading: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
17284
17346
|
/* @__PURE__ */ e(jt, { className: "h-3 w-3" }),
|
|
@@ -17299,7 +17361,7 @@ function mh({
|
|
|
17299
17361
|
className: "overflow-x-auto",
|
|
17300
17362
|
children: [
|
|
17301
17363
|
/* @__PURE__ */ e(
|
|
17302
|
-
|
|
17364
|
+
na,
|
|
17303
17365
|
{
|
|
17304
17366
|
className: B(
|
|
17305
17367
|
"mr-2 h-4 w-4",
|
|
@@ -17419,7 +17481,7 @@ function hh({
|
|
|
17419
17481
|
onClick: (h) => {
|
|
17420
17482
|
h.stopPropagation(), d(m);
|
|
17421
17483
|
},
|
|
17422
|
-
children: /* @__PURE__ */ e(
|
|
17484
|
+
children: /* @__PURE__ */ e(Ae, { className: "h-3 w-3 text-muted-foreground hover:text-foreground" })
|
|
17423
17485
|
}
|
|
17424
17486
|
)
|
|
17425
17487
|
] }, m);
|
|
@@ -17428,17 +17490,17 @@ function hh({
|
|
|
17428
17490
|
]
|
|
17429
17491
|
}
|
|
17430
17492
|
) }),
|
|
17431
|
-
/* @__PURE__ */ e(
|
|
17493
|
+
/* @__PURE__ */ e(la, { className: "z-50 w-fit overflow-auto p-0", align: "start", children: /* @__PURE__ */ a(Cs, { children: [
|
|
17432
17494
|
/* @__PURE__ */ e(ws, { placeholder: "Search..." }),
|
|
17433
17495
|
/* @__PURE__ */ a(Ss, { children: [
|
|
17434
17496
|
/* @__PURE__ */ e(ks, { children: "No results found." }),
|
|
17435
|
-
/* @__PURE__ */ e(
|
|
17497
|
+
/* @__PURE__ */ e(da, { children: o.map((m, p) => /* @__PURE__ */ a(
|
|
17436
17498
|
ja,
|
|
17437
17499
|
{
|
|
17438
17500
|
onSelect: () => u(m.value),
|
|
17439
17501
|
children: [
|
|
17440
17502
|
/* @__PURE__ */ e(
|
|
17441
|
-
|
|
17503
|
+
na,
|
|
17442
17504
|
{
|
|
17443
17505
|
className: B(
|
|
17444
17506
|
"mr-2 h-4 w-4",
|
|
@@ -17736,7 +17798,7 @@ function ni({
|
|
|
17736
17798
|
) : ["contains", "startsWith", "endsWith"].includes(
|
|
17737
17799
|
t.operator
|
|
17738
17800
|
) ? /* @__PURE__ */ e(
|
|
17739
|
-
|
|
17801
|
+
$e,
|
|
17740
17802
|
{
|
|
17741
17803
|
value: typeof t.value == "string" ? t.value : "",
|
|
17742
17804
|
onChange: (w) => d(s, t.id, {
|
|
@@ -17784,7 +17846,7 @@ function ni({
|
|
|
17784
17846
|
}
|
|
17785
17847
|
)
|
|
17786
17848
|
) : /* @__PURE__ */ e(
|
|
17787
|
-
|
|
17849
|
+
$e,
|
|
17788
17850
|
{
|
|
17789
17851
|
value: typeof t.value == "string" || typeof t.value == "number" ? t.value : "",
|
|
17790
17852
|
onChange: (w) => r(s, t.id, "value", w.target.value),
|
|
@@ -17799,7 +17861,7 @@ function ni({
|
|
|
17799
17861
|
size: "sm",
|
|
17800
17862
|
className: "h-7 w-7 flex-shrink-0 p-0",
|
|
17801
17863
|
onClick: () => i(s, t.id),
|
|
17802
|
-
children: /* @__PURE__ */ e(
|
|
17864
|
+
children: /* @__PURE__ */ e(Ae, { className: "h-3 w-3" })
|
|
17803
17865
|
}
|
|
17804
17866
|
)
|
|
17805
17867
|
]
|
|
@@ -17908,7 +17970,7 @@ function wh({
|
|
|
17908
17970
|
] }),
|
|
17909
17971
|
/* @__PURE__ */ a("div", { className: `p-3 ${n > 0 ? "" : "px-0"}`, children: [
|
|
17910
17972
|
/* @__PURE__ */ e(
|
|
17911
|
-
|
|
17973
|
+
fa,
|
|
17912
17974
|
{
|
|
17913
17975
|
sensors: ss(
|
|
17914
17976
|
Wt(ns),
|
|
@@ -17916,13 +17978,13 @@ function wh({
|
|
|
17916
17978
|
coordinateGetter: Vs
|
|
17917
17979
|
})
|
|
17918
17980
|
),
|
|
17919
|
-
collisionDetection:
|
|
17981
|
+
collisionDetection: ga,
|
|
17920
17982
|
onDragEnd: x,
|
|
17921
17983
|
children: /* @__PURE__ */ e(
|
|
17922
|
-
|
|
17984
|
+
ha,
|
|
17923
17985
|
{
|
|
17924
17986
|
items: t.conditions.map((N) => N.id),
|
|
17925
|
-
strategy:
|
|
17987
|
+
strategy: pa,
|
|
17926
17988
|
children: t.conditions.map((N, F) => /* @__PURE__ */ e(
|
|
17927
17989
|
ni,
|
|
17928
17990
|
{
|
|
@@ -17944,7 +18006,7 @@ function wh({
|
|
|
17944
18006
|
}
|
|
17945
18007
|
),
|
|
17946
18008
|
/* @__PURE__ */ e(
|
|
17947
|
-
|
|
18009
|
+
fa,
|
|
17948
18010
|
{
|
|
17949
18011
|
sensors: ss(
|
|
17950
18012
|
Wt(ns),
|
|
@@ -17952,13 +18014,13 @@ function wh({
|
|
|
17952
18014
|
coordinateGetter: Vs
|
|
17953
18015
|
})
|
|
17954
18016
|
),
|
|
17955
|
-
collisionDetection:
|
|
18017
|
+
collisionDetection: ga,
|
|
17956
18018
|
onDragEnd: C,
|
|
17957
18019
|
children: /* @__PURE__ */ e(
|
|
17958
|
-
|
|
18020
|
+
ha,
|
|
17959
18021
|
{
|
|
17960
18022
|
items: t.groups.map((N) => N.id),
|
|
17961
|
-
strategy:
|
|
18023
|
+
strategy: pa,
|
|
17962
18024
|
children: t.groups.map(
|
|
17963
18025
|
(N) => v(N, n + 1, t.id)
|
|
17964
18026
|
)
|
|
@@ -17975,7 +18037,7 @@ function wh({
|
|
|
17975
18037
|
className: "h-7 text-xs",
|
|
17976
18038
|
onClick: () => p(t.id),
|
|
17977
18039
|
children: [
|
|
17978
|
-
/* @__PURE__ */ e(
|
|
18040
|
+
/* @__PURE__ */ e(Ye, { className: "mr-1 h-3 w-3" }),
|
|
17979
18041
|
"Add Condition"
|
|
17980
18042
|
]
|
|
17981
18043
|
}
|
|
@@ -17988,7 +18050,7 @@ function wh({
|
|
|
17988
18050
|
className: "h-7 text-xs",
|
|
17989
18051
|
onClick: () => h(t.id),
|
|
17990
18052
|
children: [
|
|
17991
|
-
/* @__PURE__ */ e(
|
|
18053
|
+
/* @__PURE__ */ e(Ye, { className: "mr-1 h-3 w-3" }),
|
|
17992
18054
|
"Add Group"
|
|
17993
18055
|
]
|
|
17994
18056
|
}
|
|
@@ -18046,10 +18108,10 @@ function Sh({
|
|
|
18046
18108
|
T(A(i));
|
|
18047
18109
|
}, N = (k, L = 0, M) => L === 0 ? /* @__PURE__ */ e("div", { className: "rounded-lg", children: /* @__PURE__ */ a("div", { className: "p-3 px-0", children: [
|
|
18048
18110
|
/* @__PURE__ */ e(
|
|
18049
|
-
|
|
18111
|
+
fa,
|
|
18050
18112
|
{
|
|
18051
18113
|
sensors: D,
|
|
18052
|
-
collisionDetection:
|
|
18114
|
+
collisionDetection: ga,
|
|
18053
18115
|
onDragEnd: (A) => {
|
|
18054
18116
|
const { active: I, over: R } = A;
|
|
18055
18117
|
if (R && I.id !== R.id) {
|
|
@@ -18062,10 +18124,10 @@ function Sh({
|
|
|
18062
18124
|
}
|
|
18063
18125
|
},
|
|
18064
18126
|
children: /* @__PURE__ */ e(
|
|
18065
|
-
|
|
18127
|
+
ha,
|
|
18066
18128
|
{
|
|
18067
18129
|
items: k.conditions.map((A) => A.id),
|
|
18068
|
-
strategy:
|
|
18130
|
+
strategy: pa,
|
|
18069
18131
|
children: k.conditions.map((A, I) => /* @__PURE__ */ e(
|
|
18070
18132
|
ni,
|
|
18071
18133
|
{
|
|
@@ -18087,10 +18149,10 @@ function Sh({
|
|
|
18087
18149
|
}
|
|
18088
18150
|
),
|
|
18089
18151
|
/* @__PURE__ */ e(
|
|
18090
|
-
|
|
18152
|
+
fa,
|
|
18091
18153
|
{
|
|
18092
18154
|
sensors: D,
|
|
18093
|
-
collisionDetection:
|
|
18155
|
+
collisionDetection: ga,
|
|
18094
18156
|
onDragEnd: (A) => {
|
|
18095
18157
|
const { active: I, over: R } = A;
|
|
18096
18158
|
if (R && I.id !== R.id) {
|
|
@@ -18103,10 +18165,10 @@ function Sh({
|
|
|
18103
18165
|
}
|
|
18104
18166
|
},
|
|
18105
18167
|
children: /* @__PURE__ */ e(
|
|
18106
|
-
|
|
18168
|
+
ha,
|
|
18107
18169
|
{
|
|
18108
18170
|
items: k.groups.map((A) => A.id),
|
|
18109
|
-
strategy:
|
|
18171
|
+
strategy: pa,
|
|
18110
18172
|
children: k.groups.map(
|
|
18111
18173
|
(A) => N(A, L + 1, k.id)
|
|
18112
18174
|
)
|
|
@@ -18123,7 +18185,7 @@ function Sh({
|
|
|
18123
18185
|
variant: "outline",
|
|
18124
18186
|
onClick: () => d(k.id),
|
|
18125
18187
|
children: [
|
|
18126
|
-
/* @__PURE__ */ e(
|
|
18188
|
+
/* @__PURE__ */ e(Ye, { className: "mr-1 h-3 w-3" }),
|
|
18127
18189
|
"Add Condition"
|
|
18128
18190
|
]
|
|
18129
18191
|
}
|
|
@@ -18136,7 +18198,7 @@ function Sh({
|
|
|
18136
18198
|
className: "h-7 text-xs",
|
|
18137
18199
|
onClick: () => u(k.id),
|
|
18138
18200
|
children: [
|
|
18139
|
-
/* @__PURE__ */ e(
|
|
18201
|
+
/* @__PURE__ */ e(Ye, { className: "mr-1 h-3 w-3" }),
|
|
18140
18202
|
"Add Group"
|
|
18141
18203
|
]
|
|
18142
18204
|
}
|
|
@@ -18482,7 +18544,7 @@ function Eh() {
|
|
|
18482
18544
|
l(!1), n(t.id, parseInt(m));
|
|
18483
18545
|
};
|
|
18484
18546
|
return /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: s ? /* @__PURE__ */ e(
|
|
18485
|
-
|
|
18547
|
+
Ie,
|
|
18486
18548
|
{
|
|
18487
18549
|
type: "number",
|
|
18488
18550
|
value: r,
|
|
@@ -18549,7 +18611,7 @@ function Ah({
|
|
|
18549
18611
|
tooltip: "Hide",
|
|
18550
18612
|
onClick: n,
|
|
18551
18613
|
className: "h-7 p-2 text-muted-foreground hover:text-foreground",
|
|
18552
|
-
children: /* @__PURE__ */ e(
|
|
18614
|
+
children: /* @__PURE__ */ e(Ae, { className: "size-3.5" })
|
|
18553
18615
|
}
|
|
18554
18616
|
)
|
|
18555
18617
|
] }),
|
|
@@ -18629,7 +18691,7 @@ function Ih({
|
|
|
18629
18691
|
onClick: l,
|
|
18630
18692
|
className: "absolute right-4 top-4 rounded-md p-1 hover:bg-muted",
|
|
18631
18693
|
"aria-label": "Close Debug Panel",
|
|
18632
|
-
children: /* @__PURE__ */ e(
|
|
18694
|
+
children: /* @__PURE__ */ e(Ae, { className: "h-4 w-4" })
|
|
18633
18695
|
}
|
|
18634
18696
|
),
|
|
18635
18697
|
/* @__PURE__ */ a("div", { className: "space-y-4 pr-8", children: [
|
|
@@ -18961,10 +19023,10 @@ function Fh() {
|
|
|
18961
19023
|
}), G;
|
|
18962
19024
|
}, z = E(((j = C == null ? void 0 : C.config) == null ? void 0 : j.filters) || null);
|
|
18963
19025
|
return /* @__PURE__ */ a(
|
|
18964
|
-
|
|
19026
|
+
fa,
|
|
18965
19027
|
{
|
|
18966
19028
|
sensors: x,
|
|
18967
|
-
collisionDetection:
|
|
19029
|
+
collisionDetection: ga,
|
|
18968
19030
|
onDragStart: L,
|
|
18969
19031
|
onDragEnd: M,
|
|
18970
19032
|
children: [
|
|
@@ -19231,7 +19293,7 @@ function Vh() {
|
|
|
19231
19293
|
/* @__PURE__ */ e("h3", { className: "mb-2 text-sm font-medium text-foreground", children: "No fields configured" }),
|
|
19232
19294
|
/* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground", children: "Please configure a data source for this card to enable filtering" })
|
|
19233
19295
|
] }),
|
|
19234
|
-
n && /* @__PURE__ */ e("div", { className: "flex grow", children: /* @__PURE__ */ e(
|
|
19296
|
+
n && /* @__PURE__ */ e("div", { className: "flex grow", children: /* @__PURE__ */ e(fa, { collisionDetection: ga, children: /* @__PURE__ */ e(ha, { items: [], strategy: pa, children: /* @__PURE__ */ e(zr, { context: "filter" }) }) }) })
|
|
19235
19297
|
] });
|
|
19236
19298
|
}
|
|
19237
19299
|
function _h() {
|
|
@@ -19302,7 +19364,7 @@ function Uh() {
|
|
|
19302
19364
|
className: "absolute right-2 top-2 z-10 h-8",
|
|
19303
19365
|
onClick: () => l(!1),
|
|
19304
19366
|
children: [
|
|
19305
|
-
/* @__PURE__ */ e(
|
|
19367
|
+
/* @__PURE__ */ e(Ae, { className: "mr-2 h-4 w-4" }),
|
|
19306
19368
|
"Close"
|
|
19307
19369
|
]
|
|
19308
19370
|
}
|
|
@@ -19377,7 +19439,7 @@ function Gh({
|
|
|
19377
19439
|
formatDate: u
|
|
19378
19440
|
}) {
|
|
19379
19441
|
var D, S, x, C;
|
|
19380
|
-
const { selectVisual: m } = Ra(), p = Ec(t.id), h = $h(t.id), { isConsoleMode: f } = Pa(), v =
|
|
19442
|
+
const { selectVisual: m } = Ra(), p = Ec(t.id), h = $h(t.id), { isConsoleMode: f } = Pa(), v = Ge.useRef(null), [g, b] = _(!1), [y, w] = _(!1);
|
|
19381
19443
|
Ne(() => {
|
|
19382
19444
|
s ? (b(!0), w(!0)) : y && (b(!1), w(!1));
|
|
19383
19445
|
}, [s, y]), Ne(() => {
|
|
@@ -19443,7 +19505,7 @@ function Gh({
|
|
|
19443
19505
|
N.stopPropagation(), l(t);
|
|
19444
19506
|
},
|
|
19445
19507
|
title: "Add to dashboard",
|
|
19446
|
-
children: /* @__PURE__ */ e(
|
|
19508
|
+
children: /* @__PURE__ */ e(Ye, { className: "h-3.5 w-3.5" })
|
|
19447
19509
|
}
|
|
19448
19510
|
),
|
|
19449
19511
|
t.ownership.isOwner && /* @__PURE__ */ e(
|
|
@@ -19469,19 +19531,19 @@ function Gh({
|
|
|
19469
19531
|
/* @__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" }) }) }),
|
|
19470
19532
|
/* @__PURE__ */ a(Dt, { align: "end", className: "z-[51] w-40", children: [
|
|
19471
19533
|
/* @__PURE__ */ a(
|
|
19472
|
-
|
|
19534
|
+
qe,
|
|
19473
19535
|
{
|
|
19474
19536
|
onClick: (N) => {
|
|
19475
19537
|
N.stopPropagation(), l(t);
|
|
19476
19538
|
},
|
|
19477
19539
|
children: [
|
|
19478
|
-
/* @__PURE__ */ e(
|
|
19540
|
+
/* @__PURE__ */ e(Ye, { className: "mr-2 h-3 w-3" }),
|
|
19479
19541
|
"Add"
|
|
19480
19542
|
]
|
|
19481
19543
|
}
|
|
19482
19544
|
),
|
|
19483
19545
|
/* @__PURE__ */ a(
|
|
19484
|
-
|
|
19546
|
+
qe,
|
|
19485
19547
|
{
|
|
19486
19548
|
onClick: (N) => {
|
|
19487
19549
|
N.stopPropagation(), r == null || r(t);
|
|
@@ -19493,7 +19555,7 @@ function Gh({
|
|
|
19493
19555
|
}
|
|
19494
19556
|
),
|
|
19495
19557
|
/* @__PURE__ */ a(
|
|
19496
|
-
|
|
19558
|
+
qe,
|
|
19497
19559
|
{
|
|
19498
19560
|
onClick: (N) => {
|
|
19499
19561
|
N.preventDefault(), N.stopPropagation(), o(t.id);
|
|
@@ -19507,7 +19569,7 @@ function Gh({
|
|
|
19507
19569
|
),
|
|
19508
19570
|
t.ownership.isOwner && /* @__PURE__ */ a(q, { children: [
|
|
19509
19571
|
/* @__PURE__ */ a(
|
|
19510
|
-
|
|
19572
|
+
qe,
|
|
19511
19573
|
{
|
|
19512
19574
|
onClick: (N) => {
|
|
19513
19575
|
N.stopPropagation(), i == null || i(t);
|
|
@@ -19519,7 +19581,7 @@ function Gh({
|
|
|
19519
19581
|
}
|
|
19520
19582
|
),
|
|
19521
19583
|
/* @__PURE__ */ a(
|
|
19522
|
-
|
|
19584
|
+
qe,
|
|
19523
19585
|
{
|
|
19524
19586
|
onClick: (N) => {
|
|
19525
19587
|
N.stopPropagation(), d(t);
|
|
@@ -19532,7 +19594,7 @@ function Gh({
|
|
|
19532
19594
|
),
|
|
19533
19595
|
/* @__PURE__ */ e(Ht, {}),
|
|
19534
19596
|
/* @__PURE__ */ a(
|
|
19535
|
-
|
|
19597
|
+
qe,
|
|
19536
19598
|
{
|
|
19537
19599
|
onClick: (N) => {
|
|
19538
19600
|
N.stopPropagation(), c(t);
|
|
@@ -19549,7 +19611,7 @@ function Gh({
|
|
|
19549
19611
|
/* @__PURE__ */ e(Ht, {}),
|
|
19550
19612
|
/* @__PURE__ */ a("div", { className: "space-y-1 px-2 py-2 text-xs text-slate-500 dark:text-slate-400", children: [
|
|
19551
19613
|
(((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: [
|
|
19552
|
-
/* @__PURE__ */ e(
|
|
19614
|
+
/* @__PURE__ */ e(ma, { className: "h-3 w-3" }),
|
|
19553
19615
|
/* @__PURE__ */ e("span", { children: ((C = t.ownership.createdBy) == null ? void 0 : C.name) || "Unknown" })
|
|
19554
19616
|
] }),
|
|
19555
19617
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-1", children: [
|
|
@@ -19603,7 +19665,7 @@ function ri({
|
|
|
19603
19665
|
/* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
19604
19666
|
/* @__PURE__ */ e(U, { htmlFor: "resource-title", children: "Title" }),
|
|
19605
19667
|
/* @__PURE__ */ e(
|
|
19606
|
-
|
|
19668
|
+
Ie,
|
|
19607
19669
|
{
|
|
19608
19670
|
id: "resource-title",
|
|
19609
19671
|
value: o,
|
|
@@ -19665,7 +19727,7 @@ function Yh({
|
|
|
19665
19727
|
/* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
19666
19728
|
/* @__PURE__ */ e(U, { htmlFor: "title", children: "Visual Title" }),
|
|
19667
19729
|
/* @__PURE__ */ e(
|
|
19668
|
-
|
|
19730
|
+
$e,
|
|
19669
19731
|
{
|
|
19670
19732
|
id: "title",
|
|
19671
19733
|
placeholder: "Enter visual title...",
|
|
@@ -19681,7 +19743,7 @@ function Yh({
|
|
|
19681
19743
|
/* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
19682
19744
|
/* @__PURE__ */ e(U, { htmlFor: "description", children: "Description (optional)" }),
|
|
19683
19745
|
/* @__PURE__ */ e(
|
|
19684
|
-
|
|
19746
|
+
$e,
|
|
19685
19747
|
{
|
|
19686
19748
|
id: "description",
|
|
19687
19749
|
placeholder: "Enter visual description...",
|
|
@@ -19721,7 +19783,7 @@ function Bh() {
|
|
|
19721
19783
|
null
|
|
19722
19784
|
), [d, u] = _(!1), [m, p] = _(null), [h, f] = _(null), [v, g] = _(
|
|
19723
19785
|
null
|
|
19724
|
-
), { selectVisual: b } = Ra(), { handleEditLibraryVisual: y, handleAddLibraryVisual: w } =
|
|
19786
|
+
), { selectVisual: b } = Ra(), { handleEditLibraryVisual: y, handleAddLibraryVisual: w } = ra(), {
|
|
19725
19787
|
resources: P,
|
|
19726
19788
|
isLoading: T,
|
|
19727
19789
|
isError: D,
|
|
@@ -19838,7 +19900,7 @@ function Bh() {
|
|
|
19838
19900
|
)
|
|
19839
19901
|
] }) }) : /* @__PURE__ */ a("div", { className: "relative flex h-full flex-1 flex-col gap-4", children: [
|
|
19840
19902
|
P && P.length > 5 && /* @__PURE__ */ e("div", { className: "space-y-2", children: /* @__PURE__ */ e(
|
|
19841
|
-
|
|
19903
|
+
$e,
|
|
19842
19904
|
{
|
|
19843
19905
|
id: "search",
|
|
19844
19906
|
placeholder: "Search by title or description...",
|
|
@@ -19858,7 +19920,7 @@ function Bh() {
|
|
|
19858
19920
|
className: "bg-primary hover:bg-primary/90",
|
|
19859
19921
|
onClick: () => l(!0),
|
|
19860
19922
|
children: [
|
|
19861
|
-
/* @__PURE__ */ e(
|
|
19923
|
+
/* @__PURE__ */ e(Ye, { className: "mr-2 h-4 w-4" }),
|
|
19862
19924
|
"Create Visual"
|
|
19863
19925
|
]
|
|
19864
19926
|
}
|
|
@@ -19954,7 +20016,7 @@ function Bh() {
|
|
|
19954
20016
|
className: "absolute bottom-2 left-2 h-11 w-11 rounded-full shadow-lg shadow-black/15",
|
|
19955
20017
|
onClick: () => l(!0),
|
|
19956
20018
|
"aria-label": "Create visual",
|
|
19957
|
-
children: /* @__PURE__ */ e(
|
|
20019
|
+
children: /* @__PURE__ */ e(Ye, { className: "h-5 w-5" })
|
|
19958
20020
|
}
|
|
19959
20021
|
)
|
|
19960
20022
|
] });
|
|
@@ -20042,7 +20104,7 @@ function qh({
|
|
|
20042
20104
|
/* @__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" }) }) }),
|
|
20043
20105
|
/* @__PURE__ */ a(Dt, { align: "end", className: "z-[51] w-40", children: [
|
|
20044
20106
|
/* @__PURE__ */ a(
|
|
20045
|
-
|
|
20107
|
+
qe,
|
|
20046
20108
|
{
|
|
20047
20109
|
onClick: (M) => {
|
|
20048
20110
|
M.preventDefault(), M.stopPropagation(), c(t.id);
|
|
@@ -20055,7 +20117,7 @@ function qh({
|
|
|
20055
20117
|
}
|
|
20056
20118
|
),
|
|
20057
20119
|
t.permissions.canEdit && /* @__PURE__ */ a(
|
|
20058
|
-
|
|
20120
|
+
qe,
|
|
20059
20121
|
{
|
|
20060
20122
|
onClick: (M) => {
|
|
20061
20123
|
M.stopPropagation(), r == null || r(t);
|
|
@@ -20067,7 +20129,7 @@ function qh({
|
|
|
20067
20129
|
}
|
|
20068
20130
|
),
|
|
20069
20131
|
t.permissions.canEdit && /* @__PURE__ */ e(q, { children: /* @__PURE__ */ a(
|
|
20070
|
-
|
|
20132
|
+
qe,
|
|
20071
20133
|
{
|
|
20072
20134
|
onClick: (M) => {
|
|
20073
20135
|
M.stopPropagation(), o(t);
|
|
@@ -20081,7 +20143,7 @@ function qh({
|
|
|
20081
20143
|
t.permissions.canDelete && /* @__PURE__ */ a(q, { children: [
|
|
20082
20144
|
/* @__PURE__ */ e(Ht, {}),
|
|
20083
20145
|
/* @__PURE__ */ a(
|
|
20084
|
-
|
|
20146
|
+
qe,
|
|
20085
20147
|
{
|
|
20086
20148
|
onClick: (M) => {
|
|
20087
20149
|
M.stopPropagation(), i(t);
|
|
@@ -20098,7 +20160,7 @@ function qh({
|
|
|
20098
20160
|
/* @__PURE__ */ e(Ht, {}),
|
|
20099
20161
|
/* @__PURE__ */ a("div", { className: "space-y-1 px-2 py-2 text-xs text-slate-500 dark:text-slate-400", children: [
|
|
20100
20162
|
(((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: [
|
|
20101
|
-
/* @__PURE__ */ e(
|
|
20163
|
+
/* @__PURE__ */ e(ma, { className: "h-3 w-3" }),
|
|
20102
20164
|
/* @__PURE__ */ e("span", { children: ((L = t.ownership.createdBy) == null ? void 0 : L.name) || "Unknown" })
|
|
20103
20165
|
] }),
|
|
20104
20166
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-1", children: [
|
|
@@ -20243,7 +20305,7 @@ function Jh(t) {
|
|
|
20243
20305
|
};
|
|
20244
20306
|
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: [
|
|
20245
20307
|
L && L.length > 5 && /* @__PURE__ */ e("div", { className: "space-y-2", children: /* @__PURE__ */ e(
|
|
20246
|
-
|
|
20308
|
+
$e,
|
|
20247
20309
|
{
|
|
20248
20310
|
id: "search",
|
|
20249
20311
|
placeholder: "Search by title or description...",
|
|
@@ -20263,7 +20325,7 @@ function Jh(t) {
|
|
|
20263
20325
|
className: "bg-primary hover:bg-primary/90",
|
|
20264
20326
|
onClick: () => o(!0),
|
|
20265
20327
|
children: [
|
|
20266
|
-
/* @__PURE__ */ e(
|
|
20328
|
+
/* @__PURE__ */ e(Ye, { className: "mr-2 h-4 w-4" }),
|
|
20267
20329
|
"Create Dashboard"
|
|
20268
20330
|
]
|
|
20269
20331
|
}
|
|
@@ -20359,7 +20421,7 @@ function Jh(t) {
|
|
|
20359
20421
|
className: "absolute bottom-2 left-2 h-11 w-11 rounded-full shadow-lg shadow-black/15",
|
|
20360
20422
|
onClick: () => o(!0),
|
|
20361
20423
|
"aria-label": "Create dashboard",
|
|
20362
|
-
children: /* @__PURE__ */ e(
|
|
20424
|
+
children: /* @__PURE__ */ e(Ye, { className: "h-5 w-5" })
|
|
20363
20425
|
}
|
|
20364
20426
|
)
|
|
20365
20427
|
] });
|