react-semaphor 0.0.505 → 0.0.507
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-qJpm9vOe.js → dashboard-plus-BFfj_pPX.js} +2 -2
- package/dist/chunks/{dashboard-plus-AeZY3NhM.js → dashboard-plus-CIhFBA0f.js} +389 -389
- package/dist/chunks/{index-CPLZoYFD.js → index-B4zq9EOh.js} +3933 -4053
- package/dist/chunks/{index-DiwXdNV5.js → index-B6aFim6x.js} +104 -104
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/dashboard.d.ts +2 -2
- package/dist/types/main.d.ts +4 -3
- package/dist/types/surfboard.d.ts +2 -2
- package/dist/types/types.d.ts +2 -2
- package/package.json +1 -1
|
@@ -4,18 +4,18 @@ var Ga = (t) => {
|
|
|
4
4
|
var Rn = (t, a, n) => a.has(t) || Ga("Cannot " + n);
|
|
5
5
|
var ue = (t, a, n) => (Rn(t, a, "read from private field"), n ? n.call(t) : a.get(t)), Ae = (t, a, n) => a.has(t) ? Ga("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(t) : a.set(t, n), Se = (t, a, n, r) => (Rn(t, a, "write to private field"), r ? r.call(t, n) : a.set(t, n), n), ze = (t, a, n) => (Rn(t, a, "access private method"), n);
|
|
6
6
|
import { jsxs as s, jsx as e, Fragment as se } from "react/jsx-runtime";
|
|
7
|
-
import { z as _r, A as Un, B as $r, Q as us, C as ms, E as Gr, F as Jr, G as Hr, H as Ur, I as Yr, J as Kr, K as Ja, L as Ha, M as Qr, N as Wr, O as q, P as ua, v as G, w as It, R as lt, T as pn, U as hs, V as P, W as ke, X as fn, Y as gn, Z as yn, _ as bn, $ as H, a0 as we, a1 as ps, a2 as fs, a3 as gs, a4 as ae, a5 as ys, a6 as bs, a7 as vs, a8 as Zr, a9 as Ua, aa as _, ab as ma, ac as Xr, ad as le, ae as oe, af as ce, ag as de, ah as nt, ai as Ge, aj as U, ak as xs, al as Ye, am as Ke, an as Et, ao as Ze, ap as gt, aq as yt, ar as At, as as bt, at, au as Ns, av as Ut, aw as ha, ax as Cs, ay as pa, az as Yn, aA as ws, x as T, aB as Ss, aC as Mt, aD as jt, aE as vt, aF as vn, aG as xn, aH as Nn, aI as Cn, aJ as wn, aK as Sn, aL as Yt, aM as qt, t as Pe, aN as ks, aO as Ms, aP as Ts, aQ as Ds, l as Os, k as Is, f as qe, aR as ei, e as _e, aS as ti, g as pt, h as $e, aT as Es, j as ni, aU as ai, aV as si, aW as it, aX as st, aY as As, aZ as ri, y as X, d as zs, a_ as Bt, a$ as Xe, b0 as ii, b1 as Kn, b2 as fa, b3 as ga, b4 as Kt, b5 as He, b6 as Fs, r as sn, p as Ya, b7 as Ee, b8 as li, b9 as xt, ba as oi, bb as ci, bc as di, bd as ui, be as Ls, bf as mi, bg as kn, bh as hi, bi as pi, bj as Qn, bk as ve, bl as et, bm as Ce, bn as tt, bo as fi, bp as Rs, bq as Vs, br as js, bs as gi, bt as yi, bu as bi, bv as vi, bw as Vn, bx as xi, by as Ka, bz as Ni, bA as Qa, bB as Ci, bC as wi, bD as Si, bE as ki, bF as qs, bG as Mi, bH as ya, bI as Bs, bJ as Mn, bK as Ps, bL as wt, bM as _s, bN as Ti, bO as $s, bP as Tn, bQ as Di, bR as Oi, bS as Gs, bT as Js, bU as Dn, bV as Hs, bW as Ii, bX as Qt, bY as Wt, bZ as Te, b_ as an, b$ as Ei, c0 as Ai, c1 as zi, c2 as ba, c3 as Us, c4 as Fi, c5 as rn, c6 as Ys, c7 as ln, c8 as Ks, c9 as Li, ca as Ri, cb as Vi, cc as Qs, cd as ji, ce as ot, cf as he, cg as pe, ch as fe, ci as On, cj as qi, ck as Bi, cl as Pi, cm as _i, q as $i, cn as Wa, co as Ws, cp as Gi, cq as Ji, cr as Hi, cs as Zs, ct as va, cu as zt, cv as xa, cw as Ue, cx as Ui, cy as Ft, cz as Xs, cA as Yi, cB as Ki, cC as Qi, cD as Wi, cE as Za, cF as Zi, cG as Xi, cH as el, cI as tl, cJ as nl, cK as al, cL as In, cM as sl, cN as rl, cO as il, cP as ll, cQ as ol, cR as er, cS as Wn, cT as jn, cU as cl, cV as Pt, cW as Je, cX as ge, cY as dl, cZ as ul, c_ as ml, c$ as Tt, d0 as Be, d1 as hl, d2 as pl, d3 as fl, d4 as
|
|
7
|
+
import { z as _r, A as Un, B as $r, Q as us, C as ms, E as Gr, F as Jr, G as Hr, H as Ur, I as Yr, J as Kr, K as Ja, L as Ha, M as Qr, N as Wr, O as q, P as ua, v as G, w as It, R as lt, T as pn, U as hs, V as P, W as ke, X as fn, Y as gn, Z as yn, _ as bn, $ as H, a0 as we, a1 as ps, a2 as fs, a3 as gs, a4 as ae, a5 as ys, a6 as bs, a7 as vs, a8 as Zr, a9 as Ua, aa as _, ab as ma, ac as Xr, ad as le, ae as oe, af as ce, ag as de, ah as nt, ai as Ge, aj as U, ak as xs, al as Ye, am as Ke, an as Et, ao as Ze, ap as gt, aq as yt, ar as At, as as bt, at, au as Ns, av as Ut, aw as ha, ax as Cs, ay as pa, az as Yn, aA as ws, x as T, aB as Ss, aC as Mt, aD as jt, aE as vt, aF as vn, aG as xn, aH as Nn, aI as Cn, aJ as wn, aK as Sn, aL as Yt, aM as qt, t as Pe, aN as ks, aO as Ms, aP as Ts, aQ as Ds, l as Os, k as Is, f as qe, aR as ei, e as _e, aS as ti, g as pt, h as $e, aT as Es, j as ni, aU as ai, aV as si, aW as it, aX as st, aY as As, aZ as ri, y as X, d as zs, a_ as Bt, a$ as Xe, b0 as ii, b1 as Kn, b2 as fa, b3 as ga, b4 as Kt, b5 as He, b6 as Fs, r as sn, p as Ya, b7 as Ee, b8 as li, b9 as xt, ba as oi, bb as ci, bc as di, bd as ui, be as Ls, bf as mi, bg as kn, bh as hi, bi as pi, bj as Qn, bk as ve, bl as et, bm as Ce, bn as tt, bo as fi, bp as Rs, bq as Vs, br as js, bs as gi, bt as yi, bu as bi, bv as vi, bw as Vn, bx as xi, by as Ka, bz as Ni, bA as Qa, bB as Ci, bC as wi, bD as Si, bE as ki, bF as qs, bG as Mi, bH as ya, bI as Bs, bJ as Mn, bK as Ps, bL as wt, bM as _s, bN as Ti, bO as $s, bP as Tn, bQ as Di, bR as Oi, bS as Gs, bT as Js, bU as Dn, bV as Hs, bW as Ii, bX as Qt, bY as Wt, bZ as Te, b_ as an, b$ as Ei, c0 as Ai, c1 as zi, c2 as ba, c3 as Us, c4 as Fi, c5 as rn, c6 as Ys, c7 as ln, c8 as Ks, c9 as Li, ca as Ri, cb as Vi, cc as Qs, cd as ji, ce as ot, cf as he, cg as pe, ch as fe, ci as On, cj as qi, ck as Bi, cl as Pi, cm as _i, q as $i, cn as Wa, co as Ws, cp as Gi, cq as Ji, cr as Hi, cs as Zs, ct as va, cu as zt, cv as xa, cw as Ue, cx as Ui, cy as Ft, cz as Xs, cA as Yi, cB as Ki, cC as Qi, cD as Wi, cE as Za, cF as Zi, cG as Xi, cH as el, cI as tl, cJ as nl, cK as al, cL as In, cM as sl, cN as rl, cO as il, cP as ll, cQ as ol, cR as er, cS as Wn, cT as jn, cU as cl, cV as Pt, cW as Je, cX as ge, cY as dl, cZ as ul, c_ as ml, c$ as Tt, d0 as Be, d1 as hl, d2 as pl, d3 as fl, d4 as gl, d5 as Zn, d6 as Xa, d7 as Xn, d8 as ea, d9 as on, da as Dt, db as _t, dc as yl, dd as tr, de as bl, df as vl, dg as xl, dh as Nl, di as Cl, dj as wl } from "./index-B4zq9EOh.js";
|
|
8
8
|
import * as Ie from "react";
|
|
9
|
-
import Le, { useState as V, useMemo as rt, useRef as ft, useCallback as Ne, useEffect as be, Suspense as
|
|
9
|
+
import Le, { useState as V, useMemo as rt, useRef as ft, useCallback as Ne, useEffect as be, Suspense as Sl } from "react";
|
|
10
10
|
import "react-dom";
|
|
11
11
|
function es(t, a) {
|
|
12
12
|
return t.filter((n) => !a.includes(n));
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function kl(t, a, n) {
|
|
15
15
|
const r = t.slice(0);
|
|
16
16
|
return r[a] = n, r;
|
|
17
17
|
}
|
|
18
|
-
var dt, De, St, kt, Oe, We, Gt, Jt, Ht, xe, ta, na, aa, sa, ra, ds,
|
|
18
|
+
var dt, De, St, kt, Oe, We, Gt, Jt, Ht, xe, ta, na, aa, sa, ra, ds, Ml = (ds = class extends _r {
|
|
19
19
|
constructor(a, n, r) {
|
|
20
20
|
super();
|
|
21
21
|
Ae(this, xe);
|
|
@@ -122,7 +122,7 @@ var dt, De, St, kt, Oe, We, Gt, Jt, Ht, xe, ta, na, aa, sa, ra, ds, kl = (ds = c
|
|
|
122
122
|
}), r;
|
|
123
123
|
}, sa = function(a, n) {
|
|
124
124
|
const r = ue(this, Oe).indexOf(a);
|
|
125
|
-
r !== -1 && (Se(this, De,
|
|
125
|
+
r !== -1 && (Se(this, De, kl(ue(this, De), r, n)), ze(this, xe, ra).call(this));
|
|
126
126
|
}, ra = function() {
|
|
127
127
|
var a;
|
|
128
128
|
if (this.hasListeners()) {
|
|
@@ -134,7 +134,7 @@ var dt, De, St, kt, Oe, We, Gt, Jt, Ht, xe, ta, na, aa, sa, ra, ds, kl = (ds = c
|
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
136
|
}, ds);
|
|
137
|
-
function
|
|
137
|
+
function Tl({
|
|
138
138
|
queries: t,
|
|
139
139
|
...a
|
|
140
140
|
}, n) {
|
|
@@ -151,7 +151,7 @@ function Ml({
|
|
|
151
151
|
Hr(p), Ur(p, l);
|
|
152
152
|
}), Yr(l);
|
|
153
153
|
const [u] = Ie.useState(
|
|
154
|
-
() => new
|
|
154
|
+
() => new Ml(
|
|
155
155
|
r,
|
|
156
156
|
o,
|
|
157
157
|
a
|
|
@@ -212,7 +212,7 @@ function Ml({
|
|
|
212
212
|
* This source code is licensed under the ISC license.
|
|
213
213
|
* See the LICENSE file in the root directory of this source tree.
|
|
214
214
|
*/
|
|
215
|
-
const
|
|
215
|
+
const Dl = q("AlignCenter", [
|
|
216
216
|
["path", { d: "M17 12H7", key: "16if0g" }],
|
|
217
217
|
["path", { d: "M19 18H5", key: "18s9l3" }],
|
|
218
218
|
["path", { d: "M21 6H3", key: "1jwq7v" }]
|
|
@@ -223,7 +223,7 @@ const Tl = q("AlignCenter", [
|
|
|
223
223
|
* This source code is licensed under the ISC license.
|
|
224
224
|
* See the LICENSE file in the root directory of this source tree.
|
|
225
225
|
*/
|
|
226
|
-
const
|
|
226
|
+
const Ol = q("AlignLeft", [
|
|
227
227
|
["path", { d: "M15 12H3", key: "6jk70r" }],
|
|
228
228
|
["path", { d: "M17 18H3", key: "1amg6g" }],
|
|
229
229
|
["path", { d: "M21 6H3", key: "1jwq7v" }]
|
|
@@ -234,7 +234,7 @@ const Dl = q("AlignLeft", [
|
|
|
234
234
|
* This source code is licensed under the ISC license.
|
|
235
235
|
* See the LICENSE file in the root directory of this source tree.
|
|
236
236
|
*/
|
|
237
|
-
const
|
|
237
|
+
const Il = q("AlignRight", [
|
|
238
238
|
["path", { d: "M21 12H9", key: "dn1m92" }],
|
|
239
239
|
["path", { d: "M21 18H7", key: "1ygte8" }],
|
|
240
240
|
["path", { d: "M21 6H3", key: "1jwq7v" }]
|
|
@@ -245,7 +245,7 @@ const Ol = q("AlignRight", [
|
|
|
245
245
|
* This source code is licensed under the ISC license.
|
|
246
246
|
* See the LICENSE file in the root directory of this source tree.
|
|
247
247
|
*/
|
|
248
|
-
const
|
|
248
|
+
const El = q("ArrowDown10", [
|
|
249
249
|
["path", { d: "m3 16 4 4 4-4", key: "1co6wj" }],
|
|
250
250
|
["path", { d: "M7 20V4", key: "1yoxec" }],
|
|
251
251
|
["path", { d: "M17 10V4h-2", key: "zcsr5x" }],
|
|
@@ -258,7 +258,7 @@ const Il = q("ArrowDown10", [
|
|
|
258
258
|
* This source code is licensed under the ISC license.
|
|
259
259
|
* See the LICENSE file in the root directory of this source tree.
|
|
260
260
|
*/
|
|
261
|
-
const
|
|
261
|
+
const Al = q("ArrowDownZA", [
|
|
262
262
|
["path", { d: "m3 16 4 4 4-4", key: "1co6wj" }],
|
|
263
263
|
["path", { d: "M7 4v16", key: "1glfcx" }],
|
|
264
264
|
["path", { d: "M15 4h5l-5 6h5", key: "8asdl1" }],
|
|
@@ -281,7 +281,7 @@ const En = q("ArrowDown", [
|
|
|
281
281
|
* This source code is licensed under the ISC license.
|
|
282
282
|
* See the LICENSE file in the root directory of this source tree.
|
|
283
283
|
*/
|
|
284
|
-
const
|
|
284
|
+
const zl = q("ArrowLeftRight", [
|
|
285
285
|
["path", { d: "M8 3 4 7l4 4", key: "9rb6wj" }],
|
|
286
286
|
["path", { d: "M4 7h16", key: "6tx8e3" }],
|
|
287
287
|
["path", { d: "m16 21 4-4-4-4", key: "siv7j2" }],
|
|
@@ -293,7 +293,7 @@ const Al = q("ArrowLeftRight", [
|
|
|
293
293
|
* This source code is licensed under the ISC license.
|
|
294
294
|
* See the LICENSE file in the root directory of this source tree.
|
|
295
295
|
*/
|
|
296
|
-
const
|
|
296
|
+
const Fl = q("ArrowLeft", [
|
|
297
297
|
["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
|
|
298
298
|
["path", { d: "M19 12H5", key: "x3x0zl" }]
|
|
299
299
|
]);
|
|
@@ -303,7 +303,7 @@ const zl = q("ArrowLeft", [
|
|
|
303
303
|
* This source code is licensed under the ISC license.
|
|
304
304
|
* See the LICENSE file in the root directory of this source tree.
|
|
305
305
|
*/
|
|
306
|
-
const
|
|
306
|
+
const Ll = q("ArrowRight", [
|
|
307
307
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
308
308
|
["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
|
|
309
309
|
]);
|
|
@@ -313,7 +313,7 @@ const Fl = q("ArrowRight", [
|
|
|
313
313
|
* This source code is licensed under the ISC license.
|
|
314
314
|
* See the LICENSE file in the root directory of this source tree.
|
|
315
315
|
*/
|
|
316
|
-
const
|
|
316
|
+
const Rl = q("ArrowUp01", [
|
|
317
317
|
["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
|
|
318
318
|
["path", { d: "M7 4v16", key: "1glfcx" }],
|
|
319
319
|
["rect", { x: "15", y: "4", width: "4", height: "6", ry: "2", key: "1bwicg" }],
|
|
@@ -326,7 +326,7 @@ const Ll = q("ArrowUp01", [
|
|
|
326
326
|
* This source code is licensed under the ISC license.
|
|
327
327
|
* See the LICENSE file in the root directory of this source tree.
|
|
328
328
|
*/
|
|
329
|
-
const
|
|
329
|
+
const Vl = q("ArrowUpAZ", [
|
|
330
330
|
["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
|
|
331
331
|
["path", { d: "M7 4v16", key: "1glfcx" }],
|
|
332
332
|
["path", { d: "M20 8h-5", key: "1vsyxs" }],
|
|
@@ -349,7 +349,7 @@ const An = q("ArrowUp", [
|
|
|
349
349
|
* This source code is licensed under the ISC license.
|
|
350
350
|
* See the LICENSE file in the root directory of this source tree.
|
|
351
351
|
*/
|
|
352
|
-
const
|
|
352
|
+
const jl = q("Blocks", [
|
|
353
353
|
["rect", { width: "7", height: "7", x: "14", y: "3", rx: "1", key: "6d4xhi" }],
|
|
354
354
|
[
|
|
355
355
|
"path",
|
|
@@ -365,7 +365,7 @@ const Vl = q("Blocks", [
|
|
|
365
365
|
* This source code is licensed under the ISC license.
|
|
366
366
|
* See the LICENSE file in the root directory of this source tree.
|
|
367
367
|
*/
|
|
368
|
-
const
|
|
368
|
+
const ql = q("BookOpenText", [
|
|
369
369
|
["path", { d: "M12 7v14", key: "1akyts" }],
|
|
370
370
|
["path", { d: "M16 12h2", key: "7q9ll5" }],
|
|
371
371
|
["path", { d: "M16 8h2", key: "msurwy" }],
|
|
@@ -403,7 +403,7 @@ const nr = q("BookType", [
|
|
|
403
403
|
* This source code is licensed under the ISC license.
|
|
404
404
|
* See the LICENSE file in the root directory of this source tree.
|
|
405
405
|
*/
|
|
406
|
-
const
|
|
406
|
+
const Bl = q("Box", [
|
|
407
407
|
[
|
|
408
408
|
"path",
|
|
409
409
|
{
|
|
@@ -420,7 +420,7 @@ const ql = q("Box", [
|
|
|
420
420
|
* This source code is licensed under the ISC license.
|
|
421
421
|
* See the LICENSE file in the root directory of this source tree.
|
|
422
422
|
*/
|
|
423
|
-
const
|
|
423
|
+
const Pl = q("Braces", [
|
|
424
424
|
[
|
|
425
425
|
"path",
|
|
426
426
|
{ 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" }
|
|
@@ -439,7 +439,7 @@ const Bl = q("Braces", [
|
|
|
439
439
|
* This source code is licensed under the ISC license.
|
|
440
440
|
* See the LICENSE file in the root directory of this source tree.
|
|
441
441
|
*/
|
|
442
|
-
const
|
|
442
|
+
const _l = q("Calculator", [
|
|
443
443
|
["rect", { width: "16", height: "20", x: "4", y: "2", rx: "2", key: "1nb95v" }],
|
|
444
444
|
["line", { x1: "8", x2: "16", y1: "6", y2: "6", key: "x4nwl0" }],
|
|
445
445
|
["line", { x1: "16", x2: "16", y1: "14", y2: "18", key: "wjye3r" }],
|
|
@@ -457,7 +457,7 @@ const Pl = q("Calculator", [
|
|
|
457
457
|
* This source code is licensed under the ISC license.
|
|
458
458
|
* See the LICENSE file in the root directory of this source tree.
|
|
459
459
|
*/
|
|
460
|
-
const
|
|
460
|
+
const $l = q("ChartArea", [
|
|
461
461
|
["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
|
|
462
462
|
[
|
|
463
463
|
"path",
|
|
@@ -561,7 +561,7 @@ const ka = q("ChartScatter", [
|
|
|
561
561
|
* This source code is licensed under the ISC license.
|
|
562
562
|
* See the LICENSE file in the root directory of this source tree.
|
|
563
563
|
*/
|
|
564
|
-
const
|
|
564
|
+
const Gl = q("ChevronsUpDown", [
|
|
565
565
|
["path", { d: "m7 15 5 5 5-5", key: "1hf1tw" }],
|
|
566
566
|
["path", { d: "m7 9 5-5 5 5", key: "sgt6xg" }]
|
|
567
567
|
]);
|
|
@@ -571,7 +571,7 @@ const $l = q("ChevronsUpDown", [
|
|
|
571
571
|
* This source code is licensed under the ISC license.
|
|
572
572
|
* See the LICENSE file in the root directory of this source tree.
|
|
573
573
|
*/
|
|
574
|
-
const
|
|
574
|
+
const Jl = q("CircleArrowRight", [
|
|
575
575
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
576
576
|
["path", { d: "M8 12h8", key: "1wcyev" }],
|
|
577
577
|
["path", { d: "m12 16 4-4-4-4", key: "1i9zcv" }]
|
|
@@ -593,7 +593,7 @@ const ar = q("CircleX", [
|
|
|
593
593
|
* This source code is licensed under the ISC license.
|
|
594
594
|
* See the LICENSE file in the root directory of this source tree.
|
|
595
595
|
*/
|
|
596
|
-
const
|
|
596
|
+
const Hl = q("Clock", [
|
|
597
597
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
598
598
|
["polyline", { points: "12 6 12 12 16 14", key: "68esgv" }]
|
|
599
599
|
]);
|
|
@@ -603,7 +603,7 @@ const Jl = q("Clock", [
|
|
|
603
603
|
* This source code is licensed under the ISC license.
|
|
604
604
|
* See the LICENSE file in the root directory of this source tree.
|
|
605
605
|
*/
|
|
606
|
-
const
|
|
606
|
+
const Ul = q("Code", [
|
|
607
607
|
["polyline", { points: "16 18 22 12 16 6", key: "z7tu5w" }],
|
|
608
608
|
["polyline", { points: "8 6 2 12 8 18", key: "1eg1df" }]
|
|
609
609
|
]);
|
|
@@ -613,7 +613,7 @@ const Hl = q("Code", [
|
|
|
613
613
|
* This source code is licensed under the ISC license.
|
|
614
614
|
* See the LICENSE file in the root directory of this source tree.
|
|
615
615
|
*/
|
|
616
|
-
const
|
|
616
|
+
const Yl = q("Columns3", [
|
|
617
617
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
618
618
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
619
619
|
["path", { d: "M15 3v18", key: "14nvp0" }]
|
|
@@ -624,7 +624,7 @@ const Ul = q("Columns3", [
|
|
|
624
624
|
* This source code is licensed under the ISC license.
|
|
625
625
|
* See the LICENSE file in the root directory of this source tree.
|
|
626
626
|
*/
|
|
627
|
-
const
|
|
627
|
+
const Kl = q("Component", [
|
|
628
628
|
[
|
|
629
629
|
"path",
|
|
630
630
|
{
|
|
@@ -660,7 +660,7 @@ const Yl = q("Component", [
|
|
|
660
660
|
* This source code is licensed under the ISC license.
|
|
661
661
|
* See the LICENSE file in the root directory of this source tree.
|
|
662
662
|
*/
|
|
663
|
-
const
|
|
663
|
+
const Ql = q("CopyPlus", [
|
|
664
664
|
["line", { x1: "15", x2: "15", y1: "12", y2: "18", key: "1p7wdc" }],
|
|
665
665
|
["line", { x1: "12", x2: "18", y1: "15", y2: "15", key: "1nscbv" }],
|
|
666
666
|
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
|
@@ -672,7 +672,7 @@ const Kl = q("CopyPlus", [
|
|
|
672
672
|
* This source code is licensed under the ISC license.
|
|
673
673
|
* See the LICENSE file in the root directory of this source tree.
|
|
674
674
|
*/
|
|
675
|
-
const
|
|
675
|
+
const Wl = q("DollarSign", [
|
|
676
676
|
["line", { x1: "12", x2: "12", y1: "2", y2: "22", key: "7eqyqh" }],
|
|
677
677
|
["path", { d: "M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6", key: "1b0p4s" }]
|
|
678
678
|
]);
|
|
@@ -710,7 +710,7 @@ const sr = q("Expand", [
|
|
|
710
710
|
* This source code is licensed under the ISC license.
|
|
711
711
|
* See the LICENSE file in the root directory of this source tree.
|
|
712
712
|
*/
|
|
713
|
-
const
|
|
713
|
+
const Zl = q("EyeClosed", [
|
|
714
714
|
["path", { d: "m15 18-.722-3.25", key: "1j64jw" }],
|
|
715
715
|
["path", { d: "M2 8a10.645 10.645 0 0 0 20 0", key: "1e7gxb" }],
|
|
716
716
|
["path", { d: "m20 15-1.726-2.05", key: "1cnuld" }],
|
|
@@ -723,7 +723,7 @@ const Wl = q("EyeClosed", [
|
|
|
723
723
|
* This source code is licensed under the ISC license.
|
|
724
724
|
* See the LICENSE file in the root directory of this source tree.
|
|
725
725
|
*/
|
|
726
|
-
const
|
|
726
|
+
const Xl = q("FileCode2", [
|
|
727
727
|
["path", { d: "M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4", key: "1pf5j1" }],
|
|
728
728
|
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
|
|
729
729
|
["path", { d: "m5 12-3 3 3 3", key: "oke12k" }],
|
|
@@ -735,7 +735,7 @@ const Zl = q("FileCode2", [
|
|
|
735
735
|
* This source code is licensed under the ISC license.
|
|
736
736
|
* See the LICENSE file in the root directory of this source tree.
|
|
737
737
|
*/
|
|
738
|
-
const
|
|
738
|
+
const eo = q("FileJson2", [
|
|
739
739
|
["path", { d: "M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4", key: "1pf5j1" }],
|
|
740
740
|
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
|
|
741
741
|
[
|
|
@@ -753,7 +753,7 @@ const Xl = q("FileJson2", [
|
|
|
753
753
|
* This source code is licensed under the ISC license.
|
|
754
754
|
* See the LICENSE file in the root directory of this source tree.
|
|
755
755
|
*/
|
|
756
|
-
const
|
|
756
|
+
const to = q("File", [
|
|
757
757
|
["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
|
|
758
758
|
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }]
|
|
759
759
|
]);
|
|
@@ -772,7 +772,7 @@ const Ta = q("Filter", [
|
|
|
772
772
|
* This source code is licensed under the ISC license.
|
|
773
773
|
* See the LICENSE file in the root directory of this source tree.
|
|
774
774
|
*/
|
|
775
|
-
const
|
|
775
|
+
const no = q("Fingerprint", [
|
|
776
776
|
["path", { d: "M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4", key: "1nerag" }],
|
|
777
777
|
["path", { d: "M14 13.12c0 2.38 0 6.38-1 8.88", key: "o46ks0" }],
|
|
778
778
|
["path", { d: "M17.29 21.02c.12-.6.43-2.3.5-3.02", key: "ptglia" }],
|
|
@@ -789,7 +789,7 @@ const to = q("Fingerprint", [
|
|
|
789
789
|
* This source code is licensed under the ISC license.
|
|
790
790
|
* See the LICENSE file in the root directory of this source tree.
|
|
791
791
|
*/
|
|
792
|
-
const
|
|
792
|
+
const ao = q("Glasses", [
|
|
793
793
|
["circle", { cx: "6", cy: "15", r: "4", key: "vux9w4" }],
|
|
794
794
|
["circle", { cx: "18", cy: "15", r: "4", key: "18o8ve" }],
|
|
795
795
|
["path", { d: "M14 15a2 2 0 0 0-2-2 2 2 0 0 0-2 2", key: "1ag4bs" }],
|
|
@@ -802,7 +802,7 @@ const no = q("Glasses", [
|
|
|
802
802
|
* This source code is licensed under the ISC license.
|
|
803
803
|
* See the LICENSE file in the root directory of this source tree.
|
|
804
804
|
*/
|
|
805
|
-
const
|
|
805
|
+
const so = q("Grid3x3", [
|
|
806
806
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
807
807
|
["path", { d: "M3 9h18", key: "1pudct" }],
|
|
808
808
|
["path", { d: "M3 15h18", key: "5xshup" }],
|
|
@@ -815,7 +815,7 @@ const ao = q("Grid3x3", [
|
|
|
815
815
|
* This source code is licensed under the ISC license.
|
|
816
816
|
* See the LICENSE file in the root directory of this source tree.
|
|
817
817
|
*/
|
|
818
|
-
const
|
|
818
|
+
const ro = q("Hammer", [
|
|
819
819
|
["path", { d: "m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9", key: "eefl8a" }],
|
|
820
820
|
["path", { d: "m18 15 4-4", key: "16gjal" }],
|
|
821
821
|
[
|
|
@@ -844,7 +844,7 @@ const Da = q("Hash", [
|
|
|
844
844
|
* This source code is licensed under the ISC license.
|
|
845
845
|
* See the LICENSE file in the root directory of this source tree.
|
|
846
846
|
*/
|
|
847
|
-
const
|
|
847
|
+
const io = q("House", [
|
|
848
848
|
["path", { d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8", key: "5wwlr5" }],
|
|
849
849
|
[
|
|
850
850
|
"path",
|
|
@@ -860,7 +860,7 @@ const ro = q("House", [
|
|
|
860
860
|
* This source code is licensed under the ISC license.
|
|
861
861
|
* See the LICENSE file in the root directory of this source tree.
|
|
862
862
|
*/
|
|
863
|
-
const
|
|
863
|
+
const lo = q("LayoutList", [
|
|
864
864
|
["rect", { width: "7", height: "7", x: "3", y: "3", rx: "1", key: "1g98yp" }],
|
|
865
865
|
["rect", { width: "7", height: "7", x: "3", y: "14", rx: "1", key: "1bb6yr" }],
|
|
866
866
|
["path", { d: "M14 4h7", key: "3xa0d5" }],
|
|
@@ -874,7 +874,7 @@ const io = q("LayoutList", [
|
|
|
874
874
|
* This source code is licensed under the ISC license.
|
|
875
875
|
* See the LICENSE file in the root directory of this source tree.
|
|
876
876
|
*/
|
|
877
|
-
const
|
|
877
|
+
const oo = q("ListEnd", [
|
|
878
878
|
["path", { d: "M16 12H3", key: "1a2rj7" }],
|
|
879
879
|
["path", { d: "M16 6H3", key: "1wxfjs" }],
|
|
880
880
|
["path", { d: "M10 18H3", key: "13769t" }],
|
|
@@ -887,7 +887,7 @@ const lo = q("ListEnd", [
|
|
|
887
887
|
* This source code is licensed under the ISC license.
|
|
888
888
|
* See the LICENSE file in the root directory of this source tree.
|
|
889
889
|
*/
|
|
890
|
-
const
|
|
890
|
+
const co = q("ListStart", [
|
|
891
891
|
["path", { d: "M16 12H3", key: "1a2rj7" }],
|
|
892
892
|
["path", { d: "M16 18H3", key: "12xzn7" }],
|
|
893
893
|
["path", { d: "M10 6H3", key: "lf8lx7" }],
|
|
@@ -900,7 +900,7 @@ const oo = q("ListStart", [
|
|
|
900
900
|
* This source code is licensed under the ISC license.
|
|
901
901
|
* See the LICENSE file in the root directory of this source tree.
|
|
902
902
|
*/
|
|
903
|
-
const
|
|
903
|
+
const uo = q("ListX", [
|
|
904
904
|
["path", { d: "M11 12H3", key: "51ecnj" }],
|
|
905
905
|
["path", { d: "M16 6H3", key: "1wxfjs" }],
|
|
906
906
|
["path", { d: "M16 18H3", key: "12xzn7" }],
|
|
@@ -922,7 +922,7 @@ const Re = q("LoaderCircle", [
|
|
|
922
922
|
* This source code is licensed under the ISC license.
|
|
923
923
|
* See the LICENSE file in the root directory of this source tree.
|
|
924
924
|
*/
|
|
925
|
-
const
|
|
925
|
+
const mo = q("Logs", [
|
|
926
926
|
["path", { d: "M13 12h8", key: "h98zly" }],
|
|
927
927
|
["path", { d: "M13 18h8", key: "oe0vm4" }],
|
|
928
928
|
["path", { d: "M13 6h8", key: "15sg57" }],
|
|
@@ -939,7 +939,7 @@ const uo = q("Logs", [
|
|
|
939
939
|
* This source code is licensed under the ISC license.
|
|
940
940
|
* See the LICENSE file in the root directory of this source tree.
|
|
941
941
|
*/
|
|
942
|
-
const
|
|
942
|
+
const ho = q("Mail", [
|
|
943
943
|
["rect", { width: "20", height: "16", x: "2", y: "4", rx: "2", key: "18n3k1" }],
|
|
944
944
|
["path", { d: "m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7", key: "1ocrg3" }]
|
|
945
945
|
]);
|
|
@@ -949,7 +949,7 @@ const mo = q("Mail", [
|
|
|
949
949
|
* This source code is licensed under the ISC license.
|
|
950
950
|
* See the LICENSE file in the root directory of this source tree.
|
|
951
951
|
*/
|
|
952
|
-
const
|
|
952
|
+
const po = q("MapPin", [
|
|
953
953
|
[
|
|
954
954
|
"path",
|
|
955
955
|
{
|
|
@@ -982,7 +982,7 @@ const Oa = q("Map", [
|
|
|
982
982
|
* This source code is licensed under the ISC license.
|
|
983
983
|
* See the LICENSE file in the root directory of this source tree.
|
|
984
984
|
*/
|
|
985
|
-
const
|
|
985
|
+
const fo = q("MessageCircleMore", [
|
|
986
986
|
["path", { d: "M7.9 20A9 9 0 1 0 4 16.1L2 22Z", key: "vv11sd" }],
|
|
987
987
|
["path", { d: "M8 12h.01", key: "czm47f" }],
|
|
988
988
|
["path", { d: "M12 12h.01", key: "1mp3jc" }],
|
|
@@ -994,7 +994,7 @@ const po = q("MessageCircleMore", [
|
|
|
994
994
|
* This source code is licensed under the ISC license.
|
|
995
995
|
* See the LICENSE file in the root directory of this source tree.
|
|
996
996
|
*/
|
|
997
|
-
const
|
|
997
|
+
const go = q("MessageCircle", [
|
|
998
998
|
["path", { d: "M7.9 20A9 9 0 1 0 4 16.1L2 22Z", key: "vv11sd" }]
|
|
999
999
|
]);
|
|
1000
1000
|
/**
|
|
@@ -1025,7 +1025,7 @@ const ns = q("MoveVertical", [
|
|
|
1025
1025
|
* This source code is licensed under the ISC license.
|
|
1026
1026
|
* See the LICENSE file in the root directory of this source tree.
|
|
1027
1027
|
*/
|
|
1028
|
-
const
|
|
1028
|
+
const yo = q("Network", [
|
|
1029
1029
|
["rect", { x: "16", y: "16", width: "6", height: "6", rx: "1", key: "4q2zg0" }],
|
|
1030
1030
|
["rect", { x: "2", y: "16", width: "6", height: "6", rx: "1", key: "8cvhb9" }],
|
|
1031
1031
|
["rect", { x: "9", y: "2", width: "6", height: "6", rx: "1", key: "1egb70" }],
|
|
@@ -1038,7 +1038,7 @@ const go = q("Network", [
|
|
|
1038
1038
|
* This source code is licensed under the ISC license.
|
|
1039
1039
|
* See the LICENSE file in the root directory of this source tree.
|
|
1040
1040
|
*/
|
|
1041
|
-
const
|
|
1041
|
+
const bo = q("Plug", [
|
|
1042
1042
|
["path", { d: "M12 22v-5", key: "1ega77" }],
|
|
1043
1043
|
["path", { d: "M9 8V2", key: "14iosj" }],
|
|
1044
1044
|
["path", { d: "M15 8V2", key: "18g5xt" }],
|
|
@@ -1078,7 +1078,7 @@ const rr = q("RefreshCw", [
|
|
|
1078
1078
|
* This source code is licensed under the ISC license.
|
|
1079
1079
|
* See the LICENSE file in the root directory of this source tree.
|
|
1080
1080
|
*/
|
|
1081
|
-
const
|
|
1081
|
+
const vo = q("Rows3", [
|
|
1082
1082
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
1083
1083
|
["path", { d: "M21 9H3", key: "1338ky" }],
|
|
1084
1084
|
["path", { d: "M21 15H3", key: "9uk58r" }]
|
|
@@ -1089,7 +1089,7 @@ const bo = q("Rows3", [
|
|
|
1089
1089
|
* This source code is licensed under the ISC license.
|
|
1090
1090
|
* See the LICENSE file in the root directory of this source tree.
|
|
1091
1091
|
*/
|
|
1092
|
-
const
|
|
1092
|
+
const xo = q("Save", [
|
|
1093
1093
|
[
|
|
1094
1094
|
"path",
|
|
1095
1095
|
{
|
|
@@ -1123,7 +1123,7 @@ const Ea = q("Shapes", [
|
|
|
1123
1123
|
* This source code is licensed under the ISC license.
|
|
1124
1124
|
* See the LICENSE file in the root directory of this source tree.
|
|
1125
1125
|
*/
|
|
1126
|
-
const
|
|
1126
|
+
const No = q("Shrink", [
|
|
1127
1127
|
["path", { d: "m15 15 6 6m-6-6v4.8m0-4.8h4.8", key: "17vawe" }],
|
|
1128
1128
|
["path", { d: "M9 19.8V15m0 0H4.2M9 15l-6 6", key: "chjx8e" }],
|
|
1129
1129
|
["path", { d: "M15 4.2V9m0 0h4.8M15 9l6-6", key: "lav6yq" }],
|
|
@@ -1150,7 +1150,7 @@ const ir = q("Sigma", [
|
|
|
1150
1150
|
* This source code is licensed under the ISC license.
|
|
1151
1151
|
* See the LICENSE file in the root directory of this source tree.
|
|
1152
1152
|
*/
|
|
1153
|
-
const
|
|
1153
|
+
const Co = q("Square", [
|
|
1154
1154
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }]
|
|
1155
1155
|
]);
|
|
1156
1156
|
/**
|
|
@@ -1190,7 +1190,7 @@ const lr = q("Tag", [
|
|
|
1190
1190
|
* This source code is licensed under the ISC license.
|
|
1191
1191
|
* See the LICENSE file in the root directory of this source tree.
|
|
1192
1192
|
*/
|
|
1193
|
-
const
|
|
1193
|
+
const wo = q("Terminal", [
|
|
1194
1194
|
["polyline", { points: "4 17 10 11 4 5", key: "akl6gq" }],
|
|
1195
1195
|
["line", { x1: "12", x2: "20", y1: "19", y2: "19", key: "q2wloq" }]
|
|
1196
1196
|
]);
|
|
@@ -1240,14 +1240,14 @@ function dr(t) {
|
|
|
1240
1240
|
var l;
|
|
1241
1241
|
return {
|
|
1242
1242
|
...i,
|
|
1243
|
-
cards: (l = i.cards) == null ? void 0 : l.map((o) =>
|
|
1243
|
+
cards: (l = i.cards) == null ? void 0 : l.map((o) => So(o))
|
|
1244
1244
|
};
|
|
1245
1245
|
})
|
|
1246
1246
|
};
|
|
1247
1247
|
})
|
|
1248
1248
|
};
|
|
1249
1249
|
}
|
|
1250
|
-
function
|
|
1250
|
+
function So(t) {
|
|
1251
1251
|
return {
|
|
1252
1252
|
...t,
|
|
1253
1253
|
// cfg: {
|
|
@@ -1263,12 +1263,12 @@ function wo(t) {
|
|
|
1263
1263
|
// }),
|
|
1264
1264
|
// },
|
|
1265
1265
|
// },
|
|
1266
|
-
customCfg:
|
|
1266
|
+
customCfg: ko(t.customCfg),
|
|
1267
1267
|
// if customCfg is present, clean it, otherwise return null{
|
|
1268
1268
|
data: []
|
|
1269
1269
|
};
|
|
1270
1270
|
}
|
|
1271
|
-
function
|
|
1271
|
+
function ko(t) {
|
|
1272
1272
|
var a, n;
|
|
1273
1273
|
return t ? {
|
|
1274
1274
|
...t,
|
|
@@ -1282,7 +1282,7 @@ function So(t) {
|
|
|
1282
1282
|
}
|
|
1283
1283
|
} : null;
|
|
1284
1284
|
}
|
|
1285
|
-
async function
|
|
1285
|
+
async function Mo(t, a, n, r) {
|
|
1286
1286
|
if (!r)
|
|
1287
1287
|
return null;
|
|
1288
1288
|
const i = JSON.stringify(a);
|
|
@@ -1306,19 +1306,19 @@ async function ia(t, a) {
|
|
|
1306
1306
|
operation: "update"
|
|
1307
1307
|
});
|
|
1308
1308
|
}
|
|
1309
|
-
async function
|
|
1309
|
+
async function To(t, a) {
|
|
1310
1310
|
return a ? await ua("https://semaphor.cloud/api/v1/lens", a, {
|
|
1311
1311
|
operation: "delete",
|
|
1312
1312
|
lensId: t
|
|
1313
1313
|
}) : null;
|
|
1314
1314
|
}
|
|
1315
|
-
function
|
|
1315
|
+
function Do() {
|
|
1316
1316
|
const [t, a] = V(""), [n, r] = V(!1), i = G((p) => p.lenses), { setLenses: l, setSelectedLensId: o } = It(), [u, c] = V(!1), [h, d] = V(!1), m = G((p) => p.dashboard), C = G((p) => p.filterValues), { authToken: g } = lt();
|
|
1317
1317
|
async function y() {
|
|
1318
1318
|
c(!0);
|
|
1319
1319
|
const p = dr(
|
|
1320
1320
|
m
|
|
1321
|
-
), N = await
|
|
1321
|
+
), N = await Mo(
|
|
1322
1322
|
t,
|
|
1323
1323
|
p,
|
|
1324
1324
|
C,
|
|
@@ -1373,13 +1373,13 @@ function To() {
|
|
|
1373
1373
|
] })
|
|
1374
1374
|
] });
|
|
1375
1375
|
}
|
|
1376
|
-
function
|
|
1376
|
+
function Oo() {
|
|
1377
1377
|
const [t, a] = V(!1), n = G((d) => d.lenses), r = G((d) => d.selectedLensId), { setLenses: i, setSelectedLensId: l } = It(), { authToken: o } = lt();
|
|
1378
1378
|
async function u(d) {
|
|
1379
1379
|
l(d);
|
|
1380
1380
|
}
|
|
1381
1381
|
async function c(d) {
|
|
1382
|
-
if (await
|
|
1382
|
+
if (await To(d, o == null ? void 0 : o.accessToken)) {
|
|
1383
1383
|
const C = n == null ? void 0 : n.filter((g) => g.id !== d);
|
|
1384
1384
|
i(C || []), l("original");
|
|
1385
1385
|
}
|
|
@@ -1408,7 +1408,7 @@ function Do() {
|
|
|
1408
1408
|
}
|
|
1409
1409
|
}
|
|
1410
1410
|
return /* @__PURE__ */ s(fs, { open: t, onOpenChange: a, children: [
|
|
1411
|
-
/* @__PURE__ */ e(gs, { asChild: !0, children: /* @__PURE__ */ e(ae, { tooltip: "Lenses", className: "h-7 p-2", children: /* @__PURE__ */ e(
|
|
1411
|
+
/* @__PURE__ */ e(gs, { asChild: !0, children: /* @__PURE__ */ e(ae, { tooltip: "Lenses", className: "h-7 p-2", children: /* @__PURE__ */ e(ao, { className: "h-4 w-4" }) }) }),
|
|
1412
1412
|
/* @__PURE__ */ s(ys, { align: "end", className: "w-60", children: [
|
|
1413
1413
|
/* @__PURE__ */ e(bs, { className: "px-3", children: "Lenses" }),
|
|
1414
1414
|
/* @__PURE__ */ e(vs, {}),
|
|
@@ -1428,7 +1428,7 @@ function Do() {
|
|
|
1428
1428
|
/* @__PURE__ */ e("p", { children: d.name }),
|
|
1429
1429
|
/* @__PURE__ */ s("span", { className: "flex items-center gap-3", children: [
|
|
1430
1430
|
/* @__PURE__ */ e(
|
|
1431
|
-
|
|
1431
|
+
io,
|
|
1432
1432
|
{
|
|
1433
1433
|
onClick: (m) => {
|
|
1434
1434
|
m.preventDefault(), h(d);
|
|
@@ -1475,7 +1475,7 @@ function ur() {
|
|
|
1475
1475
|
selectedSheetId: i || ""
|
|
1476
1476
|
};
|
|
1477
1477
|
}
|
|
1478
|
-
async function
|
|
1478
|
+
async function Io() {
|
|
1479
1479
|
const t = G.getState().isDownloadingPdf, { authToken: a, theme: n, filterValues: r, dashboardTitle: i, selectedSheetId: l } = ur();
|
|
1480
1480
|
if (t)
|
|
1481
1481
|
return;
|
|
@@ -1493,7 +1493,7 @@ async function Oo() {
|
|
|
1493
1493
|
const C = `${i}-${(/* @__PURE__ */ new Date()).toISOString()}.pdf`;
|
|
1494
1494
|
m.download = C, m.click(), G.setState({ isDownloadingPdf: !1 });
|
|
1495
1495
|
}
|
|
1496
|
-
function
|
|
1496
|
+
function Eo({
|
|
1497
1497
|
iconClassName: t
|
|
1498
1498
|
}) {
|
|
1499
1499
|
const { authToken: a } = lt();
|
|
@@ -1503,7 +1503,7 @@ function Io({
|
|
|
1503
1503
|
}), G((i) => i.theme), G((i) => i.filterValues);
|
|
1504
1504
|
const n = G((i) => i.isDownloadingPdf);
|
|
1505
1505
|
async function r() {
|
|
1506
|
-
await
|
|
1506
|
+
await Io();
|
|
1507
1507
|
}
|
|
1508
1508
|
return /* @__PURE__ */ e(
|
|
1509
1509
|
ae,
|
|
@@ -1556,7 +1556,7 @@ const as = [
|
|
|
1556
1556
|
{ value: "biweekly", label: "Bi-Weekly" },
|
|
1557
1557
|
{ value: "monthly", label: "Monthly" }
|
|
1558
1558
|
];
|
|
1559
|
-
function
|
|
1559
|
+
function Ao({
|
|
1560
1560
|
triggerButtonClassName: t
|
|
1561
1561
|
}) {
|
|
1562
1562
|
const {
|
|
@@ -1566,14 +1566,14 @@ function Eo({
|
|
|
1566
1566
|
status: i,
|
|
1567
1567
|
error: l,
|
|
1568
1568
|
isDeleting: o
|
|
1569
|
-
} =
|
|
1569
|
+
} = zo(), [u, c] = V(""), [h, d] = V(as[0].value), [m, C] = V("06:00"), [g, y] = V("");
|
|
1570
1570
|
return /* @__PURE__ */ e(xs, { delayDuration: 0, children: /* @__PURE__ */ s(Ye, { children: [
|
|
1571
1571
|
/* @__PURE__ */ e(Ke, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1572
1572
|
ae,
|
|
1573
1573
|
{
|
|
1574
1574
|
tooltip: "Schedule Dashboard",
|
|
1575
1575
|
className: _("h-7 p-2", t),
|
|
1576
|
-
children: /* @__PURE__ */ e(
|
|
1576
|
+
children: /* @__PURE__ */ e(Hl, { className: "size-4" })
|
|
1577
1577
|
}
|
|
1578
1578
|
) }),
|
|
1579
1579
|
/* @__PURE__ */ e(Et, { align: "end", className: "w-80", children: /* @__PURE__ */ s("div", { className: "grid gap-4", children: [
|
|
@@ -1685,10 +1685,10 @@ function Eo({
|
|
|
1685
1685
|
ss,
|
|
1686
1686
|
{
|
|
1687
1687
|
tooltip: `Next Run: ${new Date(p.nextRun).toLocaleString()} ${p.timezone}`,
|
|
1688
|
-
children: /* @__PURE__ */ e(
|
|
1688
|
+
children: /* @__PURE__ */ e(Jl, { className: "size-3.5" })
|
|
1689
1689
|
}
|
|
1690
1690
|
),
|
|
1691
|
-
/* @__PURE__ */ e(ss, { tooltip: `${p.endUserEmail}`, children: /* @__PURE__ */ e(
|
|
1691
|
+
/* @__PURE__ */ e(ss, { tooltip: `${p.endUserEmail}`, children: /* @__PURE__ */ e(ho, { className: "size-3.5" }) }),
|
|
1692
1692
|
o === p.id ? /* @__PURE__ */ e(Re, { className: "size-3.5 animate-spin" }) : /* @__PURE__ */ e(
|
|
1693
1693
|
ha,
|
|
1694
1694
|
{
|
|
@@ -1713,7 +1713,7 @@ const ss = ({
|
|
|
1713
1713
|
/* @__PURE__ */ e(At, { asChild: !0, children: t }),
|
|
1714
1714
|
/* @__PURE__ */ e(bt, { children: a })
|
|
1715
1715
|
] }) });
|
|
1716
|
-
function
|
|
1716
|
+
function zo() {
|
|
1717
1717
|
const [t, a] = V("idle"), [n, r] = V(""), [i, l] = V(null), o = G((E) => E.authToken), u = G((E) => E.dashboard.id), c = G((E) => E.dashboard.title), { endUserId: h } = Cs((o == null ? void 0 : o.accessToken) || ""), d = "https://semaphor.cloud/api/v1/subscriptions/get", m = {
|
|
1718
1718
|
dashboardId: u,
|
|
1719
1719
|
endUserId: h
|
|
@@ -1780,7 +1780,7 @@ function Ao() {
|
|
|
1780
1780
|
error: n
|
|
1781
1781
|
};
|
|
1782
1782
|
}
|
|
1783
|
-
function
|
|
1783
|
+
function Fo() {
|
|
1784
1784
|
const { authToken: t } = lt();
|
|
1785
1785
|
G((I) => I.theme);
|
|
1786
1786
|
const a = G((I) => I.lenses), n = G((I) => I.selectedLensId), r = a == null ? void 0 : a.find((I) => I.id === n), i = G((I) => I.dashboard);
|
|
@@ -1847,10 +1847,10 @@ function zo() {
|
|
|
1847
1847
|
!d && /* @__PURE__ */ e("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ e(H, { children: r == null ? void 0 : r.name }) }),
|
|
1848
1848
|
/* @__PURE__ */ s("div", { className: "flex gap-2", children: [
|
|
1849
1849
|
!1,
|
|
1850
|
-
!d && /* @__PURE__ */ e(Io, {}),
|
|
1851
1850
|
!d && /* @__PURE__ */ e(Eo, {}),
|
|
1852
|
-
|
|
1853
|
-
!d && x && /* @__PURE__ */ e(Do, {}),
|
|
1851
|
+
!d && /* @__PURE__ */ e(Ao, {}),
|
|
1852
|
+
l && !d && x && /* @__PURE__ */ e(Do, {}),
|
|
1853
|
+
!d && x && /* @__PURE__ */ e(Oo, {}),
|
|
1854
1854
|
l && !d && /* @__PURE__ */ s(
|
|
1855
1855
|
P,
|
|
1856
1856
|
{
|
|
@@ -1893,7 +1893,7 @@ function zo() {
|
|
|
1893
1893
|
disabled: u,
|
|
1894
1894
|
onClick: O,
|
|
1895
1895
|
size: "sm",
|
|
1896
|
-
children: /* @__PURE__ */ e(
|
|
1896
|
+
children: /* @__PURE__ */ e(xo, { className: "h-4 w-4" })
|
|
1897
1897
|
}
|
|
1898
1898
|
),
|
|
1899
1899
|
!m && !d && l && /* @__PURE__ */ e(
|
|
@@ -1913,7 +1913,7 @@ function zo() {
|
|
|
1913
1913
|
}
|
|
1914
1914
|
);
|
|
1915
1915
|
}
|
|
1916
|
-
function
|
|
1916
|
+
function Lo({
|
|
1917
1917
|
name: t,
|
|
1918
1918
|
items: a,
|
|
1919
1919
|
value: n,
|
|
@@ -2022,15 +2022,15 @@ function Rt({
|
|
|
2022
2022
|
const m = r ? "Loading..." : i ? "Error" : n;
|
|
2023
2023
|
function C() {
|
|
2024
2024
|
if (t === "Connection")
|
|
2025
|
-
return /* @__PURE__ */ e(
|
|
2025
|
+
return /* @__PURE__ */ e(bo, { className: "size-4" });
|
|
2026
2026
|
if (t === "Database")
|
|
2027
2027
|
return /* @__PURE__ */ e(qt, { className: "size-4" });
|
|
2028
2028
|
if (t === "Schema")
|
|
2029
|
-
return /* @__PURE__ */ e(
|
|
2029
|
+
return /* @__PURE__ */ e(yo, { className: "size-4" });
|
|
2030
2030
|
if (t === "Table")
|
|
2031
2031
|
return /* @__PURE__ */ e(Ln, { className: "size-4" });
|
|
2032
2032
|
if (t === "Model")
|
|
2033
|
-
return /* @__PURE__ */ e(
|
|
2033
|
+
return /* @__PURE__ */ e(Bl, { className: "size-4" });
|
|
2034
2034
|
}
|
|
2035
2035
|
function g() {
|
|
2036
2036
|
return /* @__PURE__ */ s(le, { disabled: h, value: m, onValueChange: o, children: [
|
|
@@ -2073,7 +2073,7 @@ function Rt({
|
|
|
2073
2073
|
}
|
|
2074
2074
|
function y() {
|
|
2075
2075
|
return /* @__PURE__ */ e(
|
|
2076
|
-
|
|
2076
|
+
Lo,
|
|
2077
2077
|
{
|
|
2078
2078
|
icon: C(),
|
|
2079
2079
|
items: a,
|
|
@@ -2090,7 +2090,7 @@ function Rt({
|
|
|
2090
2090
|
}
|
|
2091
2091
|
return /* @__PURE__ */ e(Yt, { delayDuration: 0, children: /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: d === "select" ? g() : y() }) });
|
|
2092
2092
|
}
|
|
2093
|
-
function
|
|
2093
|
+
function Ro({ column: t }) {
|
|
2094
2094
|
const [a, n] = V(!1), r = T((p) => p.selectedTableName), i = T(
|
|
2095
2095
|
(p) => p.selectedSchemaName
|
|
2096
2096
|
), l = T(
|
|
@@ -2172,7 +2172,7 @@ function Lo({ column: t }) {
|
|
|
2172
2172
|
}
|
|
2173
2173
|
function za({ column: t }) {
|
|
2174
2174
|
return /* @__PURE__ */ s(yt, { children: [
|
|
2175
|
-
/* @__PURE__ */ e(ei, { className: "shrink-0", asChild: !0, children: _e(t.data_type) ? /* @__PURE__ */ e(ti, { className: "size-3 text-muted-foreground" }) : pt(t.data_type) ? /* @__PURE__ */ e(Da, { className: "size-3 text-muted-foreground" }) : $e(t.data_type) ? /* @__PURE__ */ e(Es, { className: "size-3 text-muted-foreground" }) : ni(t.data_type) ? /* @__PURE__ */ e(or, { className: "size-3 text-muted-foreground" }) : t.data_type.startsWith("json") ? /* @__PURE__ */ e(
|
|
2175
|
+
/* @__PURE__ */ e(ei, { className: "shrink-0", asChild: !0, children: _e(t.data_type) ? /* @__PURE__ */ e(ti, { className: "size-3 text-muted-foreground" }) : pt(t.data_type) ? /* @__PURE__ */ e(Da, { className: "size-3 text-muted-foreground" }) : $e(t.data_type) ? /* @__PURE__ */ e(Es, { className: "size-3 text-muted-foreground" }) : ni(t.data_type) ? /* @__PURE__ */ e(or, { className: "size-3 text-muted-foreground" }) : t.data_type.startsWith("json") ? /* @__PURE__ */ e(Pl, { className: "size-3 text-muted-foreground" }) : /* @__PURE__ */ e(ai, { className: "size-3 text-muted-foreground" }) }),
|
|
2176
2176
|
/* @__PURE__ */ e(bt, { children: /* @__PURE__ */ e("p", { className: "text-xs", children: t.data_type }) })
|
|
2177
2177
|
] });
|
|
2178
2178
|
}
|
|
@@ -2194,7 +2194,7 @@ function qn({
|
|
|
2194
2194
|
}
|
|
2195
2195
|
);
|
|
2196
2196
|
}
|
|
2197
|
-
function
|
|
2197
|
+
function Vo({ id: t, children: a, type: n = "column" }) {
|
|
2198
2198
|
const { attributes: r, listeners: i, setNodeRef: l, transform: o } = si({
|
|
2199
2199
|
id: t,
|
|
2200
2200
|
data: { type: n }
|
|
@@ -2214,7 +2214,7 @@ function Ro({ id: t, children: a, type: n = "column" }) {
|
|
|
2214
2214
|
}
|
|
2215
2215
|
);
|
|
2216
2216
|
}
|
|
2217
|
-
function
|
|
2217
|
+
function jo({
|
|
2218
2218
|
onClick: t,
|
|
2219
2219
|
column: a
|
|
2220
2220
|
}) {
|
|
@@ -2267,7 +2267,7 @@ function Vo({
|
|
|
2267
2267
|
}
|
|
2268
2268
|
) }),
|
|
2269
2269
|
n === a.column_name && /* @__PURE__ */ e("div", { className: "absolute inset-0", children: n === a.column_name && /* @__PURE__ */ e(qn, { column: a }) }),
|
|
2270
|
-
/* @__PURE__ */ e(
|
|
2270
|
+
/* @__PURE__ */ e(Vo, { id: a.column_name, type: "column", children: /* @__PURE__ */ e(qn, { column: a }) })
|
|
2271
2271
|
]
|
|
2272
2272
|
}
|
|
2273
2273
|
)
|
|
@@ -2293,7 +2293,7 @@ const Bn = {
|
|
|
2293
2293
|
}, mr = {
|
|
2294
2294
|
id: "__placeholder__"
|
|
2295
2295
|
}, ut = "droppable-group-by", mt = "droppable-metrics", ht = "droppable-pivot-by", cn = "sortable-group-by", la = "sortable-metrics", dn = "sortable-pivot-by", oa = "droppable-filters", ca = "sortable-filters", Fa = "sortable-order-by";
|
|
2296
|
-
function
|
|
2296
|
+
function qo() {
|
|
2297
2297
|
const t = st((z) => z.insertIndex), a = T(
|
|
2298
2298
|
(z) => {
|
|
2299
2299
|
var k;
|
|
@@ -2609,7 +2609,7 @@ function Ot(t, a) {
|
|
|
2609
2609
|
return n;
|
|
2610
2610
|
}
|
|
2611
2611
|
}
|
|
2612
|
-
function
|
|
2612
|
+
function Bo({
|
|
2613
2613
|
schemaName: t,
|
|
2614
2614
|
tableName: a,
|
|
2615
2615
|
columns: n,
|
|
@@ -2781,12 +2781,12 @@ function qo({
|
|
|
2781
2781
|
{
|
|
2782
2782
|
onClick: (A) => A.stopPropagation(),
|
|
2783
2783
|
className: "flex items-center justify-end",
|
|
2784
|
-
children: pt(k.data_type) && /* @__PURE__ */ e(
|
|
2784
|
+
children: pt(k.data_type) && /* @__PURE__ */ e(Ro, { column: k })
|
|
2785
2785
|
}
|
|
2786
2786
|
)
|
|
2787
2787
|
]
|
|
2788
2788
|
}
|
|
2789
|
-
) : /* @__PURE__ */ e(
|
|
2789
|
+
) : /* @__PURE__ */ e(jo, { onClick: S, column: k });
|
|
2790
2790
|
}
|
|
2791
2791
|
function z() {
|
|
2792
2792
|
return /* @__PURE__ */ s(se, { children: [
|
|
@@ -2823,7 +2823,7 @@ function qo({
|
|
|
2823
2823
|
variant: "secondary",
|
|
2824
2824
|
className: "flex",
|
|
2825
2825
|
children: [
|
|
2826
|
-
r !== "Success" ? /* @__PURE__ */ e(Re, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" }) : /* @__PURE__ */ e(
|
|
2826
|
+
r !== "Success" ? /* @__PURE__ */ e(Re, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" }) : /* @__PURE__ */ e(mo, { className: "mr-2 size-4" }),
|
|
2827
2827
|
"Top 10"
|
|
2828
2828
|
]
|
|
2829
2829
|
}
|
|
@@ -2923,7 +2923,7 @@ function hr({
|
|
|
2923
2923
|
} = Pe(), { data: ye, refetch: Ve } = Ee(n);
|
|
2924
2924
|
function Q() {
|
|
2925
2925
|
return t ? t(ne, Z, M) : /* @__PURE__ */ e(
|
|
2926
|
-
|
|
2926
|
+
Bo,
|
|
2927
2927
|
{
|
|
2928
2928
|
schemaName: ne,
|
|
2929
2929
|
tableName: Z,
|
|
@@ -3073,7 +3073,7 @@ function hr({
|
|
|
3073
3073
|
variant: "secondary",
|
|
3074
3074
|
className: "group flex items-center gap-2 rounded-full",
|
|
3075
3075
|
children: [
|
|
3076
|
-
/* @__PURE__ */ e(
|
|
3076
|
+
/* @__PURE__ */ e(fo, { className: "size-4" }),
|
|
3077
3077
|
/* @__PURE__ */ e("span", { className: "hidden group-hover:block", children: "Help" })
|
|
3078
3078
|
]
|
|
3079
3079
|
}
|
|
@@ -3096,11 +3096,11 @@ function pr({ sql: t, error: a, onClick: n }) {
|
|
|
3096
3096
|
t && /* @__PURE__ */ e("div", { className: "flex flex-col space-y-1.5", children: /* @__PURE__ */ e("div", { className: "rounded-md", children: /* @__PURE__ */ e(oi, { code: t, language: "sql" }) }) })
|
|
3097
3097
|
] }),
|
|
3098
3098
|
!r && /* @__PURE__ */ s(P, { onClick: u, variant: "secondary", size: "sm", children: [
|
|
3099
|
-
/* @__PURE__ */ e(
|
|
3099
|
+
/* @__PURE__ */ e(Xl, { className: "mr-2 h-4 w-4" }),
|
|
3100
3100
|
"View in SQL Editor"
|
|
3101
3101
|
] }),
|
|
3102
3102
|
a && n && /* @__PURE__ */ s(P, { onClick: n, size: "sm", variant: "secondary", children: [
|
|
3103
|
-
/* @__PURE__ */ e(
|
|
3103
|
+
/* @__PURE__ */ e(ro, { className: "mr-2 h-4 w-4" }),
|
|
3104
3104
|
"Debug with Assistant"
|
|
3105
3105
|
] })
|
|
3106
3106
|
] }) });
|
|
@@ -3124,10 +3124,10 @@ var gr = {
|
|
|
3124
3124
|
className: void 0,
|
|
3125
3125
|
style: void 0,
|
|
3126
3126
|
attr: void 0
|
|
3127
|
-
}, rs = Le.createContext && /* @__PURE__ */ Le.createContext(gr),
|
|
3128
|
-
function
|
|
3127
|
+
}, rs = Le.createContext && /* @__PURE__ */ Le.createContext(gr), Po = ["attr", "size", "title"];
|
|
3128
|
+
function _o(t, a) {
|
|
3129
3129
|
if (t == null) return {};
|
|
3130
|
-
var n =
|
|
3130
|
+
var n = $o(t, a), r, i;
|
|
3131
3131
|
if (Object.getOwnPropertySymbols) {
|
|
3132
3132
|
var l = Object.getOwnPropertySymbols(t);
|
|
3133
3133
|
for (i = 0; i < l.length; i++)
|
|
@@ -3135,7 +3135,7 @@ function Po(t, a) {
|
|
|
3135
3135
|
}
|
|
3136
3136
|
return n;
|
|
3137
3137
|
}
|
|
3138
|
-
function
|
|
3138
|
+
function $o(t, a) {
|
|
3139
3139
|
if (t == null) return {};
|
|
3140
3140
|
var n = {};
|
|
3141
3141
|
for (var r in t)
|
|
@@ -3169,21 +3169,21 @@ function mn(t) {
|
|
|
3169
3169
|
for (var a = 1; a < arguments.length; a++) {
|
|
3170
3170
|
var n = arguments[a] != null ? arguments[a] : {};
|
|
3171
3171
|
a % 2 ? is(Object(n), !0).forEach(function(r) {
|
|
3172
|
-
|
|
3172
|
+
Go(t, r, n[r]);
|
|
3173
3173
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : is(Object(n)).forEach(function(r) {
|
|
3174
3174
|
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
|
|
3175
3175
|
});
|
|
3176
3176
|
}
|
|
3177
3177
|
return t;
|
|
3178
3178
|
}
|
|
3179
|
-
function
|
|
3180
|
-
return a =
|
|
3179
|
+
function Go(t, a, n) {
|
|
3180
|
+
return a = Jo(a), a in t ? Object.defineProperty(t, a, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[a] = n, t;
|
|
3181
3181
|
}
|
|
3182
|
-
function
|
|
3183
|
-
var a =
|
|
3182
|
+
function Jo(t) {
|
|
3183
|
+
var a = Ho(t, "string");
|
|
3184
3184
|
return typeof a == "symbol" ? a : a + "";
|
|
3185
3185
|
}
|
|
3186
|
-
function
|
|
3186
|
+
function Ho(t, a) {
|
|
3187
3187
|
if (typeof t != "object" || !t) return t;
|
|
3188
3188
|
var n = t[Symbol.toPrimitive];
|
|
3189
3189
|
if (n !== void 0) {
|
|
@@ -3199,17 +3199,17 @@ function yr(t) {
|
|
|
3199
3199
|
}, a.attr), yr(a.child)));
|
|
3200
3200
|
}
|
|
3201
3201
|
function Nt(t) {
|
|
3202
|
-
return (a) => /* @__PURE__ */ Le.createElement(
|
|
3202
|
+
return (a) => /* @__PURE__ */ Le.createElement(Uo, un({
|
|
3203
3203
|
attr: mn({}, t.attr)
|
|
3204
3204
|
}, a), yr(t.child));
|
|
3205
3205
|
}
|
|
3206
|
-
function
|
|
3206
|
+
function Uo(t) {
|
|
3207
3207
|
var a = (n) => {
|
|
3208
3208
|
var {
|
|
3209
3209
|
attr: r,
|
|
3210
3210
|
size: i,
|
|
3211
3211
|
title: l
|
|
3212
|
-
} = t, o =
|
|
3212
|
+
} = t, o = _o(t, Po), u = i || n.size || "1em", c;
|
|
3213
3213
|
return n.className && (c = n.className), t.className && (c = (c ? c + " " : "") + t.className), /* @__PURE__ */ Le.createElement("svg", un({
|
|
3214
3214
|
stroke: "currentColor",
|
|
3215
3215
|
fill: "currentColor",
|
|
@@ -3226,7 +3226,7 @@ function Ho(t) {
|
|
|
3226
3226
|
};
|
|
3227
3227
|
return rs !== void 0 ? /* @__PURE__ */ Le.createElement(rs.Consumer, null, (n) => a(n)) : a(gr);
|
|
3228
3228
|
}
|
|
3229
|
-
function
|
|
3229
|
+
function Yo(t) {
|
|
3230
3230
|
return Nt({ 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);
|
|
3231
3231
|
}
|
|
3232
3232
|
function br(t) {
|
|
@@ -3290,7 +3290,7 @@ function br(t) {
|
|
|
3290
3290
|
}
|
|
3291
3291
|
return { handleEditorDidMount: y };
|
|
3292
3292
|
}
|
|
3293
|
-
function
|
|
3293
|
+
function Ko() {
|
|
3294
3294
|
const t = T((o) => o.card.sql), a = T((o) => o.sqlGen), { setCardSql: n, setSqlGen: r } = X(), { handleEditorDidMount: i } = br("sql");
|
|
3295
3295
|
function l(o) {
|
|
3296
3296
|
n(o), hi(a) || r({});
|
|
@@ -3322,7 +3322,7 @@ function Yo() {
|
|
|
3322
3322
|
)
|
|
3323
3323
|
] });
|
|
3324
3324
|
}
|
|
3325
|
-
function
|
|
3325
|
+
function Qo() {
|
|
3326
3326
|
const t = T((i) => i.card.python), { setCardPython: a } = X(), { handleEditorDidMount: n } = br("python");
|
|
3327
3327
|
function r(i) {
|
|
3328
3328
|
a(i);
|
|
@@ -3351,7 +3351,7 @@ function Ko() {
|
|
|
3351
3351
|
}
|
|
3352
3352
|
);
|
|
3353
3353
|
}
|
|
3354
|
-
function
|
|
3354
|
+
function Wo({ jsonString: t }) {
|
|
3355
3355
|
return /* @__PURE__ */ e(
|
|
3356
3356
|
kn,
|
|
3357
3357
|
{
|
|
@@ -3377,7 +3377,7 @@ function Qo({ jsonString: t }) {
|
|
|
3377
3377
|
}
|
|
3378
3378
|
);
|
|
3379
3379
|
}
|
|
3380
|
-
function
|
|
3380
|
+
function Zo() {
|
|
3381
3381
|
const t = ms(), [a, n] = V(!1), [r, i] = V(!1);
|
|
3382
3382
|
T((j) => j.frame);
|
|
3383
3383
|
const l = T((j) => j.card);
|
|
@@ -3473,7 +3473,7 @@ ${c}` : ""}
|
|
|
3473
3473
|
className: "relative flex w-1/3 min-w-0 grow overflow-hidden text-xs",
|
|
3474
3474
|
role: "editor-filter-container",
|
|
3475
3475
|
children: /* @__PURE__ */ e("div", { className: "mt-2 w-[99%]", children: /* @__PURE__ */ e(
|
|
3476
|
-
|
|
3476
|
+
Wo,
|
|
3477
3477
|
{
|
|
3478
3478
|
jsonString: JSON.stringify(h, null, 2)
|
|
3479
3479
|
}
|
|
@@ -3512,7 +3512,7 @@ ${c}` : ""}
|
|
|
3512
3512
|
{
|
|
3513
3513
|
id: "sql-container",
|
|
3514
3514
|
className: "relative flex w-[99%]",
|
|
3515
|
-
children: /* @__PURE__ */ e(
|
|
3515
|
+
children: /* @__PURE__ */ e(Ko, {})
|
|
3516
3516
|
}
|
|
3517
3517
|
),
|
|
3518
3518
|
a && /* @__PURE__ */ e("code", { className: "absolute right-6 top-3 text-xs text-muted-foreground/70", children: "sql" })
|
|
@@ -3534,7 +3534,7 @@ ${c}` : ""}
|
|
|
3534
3534
|
{
|
|
3535
3535
|
id: "python-container",
|
|
3536
3536
|
className: "relative flex w-[99%] pt-0",
|
|
3537
|
-
children: /* @__PURE__ */ e(
|
|
3537
|
+
children: /* @__PURE__ */ e(Qo, {})
|
|
3538
3538
|
}
|
|
3539
3539
|
),
|
|
3540
3540
|
/* @__PURE__ */ e("code", { className: "absolute right-6 top-3 text-xs text-muted-foreground/70", children: "python" })
|
|
@@ -3586,7 +3586,7 @@ ${c}` : ""}
|
|
|
3586
3586
|
onPressedChange: (j) => n(j),
|
|
3587
3587
|
className: "",
|
|
3588
3588
|
size: "sm",
|
|
3589
|
-
children: /* @__PURE__ */ e(
|
|
3589
|
+
children: /* @__PURE__ */ e(Yo, { className: "size-4 text-foreground/70" })
|
|
3590
3590
|
}
|
|
3591
3591
|
),
|
|
3592
3592
|
/* @__PURE__ */ e(
|
|
@@ -3627,7 +3627,7 @@ ${c}` : ""}
|
|
|
3627
3627
|
)
|
|
3628
3628
|
);
|
|
3629
3629
|
}
|
|
3630
|
-
function
|
|
3630
|
+
function Xo({ data: t }) {
|
|
3631
3631
|
var o;
|
|
3632
3632
|
const [a, n] = Le.useState([]), i = Object.keys(t[0]).map((u) => ({
|
|
3633
3633
|
// header: key,
|
|
@@ -3684,7 +3684,7 @@ function Zo({ data: t }) {
|
|
|
3684
3684
|
/* @__PURE__ */ e(He, { orientation: "horizontal" })
|
|
3685
3685
|
] });
|
|
3686
3686
|
}
|
|
3687
|
-
function
|
|
3687
|
+
function ec({ card: t }) {
|
|
3688
3688
|
var M, E, D, b, x, v, S, O, I, w, L;
|
|
3689
3689
|
const [a, n] = V(!1), [r, i] = V(
|
|
3690
3690
|
[]
|
|
@@ -3714,7 +3714,7 @@ function Xo({ card: t }) {
|
|
|
3714
3714
|
return k || null;
|
|
3715
3715
|
});
|
|
3716
3716
|
return /* @__PURE__ */ e("div", { className: "semaphor-custom mb-3 flex grow basis-0 flex-col space-y-2 overflow-y-auto", children: /* @__PURE__ */ s(
|
|
3717
|
-
|
|
3717
|
+
Sl,
|
|
3718
3718
|
{
|
|
3719
3719
|
fallback: /* @__PURE__ */ e(se, {}),
|
|
3720
3720
|
children: [
|
|
@@ -3796,7 +3796,7 @@ function vr({
|
|
|
3796
3796
|
C
|
|
3797
3797
|
]);
|
|
3798
3798
|
function y(f) {
|
|
3799
|
-
return /* @__PURE__ */ e(
|
|
3799
|
+
return /* @__PURE__ */ e(ec, { card: f });
|
|
3800
3800
|
}
|
|
3801
3801
|
function p() {
|
|
3802
3802
|
if (c != null && c.records && (c == null ? void 0 : c.records.length) === 0 && !h && !d)
|
|
@@ -3892,7 +3892,7 @@ const Gn = ({
|
|
|
3892
3892
|
value: a,
|
|
3893
3893
|
onChange: n
|
|
3894
3894
|
}
|
|
3895
|
-
),
|
|
3895
|
+
), tc = () => /* @__PURE__ */ s(gn, { children: [
|
|
3896
3896
|
/* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ e(yn, { children: "Customize Card" }) }),
|
|
3897
3897
|
/* @__PURE__ */ s(bn, { children: [
|
|
3898
3898
|
"See the configuration options and documentation",
|
|
@@ -3906,7 +3906,7 @@ const Gn = ({
|
|
|
3906
3906
|
}
|
|
3907
3907
|
)
|
|
3908
3908
|
] })
|
|
3909
|
-
] }),
|
|
3909
|
+
] }), nc = ({
|
|
3910
3910
|
// defaultConfig,
|
|
3911
3911
|
customCode: t,
|
|
3912
3912
|
cardCustomCfgString: a,
|
|
@@ -3966,7 +3966,7 @@ const Gn = ({
|
|
|
3966
3966
|
)
|
|
3967
3967
|
}
|
|
3968
3968
|
)
|
|
3969
|
-
] }),
|
|
3969
|
+
] }), ac = ({
|
|
3970
3970
|
error: t,
|
|
3971
3971
|
hasCardCustomConfig: a,
|
|
3972
3972
|
onReset: n,
|
|
@@ -3978,7 +3978,7 @@ const Gn = ({
|
|
|
3978
3978
|
/* @__PURE__ */ e(P, { onClick: r, variant: "outline", children: "Apply" }),
|
|
3979
3979
|
/* @__PURE__ */ e(P, { onClick: i, variant: "outline", children: "Close" })
|
|
3980
3980
|
] });
|
|
3981
|
-
function
|
|
3981
|
+
function sc() {
|
|
3982
3982
|
const [t, a] = V(!1), [n, r] = V(""), [i, l] = V(""), [o, u] = V(""), [c, h] = V(""), d = T((b) => b.card), m = T((b) => b.card.customCfg), C = m ? JSON.stringify(m, null, 2) : "", { data: g } = Ee(d), { data: y } = ya(d), { setCardCustomCfg: p, setCustomVisualCode: N } = X(), f = (b) => {
|
|
3983
3983
|
var x, v;
|
|
3984
3984
|
return JSON.stringify(
|
|
@@ -4038,11 +4038,11 @@ function ac() {
|
|
|
4038
4038
|
}
|
|
4039
4039
|
) }),
|
|
4040
4040
|
/* @__PURE__ */ s(fn, { className: "flex h-[600px] grow flex-col overflow-auto sm:min-w-[900px] lg:min-w-[1200px]", children: [
|
|
4041
|
-
/* @__PURE__ */ e(
|
|
4041
|
+
/* @__PURE__ */ e(tc, {}),
|
|
4042
4042
|
/* @__PURE__ */ s("div", { className: "flex grow gap-2", children: [
|
|
4043
4043
|
/* @__PURE__ */ e(Dn, { FallbackComponent: Hs, children: /* @__PURE__ */ e(vr, { className: "w-1/2 rounded shadow-none" }) }),
|
|
4044
4044
|
/* @__PURE__ */ e(
|
|
4045
|
-
|
|
4045
|
+
nc,
|
|
4046
4046
|
{
|
|
4047
4047
|
customCode: o,
|
|
4048
4048
|
cardCustomCfgString: C,
|
|
@@ -4053,7 +4053,7 @@ function ac() {
|
|
|
4053
4053
|
)
|
|
4054
4054
|
] }),
|
|
4055
4055
|
/* @__PURE__ */ e(
|
|
4056
|
-
|
|
4056
|
+
ac,
|
|
4057
4057
|
{
|
|
4058
4058
|
error: c,
|
|
4059
4059
|
hasCardCustomConfig: !!m,
|
|
@@ -4079,7 +4079,7 @@ function Nr() {
|
|
|
4079
4079
|
});
|
|
4080
4080
|
return { data: a, isLoading: n, isFetching: r, isError: i };
|
|
4081
4081
|
}
|
|
4082
|
-
function
|
|
4082
|
+
function rc({
|
|
4083
4083
|
onChartTypeChange: t
|
|
4084
4084
|
}) {
|
|
4085
4085
|
const [a, n] = V([]), {
|
|
@@ -4114,7 +4114,7 @@ function sc({
|
|
|
4114
4114
|
}, [u]), a.length === 0 ? null : /* @__PURE__ */ s(se, { children: [
|
|
4115
4115
|
/* @__PURE__ */ e(at, { className: "my-2" }),
|
|
4116
4116
|
/* @__PURE__ */ e("div", { className: "grid grid-cols-4 place-items-center", children: a.map((h, d) => /* @__PURE__ */ e(
|
|
4117
|
-
|
|
4117
|
+
ic,
|
|
4118
4118
|
{
|
|
4119
4119
|
text: h.name,
|
|
4120
4120
|
onClick: () => c("custom", h),
|
|
@@ -4124,7 +4124,7 @@ function sc({
|
|
|
4124
4124
|
)) })
|
|
4125
4125
|
] });
|
|
4126
4126
|
}
|
|
4127
|
-
const
|
|
4127
|
+
const ic = ({
|
|
4128
4128
|
text: t,
|
|
4129
4129
|
icon: a,
|
|
4130
4130
|
onClick: n
|
|
@@ -4135,7 +4135,7 @@ const rc = ({
|
|
|
4135
4135
|
function La(t) {
|
|
4136
4136
|
return Nt({ attr: { viewBox: "0 0 256 256", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm87.63,96H191.48A64.1,64.1,0,0,0,136,64.52V40.37A88.13,88.13,0,0,1,215.63,120ZM120,120H80.68A48.09,48.09,0,0,1,120,80.68Zm0,16v39.32A48.09,48.09,0,0,1,80.68,136Zm16,0h39.32A48.09,48.09,0,0,1,136,175.32Zm0-16V80.68A48.09,48.09,0,0,1,175.32,120ZM120,40.37V64.52A64.1,64.1,0,0,0,64.52,120H40.37A88.13,88.13,0,0,1,120,40.37ZM40.37,136H64.52A64.1,64.1,0,0,0,120,191.48v24.15A88.13,88.13,0,0,1,40.37,136ZM136,215.63V191.48A64.1,64.1,0,0,0,191.48,136h24.15A88.13,88.13,0,0,1,136,215.63Z" }, child: [] }] })(t);
|
|
4137
4137
|
}
|
|
4138
|
-
function
|
|
4138
|
+
function lc(t) {
|
|
4139
4139
|
return Nt({ attr: { viewBox: "0 0 256 256", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M48,180c0,11,7.18,20,16,20a14.24,14.24,0,0,0,10.22-4.66A8,8,0,0,1,85.78,206.4,30.06,30.06,0,0,1,64,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a30.06,30.06,0,0,1,21.78,9.6,8,8,0,0,1-11.56,11.06A14.24,14.24,0,0,0,64,160C55.18,160,48,169,48,180Zm79.6-8.69c-4-1.16-8.14-2.35-10.45-3.84-1.25-.81-1.23-1-1.12-1.9a4.57,4.57,0,0,1,2-3.67c4.6-3.12,15.34-1.73,19.82-.56A8,8,0,0,0,142,145.86c-2.12-.55-21-5.22-32.84,2.76a20.58,20.58,0,0,0-9,14.95c-2,15.88,13.65,20.41,23,23.11,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.34-2.14,3.93-4.6,3.06-15.17,1.56-19.55.36A8,8,0,0,0,109.94,214a61.34,61.34,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.82,20.82,0,0,0,9.19-15.23C154,179,137.49,174.17,127.6,171.31Zm83.09-26.84a8,8,0,0,0-10.23,4.84L188,184.21l-12.47-34.9a8,8,0,0,0-15.07,5.38l20,56a8,8,0,0,0,15.07,0l20-56A8,8,0,0,0,210.69,144.47ZM216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-27.31-8L160,51.31V80Z" }, child: [] }] })(t);
|
|
4140
4140
|
}
|
|
4141
4141
|
function Ra(t) {
|
|
@@ -4348,7 +4348,7 @@ function Cr({
|
|
|
4348
4348
|
)
|
|
4349
4349
|
] });
|
|
4350
4350
|
}
|
|
4351
|
-
function
|
|
4351
|
+
function oc({
|
|
4352
4352
|
chartType: t,
|
|
4353
4353
|
className: a,
|
|
4354
4354
|
customIcon: n,
|
|
@@ -4407,7 +4407,7 @@ function wr({
|
|
|
4407
4407
|
size: "sm",
|
|
4408
4408
|
variant: t || "ghost",
|
|
4409
4409
|
children: /* @__PURE__ */ e(
|
|
4410
|
-
|
|
4410
|
+
oc,
|
|
4411
4411
|
{
|
|
4412
4412
|
className: "size-4",
|
|
4413
4413
|
chartType: i,
|
|
@@ -4429,7 +4429,7 @@ function wr({
|
|
|
4429
4429
|
onChartTypeChange: () => n(!1)
|
|
4430
4430
|
}
|
|
4431
4431
|
),
|
|
4432
|
-
/* @__PURE__ */ e(
|
|
4432
|
+
/* @__PURE__ */ e(rc, { onChartTypeChange: () => n(!1) })
|
|
4433
4433
|
]
|
|
4434
4434
|
}
|
|
4435
4435
|
)
|
|
@@ -4441,7 +4441,7 @@ function ls(t, a) {
|
|
|
4441
4441
|
const n = Us(t, {});
|
|
4442
4442
|
return ["pie", "doughnut", "polarArea", "funnel"].includes(a) ? "category" : ((l = (i = (r = t == null ? void 0 : t.chartOptions) == null ? void 0 : r.scales) == null ? void 0 : i[n]) == null ? void 0 : l.type) || "linear";
|
|
4443
4443
|
}
|
|
4444
|
-
function
|
|
4444
|
+
function cc() {
|
|
4445
4445
|
var A, R, B, $, j, re;
|
|
4446
4446
|
const [t, a] = V(!1), n = T((ee) => {
|
|
4447
4447
|
var W;
|
|
@@ -4660,7 +4660,7 @@ function oc() {
|
|
|
4660
4660
|
S(te);
|
|
4661
4661
|
}
|
|
4662
4662
|
return /* @__PURE__ */ s(Ye, { onOpenChange: (ee) => a(ee), children: [
|
|
4663
|
-
/* @__PURE__ */ e(Ke, { asChild: !0, children: /* @__PURE__ */ e(ae, { tooltip: "Format Number", children: /* @__PURE__ */ e(
|
|
4663
|
+
/* @__PURE__ */ e(Ke, { asChild: !0, children: /* @__PURE__ */ e(ae, { tooltip: "Format Number", children: /* @__PURE__ */ e(Wl, { className: "size-4" }) }) }),
|
|
4664
4664
|
/* @__PURE__ */ e(ba, { align: "end", className: "max-w-65", children: /* @__PURE__ */ s("div", { className: "grid gap-4", children: [
|
|
4665
4665
|
/* @__PURE__ */ s("div", { className: "space-y-2", children: [
|
|
4666
4666
|
/* @__PURE__ */ e("h4", { className: "font-medium leading-none", children: "Format Options" }),
|
|
@@ -4684,7 +4684,7 @@ function oc() {
|
|
|
4684
4684
|
] }) })
|
|
4685
4685
|
] });
|
|
4686
4686
|
}
|
|
4687
|
-
function
|
|
4687
|
+
function dc() {
|
|
4688
4688
|
const t = T(
|
|
4689
4689
|
(u) => {
|
|
4690
4690
|
var c, h, d, m;
|
|
@@ -4720,7 +4720,7 @@ function cc() {
|
|
|
4720
4720
|
});
|
|
4721
4721
|
};
|
|
4722
4722
|
return /* @__PURE__ */ s(Ye, { children: [
|
|
4723
|
-
/* @__PURE__ */ e(Ke, { asChild: !0, children: /* @__PURE__ */ e(ae, { tooltip: "Legend Settings", children: /* @__PURE__ */ e(
|
|
4723
|
+
/* @__PURE__ */ e(Ke, { asChild: !0, children: /* @__PURE__ */ e(ae, { tooltip: "Legend Settings", children: /* @__PURE__ */ e(lo, { className: "size-4" }) }) }),
|
|
4724
4724
|
/* @__PURE__ */ e(ba, { align: "end", className: "w-72", children: /* @__PURE__ */ s("div", { className: "grid gap-4", children: [
|
|
4725
4725
|
/* @__PURE__ */ s("div", { className: "space-y-2", children: [
|
|
4726
4726
|
/* @__PURE__ */ e("h4", { className: "font-medium leading-none", children: "Legend Options" }),
|
|
@@ -4755,7 +4755,7 @@ function cc() {
|
|
|
4755
4755
|
{
|
|
4756
4756
|
tooltip: "Left",
|
|
4757
4757
|
onClick: () => l("left"),
|
|
4758
|
-
children: /* @__PURE__ */ e(
|
|
4758
|
+
children: /* @__PURE__ */ e(Fl, { className: "size-4" })
|
|
4759
4759
|
}
|
|
4760
4760
|
),
|
|
4761
4761
|
/* @__PURE__ */ e(
|
|
@@ -4771,7 +4771,7 @@ function cc() {
|
|
|
4771
4771
|
{
|
|
4772
4772
|
tooltip: "Right",
|
|
4773
4773
|
onClick: () => l("right"),
|
|
4774
|
-
children: /* @__PURE__ */ e(
|
|
4774
|
+
children: /* @__PURE__ */ e(Ll, { className: "size-4" })
|
|
4775
4775
|
}
|
|
4776
4776
|
)
|
|
4777
4777
|
] })
|
|
@@ -4784,7 +4784,7 @@ function cc() {
|
|
|
4784
4784
|
{
|
|
4785
4785
|
tooltip: "Start",
|
|
4786
4786
|
onClick: () => o("start"),
|
|
4787
|
-
children: /* @__PURE__ */ e(
|
|
4787
|
+
children: /* @__PURE__ */ e(Ol, { className: "size-4" })
|
|
4788
4788
|
}
|
|
4789
4789
|
),
|
|
4790
4790
|
/* @__PURE__ */ e(
|
|
@@ -4792,7 +4792,7 @@ function cc() {
|
|
|
4792
4792
|
{
|
|
4793
4793
|
tooltip: "Center",
|
|
4794
4794
|
onClick: () => o("center"),
|
|
4795
|
-
children: /* @__PURE__ */ e(
|
|
4795
|
+
children: /* @__PURE__ */ e(Dl, { className: "size-4" })
|
|
4796
4796
|
}
|
|
4797
4797
|
),
|
|
4798
4798
|
/* @__PURE__ */ e(
|
|
@@ -4800,7 +4800,7 @@ function cc() {
|
|
|
4800
4800
|
{
|
|
4801
4801
|
tooltip: "End",
|
|
4802
4802
|
onClick: () => o("end"),
|
|
4803
|
-
children: /* @__PURE__ */ e(
|
|
4803
|
+
children: /* @__PURE__ */ e(Il, { className: "size-4" })
|
|
4804
4804
|
}
|
|
4805
4805
|
)
|
|
4806
4806
|
] })
|
|
@@ -4810,7 +4810,7 @@ function cc() {
|
|
|
4810
4810
|
] }) })
|
|
4811
4811
|
] });
|
|
4812
4812
|
}
|
|
4813
|
-
function
|
|
4813
|
+
function uc() {
|
|
4814
4814
|
const t = T(
|
|
4815
4815
|
(l) => {
|
|
4816
4816
|
var o, u;
|
|
@@ -4863,10 +4863,10 @@ function Sr() {
|
|
|
4863
4863
|
"stackedLine",
|
|
4864
4864
|
"horizontalBar",
|
|
4865
4865
|
"funnel"
|
|
4866
|
-
].includes(t.type) && /* @__PURE__ */ e(
|
|
4866
|
+
].includes(t.type) && /* @__PURE__ */ e(uc, {}),
|
|
4867
4867
|
!["kpi", "text", "custom", "table"].includes(t.type) && /* @__PURE__ */ s(se, { children: [
|
|
4868
|
-
/* @__PURE__ */ e(
|
|
4869
|
-
/* @__PURE__ */ e(
|
|
4868
|
+
/* @__PURE__ */ e(cc, {}),
|
|
4869
|
+
/* @__PURE__ */ e(dc, {})
|
|
4870
4870
|
] }),
|
|
4871
4871
|
![
|
|
4872
4872
|
"pie",
|
|
@@ -4880,14 +4880,14 @@ function Sr() {
|
|
|
4880
4880
|
"text",
|
|
4881
4881
|
"map"
|
|
4882
4882
|
].includes(t.type) && /* @__PURE__ */ s(ae, { tooltip: "Grid Style", onClick: l, children: [
|
|
4883
|
-
(r === "xy" || !r) && /* @__PURE__ */ e(
|
|
4884
|
-
r === "x" && /* @__PURE__ */ e(
|
|
4885
|
-
r === "y" && /* @__PURE__ */ e(
|
|
4886
|
-
r === "none" && /* @__PURE__ */ e(
|
|
4883
|
+
(r === "xy" || !r) && /* @__PURE__ */ e(so, { className: "size-4" }),
|
|
4884
|
+
r === "x" && /* @__PURE__ */ e(Yl, { className: "size-4" }),
|
|
4885
|
+
r === "y" && /* @__PURE__ */ e(vo, { className: "size-4" }),
|
|
4886
|
+
r === "none" && /* @__PURE__ */ e(Co, { className: "size-4" })
|
|
4887
4887
|
] })
|
|
4888
4888
|
] }) : null;
|
|
4889
4889
|
}
|
|
4890
|
-
function
|
|
4890
|
+
function mc() {
|
|
4891
4891
|
const t = T((y) => y.frame), a = T((y) => y.card), { setFrame: n, setActiveTabCardId: r, setCard: i, updateCardInFrame: l } = X(), o = (y, p) => {
|
|
4892
4892
|
y.dataTransfer.setData("tabIndex", p.toString());
|
|
4893
4893
|
}, u = (y) => {
|
|
@@ -4959,7 +4959,7 @@ function uc() {
|
|
|
4959
4959
|
displayTab: N
|
|
4960
4960
|
});
|
|
4961
4961
|
},
|
|
4962
|
-
children: p.displayTab === !0 || p.displayTab === void 0 ? /* @__PURE__ */ e(Qs, { className: "mr-2 size-3.5 text-muted-foreground hover:text-foreground" }) : /* @__PURE__ */ e(
|
|
4962
|
+
children: p.displayTab === !0 || p.displayTab === void 0 ? /* @__PURE__ */ e(Qs, { className: "mr-2 size-3.5 text-muted-foreground hover:text-foreground" }) : /* @__PURE__ */ e(Zl, { className: "mr-2 size-3.5 text-muted-foreground hover:text-foreground" })
|
|
4963
4963
|
}
|
|
4964
4964
|
);
|
|
4965
4965
|
}
|
|
@@ -5013,7 +5013,7 @@ function uc() {
|
|
|
5013
5013
|
className: "invisible ml-1 h-8 px-2 hover:bg-muted-foreground/50 group-hover:visible",
|
|
5014
5014
|
variant: "outline",
|
|
5015
5015
|
onClick: m,
|
|
5016
|
-
children: /* @__PURE__ */ e(
|
|
5016
|
+
children: /* @__PURE__ */ e(Ql, { className: "h-4 w-4" })
|
|
5017
5017
|
}
|
|
5018
5018
|
)
|
|
5019
5019
|
] }) });
|
|
@@ -5060,7 +5060,7 @@ function kr() {
|
|
|
5060
5060
|
className: "flex grow flex-col",
|
|
5061
5061
|
children: [
|
|
5062
5062
|
t.cards.map((p) => /* @__PURE__ */ e(an, { className: "mt-0 grow", value: p.id, children: y() }, p.id)),
|
|
5063
|
-
/* @__PURE__ */ e(
|
|
5063
|
+
/* @__PURE__ */ e(mc, {})
|
|
5064
5064
|
]
|
|
5065
5065
|
}
|
|
5066
5066
|
);
|
|
@@ -5104,8 +5104,8 @@ function en({
|
|
|
5104
5104
|
children: [
|
|
5105
5105
|
r && /* @__PURE__ */ s("div", { className: "flex grow items-center", children: [
|
|
5106
5106
|
/* @__PURE__ */ e(wr, {}),
|
|
5107
|
-
i && /* @__PURE__ */ e(ae, { tooltip: "Visual Docs", onClick: f, children: /* @__PURE__ */ e(
|
|
5108
|
-
!["table", "custom"].includes(a.type) && i && /* @__PURE__ */ e(
|
|
5107
|
+
i && /* @__PURE__ */ e(ae, { tooltip: "Visual Docs", onClick: f, children: /* @__PURE__ */ e(ql, { className: "size-4" }) }),
|
|
5108
|
+
!["table", "custom"].includes(a.type) && i && /* @__PURE__ */ e(sc, {})
|
|
5109
5109
|
] }),
|
|
5110
5110
|
!r && /* @__PURE__ */ s("div", { className: "flex grow items-center gap-1", children: [
|
|
5111
5111
|
/* @__PURE__ */ e(
|
|
@@ -5115,7 +5115,7 @@ function en({
|
|
|
5115
5115
|
variant: "ghost",
|
|
5116
5116
|
size: "icon",
|
|
5117
5117
|
onClick: N,
|
|
5118
|
-
children: /* @__PURE__ */ e(
|
|
5118
|
+
children: /* @__PURE__ */ e(lc, { className: "size-4" })
|
|
5119
5119
|
}
|
|
5120
5120
|
),
|
|
5121
5121
|
/* @__PURE__ */ e(
|
|
@@ -5125,7 +5125,7 @@ function en({
|
|
|
5125
5125
|
variant: "ghost",
|
|
5126
5126
|
size: "icon",
|
|
5127
5127
|
onClick: p,
|
|
5128
|
-
children: /* @__PURE__ */ e(
|
|
5128
|
+
children: /* @__PURE__ */ e(eo, { strokeWidth: 1.5, className: "size-4" })
|
|
5129
5129
|
}
|
|
5130
5130
|
),
|
|
5131
5131
|
/* @__PURE__ */ e(
|
|
@@ -5140,7 +5140,7 @@ function en({
|
|
|
5140
5140
|
t,
|
|
5141
5141
|
/* @__PURE__ */ e(Sr, {})
|
|
5142
5142
|
] }),
|
|
5143
|
-
n && /* @__PURE__ */ e(
|
|
5143
|
+
n && /* @__PURE__ */ e(pc, {})
|
|
5144
5144
|
]
|
|
5145
5145
|
}
|
|
5146
5146
|
),
|
|
@@ -5159,7 +5159,7 @@ function en({
|
|
|
5159
5159
|
defaultSize: 30,
|
|
5160
5160
|
minSize: 10,
|
|
5161
5161
|
className: "relative flex h-full min-h-0 w-full flex-1 basis-0",
|
|
5162
|
-
children: l && /* @__PURE__ */ e(
|
|
5162
|
+
children: l && /* @__PURE__ */ e(hc, {})
|
|
5163
5163
|
}
|
|
5164
5164
|
),
|
|
5165
5165
|
/* @__PURE__ */ e(tt, {})
|
|
@@ -5172,7 +5172,7 @@ function en({
|
|
|
5172
5172
|
minSize: 10,
|
|
5173
5173
|
className: "relative flex h-full min-h-0 w-full flex-1 basis-0",
|
|
5174
5174
|
children: [
|
|
5175
|
-
(m == null ? void 0 : m.records) && (m == null ? void 0 : m.records.length) > 0 && /* @__PURE__ */ e(
|
|
5175
|
+
(m == null ? void 0 : m.records) && (m == null ? void 0 : m.records.length) > 0 && /* @__PURE__ */ e(Xo, { data: (m == null ? void 0 : m.records) || [] }),
|
|
5176
5176
|
(y || (m == null ? void 0 : m.error)) && /* @__PURE__ */ e("span", { className: "font-mono text-xs", children: (y == null ? void 0 : y.message) || ((M = m == null ? void 0 : m.error) == null ? void 0 : M.message) })
|
|
5177
5177
|
]
|
|
5178
5178
|
}
|
|
@@ -5184,7 +5184,7 @@ function en({
|
|
|
5184
5184
|
}
|
|
5185
5185
|
) : /* @__PURE__ */ e(se, { children: "No Active Card" });
|
|
5186
5186
|
}
|
|
5187
|
-
function
|
|
5187
|
+
function hc() {
|
|
5188
5188
|
const t = T((n) => n.pythonStdOut);
|
|
5189
5189
|
if (!t) return null;
|
|
5190
5190
|
const a = t.replace(/\n/g, "<br>");
|
|
@@ -5196,7 +5196,7 @@ function mc() {
|
|
|
5196
5196
|
] })
|
|
5197
5197
|
] });
|
|
5198
5198
|
}
|
|
5199
|
-
function
|
|
5199
|
+
function pc() {
|
|
5200
5200
|
const t = T((n) => n.isShowingVisual), a = T(
|
|
5201
5201
|
(n) => n.actions.setIsShowingVisual
|
|
5202
5202
|
);
|
|
@@ -5213,7 +5213,7 @@ function hc() {
|
|
|
5213
5213
|
)
|
|
5214
5214
|
] });
|
|
5215
5215
|
}
|
|
5216
|
-
function
|
|
5216
|
+
function fc() {
|
|
5217
5217
|
var p, N;
|
|
5218
5218
|
const t = T(
|
|
5219
5219
|
(f) => f.card.customCardPreferences
|
|
@@ -5336,7 +5336,7 @@ function pc() {
|
|
|
5336
5336
|
/* @__PURE__ */ e(
|
|
5337
5337
|
Fe,
|
|
5338
5338
|
{
|
|
5339
|
-
icon: /* @__PURE__ */ e(
|
|
5339
|
+
icon: /* @__PURE__ */ e(jl, { className: "h-3.5 w-3.5" }),
|
|
5340
5340
|
className: "h-9 w-full",
|
|
5341
5341
|
label: "Select Plugin",
|
|
5342
5342
|
options: n,
|
|
@@ -5365,7 +5365,7 @@ function pc() {
|
|
|
5365
5365
|
((t == null ? void 0 : t.type) === "component" || (t == null ? void 0 : t.type) === void 0) && t && /* @__PURE__ */ e(se, { children: u && /* @__PURE__ */ e(
|
|
5366
5366
|
Fe,
|
|
5367
5367
|
{
|
|
5368
|
-
icon: /* @__PURE__ */ e(
|
|
5368
|
+
icon: /* @__PURE__ */ e(Kl, { className: "h-3.5 w-3.5" }),
|
|
5369
5369
|
className: "h-9 w-full",
|
|
5370
5370
|
label: "Select Component",
|
|
5371
5371
|
options: (u == null ? void 0 : u.filter((f) => f.type === l).map((f) => ({
|
|
@@ -5514,7 +5514,7 @@ function Ct() {
|
|
|
5514
5514
|
})
|
|
5515
5515
|
] });
|
|
5516
5516
|
}
|
|
5517
|
-
function
|
|
5517
|
+
function gc({ idx: t }) {
|
|
5518
5518
|
var u;
|
|
5519
5519
|
const a = T((c) => {
|
|
5520
5520
|
var h;
|
|
@@ -5575,7 +5575,7 @@ function fc({ idx: t }) {
|
|
|
5575
5575
|
onClick: () => o("start", t),
|
|
5576
5576
|
className: "h-7 p-1 text-xs font-normal",
|
|
5577
5577
|
children: /* @__PURE__ */ e(
|
|
5578
|
-
|
|
5578
|
+
oo,
|
|
5579
5579
|
{
|
|
5580
5580
|
className: _("h-4 w-4", {
|
|
5581
5581
|
"rotate-90": i === "y"
|
|
@@ -5590,7 +5590,7 @@ function fc({ idx: t }) {
|
|
|
5590
5590
|
onClick: () => o("center", t),
|
|
5591
5591
|
className: "h-7 p-1 text-xs font-normal",
|
|
5592
5592
|
children: /* @__PURE__ */ e(
|
|
5593
|
-
|
|
5593
|
+
uo,
|
|
5594
5594
|
{
|
|
5595
5595
|
className: _("h-4 w-4", {
|
|
5596
5596
|
"rotate-90": i === "y"
|
|
@@ -5605,7 +5605,7 @@ function fc({ idx: t }) {
|
|
|
5605
5605
|
onClick: () => o("end", t),
|
|
5606
5606
|
className: "h-7 p-1 text-xs font-normal",
|
|
5607
5607
|
children: /* @__PURE__ */ e(
|
|
5608
|
-
|
|
5608
|
+
co,
|
|
5609
5609
|
{
|
|
5610
5610
|
className: _("h-4 w-4", {
|
|
5611
5611
|
"rotate-90": i === "y"
|
|
@@ -5765,7 +5765,7 @@ function Or({
|
|
|
5765
5765
|
}
|
|
5766
5766
|
),
|
|
5767
5767
|
/* @__PURE__ */ e(
|
|
5768
|
-
|
|
5768
|
+
$l,
|
|
5769
5769
|
{
|
|
5770
5770
|
onClick: () => h("area"),
|
|
5771
5771
|
className: _(
|
|
@@ -5774,7 +5774,7 @@ function Or({
|
|
|
5774
5774
|
)
|
|
5775
5775
|
}
|
|
5776
5776
|
),
|
|
5777
|
-
/* @__PURE__ */ e(
|
|
5777
|
+
/* @__PURE__ */ e(gc, { idx: a })
|
|
5778
5778
|
] })
|
|
5779
5779
|
]
|
|
5780
5780
|
}
|
|
@@ -5854,11 +5854,11 @@ function Lt() {
|
|
|
5854
5854
|
const o = t == null ? void 0 : t.find((u) => u.id === a.filterId);
|
|
5855
5855
|
return /* @__PURE__ */ s("div", { className: "space-y-3", children: [
|
|
5856
5856
|
/* @__PURE__ */ e(H, { children: "Card Filter" }),
|
|
5857
|
-
/* @__PURE__ */ e(
|
|
5857
|
+
/* @__PURE__ */ e(yc, { onSelect: l, columns: r }),
|
|
5858
5858
|
o && /* @__PURE__ */ e(Ws, { filter: o })
|
|
5859
5859
|
] });
|
|
5860
5860
|
}
|
|
5861
|
-
function
|
|
5861
|
+
function yc({
|
|
5862
5862
|
columns: t,
|
|
5863
5863
|
onSelect: a
|
|
5864
5864
|
}) {
|
|
@@ -5910,7 +5910,7 @@ function gc({
|
|
|
5910
5910
|
] }) })
|
|
5911
5911
|
] });
|
|
5912
5912
|
}
|
|
5913
|
-
function
|
|
5913
|
+
function bc({
|
|
5914
5914
|
cardType: t
|
|
5915
5915
|
}) {
|
|
5916
5916
|
return /* @__PURE__ */ e("div", { className: "space-y-6 px-6 py-2", children: /* @__PURE__ */ s(ot, { defaultValue: ["item-2"], type: "multiple", children: [
|
|
@@ -5998,7 +5998,7 @@ function Ba() {
|
|
|
5998
5998
|
)
|
|
5999
5999
|
] });
|
|
6000
6000
|
}
|
|
6001
|
-
function
|
|
6001
|
+
function vc({
|
|
6002
6002
|
cardType: t
|
|
6003
6003
|
}) {
|
|
6004
6004
|
function a(n) {
|
|
@@ -6045,7 +6045,7 @@ function bc({
|
|
|
6045
6045
|
] })
|
|
6046
6046
|
] }) });
|
|
6047
6047
|
}
|
|
6048
|
-
const
|
|
6048
|
+
const xc = {
|
|
6049
6049
|
datasets: [
|
|
6050
6050
|
{
|
|
6051
6051
|
type: "line",
|
|
@@ -6058,7 +6058,7 @@ const vc = {
|
|
|
6058
6058
|
data: []
|
|
6059
6059
|
}
|
|
6060
6060
|
]
|
|
6061
|
-
},
|
|
6061
|
+
}, Nc = {
|
|
6062
6062
|
datasets: [
|
|
6063
6063
|
{
|
|
6064
6064
|
fill: "origin",
|
|
@@ -6068,7 +6068,7 @@ const vc = {
|
|
|
6068
6068
|
}
|
|
6069
6069
|
]
|
|
6070
6070
|
};
|
|
6071
|
-
function
|
|
6071
|
+
function Cc() {
|
|
6072
6072
|
const t = T((a) => a.card.type);
|
|
6073
6073
|
return /* @__PURE__ */ s("div", { className: "space-y-6 p-6", children: [
|
|
6074
6074
|
/* @__PURE__ */ e(
|
|
@@ -6077,7 +6077,7 @@ function Nc() {
|
|
|
6077
6077
|
className: " ",
|
|
6078
6078
|
type: "single",
|
|
6079
6079
|
collapsible: !0,
|
|
6080
|
-
children:
|
|
6080
|
+
children: wc(t)
|
|
6081
6081
|
}
|
|
6082
6082
|
),
|
|
6083
6083
|
!["kpi"].includes(t) && /* @__PURE__ */ s("div", { className: "space-y-4", children: [
|
|
@@ -6087,7 +6087,7 @@ function Nc() {
|
|
|
6087
6087
|
] })
|
|
6088
6088
|
] });
|
|
6089
6089
|
}
|
|
6090
|
-
function
|
|
6090
|
+
function wc(t) {
|
|
6091
6091
|
if (["line", "bar"].includes(t))
|
|
6092
6092
|
return /* @__PURE__ */ s(se, { children: [
|
|
6093
6093
|
/* @__PURE__ */ s(he, { value: "item-1", children: [
|
|
@@ -6108,7 +6108,7 @@ function Cc(t) {
|
|
|
6108
6108
|
/* @__PURE__ */ e("b", { children: "Customize" }),
|
|
6109
6109
|
" and change the `type` property in the dataset."
|
|
6110
6110
|
] }),
|
|
6111
|
-
/* @__PURE__ */ e("pre", { children: JSON.stringify(
|
|
6111
|
+
/* @__PURE__ */ e("pre", { children: JSON.stringify(xc, null, 2) })
|
|
6112
6112
|
] })
|
|
6113
6113
|
] }),
|
|
6114
6114
|
/* @__PURE__ */ s(he, { value: "item-3", children: [
|
|
@@ -6129,7 +6129,7 @@ function Cc(t) {
|
|
|
6129
6129
|
),
|
|
6130
6130
|
"for more options."
|
|
6131
6131
|
] }),
|
|
6132
|
-
/* @__PURE__ */ e("pre", { children: JSON.stringify(
|
|
6132
|
+
/* @__PURE__ */ e("pre", { children: JSON.stringify(Nc, null, 2) })
|
|
6133
6133
|
] })
|
|
6134
6134
|
] })
|
|
6135
6135
|
] });
|
|
@@ -6184,7 +6184,7 @@ function Cc(t) {
|
|
|
6184
6184
|
] })
|
|
6185
6185
|
] }) });
|
|
6186
6186
|
}
|
|
6187
|
-
function
|
|
6187
|
+
function Sc() {
|
|
6188
6188
|
var c, h, d, m, C;
|
|
6189
6189
|
const t = T((g) => g.card.preferences), a = T(
|
|
6190
6190
|
(g) => g.actions.setCardPreferences
|
|
@@ -6350,7 +6350,7 @@ function wc() {
|
|
|
6350
6350
|
] })
|
|
6351
6351
|
] });
|
|
6352
6352
|
}
|
|
6353
|
-
function
|
|
6353
|
+
function kc() {
|
|
6354
6354
|
return /* @__PURE__ */ s("div", { className: "space-y-6 px-6 py-2", children: [
|
|
6355
6355
|
/* @__PURE__ */ e(ot, { type: "single", collapsible: !0, children: /* @__PURE__ */ s(he, { value: "item-1", children: [
|
|
6356
6356
|
/* @__PURE__ */ e(pe, { className: "", children: "KPI Query" }),
|
|
@@ -6376,7 +6376,7 @@ function Sc() {
|
|
|
6376
6376
|
] })
|
|
6377
6377
|
] })
|
|
6378
6378
|
] }) }),
|
|
6379
|
-
/* @__PURE__ */ e("section", { className: "", children: /* @__PURE__ */ e(
|
|
6379
|
+
/* @__PURE__ */ e("section", { className: "", children: /* @__PURE__ */ e(Sc, {}) }),
|
|
6380
6380
|
/* @__PURE__ */ e("div", {}),
|
|
6381
6381
|
/* @__PURE__ */ e("div", {})
|
|
6382
6382
|
] });
|
|
@@ -6402,7 +6402,7 @@ function Jn({
|
|
|
6402
6402
|
}
|
|
6403
6403
|
);
|
|
6404
6404
|
}
|
|
6405
|
-
const
|
|
6405
|
+
const Mc = [
|
|
6406
6406
|
{
|
|
6407
6407
|
label: "Mercator",
|
|
6408
6408
|
value: "mercator"
|
|
@@ -6459,7 +6459,7 @@ const kc = [
|
|
|
6459
6459
|
label: "Natural Earth 1",
|
|
6460
6460
|
value: "naturalEarth1"
|
|
6461
6461
|
}
|
|
6462
|
-
],
|
|
6462
|
+
], Tc = [
|
|
6463
6463
|
"blues",
|
|
6464
6464
|
"brBG",
|
|
6465
6465
|
"buGn",
|
|
@@ -6498,11 +6498,11 @@ const kc = [
|
|
|
6498
6498
|
"ylGnBu",
|
|
6499
6499
|
"ylOrBr",
|
|
6500
6500
|
"ylOrRd"
|
|
6501
|
-
],
|
|
6501
|
+
], Dc = Tc.map((t) => ({
|
|
6502
6502
|
label: t,
|
|
6503
6503
|
value: t
|
|
6504
6504
|
}));
|
|
6505
|
-
function
|
|
6505
|
+
function Oc() {
|
|
6506
6506
|
var c, h, d, m, C, g, y, p, N, f, M, E, D, b, x, v, S, O;
|
|
6507
6507
|
const t = T((I) => I.card), a = (h = (c = t == null ? void 0 : t.preferences) == null ? void 0 : c.mapVisualOptions) == null ? void 0 : h.topoJsonUrl, [n, r] = V(
|
|
6508
6508
|
((m = (d = t == null ? void 0 : t.preferences) == null ? void 0 : d.mapVisualOptions) == null ? void 0 : m.customTopoJsonUrl) || ""
|
|
@@ -6595,7 +6595,7 @@ function Dc() {
|
|
|
6595
6595
|
Fe,
|
|
6596
6596
|
{
|
|
6597
6597
|
className: "h-9",
|
|
6598
|
-
options:
|
|
6598
|
+
options: Mc,
|
|
6599
6599
|
value: ((p = (y = t.preferences) == null ? void 0 : y.mapVisualOptions) == null ? void 0 : p.projection) || "",
|
|
6600
6600
|
label: "Projection",
|
|
6601
6601
|
onValueChange: (I) => {
|
|
@@ -6617,7 +6617,7 @@ function Dc() {
|
|
|
6617
6617
|
Fe,
|
|
6618
6618
|
{
|
|
6619
6619
|
className: "h-9",
|
|
6620
|
-
options:
|
|
6620
|
+
options: Dc,
|
|
6621
6621
|
value: ((f = (N = t.preferences) == null ? void 0 : N.mapVisualOptions) == null ? void 0 : f.colorScale) || "",
|
|
6622
6622
|
label: "Select Color Scale",
|
|
6623
6623
|
onValueChange: (I) => {
|
|
@@ -6707,7 +6707,7 @@ function Dc() {
|
|
|
6707
6707
|
/* @__PURE__ */ e(Ct, {})
|
|
6708
6708
|
] });
|
|
6709
6709
|
}
|
|
6710
|
-
function
|
|
6710
|
+
function Ic() {
|
|
6711
6711
|
var r;
|
|
6712
6712
|
const t = T((i) => i.card.preferences), { setCardPreferences: a } = T((i) => i.actions);
|
|
6713
6713
|
function n(i) {
|
|
@@ -6774,7 +6774,7 @@ function tn({
|
|
|
6774
6774
|
/* @__PURE__ */ e(pe, { children: "Settings" }),
|
|
6775
6775
|
/* @__PURE__ */ s(fe, { className: "space-y-4 px-2", children: [
|
|
6776
6776
|
t !== "text" && /* @__PURE__ */ e(Ba, {}),
|
|
6777
|
-
t === "text" && /* @__PURE__ */ e(
|
|
6777
|
+
t === "text" && /* @__PURE__ */ e(Ic, {})
|
|
6778
6778
|
] })
|
|
6779
6779
|
] }),
|
|
6780
6780
|
!["range", "text"].includes(t) && /* @__PURE__ */ s(he, { value: "item-3", children: [
|
|
@@ -6786,7 +6786,7 @@ function tn({
|
|
|
6786
6786
|
] })
|
|
6787
6787
|
] }) });
|
|
6788
6788
|
}
|
|
6789
|
-
function
|
|
6789
|
+
function Ec() {
|
|
6790
6790
|
const t = T(
|
|
6791
6791
|
(r) => {
|
|
6792
6792
|
var i, l;
|
|
@@ -6865,7 +6865,7 @@ function Ic() {
|
|
|
6865
6865
|
] })
|
|
6866
6866
|
] }) });
|
|
6867
6867
|
}
|
|
6868
|
-
function
|
|
6868
|
+
function Ac({
|
|
6869
6869
|
cardType: t = "table"
|
|
6870
6870
|
}) {
|
|
6871
6871
|
console.log("cardType", t);
|
|
@@ -6901,7 +6901,7 @@ function Ec({
|
|
|
6901
6901
|
] })
|
|
6902
6902
|
] });
|
|
6903
6903
|
}
|
|
6904
|
-
const
|
|
6904
|
+
const zc = /* @__PURE__ */ s("div", { className: "space-y-4 font-mono text-xs", children: [
|
|
6905
6905
|
/* @__PURE__ */ e("div", { className: "rounded bg-muted px-2 py-1 text-xs", children: "SELECT dimension, cohort, metric FROM table" }),
|
|
6906
6906
|
/* @__PURE__ */ s("div", { children: [
|
|
6907
6907
|
"See ",
|
|
@@ -6917,7 +6917,7 @@ const Ac = /* @__PURE__ */ s("div", { className: "space-y-4 font-mono text-xs",
|
|
|
6917
6917
|
),
|
|
6918
6918
|
" in the docs."
|
|
6919
6919
|
] })
|
|
6920
|
-
] }),
|
|
6920
|
+
] }), Fc = /* @__PURE__ */ s("div", { className: "space-y-4 font-mono text-xs", children: [
|
|
6921
6921
|
/* @__PURE__ */ e("div", { className: "rounded bg-muted px-2 py-1 text-xs", children: "SELECT y-axis, label, range-from, range-to, range-value FROM table" }),
|
|
6922
6922
|
/* @__PURE__ */ s("div", { children: [
|
|
6923
6923
|
"See ",
|
|
@@ -6933,7 +6933,7 @@ const Ac = /* @__PURE__ */ s("div", { className: "space-y-4 font-mono text-xs",
|
|
|
6933
6933
|
),
|
|
6934
6934
|
" in the docs."
|
|
6935
6935
|
] })
|
|
6936
|
-
] }),
|
|
6936
|
+
] }), Lc = /* @__PURE__ */ s("div", { className: "space-y-4 font-mono text-xs", children: [
|
|
6937
6937
|
/* @__PURE__ */ e("div", { className: "rounded bg-muted px-2 py-1 text-xs", children: "SELECT text FROM table limit 1" }),
|
|
6938
6938
|
/* @__PURE__ */ s("div", { children: [
|
|
6939
6939
|
"See ",
|
|
@@ -6950,23 +6950,23 @@ const Ac = /* @__PURE__ */ s("div", { className: "space-y-4 font-mono text-xs",
|
|
|
6950
6950
|
" in the docs."
|
|
6951
6951
|
] })
|
|
6952
6952
|
] });
|
|
6953
|
-
function
|
|
6953
|
+
function Rc() {
|
|
6954
6954
|
const t = T((n) => n.card.type);
|
|
6955
6955
|
function a(n) {
|
|
6956
6956
|
switch (n) {
|
|
6957
6957
|
case "stackedBar":
|
|
6958
6958
|
case "stackedLine":
|
|
6959
|
-
return /* @__PURE__ */ e(
|
|
6959
|
+
return /* @__PURE__ */ e(Ec, {});
|
|
6960
6960
|
case "tornado":
|
|
6961
6961
|
case "pyramid":
|
|
6962
|
-
return /* @__PURE__ */ e(tn, { docContent:
|
|
6962
|
+
return /* @__PURE__ */ e(tn, { docContent: zc, cardType: n });
|
|
6963
6963
|
case "kpi":
|
|
6964
|
-
return /* @__PURE__ */ e(
|
|
6964
|
+
return /* @__PURE__ */ e(kc, {});
|
|
6965
6965
|
case "line":
|
|
6966
6966
|
case "bar":
|
|
6967
|
-
return /* @__PURE__ */ e(
|
|
6967
|
+
return /* @__PURE__ */ e(bc, { cardType: n });
|
|
6968
6968
|
case "range":
|
|
6969
|
-
return /* @__PURE__ */ e(tn, { docContent:
|
|
6969
|
+
return /* @__PURE__ */ e(tn, { docContent: Fc, cardType: n });
|
|
6970
6970
|
case "pie":
|
|
6971
6971
|
case "doughnut":
|
|
6972
6972
|
case "polarArea":
|
|
@@ -6975,24 +6975,24 @@ function Lc() {
|
|
|
6975
6975
|
return /* @__PURE__ */ e(tn, { cardType: n });
|
|
6976
6976
|
case "bubble":
|
|
6977
6977
|
case "scatter":
|
|
6978
|
-
return /* @__PURE__ */ e(
|
|
6978
|
+
return /* @__PURE__ */ e(vc, { cardType: n });
|
|
6979
6979
|
case "table":
|
|
6980
|
-
return /* @__PURE__ */ e(
|
|
6980
|
+
return /* @__PURE__ */ e(Ac, { cardType: n });
|
|
6981
6981
|
case "text":
|
|
6982
6982
|
return /* @__PURE__ */ e(
|
|
6983
6983
|
tn,
|
|
6984
6984
|
{
|
|
6985
|
-
docContent:
|
|
6985
|
+
docContent: Lc,
|
|
6986
6986
|
cardType: n,
|
|
6987
6987
|
suffix: "Visual"
|
|
6988
6988
|
}
|
|
6989
6989
|
);
|
|
6990
6990
|
case "map":
|
|
6991
|
-
return /* @__PURE__ */ e(
|
|
6991
|
+
return /* @__PURE__ */ e(Oc, {});
|
|
6992
6992
|
case "custom":
|
|
6993
|
-
return /* @__PURE__ */ e(
|
|
6993
|
+
return /* @__PURE__ */ e(fc, {});
|
|
6994
6994
|
default:
|
|
6995
|
-
return /* @__PURE__ */ e(
|
|
6995
|
+
return /* @__PURE__ */ e(Cc, {});
|
|
6996
6996
|
}
|
|
6997
6997
|
}
|
|
6998
6998
|
return /* @__PURE__ */ s(xt, { className: "h-full w-full text-sm", children: [
|
|
@@ -7028,7 +7028,7 @@ function Er({
|
|
|
7028
7028
|
}
|
|
7029
7029
|
);
|
|
7030
7030
|
}
|
|
7031
|
-
const
|
|
7031
|
+
const Vc = [
|
|
7032
7032
|
{
|
|
7033
7033
|
label: "Sum",
|
|
7034
7034
|
value: "SUM",
|
|
@@ -7042,12 +7042,12 @@ const Rc = [
|
|
|
7042
7042
|
{
|
|
7043
7043
|
label: "Unique",
|
|
7044
7044
|
value: "DISTINCT",
|
|
7045
|
-
logo: /* @__PURE__ */ e(
|
|
7045
|
+
logo: /* @__PURE__ */ e(no, { className: "size-3.5" })
|
|
7046
7046
|
},
|
|
7047
7047
|
{
|
|
7048
7048
|
label: "Average",
|
|
7049
7049
|
value: "AVG",
|
|
7050
|
-
logo: /* @__PURE__ */ e(
|
|
7050
|
+
logo: /* @__PURE__ */ e(zl, { className: "size-3.5" })
|
|
7051
7051
|
},
|
|
7052
7052
|
{
|
|
7053
7053
|
label: "Min",
|
|
@@ -7060,9 +7060,9 @@ const Rc = [
|
|
|
7060
7060
|
logo: /* @__PURE__ */ e(An, { className: "size-3.5" })
|
|
7061
7061
|
}
|
|
7062
7062
|
];
|
|
7063
|
-
function
|
|
7063
|
+
function jc({ column: t }) {
|
|
7064
7064
|
const { updateMetricColumnOld: a } = X();
|
|
7065
|
-
let n =
|
|
7065
|
+
let n = Vc;
|
|
7066
7066
|
_e(t.type) && (n = n.filter(
|
|
7067
7067
|
(i) => ["COUNT", "DISTINCT"].includes(i.value)
|
|
7068
7068
|
)), pt(t.type) && (n = n.filter(
|
|
@@ -7086,7 +7086,7 @@ function Vc({ column: t }) {
|
|
|
7086
7086
|
}
|
|
7087
7087
|
);
|
|
7088
7088
|
}
|
|
7089
|
-
const
|
|
7089
|
+
const qc = [
|
|
7090
7090
|
{
|
|
7091
7091
|
label: "Day (D)",
|
|
7092
7092
|
value: "day",
|
|
@@ -7108,7 +7108,7 @@ const jc = [
|
|
|
7108
7108
|
logo: /* @__PURE__ */ e(H, { className: "cursor-pointer text-xs", children: "Y" })
|
|
7109
7109
|
}
|
|
7110
7110
|
];
|
|
7111
|
-
function
|
|
7111
|
+
function Bc({ column: t }) {
|
|
7112
7112
|
const { updateGroupByColumnOld: a } = X();
|
|
7113
7113
|
function n(r) {
|
|
7114
7114
|
const i = {
|
|
@@ -7122,13 +7122,13 @@ function qc({ column: t }) {
|
|
|
7122
7122
|
Er,
|
|
7123
7123
|
{
|
|
7124
7124
|
column: t,
|
|
7125
|
-
functions:
|
|
7125
|
+
functions: qc,
|
|
7126
7126
|
onFunctionChange: (r) => n(r),
|
|
7127
7127
|
label: "Granularity"
|
|
7128
7128
|
}
|
|
7129
7129
|
);
|
|
7130
7130
|
}
|
|
7131
|
-
function
|
|
7131
|
+
function Pc({
|
|
7132
7132
|
col: t,
|
|
7133
7133
|
onChange: a,
|
|
7134
7134
|
droppableId: n
|
|
@@ -7173,7 +7173,7 @@ function Bc({
|
|
|
7173
7173
|
}
|
|
7174
7174
|
);
|
|
7175
7175
|
}
|
|
7176
|
-
function
|
|
7176
|
+
function _c({ column: t }) {
|
|
7177
7177
|
const { updateMetricColumnOld: a } = X(), { transformedMetricKeys: n, dimensionKeys: r } = Mr();
|
|
7178
7178
|
console.log(n, r);
|
|
7179
7179
|
const i = T(
|
|
@@ -7221,7 +7221,7 @@ function Pc({ column: t }) {
|
|
|
7221
7221
|
] })
|
|
7222
7222
|
] });
|
|
7223
7223
|
}
|
|
7224
|
-
function
|
|
7224
|
+
function $c({
|
|
7225
7225
|
column: t,
|
|
7226
7226
|
type: a,
|
|
7227
7227
|
onRemoveColumn: n,
|
|
@@ -7313,16 +7313,16 @@ function _c({
|
|
|
7313
7313
|
{
|
|
7314
7314
|
"data-setting-container": "",
|
|
7315
7315
|
className: "mt-1.5 max-h-32 overflow-y-auto rounded-md border border-border p-3 text-sm",
|
|
7316
|
-
children: /* @__PURE__ */ e(
|
|
7316
|
+
children: /* @__PURE__ */ e(_c, { column: t })
|
|
7317
7317
|
}
|
|
7318
7318
|
);
|
|
7319
7319
|
}
|
|
7320
7320
|
function E() {
|
|
7321
7321
|
const x = $e(t.type);
|
|
7322
7322
|
if (r === mt)
|
|
7323
|
-
return /* @__PURE__ */ e(
|
|
7323
|
+
return /* @__PURE__ */ e(jc, { column: t });
|
|
7324
7324
|
if ((r === ut || r === ht) && x)
|
|
7325
|
-
return /* @__PURE__ */ e(
|
|
7325
|
+
return /* @__PURE__ */ e(Bc, { column: t });
|
|
7326
7326
|
}
|
|
7327
7327
|
function D() {
|
|
7328
7328
|
return /* @__PURE__ */ e(
|
|
@@ -7332,7 +7332,7 @@ function _c({
|
|
|
7332
7332
|
"pl-3": (r === ut || r === ht) && N
|
|
7333
7333
|
}),
|
|
7334
7334
|
children: /* @__PURE__ */ e(
|
|
7335
|
-
|
|
7335
|
+
Pc,
|
|
7336
7336
|
{
|
|
7337
7337
|
col: t,
|
|
7338
7338
|
onChange: f,
|
|
@@ -7349,7 +7349,7 @@ function _c({
|
|
|
7349
7349
|
className: "h-full pl-2",
|
|
7350
7350
|
onClick: () => l(!i),
|
|
7351
7351
|
children: i ? /* @__PURE__ */ e(
|
|
7352
|
-
|
|
7352
|
+
No,
|
|
7353
7353
|
{
|
|
7354
7354
|
className: _(
|
|
7355
7355
|
"size-3 cursor-pointer items-center justify-center rounded-r-sm text-muted-foreground"
|
|
@@ -7424,8 +7424,8 @@ function Hn({
|
|
|
7424
7424
|
] }),
|
|
7425
7425
|
y(),
|
|
7426
7426
|
/* @__PURE__ */ e("div", { className: "space-y-2", children: C == null ? void 0 : C.map(
|
|
7427
|
-
(f) => f.id === mr.id ? /* @__PURE__ */ e(
|
|
7428
|
-
|
|
7427
|
+
(f) => f.id === mr.id ? /* @__PURE__ */ e(Gc, {}, f.id) : /* @__PURE__ */ e(
|
|
7428
|
+
$c,
|
|
7429
7429
|
{
|
|
7430
7430
|
droppableId: t,
|
|
7431
7431
|
type: i,
|
|
@@ -7439,7 +7439,7 @@ function Hn({
|
|
|
7439
7439
|
}
|
|
7440
7440
|
) });
|
|
7441
7441
|
}
|
|
7442
|
-
function
|
|
7442
|
+
function Gc() {
|
|
7443
7443
|
return /* @__PURE__ */ e("div", { className: "mr-5 flex h-8 grow items-center space-x-2 rounded-md border border-dashed border-muted-foreground bg-background px-2 py-1 text-sm", children: /* @__PURE__ */ e("span", { className: "text-muted-foreground/70", children: "Drop here" }) });
|
|
7444
7444
|
}
|
|
7445
7445
|
function Ar({ children: t, id: a, type: n }) {
|
|
@@ -7457,7 +7457,7 @@ function Ar({ children: t, id: a, type: n }) {
|
|
|
7457
7457
|
} : void 0;
|
|
7458
7458
|
return /* @__PURE__ */ e("div", { ...i, ...r, ref: l, style: h, children: t });
|
|
7459
7459
|
}
|
|
7460
|
-
function
|
|
7460
|
+
function Jc() {
|
|
7461
7461
|
const t = T((f) => {
|
|
7462
7462
|
var M;
|
|
7463
7463
|
return (M = f.card.queryConfig) == null ? void 0 : M.orderBy;
|
|
@@ -7470,7 +7470,7 @@ function Gc() {
|
|
|
7470
7470
|
}) || [], { addOrderByColumn: r, removeOrderByColumn: i, updateOrderByColumn: l } = X(), o = [...a, ...n];
|
|
7471
7471
|
if (o.length === 0)
|
|
7472
7472
|
return /* @__PURE__ */ e(se, {});
|
|
7473
|
-
const u = /* @__PURE__ */ e(
|
|
7473
|
+
const u = /* @__PURE__ */ e(Vl, { className: "size-3.5 text-muted-foreground hover:text-foreground" }), c = /* @__PURE__ */ e(Al, { className: "size-3.5 text-muted-foreground hover:text-foreground" }), h = /* @__PURE__ */ e(Rl, { className: "size-3.5 text-muted-foreground hover:text-foreground" }), d = /* @__PURE__ */ e(El, { className: "size-3.5 text-muted-foreground hover:text-foreground" }), m = o == null ? void 0 : o.filter((f) => !t.some((M) => M.columnId === f.id)).map((f) => ({
|
|
7474
7474
|
id: f.id,
|
|
7475
7475
|
value: f.label || f.name
|
|
7476
7476
|
}));
|
|
@@ -7571,7 +7571,7 @@ function Gc() {
|
|
|
7571
7571
|
}
|
|
7572
7572
|
);
|
|
7573
7573
|
}
|
|
7574
|
-
function
|
|
7574
|
+
function Hc() {
|
|
7575
7575
|
const t = T(
|
|
7576
7576
|
(N) => {
|
|
7577
7577
|
var f;
|
|
@@ -7646,7 +7646,7 @@ function Jc() {
|
|
|
7646
7646
|
previewColumns: i
|
|
7647
7647
|
}
|
|
7648
7648
|
),
|
|
7649
|
-
/* @__PURE__ */ e(
|
|
7649
|
+
/* @__PURE__ */ e(Jc, {})
|
|
7650
7650
|
] }),
|
|
7651
7651
|
/* @__PURE__ */ e(He, { orientation: "horizontal" })
|
|
7652
7652
|
] })
|
|
@@ -7721,7 +7721,7 @@ function Pa({
|
|
|
7721
7721
|
}
|
|
7722
7722
|
) });
|
|
7723
7723
|
}
|
|
7724
|
-
function
|
|
7724
|
+
function Uc({
|
|
7725
7725
|
column: t,
|
|
7726
7726
|
sortableType: a
|
|
7727
7727
|
}) {
|
|
@@ -7784,7 +7784,7 @@ function Hc({
|
|
|
7784
7784
|
) : p ? /* @__PURE__ */ e("div", { className: "flex h-8 min-w-60 items-center bg-muted px-2 text-sm", children: "Error" }) : /* @__PURE__ */ e(
|
|
7785
7785
|
va,
|
|
7786
7786
|
{
|
|
7787
|
-
renderFilterModeButton: () => /* @__PURE__ */ e(
|
|
7787
|
+
renderFilterModeButton: () => /* @__PURE__ */ e(Yc, { columnName: t.name }),
|
|
7788
7788
|
showNegativeIndicator: (i == null ? void 0 : i.mode) === "exclude",
|
|
7789
7789
|
options: N,
|
|
7790
7790
|
onChange: f,
|
|
@@ -7806,7 +7806,7 @@ function Hc({
|
|
|
7806
7806
|
}
|
|
7807
7807
|
);
|
|
7808
7808
|
}
|
|
7809
|
-
function
|
|
7809
|
+
function Yc({ columnName: t }) {
|
|
7810
7810
|
const { setEditorFilterMode: a } = X(), n = T(
|
|
7811
7811
|
(i) => {
|
|
7812
7812
|
var l, o;
|
|
@@ -7832,7 +7832,7 @@ function Uc({ columnName: t }) {
|
|
|
7832
7832
|
}
|
|
7833
7833
|
);
|
|
7834
7834
|
}
|
|
7835
|
-
function
|
|
7835
|
+
function Kc({
|
|
7836
7836
|
column: t,
|
|
7837
7837
|
sortableType: a
|
|
7838
7838
|
}) {
|
|
@@ -7884,7 +7884,7 @@ function Yc({
|
|
|
7884
7884
|
}
|
|
7885
7885
|
);
|
|
7886
7886
|
}
|
|
7887
|
-
function
|
|
7887
|
+
function Qc({
|
|
7888
7888
|
id: t,
|
|
7889
7889
|
label: a,
|
|
7890
7890
|
columns: n,
|
|
@@ -7909,11 +7909,11 @@ function Kc({
|
|
|
7909
7909
|
id: N.id,
|
|
7910
7910
|
sortableType: i,
|
|
7911
7911
|
column: N,
|
|
7912
|
-
children: /* @__PURE__ */ e(
|
|
7912
|
+
children: /* @__PURE__ */ e(Wc, {})
|
|
7913
7913
|
},
|
|
7914
7914
|
N.id
|
|
7915
7915
|
) : f ? /* @__PURE__ */ e(
|
|
7916
|
-
|
|
7916
|
+
Kc,
|
|
7917
7917
|
{
|
|
7918
7918
|
droppableId: t,
|
|
7919
7919
|
sortableType: i,
|
|
@@ -7921,7 +7921,7 @@ function Kc({
|
|
|
7921
7921
|
},
|
|
7922
7922
|
N.id
|
|
7923
7923
|
) : /* @__PURE__ */ e(
|
|
7924
|
-
|
|
7924
|
+
Uc,
|
|
7925
7925
|
{
|
|
7926
7926
|
droppableId: t,
|
|
7927
7927
|
sortableType: i,
|
|
@@ -7948,10 +7948,10 @@ function Kc({
|
|
|
7948
7948
|
}
|
|
7949
7949
|
) });
|
|
7950
7950
|
}
|
|
7951
|
-
function
|
|
7951
|
+
function Wc() {
|
|
7952
7952
|
return /* @__PURE__ */ e("div", { className: "flex h-8 w-60 items-center space-x-2 rounded-md border border-dashed border-muted-foreground bg-background px-2 py-1 text-sm text-muted-foreground", children: "Drop here" });
|
|
7953
7953
|
}
|
|
7954
|
-
function
|
|
7954
|
+
function Zc() {
|
|
7955
7955
|
const t = T(
|
|
7956
7956
|
(i) => {
|
|
7957
7957
|
var l;
|
|
@@ -7964,7 +7964,7 @@ function Wc() {
|
|
|
7964
7964
|
n(i);
|
|
7965
7965
|
}
|
|
7966
7966
|
return /* @__PURE__ */ e("section", { className: "size-full px-4 pb-4", children: /* @__PURE__ */ e(
|
|
7967
|
-
|
|
7967
|
+
Qc,
|
|
7968
7968
|
{
|
|
7969
7969
|
onRemoveColumn: r,
|
|
7970
7970
|
sortableType: ca,
|
|
@@ -7975,7 +7975,7 @@ function Wc() {
|
|
|
7975
7975
|
}
|
|
7976
7976
|
) });
|
|
7977
7977
|
}
|
|
7978
|
-
function
|
|
7978
|
+
function Xc() {
|
|
7979
7979
|
const t = T((l) => l.card), a = T((l) => l.showAIDialog), { setShowAIDialog: n } = X(), { data: r, errorMessage: i } = Ee(t);
|
|
7980
7980
|
return /* @__PURE__ */ s("section", { className: "flex justify-between gap-2 p-4", children: [
|
|
7981
7981
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-3", children: [
|
|
@@ -7987,7 +7987,7 @@ function Zc() {
|
|
|
7987
7987
|
variant: "secondary",
|
|
7988
7988
|
size: "sm",
|
|
7989
7989
|
children: [
|
|
7990
|
-
/* @__PURE__ */ e(
|
|
7990
|
+
/* @__PURE__ */ e(go, { className: "mr-2 h-4 w-4" }),
|
|
7991
7991
|
"Assistant"
|
|
7992
7992
|
]
|
|
7993
7993
|
}
|
|
@@ -8001,7 +8001,7 @@ function Zc() {
|
|
|
8001
8001
|
] })
|
|
8002
8002
|
] });
|
|
8003
8003
|
}
|
|
8004
|
-
function
|
|
8004
|
+
function ed() {
|
|
8005
8005
|
const t = ft(null), a = ft(null), n = T((u) => u.isShowingVisual), r = T((u) => u.showAIDialog), i = T((u) => u.isDevMode);
|
|
8006
8006
|
be(() => {
|
|
8007
8007
|
var u, c, h, d;
|
|
@@ -8016,7 +8016,7 @@ function Xc() {
|
|
|
8016
8016
|
className: "flex",
|
|
8017
8017
|
minSize: 20,
|
|
8018
8018
|
defaultSize: 40,
|
|
8019
|
-
children: /* @__PURE__ */ e(
|
|
8019
|
+
children: /* @__PURE__ */ e(Zo, {})
|
|
8020
8020
|
}
|
|
8021
8021
|
),
|
|
8022
8022
|
/* @__PURE__ */ e(tt, { withHandle: !0 }),
|
|
@@ -8035,7 +8035,7 @@ function Xc() {
|
|
|
8035
8035
|
className: "flex",
|
|
8036
8036
|
defaultSize: 25,
|
|
8037
8037
|
maxSize: 30,
|
|
8038
|
-
children: /* @__PURE__ */ e(
|
|
8038
|
+
children: /* @__PURE__ */ e(Rc, {})
|
|
8039
8039
|
}
|
|
8040
8040
|
) }),
|
|
8041
8041
|
!r && /* @__PURE__ */ e(tt, {}),
|
|
@@ -8058,7 +8058,7 @@ function Xc() {
|
|
|
8058
8058
|
ref: a,
|
|
8059
8059
|
defaultSize: 25,
|
|
8060
8060
|
maxSize: 30,
|
|
8061
|
-
children: /* @__PURE__ */ e(
|
|
8061
|
+
children: /* @__PURE__ */ e(Hc, {})
|
|
8062
8062
|
}
|
|
8063
8063
|
) }),
|
|
8064
8064
|
/* @__PURE__ */ e(tt, {}),
|
|
@@ -8070,8 +8070,8 @@ function Xc() {
|
|
|
8070
8070
|
minSize: 10,
|
|
8071
8071
|
defaultSize: 20,
|
|
8072
8072
|
children: [
|
|
8073
|
-
/* @__PURE__ */ e(
|
|
8074
|
-
/* @__PURE__ */ e(
|
|
8073
|
+
/* @__PURE__ */ e(Xc, {}),
|
|
8074
|
+
/* @__PURE__ */ e(Zc, {})
|
|
8075
8075
|
]
|
|
8076
8076
|
}
|
|
8077
8077
|
),
|
|
@@ -8091,7 +8091,7 @@ function Xc() {
|
|
|
8091
8091
|
}
|
|
8092
8092
|
);
|
|
8093
8093
|
}
|
|
8094
|
-
function
|
|
8094
|
+
function td(t, a) {
|
|
8095
8095
|
const [n, r] = V(""), [i, l] = V(null), { authToken: o } = lt(), u = T((Q) => {
|
|
8096
8096
|
var ie;
|
|
8097
8097
|
return (ie = Q == null ? void 0 : Q.card) == null ? void 0 : ie.sql;
|
|
@@ -8278,7 +8278,7 @@ function ed(t, a) {
|
|
|
8278
8278
|
errorMessage: Ve
|
|
8279
8279
|
};
|
|
8280
8280
|
}
|
|
8281
|
-
const
|
|
8281
|
+
const nd = [
|
|
8282
8282
|
{
|
|
8283
8283
|
title: "Help me write a query for",
|
|
8284
8284
|
subtitle: "orders by month"
|
|
@@ -8307,7 +8307,7 @@ function os() {
|
|
|
8307
8307
|
chatStatus: A,
|
|
8308
8308
|
llmUsage: R,
|
|
8309
8309
|
errorMessage: B
|
|
8310
|
-
} =
|
|
8310
|
+
} = td(d);
|
|
8311
8311
|
nl({
|
|
8312
8312
|
scrollContainerRef: t,
|
|
8313
8313
|
inputRef: a,
|
|
@@ -8471,7 +8471,7 @@ function os() {
|
|
|
8471
8471
|
il,
|
|
8472
8472
|
{
|
|
8473
8473
|
onClick: ee,
|
|
8474
|
-
placeholders:
|
|
8474
|
+
placeholders: nd
|
|
8475
8475
|
}
|
|
8476
8476
|
),
|
|
8477
8477
|
/* @__PURE__ */ e("div", { children: J && b && /* @__PURE__ */ e(
|
|
@@ -8526,7 +8526,7 @@ function os() {
|
|
|
8526
8526
|
}
|
|
8527
8527
|
);
|
|
8528
8528
|
}
|
|
8529
|
-
function
|
|
8529
|
+
function ad(t) {
|
|
8530
8530
|
return t.flatMap(
|
|
8531
8531
|
(a) => a.columns.map((n) => ({
|
|
8532
8532
|
id: `${a.entityId}-${n.name}`,
|
|
@@ -8573,7 +8573,7 @@ function Zt(t) {
|
|
|
8573
8573
|
function o(p) {
|
|
8574
8574
|
return p.type === "model" ? !!r && !!p.id : p.type === "table" || p.type === "view" ? n ? !!r && !!p.name && !!p.database && !!p.schema : !!r && !!p.name && !!p.database : !1;
|
|
8575
8575
|
}
|
|
8576
|
-
const u = [...i, ...l], c =
|
|
8576
|
+
const u = [...i, ...l], c = Tl({
|
|
8577
8577
|
queries: u.map((p) => ({
|
|
8578
8578
|
queryKey: ["columns", r, p],
|
|
8579
8579
|
queryFn: () => ws(
|
|
@@ -8620,7 +8620,7 @@ function Zt(t) {
|
|
|
8620
8620
|
}).filter((p) => {
|
|
8621
8621
|
var N;
|
|
8622
8622
|
return ((N = p == null ? void 0 : p.columns) == null ? void 0 : N.length) > 0;
|
|
8623
|
-
}) || [], g =
|
|
8623
|
+
}) || [], g = ad(C);
|
|
8624
8624
|
return {
|
|
8625
8625
|
columnGroups: C,
|
|
8626
8626
|
columns: g,
|
|
@@ -8632,7 +8632,7 @@ function Zt(t) {
|
|
|
8632
8632
|
}
|
|
8633
8633
|
};
|
|
8634
8634
|
}
|
|
8635
|
-
function
|
|
8635
|
+
function sd({ field: t }) {
|
|
8636
8636
|
const {
|
|
8637
8637
|
attributes: a,
|
|
8638
8638
|
listeners: n,
|
|
@@ -8653,9 +8653,9 @@ function ad({ field: t }) {
|
|
|
8653
8653
|
case "boolean":
|
|
8654
8654
|
return or;
|
|
8655
8655
|
case "json":
|
|
8656
|
-
return
|
|
8656
|
+
return Ul;
|
|
8657
8657
|
case "geo":
|
|
8658
|
-
return
|
|
8658
|
+
return po;
|
|
8659
8659
|
default:
|
|
8660
8660
|
return cr;
|
|
8661
8661
|
}
|
|
@@ -8748,7 +8748,7 @@ function ad({ field: t }) {
|
|
|
8748
8748
|
/* @__PURE__ */ e("span", { className: "break-all", children: t.label || t.name })
|
|
8749
8749
|
] }),
|
|
8750
8750
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
|
|
8751
|
-
/* @__PURE__ */ e(
|
|
8751
|
+
/* @__PURE__ */ e(wo, { className: "h-4 w-4 text-muted-foreground" }),
|
|
8752
8752
|
/* @__PURE__ */ e("span", { className: "break-all", children: t.name })
|
|
8753
8753
|
] }),
|
|
8754
8754
|
/* @__PURE__ */ e(ge, { variant: "outline", className: "mt-2 text-xs", children: t.dataType })
|
|
@@ -8757,7 +8757,7 @@ function ad({ field: t }) {
|
|
|
8757
8757
|
}
|
|
8758
8758
|
);
|
|
8759
8759
|
}
|
|
8760
|
-
function
|
|
8760
|
+
function rd({
|
|
8761
8761
|
entityGroup: t,
|
|
8762
8762
|
fields: a,
|
|
8763
8763
|
isOpen: n,
|
|
@@ -8778,12 +8778,12 @@ function sd({
|
|
|
8778
8778
|
{
|
|
8779
8779
|
items: a.map((i) => i.id),
|
|
8780
8780
|
strategy: Tt,
|
|
8781
|
-
children: a.map((i) => /* @__PURE__ */ e(
|
|
8781
|
+
children: a.map((i) => /* @__PURE__ */ e(sd, { field: i }, i.id))
|
|
8782
8782
|
}
|
|
8783
8783
|
) })
|
|
8784
8784
|
] });
|
|
8785
8785
|
}
|
|
8786
|
-
function
|
|
8786
|
+
function id() {
|
|
8787
8787
|
const [t, a] = V(""), [n, r] = V(/* @__PURE__ */ new Set()), [i, l] = V("all"), o = T((D) => D.card.dataSource), {
|
|
8788
8788
|
columns: u = [],
|
|
8789
8789
|
columnGroups: c = [],
|
|
@@ -8857,7 +8857,7 @@ function rd() {
|
|
|
8857
8857
|
/* @__PURE__ */ e("span", { className: "ml-2 text-xs font-semibold", children: f })
|
|
8858
8858
|
] }),
|
|
8859
8859
|
/* @__PURE__ */ s(Te, { value: "calculated", className: "text-xs", children: [
|
|
8860
|
-
/* @__PURE__ */ e(
|
|
8860
|
+
/* @__PURE__ */ e(_l, { className: "size-4 shrink-0" }),
|
|
8861
8861
|
/* @__PURE__ */ e("span", { className: "ml-2 text-xs font-semibold", children: M })
|
|
8862
8862
|
] })
|
|
8863
8863
|
] })
|
|
@@ -8872,7 +8872,7 @@ function rd() {
|
|
|
8872
8872
|
label: b.label
|
|
8873
8873
|
};
|
|
8874
8874
|
return /* @__PURE__ */ e(
|
|
8875
|
-
|
|
8875
|
+
rd,
|
|
8876
8876
|
{
|
|
8877
8877
|
entityGroup: x,
|
|
8878
8878
|
fields: b.fields,
|
|
@@ -8893,14 +8893,14 @@ function rd() {
|
|
|
8893
8893
|
] })
|
|
8894
8894
|
] });
|
|
8895
8895
|
}
|
|
8896
|
-
function
|
|
8896
|
+
function ld() {
|
|
8897
8897
|
return /* @__PURE__ */ s("div", { className: " h-full flex flex-col items-center", children: [
|
|
8898
8898
|
" ",
|
|
8899
|
-
/* @__PURE__ */ e(
|
|
8899
|
+
/* @__PURE__ */ e(id, {}),
|
|
8900
8900
|
" "
|
|
8901
8901
|
] });
|
|
8902
8902
|
}
|
|
8903
|
-
function
|
|
8903
|
+
function od({
|
|
8904
8904
|
initialJoinPlan: t,
|
|
8905
8905
|
availableDataSources: a
|
|
8906
8906
|
}) {
|
|
@@ -9171,7 +9171,7 @@ ${O.joinType} JOIN ${I.name}
|
|
|
9171
9171
|
))
|
|
9172
9172
|
};
|
|
9173
9173
|
}
|
|
9174
|
-
function
|
|
9174
|
+
function cd({
|
|
9175
9175
|
joinPlan: t,
|
|
9176
9176
|
availableDataSources: a,
|
|
9177
9177
|
onSave: n,
|
|
@@ -9200,7 +9200,7 @@ function od({
|
|
|
9200
9200
|
removeJoinKey: v,
|
|
9201
9201
|
generateSQLPreview: S,
|
|
9202
9202
|
isValidConfiguration: O
|
|
9203
|
-
} =
|
|
9203
|
+
} = od({
|
|
9204
9204
|
initialJoinPlan: t,
|
|
9205
9205
|
availableDataSources: a
|
|
9206
9206
|
}), I = (w) => {
|
|
@@ -9686,7 +9686,7 @@ function cs({
|
|
|
9686
9686
|
/* @__PURE__ */ e(bn, { children: "Configure the join between the two entities to combine the fields." })
|
|
9687
9687
|
] }),
|
|
9688
9688
|
/* @__PURE__ */ e(
|
|
9689
|
-
|
|
9689
|
+
cd,
|
|
9690
9690
|
{
|
|
9691
9691
|
joinPlan: r,
|
|
9692
9692
|
availableDataSources: i,
|
|
@@ -9699,7 +9699,7 @@ function cs({
|
|
|
9699
9699
|
t
|
|
9700
9700
|
] });
|
|
9701
9701
|
}
|
|
9702
|
-
function
|
|
9702
|
+
function dd({
|
|
9703
9703
|
joins: t,
|
|
9704
9704
|
baseEntityId: a,
|
|
9705
9705
|
availableDataSources: n,
|
|
@@ -9786,7 +9786,7 @@ function cd({
|
|
|
9786
9786
|
] })
|
|
9787
9787
|
] });
|
|
9788
9788
|
}
|
|
9789
|
-
function
|
|
9789
|
+
function ud() {
|
|
9790
9790
|
var m, C;
|
|
9791
9791
|
Zt(), T((g) => g.card.dataSource);
|
|
9792
9792
|
const t = T((g) => g.frame), a = T((g) => g.card), n = T(
|
|
@@ -9877,7 +9877,7 @@ ${N.joinType} JOIN ${f.name}
|
|
|
9877
9877
|
side: "right",
|
|
9878
9878
|
className: "max-w-md overflow-hidden p-0",
|
|
9879
9879
|
children: /* @__PURE__ */ e(
|
|
9880
|
-
|
|
9880
|
+
dd,
|
|
9881
9881
|
{
|
|
9882
9882
|
joins: r.joins,
|
|
9883
9883
|
baseEntityId: r.baseEntity.name,
|
|
@@ -9928,7 +9928,7 @@ ${N.joinType} JOIN ${f.name}
|
|
|
9928
9928
|
)
|
|
9929
9929
|
] }) }) });
|
|
9930
9930
|
}
|
|
9931
|
-
function
|
|
9931
|
+
function md() {
|
|
9932
9932
|
const [t, a] = V(!1), [n, r] = V(!0), i = T((c) => c.card.dataSource), { updateDataSource: l } = X(), o = {
|
|
9933
9933
|
connectionId: "",
|
|
9934
9934
|
connectionType: "",
|
|
@@ -9991,7 +9991,7 @@ function ud() {
|
|
|
9991
9991
|
variant: "secondary",
|
|
9992
9992
|
className: "group relative cursor-pointer pr-6 text-xs transition-colors hover:border-red-200 hover:bg-red-50 dark:hover:border-red-800 dark:hover:bg-red-950",
|
|
9993
9993
|
children: [
|
|
9994
|
-
c
|
|
9994
|
+
fl(c),
|
|
9995
9995
|
/* @__PURE__ */ e(
|
|
9996
9996
|
"button",
|
|
9997
9997
|
{
|
|
@@ -10020,14 +10020,14 @@ function ud() {
|
|
|
10020
10020
|
" more"
|
|
10021
10021
|
] })
|
|
10022
10022
|
] }),
|
|
10023
|
-
/* @__PURE__ */ e(
|
|
10023
|
+
/* @__PURE__ */ e(ud, {})
|
|
10024
10024
|
]
|
|
10025
10025
|
}
|
|
10026
10026
|
)
|
|
10027
10027
|
]
|
|
10028
10028
|
}
|
|
10029
10029
|
),
|
|
10030
|
-
/* @__PURE__ */ e(
|
|
10030
|
+
/* @__PURE__ */ e(ld, {}),
|
|
10031
10031
|
/* @__PURE__ */ e(
|
|
10032
10032
|
er,
|
|
10033
10033
|
{
|
|
@@ -10041,7 +10041,7 @@ function ud() {
|
|
|
10041
10041
|
)
|
|
10042
10042
|
] });
|
|
10043
10043
|
}
|
|
10044
|
-
const
|
|
10044
|
+
const hd = [
|
|
10045
10045
|
{ id: "table", icon: Ln, label: "Table" },
|
|
10046
10046
|
{ id: "bar", icon: zn, label: "Bar Chart" },
|
|
10047
10047
|
{ id: "line", icon: Fn, label: "Line Chart" },
|
|
@@ -10065,7 +10065,7 @@ const md = [
|
|
|
10065
10065
|
{ id: "map", icon: Oa, label: "Map" },
|
|
10066
10066
|
{ id: "custom", icon: Ea, label: "Custom" }
|
|
10067
10067
|
];
|
|
10068
|
-
function
|
|
10068
|
+
function pd({
|
|
10069
10069
|
selectedChart: t,
|
|
10070
10070
|
onChartChange: a
|
|
10071
10071
|
}) {
|
|
@@ -10077,7 +10077,7 @@ function hd({
|
|
|
10077
10077
|
}
|
|
10078
10078
|
return /* @__PURE__ */ e("div", { className: "mb-6", children: /* @__PURE__ */ s(le, { value: t, onValueChange: c, children: [
|
|
10079
10079
|
/* @__PURE__ */ e(oe, { className: "w-full", children: /* @__PURE__ */ e(ce, { placeholder: "Select chart type" }) }),
|
|
10080
|
-
/* @__PURE__ */ e(de, { children:
|
|
10080
|
+
/* @__PURE__ */ e(de, { children: hd.map((h) => {
|
|
10081
10081
|
const d = h.icon;
|
|
10082
10082
|
return /* @__PURE__ */ e(
|
|
10083
10083
|
U,
|
|
@@ -10098,7 +10098,7 @@ const zr = ({ dataType: t }) => {
|
|
|
10098
10098
|
const a = Je(t);
|
|
10099
10099
|
return a === "string" ? /* @__PURE__ */ e("span", { className: "flex h-4 w-4 items-center justify-center rounded-sm bg-blue-500 text-xs text-white", children: "T" }) : a === "number" ? /* @__PURE__ */ e("span", { className: "flex h-4 w-4 items-center justify-center rounded-sm bg-green-500 text-xs text-white", children: "#" }) : a === "date" ? /* @__PURE__ */ e("span", { className: "flex h-4 w-4 items-center justify-center rounded-sm bg-purple-500 text-xs text-white", children: "D" }) : a === "boolean" ? /* @__PURE__ */ e("span", { className: "flex h-4 w-4 items-center justify-center rounded-sm bg-orange-500 text-xs text-white", children: "B" }) : /* @__PURE__ */ e("span", { className: "flex h-4 w-4 items-center justify-center rounded-sm bg-gray-500 text-xs text-white", children: "?" });
|
|
10100
10100
|
};
|
|
10101
|
-
function
|
|
10101
|
+
function fd({
|
|
10102
10102
|
label: t,
|
|
10103
10103
|
onLabelChange: a
|
|
10104
10104
|
}) {
|
|
@@ -10155,7 +10155,7 @@ function pd({
|
|
|
10155
10155
|
] })
|
|
10156
10156
|
] });
|
|
10157
10157
|
}
|
|
10158
|
-
function
|
|
10158
|
+
function gd({
|
|
10159
10159
|
aliasTemplate: t,
|
|
10160
10160
|
onAliasTemplateChange: a
|
|
10161
10161
|
}) {
|
|
@@ -10215,7 +10215,7 @@ function fd({
|
|
|
10215
10215
|
] })
|
|
10216
10216
|
] });
|
|
10217
10217
|
}
|
|
10218
|
-
function
|
|
10218
|
+
function yd({
|
|
10219
10219
|
valueAliases: t,
|
|
10220
10220
|
onValueAliasesChange: a
|
|
10221
10221
|
}) {
|
|
@@ -10337,7 +10337,7 @@ function gd({
|
|
|
10337
10337
|
] })
|
|
10338
10338
|
] });
|
|
10339
10339
|
}
|
|
10340
|
-
function
|
|
10340
|
+
function bd({
|
|
10341
10341
|
field: t,
|
|
10342
10342
|
zone: a,
|
|
10343
10343
|
onRemove: n,
|
|
@@ -10456,7 +10456,7 @@ function yd({
|
|
|
10456
10456
|
M && /* @__PURE__ */ s("div", { className: "space-y-3", children: [
|
|
10457
10457
|
/* @__PURE__ */ e("span", { className: "flex-1 overflow-hidden truncate px-0.5 text-xs text-gray-500", children: `${t.entityName}.${t.name}` }),
|
|
10458
10458
|
a !== "pivotBy" && /* @__PURE__ */ e(
|
|
10459
|
-
|
|
10459
|
+
fd,
|
|
10460
10460
|
{
|
|
10461
10461
|
label: t.label ?? "",
|
|
10462
10462
|
onLabelChange: r
|
|
@@ -10552,14 +10552,14 @@ function yd({
|
|
|
10552
10552
|
] }),
|
|
10553
10553
|
m && /* @__PURE__ */ s(se, { children: [
|
|
10554
10554
|
/* @__PURE__ */ e(
|
|
10555
|
-
|
|
10555
|
+
gd,
|
|
10556
10556
|
{
|
|
10557
10557
|
aliasTemplate: L,
|
|
10558
10558
|
onAliasTemplateChange: $
|
|
10559
10559
|
}
|
|
10560
10560
|
),
|
|
10561
10561
|
/* @__PURE__ */ e(
|
|
10562
|
-
|
|
10562
|
+
yd,
|
|
10563
10563
|
{
|
|
10564
10564
|
valueAliases: z,
|
|
10565
10565
|
onValueAliasesChange: j
|
|
@@ -10572,9 +10572,9 @@ function yd({
|
|
|
10572
10572
|
}
|
|
10573
10573
|
);
|
|
10574
10574
|
}
|
|
10575
|
-
function
|
|
10575
|
+
function vd({ concept: t }) {
|
|
10576
10576
|
return /* @__PURE__ */ e(Yt, { children: /* @__PURE__ */ s(yt, { delayDuration: 300, children: [
|
|
10577
|
-
/* @__PURE__ */ e(At, { asChild: !0, children: /* @__PURE__ */ e(
|
|
10577
|
+
/* @__PURE__ */ e(At, { asChild: !0, children: /* @__PURE__ */ e(gl, { className: "size-4 text-muted-foreground hover:text-foreground" }) }),
|
|
10578
10578
|
/* @__PURE__ */ e(bt, { side: "right", align: "start", className: "p-3", children: (() => {
|
|
10579
10579
|
switch (t) {
|
|
10580
10580
|
case "groupBy":
|
|
@@ -10686,7 +10686,7 @@ function nn({
|
|
|
10686
10686
|
return t === "sortBy" && m === !1 ? null : /* @__PURE__ */ s("div", { className: "mb-4", children: [
|
|
10687
10687
|
/* @__PURE__ */ s("div", { className: "mb-2 flex items-center gap-2", children: [
|
|
10688
10688
|
/* @__PURE__ */ e(H, { className: "block text-sm font-medium", children: n }),
|
|
10689
|
-
/* @__PURE__ */ e(
|
|
10689
|
+
/* @__PURE__ */ e(vd, { concept: t })
|
|
10690
10690
|
] }),
|
|
10691
10691
|
/* @__PURE__ */ e(
|
|
10692
10692
|
"div",
|
|
@@ -10708,7 +10708,7 @@ function nn({
|
|
|
10708
10708
|
{
|
|
10709
10709
|
className: "flex w-full items-center gap-2",
|
|
10710
10710
|
children: /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
|
|
10711
|
-
|
|
10711
|
+
bd,
|
|
10712
10712
|
{
|
|
10713
10713
|
field: E,
|
|
10714
10714
|
zone: t,
|
|
@@ -10738,7 +10738,7 @@ function nn({
|
|
|
10738
10738
|
)
|
|
10739
10739
|
] });
|
|
10740
10740
|
}
|
|
10741
|
-
function
|
|
10741
|
+
function xd({
|
|
10742
10742
|
groupByFields: t,
|
|
10743
10743
|
pivotByFields: a,
|
|
10744
10744
|
metricsFields: n,
|
|
@@ -10805,7 +10805,7 @@ function vd({
|
|
|
10805
10805
|
)
|
|
10806
10806
|
] });
|
|
10807
10807
|
}
|
|
10808
|
-
function
|
|
10808
|
+
function Nd({
|
|
10809
10809
|
selectedChart: t,
|
|
10810
10810
|
onChartChange: a,
|
|
10811
10811
|
groupByFields: n,
|
|
@@ -10829,7 +10829,7 @@ function xd({
|
|
|
10829
10829
|
/* @__PURE__ */ e("h2", { className: "font-semibold", children: "Chart Configuration" })
|
|
10830
10830
|
] }),
|
|
10831
10831
|
/* @__PURE__ */ e(
|
|
10832
|
-
|
|
10832
|
+
pd,
|
|
10833
10833
|
{
|
|
10834
10834
|
selectedChart: t,
|
|
10835
10835
|
onChartChange: a
|
|
@@ -10838,7 +10838,7 @@ function xd({
|
|
|
10838
10838
|
] }),
|
|
10839
10839
|
/* @__PURE__ */ s(xt, { className: "flex-1 p-6", children: [
|
|
10840
10840
|
/* @__PURE__ */ e(
|
|
10841
|
-
|
|
10841
|
+
xd,
|
|
10842
10842
|
{
|
|
10843
10843
|
groupByFields: n,
|
|
10844
10844
|
pivotByFields: r,
|
|
@@ -10857,7 +10857,7 @@ function xd({
|
|
|
10857
10857
|
] })
|
|
10858
10858
|
] });
|
|
10859
10859
|
}
|
|
10860
|
-
function
|
|
10860
|
+
function Cd({
|
|
10861
10861
|
initialFilters: t,
|
|
10862
10862
|
availableFields: a
|
|
10863
10863
|
} = {}) {
|
|
@@ -11072,7 +11072,7 @@ function Nd({
|
|
|
11072
11072
|
hasAnyFilters: D
|
|
11073
11073
|
};
|
|
11074
11074
|
}
|
|
11075
|
-
const
|
|
11075
|
+
const wd = (t) => {
|
|
11076
11076
|
switch (t) {
|
|
11077
11077
|
case "table":
|
|
11078
11078
|
return /* @__PURE__ */ e(Xa, { className: "h-3 w-3" });
|
|
@@ -11081,11 +11081,11 @@ const Cd = (t) => {
|
|
|
11081
11081
|
case "dataset":
|
|
11082
11082
|
return /* @__PURE__ */ e(Ca, { className: "h-3 w-3" });
|
|
11083
11083
|
case "file":
|
|
11084
|
-
return /* @__PURE__ */ e(
|
|
11084
|
+
return /* @__PURE__ */ e(to, { className: "h-3 w-3" });
|
|
11085
11085
|
default:
|
|
11086
11086
|
return /* @__PURE__ */ e(Xa, { className: "h-3 w-3" });
|
|
11087
11087
|
}
|
|
11088
|
-
},
|
|
11088
|
+
}, Sd = (t) => {
|
|
11089
11089
|
switch (t) {
|
|
11090
11090
|
case "table":
|
|
11091
11091
|
return "Table";
|
|
@@ -11098,14 +11098,14 @@ const Cd = (t) => {
|
|
|
11098
11098
|
default:
|
|
11099
11099
|
return "Table";
|
|
11100
11100
|
}
|
|
11101
|
-
},
|
|
11101
|
+
}, kd = (t) => {
|
|
11102
11102
|
if (t.qualifiedEntityName) {
|
|
11103
11103
|
const a = t.qualifiedEntityName.split(".");
|
|
11104
11104
|
return a.length > 1 ? a[0] : "default";
|
|
11105
11105
|
}
|
|
11106
11106
|
return "default";
|
|
11107
11107
|
};
|
|
11108
|
-
function
|
|
11108
|
+
function Md({
|
|
11109
11109
|
value: t,
|
|
11110
11110
|
onValueChange: a,
|
|
11111
11111
|
availableFields: n,
|
|
@@ -11115,7 +11115,7 @@ function kd({
|
|
|
11115
11115
|
const [l, o] = Le.useState(!1), u = Le.useMemo(() => {
|
|
11116
11116
|
const c = {};
|
|
11117
11117
|
return n.forEach((h) => {
|
|
11118
|
-
const d =
|
|
11118
|
+
const d = kd(h);
|
|
11119
11119
|
c[d] || (c[d] = {}), c[d][h.entityId] || (c[d][h.entityId] = []), c[d][h.entityId].push(h);
|
|
11120
11120
|
}), c;
|
|
11121
11121
|
}, [n]);
|
|
@@ -11137,7 +11137,7 @@ function kd({
|
|
|
11137
11137
|
".",
|
|
11138
11138
|
t.name
|
|
11139
11139
|
] }) }) : r,
|
|
11140
|
-
/* @__PURE__ */ e(
|
|
11140
|
+
/* @__PURE__ */ e(Gl, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
|
|
11141
11141
|
]
|
|
11142
11142
|
}
|
|
11143
11143
|
) }),
|
|
@@ -11153,9 +11153,9 @@ function kd({
|
|
|
11153
11153
|
] }),
|
|
11154
11154
|
children: Object.entries(h).map(([d, m]) => /* @__PURE__ */ s("div", { children: [
|
|
11155
11155
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-2 bg-gray-50/50 px-2 py-1 text-xs font-medium text-gray-600", children: [
|
|
11156
|
-
|
|
11156
|
+
wd(m[0].entityType),
|
|
11157
11157
|
/* @__PURE__ */ e("span", { children: m[0].entityName }),
|
|
11158
|
-
/* @__PURE__ */ e(ge, { variant: "secondary", className: "text-xs", children:
|
|
11158
|
+
/* @__PURE__ */ e(ge, { variant: "secondary", className: "text-xs", children: Sd(m[0].entityType) })
|
|
11159
11159
|
] }),
|
|
11160
11160
|
m.map((C) => /* @__PURE__ */ s(
|
|
11161
11161
|
Sn,
|
|
@@ -11259,7 +11259,7 @@ function _a(t) {
|
|
|
11259
11259
|
})
|
|
11260
11260
|
), isPending: d, error: m };
|
|
11261
11261
|
}
|
|
11262
|
-
function
|
|
11262
|
+
function Td({
|
|
11263
11263
|
field: t,
|
|
11264
11264
|
selected: a,
|
|
11265
11265
|
onChange: n,
|
|
@@ -11345,7 +11345,7 @@ const Fr = (t) => {
|
|
|
11345
11345
|
a += Fr(n);
|
|
11346
11346
|
}), a;
|
|
11347
11347
|
};
|
|
11348
|
-
function
|
|
11348
|
+
function Dd({
|
|
11349
11349
|
field: t,
|
|
11350
11350
|
value: a,
|
|
11351
11351
|
onChange: n,
|
|
@@ -11368,7 +11368,7 @@ function Td({
|
|
|
11368
11368
|
)) })
|
|
11369
11369
|
] });
|
|
11370
11370
|
}
|
|
11371
|
-
const
|
|
11371
|
+
const Od = [
|
|
11372
11372
|
"=",
|
|
11373
11373
|
"!=",
|
|
11374
11374
|
">",
|
|
@@ -11380,7 +11380,7 @@ const Dd = [
|
|
|
11380
11380
|
"endsWith",
|
|
11381
11381
|
"in",
|
|
11382
11382
|
"not in"
|
|
11383
|
-
],
|
|
11383
|
+
], Id = [
|
|
11384
11384
|
"=",
|
|
11385
11385
|
"!=",
|
|
11386
11386
|
"contains",
|
|
@@ -11388,7 +11388,7 @@ const Dd = [
|
|
|
11388
11388
|
"endsWith",
|
|
11389
11389
|
"in",
|
|
11390
11390
|
"not in"
|
|
11391
|
-
],
|
|
11391
|
+
], Ed = [
|
|
11392
11392
|
"=",
|
|
11393
11393
|
"!=",
|
|
11394
11394
|
">",
|
|
@@ -11397,7 +11397,7 @@ const Dd = [
|
|
|
11397
11397
|
"<=",
|
|
11398
11398
|
"in",
|
|
11399
11399
|
"not in"
|
|
11400
|
-
],
|
|
11400
|
+
], Ad = ["=", "!="], zd = [
|
|
11401
11401
|
"=",
|
|
11402
11402
|
"!=",
|
|
11403
11403
|
">",
|
|
@@ -11407,18 +11407,18 @@ const Dd = [
|
|
|
11407
11407
|
"in",
|
|
11408
11408
|
"not in"
|
|
11409
11409
|
];
|
|
11410
|
-
function
|
|
11410
|
+
function Fd(t) {
|
|
11411
11411
|
switch (t) {
|
|
11412
11412
|
case "string":
|
|
11413
|
-
return Od;
|
|
11414
|
-
case "number":
|
|
11415
11413
|
return Id;
|
|
11416
|
-
case "
|
|
11414
|
+
case "number":
|
|
11417
11415
|
return Ed;
|
|
11418
|
-
case "
|
|
11416
|
+
case "boolean":
|
|
11419
11417
|
return Ad;
|
|
11418
|
+
case "date":
|
|
11419
|
+
return zd;
|
|
11420
11420
|
default:
|
|
11421
|
-
return
|
|
11421
|
+
return Od;
|
|
11422
11422
|
}
|
|
11423
11423
|
}
|
|
11424
11424
|
function Lr({
|
|
@@ -11477,7 +11477,7 @@ function Lr({
|
|
|
11477
11477
|
),
|
|
11478
11478
|
a === 0 && /* @__PURE__ */ e("div", { className: "w-24" }),
|
|
11479
11479
|
/* @__PURE__ */ e(
|
|
11480
|
-
|
|
11480
|
+
Md,
|
|
11481
11481
|
{
|
|
11482
11482
|
value: t.field,
|
|
11483
11483
|
onValueChange: (M) => {
|
|
@@ -11506,7 +11506,7 @@ function Lr({
|
|
|
11506
11506
|
},
|
|
11507
11507
|
children: [
|
|
11508
11508
|
/* @__PURE__ */ e(oe, { className: "w-28", children: /* @__PURE__ */ e(ce, {}) }),
|
|
11509
|
-
/* @__PURE__ */ e(de, { children:
|
|
11509
|
+
/* @__PURE__ */ e(de, { children: Fd(Je(t.field.dataType)).map(
|
|
11510
11510
|
(M) => /* @__PURE__ */ e(U, { value: M, children: M }, M)
|
|
11511
11511
|
) })
|
|
11512
11512
|
]
|
|
@@ -11516,7 +11516,7 @@ function Lr({
|
|
|
11516
11516
|
/* @__PURE__ */ e(Re, { className: "mr-2 size-3.5 animate-spin" }),
|
|
11517
11517
|
" Loading values..."
|
|
11518
11518
|
] }) : N ? /* @__PURE__ */ e("div", { className: "flex-1 p-2 text-xs text-red-500", children: "Error loading values" }) : /* @__PURE__ */ e(
|
|
11519
|
-
|
|
11519
|
+
Td,
|
|
11520
11520
|
{
|
|
11521
11521
|
field: t.field,
|
|
11522
11522
|
selected: Array.isArray(t.value) && t.value.every((M) => typeof M == "string") ? t.value : [],
|
|
@@ -11539,7 +11539,7 @@ function Lr({
|
|
|
11539
11539
|
placeholder: t.operator.charAt(0).toUpperCase() + t.operator.slice(1) + "..."
|
|
11540
11540
|
}
|
|
11541
11541
|
) : /* @__PURE__ */ e(
|
|
11542
|
-
|
|
11542
|
+
Dd,
|
|
11543
11543
|
{
|
|
11544
11544
|
field: t.field,
|
|
11545
11545
|
value: typeof t.value == "string" ? t.value : "",
|
|
@@ -11585,7 +11585,7 @@ function Lr({
|
|
|
11585
11585
|
}
|
|
11586
11586
|
);
|
|
11587
11587
|
}
|
|
11588
|
-
function
|
|
11588
|
+
function Ld({
|
|
11589
11589
|
group: t,
|
|
11590
11590
|
depth: a,
|
|
11591
11591
|
parentGroupId: n,
|
|
@@ -11778,7 +11778,7 @@ function Fd({
|
|
|
11778
11778
|
}
|
|
11779
11779
|
);
|
|
11780
11780
|
}
|
|
11781
|
-
function
|
|
11781
|
+
function Rd({
|
|
11782
11782
|
filters: t,
|
|
11783
11783
|
availableFields: a,
|
|
11784
11784
|
onSave: n,
|
|
@@ -11802,7 +11802,7 @@ function Ld({
|
|
|
11802
11802
|
generateSQLPreview: M,
|
|
11803
11803
|
hasAnyFilters: E,
|
|
11804
11804
|
setCurrentFilters: D
|
|
11805
|
-
} =
|
|
11805
|
+
} = Cd({
|
|
11806
11806
|
initialFilters: t,
|
|
11807
11807
|
availableFields: a
|
|
11808
11808
|
}), b = Bt(
|
|
@@ -11922,7 +11922,7 @@ function Ld({
|
|
|
11922
11922
|
)
|
|
11923
11923
|
] })
|
|
11924
11924
|
] }) }, w.id) : /* @__PURE__ */ e(
|
|
11925
|
-
|
|
11925
|
+
Ld,
|
|
11926
11926
|
{
|
|
11927
11927
|
group: w,
|
|
11928
11928
|
depth: L,
|
|
@@ -11986,7 +11986,7 @@ function Ld({
|
|
|
11986
11986
|
] })
|
|
11987
11987
|
] });
|
|
11988
11988
|
}
|
|
11989
|
-
function
|
|
11989
|
+
function Vd({
|
|
11990
11990
|
cardId: t,
|
|
11991
11991
|
filters: a,
|
|
11992
11992
|
onFiltersChange: n,
|
|
@@ -12001,7 +12001,7 @@ function Rd({
|
|
|
12001
12001
|
/* @__PURE__ */ e(bn, { children: "Add filters to the card to limit the data that is displayed." })
|
|
12002
12002
|
] }),
|
|
12003
12003
|
/* @__PURE__ */ e(
|
|
12004
|
-
|
|
12004
|
+
Rd,
|
|
12005
12005
|
{
|
|
12006
12006
|
filters: a,
|
|
12007
12007
|
availableFields: i,
|
|
@@ -12022,7 +12022,7 @@ function Rr(t, a) {
|
|
|
12022
12022
|
function Vr(t, a) {
|
|
12023
12023
|
return `${t}-${a.qualifiedEntityName}-${a.name}-${Date.now()}`;
|
|
12024
12024
|
}
|
|
12025
|
-
function
|
|
12025
|
+
function jd({
|
|
12026
12026
|
activeCardId: t,
|
|
12027
12027
|
sourceFields: a,
|
|
12028
12028
|
getFieldsForContainer: n,
|
|
@@ -12184,7 +12184,7 @@ function Vd({
|
|
|
12184
12184
|
handleDragEnd: y
|
|
12185
12185
|
};
|
|
12186
12186
|
}
|
|
12187
|
-
const
|
|
12187
|
+
const qd = (t) => {
|
|
12188
12188
|
const {
|
|
12189
12189
|
updateCardConfig: a,
|
|
12190
12190
|
updateGroupByColumn: n,
|
|
@@ -12409,7 +12409,7 @@ const jd = (t) => {
|
|
|
12409
12409
|
removeField: E
|
|
12410
12410
|
};
|
|
12411
12411
|
};
|
|
12412
|
-
function
|
|
12412
|
+
function Bd({ activeView: t, onViewChange: a }) {
|
|
12413
12413
|
return /* @__PURE__ */ e(
|
|
12414
12414
|
Qt,
|
|
12415
12415
|
{
|
|
@@ -12444,7 +12444,7 @@ function qd({ activeView: t, onViewChange: a }) {
|
|
|
12444
12444
|
}
|
|
12445
12445
|
);
|
|
12446
12446
|
}
|
|
12447
|
-
const
|
|
12447
|
+
const Pd = [
|
|
12448
12448
|
{ value: "10", label: "Top 10" },
|
|
12449
12449
|
{ value: "20", label: "Top 20" },
|
|
12450
12450
|
{ value: "50", label: "Top 50" },
|
|
@@ -12454,7 +12454,7 @@ const Bd = [
|
|
|
12454
12454
|
{ value: "1000", label: "Top 1000" }
|
|
12455
12455
|
// { value: 'custom', label: 'Custom' },
|
|
12456
12456
|
];
|
|
12457
|
-
function
|
|
12457
|
+
function _d() {
|
|
12458
12458
|
var c, h;
|
|
12459
12459
|
const t = T((d) => d.card), { updateRowLimit: a } = X(), [n, r] = V(!1), [i, l] = V(""), o = (d) => {
|
|
12460
12460
|
if (d === "custom") {
|
|
@@ -12483,12 +12483,12 @@ function Pd() {
|
|
|
12483
12483
|
onValueChange: o,
|
|
12484
12484
|
children: [
|
|
12485
12485
|
/* @__PURE__ */ e(oe, { className: "h-8 w-24 border-none px-1", children: /* @__PURE__ */ e(ce, { placeholder: "Select limit" }) }),
|
|
12486
|
-
/* @__PURE__ */ e(de, { children:
|
|
12486
|
+
/* @__PURE__ */ e(de, { children: Pd.map((d) => /* @__PURE__ */ e(U, { value: d.value, children: d.label }, d.value)) })
|
|
12487
12487
|
]
|
|
12488
12488
|
}
|
|
12489
12489
|
) });
|
|
12490
12490
|
}
|
|
12491
|
-
function
|
|
12491
|
+
function $d({
|
|
12492
12492
|
// selectedChart,
|
|
12493
12493
|
activeView: t,
|
|
12494
12494
|
onViewChange: a,
|
|
@@ -12580,7 +12580,7 @@ function _d({
|
|
|
12580
12580
|
// w-0 is important to make sure the table doesn't overflow horizontally
|
|
12581
12581
|
/* @__PURE__ */ s("div", { className: "flex w-0 grow flex-col", children: [
|
|
12582
12582
|
/* @__PURE__ */ e(
|
|
12583
|
-
|
|
12583
|
+
yl,
|
|
12584
12584
|
{
|
|
12585
12585
|
showDebug: n,
|
|
12586
12586
|
onDebugToggle: r,
|
|
@@ -12595,7 +12595,7 @@ function _d({
|
|
|
12595
12595
|
/* @__PURE__ */ s("div", { className: "group/visualization flex max-w-full grow flex-col", children: [
|
|
12596
12596
|
/* @__PURE__ */ s("div", { className: "z-50 flex items-center gap-2 px-6", children: [
|
|
12597
12597
|
/* @__PURE__ */ s("div", { className: "flex items-center justify-between gap-2", children: [
|
|
12598
|
-
/* @__PURE__ */ e(
|
|
12598
|
+
/* @__PURE__ */ e(Bd, { activeView: t, onViewChange: a }),
|
|
12599
12599
|
u && /* @__PURE__ */ s(
|
|
12600
12600
|
ae,
|
|
12601
12601
|
{
|
|
@@ -12608,7 +12608,7 @@ function _d({
|
|
|
12608
12608
|
]
|
|
12609
12609
|
}
|
|
12610
12610
|
),
|
|
12611
|
-
/* @__PURE__ */ e(
|
|
12611
|
+
/* @__PURE__ */ e(_d, {})
|
|
12612
12612
|
] }),
|
|
12613
12613
|
/* @__PURE__ */ s(
|
|
12614
12614
|
"div",
|
|
@@ -12646,7 +12646,7 @@ function _d({
|
|
|
12646
12646
|
] })
|
|
12647
12647
|
);
|
|
12648
12648
|
}
|
|
12649
|
-
function
|
|
12649
|
+
function Gd({ activeField: t }) {
|
|
12650
12650
|
const [a, n] = V(!0);
|
|
12651
12651
|
return be(() => {
|
|
12652
12652
|
t && n(!0);
|
|
@@ -12662,7 +12662,7 @@ function $d({ activeField: t }) {
|
|
|
12662
12662
|
}
|
|
12663
12663
|
) : null;
|
|
12664
12664
|
}
|
|
12665
|
-
const
|
|
12665
|
+
const Jd = () => {
|
|
12666
12666
|
const t = console.error;
|
|
12667
12667
|
console.error = (...r) => {
|
|
12668
12668
|
r.length > 0 && typeof r[0] == "string" && r[0].includes(
|
|
@@ -12689,12 +12689,12 @@ const Gd = () => {
|
|
|
12689
12689
|
);
|
|
12690
12690
|
};
|
|
12691
12691
|
};
|
|
12692
|
-
function
|
|
12692
|
+
function Hd() {
|
|
12693
12693
|
var K, Z;
|
|
12694
12694
|
const [t, a] = V(
|
|
12695
12695
|
"chart"
|
|
12696
12696
|
), [n, r] = V(!1), [i, l] = V(!1), o = T((ne) => ne.showAIDialog), { setCardType: u } = X(), c = T((ne) => ne.card.type);
|
|
12697
|
-
be(() =>
|
|
12697
|
+
be(() => Jd(), []);
|
|
12698
12698
|
const h = () => {
|
|
12699
12699
|
console.log("Accept clicked - would save/apply current configuration");
|
|
12700
12700
|
}, d = () => {
|
|
@@ -12729,7 +12729,7 @@ function Jd() {
|
|
|
12729
12729
|
handleAliasTemplateChange: A,
|
|
12730
12730
|
handleValueAliasesChange: R,
|
|
12731
12731
|
removeField: B
|
|
12732
|
-
} =
|
|
12732
|
+
} = qd(O), { activeField: $, handleDragStart: j, handleDragEnd: re } = jd({
|
|
12733
12733
|
activeCardId: y.activeCardId,
|
|
12734
12734
|
sourceFields: b,
|
|
12735
12735
|
getFieldsForContainer: I,
|
|
@@ -12760,9 +12760,9 @@ function Jd() {
|
|
|
12760
12760
|
onDragEnd: re,
|
|
12761
12761
|
children: [
|
|
12762
12762
|
/* @__PURE__ */ s("div", { className: "flex h-full grow", children: [
|
|
12763
|
-
/* @__PURE__ */ e(
|
|
12763
|
+
/* @__PURE__ */ e(md, {}),
|
|
12764
12764
|
!o && /* @__PURE__ */ e(
|
|
12765
|
-
|
|
12765
|
+
Nd,
|
|
12766
12766
|
{
|
|
12767
12767
|
selectedChart: c,
|
|
12768
12768
|
onChartChange: g,
|
|
@@ -12780,7 +12780,7 @@ function Jd() {
|
|
|
12780
12780
|
}
|
|
12781
12781
|
),
|
|
12782
12782
|
/* @__PURE__ */ e(
|
|
12783
|
-
|
|
12783
|
+
$d,
|
|
12784
12784
|
{
|
|
12785
12785
|
selectedChart: c,
|
|
12786
12786
|
activeView: t,
|
|
@@ -12806,7 +12806,7 @@ function Jd() {
|
|
|
12806
12806
|
)
|
|
12807
12807
|
] }),
|
|
12808
12808
|
O && /* @__PURE__ */ e(
|
|
12809
|
-
|
|
12809
|
+
Vd,
|
|
12810
12810
|
{
|
|
12811
12811
|
cardId: O.id,
|
|
12812
12812
|
filters: ((Z = O.config) == null ? void 0 : Z.filters) || null,
|
|
@@ -12817,19 +12817,19 @@ function Jd() {
|
|
|
12817
12817
|
onOpenChange: l
|
|
12818
12818
|
}
|
|
12819
12819
|
),
|
|
12820
|
-
/* @__PURE__ */ e(As, { dropAnimation: null, children: /* @__PURE__ */ e(
|
|
12820
|
+
/* @__PURE__ */ e(As, { dropAnimation: null, children: /* @__PURE__ */ e(Gd, { activeField: $ || null }) })
|
|
12821
12821
|
]
|
|
12822
12822
|
}
|
|
12823
12823
|
);
|
|
12824
12824
|
}
|
|
12825
|
-
function
|
|
12825
|
+
function Ud({ authToken: t, onSave: a, onClose: n }) {
|
|
12826
12826
|
const r = ft(null), i = T((M) => M.showAIDialog), l = T((M) => M.isDevMode), { setAuthToken: o } = It(), { setShowAIDialog: u, setOnSave: c, setOnClose: h } = X(), {
|
|
12827
12827
|
handleDragOver: d,
|
|
12828
12828
|
handleDragEnd: m,
|
|
12829
12829
|
handleDragStart: C,
|
|
12830
12830
|
handleDragCancel: g,
|
|
12831
12831
|
sensors: y
|
|
12832
|
-
} =
|
|
12832
|
+
} = qo();
|
|
12833
12833
|
be(() => {
|
|
12834
12834
|
a && c(a), n && h(n);
|
|
12835
12835
|
}, [a, c, n, h]), be(() => {
|
|
@@ -12851,7 +12851,7 @@ function Hd({ authToken: t, onSave: a, onClose: n }) {
|
|
|
12851
12851
|
className: "grow",
|
|
12852
12852
|
direction: "horizontal",
|
|
12853
12853
|
children: [
|
|
12854
|
-
/* @__PURE__ */ e(Ce, { className: "min-w-[510px] rounded-none", children: /* @__PURE__ */ e(
|
|
12854
|
+
/* @__PURE__ */ e(Ce, { className: "min-w-[510px] rounded-none", children: /* @__PURE__ */ e(ed, {}) }),
|
|
12855
12855
|
/* @__PURE__ */ e(tt, {}),
|
|
12856
12856
|
/* @__PURE__ */ e(
|
|
12857
12857
|
Ce,
|
|
@@ -12876,7 +12876,7 @@ function Hd({ authToken: t, onSave: a, onClose: n }) {
|
|
|
12876
12876
|
className: "flex grow",
|
|
12877
12877
|
direction: "horizontal",
|
|
12878
12878
|
children: [
|
|
12879
|
-
/* @__PURE__ */ e(Ce, { className: "min-w-[510px] grow rounded-none", children: /* @__PURE__ */ e(
|
|
12879
|
+
/* @__PURE__ */ e(Ce, { className: "min-w-[510px] grow rounded-none", children: /* @__PURE__ */ e(Hd, {}) }),
|
|
12880
12880
|
/* @__PURE__ */ e(tt, {}),
|
|
12881
12881
|
/* @__PURE__ */ e(
|
|
12882
12882
|
Ce,
|
|
@@ -12911,7 +12911,7 @@ function Hd({ authToken: t, onSave: a, onClose: n }) {
|
|
|
12911
12911
|
}
|
|
12912
12912
|
) : f() });
|
|
12913
12913
|
}
|
|
12914
|
-
function
|
|
12914
|
+
function Yd() {
|
|
12915
12915
|
G((o) => o.selectedCardId);
|
|
12916
12916
|
const t = G((o) => o.selectedSheetId), { setIsVisualEditing: a } = G((o) => o.actions), n = G((o) => o.isVisualEditing), r = G((o) => o.actions.updateFrame);
|
|
12917
12917
|
function i(o) {
|
|
@@ -12927,11 +12927,11 @@ function Ud() {
|
|
|
12927
12927
|
className: _("flex grow", {
|
|
12928
12928
|
"max-h-0 overflow-hidden": !n
|
|
12929
12929
|
}),
|
|
12930
|
-
children: /* @__PURE__ */ e(
|
|
12930
|
+
children: /* @__PURE__ */ e(Ud, { onSave: i, onClose: l })
|
|
12931
12931
|
}
|
|
12932
12932
|
);
|
|
12933
12933
|
}
|
|
12934
|
-
function
|
|
12934
|
+
function Kd() {
|
|
12935
12935
|
const t = T((l) => l.selectedDatabaseName), a = T((l) => l.selectedTableName), n = G((l) => l.dashboard.filters) || [], { columns: r } = Pe(), { assignFilter: i } = Ir();
|
|
12936
12936
|
return /* @__PURE__ */ e(xt, { className: "flex-1 basis-0 flex-col px-3", children: r == null ? void 0 : r.map((l) => {
|
|
12937
12937
|
const o = n == null ? void 0 : n.find(
|
|
@@ -12956,7 +12956,7 @@ function Yd() {
|
|
|
12956
12956
|
);
|
|
12957
12957
|
}) });
|
|
12958
12958
|
}
|
|
12959
|
-
function
|
|
12959
|
+
function Qd() {
|
|
12960
12960
|
G((a) => a.showFilters);
|
|
12961
12961
|
const t = G(
|
|
12962
12962
|
(a) => a.actions.setShowFilters
|
|
@@ -12981,7 +12981,7 @@ function Kd() {
|
|
|
12981
12981
|
ColumnsComponent: () => (
|
|
12982
12982
|
// schemaName, tableName, columns
|
|
12983
12983
|
/* @__PURE__ */ e(
|
|
12984
|
-
|
|
12984
|
+
Kd,
|
|
12985
12985
|
{}
|
|
12986
12986
|
)
|
|
12987
12987
|
)
|
|
@@ -12989,7 +12989,7 @@ function Kd() {
|
|
|
12989
12989
|
) })
|
|
12990
12990
|
] });
|
|
12991
12991
|
}
|
|
12992
|
-
function
|
|
12992
|
+
function Wd() {
|
|
12993
12993
|
const t = G((r) => r.dashboard.filters), a = G((r) => r.theme), n = t == null ? void 0 : t.filter((r) => r.hide);
|
|
12994
12994
|
return n != null && n.length ? /* @__PURE__ */ e(
|
|
12995
12995
|
"div",
|
|
@@ -13012,7 +13012,7 @@ function Qd() {
|
|
|
13012
13012
|
}
|
|
13013
13013
|
) : null;
|
|
13014
13014
|
}
|
|
13015
|
-
function
|
|
13015
|
+
function Zd() {
|
|
13016
13016
|
const t = G((r) => r.showFilters), a = G((r) => r.isVisualEditing), n = G(
|
|
13017
13017
|
(r) => r.isDashboardEditing
|
|
13018
13018
|
);
|
|
@@ -13028,15 +13028,15 @@ function Wd() {
|
|
|
13028
13028
|
}),
|
|
13029
13029
|
children: [
|
|
13030
13030
|
/* @__PURE__ */ s("section", { className: "flex grow flex-col", children: [
|
|
13031
|
-
n && /* @__PURE__ */ e(
|
|
13032
|
-
/* @__PURE__ */ e(
|
|
13031
|
+
n && /* @__PURE__ */ e(Wd, {}),
|
|
13032
|
+
/* @__PURE__ */ e(bl, {})
|
|
13033
13033
|
] }),
|
|
13034
|
-
t && /* @__PURE__ */ e("div", { role: "filter-aside-container", className: "flex", children: /* @__PURE__ */ e(
|
|
13034
|
+
t && /* @__PURE__ */ e("div", { role: "filter-aside-container", className: "flex", children: /* @__PURE__ */ e(Qd, {}) })
|
|
13035
13035
|
]
|
|
13036
13036
|
}
|
|
13037
13037
|
);
|
|
13038
13038
|
}
|
|
13039
|
-
function
|
|
13039
|
+
function Xd() {
|
|
13040
13040
|
const t = G((i) => i.dashboard), a = G((i) => i.actions.setDashboard), n = G(
|
|
13041
13041
|
(i) => i.showDashboardJSON
|
|
13042
13042
|
), r = G(
|
|
@@ -13063,7 +13063,7 @@ function Zd() {
|
|
|
13063
13063
|
}
|
|
13064
13064
|
),
|
|
13065
13065
|
/* @__PURE__ */ e(
|
|
13066
|
-
|
|
13066
|
+
vl,
|
|
13067
13067
|
{
|
|
13068
13068
|
onChange: (i) => {
|
|
13069
13069
|
if (i)
|
|
@@ -13095,28 +13095,28 @@ function Zd() {
|
|
|
13095
13095
|
}
|
|
13096
13096
|
);
|
|
13097
13097
|
}
|
|
13098
|
-
function
|
|
13098
|
+
function ru({
|
|
13099
13099
|
showControls: t = !1,
|
|
13100
13100
|
showFooter: a = !0,
|
|
13101
13101
|
...n
|
|
13102
13102
|
}) {
|
|
13103
|
-
return /* @__PURE__ */ e(Dn, { FallbackComponent: tr, children: /* @__PURE__ */ s(
|
|
13104
|
-
/* @__PURE__ */ e(
|
|
13105
|
-
/* @__PURE__ */ s(
|
|
13106
|
-
/* @__PURE__ */ e(
|
|
13107
|
-
/* @__PURE__ */ s(
|
|
13108
|
-
t && /* @__PURE__ */ e(
|
|
13109
|
-
/* @__PURE__ */ e(
|
|
13110
|
-
/* @__PURE__ */ e(
|
|
13103
|
+
return /* @__PURE__ */ e(Dn, { FallbackComponent: tr, children: /* @__PURE__ */ s(xl, { dashboardProps: n, children: [
|
|
13104
|
+
/* @__PURE__ */ e(Nl, {}),
|
|
13105
|
+
/* @__PURE__ */ s(Cl, { children: [
|
|
13106
|
+
/* @__PURE__ */ e(Xd, {}),
|
|
13107
|
+
/* @__PURE__ */ s(wl, { ...n, children: [
|
|
13108
|
+
t && /* @__PURE__ */ e(Fo, {}),
|
|
13109
|
+
/* @__PURE__ */ e(Yd, {}),
|
|
13110
|
+
/* @__PURE__ */ e(Zd, {})
|
|
13111
13111
|
] })
|
|
13112
13112
|
] })
|
|
13113
13113
|
] }) });
|
|
13114
13114
|
}
|
|
13115
13115
|
export {
|
|
13116
|
-
|
|
13117
|
-
|
|
13116
|
+
ru as D,
|
|
13117
|
+
Ao as S,
|
|
13118
13118
|
Rt as a,
|
|
13119
|
-
|
|
13120
|
-
|
|
13119
|
+
So as c,
|
|
13120
|
+
Io as d,
|
|
13121
13121
|
dr as g
|
|
13122
13122
|
};
|