react-semaphor 0.0.638 → 0.0.639
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-5W-8O_Qh.js → dashboard-plus-BzuJFiIs.js} +256 -266
- package/dist/chunks/{dashboard-plus-Bj_iTMBj.js → dashboard-plus-Dyrdsjxq.js} +26 -31
- package/dist/chunks/{index-4GUQaF27.js → index-BEIz1z4E.js} +10664 -10584
- package/dist/chunks/{index-BLlyOT5d.js → index-BXnC5Vr5.js} +201 -199
- 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,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e, Fragment as K } from "react/jsx-runtime";
|
|
2
|
-
import { L as
|
|
2
|
+
import { L as ie, M as el, u as re, N as pa, O as fa, P as _, Q as ga, T as st, V as vn, I as Dt, W as We, X as ut, Y as tl, Z as ze, _ as mt, $ as ht, a0 as pt, a1 as kt, a2 as B, a3 as Ae, a4 as ea, a5 as ve, a6 as al, a7 as Sa, a8 as Vi, a9 as Tr, aa as yn, ab as U, ac as Nn, ad as ji, ae as sl, af as Bi, ag as nl, ah as ua, ai as Ne, j as Mr, aj as Gi, ak as $i, al as He, am as bn, an as Yi, ao as Is, ap as Bt, aq as Qt, ar as me, as as Pe, at as ft, au as rl, av as Ie, aw as ll, ax as Fa, ay as ka, az as zt, aA as Re, aB as ke, aC as dt, aD as Pa, aE as xa, aF as La, aG as Ui, aH as va, aI as nt, aJ as Ue, aK as qe, aL as as, aM as Qe, aN as tt, aO as Cn, aP as ks, aQ as na, aR as ss, aS as ns, aT as qi, aU as ya, aV as wn, aW as Sn, aX as kn, aY as Dn, R as Lt, aZ as il, a_ as Wi, a$ as Tn, b0 as rs, b1 as Mn, b2 as An, b3 as za, b4 as _a, b5 as Va, b6 as En, b7 as Os, b8 as In, b9 as ol, ba as cl, bb as On, bc as pe, bd as fe, be as ge, bf as xe, bg as ae, bh as dl, bi as ul, bj as Ki, bk as Ji, bl as Tt, bm as Hi, bn as Qi, bo as vt, bp as yt, bq as Me, br as it, bs as Gt, bt as ml, K as le, bu as Zi, bv as St, J as E, bw as Xi, bx as hl, by as Rn, bz as Fn, bA as Pn, bB as Ln, bC as zn, bD as _n, bE as Vn, bF as jn, bG as eo, bH as ja, bI as qt, bJ as Bn, bK as to, bL as Gn, bM as Rs, bN as ls, bO as is, bP as pl, bQ as ao, bR as Da, bS as Ds, bT as fl, bU as gl, bV as so, bW as bs, bX as no, bY as ro, bZ as lo, b_ as io, i as oo, b$ as xl, c0 as Wa, c1 as Mt, c2 as At, c3 as Et, c4 as $t, c5 as os, c6 as cs, c7 as ds, c8 as us, c9 as ia, ca as Ba, cb as Na, cc as Ta, cd as Ma, ce as _t, cf as ms, A as It, cg as vl, r as yl, q as Nl, l as Ct, ch as Be, ci as co, cj as ta, ck as Zt, cl as bl, cm as uo, k as Cl, cn as Ka, co as Wt, cp as mo, n as Xt, m as Rt, o as Ft, cq as an, cr as Fs, cs as Ps, ct as aa, x as Ar, cu as Ge, cv as Ls, cw as Cs, cx as Ja, cy as sn, cz as wl, cA as Sl, cB as $n, cC as ho, cD as po, cE as kl, cF as fo, cG as zs, cH as go, cI as Aa, cJ as xo, cK as vo, cL as nn, cM as Kt, cN as Je, cO as Jt, cP as yo, cQ as No, cR as Dl, cS as bo, cT as Yn, cU as Co, cV as Un, cW as qn, cX as wo, cY as Tl, cZ as Ml, c_ as So, c$ as ko, d0 as Ha, d1 as Do, d2 as Wn, d3 as To, d4 as Mo, d5 as Er, d6 as Ao, E as hs, b as Kn, d7 as Jn, d8 as Eo, d9 as Io, da as Hn, db as Oo, dc as Ro, dd as Fo, de as Al, df as Qn, dg as El, dh as Il, di as Ol, dj as Rl, dk as Fl, dl as Zn, dm as Xn, dn as Pl, dp as Ll, dq as zl, dr as er, ds as _s, dt as Vs, du as Po, dv as Lo, dw as zo, dx as _o, dy as Vo, dz as jo, dA as Bo, dB as ot, dC as ct, dD as be, dE as Ce, dF as we, dG as Ht, dH as Go, dI as $o, dJ as Yo, dK as Uo, dL as qo, y as Wo, dM as Ir, dN as _l, dO as Ko, dP as Jo, dQ as lt, dR as gs, dS as Or, dT as Ho, dU as Rr, dV as Fr, dW as Qo, dX as Zo, dY as Xo, dZ as ec, d_ as tr, d$ as ar, e0 as sr, e1 as Ga, e2 as nr, e3 as sa, e4 as tc, e5 as js, e6 as Vl, e7 as ac, e8 as sc, e9 as Pr, ea as nc, eb as rc, ec as lc, ed as ic, ee as oc, w as Lr, ef as zr, eg as cc, eh as dc, ei as rn, ej as uc, ek as mc, el as hc, em as pc, en as fc, eo as gc, ep as xc, eq as vc, er as yc, es as Nc, et as bc, eu as Cc, ev as wc, ew as Sc, ex as kc, ey as Dc, ez as Tc, eA as rr, eB as Us, eC as Mc, eD as Ac, eE as ln, eF as Ec, eG as ws, eH as Ss, eI as $a, eJ as Ic, eK as _r, eL as Oc, eM as on, eN as jl, eO as lr, eP as Bl, eQ as qs, eR as ir, eS as Rc, eT as Fc, eU as Pc, eV as Qa, eW as Lc, eX as zc, eY as cn, eZ as _c, e_ as Vc, e$ as jc, f0 as dn, f1 as un, f2 as Ts, f3 as Bc, f4 as Ea, f5 as Za, f6 as Gc, f7 as or, f8 as $c, f9 as Yc, fa as Uc, F as Gl, fb as qc, p as Wc, fc as Kc, B as Jc, fd as Hc, fe as Qc, S as Zc, ff as Xc, U as ed, fg as td, C as ad } from "./index-BEIz1z4E.js";
|
|
3
3
|
import * as la from "react";
|
|
4
4
|
import Ye, { useState as V, useEffect as Oe, useRef as Vt, useMemo as Le, useCallback as Te, Suspense as $l, useContext as cr } from "react";
|
|
5
5
|
import "react-dom";
|
|
@@ -9,7 +9,7 @@ import "react-dom";
|
|
|
9
9
|
* This source code is licensed under the ISC license.
|
|
10
10
|
* See the LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
|
-
const
|
|
12
|
+
const sd = ie("ArrowDown10", [
|
|
13
13
|
["path", { d: "m3 16 4 4 4-4", key: "1co6wj" }],
|
|
14
14
|
["path", { d: "M7 20V4", key: "1yoxec" }],
|
|
15
15
|
["path", { d: "M17 10V4h-2", key: "zcsr5x" }],
|
|
@@ -22,7 +22,7 @@ const ad = le("ArrowDown10", [
|
|
|
22
22
|
* This source code is licensed under the ISC license.
|
|
23
23
|
* See the LICENSE file in the root directory of this source tree.
|
|
24
24
|
*/
|
|
25
|
-
const
|
|
25
|
+
const nd = ie("ArrowDownZA", [
|
|
26
26
|
["path", { d: "m3 16 4 4 4-4", key: "1co6wj" }],
|
|
27
27
|
["path", { d: "M7 4v16", key: "1glfcx" }],
|
|
28
28
|
["path", { d: "M15 4h5l-5 6h5", key: "8asdl1" }],
|
|
@@ -35,7 +35,7 @@ const sd = le("ArrowDownZA", [
|
|
|
35
35
|
* This source code is licensed under the ISC license.
|
|
36
36
|
* See the LICENSE file in the root directory of this source tree.
|
|
37
37
|
*/
|
|
38
|
-
const
|
|
38
|
+
const rd = ie("ArrowLeftRight", [
|
|
39
39
|
["path", { d: "M8 3 4 7l4 4", key: "9rb6wj" }],
|
|
40
40
|
["path", { d: "M4 7h16", key: "6tx8e3" }],
|
|
41
41
|
["path", { d: "m16 21 4-4-4-4", key: "siv7j2" }],
|
|
@@ -47,7 +47,7 @@ const nd = le("ArrowLeftRight", [
|
|
|
47
47
|
* This source code is licensed under the ISC license.
|
|
48
48
|
* See the LICENSE file in the root directory of this source tree.
|
|
49
49
|
*/
|
|
50
|
-
const
|
|
50
|
+
const ld = ie("ArrowUp01", [
|
|
51
51
|
["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
|
|
52
52
|
["path", { d: "M7 4v16", key: "1glfcx" }],
|
|
53
53
|
["rect", { x: "15", y: "4", width: "4", height: "6", ry: "2", key: "1bwicg" }],
|
|
@@ -60,7 +60,7 @@ const rd = le("ArrowUp01", [
|
|
|
60
60
|
* This source code is licensed under the ISC license.
|
|
61
61
|
* See the LICENSE file in the root directory of this source tree.
|
|
62
62
|
*/
|
|
63
|
-
const
|
|
63
|
+
const id = ie("ArrowUpAZ", [
|
|
64
64
|
["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
|
|
65
65
|
["path", { d: "M7 4v16", key: "1glfcx" }],
|
|
66
66
|
["path", { d: "M20 8h-5", key: "1vsyxs" }],
|
|
@@ -73,7 +73,7 @@ const ld = le("ArrowUpAZ", [
|
|
|
73
73
|
* This source code is licensed under the ISC license.
|
|
74
74
|
* See the LICENSE file in the root directory of this source tree.
|
|
75
75
|
*/
|
|
76
|
-
const
|
|
76
|
+
const od = ie("Blocks", [
|
|
77
77
|
["rect", { width: "7", height: "7", x: "14", y: "3", rx: "1", key: "6d4xhi" }],
|
|
78
78
|
[
|
|
79
79
|
"path",
|
|
@@ -89,7 +89,7 @@ const id = le("Blocks", [
|
|
|
89
89
|
* This source code is licensed under the ISC license.
|
|
90
90
|
* See the LICENSE file in the root directory of this source tree.
|
|
91
91
|
*/
|
|
92
|
-
const
|
|
92
|
+
const cd = ie("BookOpenText", [
|
|
93
93
|
["path", { d: "M12 7v14", key: "1akyts" }],
|
|
94
94
|
["path", { d: "M16 12h2", key: "7q9ll5" }],
|
|
95
95
|
["path", { d: "M16 8h2", key: "msurwy" }],
|
|
@@ -109,7 +109,7 @@ const od = le("BookOpenText", [
|
|
|
109
109
|
* This source code is licensed under the ISC license.
|
|
110
110
|
* See the LICENSE file in the root directory of this source tree.
|
|
111
111
|
*/
|
|
112
|
-
const
|
|
112
|
+
const dd = ie("Box", [
|
|
113
113
|
[
|
|
114
114
|
"path",
|
|
115
115
|
{
|
|
@@ -126,7 +126,7 @@ const cd = le("Box", [
|
|
|
126
126
|
* This source code is licensed under the ISC license.
|
|
127
127
|
* See the LICENSE file in the root directory of this source tree.
|
|
128
128
|
*/
|
|
129
|
-
const
|
|
129
|
+
const ud = ie("Braces", [
|
|
130
130
|
[
|
|
131
131
|
"path",
|
|
132
132
|
{ d: "M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1", key: "ezmyqa" }
|
|
@@ -145,7 +145,7 @@ const dd = le("Braces", [
|
|
|
145
145
|
* This source code is licensed under the ISC license.
|
|
146
146
|
* See the LICENSE file in the root directory of this source tree.
|
|
147
147
|
*/
|
|
148
|
-
const Vr =
|
|
148
|
+
const Vr = ie("Building", [
|
|
149
149
|
["rect", { width: "16", height: "20", x: "4", y: "2", rx: "2", ry: "2", key: "76otgf" }],
|
|
150
150
|
["path", { d: "M9 22v-4h6v4", key: "r93iot" }],
|
|
151
151
|
["path", { d: "M8 6h.01", key: "1dz90k" }],
|
|
@@ -164,7 +164,7 @@ const Vr = le("Building", [
|
|
|
164
164
|
* This source code is licensed under the ISC license.
|
|
165
165
|
* See the LICENSE file in the root directory of this source tree.
|
|
166
166
|
*/
|
|
167
|
-
const ps =
|
|
167
|
+
const ps = ie("Calculator", [
|
|
168
168
|
["rect", { width: "16", height: "20", x: "4", y: "2", rx: "2", key: "1nb95v" }],
|
|
169
169
|
["line", { x1: "8", x2: "16", y1: "6", y2: "6", key: "x4nwl0" }],
|
|
170
170
|
["line", { x1: "16", x2: "16", y1: "14", y2: "18", key: "wjye3r" }],
|
|
@@ -182,7 +182,7 @@ const ps = le("Calculator", [
|
|
|
182
182
|
* This source code is licensed under the ISC license.
|
|
183
183
|
* See the LICENSE file in the root directory of this source tree.
|
|
184
184
|
*/
|
|
185
|
-
const
|
|
185
|
+
const md = ie("CircleCheckBig", [
|
|
186
186
|
["path", { d: "M21.801 10A10 10 0 1 1 17 3.335", key: "yps3ct" }],
|
|
187
187
|
["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
|
|
188
188
|
]);
|
|
@@ -192,7 +192,7 @@ const ud = le("CircleCheckBig", [
|
|
|
192
192
|
* This source code is licensed under the ISC license.
|
|
193
193
|
* See the LICENSE file in the root directory of this source tree.
|
|
194
194
|
*/
|
|
195
|
-
const
|
|
195
|
+
const hd = ie("CircleX", [
|
|
196
196
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
197
197
|
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
198
198
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
@@ -203,7 +203,7 @@ const md = le("CircleX", [
|
|
|
203
203
|
* This source code is licensed under the ISC license.
|
|
204
204
|
* See the LICENSE file in the root directory of this source tree.
|
|
205
205
|
*/
|
|
206
|
-
const Ia =
|
|
206
|
+
const Ia = ie("Code", [
|
|
207
207
|
["polyline", { points: "16 18 22 12 16 6", key: "z7tu5w" }],
|
|
208
208
|
["polyline", { points: "8 6 2 12 8 18", key: "1eg1df" }]
|
|
209
209
|
]);
|
|
@@ -213,7 +213,7 @@ const Ia = le("Code", [
|
|
|
213
213
|
* This source code is licensed under the ISC license.
|
|
214
214
|
* See the LICENSE file in the root directory of this source tree.
|
|
215
215
|
*/
|
|
216
|
-
const
|
|
216
|
+
const pd = ie("Columns3", [
|
|
217
217
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
218
218
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
219
219
|
["path", { d: "M15 3v18", key: "14nvp0" }]
|
|
@@ -224,7 +224,7 @@ const hd = le("Columns3", [
|
|
|
224
224
|
* This source code is licensed under the ISC license.
|
|
225
225
|
* See the LICENSE file in the root directory of this source tree.
|
|
226
226
|
*/
|
|
227
|
-
const
|
|
227
|
+
const fd = ie("Component", [
|
|
228
228
|
[
|
|
229
229
|
"path",
|
|
230
230
|
{
|
|
@@ -260,7 +260,7 @@ const pd = le("Component", [
|
|
|
260
260
|
* This source code is licensed under the ISC license.
|
|
261
261
|
* See the LICENSE file in the root directory of this source tree.
|
|
262
262
|
*/
|
|
263
|
-
const
|
|
263
|
+
const gd = ie("CopyPlus", [
|
|
264
264
|
["line", { x1: "15", x2: "15", y1: "12", y2: "18", key: "1p7wdc" }],
|
|
265
265
|
["line", { x1: "12", x2: "18", y1: "15", y2: "15", key: "1nscbv" }],
|
|
266
266
|
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
|
@@ -272,7 +272,7 @@ const fd = le("CopyPlus", [
|
|
|
272
272
|
* This source code is licensed under the ISC license.
|
|
273
273
|
* See the LICENSE file in the root directory of this source tree.
|
|
274
274
|
*/
|
|
275
|
-
const
|
|
275
|
+
const xd = ie("DatabaseZap", [
|
|
276
276
|
["ellipse", { cx: "12", cy: "5", rx: "9", ry: "3", key: "msslwz" }],
|
|
277
277
|
["path", { d: "M3 5V19A9 3 0 0 0 15 21.84", key: "14ibmq" }],
|
|
278
278
|
["path", { d: "M21 5V8", key: "1marbg" }],
|
|
@@ -285,7 +285,7 @@ const gd = le("DatabaseZap", [
|
|
|
285
285
|
* This source code is licensed under the ISC license.
|
|
286
286
|
* See the LICENSE file in the root directory of this source tree.
|
|
287
287
|
*/
|
|
288
|
-
const Yl =
|
|
288
|
+
const Yl = ie("Expand", [
|
|
289
289
|
["path", { d: "m21 21-6-6m6 6v-4.8m0 4.8h-4.8", key: "1c15vz" }],
|
|
290
290
|
["path", { d: "M3 16.2V21m0 0h4.8M3 21l6-6", key: "1fsnz2" }],
|
|
291
291
|
["path", { d: "M21 7.8V3m0 0h-4.8M21 3l-6 6", key: "hawz9i" }],
|
|
@@ -297,7 +297,7 @@ const Yl = le("Expand", [
|
|
|
297
297
|
* This source code is licensed under the ISC license.
|
|
298
298
|
* See the LICENSE file in the root directory of this source tree.
|
|
299
299
|
*/
|
|
300
|
-
const
|
|
300
|
+
const vd = ie("EyeClosed", [
|
|
301
301
|
["path", { d: "m15 18-.722-3.25", key: "1j64jw" }],
|
|
302
302
|
["path", { d: "M2 8a10.645 10.645 0 0 0 20 0", key: "1e7gxb" }],
|
|
303
303
|
["path", { d: "m20 15-1.726-2.05", key: "1cnuld" }],
|
|
@@ -310,7 +310,7 @@ const xd = le("EyeClosed", [
|
|
|
310
310
|
* This source code is licensed under the ISC license.
|
|
311
311
|
* See the LICENSE file in the root directory of this source tree.
|
|
312
312
|
*/
|
|
313
|
-
const
|
|
313
|
+
const yd = ie("FileCode2", [
|
|
314
314
|
["path", { d: "M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4", key: "1pf5j1" }],
|
|
315
315
|
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
|
|
316
316
|
["path", { d: "m5 12-3 3 3 3", key: "oke12k" }],
|
|
@@ -322,7 +322,7 @@ const vd = le("FileCode2", [
|
|
|
322
322
|
* This source code is licensed under the ISC license.
|
|
323
323
|
* See the LICENSE file in the root directory of this source tree.
|
|
324
324
|
*/
|
|
325
|
-
const
|
|
325
|
+
const Nd = ie("FileJson2", [
|
|
326
326
|
["path", { d: "M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4", key: "1pf5j1" }],
|
|
327
327
|
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
|
|
328
328
|
[
|
|
@@ -340,7 +340,7 @@ const yd = le("FileJson2", [
|
|
|
340
340
|
* This source code is licensed under the ISC license.
|
|
341
341
|
* See the LICENSE file in the root directory of this source tree.
|
|
342
342
|
*/
|
|
343
|
-
const
|
|
343
|
+
const bd = ie("Fingerprint", [
|
|
344
344
|
["path", { d: "M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4", key: "1nerag" }],
|
|
345
345
|
["path", { d: "M14 13.12c0 2.38 0 6.38-1 8.88", key: "o46ks0" }],
|
|
346
346
|
["path", { d: "M17.29 21.02c.12-.6.43-2.3.5-3.02", key: "ptglia" }],
|
|
@@ -357,7 +357,7 @@ const Nd = le("Fingerprint", [
|
|
|
357
357
|
* This source code is licensed under the ISC license.
|
|
358
358
|
* See the LICENSE file in the root directory of this source tree.
|
|
359
359
|
*/
|
|
360
|
-
const
|
|
360
|
+
const Cd = ie("GitCompareArrows", [
|
|
361
361
|
["circle", { cx: "5", cy: "6", r: "3", key: "1qnov2" }],
|
|
362
362
|
["path", { d: "M12 6h5a2 2 0 0 1 2 2v7", key: "1yj91y" }],
|
|
363
363
|
["path", { d: "m15 9-3-3 3-3", key: "1lwv8l" }],
|
|
@@ -371,7 +371,7 @@ const bd = le("GitCompareArrows", [
|
|
|
371
371
|
* This source code is licensed under the ISC license.
|
|
372
372
|
* See the LICENSE file in the root directory of this source tree.
|
|
373
373
|
*/
|
|
374
|
-
const
|
|
374
|
+
const wd = ie("Glasses", [
|
|
375
375
|
["circle", { cx: "6", cy: "15", r: "4", key: "vux9w4" }],
|
|
376
376
|
["circle", { cx: "18", cy: "15", r: "4", key: "18o8ve" }],
|
|
377
377
|
["path", { d: "M14 15a2 2 0 0 0-2-2 2 2 0 0 0-2 2", key: "1ag4bs" }],
|
|
@@ -384,7 +384,7 @@ const Cd = le("Glasses", [
|
|
|
384
384
|
* This source code is licensed under the ISC license.
|
|
385
385
|
* See the LICENSE file in the root directory of this source tree.
|
|
386
386
|
*/
|
|
387
|
-
const Bs =
|
|
387
|
+
const Bs = ie("Grid3x3", [
|
|
388
388
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
389
389
|
["path", { d: "M3 9h18", key: "1pudct" }],
|
|
390
390
|
["path", { d: "M3 15h18", key: "5xshup" }],
|
|
@@ -397,7 +397,7 @@ const Bs = le("Grid3x3", [
|
|
|
397
397
|
* This source code is licensed under the ISC license.
|
|
398
398
|
* See the LICENSE file in the root directory of this source tree.
|
|
399
399
|
*/
|
|
400
|
-
const
|
|
400
|
+
const Sd = ie("Hammer", [
|
|
401
401
|
["path", { d: "m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9", key: "eefl8a" }],
|
|
402
402
|
["path", { d: "m18 15 4-4", key: "16gjal" }],
|
|
403
403
|
[
|
|
@@ -414,7 +414,7 @@ const wd = le("Hammer", [
|
|
|
414
414
|
* This source code is licensed under the ISC license.
|
|
415
415
|
* See the LICENSE file in the root directory of this source tree.
|
|
416
416
|
*/
|
|
417
|
-
const jt =
|
|
417
|
+
const jt = ie("Hash", [
|
|
418
418
|
["line", { x1: "4", x2: "20", y1: "9", y2: "9", key: "4lhtct" }],
|
|
419
419
|
["line", { x1: "4", x2: "20", y1: "15", y2: "15", key: "vyu0kd" }],
|
|
420
420
|
["line", { x1: "10", x2: "8", y1: "3", y2: "21", key: "1ggp8o" }],
|
|
@@ -426,7 +426,7 @@ const jt = le("Hash", [
|
|
|
426
426
|
* This source code is licensed under the ISC license.
|
|
427
427
|
* See the LICENSE file in the root directory of this source tree.
|
|
428
428
|
*/
|
|
429
|
-
const
|
|
429
|
+
const kd = ie("LayoutList", [
|
|
430
430
|
["rect", { width: "7", height: "7", x: "3", y: "3", rx: "1", key: "1g98yp" }],
|
|
431
431
|
["rect", { width: "7", height: "7", x: "3", y: "14", rx: "1", key: "1bb6yr" }],
|
|
432
432
|
["path", { d: "M14 4h7", key: "3xa0d5" }],
|
|
@@ -440,7 +440,7 @@ const Sd = le("LayoutList", [
|
|
|
440
440
|
* This source code is licensed under the ISC license.
|
|
441
441
|
* See the LICENSE file in the root directory of this source tree.
|
|
442
442
|
*/
|
|
443
|
-
const
|
|
443
|
+
const Dd = ie("ListEnd", [
|
|
444
444
|
["path", { d: "M16 12H3", key: "1a2rj7" }],
|
|
445
445
|
["path", { d: "M16 6H3", key: "1wxfjs" }],
|
|
446
446
|
["path", { d: "M10 18H3", key: "13769t" }],
|
|
@@ -453,7 +453,7 @@ const kd = le("ListEnd", [
|
|
|
453
453
|
* This source code is licensed under the ISC license.
|
|
454
454
|
* See the LICENSE file in the root directory of this source tree.
|
|
455
455
|
*/
|
|
456
|
-
const
|
|
456
|
+
const Td = ie("ListStart", [
|
|
457
457
|
["path", { d: "M16 12H3", key: "1a2rj7" }],
|
|
458
458
|
["path", { d: "M16 18H3", key: "12xzn7" }],
|
|
459
459
|
["path", { d: "M10 6H3", key: "lf8lx7" }],
|
|
@@ -466,7 +466,7 @@ const Dd = le("ListStart", [
|
|
|
466
466
|
* This source code is licensed under the ISC license.
|
|
467
467
|
* See the LICENSE file in the root directory of this source tree.
|
|
468
468
|
*/
|
|
469
|
-
const
|
|
469
|
+
const Md = ie("ListX", [
|
|
470
470
|
["path", { d: "M11 12H3", key: "51ecnj" }],
|
|
471
471
|
["path", { d: "M16 6H3", key: "1wxfjs" }],
|
|
472
472
|
["path", { d: "M16 18H3", key: "12xzn7" }],
|
|
@@ -479,17 +479,7 @@ const Td = le("ListX", [
|
|
|
479
479
|
* This source code is licensed under the ISC license.
|
|
480
480
|
* See the LICENSE file in the root directory of this source tree.
|
|
481
481
|
*/
|
|
482
|
-
const
|
|
483
|
-
["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
|
|
484
|
-
["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
|
|
485
|
-
]);
|
|
486
|
-
/**
|
|
487
|
-
* @license lucide-react v0.453.0 - ISC
|
|
488
|
-
*
|
|
489
|
-
* This source code is licensed under the ISC license.
|
|
490
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
491
|
-
*/
|
|
492
|
-
const Ad = le("Logs", [
|
|
482
|
+
const Ad = ie("Logs", [
|
|
493
483
|
["path", { d: "M13 12h8", key: "h98zly" }],
|
|
494
484
|
["path", { d: "M13 18h8", key: "oe0vm4" }],
|
|
495
485
|
["path", { d: "M13 6h8", key: "15sg57" }],
|
|
@@ -506,7 +496,7 @@ const Ad = le("Logs", [
|
|
|
506
496
|
* This source code is licensed under the ISC license.
|
|
507
497
|
* See the LICENSE file in the root directory of this source tree.
|
|
508
498
|
*/
|
|
509
|
-
const Xa =
|
|
499
|
+
const Xa = ie("MapPin", [
|
|
510
500
|
[
|
|
511
501
|
"path",
|
|
512
502
|
{
|
|
@@ -522,7 +512,7 @@ const Xa = le("MapPin", [
|
|
|
522
512
|
* This source code is licensed under the ISC license.
|
|
523
513
|
* See the LICENSE file in the root directory of this source tree.
|
|
524
514
|
*/
|
|
525
|
-
const Ed =
|
|
515
|
+
const Ed = ie("Menu", [
|
|
526
516
|
["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }],
|
|
527
517
|
["line", { x1: "4", x2: "20", y1: "6", y2: "6", key: "1owob3" }],
|
|
528
518
|
["line", { x1: "4", x2: "20", y1: "18", y2: "18", key: "yk5zj1" }]
|
|
@@ -533,7 +523,7 @@ const Ed = le("Menu", [
|
|
|
533
523
|
* This source code is licensed under the ISC license.
|
|
534
524
|
* See the LICENSE file in the root directory of this source tree.
|
|
535
525
|
*/
|
|
536
|
-
const Id =
|
|
526
|
+
const Id = ie("MessageCircleMore", [
|
|
537
527
|
["path", { d: "M7.9 20A9 9 0 1 0 4 16.1L2 22Z", key: "vv11sd" }],
|
|
538
528
|
["path", { d: "M8 12h.01", key: "czm47f" }],
|
|
539
529
|
["path", { d: "M12 12h.01", key: "1mp3jc" }],
|
|
@@ -545,7 +535,7 @@ const Id = le("MessageCircleMore", [
|
|
|
545
535
|
* This source code is licensed under the ISC license.
|
|
546
536
|
* See the LICENSE file in the root directory of this source tree.
|
|
547
537
|
*/
|
|
548
|
-
const Od =
|
|
538
|
+
const Od = ie("MessageCircle", [
|
|
549
539
|
["path", { d: "M7.9 20A9 9 0 1 0 4 16.1L2 22Z", key: "vv11sd" }]
|
|
550
540
|
]);
|
|
551
541
|
/**
|
|
@@ -554,7 +544,7 @@ const Od = le("MessageCircle", [
|
|
|
554
544
|
* This source code is licensed under the ISC license.
|
|
555
545
|
* See the LICENSE file in the root directory of this source tree.
|
|
556
546
|
*/
|
|
557
|
-
const Rd =
|
|
547
|
+
const Rd = ie("MessageSquareWarning", [
|
|
558
548
|
["path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z", key: "1lielz" }],
|
|
559
549
|
["path", { d: "M12 7v2", key: "stiyo7" }],
|
|
560
550
|
["path", { d: "M12 13h.01", key: "y0uutt" }]
|
|
@@ -565,7 +555,7 @@ const Rd = le("MessageSquareWarning", [
|
|
|
565
555
|
* This source code is licensed under the ISC license.
|
|
566
556
|
* See the LICENSE file in the root directory of this source tree.
|
|
567
557
|
*/
|
|
568
|
-
const Fd =
|
|
558
|
+
const Fd = ie("Moon", [
|
|
569
559
|
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z", key: "a7tn18" }]
|
|
570
560
|
]);
|
|
571
561
|
/**
|
|
@@ -574,7 +564,7 @@ const Fd = le("Moon", [
|
|
|
574
564
|
* This source code is licensed under the ISC license.
|
|
575
565
|
* See the LICENSE file in the root directory of this source tree.
|
|
576
566
|
*/
|
|
577
|
-
const jr =
|
|
567
|
+
const jr = ie("MoveHorizontal", [
|
|
578
568
|
["path", { d: "m18 8 4 4-4 4", key: "1ak13k" }],
|
|
579
569
|
["path", { d: "M2 12h20", key: "9i4pu4" }],
|
|
580
570
|
["path", { d: "m6 8-4 4 4 4", key: "15zrgr" }]
|
|
@@ -585,7 +575,7 @@ const jr = le("MoveHorizontal", [
|
|
|
585
575
|
* This source code is licensed under the ISC license.
|
|
586
576
|
* See the LICENSE file in the root directory of this source tree.
|
|
587
577
|
*/
|
|
588
|
-
const Br =
|
|
578
|
+
const Br = ie("MoveVertical", [
|
|
589
579
|
["path", { d: "M12 2v20", key: "t6zp3m" }],
|
|
590
580
|
["path", { d: "m8 18 4 4 4-4", key: "bh5tu3" }],
|
|
591
581
|
["path", { d: "m8 6 4-4 4 4", key: "ybng9g" }]
|
|
@@ -596,7 +586,7 @@ const Br = le("MoveVertical", [
|
|
|
596
586
|
* This source code is licensed under the ISC license.
|
|
597
587
|
* See the LICENSE file in the root directory of this source tree.
|
|
598
588
|
*/
|
|
599
|
-
const Pd =
|
|
589
|
+
const Pd = ie("Network", [
|
|
600
590
|
["rect", { x: "16", y: "16", width: "6", height: "6", rx: "1", key: "4q2zg0" }],
|
|
601
591
|
["rect", { x: "2", y: "16", width: "6", height: "6", rx: "1", key: "8cvhb9" }],
|
|
602
592
|
["rect", { x: "9", y: "2", width: "6", height: "6", rx: "1", key: "1egb70" }],
|
|
@@ -609,7 +599,7 @@ const Pd = le("Network", [
|
|
|
609
599
|
* This source code is licensed under the ISC license.
|
|
610
600
|
* See the LICENSE file in the root directory of this source tree.
|
|
611
601
|
*/
|
|
612
|
-
const Ld =
|
|
602
|
+
const Ld = ie("Palette", [
|
|
613
603
|
["circle", { cx: "13.5", cy: "6.5", r: ".5", fill: "currentColor", key: "1okk4w" }],
|
|
614
604
|
["circle", { cx: "17.5", cy: "10.5", r: ".5", fill: "currentColor", key: "f64h9f" }],
|
|
615
605
|
["circle", { cx: "8.5", cy: "7.5", r: ".5", fill: "currentColor", key: "fotxhn" }],
|
|
@@ -628,7 +618,7 @@ const Ld = le("Palette", [
|
|
|
628
618
|
* This source code is licensed under the ISC license.
|
|
629
619
|
* See the LICENSE file in the root directory of this source tree.
|
|
630
620
|
*/
|
|
631
|
-
const zd =
|
|
621
|
+
const zd = ie("PenLine", [
|
|
632
622
|
["path", { d: "M12 20h9", key: "t2du7b" }],
|
|
633
623
|
[
|
|
634
624
|
"path",
|
|
@@ -644,7 +634,7 @@ const zd = le("PenLine", [
|
|
|
644
634
|
* This source code is licensed under the ISC license.
|
|
645
635
|
* See the LICENSE file in the root directory of this source tree.
|
|
646
636
|
*/
|
|
647
|
-
const _d =
|
|
637
|
+
const _d = ie("Plug", [
|
|
648
638
|
["path", { d: "M12 22v-5", key: "1ega77" }],
|
|
649
639
|
["path", { d: "M9 8V2", key: "14iosj" }],
|
|
650
640
|
["path", { d: "M15 8V2", key: "18g5xt" }],
|
|
@@ -656,7 +646,7 @@ const _d = le("Plug", [
|
|
|
656
646
|
* This source code is licensed under the ISC license.
|
|
657
647
|
* See the LICENSE file in the root directory of this source tree.
|
|
658
648
|
*/
|
|
659
|
-
const Ul =
|
|
649
|
+
const Ul = ie("RefreshCw", [
|
|
660
650
|
["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
|
|
661
651
|
["path", { d: "M21 3v5h-5", key: "1q7to0" }],
|
|
662
652
|
["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
|
|
@@ -668,7 +658,7 @@ const Ul = le("RefreshCw", [
|
|
|
668
658
|
* This source code is licensed under the ISC license.
|
|
669
659
|
* See the LICENSE file in the root directory of this source tree.
|
|
670
660
|
*/
|
|
671
|
-
const Vd =
|
|
661
|
+
const Vd = ie("Rows3", [
|
|
672
662
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
673
663
|
["path", { d: "M21 9H3", key: "1338ky" }],
|
|
674
664
|
["path", { d: "M21 15H3", key: "9uk58r" }]
|
|
@@ -679,7 +669,7 @@ const Vd = le("Rows3", [
|
|
|
679
669
|
* This source code is licensed under the ISC license.
|
|
680
670
|
* See the LICENSE file in the root directory of this source tree.
|
|
681
671
|
*/
|
|
682
|
-
const mn =
|
|
672
|
+
const mn = ie("Save", [
|
|
683
673
|
[
|
|
684
674
|
"path",
|
|
685
675
|
{
|
|
@@ -696,7 +686,7 @@ const mn = le("Save", [
|
|
|
696
686
|
* This source code is licensed under the ISC license.
|
|
697
687
|
* See the LICENSE file in the root directory of this source tree.
|
|
698
688
|
*/
|
|
699
|
-
const es =
|
|
689
|
+
const es = ie("Shapes", [
|
|
700
690
|
[
|
|
701
691
|
"path",
|
|
702
692
|
{
|
|
@@ -713,7 +703,7 @@ const es = le("Shapes", [
|
|
|
713
703
|
* This source code is licensed under the ISC license.
|
|
714
704
|
* See the LICENSE file in the root directory of this source tree.
|
|
715
705
|
*/
|
|
716
|
-
const wa =
|
|
706
|
+
const wa = ie("Share2", [
|
|
717
707
|
["circle", { cx: "18", cy: "5", r: "3", key: "gq8acd" }],
|
|
718
708
|
["circle", { cx: "6", cy: "12", r: "3", key: "w7nqdw" }],
|
|
719
709
|
["circle", { cx: "18", cy: "19", r: "3", key: "1xt0gg" }],
|
|
@@ -726,7 +716,7 @@ const wa = le("Share2", [
|
|
|
726
716
|
* This source code is licensed under the ISC license.
|
|
727
717
|
* See the LICENSE file in the root directory of this source tree.
|
|
728
718
|
*/
|
|
729
|
-
const jd =
|
|
719
|
+
const jd = ie("Share", [
|
|
730
720
|
["path", { d: "M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8", key: "1b2hhj" }],
|
|
731
721
|
["polyline", { points: "16 6 12 2 8 6", key: "m901s6" }],
|
|
732
722
|
["line", { x1: "12", x2: "12", y1: "2", y2: "15", key: "1p0rca" }]
|
|
@@ -737,7 +727,7 @@ const jd = le("Share", [
|
|
|
737
727
|
* This source code is licensed under the ISC license.
|
|
738
728
|
* See the LICENSE file in the root directory of this source tree.
|
|
739
729
|
*/
|
|
740
|
-
const Bd =
|
|
730
|
+
const Bd = ie("ShieldX", [
|
|
741
731
|
[
|
|
742
732
|
"path",
|
|
743
733
|
{
|
|
@@ -754,7 +744,7 @@ const Bd = le("ShieldX", [
|
|
|
754
744
|
* This source code is licensed under the ISC license.
|
|
755
745
|
* See the LICENSE file in the root directory of this source tree.
|
|
756
746
|
*/
|
|
757
|
-
const Gd =
|
|
747
|
+
const Gd = ie("Shrink", [
|
|
758
748
|
["path", { d: "m15 15 6 6m-6-6v4.8m0-4.8h4.8", key: "17vawe" }],
|
|
759
749
|
["path", { d: "M9 19.8V15m0 0H4.2M9 15l-6 6", key: "chjx8e" }],
|
|
760
750
|
["path", { d: "M15 4.2V9m0 0h4.8M15 9l6-6", key: "lav6yq" }],
|
|
@@ -766,7 +756,7 @@ const Gd = le("Shrink", [
|
|
|
766
756
|
* This source code is licensed under the ISC license.
|
|
767
757
|
* See the LICENSE file in the root directory of this source tree.
|
|
768
758
|
*/
|
|
769
|
-
const ql =
|
|
759
|
+
const ql = ie("Sigma", [
|
|
770
760
|
[
|
|
771
761
|
"path",
|
|
772
762
|
{
|
|
@@ -781,7 +771,7 @@ const ql = le("Sigma", [
|
|
|
781
771
|
* This source code is licensed under the ISC license.
|
|
782
772
|
* See the LICENSE file in the root directory of this source tree.
|
|
783
773
|
*/
|
|
784
|
-
const $d =
|
|
774
|
+
const $d = ie("SlidersHorizontal", [
|
|
785
775
|
["line", { x1: "21", x2: "14", y1: "4", y2: "4", key: "obuewd" }],
|
|
786
776
|
["line", { x1: "10", x2: "3", y1: "4", y2: "4", key: "1q6298" }],
|
|
787
777
|
["line", { x1: "21", x2: "12", y1: "12", y2: "12", key: "1iu8h1" }],
|
|
@@ -798,7 +788,7 @@ const $d = le("SlidersHorizontal", [
|
|
|
798
788
|
* This source code is licensed under the ISC license.
|
|
799
789
|
* See the LICENSE file in the root directory of this source tree.
|
|
800
790
|
*/
|
|
801
|
-
const Yd =
|
|
791
|
+
const Yd = ie("Square", [
|
|
802
792
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }]
|
|
803
793
|
]);
|
|
804
794
|
/**
|
|
@@ -807,7 +797,7 @@ const Yd = le("Square", [
|
|
|
807
797
|
* This source code is licensed under the ISC license.
|
|
808
798
|
* See the LICENSE file in the root directory of this source tree.
|
|
809
799
|
*/
|
|
810
|
-
const Ud =
|
|
800
|
+
const Ud = ie("Sun", [
|
|
811
801
|
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
812
802
|
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
813
803
|
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
@@ -824,7 +814,7 @@ const Ud = le("Sun", [
|
|
|
824
814
|
* This source code is licensed under the ISC license.
|
|
825
815
|
* See the LICENSE file in the root directory of this source tree.
|
|
826
816
|
*/
|
|
827
|
-
const Wl =
|
|
817
|
+
const Wl = ie("Tag", [
|
|
828
818
|
[
|
|
829
819
|
"path",
|
|
830
820
|
{
|
|
@@ -840,7 +830,7 @@ const Wl = le("Tag", [
|
|
|
840
830
|
* This source code is licensed under the ISC license.
|
|
841
831
|
* See the LICENSE file in the root directory of this source tree.
|
|
842
832
|
*/
|
|
843
|
-
const qd =
|
|
833
|
+
const qd = ie("Tags", [
|
|
844
834
|
["path", { d: "m15 5 6.3 6.3a2.4 2.4 0 0 1 0 3.4L17 19", key: "1cbfv1" }],
|
|
845
835
|
[
|
|
846
836
|
"path",
|
|
@@ -857,7 +847,7 @@ const qd = le("Tags", [
|
|
|
857
847
|
* This source code is licensed under the ISC license.
|
|
858
848
|
* See the LICENSE file in the root directory of this source tree.
|
|
859
849
|
*/
|
|
860
|
-
const Wd =
|
|
850
|
+
const Wd = ie("Terminal", [
|
|
861
851
|
["polyline", { points: "4 17 10 11 4 5", key: "akl6gq" }],
|
|
862
852
|
["line", { x1: "12", x2: "20", y1: "19", y2: "19", key: "q2wloq" }]
|
|
863
853
|
]);
|
|
@@ -867,7 +857,7 @@ const Wd = le("Terminal", [
|
|
|
867
857
|
* This source code is licensed under the ISC license.
|
|
868
858
|
* See the LICENSE file in the root directory of this source tree.
|
|
869
859
|
*/
|
|
870
|
-
const ma =
|
|
860
|
+
const ma = ie("ToggleLeft", [
|
|
871
861
|
["rect", { width: "20", height: "12", x: "2", y: "6", rx: "6", ry: "6", key: "f2vt7d" }],
|
|
872
862
|
["circle", { cx: "8", cy: "12", r: "2", key: "1nvbw3" }]
|
|
873
863
|
]);
|
|
@@ -877,7 +867,7 @@ const ma = le("ToggleLeft", [
|
|
|
877
867
|
* This source code is licensed under the ISC license.
|
|
878
868
|
* See the LICENSE file in the root directory of this source tree.
|
|
879
869
|
*/
|
|
880
|
-
const xt =
|
|
870
|
+
const xt = ie("Type", [
|
|
881
871
|
["polyline", { points: "4 7 4 4 20 4 20 7", key: "1nosan" }],
|
|
882
872
|
["line", { x1: "9", x2: "15", y1: "20", y2: "20", key: "swin9y" }],
|
|
883
873
|
["line", { x1: "12", x2: "12", y1: "4", y2: "20", key: "1tx1rr" }]
|
|
@@ -888,7 +878,7 @@ const xt = le("Type", [
|
|
|
888
878
|
* This source code is licensed under the ISC license.
|
|
889
879
|
* See the LICENSE file in the root directory of this source tree.
|
|
890
880
|
*/
|
|
891
|
-
const Kd =
|
|
881
|
+
const Kd = ie("View", [
|
|
892
882
|
["path", { d: "M21 17v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2", key: "mrq65r" }],
|
|
893
883
|
["path", { d: "M21 7V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2", key: "be3xqs" }],
|
|
894
884
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
@@ -1133,7 +1123,7 @@ function tu() {
|
|
|
1133
1123
|
}
|
|
1134
1124
|
}
|
|
1135
1125
|
return /* @__PURE__ */ a(pa, { open: t, onOpenChange: n, children: [
|
|
1136
|
-
/* @__PURE__ */ e(fa, { asChild: !0, children: /* @__PURE__ */ e(ve, { tooltip: "Lenses", className: "h-7 p-2", children: /* @__PURE__ */ e(
|
|
1126
|
+
/* @__PURE__ */ e(fa, { asChild: !0, children: /* @__PURE__ */ e(ve, { tooltip: "Lenses", className: "h-7 p-2", children: /* @__PURE__ */ e(wd, { className: "h-4 w-4" }) }) }),
|
|
1137
1127
|
/* @__PURE__ */ a(ga, { align: "end", className: "w-60", children: [
|
|
1138
1128
|
/* @__PURE__ */ e(al, { className: "px-3", children: "Lenses" }),
|
|
1139
1129
|
/* @__PURE__ */ e(Sa, {}),
|
|
@@ -1241,7 +1231,7 @@ function au({
|
|
|
1241
1231
|
"Download PDF"
|
|
1242
1232
|
] }),
|
|
1243
1233
|
/* @__PURE__ */ a(st, { onClick: () => s(!0), children: [
|
|
1244
|
-
/* @__PURE__ */ e(
|
|
1234
|
+
/* @__PURE__ */ e(Bi, { className: "mr-2 h-4 w-4" }),
|
|
1245
1235
|
"Download Protected PDF"
|
|
1246
1236
|
] })
|
|
1247
1237
|
] })
|
|
@@ -1322,11 +1312,11 @@ function su({
|
|
|
1322
1312
|
tooltip: "Schedule Dashboard",
|
|
1323
1313
|
className: U("h-7 p-2", t),
|
|
1324
1314
|
onClick: () => s(!0),
|
|
1325
|
-
children: /* @__PURE__ */ e(
|
|
1315
|
+
children: /* @__PURE__ */ e(Gi, { className: "size-4" })
|
|
1326
1316
|
}
|
|
1327
1317
|
),
|
|
1328
1318
|
/* @__PURE__ */ e(
|
|
1329
|
-
|
|
1319
|
+
$i,
|
|
1330
1320
|
{
|
|
1331
1321
|
open: n,
|
|
1332
1322
|
onOpenChange: s,
|
|
@@ -1371,7 +1361,7 @@ function nu({
|
|
|
1371
1361
|
formatDate: h
|
|
1372
1362
|
}) {
|
|
1373
1363
|
var S, N, T;
|
|
1374
|
-
const { selectVisual: f } = bn(), x =
|
|
1364
|
+
const { selectVisual: f } = bn(), x = Yi(t.id), { isConsoleMode: v } = Is(), p = re(
|
|
1375
1365
|
(b) => b.actions.setIsDashboardPanelOpen
|
|
1376
1366
|
), [y, g] = V(!1), [C, M] = V(!1);
|
|
1377
1367
|
Oe(() => {
|
|
@@ -2342,7 +2332,7 @@ function ei({
|
|
|
2342
2332
|
handleRemoveAccess: d,
|
|
2343
2333
|
handleUpdateAccess: u
|
|
2344
2334
|
}) {
|
|
2345
|
-
const m = Pa(), h = xa(), f = La(), x =
|
|
2335
|
+
const m = Pa(), h = xa(), f = La(), x = Ui(), v = va(), p = c || ((k) => {
|
|
2346
2336
|
const S = m.some((T) => T.id === k), N = h.includes(k);
|
|
2347
2337
|
S ? v.removeSelectedUser(k) : N ? v.removeUserFromRemove(k) : v.addSelectedUser({ id: k, role: "VIEWER" });
|
|
2348
2338
|
}), y = o || v.updateSelectedUserRole, g = d || v.addUserToRemove, C = u || ((k, S, N) => {
|
|
@@ -2546,7 +2536,7 @@ function pu({
|
|
|
2546
2536
|
),
|
|
2547
2537
|
(v || p) && /* @__PURE__ */ e(me, { variant: "destructive", className: "ml-2", children: "No Access" })
|
|
2548
2538
|
] }),
|
|
2549
|
-
/* @__PURE__ */ e(
|
|
2539
|
+
/* @__PURE__ */ e(qi, { children: v || p ? "No access for all users." : "This will share the dashboard with all users in your " + ((t == null ? void 0 : t.type) === "organization" ? "organization" : "tenant") + ". Select an access level below." })
|
|
2550
2540
|
] }),
|
|
2551
2541
|
/* @__PURE__ */ e(ya, { className: "space-y-4", children: /* @__PURE__ */ a("div", { className: "space-y-3", children: [
|
|
2552
2542
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
@@ -2665,7 +2655,7 @@ function Oa(t) {
|
|
|
2665
2655
|
users: o,
|
|
2666
2656
|
isLoading: d,
|
|
2667
2657
|
isError: u
|
|
2668
|
-
} = il(c), m =
|
|
2658
|
+
} = il(c), m = Wi(r, s);
|
|
2669
2659
|
return {
|
|
2670
2660
|
allUsers: o,
|
|
2671
2661
|
isLoadingUsers: d,
|
|
@@ -3527,7 +3517,7 @@ function vu({
|
|
|
3527
3517
|
] }) : null;
|
|
3528
3518
|
}
|
|
3529
3519
|
const ni = () => {
|
|
3530
|
-
const t = dl(), n = na(), s = Pa(), r = xa(), i = La(), l = za(), c = _a(), o = Va(), d = rs(), u = An(), m = In(), h = Os(), f = ul(), x = Le(() => () =>
|
|
3520
|
+
const t = dl(), n = na(), s = Pa(), r = xa(), i = La(), l = za(), c = _a(), o = Va(), d = rs(), u = An(), m = In(), h = Os(), f = ul(), x = Le(() => () => Ki({
|
|
3531
3521
|
currentContext: t,
|
|
3532
3522
|
currentMode: n,
|
|
3533
3523
|
selectedUsers: s,
|
|
@@ -3554,7 +3544,7 @@ const ni = () => {
|
|
|
3554
3544
|
m,
|
|
3555
3545
|
h,
|
|
3556
3546
|
f
|
|
3557
|
-
]), v = Le(() => (y) =>
|
|
3547
|
+
]), v = Le(() => (y) => Ji(y), []), p = Le(() => {
|
|
3558
3548
|
if (!t || !n)
|
|
3559
3549
|
return !1;
|
|
3560
3550
|
switch (t) {
|
|
@@ -4439,7 +4429,7 @@ function ur({
|
|
|
4439
4429
|
onRemoveSuccess: i
|
|
4440
4430
|
}) {
|
|
4441
4431
|
var w, D, R, L, F, O, j, X;
|
|
4442
|
-
const { currentUser: l } = Tt(), [c, o] = Ye.useState("specific_users"), [d, u] = Ye.useState("specific_users"), [m, h] = Ye.useState("specific_groups"), f = va(), x = Tn(), v = na(), p =
|
|
4432
|
+
const { currentUser: l } = Tt(), [c, o] = Ye.useState("specific_users"), [d, u] = Ye.useState("specific_users"), [m, h] = Ye.useState("specific_groups"), f = va(), x = Tn(), v = na(), p = Hi(), y = Qi(), { handleShareSubmit: g, handleRemoveAccess: C } = wu(
|
|
4443
4433
|
t.id,
|
|
4444
4434
|
(G, ne) => {
|
|
4445
4435
|
p.mutate(G, {
|
|
@@ -4762,7 +4752,7 @@ function Du(t, n, s, r, i) {
|
|
|
4762
4752
|
}
|
|
4763
4753
|
function Tu() {
|
|
4764
4754
|
var f;
|
|
4765
|
-
const { setCardSql: t } =
|
|
4755
|
+
const { setCardSql: t } = le(), n = E((x) => x.frame), s = E((x) => x.card), r = mr(
|
|
4766
4756
|
((f = s.customCardPreferences) == null ? void 0 : f.url) || ""
|
|
4767
4757
|
), i = E(
|
|
4768
4758
|
(x) => x.selectedSchemaName
|
|
@@ -4819,13 +4809,13 @@ function Tu() {
|
|
|
4819
4809
|
]) };
|
|
4820
4810
|
}
|
|
4821
4811
|
function hr() {
|
|
4822
|
-
const { authToken: t } = We(), n = Gt(), s = ml(), { selectVisual: r } = bn(), { setFrame: i, setCard: l } =
|
|
4812
|
+
const { authToken: t } = We(), n = Gt(), s = ml(), { selectVisual: r } = bn(), { setFrame: i, setCard: l } = le(), {
|
|
4823
4813
|
setIsDashboardEditing: c,
|
|
4824
4814
|
setIsVisualEditing: o,
|
|
4825
4815
|
setSelectedFrameId: d,
|
|
4826
4816
|
addFrame: u,
|
|
4827
4817
|
setIsDashboardPanelOpen: m
|
|
4828
|
-
} = Dt(), h = re((p) => p.selectedSheetId), f =
|
|
4818
|
+
} = Dt(), h = re((p) => p.selectedSheetId), f = Zi((s == null ? void 0 : s.id) || "", {
|
|
4829
4819
|
enabled: !!(s != null && s.id) && !!(t != null && t.accessToken)
|
|
4830
4820
|
}), x = Te(
|
|
4831
4821
|
async (p) => {
|
|
@@ -4915,7 +4905,7 @@ function Mu() {
|
|
|
4915
4905
|
duplicateResource: z,
|
|
4916
4906
|
isCreating: w,
|
|
4917
4907
|
isDeleting: D
|
|
4918
|
-
} =
|
|
4908
|
+
} = Xi(
|
|
4919
4909
|
() => {
|
|
4920
4910
|
x(!1), p(null);
|
|
4921
4911
|
},
|
|
@@ -5169,7 +5159,7 @@ function Au({
|
|
|
5169
5159
|
onDashboardItemClick: h
|
|
5170
5160
|
}) {
|
|
5171
5161
|
var S, N, T;
|
|
5172
|
-
const { selectDashboard: f } = bn(), x =
|
|
5162
|
+
const { selectDashboard: f } = bn(), x = eo(t.id), { isConsoleMode: v } = Is(), [p, y] = V(!1), [g, C] = V(!1), M = re(
|
|
5173
5163
|
(b) => b.actions.setIsDashboardPanelOpen
|
|
5174
5164
|
);
|
|
5175
5165
|
Oe(() => {
|
|
@@ -5345,7 +5335,7 @@ function Iu(t) {
|
|
|
5345
5335
|
duplicateResource: L,
|
|
5346
5336
|
isCreating: F,
|
|
5347
5337
|
isDeleting: O
|
|
5348
|
-
} =
|
|
5338
|
+
} = to(
|
|
5349
5339
|
() => {
|
|
5350
5340
|
v(!1);
|
|
5351
5341
|
const J = p == null ? void 0 : p.id;
|
|
@@ -5874,7 +5864,7 @@ function Gu({
|
|
|
5874
5864
|
group: s,
|
|
5875
5865
|
onUpdate: r
|
|
5876
5866
|
}) {
|
|
5877
|
-
const [i, l] = V("members"), [c, o] = V(""), [d, u] = V([]), [m, h] = V([]), { data: f, isLoading: x, refetch: v } =
|
|
5867
|
+
const [i, l] = V("members"), [c, o] = V(""), [d, u] = V([]), [m, h] = V([]), { data: f, isLoading: x, refetch: v } = ao(s.id), p = s.type === "TENANT_GROUP" ? "tenant" : "organization", { users: y, isLoading: g } = il({
|
|
5878
5868
|
type: p,
|
|
5879
5869
|
tenantId: s.tenantId || void 0,
|
|
5880
5870
|
active: !0,
|
|
@@ -6105,7 +6095,7 @@ function Uu({
|
|
|
6105
6095
|
open: t,
|
|
6106
6096
|
onOpenChange: n
|
|
6107
6097
|
}) {
|
|
6108
|
-
const [s, r] = V("groups"), [i, l] = V(""), [c, o] = V(null), [d, u] = V(!1), [m, h] = V(null), { tokenProps: f } = We(), { currentUser: x } = Tt(), v = _u(), p = (x == null ? void 0 : x.type) === "tenant", y = f == null ? void 0 : f.tenantId, { groups: g, isLoading: C, refetch: M } =
|
|
6098
|
+
const [s, r] = V("groups"), [i, l] = V(""), [c, o] = V(null), [d, u] = V(!1), [m, h] = V(null), { tokenProps: f } = We(), { currentUser: x } = Tt(), v = _u(), p = (x == null ? void 0 : x.type) === "tenant", y = f == null ? void 0 : f.tenantId, { groups: g, isLoading: C, refetch: M } = so({
|
|
6109
6099
|
type: p ? "TENANT_GROUP" : "all",
|
|
6110
6100
|
tenantId: p ? y : void 0,
|
|
6111
6101
|
includeMembers: !1
|
|
@@ -6284,7 +6274,7 @@ function Wu() {
|
|
|
6284
6274
|
authToken: t,
|
|
6285
6275
|
tokenProps: n,
|
|
6286
6276
|
id: s
|
|
6287
|
-
} = We(), { isLocalDev: r } = Is(), { permissions: i } = Bn(), l =
|
|
6277
|
+
} = We(), { isLocalDev: r } = Is(), { permissions: i } = Bn(), l = no();
|
|
6288
6278
|
re((Q) => Q.theme);
|
|
6289
6279
|
const c = re((Q) => Q.lenses), o = re((Q) => Q.selectedLensId), d = c == null ? void 0 : c.find((Q) => Q.id === o), u = re((Q) => Q.dashboard);
|
|
6290
6280
|
re((Q) => Q.selectedSheetId);
|
|
@@ -6306,7 +6296,7 @@ function Wu() {
|
|
|
6306
6296
|
(Q) => Q.actions
|
|
6307
6297
|
), { getSelectedSheet: L, setIsDashboardEditing: F, setShowDashboardJSON: O } = re((Q) => Q.actions), j = L(), { setInitialDashboard: X, clearSelectedDashboard: G } = qt(
|
|
6308
6298
|
(Q) => Q.actions
|
|
6309
|
-
), { resources: ne } =
|
|
6299
|
+
), { resources: ne } = ro(Lt.DASHBOARD), { currentUser: ue } = Tt(), ee = lo(ue), Z = N || T, W = Z ? {
|
|
6310
6300
|
id: Z.id,
|
|
6311
6301
|
title: (u == null ? void 0 : u.title) || Z.title || "Dashboard"
|
|
6312
6302
|
} : null;
|
|
@@ -6364,7 +6354,7 @@ function Wu() {
|
|
|
6364
6354
|
D(j.id, Fe), R(Fe.id);
|
|
6365
6355
|
}, ye = () => {
|
|
6366
6356
|
F(!0);
|
|
6367
|
-
}, [q, J] = V(!1), Se =
|
|
6357
|
+
}, [q, J] = V(!1), Se = io(Lt.DASHBOARD);
|
|
6368
6358
|
async function Ee() {
|
|
6369
6359
|
const Q = hn(
|
|
6370
6360
|
u
|
|
@@ -6438,7 +6428,7 @@ function Wu() {
|
|
|
6438
6428
|
ve,
|
|
6439
6429
|
{
|
|
6440
6430
|
tooltip: "Invalidate Token",
|
|
6441
|
-
onClick:
|
|
6431
|
+
onClick: oo,
|
|
6442
6432
|
className: "h-7 p-2",
|
|
6443
6433
|
children: /* @__PURE__ */ e(Bd, { className: "h-4 w-4" })
|
|
6444
6434
|
}
|
|
@@ -6699,7 +6689,7 @@ function Ua({
|
|
|
6699
6689
|
if (t === "Table")
|
|
6700
6690
|
return /* @__PURE__ */ e(ms, { className: "size-4" });
|
|
6701
6691
|
if (t === "Model")
|
|
6702
|
-
return /* @__PURE__ */ e(
|
|
6692
|
+
return /* @__PURE__ */ e(dd, { className: "size-4" });
|
|
6703
6693
|
}
|
|
6704
6694
|
function x() {
|
|
6705
6695
|
return /* @__PURE__ */ a(pe, { disabled: u, value: h, onValueChange: c, children: [
|
|
@@ -6862,7 +6852,7 @@ function Ws({
|
|
|
6862
6852
|
);
|
|
6863
6853
|
}
|
|
6864
6854
|
function Qu({ id: t, children: n, type: s = "column" }) {
|
|
6865
|
-
const { attributes: r, listeners: i, setNodeRef: l, transform: c } =
|
|
6855
|
+
const { attributes: r, listeners: i, setNodeRef: l, transform: c } = co({
|
|
6866
6856
|
id: t,
|
|
6867
6857
|
data: { type: s }
|
|
6868
6858
|
// Tag as a column from the left-hand side
|
|
@@ -6993,14 +6983,14 @@ function Xu() {
|
|
|
6993
6983
|
setPreviewMetricColumns: u,
|
|
6994
6984
|
setPreviewFilterColumns: m,
|
|
6995
6985
|
setPreviewPivotColumns: h
|
|
6996
|
-
} =
|
|
6986
|
+
} = uo(), {
|
|
6997
6987
|
setGroupByColumns: f,
|
|
6998
6988
|
setMetricColumns: x,
|
|
6999
6989
|
setFilterColumns: v,
|
|
7000
6990
|
setOrderByColumns: p,
|
|
7001
6991
|
setPivotByColumns: y
|
|
7002
|
-
} =
|
|
7003
|
-
Wt(
|
|
6992
|
+
} = le(), { columns: g } = Cl(), { formattedTableName: C } = It(), M = Ka(
|
|
6993
|
+
Wt(mo, {
|
|
7004
6994
|
activationConstraint: {
|
|
7005
6995
|
distance: 1
|
|
7006
6996
|
}
|
|
@@ -7321,7 +7311,7 @@ function tm({
|
|
|
7321
7311
|
setRunSql: C,
|
|
7322
7312
|
setSqlGen: M,
|
|
7323
7313
|
setIsShowingVisual: I
|
|
7324
|
-
} =
|
|
7314
|
+
} = le(), { connectionType: k, modelItems: S, selectedDatamodelName: N } = It();
|
|
7325
7315
|
function T(O) {
|
|
7326
7316
|
var j;
|
|
7327
7317
|
if (u) {
|
|
@@ -7554,7 +7544,7 @@ function li({
|
|
|
7554
7544
|
(oe) => oe.selectedDatabaseName
|
|
7555
7545
|
), u = E(
|
|
7556
7546
|
(oe) => oe.selectedSchemaName
|
|
7557
|
-
), m = E((oe) => oe.selectedTableName), h = E((oe) => oe.isDevMode), { setSelectedTableName: f, setIsDevMode: x, setCardSql: v } =
|
|
7547
|
+
), m = E((oe) => oe.selectedTableName), h = E((oe) => oe.isDevMode), { setSelectedTableName: f, setIsDevMode: x, setCardSql: v } = le(), {
|
|
7558
7548
|
connectionItems: p,
|
|
7559
7549
|
modelItems: y,
|
|
7560
7550
|
schemaItems: g,
|
|
@@ -7861,7 +7851,7 @@ function oi({
|
|
|
7861
7851
|
errorSql: s,
|
|
7862
7852
|
onDebugWithAssistant: r
|
|
7863
7853
|
}) {
|
|
7864
|
-
const i = E((u) => u.isDevMode), { setIsDevMode: l, setCardSql: c, setRunSql: o } =
|
|
7854
|
+
const i = E((u) => u.isDevMode), { setIsDevMode: l, setCardSql: c, setRunSql: o } = le();
|
|
7865
7855
|
function d() {
|
|
7866
7856
|
l(!i), c(t), setTimeout(() => {
|
|
7867
7857
|
o(!0);
|
|
@@ -7880,7 +7870,7 @@ function oi({
|
|
|
7880
7870
|
!n && t && /* @__PURE__ */ e("div", { className: "flex flex-col space-y-1.5", children: /* @__PURE__ */ e("div", { className: "", children: /* @__PURE__ */ e($n, { code: t, language: "sql" }) }) })
|
|
7881
7871
|
] }),
|
|
7882
7872
|
!i && t && !n && /* @__PURE__ */ a(_, { onClick: d, variant: "secondary", size: "sm", children: [
|
|
7883
|
-
/* @__PURE__ */ e(
|
|
7873
|
+
/* @__PURE__ */ e(yd, { className: "mr-2 h-4 w-4" }),
|
|
7884
7874
|
"View in SQL Editor"
|
|
7885
7875
|
] }),
|
|
7886
7876
|
n && r && /* @__PURE__ */ a(
|
|
@@ -7890,7 +7880,7 @@ function oi({
|
|
|
7890
7880
|
size: "sm",
|
|
7891
7881
|
variant: "outline",
|
|
7892
7882
|
children: [
|
|
7893
|
-
/* @__PURE__ */ e(
|
|
7883
|
+
/* @__PURE__ */ e(Sd, { className: "mr-2 h-4 w-4" }),
|
|
7894
7884
|
"Debug with Assistant"
|
|
7895
7885
|
]
|
|
7896
7886
|
}
|
|
@@ -7904,7 +7894,7 @@ function ci({
|
|
|
7904
7894
|
onDebugWithAssistant: r
|
|
7905
7895
|
}) {
|
|
7906
7896
|
return /* @__PURE__ */ a(wn, { openDelay: n ? 0 : 500, children: [
|
|
7907
|
-
/* @__PURE__ */ e(Sn, { asChild: !0, children: /* @__PURE__ */ e(_, { variant: "link", className: "h-5 p-0", children: n ? /* @__PURE__ */ e(
|
|
7897
|
+
/* @__PURE__ */ e(Sn, { asChild: !0, children: /* @__PURE__ */ e(_, { variant: "link", className: "h-5 p-0", children: n ? /* @__PURE__ */ e(hd, { className: "h-4 w-4 text-red-500" }) : /* @__PURE__ */ e(as, { className: "h-4 w-4 text-muted-foreground" }) }) }),
|
|
7908
7898
|
/* @__PURE__ */ e(kn, { align: "start", className: "flex w-[700px]", children: /* @__PURE__ */ e(
|
|
7909
7899
|
oi,
|
|
7910
7900
|
{
|
|
@@ -7917,10 +7907,10 @@ function ci({
|
|
|
7917
7907
|
] });
|
|
7918
7908
|
}
|
|
7919
7909
|
function am(t) {
|
|
7920
|
-
return
|
|
7910
|
+
return ho({ attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M439.8 200.5c-7.7-30.9-22.3-54.2-53.4-54.2h-40.1v47.4c0 36.8-31.2 67.8-66.8 67.8H172.7c-29.2 0-53.4 25-53.4 54.3v101.8c0 29 25.2 46 53.4 54.3 33.8 9.9 66.3 11.7 106.8 0 26.9-7.8 53.4-23.5 53.4-54.3v-40.7H226.2v-13.6h160.2c31.1 0 42.6-21.7 53.4-54.2 11.2-33.5 10.7-65.7 0-108.6zM286.2 404c11.1 0 20.1 9.1 20.1 20.3 0 11.3-9 20.4-20.1 20.4-11 0-20.1-9.2-20.1-20.4.1-11.3 9.1-20.3 20.1-20.3zM167.8 248.1h106.8c29.7 0 53.4-24.5 53.4-54.3V91.9c0-29-24.4-50.7-53.4-55.6-35.8-5.9-74.7-5.6-106.8.1-45.2 8-53.4 24.7-53.4 55.6v40.7h106.9v13.6h-147c-31.1 0-58.3 18.7-66.8 54.2-9.8 40.7-10.2 66.1 0 108.6 7.6 31.6 25.7 54.2 56.8 54.2H101v-48.8c0-35.3 30.5-66.4 66.8-66.4zm-6.7-142.6c-11.1 0-20.1-9.1-20.1-20.3.1-11.3 9-20.4 20.1-20.4 11 0 20.1 9.2 20.1 20.4s-9 20.3-20.1 20.3z" }, child: [] }] })(t);
|
|
7921
7911
|
}
|
|
7922
7912
|
function di(t) {
|
|
7923
|
-
const { theme: n } = el(), s = re((p) => p.theme), r = E((p) => p.frame), i = E((p) => p.card), l = E((p) => p.activeTabCardId), c =
|
|
7913
|
+
const { theme: n } = el(), s = re((p) => p.theme), r = E((p) => p.frame), i = E((p) => p.card), l = E((p) => p.activeTabCardId), c = po(), { refetch: o } = Ge(i), { updateCardTab: d, setRunSql: u } = le(), m = Vt(), h = Vt({}), f = r.cards.find((p) => p.id === l), x = Te(() => {
|
|
7924
7914
|
let p = "";
|
|
7925
7915
|
return t === "python" && (p = (f == null ? void 0 : f.python) || kl), t === "sql" && (p = (f == null ? void 0 : f.sql) || ""), p;
|
|
7926
7916
|
}, [t, f]);
|
|
@@ -7955,7 +7945,7 @@ function di(t) {
|
|
|
7955
7945
|
inherit: !0,
|
|
7956
7946
|
rules: [],
|
|
7957
7947
|
colors: {
|
|
7958
|
-
"editor.background": y === "light" ? "#ffffff" :
|
|
7948
|
+
"editor.background": y === "light" ? "#ffffff" : fo("240 10% 10%")
|
|
7959
7949
|
// 'editor.background':
|
|
7960
7950
|
// activeTheme === 'light'
|
|
7961
7951
|
// ? '#ffffff'
|
|
@@ -7981,9 +7971,9 @@ function di(t) {
|
|
|
7981
7971
|
return { handleEditorDidMount: v };
|
|
7982
7972
|
}
|
|
7983
7973
|
function sm() {
|
|
7984
|
-
const t = E((c) => c.card.sql), n = E((c) => c.sqlGen), { setCardSql: s, setSqlGen: r } =
|
|
7974
|
+
const t = E((c) => c.card.sql), n = E((c) => c.sqlGen), { setCardSql: s, setSqlGen: r } = le(), { handleEditorDidMount: i } = di("sql");
|
|
7985
7975
|
function l(c) {
|
|
7986
|
-
s(c),
|
|
7976
|
+
s(c), go(n) || r({});
|
|
7987
7977
|
}
|
|
7988
7978
|
return /* @__PURE__ */ a("div", { className: "relative h-full w-full", children: [
|
|
7989
7979
|
!t && /* @__PURE__ */ e("div", { className: "pointer-events-none absolute left-[65px] top-3 z-10 font-mono text-sm text-muted-foreground", children: "Write your SQL here" }),
|
|
@@ -8013,7 +8003,7 @@ function sm() {
|
|
|
8013
8003
|
] });
|
|
8014
8004
|
}
|
|
8015
8005
|
function nm() {
|
|
8016
|
-
const t = E((i) => i.card.python), { setCardPython: n } =
|
|
8006
|
+
const t = E((i) => i.card.python), { setCardPython: n } = le(), { handleEditorDidMount: s } = di("python");
|
|
8017
8007
|
function r(i) {
|
|
8018
8008
|
n(i);
|
|
8019
8009
|
}
|
|
@@ -8071,7 +8061,7 @@ function fr({
|
|
|
8071
8061
|
variant: t = "outline"
|
|
8072
8062
|
}) {
|
|
8073
8063
|
var c;
|
|
8074
|
-
const { setCardSql: n } =
|
|
8064
|
+
const { setCardSql: n } = le();
|
|
8075
8065
|
E((o) => o.frame);
|
|
8076
8066
|
const s = E((o) => o.card);
|
|
8077
8067
|
mr(
|
|
@@ -8107,7 +8097,7 @@ function fr({
|
|
|
8107
8097
|
function lm() {
|
|
8108
8098
|
const t = Gt(), [n, s] = V(!1), r = re(
|
|
8109
8099
|
(u) => u.actions.setIsDashboardPanelOpen
|
|
8110
|
-
), { setIsVisualEditing: i } = Dt(), { getUpdatedFrame: l } = hr(), c = ml(), o =
|
|
8100
|
+
), { setIsVisualEditing: i } = Dt(), { getUpdatedFrame: l } = hr(), c = ml(), o = xo();
|
|
8111
8101
|
return /* @__PURE__ */ a(_, { onClick: () => {
|
|
8112
8102
|
const u = l();
|
|
8113
8103
|
if (!(c != null && c.id)) {
|
|
@@ -8145,7 +8135,7 @@ function lm() {
|
|
|
8145
8135
|
] });
|
|
8146
8136
|
}
|
|
8147
8137
|
function gr() {
|
|
8148
|
-
const { setTempQueryData: t, setSqlGen: n } =
|
|
8138
|
+
const { setTempQueryData: t, setSqlGen: n } = le(), s = Gt(), r = E((d) => d.tempQueryData), i = E((d) => d.onClose), l = E((d) => d.card), { queryKey: c } = Ge(l);
|
|
8149
8139
|
function o() {
|
|
8150
8140
|
if (r) {
|
|
8151
8141
|
const { queryKey: d, queryData: u } = r;
|
|
@@ -8168,7 +8158,7 @@ function gr() {
|
|
|
8168
8158
|
);
|
|
8169
8159
|
}
|
|
8170
8160
|
function Gs() {
|
|
8171
|
-
const { setTempQueryData: t } =
|
|
8161
|
+
const { setTempQueryData: t } = le(), n = Gt(), s = E((y) => y.isDevMode), r = E((y) => y.tempQueryData), i = E((y) => y.card), { queryKey: l } = Ge(i), {
|
|
8172
8162
|
setCardSql: c,
|
|
8173
8163
|
setSqlGen: o,
|
|
8174
8164
|
setCardPython: d,
|
|
@@ -8178,7 +8168,7 @@ function Gs() {
|
|
|
8178
8168
|
clearQueryConfig: f,
|
|
8179
8169
|
setCardConfig: x,
|
|
8180
8170
|
setCardType: v
|
|
8181
|
-
} =
|
|
8171
|
+
} = le();
|
|
8182
8172
|
function p() {
|
|
8183
8173
|
const y = n.getQueryData(l);
|
|
8184
8174
|
r != null && r.queryData || t({
|
|
@@ -8221,7 +8211,7 @@ function im() {
|
|
|
8221
8211
|
}), d = E((G) => {
|
|
8222
8212
|
var ne;
|
|
8223
8213
|
return (ne = G == null ? void 0 : G.card) == null ? void 0 : ne.python;
|
|
8224
|
-
}), { sheetFilterValues: u } =
|
|
8214
|
+
}), { sheetFilterValues: u } = vo(), {
|
|
8225
8215
|
setCardCustomCfg: m,
|
|
8226
8216
|
setQueryResultColumns: h,
|
|
8227
8217
|
setCardSql: f,
|
|
@@ -8233,7 +8223,7 @@ function im() {
|
|
|
8233
8223
|
setCardPython: g,
|
|
8234
8224
|
runAssistant: C,
|
|
8235
8225
|
setShowAIDialog: M
|
|
8236
|
-
} =
|
|
8226
|
+
} = le();
|
|
8237
8227
|
E((G) => G.onSave), E((G) => G.onClose), E((G) => G.actions.setSqlGen);
|
|
8238
8228
|
const I = E((G) => G.runSql), k = E((G) => G.actions.setRunSql), S = E(
|
|
8239
8229
|
(G) => G.actions.setIsSqlRunning
|
|
@@ -8393,7 +8383,7 @@ ${d}` : ""}
|
|
|
8393
8383
|
className: "h-8 shrink-0",
|
|
8394
8384
|
size: "sm",
|
|
8395
8385
|
children: [
|
|
8396
|
-
T || b ? /* @__PURE__ */ e(Ie, { className: "mr-2 h-4 w-4 animate-spin" }) : /* @__PURE__ */ e(
|
|
8386
|
+
T || b ? /* @__PURE__ */ e(Ie, { className: "mr-2 h-4 w-4 animate-spin" }) : /* @__PURE__ */ e(yo, { className: "mr-2 h-4 w-4" }),
|
|
8397
8387
|
"Run"
|
|
8398
8388
|
]
|
|
8399
8389
|
}
|
|
@@ -8409,7 +8399,7 @@ ${d}` : ""}
|
|
|
8409
8399
|
),
|
|
8410
8400
|
/* @__PURE__ */ e(Gs, {}),
|
|
8411
8401
|
/* @__PURE__ */ e(
|
|
8412
|
-
|
|
8402
|
+
No,
|
|
8413
8403
|
{
|
|
8414
8404
|
pressed: n,
|
|
8415
8405
|
onPressedChange: (G) => s(G),
|
|
@@ -8463,7 +8453,7 @@ const om = [
|
|
|
8463
8453
|
{ value: "pivotTable", label: "Pivot", icon: Bs }
|
|
8464
8454
|
];
|
|
8465
8455
|
function cm({ className: t }) {
|
|
8466
|
-
const n = E((d) => d.card), { setCardType: s, setCard: r, updateCardInFrame: i } =
|
|
8456
|
+
const n = E((d) => d.card), { setCardType: s, setCard: r, updateCardInFrame: i } = le(), l = ["table", "aggregateTable", "pivotTable"].includes(
|
|
8467
8457
|
n.type
|
|
8468
8458
|
), c = Dl(n.config);
|
|
8469
8459
|
if (!l || !c)
|
|
@@ -8527,11 +8517,11 @@ function dm({ card: t }) {
|
|
|
8527
8517
|
var C, M, I, k, S, N, T, b, P, A, z;
|
|
8528
8518
|
const [n, s] = V(!1), [r, i] = V(
|
|
8529
8519
|
[]
|
|
8530
|
-
), { authToken: l } = We(), c =
|
|
8520
|
+
), { authToken: l } = We(), c = bo(l == null ? void 0 : l.accessToken), o = re((w) => w.themeStyle), d = {
|
|
8531
8521
|
colors: ((M = (C = o == null ? void 0 : o.chart) == null ? void 0 : C.dataset) == null ? void 0 : M.backgroundColor) || []
|
|
8532
8522
|
};
|
|
8533
8523
|
(I = t.customCardPreferences) != null && I.inputData;
|
|
8534
|
-
const { getCard: u } = Yn(((k = t.customCardPreferences) == null ? void 0 : k.url) || ""), m = ((S = t.customCardPreferences) == null ? void 0 : S.visualType) || "single", h = E((w) => w.frame), { setCustomCardPreferences: f } =
|
|
8524
|
+
const { getCard: u } = Yn(((k = t.customCardPreferences) == null ? void 0 : k.url) || ""), m = ((S = t.customCardPreferences) == null ? void 0 : S.visualType) || "single", h = E((w) => w.frame), { setCustomCardPreferences: f } = le(), { data: x } = Ge(t), v = Te((w, D) => {
|
|
8535
8525
|
i((R) => ({
|
|
8536
8526
|
...R,
|
|
8537
8527
|
[w]: D
|
|
@@ -8578,7 +8568,7 @@ function dm({ card: t }) {
|
|
|
8578
8568
|
);
|
|
8579
8569
|
if (R)
|
|
8580
8570
|
return /* @__PURE__ */ e(
|
|
8581
|
-
|
|
8571
|
+
Co,
|
|
8582
8572
|
{
|
|
8583
8573
|
onLoadingStatus: y,
|
|
8584
8574
|
onDataChange: v,
|
|
@@ -8615,7 +8605,7 @@ function ui({
|
|
|
8615
8605
|
...n
|
|
8616
8606
|
}) {
|
|
8617
8607
|
var T;
|
|
8618
|
-
const s = E((b) => b.card), r = Un(s), i = ((T = s.customCardPreferences) == null ? void 0 : T.showCardHeader) ?? !0, l = E((b) => b.frame), c = re((b) => b.dashboard.filters), o = E((b) => b.actions.setRunSql), { updateFilter: d } = Dt(), u = c == null ? void 0 : c.find((b) => b.id === l.filterId), { data: m, isLoading: h, isFetching: f, errorMessage: x, pagination: v } = Ge(s), { setCard: p, updateCardInFrame: y } =
|
|
8608
|
+
const s = E((b) => b.card), r = Un(s), i = ((T = s.customCardPreferences) == null ? void 0 : T.showCardHeader) ?? !0, l = E((b) => b.frame), c = re((b) => b.dashboard.filters), o = E((b) => b.actions.setRunSql), { updateFilter: d } = Dt(), u = c == null ? void 0 : c.find((b) => b.id === l.filterId), { data: m, isLoading: h, isFetching: f, errorMessage: x, pagination: v } = Ge(s), { setCard: p, updateCardInFrame: y } = le(), { data: g } = qn(s), C = Le(() => {
|
|
8619
8609
|
var b;
|
|
8620
8610
|
return s.type !== "pivotTable" || !((b = m == null ? void 0 : m.records) != null && b.length) ? null : {
|
|
8621
8611
|
records: m.records,
|
|
@@ -8631,7 +8621,7 @@ function ui({
|
|
|
8631
8621
|
m == null ? void 0 : m.subtotalColumns,
|
|
8632
8622
|
m == null ? void 0 : m.pivotSchema,
|
|
8633
8623
|
m == null ? void 0 : m.groupByColumns
|
|
8634
|
-
]), M =
|
|
8624
|
+
]), M = wo(s, C), I = (b, P) => {
|
|
8635
8625
|
var z, w;
|
|
8636
8626
|
const A = {
|
|
8637
8627
|
...s,
|
|
@@ -8666,10 +8656,10 @@ function ui({
|
|
|
8666
8656
|
function N() {
|
|
8667
8657
|
if (m != null && m.records && (m == null ? void 0 : m.records.length) === 0 && !h && !f)
|
|
8668
8658
|
return x ? /* @__PURE__ */ a("div", { className: "flex h-full flex-col items-center justify-center gap-2", children: [
|
|
8669
|
-
/* @__PURE__ */ e(
|
|
8659
|
+
/* @__PURE__ */ e(So, { className: "size-8 text-destructive" }),
|
|
8670
8660
|
/* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: r ? "Error fetching data. Please check your chart configuration" : "Error fetching data. Please check your SQL or Python code." })
|
|
8671
8661
|
] }) : /* @__PURE__ */ a("div", { className: "flex h-full flex-col items-center justify-center gap-2", children: [
|
|
8672
|
-
/* @__PURE__ */ e(
|
|
8662
|
+
/* @__PURE__ */ e(ko, { className: "size-8 text-muted-foreground" }),
|
|
8673
8663
|
/* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: "No results to display" })
|
|
8674
8664
|
] });
|
|
8675
8665
|
if ((h || f) && s.type !== "table")
|
|
@@ -8681,7 +8671,7 @@ function ui({
|
|
|
8681
8671
|
s.type
|
|
8682
8672
|
) && k)
|
|
8683
8673
|
return /* @__PURE__ */ e("div", { className: "relative h-full min-h-0 w-full flex-1 grow basis-0", children: h || f ? /* @__PURE__ */ e(K, {}) : /* @__PURE__ */ e(
|
|
8684
|
-
|
|
8674
|
+
Do,
|
|
8685
8675
|
{
|
|
8686
8676
|
cfg: k
|
|
8687
8677
|
}
|
|
@@ -8699,7 +8689,7 @@ function ui({
|
|
|
8699
8689
|
) });
|
|
8700
8690
|
if (s.type === "pivotTable" && M)
|
|
8701
8691
|
return /* @__PURE__ */ e("div", { className: "relative mb-2 flex h-full min-h-0 w-full flex-1 grow basis-0", children: /* @__PURE__ */ e(
|
|
8702
|
-
|
|
8692
|
+
To,
|
|
8703
8693
|
{
|
|
8704
8694
|
card: s,
|
|
8705
8695
|
data: M.data,
|
|
@@ -8712,7 +8702,7 @@ function ui({
|
|
|
8712
8702
|
p(A), y(A);
|
|
8713
8703
|
},
|
|
8714
8704
|
onAggregationLabelChange: (b) => {
|
|
8715
|
-
const P =
|
|
8705
|
+
const P = Mo(
|
|
8716
8706
|
b,
|
|
8717
8707
|
s.config
|
|
8718
8708
|
), A = { ...s, config: P };
|
|
@@ -8722,7 +8712,7 @@ function ui({
|
|
|
8722
8712
|
) });
|
|
8723
8713
|
if (s.type === "aggregateTable")
|
|
8724
8714
|
return /* @__PURE__ */ e("div", { className: "relative mb-2 flex h-full min-h-0 w-full flex-1 grow basis-0", children: /* @__PURE__ */ e(
|
|
8725
|
-
|
|
8715
|
+
Ao,
|
|
8726
8716
|
{
|
|
8727
8717
|
card: s,
|
|
8728
8718
|
data: (m == null ? void 0 : m.records) || [],
|
|
@@ -8909,7 +8899,7 @@ const Zs = ({
|
|
|
8909
8899
|
/* @__PURE__ */ e(_, { onClick: i, variant: "outline", children: "Close" })
|
|
8910
8900
|
] });
|
|
8911
8901
|
function pm() {
|
|
8912
|
-
const [t, n] = V(!1), [s, r] = V(""), [i, l] = V(""), [c, o] = V(""), [d, u] = V(""), m = E((k) => k.card), h = E((k) => k.card.customCfg), f = h ? JSON.stringify(h, null, 2) : "", { data: x } = Ge(m), { data: v } = qn(m), { setCardCustomCfg: p, setCustomVisualCode: y } =
|
|
8902
|
+
const [t, n] = V(!1), [s, r] = V(""), [i, l] = V(""), [c, o] = V(""), [d, u] = V(""), m = E((k) => k.card), h = E((k) => k.card.customCfg), f = h ? JSON.stringify(h, null, 2) : "", { data: x } = Ge(m), { data: v } = qn(m), { setCardCustomCfg: p, setCustomVisualCode: y } = le(), g = (k) => {
|
|
8913
8903
|
var S, N;
|
|
8914
8904
|
return JSON.stringify(
|
|
8915
8905
|
{
|
|
@@ -8939,7 +8929,7 @@ function pm() {
|
|
|
8939
8929
|
});
|
|
8940
8930
|
if (k) {
|
|
8941
8931
|
r(g(k)), o(((N = m.preferences) == null ? void 0 : N.customVisualCode) || "");
|
|
8942
|
-
const T =
|
|
8932
|
+
const T = Eo(k, h);
|
|
8943
8933
|
l(g(T));
|
|
8944
8934
|
}
|
|
8945
8935
|
}, M = () => {
|
|
@@ -8947,7 +8937,7 @@ function pm() {
|
|
|
8947
8937
|
if (c && y(c), i) {
|
|
8948
8938
|
const k = JSON.parse(
|
|
8949
8939
|
i
|
|
8950
|
-
), S =
|
|
8940
|
+
), S = Io(
|
|
8951
8941
|
JSON.parse(s),
|
|
8952
8942
|
k
|
|
8953
8943
|
);
|
|
@@ -9004,7 +8994,7 @@ function $s(t) {
|
|
|
9004
8994
|
function mi() {
|
|
9005
8995
|
const { authToken: t } = We(), { data: n, isLoading: s, isFetching: r, isError: i } = Hn({
|
|
9006
8996
|
queryKey: ["plugins", t == null ? void 0 : t.accessToken],
|
|
9007
|
-
queryFn: () =>
|
|
8997
|
+
queryFn: () => Oo(t == null ? void 0 : t.accessToken)
|
|
9008
8998
|
// staleTime: Infinity,
|
|
9009
8999
|
});
|
|
9010
9000
|
return { data: n, isLoading: s, isFetching: r, isError: i };
|
|
@@ -9014,10 +9004,10 @@ function hi() {
|
|
|
9014
9004
|
data: t,
|
|
9015
9005
|
isLoading: n,
|
|
9016
9006
|
isError: s
|
|
9017
|
-
} = mi(), r =
|
|
9007
|
+
} = mi(), r = Ro({
|
|
9018
9008
|
queries: ((t == null ? void 0 : t.plugins) || []).map((o) => ({
|
|
9019
9009
|
queryKey: ["manifest", o.value],
|
|
9020
|
-
queryFn: () =>
|
|
9010
|
+
queryFn: () => Fo(o.value),
|
|
9021
9011
|
enabled: !!o.value,
|
|
9022
9012
|
staleTime: 5 * 60 * 1e3,
|
|
9023
9013
|
// 5 minutes
|
|
@@ -9056,7 +9046,7 @@ function fm({
|
|
|
9056
9046
|
setCardPreferences: s,
|
|
9057
9047
|
setCardType: r,
|
|
9058
9048
|
setCustomCardPreferences: i
|
|
9059
|
-
} =
|
|
9049
|
+
} = le(), { data: l, isLoading: c, isError: o } = hi(), d = Te(
|
|
9060
9050
|
(u, m) => {
|
|
9061
9051
|
n(null), s({}), r(u), m && i({
|
|
9062
9052
|
type: "component",
|
|
@@ -9107,7 +9097,7 @@ function pi({
|
|
|
9107
9097
|
}) {
|
|
9108
9098
|
const { setCardType: s, setCardPreferences: r, setIsDevMode: i } = E(
|
|
9109
9099
|
(m) => m.actions
|
|
9110
|
-
), { setCardCustomCfg: l, setCustomCardPreferences: c, setQueryConfig: o } =
|
|
9100
|
+
), { setCardCustomCfg: l, setCustomCardPreferences: c, setQueryConfig: o } = le();
|
|
9111
9101
|
function d(m, h) {
|
|
9112
9102
|
l(null), r({}), s(m), ["custom", "text", "map"].includes(m) && (i(!0), o(void 0)), t == null || t();
|
|
9113
9103
|
}
|
|
@@ -9275,7 +9265,7 @@ function pi({
|
|
|
9275
9265
|
tooltip: "Text",
|
|
9276
9266
|
onClick: () => d("text"),
|
|
9277
9267
|
className: "h-10 p-4",
|
|
9278
|
-
children: /* @__PURE__ */ e(
|
|
9268
|
+
children: /* @__PURE__ */ e(Po, { className: U("size-5", n) })
|
|
9279
9269
|
}
|
|
9280
9270
|
),
|
|
9281
9271
|
/* @__PURE__ */ e(
|
|
@@ -9369,7 +9359,7 @@ function fi({
|
|
|
9369
9359
|
}
|
|
9370
9360
|
) }),
|
|
9371
9361
|
/* @__PURE__ */ a(
|
|
9372
|
-
|
|
9362
|
+
Lo,
|
|
9373
9363
|
{
|
|
9374
9364
|
onOpenAutoFocus: (o) => o.preventDefault(),
|
|
9375
9365
|
className: "w-72 p-1",
|
|
@@ -9484,7 +9474,7 @@ function gi() {
|
|
|
9484
9474
|
var o, d;
|
|
9485
9475
|
return (d = (o = c.card) == null ? void 0 : o.preferences) == null ? void 0 : d.chartOptions;
|
|
9486
9476
|
}
|
|
9487
|
-
), r =
|
|
9477
|
+
), r = zo(s), { setChartGrid: i } = le();
|
|
9488
9478
|
function l() {
|
|
9489
9479
|
const c = ["xy", "none", "x", "y"], d = (c.indexOf(r) + 1) % c.length;
|
|
9490
9480
|
i(c[d]);
|
|
@@ -9513,14 +9503,14 @@ function gi() {
|
|
|
9513
9503
|
"map"
|
|
9514
9504
|
].includes(t.type) && /* @__PURE__ */ a(ve, { tooltip: "Grid Style", onClick: l, children: [
|
|
9515
9505
|
(r === "xy" || !r) && /* @__PURE__ */ e(Bs, { className: "size-4" }),
|
|
9516
|
-
r === "x" && /* @__PURE__ */ e(
|
|
9506
|
+
r === "x" && /* @__PURE__ */ e(pd, { className: "size-4" }),
|
|
9517
9507
|
r === "y" && /* @__PURE__ */ e(Vd, { className: "size-4" }),
|
|
9518
9508
|
r === "none" && /* @__PURE__ */ e(Yd, { className: "size-4" })
|
|
9519
9509
|
] })
|
|
9520
9510
|
] }) : null;
|
|
9521
9511
|
}
|
|
9522
9512
|
function Nm() {
|
|
9523
|
-
const t = E((v) => v.frame), n = E((v) => v.card), { setFrame: s, setActiveTabCardId: r, setCard: i, updateCardInFrame: l } =
|
|
9513
|
+
const t = E((v) => v.frame), n = E((v) => v.card), { setFrame: s, setActiveTabCardId: r, setCard: i, updateCardInFrame: l } = le(), c = (v, p) => {
|
|
9524
9514
|
v.dataTransfer.setData("tabIndex", p.toString());
|
|
9525
9515
|
}, o = (v) => {
|
|
9526
9516
|
v.preventDefault();
|
|
@@ -9595,7 +9585,7 @@ function Nm() {
|
|
|
9595
9585
|
displayTab: y
|
|
9596
9586
|
});
|
|
9597
9587
|
},
|
|
9598
|
-
children: p.displayTab === !0 || p.displayTab === void 0 ? /* @__PURE__ */ e(ua, { className: "mr-2 size-3.5 text-muted-foreground hover:text-foreground" }) : /* @__PURE__ */ e(
|
|
9588
|
+
children: p.displayTab === !0 || p.displayTab === void 0 ? /* @__PURE__ */ e(ua, { className: "mr-2 size-3.5 text-muted-foreground hover:text-foreground" }) : /* @__PURE__ */ e(vd, { className: "mr-2 size-3.5 text-muted-foreground hover:text-foreground" })
|
|
9599
9589
|
}
|
|
9600
9590
|
);
|
|
9601
9591
|
}
|
|
@@ -9612,7 +9602,7 @@ function Nm() {
|
|
|
9612
9602
|
children: [
|
|
9613
9603
|
x(t, v),
|
|
9614
9604
|
/* @__PURE__ */ e(
|
|
9615
|
-
|
|
9605
|
+
jo,
|
|
9616
9606
|
{
|
|
9617
9607
|
enabled: t.activeCardId === v.id,
|
|
9618
9608
|
text: v.tabTitle || v.title,
|
|
@@ -9649,13 +9639,13 @@ function Nm() {
|
|
|
9649
9639
|
className: "invisible ml-1 h-8 px-2 hover:bg-muted-foreground/50 group-hover:visible",
|
|
9650
9640
|
variant: "outline",
|
|
9651
9641
|
onClick: h,
|
|
9652
|
-
children: /* @__PURE__ */ e(
|
|
9642
|
+
children: /* @__PURE__ */ e(gd, { className: "h-4 w-4" })
|
|
9653
9643
|
}
|
|
9654
9644
|
)
|
|
9655
9645
|
] }) });
|
|
9656
9646
|
}
|
|
9657
9647
|
function xi() {
|
|
9658
|
-
const t = E((p) => p.frame), n = E((p) => p.card), s = E((p) => p.isSqlRunning), r = E((p) => p.isDevMode), { setFrame: i, setActiveTabCardId: l, setCard: c, setIsDevMode: o, setRunSql: d } =
|
|
9648
|
+
const t = E((p) => p.frame), n = E((p) => p.card), s = E((p) => p.isSqlRunning), r = E((p) => p.isDevMode), { setFrame: i, setActiveTabCardId: l, setCard: c, setIsDevMode: o, setRunSql: d } = le(), { data: u, isLoading: m, isFetching: h } = Ge(n);
|
|
9659
9649
|
function f(p) {
|
|
9660
9650
|
const y = t.cards.find((g) => g.id === p);
|
|
9661
9651
|
if (y != null && y.sql) {
|
|
@@ -9680,14 +9670,14 @@ function xi() {
|
|
|
9680
9670
|
}
|
|
9681
9671
|
function v() {
|
|
9682
9672
|
return n.type === "kpi" ? m || h ? /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(Ha, { size: "md", color: "muted", "aria-label": "Loading data" }) }) : /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ e("div", { className: "w-1/2 rounded-md border border-border", children: /* @__PURE__ */ e(
|
|
9683
|
-
|
|
9673
|
+
_o,
|
|
9684
9674
|
{
|
|
9685
9675
|
card: n,
|
|
9686
9676
|
data: u == null ? void 0 : u.records,
|
|
9687
9677
|
isPending: m || h
|
|
9688
9678
|
}
|
|
9689
9679
|
) }) }) : n.type === "text" ? m || h ? /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(Ha, { size: "md", color: "muted", "aria-label": "Loading data" }) }) : /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ e("div", { className: "w-1/2 rounded-md border", children: /* @__PURE__ */ e(He, { className: "mx-3 my-6 h-[300px] overflow-y-auto break-words px-3", children: /* @__PURE__ */ e(
|
|
9690
|
-
|
|
9680
|
+
Vo,
|
|
9691
9681
|
{
|
|
9692
9682
|
isLoading: s,
|
|
9693
9683
|
card: n,
|
|
@@ -9722,7 +9712,7 @@ function xs({
|
|
|
9722
9712
|
runAssistant: u,
|
|
9723
9713
|
setIsDevMode: m,
|
|
9724
9714
|
setCardPreferences: h
|
|
9725
|
-
} =
|
|
9715
|
+
} = le(), { data: f, isLoading: x, isFetching: v, errorMessage: p, refetch: y } = Ge(n);
|
|
9726
9716
|
function g() {
|
|
9727
9717
|
const S = JSON.stringify(f == null ? void 0 : f.records, null, 2), N = new Blob([S], { type: "application/json" }), T = URL.createObjectURL(N), b = document.createElement("a");
|
|
9728
9718
|
b.href = T, b.download = `${n.title}.json`, b.click();
|
|
@@ -9753,7 +9743,7 @@ function xs({
|
|
|
9753
9743
|
children: [
|
|
9754
9744
|
r && /* @__PURE__ */ a("div", { className: "flex grow items-center", children: [
|
|
9755
9745
|
/* @__PURE__ */ e(fi, {}),
|
|
9756
|
-
i && /* @__PURE__ */ e(ve, { tooltip: "Visual Docs", onClick: M, children: /* @__PURE__ */ e(
|
|
9746
|
+
i && /* @__PURE__ */ e(ve, { tooltip: "Visual Docs", onClick: M, children: /* @__PURE__ */ e(cd, { className: "size-4" }) }),
|
|
9757
9747
|
!["table", "custom"].includes(n.type) && i && /* @__PURE__ */ e(pm, {})
|
|
9758
9748
|
] }),
|
|
9759
9749
|
!r && /* @__PURE__ */ a("div", { className: "flex grow items-center gap-1", children: [
|
|
@@ -9764,7 +9754,7 @@ function xs({
|
|
|
9764
9754
|
variant: "ghost",
|
|
9765
9755
|
size: "icon",
|
|
9766
9756
|
onClick: C,
|
|
9767
|
-
children: /* @__PURE__ */ e(
|
|
9757
|
+
children: /* @__PURE__ */ e(Bo, { className: "size-4" })
|
|
9768
9758
|
}
|
|
9769
9759
|
),
|
|
9770
9760
|
/* @__PURE__ */ e(
|
|
@@ -9774,7 +9764,7 @@ function xs({
|
|
|
9774
9764
|
variant: "ghost",
|
|
9775
9765
|
size: "icon",
|
|
9776
9766
|
onClick: g,
|
|
9777
|
-
children: /* @__PURE__ */ e(
|
|
9767
|
+
children: /* @__PURE__ */ e(Nd, { strokeWidth: 1.5, className: "size-4" })
|
|
9778
9768
|
}
|
|
9779
9769
|
),
|
|
9780
9770
|
/* @__PURE__ */ e(
|
|
@@ -9927,7 +9917,7 @@ function wm() {
|
|
|
9927
9917
|
var p, y;
|
|
9928
9918
|
const t = E(
|
|
9929
9919
|
(g) => g.card.customCardPreferences
|
|
9930
|
-
), { data: n } = mi(), s = (n == null ? void 0 : n.plugins) || [], r = E((g) => g.card), i = E((g) => g.frame), l = (t == null ? void 0 : t.visualType) || "single", { setCustomCardPreferences: c } =
|
|
9920
|
+
), { data: n } = mi(), s = (n == null ? void 0 : n.plugins) || [], r = E((g) => g.card), i = E((g) => g.frame), l = (t == null ? void 0 : t.visualType) || "single", { setCustomCardPreferences: c } = le(), { components: o, manifest: d } = Yn(
|
|
9931
9921
|
(t == null ? void 0 : t.url) || ""
|
|
9932
9922
|
), u = (p = d == null ? void 0 : d.visuals) == null ? void 0 : p.find(
|
|
9933
9923
|
(g) => g.name === (t == null ? void 0 : t.componentName)
|
|
@@ -10046,7 +10036,7 @@ function wm() {
|
|
|
10046
10036
|
/* @__PURE__ */ e(
|
|
10047
10037
|
wt,
|
|
10048
10038
|
{
|
|
10049
|
-
icon: /* @__PURE__ */ e(
|
|
10039
|
+
icon: /* @__PURE__ */ e(od, { className: "h-3.5 w-3.5" }),
|
|
10050
10040
|
className: "h-9 w-full",
|
|
10051
10041
|
label: "Select Plugin",
|
|
10052
10042
|
options: s,
|
|
@@ -10075,7 +10065,7 @@ function wm() {
|
|
|
10075
10065
|
((t == null ? void 0 : t.type) === "component" || (t == null ? void 0 : t.type) === void 0) && t && /* @__PURE__ */ e(K, { children: o && /* @__PURE__ */ e(
|
|
10076
10066
|
wt,
|
|
10077
10067
|
{
|
|
10078
|
-
icon: /* @__PURE__ */ e(
|
|
10068
|
+
icon: /* @__PURE__ */ e(fd, { className: "h-3.5 w-3.5" }),
|
|
10079
10069
|
className: "h-9 w-full",
|
|
10080
10070
|
label: "Select Component",
|
|
10081
10071
|
options: (o == null ? void 0 : o.filter((g) => g.type === l).map((g) => ({
|
|
@@ -10235,7 +10225,7 @@ function Sm({ idx: t }) {
|
|
|
10235
10225
|
(d) => d.actions.setCardPreferences
|
|
10236
10226
|
), i = (o = n == null ? void 0 : n.chartOptions) == null ? void 0 : o.indexAxis, l = s == null ? void 0 : s.find((d) => d.idx === t);
|
|
10237
10227
|
function c(d, u) {
|
|
10238
|
-
(d === "end" || d === "start") &&
|
|
10228
|
+
(d === "end" || d === "start") && Go($o());
|
|
10239
10229
|
const m = {
|
|
10240
10230
|
display: d !== "none",
|
|
10241
10231
|
align: d,
|
|
@@ -10282,7 +10272,7 @@ function Sm({ idx: t }) {
|
|
|
10282
10272
|
onClick: () => c("start", t),
|
|
10283
10273
|
className: "h-7 p-1 text-xs font-normal",
|
|
10284
10274
|
children: /* @__PURE__ */ e(
|
|
10285
|
-
|
|
10275
|
+
Dd,
|
|
10286
10276
|
{
|
|
10287
10277
|
className: U("h-4 w-4", {
|
|
10288
10278
|
"rotate-90": i === "y"
|
|
@@ -10297,7 +10287,7 @@ function Sm({ idx: t }) {
|
|
|
10297
10287
|
onClick: () => c("center", t),
|
|
10298
10288
|
className: "h-7 p-1 text-xs font-normal",
|
|
10299
10289
|
children: /* @__PURE__ */ e(
|
|
10300
|
-
|
|
10290
|
+
Md,
|
|
10301
10291
|
{
|
|
10302
10292
|
className: U("h-4 w-4", {
|
|
10303
10293
|
"rotate-90": i === "y"
|
|
@@ -10312,7 +10302,7 @@ function Sm({ idx: t }) {
|
|
|
10312
10302
|
onClick: () => c("end", t),
|
|
10313
10303
|
className: "h-7 p-1 text-xs font-normal",
|
|
10314
10304
|
children: /* @__PURE__ */ e(
|
|
10315
|
-
|
|
10305
|
+
Td,
|
|
10316
10306
|
{
|
|
10317
10307
|
className: U("h-4 w-4", {
|
|
10318
10308
|
"rotate-90": i === "y"
|
|
@@ -10325,10 +10315,10 @@ function Sm({ idx: t }) {
|
|
|
10325
10315
|
] });
|
|
10326
10316
|
}
|
|
10327
10317
|
function km() {
|
|
10328
|
-
const t = E((l) => l.card), { data: n } = Ge(t), { keys: s } = nn((n == null ? void 0 : n.records) || []), r = s.slice(1).filter((l) =>
|
|
10318
|
+
const t = E((l) => l.card), { data: n } = Ge(t), { keys: s } = nn((n == null ? void 0 : n.records) || []), r = s.slice(1).filter((l) => !Yo.includes(l));
|
|
10329
10319
|
let i = r;
|
|
10330
10320
|
if (["stackedBar", "stackedLine"].includes(t.type)) {
|
|
10331
|
-
const l =
|
|
10321
|
+
const l = Uo({
|
|
10332
10322
|
dataArray: (n == null ? void 0 : n.records) || [],
|
|
10333
10323
|
groupKey: s[0],
|
|
10334
10324
|
pivotKey: s[1],
|
|
@@ -10472,7 +10462,7 @@ function Ni({
|
|
|
10472
10462
|
}
|
|
10473
10463
|
),
|
|
10474
10464
|
/* @__PURE__ */ e(
|
|
10475
|
-
|
|
10465
|
+
qo,
|
|
10476
10466
|
{
|
|
10477
10467
|
onClick: () => u("area"),
|
|
10478
10468
|
className: U(
|
|
@@ -10492,7 +10482,7 @@ function xr() {
|
|
|
10492
10482
|
function f(x, v = "dashboard", p) {
|
|
10493
10483
|
var T;
|
|
10494
10484
|
const y = Ct(x.column_name), g = Ct(s || ""), C = Ct(r || ""), M = Ct(m);
|
|
10495
|
-
let I =
|
|
10485
|
+
let I = Wo({
|
|
10496
10486
|
schemaName: C,
|
|
10497
10487
|
tableName: M,
|
|
10498
10488
|
connectionType: h,
|
|
@@ -10553,7 +10543,7 @@ function xr() {
|
|
|
10553
10543
|
function Ya() {
|
|
10554
10544
|
const t = re(
|
|
10555
10545
|
(o) => o.dashboard.filters
|
|
10556
|
-
), n = E((o) => o.frame), { setFrame: s } =
|
|
10546
|
+
), n = E((o) => o.frame), { setFrame: s } = le(), { columns: r } = It(), { assignFilter: i } = xr();
|
|
10557
10547
|
function l(o) {
|
|
10558
10548
|
const d = i(o, "frame");
|
|
10559
10549
|
s({ ...n, filterId: d });
|
|
@@ -10582,7 +10572,7 @@ function Dm({
|
|
|
10582
10572
|
className: "w-full justify-between font-normal",
|
|
10583
10573
|
children: [
|
|
10584
10574
|
i ? (c = t.find((o) => o.column_name === i)) == null ? void 0 : c.column_name : "Select Column...",
|
|
10585
|
-
/* @__PURE__ */ e(
|
|
10575
|
+
/* @__PURE__ */ e(Ko, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
|
|
10586
10576
|
]
|
|
10587
10577
|
}
|
|
10588
10578
|
) }),
|
|
@@ -10601,7 +10591,7 @@ function Dm({
|
|
|
10601
10591
|
children: [
|
|
10602
10592
|
o.column_name,
|
|
10603
10593
|
/* @__PURE__ */ e(
|
|
10604
|
-
|
|
10594
|
+
Jo,
|
|
10605
10595
|
{
|
|
10606
10596
|
className: U(
|
|
10607
10597
|
"ml-auto h-4 w-4",
|
|
@@ -11314,7 +11304,7 @@ function Vm() {
|
|
|
11314
11304
|
var d, u, m, h, f, x, v, p, y, g, C, M, I, k, S, N, T, b;
|
|
11315
11305
|
const t = E((P) => P.card), n = (u = (d = t == null ? void 0 : t.preferences) == null ? void 0 : d.mapVisualOptions) == null ? void 0 : u.topoJsonUrl, [s, r] = V(
|
|
11316
11306
|
((h = (m = t == null ? void 0 : t.preferences) == null ? void 0 : m.mapVisualOptions) == null ? void 0 : h.customTopoJsonUrl) || ""
|
|
11317
|
-
), { setCardPreferences: i } =
|
|
11307
|
+
), { setCardPreferences: i } = le(), { data: l } = qn(t), c = Object.keys((l == null ? void 0 : l.objects) || {}).map((P) => ({
|
|
11318
11308
|
label: P,
|
|
11319
11309
|
value: P
|
|
11320
11310
|
})) || [];
|
|
@@ -11597,7 +11587,7 @@ function Bm() {
|
|
|
11597
11587
|
var i, l;
|
|
11598
11588
|
return (l = (i = r == null ? void 0 : r.card) == null ? void 0 : i.preferences) == null ? void 0 : l.sortChart;
|
|
11599
11589
|
}
|
|
11600
|
-
), { setSortChart: n } =
|
|
11590
|
+
), { setSortChart: n } = le();
|
|
11601
11591
|
function s() {
|
|
11602
11592
|
return /* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
11603
11593
|
/* @__PURE__ */ e(B, { children: "Sort" }),
|
|
@@ -11921,7 +11911,7 @@ function wi() {
|
|
|
11921
11911
|
const t = E((w) => w.card), n = E((w) => {
|
|
11922
11912
|
var D;
|
|
11923
11913
|
return (D = w.card) == null ? void 0 : D.preferences;
|
|
11924
|
-
}), { setCardPreferences: s, updateCardInFrame: r } =
|
|
11914
|
+
}), { setCardPreferences: s, updateCardInFrame: r } = le(), { data: i } = Ge(t), [l, c] = V({}), [o, d] = V(
|
|
11925
11915
|
null
|
|
11926
11916
|
), [u, m] = V(null), h = Le(() => {
|
|
11927
11917
|
var L, F, O, j, X, G, ne;
|
|
@@ -11968,7 +11958,7 @@ function wi() {
|
|
|
11968
11958
|
(I = t == null ? void 0 : t.config) == null ? void 0 : I.pivotByColumns,
|
|
11969
11959
|
(k = t == null ? void 0 : t.config) == null ? void 0 : k.metricColumns,
|
|
11970
11960
|
t == null ? void 0 : t.type
|
|
11971
|
-
]), f = Le(() =>
|
|
11961
|
+
]), f = Le(() => Ho(), []);
|
|
11972
11962
|
Oe(() => {
|
|
11973
11963
|
const w = {};
|
|
11974
11964
|
h.forEach((D, R) => {
|
|
@@ -12053,7 +12043,7 @@ function wi() {
|
|
|
12053
12043
|
}
|
|
12054
12044
|
) }) }),
|
|
12055
12045
|
/* @__PURE__ */ e("div", { className: "max-h-[200px] space-y-2 overflow-y-auto pr-1", children: h.map((w, D) => {
|
|
12056
|
-
const R =
|
|
12046
|
+
const R = Qo(l[w], D), L = !R;
|
|
12057
12047
|
return /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
12058
12048
|
/* @__PURE__ */ a(
|
|
12059
12049
|
Mt,
|
|
@@ -12646,10 +12636,10 @@ function Si() {
|
|
|
12646
12636
|
const t = E((c) => c.card), n = E((c) => {
|
|
12647
12637
|
var o;
|
|
12648
12638
|
return (o = c.card) == null ? void 0 : o.preferences;
|
|
12649
|
-
}), { setCardPreferences: s, updateCardInFrame: r } =
|
|
12639
|
+
}), { setCardPreferences: s, updateCardInFrame: r } = le();
|
|
12650
12640
|
if (!t || ["tornado", "pyramid", "kpi"].includes(t.type))
|
|
12651
12641
|
return null;
|
|
12652
|
-
const i =
|
|
12642
|
+
const i = Zo.getAxisInfo(t.type, n);
|
|
12653
12643
|
if (!i.hasXAxis && !i.hasYAxis)
|
|
12654
12644
|
return null;
|
|
12655
12645
|
const l = (c, o) => {
|
|
@@ -12699,8 +12689,8 @@ function ki() {
|
|
|
12699
12689
|
var m, h, f, x;
|
|
12700
12690
|
return (x = (f = (h = (m = u.card) == null ? void 0 : m.preferences) == null ? void 0 : h.chartOptions) == null ? void 0 : f.plugins) == null ? void 0 : x.legend;
|
|
12701
12691
|
}
|
|
12702
|
-
), { setLegendOptions: s } =
|
|
12703
|
-
if (!t || !
|
|
12692
|
+
), { setLegendOptions: s } = le();
|
|
12693
|
+
if (!t || !Xo(t.type))
|
|
12704
12694
|
return null;
|
|
12705
12695
|
const r = "bottom", i = "center", l = !(t.type === "stackedBar" || t.type === "stackedLine"), c = (u, m) => {
|
|
12706
12696
|
const h = {
|
|
@@ -12711,7 +12701,7 @@ function ki() {
|
|
|
12711
12701
|
}, o = ["top", "bottom", "left", "right"], d = ["start", "center", "end"];
|
|
12712
12702
|
return /* @__PURE__ */ a(be, { value: "legend", className: "border-b-0", children: [
|
|
12713
12703
|
/* @__PURE__ */ e(Ce, { className: "flex w-full items-center gap-2 py-2 text-sm font-medium hover:no-underline", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
12714
|
-
/* @__PURE__ */ e(
|
|
12704
|
+
/* @__PURE__ */ e(kd, { className: "h-4 w-4 text-muted-foreground" }),
|
|
12715
12705
|
/* @__PURE__ */ e("span", { children: "Legend" })
|
|
12716
12706
|
] }) }),
|
|
12717
12707
|
/* @__PURE__ */ e(we, { className: "pt-2", children: /* @__PURE__ */ a("div", { className: "space-y-3", children: [
|
|
@@ -12768,8 +12758,8 @@ function Di() {
|
|
|
12768
12758
|
), s = E((F) => {
|
|
12769
12759
|
var O;
|
|
12770
12760
|
return (O = F.card) == null ? void 0 : O.preferences;
|
|
12771
|
-
}), { setCardPreferences: r, updateCardInFrame: i } =
|
|
12772
|
-
if (!t || !
|
|
12761
|
+
}), { setCardPreferences: r, updateCardInFrame: i } = le();
|
|
12762
|
+
if (!t || !ec(t.type))
|
|
12773
12763
|
return null;
|
|
12774
12764
|
const l = ((T = s == null ? void 0 : s.chartOptions) == null ? void 0 : T.indexAxis) === "y", c = t.type === "stackedBar" || t.type === "stackedLine", o = t.type === "pie" || t.type === "doughnut" || t.type === "polarArea" || t.type === "funnel", d = !o, u = (P = (b = s == null ? void 0 : s.chartOptions) == null ? void 0 : b.plugins) == null ? void 0 : P.datalabels, m = (u == null ? void 0 : u.display) !== !1 && ((u == null ? void 0 : u.anchor) || (u == null ? void 0 : u.align)), h = (n == null ? void 0 : n.enabled) !== void 0 ? n.enabled : m, f = (F, O) => {
|
|
12775
12765
|
const j = {
|
|
@@ -13230,12 +13220,12 @@ const th = [
|
|
|
13230
13220
|
{
|
|
13231
13221
|
label: "Unique",
|
|
13232
13222
|
value: "DISTINCT",
|
|
13233
|
-
logo: /* @__PURE__ */ e(
|
|
13223
|
+
logo: /* @__PURE__ */ e(bd, { className: "size-3.5" })
|
|
13234
13224
|
},
|
|
13235
13225
|
{
|
|
13236
13226
|
label: "Average",
|
|
13237
13227
|
value: "AVG",
|
|
13238
|
-
logo: /* @__PURE__ */ e(
|
|
13228
|
+
logo: /* @__PURE__ */ e(rd, { className: "size-3.5" })
|
|
13239
13229
|
},
|
|
13240
13230
|
{
|
|
13241
13231
|
label: "Min",
|
|
@@ -13249,7 +13239,7 @@ const th = [
|
|
|
13249
13239
|
}
|
|
13250
13240
|
];
|
|
13251
13241
|
function ah({ column: t }) {
|
|
13252
|
-
const { updateMetricColumnOld: n } =
|
|
13242
|
+
const { updateMetricColumnOld: n } = le();
|
|
13253
13243
|
let s = th;
|
|
13254
13244
|
Rt(t.type) && (s = s.filter(
|
|
13255
13245
|
(i) => ["COUNT", "DISTINCT"].includes(i.value)
|
|
@@ -13297,7 +13287,7 @@ const sh = [
|
|
|
13297
13287
|
}
|
|
13298
13288
|
];
|
|
13299
13289
|
function nh({ column: t }) {
|
|
13300
|
-
const { updateGroupByColumnOld: n } =
|
|
13290
|
+
const { updateGroupByColumnOld: n } = le();
|
|
13301
13291
|
function s(r) {
|
|
13302
13292
|
const i = {
|
|
13303
13293
|
...t,
|
|
@@ -13396,7 +13386,7 @@ function lh({
|
|
|
13396
13386
|
updateGroupByColumnOld: c,
|
|
13397
13387
|
updateMetricColumnOld: o,
|
|
13398
13388
|
updatePivotByColumnOld: d
|
|
13399
|
-
} =
|
|
13389
|
+
} = le(), {
|
|
13400
13390
|
attributes: u,
|
|
13401
13391
|
listeners: m,
|
|
13402
13392
|
setNodeRef: h,
|
|
@@ -13632,10 +13622,10 @@ function oh() {
|
|
|
13632
13622
|
}) || [], s = E((g) => {
|
|
13633
13623
|
var C;
|
|
13634
13624
|
return (C = g.card.queryConfig) == null ? void 0 : C.metricColumns;
|
|
13635
|
-
}) || [], { addOrderByColumn: r, removeOrderByColumn: i, updateOrderByColumn: l } =
|
|
13625
|
+
}) || [], { addOrderByColumn: r, removeOrderByColumn: i, updateOrderByColumn: l } = le(), c = [...n, ...s];
|
|
13636
13626
|
if (c.length === 0)
|
|
13637
13627
|
return /* @__PURE__ */ e(K, {});
|
|
13638
|
-
const o = /* @__PURE__ */ e(
|
|
13628
|
+
const o = /* @__PURE__ */ e(id, { className: "size-3.5 text-muted-foreground hover:text-foreground" }), d = /* @__PURE__ */ e(nd, { className: "size-3.5 text-muted-foreground hover:text-foreground" }), u = /* @__PURE__ */ e(ld, { className: "size-3.5 text-muted-foreground hover:text-foreground" }), m = /* @__PURE__ */ e(sd, { className: "size-3.5 text-muted-foreground hover:text-foreground" }), h = c == null ? void 0 : c.filter((g) => !t.some((C) => C.columnId === g.id)).map((g) => ({
|
|
13639
13629
|
id: g.id,
|
|
13640
13630
|
value: g.label || g.name
|
|
13641
13631
|
}));
|
|
@@ -13763,7 +13753,7 @@ function ch() {
|
|
|
13763
13753
|
removeColumnFromGroupBy: o,
|
|
13764
13754
|
removeColumnFromMetricColumns: d,
|
|
13765
13755
|
removeColumnFromPivotBy: u
|
|
13766
|
-
} =
|
|
13756
|
+
} = le();
|
|
13767
13757
|
function m(y) {
|
|
13768
13758
|
o(y);
|
|
13769
13759
|
}
|
|
@@ -13824,7 +13814,7 @@ function yr({
|
|
|
13824
13814
|
sortableType: r,
|
|
13825
13815
|
className: i
|
|
13826
13816
|
}) {
|
|
13827
|
-
const [l, c] = V(!1), { removeEditorFilter: o, clearEditorFilter: d } =
|
|
13817
|
+
const [l, c] = V(!1), { removeEditorFilter: o, clearEditorFilter: d } = le(), u = E(
|
|
13828
13818
|
(h) => {
|
|
13829
13819
|
var f, x;
|
|
13830
13820
|
return (x = (f = h.card.queryConfig) == null ? void 0 : f.filters) == null ? void 0 : x.some(
|
|
@@ -13848,7 +13838,7 @@ function yr({
|
|
|
13848
13838
|
/* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
|
|
13849
13839
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
13850
13840
|
/* @__PURE__ */ e(B, { className: "text-sm", children: n.name }),
|
|
13851
|
-
u && /* @__PURE__ */ e("button", { onClick: () => d(n), children: /* @__PURE__ */ e(
|
|
13841
|
+
u && /* @__PURE__ */ e("button", { onClick: () => d(n), children: /* @__PURE__ */ e(tc, { className: "size-3 cursor-pointer items-center justify-center text-muted-foreground hover:text-foreground" }) })
|
|
13852
13842
|
] }),
|
|
13853
13843
|
/* @__PURE__ */ e(
|
|
13854
13844
|
"div",
|
|
@@ -13912,7 +13902,7 @@ function dh({
|
|
|
13912
13902
|
id: M,
|
|
13913
13903
|
value: M
|
|
13914
13904
|
})
|
|
13915
|
-
) : [], [d]), { updateEditorFilterValue: m } =
|
|
13905
|
+
) : [], [d]), { updateEditorFilterValue: m } = le(), h = {
|
|
13916
13906
|
column: t.name,
|
|
13917
13907
|
sql: t.sql,
|
|
13918
13908
|
// this is the sql query to get the data
|
|
@@ -13972,7 +13962,7 @@ function dh({
|
|
|
13972
13962
|
);
|
|
13973
13963
|
}
|
|
13974
13964
|
function uh({ columnName: t }) {
|
|
13975
|
-
const { setEditorFilterMode: n } =
|
|
13965
|
+
const { setEditorFilterMode: n } = le(), s = E(
|
|
13976
13966
|
(i) => {
|
|
13977
13967
|
var l, c;
|
|
13978
13968
|
return (c = (l = i.card.queryConfig) == null ? void 0 : l.filterColumns) == null ? void 0 : c.find(
|
|
@@ -14054,7 +14044,7 @@ function mh({
|
|
|
14054
14044
|
children: [
|
|
14055
14045
|
/* @__PURE__ */ e("div", { className: "px-4 pt-3", children: /* @__PURE__ */ e(B, { children: c }) }),
|
|
14056
14046
|
/* @__PURE__ */ e(
|
|
14057
|
-
|
|
14047
|
+
ac,
|
|
14058
14048
|
{
|
|
14059
14049
|
initialFocus: !0,
|
|
14060
14050
|
mode: "range",
|
|
@@ -14113,7 +14103,7 @@ function hh({
|
|
|
14113
14103
|
title: "",
|
|
14114
14104
|
// not needed
|
|
14115
14105
|
dataType: t.type
|
|
14116
|
-
}, { isLoading: d, isFetching: u, isError: m, data: h } = Vl(o), f = h == null ? void 0 : h.records, { dateRange: x, setDateRange: v, initialDateRange: p } =
|
|
14106
|
+
}, { isLoading: d, isFetching: u, isError: m, data: h } = Vl(o), f = h == null ? void 0 : h.records, { dateRange: x, setDateRange: v, initialDateRange: p } = sc(f), { updateEditorFilterValue: y } = le();
|
|
14117
14107
|
function g(I) {
|
|
14118
14108
|
var S, N;
|
|
14119
14109
|
const k = {
|
|
@@ -14226,7 +14216,7 @@ function gh() {
|
|
|
14226
14216
|
}
|
|
14227
14217
|
), n = Zt(
|
|
14228
14218
|
(i) => i.previewFilterColumns
|
|
14229
|
-
), { removeColumnFromFilterColumns: s } =
|
|
14219
|
+
), { removeColumnFromFilterColumns: s } = le();
|
|
14230
14220
|
function r(i) {
|
|
14231
14221
|
s(i);
|
|
14232
14222
|
}
|
|
@@ -14243,7 +14233,7 @@ function gh() {
|
|
|
14243
14233
|
) });
|
|
14244
14234
|
}
|
|
14245
14235
|
function xh() {
|
|
14246
|
-
const t = E((c) => c.card), n = E((c) => c.showAIDialog), { setShowAIDialog: s } =
|
|
14236
|
+
const t = E((c) => c.card), n = E((c) => c.showAIDialog), { setShowAIDialog: s } = le(), { data: r, errorMessage: i, errorSql: l } = Ge(t);
|
|
14247
14237
|
return /* @__PURE__ */ a("section", { className: "flex justify-between gap-2 p-4", children: [
|
|
14248
14238
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-3", children: [
|
|
14249
14239
|
/* @__PURE__ */ e(Gs, {}),
|
|
@@ -14374,7 +14364,7 @@ function yh(t) {
|
|
|
14374
14364
|
setRunSql: h,
|
|
14375
14365
|
switchCardType: f,
|
|
14376
14366
|
setQueryConfig: x
|
|
14377
|
-
} =
|
|
14367
|
+
} = le(), v = E((q) => q.currentAssitantScope) || [], p = E((q) => q.userInputForAI), y = E((q) => q.triggerAIRun), g = E((q) => q.card), C = E(
|
|
14378
14368
|
(q) => q.selectedDatabaseName
|
|
14379
14369
|
), M = E((q) => q.selectedTableName), I = E(
|
|
14380
14370
|
(q) => q.selectedConnectionId
|
|
@@ -14386,7 +14376,7 @@ function yh(t) {
|
|
|
14386
14376
|
errorMessage: N,
|
|
14387
14377
|
refetch: T,
|
|
14388
14378
|
data: b
|
|
14389
|
-
} = Ge(g), { setTriggerAIRun: P, setCurrentAssitantScope: A, setCardConfig: z } =
|
|
14379
|
+
} = Ge(g), { setTriggerAIRun: P, setCurrentAssitantScope: A, setCardConfig: z } = le(), { selectedDatamodelName: w, connectionType: D, selectedDatamodelId: R } = It(), {
|
|
14390
14380
|
messages: L,
|
|
14391
14381
|
setMessages: F,
|
|
14392
14382
|
regenerate: O,
|
|
@@ -14396,8 +14386,8 @@ function yh(t) {
|
|
|
14396
14386
|
addToolResult: ne,
|
|
14397
14387
|
stop: ue,
|
|
14398
14388
|
clearError: ee
|
|
14399
|
-
} =
|
|
14400
|
-
transport: new
|
|
14389
|
+
} = nc({
|
|
14390
|
+
transport: new rc({
|
|
14401
14391
|
api: "https://semaphor.cloud/api/v1/assistant",
|
|
14402
14392
|
headers: () => ({
|
|
14403
14393
|
Authorization: `Bearer ${l == null ? void 0 : l.accessToken}`
|
|
@@ -14419,7 +14409,7 @@ function yh(t) {
|
|
|
14419
14409
|
prepareSendMessagesRequest: ({ messages: q, body: J }) => ({
|
|
14420
14410
|
body: {
|
|
14421
14411
|
...J,
|
|
14422
|
-
messages:
|
|
14412
|
+
messages: lc(q)
|
|
14423
14413
|
}
|
|
14424
14414
|
})
|
|
14425
14415
|
}),
|
|
@@ -14513,11 +14503,11 @@ function yh(t) {
|
|
|
14513
14503
|
s("Analyzing...");
|
|
14514
14504
|
}
|
|
14515
14505
|
function W(q) {
|
|
14516
|
-
const J =
|
|
14506
|
+
const J = oc(v, q);
|
|
14517
14507
|
ce(J);
|
|
14518
14508
|
}
|
|
14519
14509
|
function ce(q) {
|
|
14520
|
-
const J =
|
|
14510
|
+
const J = dc(q);
|
|
14521
14511
|
A(J), F((Se) => [
|
|
14522
14512
|
...Se,
|
|
14523
14513
|
{
|
|
@@ -14556,7 +14546,7 @@ function yh(t) {
|
|
|
14556
14546
|
connectionType: D || "",
|
|
14557
14547
|
datamodelId: R || ""
|
|
14558
14548
|
};
|
|
14559
|
-
if (!
|
|
14549
|
+
if (!cc(
|
|
14560
14550
|
[...S || [], ...v],
|
|
14561
14551
|
q
|
|
14562
14552
|
) || v.length === 0) {
|
|
@@ -14570,7 +14560,7 @@ function yh(t) {
|
|
|
14570
14560
|
ce(Se);
|
|
14571
14561
|
}
|
|
14572
14562
|
}
|
|
14573
|
-
const de = !["ready", "error"].includes(G), ye =
|
|
14563
|
+
const de = !["ready", "error"].includes(G), ye = ic(j);
|
|
14574
14564
|
return {
|
|
14575
14565
|
messages: L,
|
|
14576
14566
|
setMessages: F,
|
|
@@ -14602,9 +14592,9 @@ const Nh = [
|
|
|
14602
14592
|
}
|
|
14603
14593
|
];
|
|
14604
14594
|
function Kr() {
|
|
14605
|
-
const t = Vt(null), [n, s] = V(!1), [r, i] = V(rn), [l, c] = V(!1), [o, d] = V(!1), u =
|
|
14595
|
+
const t = Vt(null), [n, s] = V(!1), [r, i] = V(rn), [l, c] = V(!1), [o, d] = V(!1), u = uc(), { setCurrentAIContext: m } = mc(), { clearQueue: h } = hc(), { clearFileAttachments: f } = pc(), x = fc("editor"), v = re((se) => se.dashboard.aiContext), p = E((se) => se.card.dataSource), y = E((se) => se.actions.setCardSql), g = E((se) => se.actions.setRunSql), C = E((se) => se.showAIDialog), M = re(
|
|
14606
14596
|
(se) => se.handleOpenAssistantProfile
|
|
14607
|
-
), { setShowAIDialog: I, setCardPython: k } =
|
|
14597
|
+
), { setShowAIDialog: I, setCardPython: k } = le(), { setDataSource: S } = le(), { assistantProfile: N } = gc(), {
|
|
14608
14598
|
messages: T,
|
|
14609
14599
|
setMessages: b,
|
|
14610
14600
|
sendMessage: P,
|
|
@@ -14636,7 +14626,7 @@ function Kr() {
|
|
|
14636
14626
|
totalMessageCount: ue,
|
|
14637
14627
|
loadMoreMessages: ee,
|
|
14638
14628
|
resetMessageWindow: Z
|
|
14639
|
-
} =
|
|
14629
|
+
} = xc(T, {
|
|
14640
14630
|
maxVisibleMessages: 15,
|
|
14641
14631
|
// Reduced from 50 to 15 for better performance
|
|
14642
14632
|
initialLoadCount: 10,
|
|
@@ -14651,7 +14641,7 @@ function Kr() {
|
|
|
14651
14641
|
scrollToBottom: de,
|
|
14652
14642
|
handleScroll: ye,
|
|
14653
14643
|
resetNewMessageCount: q
|
|
14654
|
-
} =
|
|
14644
|
+
} = vc(G, {
|
|
14655
14645
|
threshold: 50,
|
|
14656
14646
|
delay: 0,
|
|
14657
14647
|
// No delay for real-time scrolling
|
|
@@ -14663,13 +14653,13 @@ function Kr() {
|
|
|
14663
14653
|
C && ((se = t.current) == null || se.focus(), m({
|
|
14664
14654
|
selectedEntities: (p == null ? void 0 : p.selectedEntities) || []
|
|
14665
14655
|
}));
|
|
14666
|
-
}, [C, p, m]),
|
|
14656
|
+
}, [C, p, m]), yc({
|
|
14667
14657
|
assistantType: "editor",
|
|
14668
14658
|
status: w,
|
|
14669
14659
|
isLoading: A,
|
|
14670
14660
|
sendMessage: P
|
|
14671
14661
|
});
|
|
14672
|
-
const { hasActiveTools: J } =
|
|
14662
|
+
const { hasActiveTools: J } = Nc(T);
|
|
14673
14663
|
function Se(se, oe) {
|
|
14674
14664
|
oe === "sql" ? (y(se), g(!0)) : oe === "python" && (k(se), g(!0));
|
|
14675
14665
|
}
|
|
@@ -14798,7 +14788,7 @@ function Kr() {
|
|
|
14798
14788
|
onClick: () => {
|
|
14799
14789
|
I(!1);
|
|
14800
14790
|
},
|
|
14801
|
-
children: /* @__PURE__ */ e(
|
|
14791
|
+
children: /* @__PURE__ */ e(bc, { className: "size-4" })
|
|
14802
14792
|
}
|
|
14803
14793
|
)
|
|
14804
14794
|
] })
|
|
@@ -14829,7 +14819,7 @@ function Kr() {
|
|
|
14829
14819
|
}
|
|
14830
14820
|
) }),
|
|
14831
14821
|
/* @__PURE__ */ e(
|
|
14832
|
-
|
|
14822
|
+
Cc,
|
|
14833
14823
|
{
|
|
14834
14824
|
messages: G,
|
|
14835
14825
|
showTools: r,
|
|
@@ -14837,7 +14827,7 @@ function Kr() {
|
|
|
14837
14827
|
showSystemMessage: l
|
|
14838
14828
|
}
|
|
14839
14829
|
),
|
|
14840
|
-
!J && /* @__PURE__ */ e(
|
|
14830
|
+
!J && /* @__PURE__ */ e(wc, { status: w, errorMessage: R })
|
|
14841
14831
|
] })
|
|
14842
14832
|
}
|
|
14843
14833
|
),
|
|
@@ -14860,23 +14850,23 @@ function Kr() {
|
|
|
14860
14850
|
/* @__PURE__ */ a("div", { className: "space-y-3", children: [
|
|
14861
14851
|
/* @__PURE__ */ a("div", { children: [
|
|
14862
14852
|
H && !N && /* @__PURE__ */ e(
|
|
14863
|
-
|
|
14853
|
+
Sc,
|
|
14864
14854
|
{
|
|
14865
14855
|
onClick: Ze,
|
|
14866
14856
|
placeholders: Nh
|
|
14867
14857
|
}
|
|
14868
14858
|
),
|
|
14869
14859
|
/* @__PURE__ */ e("div", { children: H && N && /* @__PURE__ */ e(
|
|
14870
|
-
|
|
14860
|
+
kc,
|
|
14871
14861
|
{
|
|
14872
14862
|
seedQuestions: N.seedQuestions || [],
|
|
14873
14863
|
handleSeedQuestionClick: Xe
|
|
14874
14864
|
}
|
|
14875
14865
|
) })
|
|
14876
14866
|
] }),
|
|
14877
|
-
/* @__PURE__ */ e(
|
|
14867
|
+
/* @__PURE__ */ e(Dc, { assistantType: "editor", className: "mb-3" }),
|
|
14878
14868
|
/* @__PURE__ */ e(
|
|
14879
|
-
|
|
14869
|
+
Tc,
|
|
14880
14870
|
{
|
|
14881
14871
|
ref: t,
|
|
14882
14872
|
setInput: O,
|
|
@@ -14931,7 +14921,7 @@ const Nr = (t) => {
|
|
|
14931
14921
|
removeMetricColumn: o,
|
|
14932
14922
|
removePivotByColumn: d,
|
|
14933
14923
|
removeSortByColumn: u
|
|
14934
|
-
} =
|
|
14924
|
+
} = le(), m = E((z) => z.card.type), h = t == null ? void 0 : t.id, f = Te(
|
|
14935
14925
|
(z) => {
|
|
14936
14926
|
if (!(t != null && t.config)) return [];
|
|
14937
14927
|
switch (z) {
|
|
@@ -15058,7 +15048,7 @@ const Nr = (t) => {
|
|
|
15058
15048
|
const R = f("metrics")[z];
|
|
15059
15049
|
R && r(h, R.id, {
|
|
15060
15050
|
aggregate: w,
|
|
15061
|
-
label:
|
|
15051
|
+
label: Mc(
|
|
15062
15052
|
R.name,
|
|
15063
15053
|
w
|
|
15064
15054
|
)
|
|
@@ -15138,7 +15128,7 @@ const Nr = (t) => {
|
|
|
15138
15128
|
...f("pivotBy"),
|
|
15139
15129
|
...f("metrics"),
|
|
15140
15130
|
...f("sortBy")
|
|
15141
|
-
], D = (j = t == null ? void 0 : t.config) == null ? void 0 : j.joinPlan, R =
|
|
15131
|
+
], D = (j = t == null ? void 0 : t.config) == null ? void 0 : j.joinPlan, R = Ac(
|
|
15142
15132
|
z,
|
|
15143
15133
|
w,
|
|
15144
15134
|
D
|
|
@@ -15147,7 +15137,7 @@ const Nr = (t) => {
|
|
|
15147
15137
|
R.showError && ln();
|
|
15148
15138
|
return;
|
|
15149
15139
|
}
|
|
15150
|
-
const L =
|
|
15140
|
+
const L = Ec(
|
|
15151
15141
|
z,
|
|
15152
15142
|
w
|
|
15153
15143
|
), F = f(L);
|
|
@@ -15354,7 +15344,7 @@ function wh() {
|
|
|
15354
15344
|
)).reduce((M, I) => {
|
|
15355
15345
|
const k = I.qualifiedEntityName || "Other Fields";
|
|
15356
15346
|
return M[k] || (M[k] = {
|
|
15357
|
-
label:
|
|
15347
|
+
label: Ic(I.entityName),
|
|
15358
15348
|
fields: []
|
|
15359
15349
|
}), M[k].fields.push(I), M;
|
|
15360
15350
|
}, {}), v = Object.keys(f), p = u.filter(
|
|
@@ -15767,7 +15757,7 @@ function Dh({
|
|
|
15767
15757
|
onRemove: r,
|
|
15768
15758
|
onCancel: i
|
|
15769
15759
|
}) {
|
|
15770
|
-
const { setCardConfig: l } =
|
|
15760
|
+
const { setCardConfig: l } = le();
|
|
15771
15761
|
E((A) => A.card.config);
|
|
15772
15762
|
const { columnGroups: c } = $a(), {
|
|
15773
15763
|
joinPlan: o,
|
|
@@ -16619,7 +16609,7 @@ function Ah({
|
|
|
16619
16609
|
}) {
|
|
16620
16610
|
const [s, r] = V(
|
|
16621
16611
|
[]
|
|
16622
|
-
), { updateDataSource: i } =
|
|
16612
|
+
), { updateDataSource: i } = le(), l = re((p) => p.dashboard.aiContext), c = (l == null ? void 0 : l.selectedEntities) || [];
|
|
16623
16613
|
Oe(() => {
|
|
16624
16614
|
t && r([]);
|
|
16625
16615
|
}, [t]);
|
|
@@ -16649,13 +16639,13 @@ function Ah({
|
|
|
16649
16639
|
case "view":
|
|
16650
16640
|
return /* @__PURE__ */ e(Kd, { className: "h-4 w-4" });
|
|
16651
16641
|
case "model":
|
|
16652
|
-
return /* @__PURE__ */ e(
|
|
16642
|
+
return /* @__PURE__ */ e(xd, { className: "h-4 w-4" });
|
|
16653
16643
|
case "dataset":
|
|
16654
16644
|
return /* @__PURE__ */ e(_t, { className: "h-4 w-4" });
|
|
16655
16645
|
case "file":
|
|
16656
16646
|
case "url":
|
|
16657
16647
|
case "upload":
|
|
16658
|
-
return /* @__PURE__ */ e(
|
|
16648
|
+
return /* @__PURE__ */ e(Oc, { className: "h-4 w-4" });
|
|
16659
16649
|
default:
|
|
16660
16650
|
return /* @__PURE__ */ e(_t, { className: "h-4 w-4" });
|
|
16661
16651
|
}
|
|
@@ -16825,7 +16815,7 @@ function Oh({
|
|
|
16825
16815
|
}) {
|
|
16826
16816
|
const [s, r] = V(!1), [i, l] = V(!1), [c, o] = V(!0), d = E((f) => f.card.dataSource);
|
|
16827
16817
|
Tt();
|
|
16828
|
-
const { updateDataSource: u } =
|
|
16818
|
+
const { updateDataSource: u } = le(), m = {
|
|
16829
16819
|
connectionId: "",
|
|
16830
16820
|
connectionType: "",
|
|
16831
16821
|
mode: "database",
|
|
@@ -17042,7 +17032,7 @@ function Ph({
|
|
|
17042
17032
|
mr(c);
|
|
17043
17033
|
const { setCardType: o, setCardPreferences: d, setIsDevMode: u } = E(
|
|
17044
17034
|
(k) => k.actions
|
|
17045
|
-
), { setCardCustomCfg: m, setCustomCardPreferences: h, setQueryConfig: f } =
|
|
17035
|
+
), { setCardCustomCfg: m, setCustomCardPreferences: h, setQueryConfig: f } = le(), [x, v] = Gn("chart-section-active", null), p = Le(() => x ? [
|
|
17046
17036
|
x,
|
|
17047
17037
|
...Qr.filter((k) => k !== x)
|
|
17048
17038
|
] : Qr, [x]);
|
|
@@ -17511,7 +17501,7 @@ function Bh({
|
|
|
17511
17501
|
connection_id: l.connectionId,
|
|
17512
17502
|
cardConfig: d,
|
|
17513
17503
|
cardDataSource: l,
|
|
17514
|
-
cache_config:
|
|
17504
|
+
cache_config: Rc({ card: i })
|
|
17515
17505
|
};
|
|
17516
17506
|
console.log("requestBody", u);
|
|
17517
17507
|
const m = await is(
|
|
@@ -18243,7 +18233,7 @@ function Yh({
|
|
|
18243
18233
|
"w-[140px] flex-1 text-xs",
|
|
18244
18234
|
zi && "w-[120px]"
|
|
18245
18235
|
),
|
|
18246
|
-
children:
|
|
18236
|
+
children: Fc(t)
|
|
18247
18237
|
}
|
|
18248
18238
|
),
|
|
18249
18239
|
n === "metrics" && ((Dr = $ == null ? void 0 : $.conditions) == null ? void 0 : Dr.length) && !P && /* @__PURE__ */ e(nt, { children: /* @__PURE__ */ a(Ue, { children: [
|
|
@@ -18354,7 +18344,7 @@ function Yh({
|
|
|
18354
18344
|
}
|
|
18355
18345
|
function Uh({ concept: t }) {
|
|
18356
18346
|
return /* @__PURE__ */ e(nt, { children: /* @__PURE__ */ a(Ue, { delayDuration: 300, children: [
|
|
18357
|
-
/* @__PURE__ */ e(qe, { asChild: !0, children: /* @__PURE__ */ e(
|
|
18347
|
+
/* @__PURE__ */ e(qe, { asChild: !0, children: /* @__PURE__ */ e(Pc, { className: "size-4 text-muted-foreground hover:text-foreground" }) }),
|
|
18358
18348
|
/* @__PURE__ */ e(Qe, { side: "right", align: "start", className: "p-3", children: (() => {
|
|
18359
18349
|
switch (t) {
|
|
18360
18350
|
case "groupBy":
|
|
@@ -18450,7 +18440,7 @@ function ys({
|
|
|
18450
18440
|
}) {
|
|
18451
18441
|
const { isOver: c, setNodeRef: o } = nr({
|
|
18452
18442
|
id: t
|
|
18453
|
-
}), { updateSortByColumn: d } =
|
|
18443
|
+
}), { updateSortByColumn: d } = le(), u = E((v) => v.card), m = E((v) => v.card.type), h = n.length > 0, f = (v, p) => {
|
|
18454
18444
|
var g;
|
|
18455
18445
|
!((g = u.config) != null && g.sortByColumns) || u.config.sortByColumns.findIndex(
|
|
18456
18446
|
(C) => C.id === v
|
|
@@ -18636,7 +18626,7 @@ Difference: Primary - Secondary`,
|
|
|
18636
18626
|
};
|
|
18637
18627
|
function Wh() {
|
|
18638
18628
|
var o, d, u, m, h, f, x, v, p, y;
|
|
18639
|
-
const t = E((g) => g.card), { setCardPreferences: n } =
|
|
18629
|
+
const t = E((g) => g.card), { setCardPreferences: n } = le(), s = ((o = t.config) == null ? void 0 : o.metricColumns) || [], r = ((d = t.config) == null ? void 0 : d.groupByColumns) || [];
|
|
18640
18630
|
if (!(t.type === "kpi" && (s.length >= 2 && r.length === 0 || s.length >= 1 && r.length > 0)))
|
|
18641
18631
|
return null;
|
|
18642
18632
|
const l = ((m = (u = t.preferences) == null ? void 0 : u.kpiVisualOptions) == null ? void 0 : m.metricComparison) || {}, c = (g) => {
|
|
@@ -18655,7 +18645,7 @@ function Wh() {
|
|
|
18655
18645
|
};
|
|
18656
18646
|
return /* @__PURE__ */ a(be, { value: "comparison", className: "border-none", children: [
|
|
18657
18647
|
/* @__PURE__ */ e(Ce, { className: "flex items-center gap-2 py-2 text-sm hover:no-underline", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
18658
|
-
/* @__PURE__ */ e(
|
|
18648
|
+
/* @__PURE__ */ e(Cd, { className: "h-4 w-4" }),
|
|
18659
18649
|
/* @__PURE__ */ e("span", { children: "Comparison" })
|
|
18660
18650
|
] }) }),
|
|
18661
18651
|
/* @__PURE__ */ a(we, { className: "space-y-4 pb-4 pt-2", children: [
|
|
@@ -18967,7 +18957,7 @@ function Wh() {
|
|
|
18967
18957
|
}
|
|
18968
18958
|
function Kh() {
|
|
18969
18959
|
var i, l;
|
|
18970
|
-
const t = E((c) => c.card), { setCardPreferences: n } =
|
|
18960
|
+
const t = E((c) => c.card), { setCardPreferences: n } = le();
|
|
18971
18961
|
if (t.type !== "kpi")
|
|
18972
18962
|
return null;
|
|
18973
18963
|
const s = ((l = (i = t.preferences) == null ? void 0 : i.kpiVisualOptions) == null ? void 0 : l.formatOptions) || {};
|
|
@@ -19032,7 +19022,7 @@ function Jh({
|
|
|
19032
19022
|
children: [
|
|
19033
19023
|
/* @__PURE__ */ a(be, { value: "fields", className: "border-b-0", children: [
|
|
19034
19024
|
/* @__PURE__ */ e(Ce, { className: "flex w-full items-center gap-2 py-2 text-sm font-medium hover:no-underline", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
19035
|
-
/* @__PURE__ */ e(
|
|
19025
|
+
/* @__PURE__ */ e(Lc, { className: "h-4 w-4 text-muted-foreground" }),
|
|
19036
19026
|
/* @__PURE__ */ e("span", { children: "FIELDS" })
|
|
19037
19027
|
] }) }),
|
|
19038
19028
|
/* @__PURE__ */ a(we, { className: "space-y-4 pt-2", children: [
|
|
@@ -19101,7 +19091,7 @@ function Hh({
|
|
|
19101
19091
|
metricsFields: i,
|
|
19102
19092
|
sortByFields: l
|
|
19103
19093
|
}) {
|
|
19104
|
-
const c = E((h) => h.showAIDialog), o = s.length > 0 || r.length > 0 || i.length > 0, { setShowAIDialog: d } =
|
|
19094
|
+
const c = E((h) => h.showAIDialog), o = s.length > 0 || r.length > 0 || i.length > 0, { setShowAIDialog: d } = le(), u = E((h) => h.card), { data: m } = Ge(u);
|
|
19105
19095
|
return /* @__PURE__ */ a(
|
|
19106
19096
|
"div",
|
|
19107
19097
|
{
|
|
@@ -19134,7 +19124,7 @@ function Hh({
|
|
|
19134
19124
|
className: "h-8",
|
|
19135
19125
|
size: "sm",
|
|
19136
19126
|
children: [
|
|
19137
|
-
/* @__PURE__ */ e(
|
|
19127
|
+
/* @__PURE__ */ e(zc, { className: "mr-2 size-4" }),
|
|
19138
19128
|
"AI"
|
|
19139
19129
|
]
|
|
19140
19130
|
}
|
|
@@ -19398,7 +19388,7 @@ function Zh({
|
|
|
19398
19388
|
children: t
|
|
19399
19389
|
}
|
|
19400
19390
|
) }),
|
|
19401
|
-
/* @__PURE__ */ e(
|
|
19391
|
+
/* @__PURE__ */ e(_c, { children: t })
|
|
19402
19392
|
] }) });
|
|
19403
19393
|
}
|
|
19404
19394
|
const Xh = (t) => {
|
|
@@ -19453,7 +19443,7 @@ function tp({
|
|
|
19453
19443
|
".",
|
|
19454
19444
|
t.name
|
|
19455
19445
|
] }) }) : r,
|
|
19456
|
-
/* @__PURE__ */ e(
|
|
19446
|
+
/* @__PURE__ */ e(Vc, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
|
|
19457
19447
|
]
|
|
19458
19448
|
}
|
|
19459
19449
|
) }),
|
|
@@ -19706,7 +19696,7 @@ function np({
|
|
|
19706
19696
|
}
|
|
19707
19697
|
}, [t, n]);
|
|
19708
19698
|
return /* @__PURE__ */ e(
|
|
19709
|
-
|
|
19699
|
+
jc,
|
|
19710
19700
|
{
|
|
19711
19701
|
value: c,
|
|
19712
19702
|
onChange: (u) => {
|
|
@@ -20345,7 +20335,7 @@ function hp({
|
|
|
20345
20335
|
updateConditionFields: x
|
|
20346
20336
|
},
|
|
20347
20337
|
A.id
|
|
20348
|
-
), P =
|
|
20338
|
+
), P = Bc(t);
|
|
20349
20339
|
return /* @__PURE__ */ a("div", { className: "space-y-4", children: [
|
|
20350
20340
|
/* @__PURE__ */ e(Bt, { children: /* @__PURE__ */ e(ya, { className: "p-4", children: /* @__PURE__ */ a("div", { className: "space-y-4", children: [
|
|
20351
20341
|
o ? /* @__PURE__ */ a("div", { className: "flex items-center justify-center p-4", children: [
|
|
@@ -20519,7 +20509,7 @@ function fp({
|
|
|
20519
20509
|
}
|
|
20520
20510
|
if (b !== k.qualifiedEntityName && k.qualifiedEntityName)
|
|
20521
20511
|
if (o) {
|
|
20522
|
-
if (!
|
|
20512
|
+
if (!Gc(
|
|
20523
20513
|
b,
|
|
20524
20514
|
k.qualifiedEntityName,
|
|
20525
20515
|
o
|
|
@@ -20662,7 +20652,7 @@ function xp({
|
|
|
20662
20652
|
r == null || r.role;
|
|
20663
20653
|
const [i, l] = V(!1), c = E((g) => g.isDevMode), o = E((g) => g.card), d = E((g) => g.card.dataSource);
|
|
20664
20654
|
Un(o);
|
|
20665
|
-
const { config: u } = cr(or).tokenProps, m = (u == null ? void 0 : u.showAdvancedMode) !== !1, { setIsDevMode: h } =
|
|
20655
|
+
const { config: u } = cr(or).tokenProps, m = (u == null ? void 0 : u.showAdvancedMode) !== !1, { setIsDevMode: h } = le(), f = E((g) => g.showAIDialog), x = E((g) => g.frame), v = qt((g) => g.selectedVisual), p = (v == null ? void 0 : v.id) === (x == null ? void 0 : x.id), { setShowAIDialog: y } = le();
|
|
20666
20656
|
return /* @__PURE__ */ a(
|
|
20667
20657
|
"div",
|
|
20668
20658
|
{
|
|
@@ -20758,7 +20748,7 @@ const yp = [
|
|
|
20758
20748
|
];
|
|
20759
20749
|
function Np() {
|
|
20760
20750
|
var d, u;
|
|
20761
|
-
const t = E((m) => m.card), { updateRowLimit: n } =
|
|
20751
|
+
const t = E((m) => m.card), { updateRowLimit: n } = le(), [s, r] = V(!1), [i, l] = V(""), c = (m) => {
|
|
20762
20752
|
if (m === "custom") {
|
|
20763
20753
|
r(!0);
|
|
20764
20754
|
return;
|
|
@@ -20997,7 +20987,7 @@ function Sp({
|
|
|
20997
20987
|
] })
|
|
20998
20988
|
] }),
|
|
20999
20989
|
u && /* @__PURE__ */ a("div", { className: "flex flex-col items-center space-y-4 py-6", children: [
|
|
21000
|
-
/* @__PURE__ */ e(
|
|
20990
|
+
/* @__PURE__ */ e(md, { className: "h-12 w-12 text-green-600" }),
|
|
21001
20991
|
/* @__PURE__ */ a("div", { className: "text-center", children: [
|
|
21002
20992
|
/* @__PURE__ */ e("p", { className: "text-lg font-medium", children: "Thank you for your feedback!" }),
|
|
21003
20993
|
/* @__PURE__ */ a("p", { className: "mt-2 text-sm text-muted-foreground", children: [
|
|
@@ -21033,7 +21023,7 @@ function kp({
|
|
|
21033
21023
|
// setActiveCard,
|
|
21034
21024
|
}) {
|
|
21035
21025
|
var $;
|
|
21036
|
-
const x = E((Y) => Y.card), v = re((Y) => Y.filterValues), p = (v == null ? void 0 : v.length) || 0, { updateCardConfig: y, setCard: g, updateCardInFrame: C, setCardId: M } =
|
|
21026
|
+
const x = E((Y) => Y.card), v = re((Y) => Y.filterValues), p = (v == null ? void 0 : v.length) || 0, { updateCardConfig: y, setCard: g, updateCardInFrame: C, setCardId: M } = le(), { updateCardId: I } = Dt(), [k, S] = V(null), N = E((Y) => Y.showAIDialog), [T, b] = V(!1), [P, A] = V(!1), [z, w] = V(null), { isConsoleMode: D } = Is(), { config: R } = cr(or).tokenProps, L = (R == null ? void 0 : R.showInfoTab) !== !1, F = E(
|
|
21037
21027
|
(Y) => {
|
|
21038
21028
|
var de;
|
|
21039
21029
|
return ((de = Y.card.customCardPreferences) == null ? void 0 : de.url) && Y.card.type === "custom";
|
|
@@ -21097,7 +21087,7 @@ function kp({
|
|
|
21097
21087
|
($e) => $e.label === q
|
|
21098
21088
|
), De = Se || Ee;
|
|
21099
21089
|
return De ? {
|
|
21100
|
-
id:
|
|
21090
|
+
id: Uc("sortBy", De),
|
|
21101
21091
|
name: De.name,
|
|
21102
21092
|
dataType: De.dataType,
|
|
21103
21093
|
label: De.label,
|
|
@@ -21160,7 +21150,7 @@ function kp({
|
|
|
21160
21150
|
tooltip: "Open Chart Settings",
|
|
21161
21151
|
onClick: () => b(!0),
|
|
21162
21152
|
className: "absolute right-5 top-1/2 z-40 size-10 -translate-y-1/2 rounded-full border border-border bg-background shadow-lg hover:bg-muted focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
21163
|
-
children: /* @__PURE__ */ e(
|
|
21153
|
+
children: /* @__PURE__ */ e($c, { className: "size-4" })
|
|
21164
21154
|
}
|
|
21165
21155
|
),
|
|
21166
21156
|
/* @__PURE__ */ a("div", { className: "mt-3 flex grow flex-col", children: [
|
|
@@ -21186,7 +21176,7 @@ function kp({
|
|
|
21186
21176
|
{
|
|
21187
21177
|
value: x.id,
|
|
21188
21178
|
onSave: (Y) => {
|
|
21189
|
-
const de =
|
|
21179
|
+
const de = Yc(Y);
|
|
21190
21180
|
if (!de) {
|
|
21191
21181
|
S("Card ID cannot be empty");
|
|
21192
21182
|
return;
|
|
@@ -21314,7 +21304,7 @@ function Mp() {
|
|
|
21314
21304
|
var ue, ee;
|
|
21315
21305
|
const [t, n] = V(
|
|
21316
21306
|
"chart"
|
|
21317
|
-
), [s, r] = V(!1), [i, l] = V(!1), [c, o] = V(!0), d = E((Z) => Z.showAIDialog), u = re((Z) => Z.isVisualEditing), { setCardType: m } =
|
|
21307
|
+
), [s, r] = V(!1), [i, l] = V(!1), [c, o] = V(!0), d = E((Z) => Z.showAIDialog), u = re((Z) => Z.isVisualEditing), { setCardType: m } = le(), h = E((Z) => Z.card.type);
|
|
21318
21308
|
Oe(() => Tp(), []);
|
|
21319
21309
|
const f = () => {
|
|
21320
21310
|
console.log("Accept clicked - would save/apply current configuration");
|
|
@@ -21330,7 +21320,7 @@ function Mp() {
|
|
|
21330
21320
|
E((Z) => Z.activeTabCardId), E(
|
|
21331
21321
|
(Z) => Z.actions.getAvailableFields
|
|
21332
21322
|
);
|
|
21333
|
-
const { addCard: M, removeCard: I, updateCard: k, setActiveCard: S, updateFilters: N } =
|
|
21323
|
+
const { addCard: M, removeCard: I, updateCard: k, setActiveCard: S, updateFilters: N } = le(), {
|
|
21334
21324
|
columns: T = [],
|
|
21335
21325
|
isLoading: b,
|
|
21336
21326
|
error: P
|
|
@@ -21449,7 +21439,7 @@ function Mp() {
|
|
|
21449
21439
|
);
|
|
21450
21440
|
}
|
|
21451
21441
|
function Ap({ authToken: t, onSave: n, onClose: s }) {
|
|
21452
|
-
const r = Vt(null), i = E((C) => C.showAIDialog), l = E((C) => C.isDevMode), { setAuthToken: c } = Dt(), { setShowAIDialog: o, setOnSave: d, setOnClose: u } =
|
|
21442
|
+
const r = Vt(null), i = E((C) => C.showAIDialog), l = E((C) => C.isDevMode), { setAuthToken: c } = Dt(), { setShowAIDialog: o, setOnSave: d, setOnClose: u } = le(), {
|
|
21453
21443
|
handleDragOver: m,
|
|
21454
21444
|
handleDragEnd: h,
|
|
21455
21445
|
handleDragStart: f,
|
|
@@ -21559,7 +21549,7 @@ function Ep() {
|
|
|
21559
21549
|
}
|
|
21560
21550
|
function Ip({ column: t }) {
|
|
21561
21551
|
return /* @__PURE__ */ e(nt, { children: /* @__PURE__ */ a(Ue, { children: [
|
|
21562
|
-
/* @__PURE__ */ e(qe, { className: "shrink-0", asChild: !0, children: Rt(t.data_type) ? /* @__PURE__ */ e(
|
|
21552
|
+
/* @__PURE__ */ e(qe, { className: "shrink-0", asChild: !0, children: Rt(t.data_type) ? /* @__PURE__ */ e(qc, { className: "size-3 text-muted-foreground" }) : Xt(t.data_type) ? /* @__PURE__ */ e(jt, { className: "size-3 text-muted-foreground" }) : Ft(t.data_type) ? /* @__PURE__ */ e(ft, { className: "size-3 text-muted-foreground" }) : Wc(t.data_type) ? /* @__PURE__ */ e(ma, { className: "size-3 text-muted-foreground" }) : t.data_type.startsWith("json") ? /* @__PURE__ */ e(ud, { className: "size-3 text-muted-foreground" }) : /* @__PURE__ */ e(Kc, { className: "size-3 text-muted-foreground" }) }),
|
|
21563
21553
|
/* @__PURE__ */ e(Qe, { children: /* @__PURE__ */ e("p", { className: "text-xs", children: t.data_type }) })
|
|
21564
21554
|
] }) });
|
|
21565
21555
|
}
|
|
@@ -21718,7 +21708,7 @@ function Pp() {
|
|
|
21718
21708
|
var r;
|
|
21719
21709
|
const t = re(
|
|
21720
21710
|
(i) => i.actions.setShowFilters
|
|
21721
|
-
), n =
|
|
21711
|
+
), n = Jc(), s = n && ((r = n.dataSource) == null ? void 0 : r.selectedEntities) && n.dataSource.selectedEntities.length > 0;
|
|
21722
21712
|
return /* @__PURE__ */ a("section", { className: "relative flex min-w-[320px] grow flex-col border-l px-1", children: [
|
|
21723
21713
|
/* @__PURE__ */ a("div", { className: "mt-4 flex items-center justify-between gap-2 px-3", children: [
|
|
21724
21714
|
/* @__PURE__ */ e(B, { className: "px-2 text-lg", children: "Filters" }),
|
|
@@ -21787,7 +21777,7 @@ function zp() {
|
|
|
21787
21777
|
children: [
|
|
21788
21778
|
/* @__PURE__ */ a("section", { className: "flex grow flex-col", children: [
|
|
21789
21779
|
s && /* @__PURE__ */ e(Lp, {}),
|
|
21790
|
-
/* @__PURE__ */ e(
|
|
21780
|
+
/* @__PURE__ */ e(Hc, {})
|
|
21791
21781
|
] }),
|
|
21792
21782
|
t && /* @__PURE__ */ e("div", { role: "filter-aside-container", className: "flex", children: /* @__PURE__ */ e(Pp, {}) })
|
|
21793
21783
|
]
|
|
@@ -21821,7 +21811,7 @@ function _p() {
|
|
|
21821
21811
|
}
|
|
21822
21812
|
),
|
|
21823
21813
|
/* @__PURE__ */ e(
|
|
21824
|
-
|
|
21814
|
+
Qc,
|
|
21825
21815
|
{
|
|
21826
21816
|
onChange: (i) => {
|
|
21827
21817
|
if (i)
|
|
@@ -21861,13 +21851,13 @@ function $p({
|
|
|
21861
21851
|
if (typeof window > "u")
|
|
21862
21852
|
return null;
|
|
21863
21853
|
const { preferences: r } = s;
|
|
21864
|
-
return /* @__PURE__ */ e(hs, { FallbackComponent: Gl, children: /* @__PURE__ */ a(
|
|
21865
|
-
/* @__PURE__ */ e(
|
|
21866
|
-
/* @__PURE__ */ e(
|
|
21854
|
+
return /* @__PURE__ */ e(hs, { FallbackComponent: Gl, children: /* @__PURE__ */ a(Zc, { dashboardProps: s, children: [
|
|
21855
|
+
/* @__PURE__ */ e(Xc, {}),
|
|
21856
|
+
/* @__PURE__ */ e(ed, { children: /* @__PURE__ */ a(td, { preferences: r, children: [
|
|
21867
21857
|
/* @__PURE__ */ e(_p, {}),
|
|
21868
21858
|
/* @__PURE__ */ a("main", { className: "relative flex h-full w-full flex-col", children: [
|
|
21869
21859
|
t && /* @__PURE__ */ e(Wu, {}),
|
|
21870
|
-
/* @__PURE__ */ a(
|
|
21860
|
+
/* @__PURE__ */ a(ad, { ...s, type: "dashboard", children: [
|
|
21871
21861
|
/* @__PURE__ */ e(Ep, {}),
|
|
21872
21862
|
/* @__PURE__ */ e(zp, {})
|
|
21873
21863
|
] })
|