react-semaphor 0.0.322 → 0.0.324
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/{index-Dk3uEnCF.js → index-B8TJTP6w.js} +5841 -5798
- package/dist/chunks/{index-ClYhWvTn.js → index-BtbfL36X.js} +362 -368
- package/dist/chunks/index-QZuwimXt.js +240 -0
- package/dist/chunks/{index-DjaaK6dG.js → index-TH3j1Unm.js} +87 -82
- package/dist/chunks/{lucide-react-BqSErcRf.js → lucide-react-B8sneZam.js} +2 -2
- package/dist/chunks/{lucide-react-BzcOC31s.js → lucide-react-QRCXH2cF.js} +160 -160
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +13 -13
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/index-DkT-ulf-.js +0 -245
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as V, p as Os, u as
|
|
1
|
+
import { c as V, p as Os, u as O, n as zs, o as Ie, q as e, r as Fs, s as Is, t as z, j as Ts, v as Ds, w as Ms, x as Ls, y as Es, z as R, A as le, E as la, H as ra, J as ia, K as oa, M as st, N as at, O as tt, Q as Js, R as W, V as Ge, W as m, Y as nt, Z as lt, F as ca, _ as Qe, $ as Je, a0 as da, a1 as rt, a2 as ua, a3 as me, a4 as he, a5 as xe, a6 as pe, a7 as Se, a8 as fe, a9 as J, T as As, aa as Vs, ab as qs, ac as Rs, ad as ma, ae as ha, af as de, ag as it, ah as ot, ai as xa, aj as ct, C as dt, ak as ut, al as pa, B as mt, L as Ke, am as We, an as ht, ao as Ks, ap as fa, aq as ys, ar as Ne, as as ze, at as ge, au as ga, av as xt, aw as pt, ax as ft, ay as gt, I as jt, az as bt, aA as yt, aB as vt, aC as Ve, aD as vs, aE as Ct, a as Nt, aF as Be, aG as Cs, aH as Ae, aI as Ns, aJ as St, aK as wt, aL as kt, aM as Ot, aN as zt, aO as Ft, aP as bs, aQ as It, aR as Ws, aS as Tt, aT as Ys, aU as Dt, aV as Mt, aW as Lt, aX as Et, aY as ja, aZ as re, a_ as _s, a$ as ba, b0 as At, b1 as Vt, b2 as ls, b3 as qt, b4 as Rt, b5 as _t, b6 as Ht, b7 as $t, b8 as Pt, b9 as Bt, l as Ut, ba as us, bb as ya, bc as va, bd as Ca, be as rs, bf as Na, bg as is, bh as Xs, bi as Gt, bj as Qt, bk as ms, bl as hs, bm as xs, bn as Jt, X as Sa, bo as Kt, bp as Wt, bq as Yt, br as ps, bs as Fe, f as Xt, bt as Pe, bu as Hs, bv as wa, bw as Zt, bx as en, by as os, bz as sn, bA as an, bB as tn, bC as Zs, bD as nn, bE as ln, bF as rn, bG as on, bH as cn, bI as dn, bJ as un, bK as mn, bL as Te, bM as B, bN as U, bO as $s, bP as G, bQ as hn, bR as ka, bS as xn, bT as pn, bU as fn, bV as gn, bW as jn, bX as bn, bY as yn, bZ as vn, b_ as Cn } from "./index-B8TJTP6w.js";
|
|
2
2
|
import * as ea from "react";
|
|
3
|
-
import we, { useState as q, useMemo as Ss, useEffect as Z, useRef as ws, Suspense as
|
|
3
|
+
import we, { useState as q, useMemo as Ss, useEffect as Z, useRef as ws, Suspense as Nn } from "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
/**
|
|
6
6
|
* @license lucide-react v0.453.0 - ISC
|
|
@@ -8,7 +8,7 @@ import "react-dom";
|
|
|
8
8
|
* This source code is licensed under the ISC license.
|
|
9
9
|
* See the LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
|
-
const
|
|
11
|
+
const Sn = V("Box", [
|
|
12
12
|
[
|
|
13
13
|
"path",
|
|
14
14
|
{
|
|
@@ -25,7 +25,7 @@ const Nn = V("Box", [
|
|
|
25
25
|
* This source code is licensed under the ISC license.
|
|
26
26
|
* See the LICENSE file in the root directory of this source tree.
|
|
27
27
|
*/
|
|
28
|
-
const
|
|
28
|
+
const wn = V("ChartArea", [
|
|
29
29
|
["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
|
|
30
30
|
[
|
|
31
31
|
"path",
|
|
@@ -104,7 +104,7 @@ const Fa = V("ChartScatter", [
|
|
|
104
104
|
* This source code is licensed under the ISC license.
|
|
105
105
|
* See the LICENSE file in the root directory of this source tree.
|
|
106
106
|
*/
|
|
107
|
-
const
|
|
107
|
+
const kn = V("CircleX", [
|
|
108
108
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
109
109
|
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
110
110
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
@@ -115,7 +115,7 @@ const wn = V("CircleX", [
|
|
|
115
115
|
* This source code is licensed under the ISC license.
|
|
116
116
|
* See the LICENSE file in the root directory of this source tree.
|
|
117
117
|
*/
|
|
118
|
-
const
|
|
118
|
+
const On = V("CopyPlus", [
|
|
119
119
|
["line", { x1: "15", x2: "15", y1: "12", y2: "18", key: "1p7wdc" }],
|
|
120
120
|
["line", { x1: "12", x2: "18", y1: "15", y2: "15", key: "1nscbv" }],
|
|
121
121
|
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
|
@@ -127,7 +127,7 @@ const kn = V("CopyPlus", [
|
|
|
127
127
|
* This source code is licensed under the ISC license.
|
|
128
128
|
* See the LICENSE file in the root directory of this source tree.
|
|
129
129
|
*/
|
|
130
|
-
const
|
|
130
|
+
const zn = V("Database", [
|
|
131
131
|
["ellipse", { cx: "12", cy: "5", rx: "9", ry: "3", key: "msslwz" }],
|
|
132
132
|
["path", { d: "M3 5V19A9 3 0 0 0 21 19V5", key: "1wlel7" }],
|
|
133
133
|
["path", { d: "M3 12A9 3 0 0 0 21 12", key: "mv7ke4" }]
|
|
@@ -149,7 +149,7 @@ const Ia = V("EllipsisVertical", [
|
|
|
149
149
|
* This source code is licensed under the ISC license.
|
|
150
150
|
* See the LICENSE file in the root directory of this source tree.
|
|
151
151
|
*/
|
|
152
|
-
const
|
|
152
|
+
const Fn = V("Eraser", [
|
|
153
153
|
[
|
|
154
154
|
"path",
|
|
155
155
|
{
|
|
@@ -166,7 +166,7 @@ const zn = V("Eraser", [
|
|
|
166
166
|
* This source code is licensed under the ISC license.
|
|
167
167
|
* See the LICENSE file in the root directory of this source tree.
|
|
168
168
|
*/
|
|
169
|
-
const
|
|
169
|
+
const In = V("EyeClosed", [
|
|
170
170
|
["path", { d: "m15 18-.722-3.25", key: "1j64jw" }],
|
|
171
171
|
["path", { d: "M2 8a10.645 10.645 0 0 0 20 0", key: "1e7gxb" }],
|
|
172
172
|
["path", { d: "m20 15-1.726-2.05", key: "1cnuld" }],
|
|
@@ -179,7 +179,7 @@ const Fn = V("EyeClosed", [
|
|
|
179
179
|
* This source code is licensed under the ISC license.
|
|
180
180
|
* See the LICENSE file in the root directory of this source tree.
|
|
181
181
|
*/
|
|
182
|
-
const
|
|
182
|
+
const Tn = V("Eye", [
|
|
183
183
|
[
|
|
184
184
|
"path",
|
|
185
185
|
{
|
|
@@ -195,7 +195,7 @@ const In = V("Eye", [
|
|
|
195
195
|
* This source code is licensed under the ISC license.
|
|
196
196
|
* See the LICENSE file in the root directory of this source tree.
|
|
197
197
|
*/
|
|
198
|
-
const
|
|
198
|
+
const Dn = V("Glasses", [
|
|
199
199
|
["circle", { cx: "6", cy: "15", r: "4", key: "vux9w4" }],
|
|
200
200
|
["circle", { cx: "18", cy: "15", r: "4", key: "18o8ve" }],
|
|
201
201
|
["path", { d: "M14 15a2 2 0 0 0-2-2 2 2 0 0 0-2 2", key: "1ag4bs" }],
|
|
@@ -208,7 +208,7 @@ const Tn = V("Glasses", [
|
|
|
208
208
|
* This source code is licensed under the ISC license.
|
|
209
209
|
* See the LICENSE file in the root directory of this source tree.
|
|
210
210
|
*/
|
|
211
|
-
const
|
|
211
|
+
const Mn = V("Hammer", [
|
|
212
212
|
["path", { d: "m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9", key: "eefl8a" }],
|
|
213
213
|
["path", { d: "m18 15 4-4", key: "16gjal" }],
|
|
214
214
|
[
|
|
@@ -225,7 +225,7 @@ const Dn = V("Hammer", [
|
|
|
225
225
|
* This source code is licensed under the ISC license.
|
|
226
226
|
* See the LICENSE file in the root directory of this source tree.
|
|
227
227
|
*/
|
|
228
|
-
const
|
|
228
|
+
const Ln = V("Hash", [
|
|
229
229
|
["line", { x1: "4", x2: "20", y1: "9", y2: "9", key: "4lhtct" }],
|
|
230
230
|
["line", { x1: "4", x2: "20", y1: "15", y2: "15", key: "vyu0kd" }],
|
|
231
231
|
["line", { x1: "10", x2: "8", y1: "3", y2: "21", key: "1ggp8o" }],
|
|
@@ -237,7 +237,7 @@ const Mn = V("Hash", [
|
|
|
237
237
|
* This source code is licensed under the ISC license.
|
|
238
238
|
* See the LICENSE file in the root directory of this source tree.
|
|
239
239
|
*/
|
|
240
|
-
const
|
|
240
|
+
const En = V("House", [
|
|
241
241
|
["path", { d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8", key: "5wwlr5" }],
|
|
242
242
|
[
|
|
243
243
|
"path",
|
|
@@ -253,7 +253,7 @@ const Ln = V("House", [
|
|
|
253
253
|
* This source code is licensed under the ISC license.
|
|
254
254
|
* See the LICENSE file in the root directory of this source tree.
|
|
255
255
|
*/
|
|
256
|
-
const
|
|
256
|
+
const An = V("IdCard", [
|
|
257
257
|
["path", { d: "M16 10h2", key: "8sgtl7" }],
|
|
258
258
|
["path", { d: "M16 14h2", key: "epxaof" }],
|
|
259
259
|
["path", { d: "M6.17 15a3 3 0 0 1 5.66 0", key: "n6f512" }],
|
|
@@ -266,7 +266,7 @@ const En = V("IdCard", [
|
|
|
266
266
|
* This source code is licensed under the ISC license.
|
|
267
267
|
* See the LICENSE file in the root directory of this source tree.
|
|
268
268
|
*/
|
|
269
|
-
const
|
|
269
|
+
const Vn = V("ListEnd", [
|
|
270
270
|
["path", { d: "M16 12H3", key: "1a2rj7" }],
|
|
271
271
|
["path", { d: "M16 6H3", key: "1wxfjs" }],
|
|
272
272
|
["path", { d: "M10 18H3", key: "13769t" }],
|
|
@@ -279,7 +279,7 @@ const An = V("ListEnd", [
|
|
|
279
279
|
* This source code is licensed under the ISC license.
|
|
280
280
|
* See the LICENSE file in the root directory of this source tree.
|
|
281
281
|
*/
|
|
282
|
-
const
|
|
282
|
+
const qn = V("ListStart", [
|
|
283
283
|
["path", { d: "M16 12H3", key: "1a2rj7" }],
|
|
284
284
|
["path", { d: "M16 18H3", key: "12xzn7" }],
|
|
285
285
|
["path", { d: "M10 6H3", key: "lf8lx7" }],
|
|
@@ -292,22 +292,13 @@ const Vn = V("ListStart", [
|
|
|
292
292
|
* This source code is licensed under the ISC license.
|
|
293
293
|
* See the LICENSE file in the root directory of this source tree.
|
|
294
294
|
*/
|
|
295
|
-
const
|
|
295
|
+
const Rn = V("ListX", [
|
|
296
296
|
["path", { d: "M11 12H3", key: "51ecnj" }],
|
|
297
297
|
["path", { d: "M16 6H3", key: "1wxfjs" }],
|
|
298
298
|
["path", { d: "M16 18H3", key: "12xzn7" }],
|
|
299
299
|
["path", { d: "m19 10-4 4", key: "1tz659" }],
|
|
300
300
|
["path", { d: "m15 10 4 4", key: "1n7nei" }]
|
|
301
301
|
]);
|
|
302
|
-
/**
|
|
303
|
-
* @license lucide-react v0.453.0 - ISC
|
|
304
|
-
*
|
|
305
|
-
* This source code is licensed under the ISC license.
|
|
306
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
307
|
-
*/
|
|
308
|
-
const Ke = V("LoaderCircle", [
|
|
309
|
-
["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]
|
|
310
|
-
]);
|
|
311
302
|
/**
|
|
312
303
|
* @license lucide-react v0.453.0 - ISC
|
|
313
304
|
*
|
|
@@ -331,7 +322,7 @@ const Ta = V("Map", [
|
|
|
331
322
|
* This source code is licensed under the ISC license.
|
|
332
323
|
* See the LICENSE file in the root directory of this source tree.
|
|
333
324
|
*/
|
|
334
|
-
const
|
|
325
|
+
const _n = V("MessageSquareMore", [
|
|
335
326
|
["path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z", key: "1lielz" }],
|
|
336
327
|
["path", { d: "M8 10h.01", key: "19clt8" }],
|
|
337
328
|
["path", { d: "M12 10h.01", key: "1nrarc" }],
|
|
@@ -343,7 +334,7 @@ const Rn = V("MessageSquareMore", [
|
|
|
343
334
|
* This source code is licensed under the ISC license.
|
|
344
335
|
* See the LICENSE file in the root directory of this source tree.
|
|
345
336
|
*/
|
|
346
|
-
const
|
|
337
|
+
const Hn = V("Network", [
|
|
347
338
|
["rect", { x: "16", y: "16", width: "6", height: "6", rx: "1", key: "4q2zg0" }],
|
|
348
339
|
["rect", { x: "2", y: "16", width: "6", height: "6", rx: "1", key: "8cvhb9" }],
|
|
349
340
|
["rect", { x: "9", y: "2", width: "6", height: "6", rx: "1", key: "1egb70" }],
|
|
@@ -372,7 +363,7 @@ const Da = V("Pencil", [
|
|
|
372
363
|
* This source code is licensed under the ISC license.
|
|
373
364
|
* See the LICENSE file in the root directory of this source tree.
|
|
374
365
|
*/
|
|
375
|
-
const
|
|
366
|
+
const $n = V("Play", [
|
|
376
367
|
["polygon", { points: "6 3 20 12 6 21 6 3", key: "1oa8hb" }]
|
|
377
368
|
]);
|
|
378
369
|
/**
|
|
@@ -381,7 +372,7 @@ const Hn = V("Play", [
|
|
|
381
372
|
* This source code is licensed under the ISC license.
|
|
382
373
|
* See the LICENSE file in the root directory of this source tree.
|
|
383
374
|
*/
|
|
384
|
-
const
|
|
375
|
+
const Pn = V("Plug2", [
|
|
385
376
|
["path", { d: "M9 2v6", key: "17ngun" }],
|
|
386
377
|
["path", { d: "M15 2v6", key: "s7yy2p" }],
|
|
387
378
|
["path", { d: "M12 17v5", key: "bb1du9" }],
|
|
@@ -394,7 +385,7 @@ const $n = V("Plug2", [
|
|
|
394
385
|
* This source code is licensed under the ISC license.
|
|
395
386
|
* See the LICENSE file in the root directory of this source tree.
|
|
396
387
|
*/
|
|
397
|
-
const
|
|
388
|
+
const Bn = V("Save", [
|
|
398
389
|
[
|
|
399
390
|
"path",
|
|
400
391
|
{
|
|
@@ -428,7 +419,7 @@ const Ma = V("Shapes", [
|
|
|
428
419
|
* This source code is licensed under the ISC license.
|
|
429
420
|
* See the LICENSE file in the root directory of this source tree.
|
|
430
421
|
*/
|
|
431
|
-
const
|
|
422
|
+
const Un = V("ShieldQuestion", [
|
|
432
423
|
[
|
|
433
424
|
"path",
|
|
434
425
|
{
|
|
@@ -445,7 +436,7 @@ const Bn = V("ShieldQuestion", [
|
|
|
445
436
|
* This source code is licensed under the ISC license.
|
|
446
437
|
* See the LICENSE file in the root directory of this source tree.
|
|
447
438
|
*/
|
|
448
|
-
const
|
|
439
|
+
const Gn = V("Sigma", [
|
|
449
440
|
[
|
|
450
441
|
"path",
|
|
451
442
|
{
|
|
@@ -460,7 +451,7 @@ const Un = V("Sigma", [
|
|
|
460
451
|
* This source code is licensed under the ISC license.
|
|
461
452
|
* See the LICENSE file in the root directory of this source tree.
|
|
462
453
|
*/
|
|
463
|
-
const
|
|
454
|
+
const Qn = V("SwatchBook", [
|
|
464
455
|
["path", { d: "M11 17a4 4 0 0 1-8 0V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2Z", key: "1ldrpk" }],
|
|
465
456
|
["path", { d: "M16.7 13H19a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H7", key: "11i5po" }],
|
|
466
457
|
["path", { d: "M 7 17h.01", key: "1euzgo" }],
|
|
@@ -478,7 +469,7 @@ const Gn = V("SwatchBook", [
|
|
|
478
469
|
* This source code is licensed under the ISC license.
|
|
479
470
|
* See the LICENSE file in the root directory of this source tree.
|
|
480
471
|
*/
|
|
481
|
-
const
|
|
472
|
+
const Jn = V("Tag", [
|
|
482
473
|
[
|
|
483
474
|
"path",
|
|
484
475
|
{
|
|
@@ -494,7 +485,7 @@ const Qn = V("Tag", [
|
|
|
494
485
|
* This source code is licensed under the ISC license.
|
|
495
486
|
* See the LICENSE file in the root directory of this source tree.
|
|
496
487
|
*/
|
|
497
|
-
const
|
|
488
|
+
const Kn = V("ToggleLeft", [
|
|
498
489
|
["rect", { width: "20", height: "12", x: "2", y: "6", rx: "6", ry: "6", key: "f2vt7d" }],
|
|
499
490
|
["circle", { cx: "8", cy: "12", r: "2", key: "1nvbw3" }]
|
|
500
491
|
]);
|
|
@@ -515,7 +506,7 @@ const Us = V("Type", [
|
|
|
515
506
|
* This source code is licensed under the ISC license.
|
|
516
507
|
* See the LICENSE file in the root directory of this source tree.
|
|
517
508
|
*/
|
|
518
|
-
const
|
|
509
|
+
const Wn = V("User", [
|
|
519
510
|
["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
|
|
520
511
|
["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
|
|
521
512
|
]);
|
|
@@ -531,14 +522,14 @@ function La(s) {
|
|
|
531
522
|
var o;
|
|
532
523
|
return {
|
|
533
524
|
...l,
|
|
534
|
-
cards: (o = l.cards) == null ? void 0 : o.map((i) =>
|
|
525
|
+
cards: (o = l.cards) == null ? void 0 : o.map((i) => Yn(i))
|
|
535
526
|
};
|
|
536
527
|
})
|
|
537
528
|
};
|
|
538
529
|
})
|
|
539
530
|
};
|
|
540
531
|
}
|
|
541
|
-
function
|
|
532
|
+
function Yn(s) {
|
|
542
533
|
var t, a, n, l;
|
|
543
534
|
return {
|
|
544
535
|
...s,
|
|
@@ -553,12 +544,12 @@ function Wn(s) {
|
|
|
553
544
|
}))
|
|
554
545
|
}
|
|
555
546
|
},
|
|
556
|
-
customCfg:
|
|
547
|
+
customCfg: Xn(s.customCfg),
|
|
557
548
|
// if customCfg is present, clean it, otherwise return null{
|
|
558
549
|
data: []
|
|
559
550
|
};
|
|
560
551
|
}
|
|
561
|
-
function
|
|
552
|
+
function Xn(s) {
|
|
562
553
|
var t, a;
|
|
563
554
|
return s ? {
|
|
564
555
|
...s,
|
|
@@ -572,7 +563,7 @@ function Yn(s) {
|
|
|
572
563
|
}
|
|
573
564
|
} : null;
|
|
574
565
|
}
|
|
575
|
-
async function
|
|
566
|
+
async function Zn(s, t, a, n) {
|
|
576
567
|
if (!n)
|
|
577
568
|
return null;
|
|
578
569
|
const l = JSON.stringify(t);
|
|
@@ -596,19 +587,19 @@ async function ks(s, t) {
|
|
|
596
587
|
operation: "update"
|
|
597
588
|
});
|
|
598
589
|
}
|
|
599
|
-
async function
|
|
590
|
+
async function el(s, t) {
|
|
600
591
|
return t ? await Os("https://semaphor.cloud/api/v1/lens", t, {
|
|
601
592
|
operation: "delete",
|
|
602
593
|
lensId: s
|
|
603
594
|
}) : null;
|
|
604
595
|
}
|
|
605
|
-
function
|
|
606
|
-
const [s, t] = q(""), [a, n] = q(!1), l =
|
|
596
|
+
function sl() {
|
|
597
|
+
const [s, t] = q(""), [a, n] = q(!1), l = O((b) => b.lenses), { setLenses: o, setSelectedLensId: i } = zs(), [c, d] = q(!1), [p, u] = q(!1), y = O((b) => b.dashboard), g = O((b) => b.filterValues), { authToken: x } = Ie();
|
|
607
598
|
async function j() {
|
|
608
599
|
d(!0);
|
|
609
600
|
const b = La(
|
|
610
601
|
y
|
|
611
|
-
), I = await
|
|
602
|
+
), I = await Zn(
|
|
612
603
|
s,
|
|
613
604
|
b,
|
|
614
605
|
g,
|
|
@@ -618,7 +609,7 @@ function el() {
|
|
|
618
609
|
}
|
|
619
610
|
return /* @__PURE__ */ e.jsxs(Fs, { open: p, onOpenChange: u, children: [
|
|
620
611
|
/* @__PURE__ */ e.jsx(Is, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
|
|
621
|
-
|
|
612
|
+
z,
|
|
622
613
|
{
|
|
623
614
|
variant: "secondary",
|
|
624
615
|
className: "h-7 p-2",
|
|
@@ -650,7 +641,7 @@ function el() {
|
|
|
650
641
|
] }) }),
|
|
651
642
|
a && /* @__PURE__ */ e.jsx("p", { className: "text-sm", children: "The lens name already exists. Use a differnet name." }),
|
|
652
643
|
/* @__PURE__ */ e.jsx(la, { children: /* @__PURE__ */ e.jsx(
|
|
653
|
-
|
|
644
|
+
z,
|
|
654
645
|
{
|
|
655
646
|
size: "sm",
|
|
656
647
|
variant: "outline",
|
|
@@ -663,13 +654,13 @@ function el() {
|
|
|
663
654
|
] })
|
|
664
655
|
] });
|
|
665
656
|
}
|
|
666
|
-
function
|
|
667
|
-
const [s, t] = q(!1), a =
|
|
657
|
+
function al() {
|
|
658
|
+
const [s, t] = q(!1), a = O((u) => u.lenses), n = O((u) => u.selectedLensId), { setLenses: l, setSelectedLensId: o } = zs(), { authToken: i } = Ie();
|
|
668
659
|
async function c(u) {
|
|
669
660
|
o(u);
|
|
670
661
|
}
|
|
671
662
|
async function d(u) {
|
|
672
|
-
if (await
|
|
663
|
+
if (await el(u, i == null ? void 0 : i.accessToken)) {
|
|
673
664
|
const g = a == null ? void 0 : a.filter((x) => x.id !== u);
|
|
674
665
|
l(g || []), o("original");
|
|
675
666
|
}
|
|
@@ -698,7 +689,7 @@ function sl() {
|
|
|
698
689
|
}
|
|
699
690
|
}
|
|
700
691
|
return /* @__PURE__ */ e.jsxs(ra, { open: s, onOpenChange: t, children: [
|
|
701
|
-
/* @__PURE__ */ e.jsx(ia, { asChild: !0, children: /* @__PURE__ */ e.jsx(
|
|
692
|
+
/* @__PURE__ */ e.jsx(ia, { asChild: !0, children: /* @__PURE__ */ e.jsx(z, { variant: "ghost", className: "h-7 p-2", children: /* @__PURE__ */ e.jsx(Dn, { className: "h-4 w-4", strokeWidth: 1.5 }) }) }),
|
|
702
693
|
/* @__PURE__ */ e.jsxs(oa, { align: "end", className: "w-60", children: [
|
|
703
694
|
/* @__PURE__ */ e.jsx(st, { className: "px-3", children: "Lenses" }),
|
|
704
695
|
/* @__PURE__ */ e.jsx(at, {}),
|
|
@@ -718,7 +709,7 @@ function sl() {
|
|
|
718
709
|
/* @__PURE__ */ e.jsx("p", { children: u.name }),
|
|
719
710
|
/* @__PURE__ */ e.jsxs("span", { className: "flex items-center gap-3", children: [
|
|
720
711
|
/* @__PURE__ */ e.jsx(
|
|
721
|
-
|
|
712
|
+
En,
|
|
722
713
|
{
|
|
723
714
|
onClick: (y) => {
|
|
724
715
|
y.preventDefault(), p(u);
|
|
@@ -754,22 +745,25 @@ function sl() {
|
|
|
754
745
|
] })
|
|
755
746
|
] });
|
|
756
747
|
}
|
|
757
|
-
function
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
748
|
+
function tl() {
|
|
749
|
+
q(!1);
|
|
750
|
+
const { authToken: s } = Ie();
|
|
751
|
+
O((f) => f.theme);
|
|
752
|
+
const t = O((f) => f.lenses), a = O((f) => f.selectedLensId), n = t == null ? void 0 : t.find((f) => f.id === a), l = O((f) => f.dashboard);
|
|
753
|
+
O((f) => f.selectedSheetId);
|
|
754
|
+
const o = O(
|
|
761
755
|
(f) => f.isDashboardEditing
|
|
762
756
|
), i = m(
|
|
763
757
|
(f) => f.selectedConnectionId
|
|
764
|
-
), [c, d] = q(!1), p =
|
|
765
|
-
|
|
758
|
+
), [c, d] = q(!1), p = O((f) => f.filterValues), u = O((f) => f.isVisualEditing), y = O((f) => f.showFilters);
|
|
759
|
+
O(
|
|
766
760
|
(f) => f.showDashboardJSON
|
|
767
761
|
);
|
|
768
|
-
const g =
|
|
762
|
+
const g = O((f) => f.onSaveFunction), x = O(
|
|
769
763
|
(f) => f.actions.setShowFilters
|
|
770
|
-
), { addFrame: j, setSelectedFrameId: b } =
|
|
764
|
+
), { addFrame: j, setSelectedFrameId: b } = O(
|
|
771
765
|
(f) => f.actions
|
|
772
|
-
), { getSelectedSheet: I, setIsDashboardEditing: C, setShowDashboardJSON: D } =
|
|
766
|
+
), { getSelectedSheet: I, setIsDashboardEditing: C, setShowDashboardJSON: D } = O((f) => f.actions), F = I(), { tenantId: A, endUserId: N } = Ss(
|
|
773
767
|
() => nt(s == null ? void 0 : s.accessToken),
|
|
774
768
|
[s == null ? void 0 : s.accessToken]
|
|
775
769
|
), S = Ss(() => A || N, [A, N]), M = () => {
|
|
@@ -818,10 +812,11 @@ function al() {
|
|
|
818
812
|
children: [
|
|
819
813
|
!u && /* @__PURE__ */ e.jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ e.jsx(R, { children: n == null ? void 0 : n.name }) }),
|
|
820
814
|
/* @__PURE__ */ e.jsxs("div", { className: "flex gap-2", children: [
|
|
821
|
-
|
|
822
|
-
!u && S && /* @__PURE__ */ e.jsx(sl, {}),
|
|
815
|
+
/* @__PURE__ */ e.jsx(lt, {}),
|
|
816
|
+
o && !u && S && /* @__PURE__ */ e.jsx(sl, {}),
|
|
817
|
+
!u && S && /* @__PURE__ */ e.jsx(al, {}),
|
|
823
818
|
o && !u && /* @__PURE__ */ e.jsxs(
|
|
824
|
-
|
|
819
|
+
z,
|
|
825
820
|
{
|
|
826
821
|
variant: "secondary",
|
|
827
822
|
className: "h-7 p-2",
|
|
@@ -835,7 +830,7 @@ function al() {
|
|
|
835
830
|
}
|
|
836
831
|
),
|
|
837
832
|
!o && /* @__PURE__ */ e.jsx(
|
|
838
|
-
|
|
833
|
+
z,
|
|
839
834
|
{
|
|
840
835
|
variant: "ghost",
|
|
841
836
|
className: "h-7 p-2",
|
|
@@ -845,7 +840,7 @@ function al() {
|
|
|
845
840
|
}
|
|
846
841
|
),
|
|
847
842
|
o && !u && /* @__PURE__ */ e.jsx(
|
|
848
|
-
|
|
843
|
+
z,
|
|
849
844
|
{
|
|
850
845
|
variant: "ghost",
|
|
851
846
|
role: "close",
|
|
@@ -858,18 +853,18 @@ function al() {
|
|
|
858
853
|
}
|
|
859
854
|
),
|
|
860
855
|
o && !u && S && /* @__PURE__ */ e.jsx(
|
|
861
|
-
|
|
856
|
+
z,
|
|
862
857
|
{
|
|
863
858
|
className: "h-7 p-2",
|
|
864
859
|
variant: "ghost",
|
|
865
860
|
disabled: c,
|
|
866
861
|
onClick: v,
|
|
867
862
|
size: "sm",
|
|
868
|
-
children: /* @__PURE__ */ e.jsx(
|
|
863
|
+
children: /* @__PURE__ */ e.jsx(Bn, { className: "h-4 w-4", strokeWidth: 1.5 })
|
|
869
864
|
}
|
|
870
865
|
),
|
|
871
866
|
!y && !u && o && /* @__PURE__ */ e.jsx(
|
|
872
|
-
|
|
867
|
+
z,
|
|
873
868
|
{
|
|
874
869
|
className: "h-7 p-2",
|
|
875
870
|
variant: "ghost",
|
|
@@ -901,19 +896,19 @@ function $e({
|
|
|
901
896
|
const y = n ? "Loading..." : l ? "Error" : a;
|
|
902
897
|
function g() {
|
|
903
898
|
if (s === "Connection")
|
|
904
|
-
return /* @__PURE__ */ e.jsx(
|
|
899
|
+
return /* @__PURE__ */ e.jsx(Pn, { className: "size-4 rotate-90" });
|
|
905
900
|
if (s === "Database")
|
|
906
|
-
return /* @__PURE__ */ e.jsx(
|
|
901
|
+
return /* @__PURE__ */ e.jsx(zn, { className: "size-4" });
|
|
907
902
|
if (s === "Schema")
|
|
908
|
-
return /* @__PURE__ */ e.jsx(
|
|
903
|
+
return /* @__PURE__ */ e.jsx(Hn, { className: "size-4" });
|
|
909
904
|
if (s === "Table")
|
|
910
905
|
return /* @__PURE__ */ e.jsx(As, { className: "size-4" });
|
|
911
906
|
if (s === "Model")
|
|
912
|
-
return /* @__PURE__ */ e.jsx(
|
|
907
|
+
return /* @__PURE__ */ e.jsx(Sn, { className: "size-4" });
|
|
913
908
|
}
|
|
914
909
|
return /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
915
910
|
p && /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: o ? /* @__PURE__ */ e.jsxs(da, { children: [
|
|
916
|
-
/* @__PURE__ */ e.jsx(
|
|
911
|
+
/* @__PURE__ */ e.jsx(rt, { children: g() }),
|
|
917
912
|
/* @__PURE__ */ e.jsx(ua, { className: "text-xs", align: "start", children: o })
|
|
918
913
|
] }) : g() }),
|
|
919
914
|
/* @__PURE__ */ e.jsxs(me, { disabled: u, value: y, onValueChange: i, children: [
|
|
@@ -943,7 +938,7 @@ function $e({
|
|
|
943
938
|
] })
|
|
944
939
|
] });
|
|
945
940
|
}
|
|
946
|
-
function
|
|
941
|
+
function nl({ column: s }) {
|
|
947
942
|
const [t, a] = q(!1), n = m((x) => x.selectedTableName), l = m(
|
|
948
943
|
(x) => x.selectedSchemaName
|
|
949
944
|
), o = m(
|
|
@@ -1021,17 +1016,17 @@ function tl({ column: s }) {
|
|
|
1021
1016
|
}
|
|
1022
1017
|
function Ea({ column: s }) {
|
|
1023
1018
|
return /* @__PURE__ */ e.jsxs(da, { children: [
|
|
1024
|
-
/* @__PURE__ */ e.jsx(
|
|
1019
|
+
/* @__PURE__ */ e.jsx(it, { asChild: !0, children: ot.includes(s.data_type.toLowerCase()) ? (
|
|
1025
1020
|
// <span className=" font-thin">T</span>
|
|
1026
1021
|
/* @__PURE__ */ e.jsx(Us, { className: "size-3" })
|
|
1027
1022
|
) : xa.includes(s.data_type.toLowerCase()) ? (
|
|
1028
1023
|
//
|
|
1029
|
-
/* @__PURE__ */ e.jsx(
|
|
1030
|
-
) :
|
|
1024
|
+
/* @__PURE__ */ e.jsx(Ln, { className: "size-3" })
|
|
1025
|
+
) : ct.includes(s.data_type.toLowerCase()) ? /* @__PURE__ */ e.jsx(dt, { className: "size-3" }) : ut.includes(s.data_type.toLowerCase()) ? /* @__PURE__ */ e.jsx(Kn, { className: "size-3" }) : /* @__PURE__ */ e.jsx(Un, { className: "size-3" }) }),
|
|
1031
1026
|
/* @__PURE__ */ e.jsx(ua, { children: /* @__PURE__ */ e.jsx("p", { className: "font-mono text-xs", children: s.data_type }) })
|
|
1032
1027
|
] });
|
|
1033
1028
|
}
|
|
1034
|
-
function
|
|
1029
|
+
function ll({
|
|
1035
1030
|
schemaName: s,
|
|
1036
1031
|
tableName: t,
|
|
1037
1032
|
columns: a,
|
|
@@ -1045,9 +1040,9 @@ function nl({
|
|
|
1045
1040
|
(h) => h.selectedSchemaName
|
|
1046
1041
|
), d = m((h) => h.selectedTableName), p = m(
|
|
1047
1042
|
(h) => h.selectedDatamodelId
|
|
1048
|
-
), u =
|
|
1043
|
+
), u = O(
|
|
1049
1044
|
(h) => h.dashboard.aiScopeTables
|
|
1050
|
-
), { setAIScopeTables: y } =
|
|
1045
|
+
), { setAIScopeTables: y } = O((h) => h.actions), g = m((h) => h.actions.setRunSql), x = m((h) => h.actions.setSqlGen), j = m(
|
|
1051
1046
|
(h) => h.actions.setIsShowingVisual
|
|
1052
1047
|
), b = m((h) => h.actions.setCardSql), { connectionType: I, modelItems: C } = qe();
|
|
1053
1048
|
function D(h) {
|
|
@@ -1124,7 +1119,7 @@ function nl({
|
|
|
1124
1119
|
variant: "outline",
|
|
1125
1120
|
className: "h-9 px-2",
|
|
1126
1121
|
children: /* @__PURE__ */ e.jsx(
|
|
1127
|
-
|
|
1122
|
+
mt,
|
|
1128
1123
|
{
|
|
1129
1124
|
className: W("size-4", {
|
|
1130
1125
|
"text-primary": F(),
|
|
@@ -1135,7 +1130,7 @@ function nl({
|
|
|
1135
1130
|
}
|
|
1136
1131
|
),
|
|
1137
1132
|
/* @__PURE__ */ e.jsxs(
|
|
1138
|
-
|
|
1133
|
+
z,
|
|
1139
1134
|
{
|
|
1140
1135
|
disabled: n !== "Success",
|
|
1141
1136
|
onClick: S,
|
|
@@ -1143,13 +1138,13 @@ function nl({
|
|
|
1143
1138
|
variant: "secondary",
|
|
1144
1139
|
className: "flex",
|
|
1145
1140
|
children: [
|
|
1146
|
-
n !== "Success" ? /* @__PURE__ */ e.jsx(Ke, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" }) : /* @__PURE__ */ e.jsx(
|
|
1141
|
+
n !== "Success" ? /* @__PURE__ */ e.jsx(Ke, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" }) : /* @__PURE__ */ e.jsx(Qn, { className: "mr-2 size-4" }),
|
|
1147
1142
|
"Top 10"
|
|
1148
1143
|
]
|
|
1149
1144
|
}
|
|
1150
1145
|
),
|
|
1151
1146
|
/* @__PURE__ */ e.jsxs(
|
|
1152
|
-
|
|
1147
|
+
z,
|
|
1153
1148
|
{
|
|
1154
1149
|
disabled: n !== "Success",
|
|
1155
1150
|
onClick: M,
|
|
@@ -1157,7 +1152,7 @@ function nl({
|
|
|
1157
1152
|
variant: "secondary",
|
|
1158
1153
|
className: "flex",
|
|
1159
1154
|
children: [
|
|
1160
|
-
n !== "Success" ? /* @__PURE__ */ e.jsx(Ke, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" }) : /* @__PURE__ */ e.jsx(
|
|
1155
|
+
n !== "Success" ? /* @__PURE__ */ e.jsx(Ke, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" }) : /* @__PURE__ */ e.jsx(Gn, { className: "mr-2 size-4" }),
|
|
1161
1156
|
"Count"
|
|
1162
1157
|
]
|
|
1163
1158
|
}
|
|
@@ -1175,7 +1170,7 @@ function nl({
|
|
|
1175
1170
|
className: W(
|
|
1176
1171
|
"group mx-3 flex cursor-pointer items-center justify-between rounded px-2 py-[6px] text-sm transition-colors hover:bg-muted/50",
|
|
1177
1172
|
{
|
|
1178
|
-
"bg-muted":
|
|
1173
|
+
"bg-muted": ht(h, l)
|
|
1179
1174
|
}
|
|
1180
1175
|
),
|
|
1181
1176
|
children: [
|
|
@@ -1188,7 +1183,7 @@ function nl({
|
|
|
1188
1183
|
{
|
|
1189
1184
|
onClick: (v) => v.stopPropagation(),
|
|
1190
1185
|
className: "flex items-center justify-end",
|
|
1191
|
-
children: xa.includes(h.data_type) && /* @__PURE__ */ e.jsx(
|
|
1186
|
+
children: xa.includes(h.data_type) && /* @__PURE__ */ e.jsx(nl, { column: h })
|
|
1192
1187
|
}
|
|
1193
1188
|
)
|
|
1194
1189
|
]
|
|
@@ -1477,7 +1472,7 @@ function Aa({
|
|
|
1477
1472
|
} = qe();
|
|
1478
1473
|
function K() {
|
|
1479
1474
|
return s ? s(ie, Y, g) : /* @__PURE__ */ e.jsx(
|
|
1480
|
-
|
|
1475
|
+
ll,
|
|
1481
1476
|
{
|
|
1482
1477
|
schemaName: ie,
|
|
1483
1478
|
tableName: Y,
|
|
@@ -1583,21 +1578,21 @@ function Aa({
|
|
|
1583
1578
|
] }),
|
|
1584
1579
|
K(),
|
|
1585
1580
|
/* @__PURE__ */ e.jsx("div", { className: "flex items-end justify-center gap-2 px-6 py-4", children: /* @__PURE__ */ e.jsxs(
|
|
1586
|
-
|
|
1581
|
+
z,
|
|
1587
1582
|
{
|
|
1588
1583
|
onClick: ae,
|
|
1589
1584
|
size: "sm",
|
|
1590
1585
|
variant: "secondary",
|
|
1591
1586
|
className: "w-full",
|
|
1592
1587
|
children: [
|
|
1593
|
-
/* @__PURE__ */ e.jsx(
|
|
1588
|
+
/* @__PURE__ */ e.jsx(_n, { className: "mr-2 size-4" }),
|
|
1594
1589
|
"Help"
|
|
1595
1590
|
]
|
|
1596
1591
|
}
|
|
1597
1592
|
) })
|
|
1598
1593
|
] });
|
|
1599
1594
|
}
|
|
1600
|
-
function
|
|
1595
|
+
function rl(s) {
|
|
1601
1596
|
const t = s.toUpperCase().indexOf("WHERE"), a = s.toUpperCase().indexOf("GROUP BY"), n = s.toUpperCase().indexOf("LIMIT"), l = s.toUpperCase().indexOf("ORDER BY");
|
|
1602
1597
|
let o = s.length;
|
|
1603
1598
|
if (l !== -1 && (o = l), n !== -1 && n < o && (o = n), t !== -1) {
|
|
@@ -1613,14 +1608,14 @@ function ll(s) {
|
|
|
1613
1608
|
return `${i} {{ filters | where }} ${c}`;
|
|
1614
1609
|
}
|
|
1615
1610
|
}
|
|
1616
|
-
function
|
|
1611
|
+
function il({
|
|
1617
1612
|
error: s,
|
|
1618
1613
|
setShowAIDialog: t,
|
|
1619
1614
|
setUserInputforAI: a,
|
|
1620
1615
|
setTriggerAIRun: n
|
|
1621
1616
|
}) {
|
|
1622
1617
|
return /* @__PURE__ */ e.jsxs(Vs, { openDelay: 0, children: [
|
|
1623
|
-
/* @__PURE__ */ e.jsx(qs, { asChild: !0, children: /* @__PURE__ */ e.jsx(
|
|
1618
|
+
/* @__PURE__ */ e.jsx(qs, { asChild: !0, children: /* @__PURE__ */ e.jsx(z, { variant: "link", className: "h-5 p-0", children: /* @__PURE__ */ e.jsx(kn, { className: "h-4 w-4 text-red-500" }) }) }),
|
|
1624
1619
|
/* @__PURE__ */ e.jsx(
|
|
1625
1620
|
Rs,
|
|
1626
1621
|
{
|
|
@@ -1629,7 +1624,7 @@ function rl({
|
|
|
1629
1624
|
children: /* @__PURE__ */ e.jsx("div", { className: "flex justify-between space-x-4", children: /* @__PURE__ */ e.jsxs("div", { className: "flex grow flex-col space-y-2", children: [
|
|
1630
1625
|
/* @__PURE__ */ e.jsx(We, { className: "max-h-[250px] min-h-0 overflow-scroll", children: /* @__PURE__ */ e.jsx("p", { className: "overflow-auto rounded-md bg-muted p-2 text-xs leading-relaxed", children: s }) }),
|
|
1631
1626
|
/* @__PURE__ */ e.jsxs(
|
|
1632
|
-
|
|
1627
|
+
z,
|
|
1633
1628
|
{
|
|
1634
1629
|
onClick: () => {
|
|
1635
1630
|
t(!0), a(s), n(!0);
|
|
@@ -1637,7 +1632,7 @@ function rl({
|
|
|
1637
1632
|
size: "sm",
|
|
1638
1633
|
variant: "outline",
|
|
1639
1634
|
children: [
|
|
1640
|
-
/* @__PURE__ */ e.jsx(
|
|
1635
|
+
/* @__PURE__ */ e.jsx(Mn, { className: "mr-2 h-4 w-4" }),
|
|
1641
1636
|
"Debug with AI"
|
|
1642
1637
|
]
|
|
1643
1638
|
}
|
|
@@ -1647,7 +1642,7 @@ function rl({
|
|
|
1647
1642
|
)
|
|
1648
1643
|
] });
|
|
1649
1644
|
}
|
|
1650
|
-
const
|
|
1645
|
+
const ol = `
|
|
1651
1646
|
|
|
1652
1647
|
Use the following syntax to create a chart query. Please replace the x-axis, y-axis, stack-by, label, and measure with the actual column names of the table.
|
|
1653
1648
|
|
|
@@ -1694,7 +1689,7 @@ SELECT label, measure FROM table
|
|
|
1694
1689
|
- Label - Category
|
|
1695
1690
|
- Measure - Number
|
|
1696
1691
|
`;
|
|
1697
|
-
function
|
|
1692
|
+
function cl({
|
|
1698
1693
|
open: s,
|
|
1699
1694
|
setOpen: t,
|
|
1700
1695
|
userInput: a,
|
|
@@ -1702,7 +1697,7 @@ function ol({
|
|
|
1702
1697
|
triggerAIRun: l,
|
|
1703
1698
|
setTriggerAIRun: o
|
|
1704
1699
|
}) {
|
|
1705
|
-
const i = ws(null), c = ws(null), { authToken: d } = Ie(), [p, u] = q(!1), y = m((w) => w.actions.setCardSql), g =
|
|
1700
|
+
const i = ws(null), c = ws(null), { authToken: d } = Ie(), [p, u] = q(!1), y = m((w) => w.actions.setCardSql), g = O((w) => w.dashboard.baseQueries), x = m((w) => w.actions.setRunSql), j = m((w) => w.actions.setCardType), [b, I] = q([]), C = m((w) => w.currentColumns), D = m((w) => w.card.sql), F = m((w) => w.selectedTableName), A = `
|
|
1706
1701
|
${a}
|
|
1707
1702
|
|
|
1708
1703
|
Database Query Dialect: ${F === "api" || F === "s3" ? "DuckDb" : ""}
|
|
@@ -1710,7 +1705,7 @@ function ol({
|
|
|
1710
1705
|
Table Columns: ${C == null ? void 0 : C.map((w) => `${w.column_name} | ${w.data_type}`).join(", ")}
|
|
1711
1706
|
User SQL: ${D}
|
|
1712
1707
|
${g && `Base Queries: ${JSON.stringify(g)} `}`, N = ` When the user asks for a specific chart please use the following query structure to generate the chart query. Do not make up the column names. Use only the table columns provided above for the query. Replace x-axis, y-axis, and lables with the appropriate column names.
|
|
1713
|
-
Visual Query Syntax: ${
|
|
1708
|
+
Visual Query Syntax: ${ol}`, { data: S, isLoading: M, isFetching: h, isError: v, refetch: f } = Ne({
|
|
1714
1709
|
queryKey: ["ai-query"],
|
|
1715
1710
|
queryFn: () => ze(
|
|
1716
1711
|
"https://semaphor.cloud/api/v1/ai",
|
|
@@ -1793,9 +1788,9 @@ function ol({
|
|
|
1793
1788
|
pre: ({ node: w, ..._ }) => /* @__PURE__ */ e.jsxs("pre", { className: "space-y-2 rounded-sm bg-muted/50 p-3", style: P, children: [
|
|
1794
1789
|
/* @__PURE__ */ e.jsx("code", { className: "whitespace-normal text-sm", children: _.children }),
|
|
1795
1790
|
/* @__PURE__ */ e.jsxs("div", { className: "flex justify-start gap-2", children: [
|
|
1796
|
-
/* @__PURE__ */ e.jsx(
|
|
1791
|
+
/* @__PURE__ */ e.jsx(z, { onClick: K, size: "sm", variant: "outline", children: /* @__PURE__ */ e.jsx(ft, {}) }),
|
|
1797
1792
|
/* @__PURE__ */ e.jsx(
|
|
1798
|
-
|
|
1793
|
+
z,
|
|
1799
1794
|
{
|
|
1800
1795
|
onClick: (ee) => {
|
|
1801
1796
|
const E = K(ee);
|
|
@@ -1803,7 +1798,7 @@ function ol({
|
|
|
1803
1798
|
},
|
|
1804
1799
|
size: "sm",
|
|
1805
1800
|
variant: "outline",
|
|
1806
|
-
children: /* @__PURE__ */ e.jsx(
|
|
1801
|
+
children: /* @__PURE__ */ e.jsx(gt, {})
|
|
1807
1802
|
}
|
|
1808
1803
|
)
|
|
1809
1804
|
] })
|
|
@@ -1823,13 +1818,13 @@ function ol({
|
|
|
1823
1818
|
{
|
|
1824
1819
|
className: "flex items-start rounded-md bg-muted p-3 text-sm",
|
|
1825
1820
|
children: [
|
|
1826
|
-
/* @__PURE__ */ e.jsx(
|
|
1821
|
+
/* @__PURE__ */ e.jsx(Wn, { className: "mr-2 h-5 w-5" }),
|
|
1827
1822
|
/* @__PURE__ */ e.jsx("div", { children: w.content })
|
|
1828
1823
|
]
|
|
1829
1824
|
},
|
|
1830
1825
|
_
|
|
1831
1826
|
) : w.role === "ai" ? /* @__PURE__ */ e.jsx(
|
|
1832
|
-
|
|
1827
|
+
pt,
|
|
1833
1828
|
{
|
|
1834
1829
|
className: "w-full overflow-auto py-1",
|
|
1835
1830
|
components: ie,
|
|
@@ -1840,7 +1835,7 @@ function ol({
|
|
|
1840
1835
|
}
|
|
1841
1836
|
return /* @__PURE__ */ e.jsxs(Fs, { open: s, onOpenChange: t, children: [
|
|
1842
1837
|
/* @__PURE__ */ e.jsx(Is, { asChild: !0, children: /* @__PURE__ */ e.jsx(
|
|
1843
|
-
|
|
1838
|
+
z,
|
|
1844
1839
|
{
|
|
1845
1840
|
size: "sm",
|
|
1846
1841
|
className: "w-full justify-start border font-normal text-muted-foreground focus-visible:ring-0 focus-visible:ring-offset-0",
|
|
@@ -1892,13 +1887,13 @@ function ol({
|
|
|
1892
1887
|
),
|
|
1893
1888
|
" ",
|
|
1894
1889
|
/* @__PURE__ */ e.jsx(
|
|
1895
|
-
|
|
1890
|
+
z,
|
|
1896
1891
|
{
|
|
1897
1892
|
className: "h-8",
|
|
1898
1893
|
size: "sm",
|
|
1899
1894
|
variant: "ghost",
|
|
1900
1895
|
onClick: L,
|
|
1901
|
-
children: !M && !h ? /* @__PURE__ */ e.jsx(
|
|
1896
|
+
children: !M && !h ? /* @__PURE__ */ e.jsx(xt, {}) : /* @__PURE__ */ e.jsx(Ke, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" })
|
|
1902
1897
|
}
|
|
1903
1898
|
)
|
|
1904
1899
|
] })
|
|
@@ -1915,10 +1910,10 @@ var Va = {
|
|
|
1915
1910
|
className: void 0,
|
|
1916
1911
|
style: void 0,
|
|
1917
1912
|
attr: void 0
|
|
1918
|
-
}, sa = we.createContext && /* @__PURE__ */ we.createContext(Va),
|
|
1919
|
-
function
|
|
1913
|
+
}, sa = we.createContext && /* @__PURE__ */ we.createContext(Va), dl = ["attr", "size", "title"];
|
|
1914
|
+
function ul(s, t) {
|
|
1920
1915
|
if (s == null) return {};
|
|
1921
|
-
var a =
|
|
1916
|
+
var a = ml(s, t), n, l;
|
|
1922
1917
|
if (Object.getOwnPropertySymbols) {
|
|
1923
1918
|
var o = Object.getOwnPropertySymbols(s);
|
|
1924
1919
|
for (l = 0; l < o.length; l++)
|
|
@@ -1926,7 +1921,7 @@ function dl(s, t) {
|
|
|
1926
1921
|
}
|
|
1927
1922
|
return a;
|
|
1928
1923
|
}
|
|
1929
|
-
function
|
|
1924
|
+
function ml(s, t) {
|
|
1930
1925
|
if (s == null) return {};
|
|
1931
1926
|
var a = {};
|
|
1932
1927
|
for (var n in s)
|
|
@@ -1960,21 +1955,21 @@ function ds(s) {
|
|
|
1960
1955
|
for (var t = 1; t < arguments.length; t++) {
|
|
1961
1956
|
var a = arguments[t] != null ? arguments[t] : {};
|
|
1962
1957
|
t % 2 ? aa(Object(a), !0).forEach(function(n) {
|
|
1963
|
-
|
|
1958
|
+
hl(s, n, a[n]);
|
|
1964
1959
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(a)) : aa(Object(a)).forEach(function(n) {
|
|
1965
1960
|
Object.defineProperty(s, n, Object.getOwnPropertyDescriptor(a, n));
|
|
1966
1961
|
});
|
|
1967
1962
|
}
|
|
1968
1963
|
return s;
|
|
1969
1964
|
}
|
|
1970
|
-
function
|
|
1971
|
-
return t =
|
|
1965
|
+
function hl(s, t, a) {
|
|
1966
|
+
return t = xl(t), t in s ? Object.defineProperty(s, t, { value: a, enumerable: !0, configurable: !0, writable: !0 }) : s[t] = a, s;
|
|
1972
1967
|
}
|
|
1973
|
-
function
|
|
1974
|
-
var t =
|
|
1968
|
+
function xl(s) {
|
|
1969
|
+
var t = pl(s, "string");
|
|
1975
1970
|
return typeof t == "symbol" ? t : t + "";
|
|
1976
1971
|
}
|
|
1977
|
-
function
|
|
1972
|
+
function pl(s, t) {
|
|
1978
1973
|
if (typeof s != "object" || !s) return s;
|
|
1979
1974
|
var a = s[Symbol.toPrimitive];
|
|
1980
1975
|
if (a !== void 0) {
|
|
@@ -1990,17 +1985,17 @@ function qa(s) {
|
|
|
1990
1985
|
}, t.attr), qa(t.child)));
|
|
1991
1986
|
}
|
|
1992
1987
|
function je(s) {
|
|
1993
|
-
return (t) => /* @__PURE__ */ we.createElement(
|
|
1988
|
+
return (t) => /* @__PURE__ */ we.createElement(fl, cs({
|
|
1994
1989
|
attr: ds({}, s.attr)
|
|
1995
1990
|
}, t), qa(s.child));
|
|
1996
1991
|
}
|
|
1997
|
-
function
|
|
1992
|
+
function fl(s) {
|
|
1998
1993
|
var t = (a) => {
|
|
1999
1994
|
var {
|
|
2000
1995
|
attr: n,
|
|
2001
1996
|
size: l,
|
|
2002
1997
|
title: o
|
|
2003
|
-
} = s, i =
|
|
1998
|
+
} = s, i = ul(s, dl), c = l || a.size || "1em", d;
|
|
2004
1999
|
return a.className && (d = a.className), s.className && (d = (d ? d + " " : "") + s.className), /* @__PURE__ */ we.createElement("svg", cs({
|
|
2005
2000
|
stroke: "currentColor",
|
|
2006
2001
|
fill: "currentColor",
|
|
@@ -2017,12 +2012,12 @@ function pl(s) {
|
|
|
2017
2012
|
};
|
|
2018
2013
|
return sa !== void 0 ? /* @__PURE__ */ we.createElement(sa.Consumer, null, (a) => t(a)) : t(Va);
|
|
2019
2014
|
}
|
|
2020
|
-
function
|
|
2015
|
+
function gl(s) {
|
|
2021
2016
|
return je({ tag: "svg", 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: [] }] })(s);
|
|
2022
2017
|
}
|
|
2023
|
-
function
|
|
2018
|
+
function jl({ sql: s }) {
|
|
2024
2019
|
return /* @__PURE__ */ e.jsxs(Vs, { children: [
|
|
2025
|
-
/* @__PURE__ */ e.jsx(qs, { asChild: !0, children: /* @__PURE__ */ e.jsx(
|
|
2020
|
+
/* @__PURE__ */ e.jsx(qs, { asChild: !0, children: /* @__PURE__ */ e.jsx(z, { variant: "link", className: "h-5 p-0", children: /* @__PURE__ */ e.jsx(jt, { className: "h-4 w-4 text-muted-foreground" }) }) }),
|
|
2026
2021
|
/* @__PURE__ */ e.jsx(
|
|
2027
2022
|
Rs,
|
|
2028
2023
|
{
|
|
@@ -2036,14 +2031,14 @@ function gl({ sql: s }) {
|
|
|
2036
2031
|
)
|
|
2037
2032
|
] });
|
|
2038
2033
|
}
|
|
2039
|
-
function
|
|
2034
|
+
function bl() {
|
|
2040
2035
|
const [s, t] = q({
|
|
2041
2036
|
queryKey: [],
|
|
2042
2037
|
queryData: null
|
|
2043
|
-
}), { theme: a } =
|
|
2044
|
-
|
|
2045
|
-
const C = m((r) => r.card), D =
|
|
2046
|
-
|
|
2038
|
+
}), { theme: a } = bt(), n = yt(), l = ws(), o = vt(), [i, c] = q(!1), [d, p] = q(!1), [u, y] = q(!1), [g, x] = q(""), [j, b] = q(!1), I = O((r) => r.selectedSheetId);
|
|
2039
|
+
O((r) => r.dashboard.baseQueries);
|
|
2040
|
+
const C = m((r) => r.card), D = O((r) => r.theme), F = m((r) => r.isShowingVisual);
|
|
2041
|
+
O((r) => r.onAcceptChanges);
|
|
2047
2042
|
const A = m(
|
|
2048
2043
|
(r) => r.selectedConnectionId
|
|
2049
2044
|
), N = m(
|
|
@@ -2053,10 +2048,10 @@ function jl() {
|
|
|
2053
2048
|
), M = m(
|
|
2054
2049
|
(r) => r.selectedSchemaName
|
|
2055
2050
|
);
|
|
2056
|
-
|
|
2051
|
+
O(
|
|
2057
2052
|
(r) => r.actions.updateFrameCard
|
|
2058
2053
|
);
|
|
2059
|
-
const h = m((r) => r.selectedTableName), v = m((r) => r.card.sql), f = m((r) => r.card.python), k = m((r) => r.frame), L =
|
|
2054
|
+
const h = m((r) => r.selectedTableName), v = m((r) => r.card.sql), f = m((r) => r.card.python), k = m((r) => r.frame), L = O((r) => r.dashboard.filters), H = O((r) => r.filterValues), P = L == null ? void 0 : L.filter(
|
|
2060
2055
|
(r) => r.sheetId === I || !r.sheetId
|
|
2061
2056
|
), Y = H == null ? void 0 : H.filter(
|
|
2062
2057
|
(r) => (P == null ? void 0 : P.some((ne) => ne.id === r.filterId)) || r.filterId.endsWith(I)
|
|
@@ -2149,7 +2144,7 @@ function jl() {
|
|
|
2149
2144
|
}
|
|
2150
2145
|
function Ze() {
|
|
2151
2146
|
let r = v;
|
|
2152
|
-
v && !v.includes("{{") && (r =
|
|
2147
|
+
v && !v.includes("{{") && (r = rl(v), _(r));
|
|
2153
2148
|
const ne = {
|
|
2154
2149
|
...C,
|
|
2155
2150
|
lastSelectedSchema: M,
|
|
@@ -2182,7 +2177,7 @@ function jl() {
|
|
|
2182
2177
|
inherit: !0,
|
|
2183
2178
|
rules: [],
|
|
2184
2179
|
colors: {
|
|
2185
|
-
"editor.background": ve === "light" ? "#ffffff" :
|
|
2180
|
+
"editor.background": ve === "light" ? "#ffffff" : Ct("240 10% 10%")
|
|
2186
2181
|
// 'editor.background':
|
|
2187
2182
|
// activeTheme === 'light'
|
|
2188
2183
|
// ? '#ffffff'
|
|
@@ -2338,7 +2333,7 @@ function jl() {
|
|
|
2338
2333
|
onChange: (r) => {
|
|
2339
2334
|
E(r && r.trim() || "");
|
|
2340
2335
|
},
|
|
2341
|
-
value: f ||
|
|
2336
|
+
value: f || St,
|
|
2342
2337
|
options: {
|
|
2343
2338
|
minimap: {
|
|
2344
2339
|
enabled: !1
|
|
@@ -2393,7 +2388,7 @@ function jl() {
|
|
|
2393
2388
|
children: [
|
|
2394
2389
|
/* @__PURE__ */ e.jsxs("div", { className: "flex grow items-center gap-2", children: [
|
|
2395
2390
|
/* @__PURE__ */ e.jsxs(
|
|
2396
|
-
|
|
2391
|
+
z,
|
|
2397
2392
|
{
|
|
2398
2393
|
title: "Shift + Enter",
|
|
2399
2394
|
disabled: oe || ce,
|
|
@@ -2404,13 +2399,13 @@ function jl() {
|
|
|
2404
2399
|
size: "sm",
|
|
2405
2400
|
variant: "outline",
|
|
2406
2401
|
children: [
|
|
2407
|
-
oe || ce ? /* @__PURE__ */ e.jsx(Ke, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" }) : /* @__PURE__ */ e.jsx(
|
|
2402
|
+
oe || ce ? /* @__PURE__ */ e.jsx(Ke, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" }) : /* @__PURE__ */ e.jsx($n, { className: "mr-2 h-4 w-4" }),
|
|
2408
2403
|
"Run"
|
|
2409
2404
|
]
|
|
2410
2405
|
}
|
|
2411
2406
|
),
|
|
2412
2407
|
Le && /* @__PURE__ */ e.jsx(
|
|
2413
|
-
|
|
2408
|
+
il,
|
|
2414
2409
|
{
|
|
2415
2410
|
error: _e.message,
|
|
2416
2411
|
setShowAIDialog: y,
|
|
@@ -2419,14 +2414,14 @@ function jl() {
|
|
|
2419
2414
|
}
|
|
2420
2415
|
),
|
|
2421
2416
|
/* @__PURE__ */ e.jsxs(
|
|
2422
|
-
|
|
2417
|
+
z,
|
|
2423
2418
|
{
|
|
2424
2419
|
onClick: gs,
|
|
2425
2420
|
className: "",
|
|
2426
2421
|
size: "sm",
|
|
2427
2422
|
variant: "outline",
|
|
2428
2423
|
children: [
|
|
2429
|
-
/* @__PURE__ */ e.jsx(
|
|
2424
|
+
/* @__PURE__ */ e.jsx(Fn, { className: "mr-2 size-4" }),
|
|
2430
2425
|
"Clear"
|
|
2431
2426
|
]
|
|
2432
2427
|
}
|
|
@@ -2439,11 +2434,11 @@ function jl() {
|
|
|
2439
2434
|
className: "",
|
|
2440
2435
|
size: "sm",
|
|
2441
2436
|
variant: "outline",
|
|
2442
|
-
children: /* @__PURE__ */ e.jsx(
|
|
2437
|
+
children: /* @__PURE__ */ e.jsx(gl, { className: "size-4 text-foreground/70" })
|
|
2443
2438
|
}
|
|
2444
2439
|
),
|
|
2445
2440
|
/* @__PURE__ */ e.jsx(
|
|
2446
|
-
|
|
2441
|
+
cl,
|
|
2447
2442
|
{
|
|
2448
2443
|
open: u,
|
|
2449
2444
|
setOpen: y,
|
|
@@ -2455,9 +2450,9 @@ function jl() {
|
|
|
2455
2450
|
)
|
|
2456
2451
|
] }),
|
|
2457
2452
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2458
|
-
(Q == null ? void 0 : Q.sql) && /* @__PURE__ */ e.jsx(
|
|
2453
|
+
(Q == null ? void 0 : Q.sql) && /* @__PURE__ */ e.jsx(jl, { sql: Q.sql }),
|
|
2459
2454
|
/* @__PURE__ */ e.jsxs(
|
|
2460
|
-
|
|
2455
|
+
z,
|
|
2461
2456
|
{
|
|
2462
2457
|
onClick: es,
|
|
2463
2458
|
className: "w-full",
|
|
@@ -2470,13 +2465,13 @@ function jl() {
|
|
|
2470
2465
|
}
|
|
2471
2466
|
),
|
|
2472
2467
|
/* @__PURE__ */ e.jsxs(
|
|
2473
|
-
|
|
2468
|
+
z,
|
|
2474
2469
|
{
|
|
2475
2470
|
onClick: Ze,
|
|
2476
2471
|
size: "sm",
|
|
2477
2472
|
variant: "outline",
|
|
2478
2473
|
children: [
|
|
2479
|
-
/* @__PURE__ */ e.jsx(
|
|
2474
|
+
/* @__PURE__ */ e.jsx(Nt, { className: "mr-2 size-4 font-bold text-green-600" }),
|
|
2480
2475
|
"Accept"
|
|
2481
2476
|
]
|
|
2482
2477
|
}
|
|
@@ -2490,7 +2485,7 @@ function jl() {
|
|
|
2490
2485
|
)
|
|
2491
2486
|
);
|
|
2492
2487
|
}
|
|
2493
|
-
function
|
|
2488
|
+
function yl({ data: s }) {
|
|
2494
2489
|
var i;
|
|
2495
2490
|
const [t, a] = we.useState([]), l = Object.keys(s[0]).map((c) => ({
|
|
2496
2491
|
// header: key,
|
|
@@ -2504,29 +2499,29 @@ function bl({ data: s }) {
|
|
|
2504
2499
|
onClick: () => d.toggleSorting(d.getIsSorted() === "asc"),
|
|
2505
2500
|
children: [
|
|
2506
2501
|
c,
|
|
2507
|
-
p === "asc" ? /* @__PURE__ */ e.jsx(
|
|
2502
|
+
p === "asc" ? /* @__PURE__ */ e.jsx(wt, { className: "ml-2 h-5 w-5" }) : p === "desc" ? /* @__PURE__ */ e.jsx(kt, { className: "ml-2 h-5 w-5" }) : null
|
|
2508
2503
|
]
|
|
2509
2504
|
}
|
|
2510
2505
|
) });
|
|
2511
2506
|
}
|
|
2512
|
-
})), o =
|
|
2507
|
+
})), o = Ot({
|
|
2513
2508
|
data: s,
|
|
2514
2509
|
columns: l,
|
|
2515
|
-
getCoreRowModel:
|
|
2516
|
-
getPaginationRowModel:
|
|
2510
|
+
getCoreRowModel: Dt(),
|
|
2511
|
+
getPaginationRowModel: Mt(),
|
|
2517
2512
|
onSortingChange: a,
|
|
2518
|
-
getSortedRowModel:
|
|
2513
|
+
getSortedRowModel: Lt(),
|
|
2519
2514
|
manualPagination: !0,
|
|
2520
2515
|
state: {
|
|
2521
2516
|
sorting: t
|
|
2522
2517
|
}
|
|
2523
2518
|
});
|
|
2524
|
-
return /* @__PURE__ */ e.jsxs(
|
|
2525
|
-
/* @__PURE__ */ e.jsx(
|
|
2519
|
+
return /* @__PURE__ */ e.jsxs(zt, { children: [
|
|
2520
|
+
/* @__PURE__ */ e.jsx(Ft, { children: o.getHeaderGroups().map((c) => /* @__PURE__ */ e.jsx(bs, { children: c.headers.map((d) => /* @__PURE__ */ e.jsx(It, { className: "sticky top-0 bg-muted", children: d.isPlaceholder ? null : Ws(
|
|
2526
2521
|
d.column.columnDef.header,
|
|
2527
2522
|
d.getContext()
|
|
2528
2523
|
) }, d.id)) }, c.id)) }),
|
|
2529
|
-
/* @__PURE__ */ e.jsx(
|
|
2524
|
+
/* @__PURE__ */ e.jsx(Tt, { children: (i = o.getRowModel().rows) != null && i.length ? o.getRowModel().rows.map((c) => /* @__PURE__ */ e.jsx(
|
|
2530
2525
|
bs,
|
|
2531
2526
|
{
|
|
2532
2527
|
className: "whitespace-nowrap py-2",
|
|
@@ -2537,9 +2532,9 @@ function bl({ data: s }) {
|
|
|
2537
2532
|
)) : /* @__PURE__ */ e.jsx(bs, { children: /* @__PURE__ */ e.jsx(Ys, { colSpan: l.length, className: "h-24 text-center", children: "No results." }) }) })
|
|
2538
2533
|
] });
|
|
2539
2534
|
}
|
|
2540
|
-
function
|
|
2535
|
+
function vl({ card: s }) {
|
|
2541
2536
|
var g, x, j, b, I, C, D, F, A, N;
|
|
2542
|
-
const { authToken: t } = Ie(), a =
|
|
2537
|
+
const { authToken: t } = Ie(), a = Et(t == null ? void 0 : t.accessToken), n = O((S) => S.themeStyle), l = {
|
|
2543
2538
|
colors: ((x = (g = n == null ? void 0 : n.chart) == null ? void 0 : g.dataset) == null ? void 0 : x.backgroundColor) || []
|
|
2544
2539
|
};
|
|
2545
2540
|
(j = s.customCardPreferences) != null && j.inputData;
|
|
@@ -2560,7 +2555,7 @@ function yl({ card: s }) {
|
|
|
2560
2555
|
return h || null;
|
|
2561
2556
|
});
|
|
2562
2557
|
return /* @__PURE__ */ e.jsx("div", { className: "semaphor-custom mb-3 flex grow basis-0 flex-col space-y-2 overflow-y-auto", children: /* @__PURE__ */ e.jsxs(
|
|
2563
|
-
|
|
2558
|
+
Nn,
|
|
2564
2559
|
{
|
|
2565
2560
|
fallback: /* @__PURE__ */ e.jsx(e.Fragment, {}),
|
|
2566
2561
|
children: [
|
|
@@ -2600,7 +2595,7 @@ function Ra({
|
|
|
2600
2595
|
...t
|
|
2601
2596
|
}) {
|
|
2602
2597
|
var x, j;
|
|
2603
|
-
const a = m((b) => b.card), n = ((x = a.customCardPreferences) == null ? void 0 : x.showCardHeader) ?? !0, l = m((b) => b.frame), o =
|
|
2598
|
+
const a = m((b) => b.card), n = ((x = a.customCardPreferences) == null ? void 0 : x.showCardHeader) ?? !0, l = m((b) => b.frame), o = O((b) => b.dashboard.filters);
|
|
2604
2599
|
m((b) => b.actions.setRunSql);
|
|
2605
2600
|
const { updateFilter: i } = zs(), c = o == null ? void 0 : o.find((b) => b.id === l.filterId), { data: d } = Ve(a), { setCard: p } = re(), { data: u } = _s(a);
|
|
2606
2601
|
if (!a.id) return null;
|
|
@@ -2614,23 +2609,23 @@ function Ra({
|
|
|
2614
2609
|
topoJson: u
|
|
2615
2610
|
}));
|
|
2616
2611
|
function g(b) {
|
|
2617
|
-
return /* @__PURE__ */ e.jsx(
|
|
2612
|
+
return /* @__PURE__ */ e.jsx(vl, { card: b });
|
|
2618
2613
|
}
|
|
2619
2614
|
return /* @__PURE__ */ e.jsxs(
|
|
2620
|
-
|
|
2615
|
+
At,
|
|
2621
2616
|
{
|
|
2622
2617
|
role: "editor-visual-card",
|
|
2623
2618
|
className: W("relative flex h-full flex-col rounded-none", s),
|
|
2624
2619
|
...t,
|
|
2625
2620
|
children: [
|
|
2626
|
-
n && /* @__PURE__ */ e.jsxs(
|
|
2621
|
+
n && /* @__PURE__ */ e.jsxs(Vt, { className: "flex flex-row items-start justify-between py-4", children: [
|
|
2627
2622
|
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
2628
2623
|
/* @__PURE__ */ e.jsx(
|
|
2629
2624
|
ls,
|
|
2630
2625
|
{
|
|
2631
2626
|
text: a.title,
|
|
2632
2627
|
onSave: (b) => p({ ...a, title: b }),
|
|
2633
|
-
children: /* @__PURE__ */ e.jsx("div", { className: "flex items-center gap-5", children: /* @__PURE__ */ e.jsx(
|
|
2628
|
+
children: /* @__PURE__ */ e.jsx("div", { className: "flex items-center gap-5", children: /* @__PURE__ */ e.jsx(qt, { className: "text-base", children: a.title || "Edit title..." }) })
|
|
2634
2629
|
},
|
|
2635
2630
|
a.title
|
|
2636
2631
|
),
|
|
@@ -2639,7 +2634,7 @@ function Ra({
|
|
|
2639
2634
|
{
|
|
2640
2635
|
text: a.description || "",
|
|
2641
2636
|
onSave: (b) => p({ ...a, description: b }),
|
|
2642
|
-
children: /* @__PURE__ */ e.jsx(
|
|
2637
|
+
children: /* @__PURE__ */ e.jsx(Rt, { children: a.description || "Edit description..." })
|
|
2643
2638
|
},
|
|
2644
2639
|
a.description
|
|
2645
2640
|
)
|
|
@@ -2654,27 +2649,27 @@ function Ra({
|
|
|
2654
2649
|
children: /* @__PURE__ */ e.jsx(R, { children: c.title })
|
|
2655
2650
|
}
|
|
2656
2651
|
),
|
|
2657
|
-
/* @__PURE__ */ e.jsx(
|
|
2652
|
+
/* @__PURE__ */ e.jsx(_t, { filter: c })
|
|
2658
2653
|
] })
|
|
2659
2654
|
] }),
|
|
2660
|
-
/* @__PURE__ */ e.jsxs(
|
|
2655
|
+
/* @__PURE__ */ e.jsxs(Ht, { className: "flex grow flex-col", children: [
|
|
2661
2656
|
a.type === "custom" && g(a),
|
|
2662
2657
|
!["table", "custom"].includes(a.type) && y && // <ChartJsVisual key={visualKey} cfg={cfg} />
|
|
2663
2658
|
/* @__PURE__ */ e.jsx(
|
|
2664
|
-
|
|
2659
|
+
$t,
|
|
2665
2660
|
{
|
|
2666
2661
|
cfg: y
|
|
2667
2662
|
},
|
|
2668
2663
|
JSON.stringify(y) + JSON.stringify(a.preferences) + ((j = a == null ? void 0 : a.preferences) == null ? void 0 : j.customVisualCode)
|
|
2669
2664
|
),
|
|
2670
2665
|
a.type === "table" && (d == null ? void 0 : d.records) && (d == null ? void 0 : d.records.length) > 0 && // All of the below css classes are #IMPORTANT for the table to scroll properly
|
|
2671
|
-
/* @__PURE__ */ e.jsx(
|
|
2666
|
+
/* @__PURE__ */ e.jsx(Pt, { className: "flex min-h-0 flex-1 grow basis-0", children: /* @__PURE__ */ e.jsx(Bt, { card: a, data: d == null ? void 0 : d.records }) })
|
|
2672
2667
|
] })
|
|
2673
2668
|
]
|
|
2674
2669
|
}
|
|
2675
2670
|
);
|
|
2676
2671
|
}
|
|
2677
|
-
function
|
|
2672
|
+
function Cl() {
|
|
2678
2673
|
const [s, t] = q(!1), [a, n] = q(""), [l, o] = q(""), [i, c] = q(""), [d, p] = q(""), u = m((N) => N.card), y = m(
|
|
2679
2674
|
(N) => N.card.customCfg
|
|
2680
2675
|
), { data: g } = Ve(u), { data: x } = _s(u), { setCardCustomCfg: j, setCustomVisualCode: b } = re();
|
|
@@ -2726,13 +2721,13 @@ function vl() {
|
|
|
2726
2721
|
}
|
|
2727
2722
|
return /* @__PURE__ */ e.jsxs(Fs, { open: s, onOpenChange: t, children: [
|
|
2728
2723
|
/* @__PURE__ */ e.jsx(Is, { asChild: !0, children: /* @__PURE__ */ e.jsx(
|
|
2729
|
-
|
|
2724
|
+
z,
|
|
2730
2725
|
{
|
|
2731
2726
|
onClick: C,
|
|
2732
2727
|
className: ` ${y && "border-foreground/50 dark:border-foreground/70"}`,
|
|
2733
2728
|
size: "sm",
|
|
2734
2729
|
variant: "outline",
|
|
2735
|
-
children: /* @__PURE__ */ e.jsx(
|
|
2730
|
+
children: /* @__PURE__ */ e.jsx(Ut, { className: "h-4 w-4" })
|
|
2736
2731
|
}
|
|
2737
2732
|
) }),
|
|
2738
2733
|
/* @__PURE__ */ e.jsxs(
|
|
@@ -2844,7 +2839,7 @@ function vl() {
|
|
|
2844
2839
|
/* @__PURE__ */ e.jsxs(la, { className: "flex items-center", children: [
|
|
2845
2840
|
/* @__PURE__ */ e.jsx(R, { className: "mr-2 text-red-500", children: d }),
|
|
2846
2841
|
/* @__PURE__ */ e.jsx(
|
|
2847
|
-
|
|
2842
|
+
z,
|
|
2848
2843
|
{
|
|
2849
2844
|
disabled: !y,
|
|
2850
2845
|
onClick: F,
|
|
@@ -2852,8 +2847,8 @@ function vl() {
|
|
|
2852
2847
|
children: "Reset"
|
|
2853
2848
|
}
|
|
2854
2849
|
),
|
|
2855
|
-
/* @__PURE__ */ e.jsx(
|
|
2856
|
-
/* @__PURE__ */ e.jsx(
|
|
2850
|
+
/* @__PURE__ */ e.jsx(z, { onClick: D, variant: "outline", children: "Apply" }),
|
|
2851
|
+
/* @__PURE__ */ e.jsx(z, { onClick: () => t(!1), variant: "outline", children: "Close" })
|
|
2857
2852
|
] })
|
|
2858
2853
|
]
|
|
2859
2854
|
}
|
|
@@ -2888,7 +2883,7 @@ function Ja(s) {
|
|
|
2888
2883
|
const [t, a] = q(null);
|
|
2889
2884
|
return Z(() => {
|
|
2890
2885
|
s && (async () => {
|
|
2891
|
-
const o = (await import("./lucide-react-
|
|
2886
|
+
const o = (await import("./lucide-react-QRCXH2cF.js"))[s];
|
|
2892
2887
|
a(o);
|
|
2893
2888
|
})();
|
|
2894
2889
|
}, [s]), t;
|
|
@@ -2896,12 +2891,12 @@ function Ja(s) {
|
|
|
2896
2891
|
function Ka() {
|
|
2897
2892
|
const { authToken: s } = Ie(), { data: t, isLoading: a, isFetching: n, isError: l } = Ne({
|
|
2898
2893
|
queryKey: ["plugins", s == null ? void 0 : s.accessToken],
|
|
2899
|
-
queryFn: () =>
|
|
2894
|
+
queryFn: () => Gt(s == null ? void 0 : s.accessToken)
|
|
2900
2895
|
// staleTime: Infinity,
|
|
2901
2896
|
});
|
|
2902
2897
|
return { data: t, isLoading: a, isFetching: n, isError: l };
|
|
2903
2898
|
}
|
|
2904
|
-
function
|
|
2899
|
+
function Nl({
|
|
2905
2900
|
onChartTypeChange: s
|
|
2906
2901
|
}) {
|
|
2907
2902
|
const [t, a] = q([]), { data: n } = Ka();
|
|
@@ -2910,7 +2905,7 @@ function Cl({
|
|
|
2910
2905
|
var o;
|
|
2911
2906
|
if (n) {
|
|
2912
2907
|
const c = (await Promise.all(
|
|
2913
|
-
(o = n == null ? void 0 : n.plugins) == null ? void 0 : o.map(async (d) => (await
|
|
2908
|
+
(o = n == null ? void 0 : n.plugins) == null ? void 0 : o.map(async (d) => (await Qt(d.value)).visuals.map((y) => ({
|
|
2914
2909
|
name: y.name,
|
|
2915
2910
|
icon: y.icon,
|
|
2916
2911
|
url: d.value
|
|
@@ -2922,7 +2917,7 @@ function Cl({
|
|
|
2922
2917
|
}, [n]), t.length === 0 ? null : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2923
2918
|
/* @__PURE__ */ e.jsx(ge, { className: "my-2" }),
|
|
2924
2919
|
/* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-4 place-items-center", children: t.map((l, o) => /* @__PURE__ */ e.jsx(
|
|
2925
|
-
|
|
2920
|
+
Sl,
|
|
2926
2921
|
{
|
|
2927
2922
|
text: l.name,
|
|
2928
2923
|
onClick: () => s("custom", l),
|
|
@@ -2932,15 +2927,15 @@ function Cl({
|
|
|
2932
2927
|
)) })
|
|
2933
2928
|
] });
|
|
2934
2929
|
}
|
|
2935
|
-
const
|
|
2930
|
+
const Sl = ({
|
|
2936
2931
|
text: s,
|
|
2937
2932
|
icon: t,
|
|
2938
2933
|
onClick: a
|
|
2939
2934
|
}) => {
|
|
2940
2935
|
const n = Ja(t || ""), l = s.charAt(0).toUpperCase();
|
|
2941
|
-
return /* @__PURE__ */ e.jsx(
|
|
2936
|
+
return /* @__PURE__ */ e.jsx(z, { onClick: a, title: s, variant: "ghost", children: n ? /* @__PURE__ */ e.jsx(n, { className: "h-4 w-4" }) : l });
|
|
2942
2937
|
};
|
|
2943
|
-
function
|
|
2938
|
+
function wl() {
|
|
2944
2939
|
var u, y;
|
|
2945
2940
|
const [s, t] = q(!1), a = m((g) => g.card), n = a.type, { setCardType: l, setCardPreferences: o, setChartOrientation: i } = m((g) => g.actions), { setCardCustomCfg: c, setCustomCardPreferences: d } = re();
|
|
2946
2941
|
function p(g, x) {
|
|
@@ -2953,8 +2948,8 @@ function Sl() {
|
|
|
2953
2948
|
}), t(!1);
|
|
2954
2949
|
}
|
|
2955
2950
|
return /* @__PURE__ */ e.jsxs(ms, { open: s, onOpenChange: t, children: [
|
|
2956
|
-
/* @__PURE__ */ e.jsx(hs, { asChild: !0, children: /* @__PURE__ */ e.jsx(
|
|
2957
|
-
|
|
2951
|
+
/* @__PURE__ */ e.jsx(hs, { asChild: !0, children: /* @__PURE__ */ e.jsx(z, { size: "sm", variant: "outline", children: /* @__PURE__ */ e.jsx(
|
|
2952
|
+
kl,
|
|
2958
2953
|
{
|
|
2959
2954
|
className: "h-4 w-4",
|
|
2960
2955
|
chartType: n,
|
|
@@ -2965,7 +2960,7 @@ function Sl() {
|
|
|
2965
2960
|
/* @__PURE__ */ e.jsxs(xs, { className: "w-50", children: [
|
|
2966
2961
|
/* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-4 place-items-center", children: [
|
|
2967
2962
|
/* @__PURE__ */ e.jsx(
|
|
2968
|
-
|
|
2963
|
+
z,
|
|
2969
2964
|
{
|
|
2970
2965
|
onClick: () => p("bar"),
|
|
2971
2966
|
className: "font-normal",
|
|
@@ -2974,7 +2969,7 @@ function Sl() {
|
|
|
2974
2969
|
}
|
|
2975
2970
|
),
|
|
2976
2971
|
/* @__PURE__ */ e.jsx(
|
|
2977
|
-
|
|
2972
|
+
z,
|
|
2978
2973
|
{
|
|
2979
2974
|
onClick: () => p("line"),
|
|
2980
2975
|
variant: "ghost",
|
|
@@ -2982,7 +2977,7 @@ function Sl() {
|
|
|
2982
2977
|
}
|
|
2983
2978
|
),
|
|
2984
2979
|
/* @__PURE__ */ e.jsx(
|
|
2985
|
-
|
|
2980
|
+
z,
|
|
2986
2981
|
{
|
|
2987
2982
|
onClick: () => p("stackedBar"),
|
|
2988
2983
|
variant: "ghost",
|
|
@@ -2990,7 +2985,7 @@ function Sl() {
|
|
|
2990
2985
|
}
|
|
2991
2986
|
),
|
|
2992
2987
|
/* @__PURE__ */ e.jsx(
|
|
2993
|
-
|
|
2988
|
+
z,
|
|
2994
2989
|
{
|
|
2995
2990
|
onClick: () => p("stackedLine"),
|
|
2996
2991
|
variant: "ghost",
|
|
@@ -2998,7 +2993,7 @@ function Sl() {
|
|
|
2998
2993
|
}
|
|
2999
2994
|
),
|
|
3000
2995
|
/* @__PURE__ */ e.jsx(
|
|
3001
|
-
|
|
2996
|
+
z,
|
|
3002
2997
|
{
|
|
3003
2998
|
onClick: () => p("scatter"),
|
|
3004
2999
|
variant: "ghost",
|
|
@@ -3006,7 +3001,7 @@ function Sl() {
|
|
|
3006
3001
|
}
|
|
3007
3002
|
),
|
|
3008
3003
|
/* @__PURE__ */ e.jsx(
|
|
3009
|
-
|
|
3004
|
+
z,
|
|
3010
3005
|
{
|
|
3011
3006
|
onClick: () => p("bubble"),
|
|
3012
3007
|
variant: "ghost",
|
|
@@ -3014,7 +3009,7 @@ function Sl() {
|
|
|
3014
3009
|
}
|
|
3015
3010
|
),
|
|
3016
3011
|
/* @__PURE__ */ e.jsx(
|
|
3017
|
-
|
|
3012
|
+
z,
|
|
3018
3013
|
{
|
|
3019
3014
|
onClick: () => p("pie"),
|
|
3020
3015
|
variant: "ghost",
|
|
@@ -3022,7 +3017,7 @@ function Sl() {
|
|
|
3022
3017
|
}
|
|
3023
3018
|
),
|
|
3024
3019
|
/* @__PURE__ */ e.jsx(
|
|
3025
|
-
|
|
3020
|
+
z,
|
|
3026
3021
|
{
|
|
3027
3022
|
onClick: () => p("doughnut"),
|
|
3028
3023
|
variant: "ghost",
|
|
@@ -3030,7 +3025,7 @@ function Sl() {
|
|
|
3030
3025
|
}
|
|
3031
3026
|
),
|
|
3032
3027
|
/* @__PURE__ */ e.jsx(
|
|
3033
|
-
|
|
3028
|
+
z,
|
|
3034
3029
|
{
|
|
3035
3030
|
onClick: () => p("radar"),
|
|
3036
3031
|
variant: "ghost",
|
|
@@ -3044,7 +3039,7 @@ function Sl() {
|
|
|
3044
3039
|
}
|
|
3045
3040
|
),
|
|
3046
3041
|
/* @__PURE__ */ e.jsx(
|
|
3047
|
-
|
|
3042
|
+
z,
|
|
3048
3043
|
{
|
|
3049
3044
|
onClick: () => p("polarArea"),
|
|
3050
3045
|
variant: "ghost",
|
|
@@ -3052,7 +3047,7 @@ function Sl() {
|
|
|
3052
3047
|
}
|
|
3053
3048
|
),
|
|
3054
3049
|
/* @__PURE__ */ e.jsx(
|
|
3055
|
-
|
|
3050
|
+
z,
|
|
3056
3051
|
{
|
|
3057
3052
|
onClick: () => p("pyramid"),
|
|
3058
3053
|
variant: "ghost",
|
|
@@ -3060,7 +3055,7 @@ function Sl() {
|
|
|
3060
3055
|
}
|
|
3061
3056
|
),
|
|
3062
3057
|
/* @__PURE__ */ e.jsx(
|
|
3063
|
-
|
|
3058
|
+
z,
|
|
3064
3059
|
{
|
|
3065
3060
|
onClick: () => p("range"),
|
|
3066
3061
|
variant: "ghost",
|
|
@@ -3068,7 +3063,7 @@ function Sl() {
|
|
|
3068
3063
|
}
|
|
3069
3064
|
),
|
|
3070
3065
|
/* @__PURE__ */ e.jsx(
|
|
3071
|
-
|
|
3066
|
+
z,
|
|
3072
3067
|
{
|
|
3073
3068
|
onClick: () => p("table"),
|
|
3074
3069
|
variant: "ghost",
|
|
@@ -3076,7 +3071,7 @@ function Sl() {
|
|
|
3076
3071
|
}
|
|
3077
3072
|
),
|
|
3078
3073
|
/* @__PURE__ */ e.jsx(
|
|
3079
|
-
|
|
3074
|
+
z,
|
|
3080
3075
|
{
|
|
3081
3076
|
onClick: () => p("kpi"),
|
|
3082
3077
|
variant: "ghost",
|
|
@@ -3084,7 +3079,7 @@ function Sl() {
|
|
|
3084
3079
|
}
|
|
3085
3080
|
),
|
|
3086
3081
|
/* @__PURE__ */ e.jsx(
|
|
3087
|
-
|
|
3082
|
+
z,
|
|
3088
3083
|
{
|
|
3089
3084
|
onClick: () => p("text"),
|
|
3090
3085
|
variant: "ghost",
|
|
@@ -3092,7 +3087,7 @@ function Sl() {
|
|
|
3092
3087
|
}
|
|
3093
3088
|
),
|
|
3094
3089
|
/* @__PURE__ */ e.jsx(
|
|
3095
|
-
|
|
3090
|
+
z,
|
|
3096
3091
|
{
|
|
3097
3092
|
onClick: () => p("map"),
|
|
3098
3093
|
variant: "ghost",
|
|
@@ -3100,7 +3095,7 @@ function Sl() {
|
|
|
3100
3095
|
}
|
|
3101
3096
|
),
|
|
3102
3097
|
/* @__PURE__ */ e.jsx(
|
|
3103
|
-
|
|
3098
|
+
z,
|
|
3104
3099
|
{
|
|
3105
3100
|
onClick: () => p("custom"),
|
|
3106
3101
|
variant: "ghost",
|
|
@@ -3108,11 +3103,11 @@ function Sl() {
|
|
|
3108
3103
|
}
|
|
3109
3104
|
)
|
|
3110
3105
|
] }),
|
|
3111
|
-
/* @__PURE__ */ e.jsx(
|
|
3106
|
+
/* @__PURE__ */ e.jsx(Nl, { onChartTypeChange: p })
|
|
3112
3107
|
] })
|
|
3113
3108
|
] });
|
|
3114
3109
|
}
|
|
3115
|
-
function
|
|
3110
|
+
function kl({
|
|
3116
3111
|
chartType: s,
|
|
3117
3112
|
className: t,
|
|
3118
3113
|
customIcon: a,
|
|
@@ -3156,20 +3151,20 @@ function wl({
|
|
|
3156
3151
|
return /* @__PURE__ */ e.jsx(As, { className: t });
|
|
3157
3152
|
}
|
|
3158
3153
|
}
|
|
3159
|
-
function
|
|
3154
|
+
function Ol() {
|
|
3160
3155
|
var t;
|
|
3161
3156
|
const s = m((a) => a.card);
|
|
3162
3157
|
return (t = s.customCardPreferences) == null || t.showCardHeader, re(), /* @__PURE__ */ e.jsxs(ra, { children: [
|
|
3163
3158
|
/* @__PURE__ */ e.jsx(ia, { asChild: !0, children: /* @__PURE__ */ e.jsx(Ia, { className: "size-4 cursor-pointer text-muted-foreground/70 transition-colors hover:text-muted-foreground" }) }),
|
|
3164
3159
|
/* @__PURE__ */ e.jsx(oa, { align: "start", className: "w-40 text-muted-foreground", children: /* @__PURE__ */ e.jsxs(
|
|
3165
|
-
|
|
3160
|
+
Jt,
|
|
3166
3161
|
{
|
|
3167
3162
|
onClick: () => {
|
|
3168
3163
|
navigator.clipboard.writeText(s.id), Je.success("Card ID copied to clipboard");
|
|
3169
3164
|
},
|
|
3170
3165
|
className: "cursor-pointer space-x-2",
|
|
3171
3166
|
children: [
|
|
3172
|
-
/* @__PURE__ */ e.jsx(
|
|
3167
|
+
/* @__PURE__ */ e.jsx(An, { className: "size-5" }),
|
|
3173
3168
|
/* @__PURE__ */ e.jsx("span", { children: "Copy Card ID" })
|
|
3174
3169
|
]
|
|
3175
3170
|
}
|
|
@@ -3258,7 +3253,7 @@ function ta() {
|
|
|
3258
3253
|
displayTab: f
|
|
3259
3254
|
});
|
|
3260
3255
|
},
|
|
3261
|
-
children: v.displayTab === !0 || v.displayTab === void 0 ? /* @__PURE__ */ e.jsx(
|
|
3256
|
+
children: v.displayTab === !0 || v.displayTab === void 0 ? /* @__PURE__ */ e.jsx(Tn, { className: "mr-2 size-3.5 text-muted-foreground hover:text-foreground" }) : /* @__PURE__ */ e.jsx(In, { className: "mr-2 size-3.5 text-muted-foreground hover:text-foreground" })
|
|
3262
3257
|
}
|
|
3263
3258
|
);
|
|
3264
3259
|
}
|
|
@@ -3305,7 +3300,7 @@ function ta() {
|
|
|
3305
3300
|
h.id
|
|
3306
3301
|
)),
|
|
3307
3302
|
/* @__PURE__ */ e.jsx(
|
|
3308
|
-
|
|
3303
|
+
z,
|
|
3309
3304
|
{
|
|
3310
3305
|
className: "ml-1 h-8 px-2 hover:bg-muted-foreground/50",
|
|
3311
3306
|
variant: "outline",
|
|
@@ -3314,12 +3309,12 @@ function ta() {
|
|
|
3314
3309
|
}
|
|
3315
3310
|
),
|
|
3316
3311
|
/* @__PURE__ */ e.jsx(
|
|
3317
|
-
|
|
3312
|
+
z,
|
|
3318
3313
|
{
|
|
3319
3314
|
className: "invisible ml-1 h-8 px-2 hover:bg-muted-foreground/50 group-hover:visible",
|
|
3320
3315
|
variant: "outline",
|
|
3321
3316
|
onClick: b,
|
|
3322
|
-
children: /* @__PURE__ */ e.jsx(
|
|
3317
|
+
children: /* @__PURE__ */ e.jsx(On, { className: "h-4 w-4" })
|
|
3323
3318
|
}
|
|
3324
3319
|
)
|
|
3325
3320
|
] }) })
|
|
@@ -3328,8 +3323,8 @@ function ta() {
|
|
|
3328
3323
|
);
|
|
3329
3324
|
}
|
|
3330
3325
|
function M() {
|
|
3331
|
-
return t.type === "kpi" ? /* @__PURE__ */ e.jsx("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ e.jsx("div", { className: "w-1/2 rounded-md border", children: /* @__PURE__ */ e.jsx(
|
|
3332
|
-
|
|
3326
|
+
return t.type === "kpi" ? /* @__PURE__ */ e.jsx("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ e.jsx("div", { className: "w-1/2 rounded-md border", children: /* @__PURE__ */ e.jsx(Kt, { card: t, data: u == null ? void 0 : u.records }) }) }) : t.type === "text" ? /* @__PURE__ */ e.jsx("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ e.jsx("div", { className: "w-1/2 rounded-md border", children: /* @__PURE__ */ e.jsx(We, { className: "mx-3 my-6 h-[300px] overflow-y-auto break-words px-3", children: /* @__PURE__ */ e.jsx(
|
|
3327
|
+
Wt,
|
|
3333
3328
|
{
|
|
3334
3329
|
isLoading: n,
|
|
3335
3330
|
card: t,
|
|
@@ -3341,20 +3336,20 @@ function ta() {
|
|
|
3341
3336
|
(y || g) && /* @__PURE__ */ e.jsx(Ke, { className: "absolute bottom-0 left-0 right-0 top-0 z-50 m-auto h-10 w-10 animate-spin text-foreground/10" }),
|
|
3342
3337
|
/* @__PURE__ */ e.jsxs("div", { className: "mb-0 flex min-h-10 items-center justify-end gap-2 px-6", children: [
|
|
3343
3338
|
a && /* @__PURE__ */ e.jsxs("div", { className: "flex grow items-center gap-2", children: [
|
|
3344
|
-
/* @__PURE__ */ e.jsx(
|
|
3345
|
-
!["table", "custom"].includes(t.type) && /* @__PURE__ */ e.jsx(
|
|
3346
|
-
/* @__PURE__ */ e.jsx(
|
|
3339
|
+
/* @__PURE__ */ e.jsx(wl, {}),
|
|
3340
|
+
!["table", "custom"].includes(t.type) && /* @__PURE__ */ e.jsx(Cl, {}),
|
|
3341
|
+
/* @__PURE__ */ e.jsx(Ol, {})
|
|
3347
3342
|
] }),
|
|
3348
|
-
/* @__PURE__ */ e.jsx(
|
|
3343
|
+
/* @__PURE__ */ e.jsx(Fl, {})
|
|
3349
3344
|
] }),
|
|
3350
3345
|
a ? S() : /* @__PURE__ */ e.jsxs("div", { className: "flex min-h-0 w-full flex-1 grow basis-0 px-6", children: [
|
|
3351
|
-
o && /* @__PURE__ */ e.jsx(
|
|
3352
|
-
(u == null ? void 0 : u.records) && (u == null ? void 0 : u.records.length) > 0 && /* @__PURE__ */ e.jsx(
|
|
3346
|
+
o && /* @__PURE__ */ e.jsx(zl, {}),
|
|
3347
|
+
(u == null ? void 0 : u.records) && (u == null ? void 0 : u.records.length) > 0 && /* @__PURE__ */ e.jsx(yl, { data: (u == null ? void 0 : u.records) || [] }),
|
|
3353
3348
|
l && /* @__PURE__ */ e.jsx("span", { className: "font-mono text-sm", children: l })
|
|
3354
3349
|
] })
|
|
3355
3350
|
] });
|
|
3356
3351
|
}
|
|
3357
|
-
function
|
|
3352
|
+
function zl() {
|
|
3358
3353
|
const s = m((a) => a.pythonStdOut);
|
|
3359
3354
|
if (!s) return null;
|
|
3360
3355
|
const t = s.replace(/\n/g, "<br>");
|
|
@@ -3370,14 +3365,14 @@ function Ol() {
|
|
|
3370
3365
|
/* @__PURE__ */ e.jsx(ge, { className: "mb-2" })
|
|
3371
3366
|
] });
|
|
3372
3367
|
}
|
|
3373
|
-
function
|
|
3368
|
+
function Fl() {
|
|
3374
3369
|
const s = m((a) => a.isShowingVisual), t = m(
|
|
3375
3370
|
(a) => a.actions.setIsShowingVisual
|
|
3376
3371
|
);
|
|
3377
3372
|
return /* @__PURE__ */ e.jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
3378
3373
|
/* @__PURE__ */ e.jsx(R, { htmlFor: "visualize", children: "Chart" }),
|
|
3379
3374
|
/* @__PURE__ */ e.jsx(
|
|
3380
|
-
|
|
3375
|
+
Yt,
|
|
3381
3376
|
{
|
|
3382
3377
|
checked: s,
|
|
3383
3378
|
onCheckedChange: () => t(!s),
|
|
@@ -3387,7 +3382,7 @@ function zl() {
|
|
|
3387
3382
|
)
|
|
3388
3383
|
] });
|
|
3389
3384
|
}
|
|
3390
|
-
function
|
|
3385
|
+
function Il({
|
|
3391
3386
|
options: s,
|
|
3392
3387
|
value: t,
|
|
3393
3388
|
onValueChange: a
|
|
@@ -3441,14 +3436,14 @@ function Ue({
|
|
|
3441
3436
|
children: [
|
|
3442
3437
|
/* @__PURE__ */ e.jsxs("summary", { className: "flex cursor-pointer list-none items-center justify-between gap-4", children: [
|
|
3443
3438
|
/* @__PURE__ */ e.jsx(R, { children: t }),
|
|
3444
|
-
/* @__PURE__ */ e.jsx(
|
|
3439
|
+
/* @__PURE__ */ e.jsx(Xt, { className: "h-4 w-4" })
|
|
3445
3440
|
] }),
|
|
3446
3441
|
/* @__PURE__ */ e.jsx("div", { className: "transition-all ease-in-out", children: s })
|
|
3447
3442
|
]
|
|
3448
3443
|
}
|
|
3449
3444
|
);
|
|
3450
3445
|
}
|
|
3451
|
-
function
|
|
3446
|
+
function Tl() {
|
|
3452
3447
|
var b, I;
|
|
3453
3448
|
const s = m(
|
|
3454
3449
|
(C) => C.card.customCardPreferences
|
|
@@ -3579,7 +3574,7 @@ function Il() {
|
|
|
3579
3574
|
}
|
|
3580
3575
|
) }) }),
|
|
3581
3576
|
((s == null ? void 0 : s.type) === "component" || (s == null ? void 0 : s.type) === void 0) && /* @__PURE__ */ e.jsx(
|
|
3582
|
-
|
|
3577
|
+
Il,
|
|
3583
3578
|
{
|
|
3584
3579
|
options: [
|
|
3585
3580
|
{ value: "single", label: "Single Visual" },
|
|
@@ -3949,7 +3944,7 @@ function Wa() {
|
|
|
3949
3944
|
h(se);
|
|
3950
3945
|
}
|
|
3951
3946
|
return /* @__PURE__ */ e.jsxs(ms, { onOpenChange: (E) => t(E), children: [
|
|
3952
|
-
/* @__PURE__ */ e.jsx(hs, { asChild: !0, children: /* @__PURE__ */ e.jsx(
|
|
3947
|
+
/* @__PURE__ */ e.jsx(hs, { asChild: !0, children: /* @__PURE__ */ e.jsx(Zt, { className: "size-4 cursor-pointer text-muted-foreground hover:text-foreground" }) }),
|
|
3953
3948
|
/* @__PURE__ */ e.jsx(xs, { align: "center", className: "max-w-65", children: /* @__PURE__ */ e.jsxs("div", { className: "grid gap-4", children: [
|
|
3954
3949
|
/* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
|
|
3955
3950
|
/* @__PURE__ */ e.jsx("h4", { className: "font-medium leading-none", children: "Scale Options" }),
|
|
@@ -4001,9 +3996,9 @@ function Wa() {
|
|
|
4001
3996
|
] }),
|
|
4002
3997
|
y === "custom" && o == "linear" && P(),
|
|
4003
3998
|
H(),
|
|
4004
|
-
/* @__PURE__ */ e.jsx(
|
|
3999
|
+
/* @__PURE__ */ e.jsx(en, {}),
|
|
4005
4000
|
/* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-3", children: /* @__PURE__ */ e.jsx(
|
|
4006
|
-
|
|
4001
|
+
z,
|
|
4007
4002
|
{
|
|
4008
4003
|
onClick: Y,
|
|
4009
4004
|
variant: "secondary",
|
|
@@ -4015,7 +4010,7 @@ function Wa() {
|
|
|
4015
4010
|
] }) })
|
|
4016
4011
|
] });
|
|
4017
4012
|
}
|
|
4018
|
-
function
|
|
4013
|
+
function Dl({ idx: s }) {
|
|
4019
4014
|
var c;
|
|
4020
4015
|
const t = m((d) => {
|
|
4021
4016
|
var p;
|
|
@@ -4029,7 +4024,7 @@ function Tl({ idx: s }) {
|
|
|
4029
4024
|
(d) => d.actions.setCardPreferences
|
|
4030
4025
|
), l = (c = t == null ? void 0 : t.chartOptions) == null ? void 0 : c.indexAxis, o = a == null ? void 0 : a.find((d) => d.idx === s);
|
|
4031
4026
|
function i(d, p) {
|
|
4032
|
-
(d === "end" || d === "start") &&
|
|
4027
|
+
(d === "end" || d === "start") && sn(an());
|
|
4033
4028
|
const u = {
|
|
4034
4029
|
display: d !== "none",
|
|
4035
4030
|
align: d,
|
|
@@ -4060,10 +4055,10 @@ function Tl({ idx: s }) {
|
|
|
4060
4055
|
}
|
|
4061
4056
|
}
|
|
4062
4057
|
return /* @__PURE__ */ e.jsxs(ms, { children: [
|
|
4063
|
-
/* @__PURE__ */ e.jsx(hs, { children: /* @__PURE__ */ e.jsx(
|
|
4058
|
+
/* @__PURE__ */ e.jsx(hs, { children: /* @__PURE__ */ e.jsx(Jn, { className: "invisible size-4 rotate-[135deg] cursor-pointer text-muted-foreground hover:text-foreground group-hover:visible" }) }),
|
|
4064
4059
|
/* @__PURE__ */ e.jsx(xs, { className: "w-fit p-1", children: /* @__PURE__ */ e.jsxs("div", { className: "flex gap-1", children: [
|
|
4065
4060
|
/* @__PURE__ */ e.jsx(
|
|
4066
|
-
|
|
4061
|
+
z,
|
|
4067
4062
|
{
|
|
4068
4063
|
onClick: () => i("none", s),
|
|
4069
4064
|
size: "sm",
|
|
@@ -4073,14 +4068,14 @@ function Tl({ idx: s }) {
|
|
|
4073
4068
|
}
|
|
4074
4069
|
),
|
|
4075
4070
|
/* @__PURE__ */ e.jsx(
|
|
4076
|
-
|
|
4071
|
+
z,
|
|
4077
4072
|
{
|
|
4078
4073
|
onClick: () => i("start", s),
|
|
4079
4074
|
size: "sm",
|
|
4080
4075
|
variant: "secondary",
|
|
4081
4076
|
className: "h-7 p-1 text-xs font-normal",
|
|
4082
4077
|
children: /* @__PURE__ */ e.jsx(
|
|
4083
|
-
|
|
4078
|
+
Vn,
|
|
4084
4079
|
{
|
|
4085
4080
|
className: W("h-4 w-4", {
|
|
4086
4081
|
"rotate-90": l === "y"
|
|
@@ -4090,14 +4085,14 @@ function Tl({ idx: s }) {
|
|
|
4090
4085
|
}
|
|
4091
4086
|
),
|
|
4092
4087
|
/* @__PURE__ */ e.jsx(
|
|
4093
|
-
|
|
4088
|
+
z,
|
|
4094
4089
|
{
|
|
4095
4090
|
onClick: () => i("center", s),
|
|
4096
4091
|
size: "sm",
|
|
4097
4092
|
variant: "secondary",
|
|
4098
4093
|
className: "h-7 p-1 text-xs font-normal",
|
|
4099
4094
|
children: /* @__PURE__ */ e.jsx(
|
|
4100
|
-
|
|
4095
|
+
Rn,
|
|
4101
4096
|
{
|
|
4102
4097
|
className: W("h-4 w-4", {
|
|
4103
4098
|
"rotate-90": l === "y"
|
|
@@ -4107,14 +4102,14 @@ function Tl({ idx: s }) {
|
|
|
4107
4102
|
}
|
|
4108
4103
|
),
|
|
4109
4104
|
/* @__PURE__ */ e.jsx(
|
|
4110
|
-
|
|
4105
|
+
z,
|
|
4111
4106
|
{
|
|
4112
4107
|
onClick: () => i("end", s),
|
|
4113
4108
|
size: "sm",
|
|
4114
4109
|
variant: "secondary",
|
|
4115
4110
|
className: "h-7 p-1 text-xs font-normal",
|
|
4116
4111
|
children: /* @__PURE__ */ e.jsx(
|
|
4117
|
-
|
|
4112
|
+
qn,
|
|
4118
4113
|
{
|
|
4119
4114
|
className: W("h-4 w-4", {
|
|
4120
4115
|
"rotate-90": l === "y"
|
|
@@ -4139,7 +4134,7 @@ function Ya() {
|
|
|
4139
4134
|
} = vs((a == null ? void 0 : a.records) || []);
|
|
4140
4135
|
let d = i;
|
|
4141
4136
|
if (["stackedBar", "stackedLine"].includes(s.type)) {
|
|
4142
|
-
const p =
|
|
4137
|
+
const p = tn({
|
|
4143
4138
|
dataArray: (a == null ? void 0 : a.records) || [],
|
|
4144
4139
|
groupKey: c[0],
|
|
4145
4140
|
pivotKey: c[1],
|
|
@@ -4157,11 +4152,11 @@ function Ya() {
|
|
|
4157
4152
|
/* @__PURE__ */ e.jsx(R, { children: l }),
|
|
4158
4153
|
/* @__PURE__ */ e.jsx(Wa, {})
|
|
4159
4154
|
] }),
|
|
4160
|
-
/* @__PURE__ */ e.jsx("div", { className: "my-1 space-y-1", children: d.map((p, u) => /* @__PURE__ */ e.jsx(
|
|
4155
|
+
/* @__PURE__ */ e.jsx("div", { className: "my-1 space-y-1", children: d.map((p, u) => /* @__PURE__ */ e.jsx(Ml, { col: p, idx: u }, p)) })
|
|
4161
4156
|
] })
|
|
4162
4157
|
] });
|
|
4163
4158
|
}
|
|
4164
|
-
function
|
|
4159
|
+
function Ml({ col: s, idx: t }) {
|
|
4165
4160
|
const a = m((c) => {
|
|
4166
4161
|
var d;
|
|
4167
4162
|
return (d = c.card) == null ? void 0 : d.preferences;
|
|
@@ -4214,18 +4209,18 @@ function Dl({ col: s, idx: t }) {
|
|
|
4214
4209
|
}
|
|
4215
4210
|
),
|
|
4216
4211
|
/* @__PURE__ */ e.jsx(
|
|
4217
|
-
|
|
4212
|
+
wn,
|
|
4218
4213
|
{
|
|
4219
4214
|
onClick: () => i("area"),
|
|
4220
4215
|
className: "invisible size-4 cursor-pointer text-muted-foreground hover:text-foreground group-hover:visible"
|
|
4221
4216
|
}
|
|
4222
4217
|
),
|
|
4223
|
-
/* @__PURE__ */ e.jsx(
|
|
4218
|
+
/* @__PURE__ */ e.jsx(Dl, { idx: t })
|
|
4224
4219
|
] })
|
|
4225
4220
|
] });
|
|
4226
4221
|
}
|
|
4227
4222
|
function Xa() {
|
|
4228
|
-
const s = m((g) => g.selectedConnectionId), t = m((g) => g.selectedDatamodelId), a = m((g) => g.selectedDatabaseName), n = m((g) => g.selectedSchemaName), l = m((g) => g.selectedTableName), o =
|
|
4223
|
+
const s = m((g) => g.selectedConnectionId), t = m((g) => g.selectedDatamodelId), a = m((g) => g.selectedDatabaseName), n = m((g) => g.selectedSchemaName), l = m((g) => g.selectedTableName), o = O((g) => g.dashboard.filters) || [], i = O((g) => g.actions.addFilter), c = O((g) => g.actions.removeFilter), d = O(
|
|
4229
4224
|
(g) => g.actions.removeFilterValue
|
|
4230
4225
|
), { modelItems: p, tableName: u } = qe();
|
|
4231
4226
|
function y(g, x = "dashboard") {
|
|
@@ -4288,7 +4283,7 @@ function Xa() {
|
|
|
4288
4283
|
return { assignFilter: y };
|
|
4289
4284
|
}
|
|
4290
4285
|
function Re() {
|
|
4291
|
-
const s =
|
|
4286
|
+
const s = O(
|
|
4292
4287
|
(c) => c.dashboard.filters
|
|
4293
4288
|
), t = m((c) => c.frame), { setFrame: a } = re(), { columns: n } = qe(), { assignFilter: l } = Xa();
|
|
4294
4289
|
function o(c) {
|
|
@@ -4298,11 +4293,11 @@ function Re() {
|
|
|
4298
4293
|
const i = s == null ? void 0 : s.find((c) => c.id === t.filterId);
|
|
4299
4294
|
return /* @__PURE__ */ e.jsxs("div", { className: "space-y-3", children: [
|
|
4300
4295
|
/* @__PURE__ */ e.jsx(R, { children: "Card Filter" }),
|
|
4301
|
-
/* @__PURE__ */ e.jsx(
|
|
4302
|
-
i && /* @__PURE__ */ e.jsx(
|
|
4296
|
+
/* @__PURE__ */ e.jsx(Ll, { onSelect: o, columns: n }),
|
|
4297
|
+
i && /* @__PURE__ */ e.jsx(nn, { filter: i })
|
|
4303
4298
|
] });
|
|
4304
4299
|
}
|
|
4305
|
-
function
|
|
4300
|
+
function Ll({
|
|
4306
4301
|
columns: s,
|
|
4307
4302
|
onSelect: t
|
|
4308
4303
|
}) {
|
|
@@ -4310,7 +4305,7 @@ function Ml({
|
|
|
4310
4305
|
const [a, n] = ea.useState(!1), [l, o] = ea.useState("");
|
|
4311
4306
|
return /* @__PURE__ */ e.jsxs(ms, { open: a, onOpenChange: n, children: [
|
|
4312
4307
|
/* @__PURE__ */ e.jsx(hs, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
|
|
4313
|
-
|
|
4308
|
+
z,
|
|
4314
4309
|
{
|
|
4315
4310
|
size: "sm",
|
|
4316
4311
|
variant: "outline",
|
|
@@ -4319,16 +4314,16 @@ function Ml({
|
|
|
4319
4314
|
className: "w-full justify-between font-normal",
|
|
4320
4315
|
children: [
|
|
4321
4316
|
l ? (i = s.find((c) => c.column_name === l)) == null ? void 0 : i.column_name : "Select Column...",
|
|
4322
|
-
/* @__PURE__ */ e.jsx(
|
|
4317
|
+
/* @__PURE__ */ e.jsx(ln, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
|
|
4323
4318
|
]
|
|
4324
4319
|
}
|
|
4325
4320
|
) }),
|
|
4326
|
-
/* @__PURE__ */ e.jsx(xs, { className: "w-[200px] p-0", children: /* @__PURE__ */ e.jsxs(
|
|
4327
|
-
/* @__PURE__ */ e.jsx(
|
|
4328
|
-
/* @__PURE__ */ e.jsxs(
|
|
4329
|
-
/* @__PURE__ */ e.jsx(
|
|
4330
|
-
/* @__PURE__ */ e.jsx(
|
|
4331
|
-
|
|
4321
|
+
/* @__PURE__ */ e.jsx(xs, { className: "w-[200px] p-0", children: /* @__PURE__ */ e.jsxs(rn, { children: [
|
|
4322
|
+
/* @__PURE__ */ e.jsx(on, { placeholder: "Search column", className: "h-9" }),
|
|
4323
|
+
/* @__PURE__ */ e.jsxs(cn, { children: [
|
|
4324
|
+
/* @__PURE__ */ e.jsx(dn, { children: "No framework found." }),
|
|
4325
|
+
/* @__PURE__ */ e.jsx(un, { children: s.map((c) => /* @__PURE__ */ e.jsxs(
|
|
4326
|
+
mn,
|
|
4332
4327
|
{
|
|
4333
4328
|
value: c.column_name,
|
|
4334
4329
|
onSelect: (d) => {
|
|
@@ -4354,7 +4349,7 @@ function Ml({
|
|
|
4354
4349
|
] }) })
|
|
4355
4350
|
] });
|
|
4356
4351
|
}
|
|
4357
|
-
function
|
|
4352
|
+
function El({
|
|
4358
4353
|
cardType: s
|
|
4359
4354
|
}) {
|
|
4360
4355
|
return /* @__PURE__ */ e.jsx("div", { className: "space-y-6 px-6 py-2", children: /* @__PURE__ */ e.jsxs(Te, { defaultValue: ["item-2"], type: "multiple", children: [
|
|
@@ -4450,7 +4445,7 @@ function Gs() {
|
|
|
4450
4445
|
)
|
|
4451
4446
|
] });
|
|
4452
4447
|
}
|
|
4453
|
-
function
|
|
4448
|
+
function Al({
|
|
4454
4449
|
cardType: s
|
|
4455
4450
|
}) {
|
|
4456
4451
|
function t(a) {
|
|
@@ -4497,7 +4492,7 @@ function El({
|
|
|
4497
4492
|
] })
|
|
4498
4493
|
] }) });
|
|
4499
4494
|
}
|
|
4500
|
-
const
|
|
4495
|
+
const Vl = {
|
|
4501
4496
|
datasets: [
|
|
4502
4497
|
{
|
|
4503
4498
|
type: "line",
|
|
@@ -4510,7 +4505,7 @@ const Al = {
|
|
|
4510
4505
|
data: []
|
|
4511
4506
|
}
|
|
4512
4507
|
]
|
|
4513
|
-
},
|
|
4508
|
+
}, ql = {
|
|
4514
4509
|
datasets: [
|
|
4515
4510
|
{
|
|
4516
4511
|
fill: "origin",
|
|
@@ -4520,7 +4515,7 @@ const Al = {
|
|
|
4520
4515
|
}
|
|
4521
4516
|
]
|
|
4522
4517
|
};
|
|
4523
|
-
function
|
|
4518
|
+
function Rl() {
|
|
4524
4519
|
const s = m((t) => t.card.type);
|
|
4525
4520
|
return /* @__PURE__ */ e.jsxs("div", { className: "space-y-6 p-6", children: [
|
|
4526
4521
|
/* @__PURE__ */ e.jsx(
|
|
@@ -4529,7 +4524,7 @@ function ql() {
|
|
|
4529
4524
|
className: " ",
|
|
4530
4525
|
type: "single",
|
|
4531
4526
|
collapsible: !0,
|
|
4532
|
-
children:
|
|
4527
|
+
children: _l(s)
|
|
4533
4528
|
}
|
|
4534
4529
|
),
|
|
4535
4530
|
/* @__PURE__ */ e.jsx("section", { className: "", children: ["line", "bar"].includes(s) && /* @__PURE__ */ e.jsx(fs, {}) }),
|
|
@@ -4540,7 +4535,7 @@ function ql() {
|
|
|
4540
4535
|
] })
|
|
4541
4536
|
] });
|
|
4542
4537
|
}
|
|
4543
|
-
function
|
|
4538
|
+
function _l(s) {
|
|
4544
4539
|
if (["line", "bar"].includes(s))
|
|
4545
4540
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
4546
4541
|
/* @__PURE__ */ e.jsxs(B, { value: "item-1", children: [
|
|
@@ -4561,7 +4556,7 @@ function Rl(s) {
|
|
|
4561
4556
|
/* @__PURE__ */ e.jsx("b", { children: "Customize" }),
|
|
4562
4557
|
" and change the `type` property in the dataset."
|
|
4563
4558
|
] }),
|
|
4564
|
-
/* @__PURE__ */ e.jsx("pre", { children: JSON.stringify(
|
|
4559
|
+
/* @__PURE__ */ e.jsx("pre", { children: JSON.stringify(Vl, null, 2) })
|
|
4565
4560
|
] })
|
|
4566
4561
|
] }),
|
|
4567
4562
|
/* @__PURE__ */ e.jsxs(B, { value: "item-3", children: [
|
|
@@ -4582,7 +4577,7 @@ function Rl(s) {
|
|
|
4582
4577
|
),
|
|
4583
4578
|
"for more options."
|
|
4584
4579
|
] }),
|
|
4585
|
-
/* @__PURE__ */ e.jsx("pre", { children: JSON.stringify(
|
|
4580
|
+
/* @__PURE__ */ e.jsx("pre", { children: JSON.stringify(ql, null, 2) })
|
|
4586
4581
|
] })
|
|
4587
4582
|
] })
|
|
4588
4583
|
] });
|
|
@@ -4637,7 +4632,7 @@ function Rl(s) {
|
|
|
4637
4632
|
] })
|
|
4638
4633
|
] }) });
|
|
4639
4634
|
}
|
|
4640
|
-
function
|
|
4635
|
+
function Hl() {
|
|
4641
4636
|
var d, p, u, y, g;
|
|
4642
4637
|
const s = m((x) => x.card.preferences), t = m(
|
|
4643
4638
|
(x) => x.actions.setCardPreferences
|
|
@@ -4794,7 +4789,7 @@ function _l() {
|
|
|
4794
4789
|
] }) }),
|
|
4795
4790
|
/* @__PURE__ */ e.jsx(ge, { className: "my-3" }),
|
|
4796
4791
|
/* @__PURE__ */ e.jsx(
|
|
4797
|
-
|
|
4792
|
+
hn,
|
|
4798
4793
|
{
|
|
4799
4794
|
colorRanges: o,
|
|
4800
4795
|
setColorRanges: i
|
|
@@ -4803,7 +4798,7 @@ function _l() {
|
|
|
4803
4798
|
] })
|
|
4804
4799
|
] });
|
|
4805
4800
|
}
|
|
4806
|
-
function
|
|
4801
|
+
function $l() {
|
|
4807
4802
|
return /* @__PURE__ */ e.jsxs("div", { className: "space-y-6 px-6 py-2", children: [
|
|
4808
4803
|
/* @__PURE__ */ e.jsx(Te, { type: "single", collapsible: !0, children: /* @__PURE__ */ e.jsxs(B, { value: "item-1", children: [
|
|
4809
4804
|
/* @__PURE__ */ e.jsx(U, { className: "", children: "KPI Query" }),
|
|
@@ -4829,12 +4824,12 @@ function Hl() {
|
|
|
4829
4824
|
] })
|
|
4830
4825
|
] })
|
|
4831
4826
|
] }) }),
|
|
4832
|
-
/* @__PURE__ */ e.jsx("section", { className: "", children: /* @__PURE__ */ e.jsx(
|
|
4827
|
+
/* @__PURE__ */ e.jsx("section", { className: "", children: /* @__PURE__ */ e.jsx(Hl, {}) }),
|
|
4833
4828
|
/* @__PURE__ */ e.jsx("div", {}),
|
|
4834
4829
|
/* @__PURE__ */ e.jsx("div", {})
|
|
4835
4830
|
] });
|
|
4836
4831
|
}
|
|
4837
|
-
const
|
|
4832
|
+
const Pl = [
|
|
4838
4833
|
{
|
|
4839
4834
|
label: "Mercator",
|
|
4840
4835
|
value: "mercator"
|
|
@@ -4891,7 +4886,7 @@ const $l = [
|
|
|
4891
4886
|
label: "Natural Earth 1",
|
|
4892
4887
|
value: "naturalEarth1"
|
|
4893
4888
|
}
|
|
4894
|
-
],
|
|
4889
|
+
], Bl = [
|
|
4895
4890
|
"blues",
|
|
4896
4891
|
"brBG",
|
|
4897
4892
|
"buGn",
|
|
@@ -4930,11 +4925,11 @@ const $l = [
|
|
|
4930
4925
|
"ylGnBu",
|
|
4931
4926
|
"ylOrBr",
|
|
4932
4927
|
"ylOrRd"
|
|
4933
|
-
],
|
|
4928
|
+
], Ul = Bl.map((s) => ({
|
|
4934
4929
|
label: s,
|
|
4935
4930
|
value: s
|
|
4936
4931
|
}));
|
|
4937
|
-
function
|
|
4932
|
+
function Gl() {
|
|
4938
4933
|
var d, p, u, y, g, x, j, b, I, C, D, F, A, N, S, M, h, v;
|
|
4939
4934
|
const s = m((f) => f.card), t = (p = (d = s == null ? void 0 : s.preferences) == null ? void 0 : d.mapVisualOptions) == null ? void 0 : p.topoJsonUrl, [a, n] = q(
|
|
4940
4935
|
((y = (u = s == null ? void 0 : s.preferences) == null ? void 0 : u.mapVisualOptions) == null ? void 0 : y.customTopoJsonUrl) || ""
|
|
@@ -5027,7 +5022,7 @@ function Ul() {
|
|
|
5027
5022
|
ue,
|
|
5028
5023
|
{
|
|
5029
5024
|
className: "h-9",
|
|
5030
|
-
options:
|
|
5025
|
+
options: Pl,
|
|
5031
5026
|
value: ((b = (j = s.preferences) == null ? void 0 : j.mapVisualOptions) == null ? void 0 : b.projection) || "",
|
|
5032
5027
|
label: "Projection",
|
|
5033
5028
|
onValueChange: (f) => {
|
|
@@ -5049,7 +5044,7 @@ function Ul() {
|
|
|
5049
5044
|
ue,
|
|
5050
5045
|
{
|
|
5051
5046
|
className: "h-9",
|
|
5052
|
-
options:
|
|
5047
|
+
options: Ul,
|
|
5053
5048
|
value: ((C = (I = s.preferences) == null ? void 0 : I.mapVisualOptions) == null ? void 0 : C.colorScale) || "",
|
|
5054
5049
|
label: "Select Color Scale",
|
|
5055
5050
|
onValueChange: (f) => {
|
|
@@ -5139,7 +5134,7 @@ function Ul() {
|
|
|
5139
5134
|
/* @__PURE__ */ e.jsx(De, {})
|
|
5140
5135
|
] });
|
|
5141
5136
|
}
|
|
5142
|
-
function
|
|
5137
|
+
function Ql() {
|
|
5143
5138
|
var n;
|
|
5144
5139
|
const s = m((l) => l.card.preferences), { setCardPreferences: t } = m((l) => l.actions);
|
|
5145
5140
|
function a(l) {
|
|
@@ -5207,7 +5202,7 @@ function ns({
|
|
|
5207
5202
|
/* @__PURE__ */ e.jsxs(G, { className: "space-y-4 px-2", children: [
|
|
5208
5203
|
s === "range" && /* @__PURE__ */ e.jsx(fs, {}),
|
|
5209
5204
|
s !== "text" && /* @__PURE__ */ e.jsx(Gs, {}),
|
|
5210
|
-
s === "text" && /* @__PURE__ */ e.jsx(
|
|
5205
|
+
s === "text" && /* @__PURE__ */ e.jsx(Ql, {})
|
|
5211
5206
|
] })
|
|
5212
5207
|
] }),
|
|
5213
5208
|
!["range", "text"].includes(s) && /* @__PURE__ */ e.jsxs(B, { value: "item-3", children: [
|
|
@@ -5219,7 +5214,7 @@ function ns({
|
|
|
5219
5214
|
] })
|
|
5220
5215
|
] }) });
|
|
5221
5216
|
}
|
|
5222
|
-
function
|
|
5217
|
+
function Jl() {
|
|
5223
5218
|
const s = m(
|
|
5224
5219
|
(n) => {
|
|
5225
5220
|
var l, o;
|
|
@@ -5299,7 +5294,7 @@ function Ql() {
|
|
|
5299
5294
|
] })
|
|
5300
5295
|
] }) });
|
|
5301
5296
|
}
|
|
5302
|
-
function
|
|
5297
|
+
function Kl({}) {
|
|
5303
5298
|
const s = m((n) => {
|
|
5304
5299
|
var l;
|
|
5305
5300
|
return (l = n.card) == null ? void 0 : l.preferences;
|
|
@@ -5332,7 +5327,7 @@ function Jl({}) {
|
|
|
5332
5327
|
] })
|
|
5333
5328
|
] });
|
|
5334
5329
|
}
|
|
5335
|
-
const
|
|
5330
|
+
const Wl = /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 font-mono text-xs", children: [
|
|
5336
5331
|
/* @__PURE__ */ e.jsx("div", { className: "rounded bg-muted px-2 py-1 text-xs", children: "SELECT dimension, cohort, metric FROM table" }),
|
|
5337
5332
|
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
5338
5333
|
"See ",
|
|
@@ -5348,7 +5343,7 @@ const Kl = /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 font-mono text-
|
|
|
5348
5343
|
),
|
|
5349
5344
|
" in the docs."
|
|
5350
5345
|
] })
|
|
5351
|
-
] }),
|
|
5346
|
+
] }), Yl = /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 font-mono text-xs", children: [
|
|
5352
5347
|
/* @__PURE__ */ e.jsx("div", { className: "rounded bg-muted px-2 py-1 text-xs", children: "SELECT y-axis, label, range-from, range-to, range-value FROM table" }),
|
|
5353
5348
|
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
5354
5349
|
"See ",
|
|
@@ -5364,7 +5359,7 @@ const Kl = /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 font-mono text-
|
|
|
5364
5359
|
),
|
|
5365
5360
|
" in the docs."
|
|
5366
5361
|
] })
|
|
5367
|
-
] }),
|
|
5362
|
+
] }), Xl = /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 font-mono text-xs", children: [
|
|
5368
5363
|
/* @__PURE__ */ e.jsx("div", { className: "rounded bg-muted px-2 py-1 text-xs", children: "SELECT text FROM table limit 1" }),
|
|
5369
5364
|
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
5370
5365
|
"See ",
|
|
@@ -5381,22 +5376,22 @@ const Kl = /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 font-mono text-
|
|
|
5381
5376
|
" in the docs."
|
|
5382
5377
|
] })
|
|
5383
5378
|
] });
|
|
5384
|
-
function
|
|
5379
|
+
function Zl() {
|
|
5385
5380
|
const s = m((a) => a.card.type);
|
|
5386
5381
|
function t(a) {
|
|
5387
5382
|
switch (a) {
|
|
5388
5383
|
case "stackedBar":
|
|
5389
5384
|
case "stackedLine":
|
|
5390
|
-
return /* @__PURE__ */ e.jsx(
|
|
5385
|
+
return /* @__PURE__ */ e.jsx(Jl, {});
|
|
5391
5386
|
case "pyramid":
|
|
5392
|
-
return /* @__PURE__ */ e.jsx(ns, { docContent:
|
|
5387
|
+
return /* @__PURE__ */ e.jsx(ns, { docContent: Wl, cardType: a });
|
|
5393
5388
|
case "kpi":
|
|
5394
|
-
return /* @__PURE__ */ e.jsx(
|
|
5389
|
+
return /* @__PURE__ */ e.jsx($l, {});
|
|
5395
5390
|
case "line":
|
|
5396
5391
|
case "bar":
|
|
5397
|
-
return /* @__PURE__ */ e.jsx(
|
|
5392
|
+
return /* @__PURE__ */ e.jsx(El, { cardType: a });
|
|
5398
5393
|
case "range":
|
|
5399
|
-
return /* @__PURE__ */ e.jsx(ns, { docContent:
|
|
5394
|
+
return /* @__PURE__ */ e.jsx(ns, { docContent: Yl, cardType: a });
|
|
5400
5395
|
case "pie":
|
|
5401
5396
|
case "doughnut":
|
|
5402
5397
|
case "polarArea":
|
|
@@ -5404,29 +5399,29 @@ function Xl() {
|
|
|
5404
5399
|
return /* @__PURE__ */ e.jsx(ns, { cardType: a });
|
|
5405
5400
|
case "bubble":
|
|
5406
5401
|
case "scatter":
|
|
5407
|
-
return /* @__PURE__ */ e.jsx(
|
|
5402
|
+
return /* @__PURE__ */ e.jsx(Al, { cardType: a });
|
|
5408
5403
|
case "table":
|
|
5409
|
-
return /* @__PURE__ */ e.jsx(
|
|
5404
|
+
return /* @__PURE__ */ e.jsx(Kl, { cardType: a });
|
|
5410
5405
|
case "text":
|
|
5411
5406
|
return /* @__PURE__ */ e.jsx(
|
|
5412
5407
|
ns,
|
|
5413
5408
|
{
|
|
5414
|
-
docContent:
|
|
5409
|
+
docContent: Xl,
|
|
5415
5410
|
cardType: a,
|
|
5416
5411
|
suffix: "Visual"
|
|
5417
5412
|
}
|
|
5418
5413
|
);
|
|
5419
5414
|
case "map":
|
|
5420
|
-
return /* @__PURE__ */ e.jsx(
|
|
5415
|
+
return /* @__PURE__ */ e.jsx(Gl, {});
|
|
5421
5416
|
case "custom":
|
|
5422
|
-
return /* @__PURE__ */ e.jsx(
|
|
5417
|
+
return /* @__PURE__ */ e.jsx(Tl, {});
|
|
5423
5418
|
default:
|
|
5424
|
-
return /* @__PURE__ */ e.jsx(
|
|
5419
|
+
return /* @__PURE__ */ e.jsx(Rl, {});
|
|
5425
5420
|
}
|
|
5426
5421
|
}
|
|
5427
5422
|
return /* @__PURE__ */ e.jsx(We, { className: "h-full w-full text-sm", children: t(s) });
|
|
5428
5423
|
}
|
|
5429
|
-
function
|
|
5424
|
+
function er() {
|
|
5430
5425
|
const s = m((t) => t.isShowingVisual);
|
|
5431
5426
|
return /* @__PURE__ */ e.jsxs(
|
|
5432
5427
|
Cs,
|
|
@@ -5441,7 +5436,7 @@ function Zl() {
|
|
|
5441
5436
|
className: "flex",
|
|
5442
5437
|
minSize: 20,
|
|
5443
5438
|
defaultSize: 40,
|
|
5444
|
-
children: /* @__PURE__ */ e.jsx(
|
|
5439
|
+
children: /* @__PURE__ */ e.jsx(bl, {})
|
|
5445
5440
|
}
|
|
5446
5441
|
),
|
|
5447
5442
|
/* @__PURE__ */ e.jsx(Ns, { withHandle: !0, className: "border" }),
|
|
@@ -5460,7 +5455,7 @@ function Zl() {
|
|
|
5460
5455
|
minSize: 20,
|
|
5461
5456
|
defaultSize: 25,
|
|
5462
5457
|
maxSize: 30,
|
|
5463
|
-
children: /* @__PURE__ */ e.jsx(
|
|
5458
|
+
children: /* @__PURE__ */ e.jsx(Zl, {})
|
|
5464
5459
|
}
|
|
5465
5460
|
) }),
|
|
5466
5461
|
/* @__PURE__ */ e.jsx(Ns, { className: "border" }),
|
|
@@ -5472,15 +5467,15 @@ function Zl() {
|
|
|
5472
5467
|
}
|
|
5473
5468
|
);
|
|
5474
5469
|
}
|
|
5475
|
-
function
|
|
5476
|
-
|
|
5477
|
-
const n = m((i) => i.actions.setOnSave), l = m((i) => i.actions.setOnClose), o =
|
|
5470
|
+
function sr({ authToken: s, onSave: t, onClose: a }) {
|
|
5471
|
+
O((i) => i.themeStyle);
|
|
5472
|
+
const n = m((i) => i.actions.setOnSave), l = m((i) => i.actions.setOnClose), o = O((i) => i.actions.setAuthToken);
|
|
5478
5473
|
return Z(() => {
|
|
5479
5474
|
t && n(t), a && l(a);
|
|
5480
5475
|
}, [t, n, a, l]), Z(() => {
|
|
5481
5476
|
s && s.accessToken && o(s);
|
|
5482
5477
|
}, [s, o]), /* @__PURE__ */ e.jsx(us, { FallbackComponent: ka, children: /* @__PURE__ */ e.jsxs(
|
|
5483
|
-
|
|
5478
|
+
xn,
|
|
5484
5479
|
{
|
|
5485
5480
|
style: {
|
|
5486
5481
|
// borderRadius: currentStyle?.chart?.options?.borderRadius,
|
|
@@ -5489,15 +5484,15 @@ function er({ authToken: s, onSave: t, onClose: a }) {
|
|
|
5489
5484
|
className: "rounded-none",
|
|
5490
5485
|
role: "editor-panel",
|
|
5491
5486
|
children: [
|
|
5492
|
-
/* @__PURE__ */ e.jsx(
|
|
5493
|
-
/* @__PURE__ */ e.jsx(
|
|
5487
|
+
/* @__PURE__ */ e.jsx(pn, { className: "rounded-none border-r-[1.5px]", children: /* @__PURE__ */ e.jsx(Aa, {}) }),
|
|
5488
|
+
/* @__PURE__ */ e.jsx(fn, { children: /* @__PURE__ */ e.jsx(er, {}) })
|
|
5494
5489
|
]
|
|
5495
5490
|
}
|
|
5496
5491
|
) });
|
|
5497
5492
|
}
|
|
5498
|
-
function
|
|
5499
|
-
|
|
5500
|
-
const s =
|
|
5493
|
+
function ar() {
|
|
5494
|
+
O((i) => i.selectedCardId);
|
|
5495
|
+
const s = O((i) => i.selectedSheetId), { setIsVisualEditing: t } = O((i) => i.actions), a = O((i) => i.isVisualEditing), n = O((i) => i.actions.updateFrame);
|
|
5501
5496
|
function l(i) {
|
|
5502
5497
|
s && (n(s, i), t(!1));
|
|
5503
5498
|
}
|
|
@@ -5511,16 +5506,16 @@ function sr() {
|
|
|
5511
5506
|
className: W("flex grow", {
|
|
5512
5507
|
"max-h-0 overflow-hidden": !a
|
|
5513
5508
|
}),
|
|
5514
|
-
children: /* @__PURE__ */ e.jsx(
|
|
5509
|
+
children: /* @__PURE__ */ e.jsx(sr, { onSave: l, onClose: o })
|
|
5515
5510
|
}
|
|
5516
5511
|
);
|
|
5517
5512
|
}
|
|
5518
|
-
function
|
|
5513
|
+
function tr() {
|
|
5519
5514
|
m((i) => i.selectedConnectionId), m((i) => i.selectedDatamodelId);
|
|
5520
5515
|
const s = m((i) => i.selectedDatabaseName);
|
|
5521
5516
|
m((i) => i.selectedSchemaName);
|
|
5522
|
-
const t = m((i) => i.selectedTableName), a =
|
|
5523
|
-
|
|
5517
|
+
const t = m((i) => i.selectedTableName), a = O((i) => i.dashboard.filters) || [];
|
|
5518
|
+
O((i) => i.actions.addFilter), O((i) => i.actions.removeFilter), O(
|
|
5524
5519
|
(i) => i.actions.removeFilterValue
|
|
5525
5520
|
);
|
|
5526
5521
|
const { modelItems: n, columns: l } = qe(), { assignFilter: o } = Xa();
|
|
@@ -5547,16 +5542,16 @@ function ar() {
|
|
|
5547
5542
|
);
|
|
5548
5543
|
}) });
|
|
5549
5544
|
}
|
|
5550
|
-
function
|
|
5551
|
-
|
|
5552
|
-
const s =
|
|
5545
|
+
function nr() {
|
|
5546
|
+
O((t) => t.showFilters);
|
|
5547
|
+
const s = O(
|
|
5553
5548
|
(t) => t.actions.setShowFilters
|
|
5554
5549
|
);
|
|
5555
5550
|
return /* @__PURE__ */ e.jsxs("section", { className: "relative flex grow flex-col border-l px-4", children: [
|
|
5556
5551
|
/* @__PURE__ */ e.jsxs("div", { className: "mt-4 flex items-center justify-between gap-2 px-3", children: [
|
|
5557
5552
|
/* @__PURE__ */ e.jsx(R, { className: "text-lg", children: "Filters" }),
|
|
5558
5553
|
/* @__PURE__ */ e.jsx(
|
|
5559
|
-
|
|
5554
|
+
z,
|
|
5560
5555
|
{
|
|
5561
5556
|
onClick: () => s(!1),
|
|
5562
5557
|
className: "h-7 w-7 p-0",
|
|
@@ -5571,7 +5566,7 @@ function tr() {
|
|
|
5571
5566
|
ColumnsComponent: () => (
|
|
5572
5567
|
// schemaName, tableName, columns
|
|
5573
5568
|
/* @__PURE__ */ e.jsx(
|
|
5574
|
-
|
|
5569
|
+
tr,
|
|
5575
5570
|
{}
|
|
5576
5571
|
)
|
|
5577
5572
|
)
|
|
@@ -5579,8 +5574,8 @@ function tr() {
|
|
|
5579
5574
|
) })
|
|
5580
5575
|
] });
|
|
5581
5576
|
}
|
|
5582
|
-
function
|
|
5583
|
-
const s =
|
|
5577
|
+
function lr() {
|
|
5578
|
+
const s = O((a) => a.showFilters), t = O((a) => a.isVisualEditing);
|
|
5584
5579
|
return /* @__PURE__ */ e.jsxs(
|
|
5585
5580
|
"div",
|
|
5586
5581
|
{
|
|
@@ -5590,17 +5585,17 @@ function nr() {
|
|
|
5590
5585
|
"flex grow": !t
|
|
5591
5586
|
}),
|
|
5592
5587
|
children: [
|
|
5593
|
-
/* @__PURE__ */ e.jsx(
|
|
5594
|
-
s && /* @__PURE__ */ e.jsx("div", { role: "filter-aside-container", className: "flex", children: /* @__PURE__ */ e.jsx(
|
|
5588
|
+
/* @__PURE__ */ e.jsx(gn, {}),
|
|
5589
|
+
s && /* @__PURE__ */ e.jsx("div", { role: "filter-aside-container", className: "flex", children: /* @__PURE__ */ e.jsx(nr, {}) })
|
|
5595
5590
|
]
|
|
5596
5591
|
}
|
|
5597
5592
|
);
|
|
5598
5593
|
}
|
|
5599
|
-
function
|
|
5600
|
-
const s =
|
|
5594
|
+
function rr() {
|
|
5595
|
+
const s = O((n) => n.dashboard), t = O((n) => n.actions.setDashboard), a = O(
|
|
5601
5596
|
(n) => n.showDashboardJSON
|
|
5602
5597
|
);
|
|
5603
|
-
return
|
|
5598
|
+
return O(
|
|
5604
5599
|
(n) => n.actions.setShowDashboardJSON
|
|
5605
5600
|
), /* @__PURE__ */ e.jsx(
|
|
5606
5601
|
"div",
|
|
@@ -5609,7 +5604,7 @@ function lr() {
|
|
|
5609
5604
|
hidden: !a
|
|
5610
5605
|
}),
|
|
5611
5606
|
children: /* @__PURE__ */ e.jsx(
|
|
5612
|
-
|
|
5607
|
+
jn,
|
|
5613
5608
|
{
|
|
5614
5609
|
onChange: (n) => {
|
|
5615
5610
|
if (n)
|
|
@@ -5640,65 +5635,64 @@ function lr() {
|
|
|
5640
5635
|
}
|
|
5641
5636
|
);
|
|
5642
5637
|
}
|
|
5643
|
-
function
|
|
5638
|
+
function dr({
|
|
5644
5639
|
showControls: s = !1,
|
|
5645
5640
|
showFooter: t = !0,
|
|
5646
5641
|
...a
|
|
5647
5642
|
}) {
|
|
5648
|
-
return /* @__PURE__ */ e.jsx(us, { FallbackComponent: ka, children: /* @__PURE__ */ e.jsxs(
|
|
5649
|
-
/* @__PURE__ */ e.jsx(
|
|
5650
|
-
/* @__PURE__ */ e.jsxs(
|
|
5651
|
-
/* @__PURE__ */ e.jsx(
|
|
5652
|
-
/* @__PURE__ */ e.jsxs(
|
|
5653
|
-
s && /* @__PURE__ */ e.jsx(
|
|
5654
|
-
/* @__PURE__ */ e.jsx(
|
|
5655
|
-
/* @__PURE__ */ e.jsx(
|
|
5643
|
+
return /* @__PURE__ */ e.jsx(us, { FallbackComponent: ka, children: /* @__PURE__ */ e.jsxs(bn, { dashboardProps: a, children: [
|
|
5644
|
+
/* @__PURE__ */ e.jsx(yn, {}),
|
|
5645
|
+
/* @__PURE__ */ e.jsxs(vn, { children: [
|
|
5646
|
+
/* @__PURE__ */ e.jsx(rr, {}),
|
|
5647
|
+
/* @__PURE__ */ e.jsxs(Cn, { ...a, children: [
|
|
5648
|
+
s && /* @__PURE__ */ e.jsx(tl, {}),
|
|
5649
|
+
/* @__PURE__ */ e.jsx(ar, {}),
|
|
5650
|
+
/* @__PURE__ */ e.jsx(lr, {})
|
|
5656
5651
|
] })
|
|
5657
5652
|
] })
|
|
5658
5653
|
] }) });
|
|
5659
5654
|
}
|
|
5660
5655
|
export {
|
|
5661
|
-
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5656
|
+
La as A,
|
|
5657
|
+
Sn as B,
|
|
5658
|
+
wn as C,
|
|
5659
|
+
dr as D,
|
|
5665
5660
|
Ia as E,
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
An as L,
|
|
5661
|
+
Yn as F,
|
|
5662
|
+
Dn as G,
|
|
5663
|
+
Mn as H,
|
|
5664
|
+
An as I,
|
|
5665
|
+
Vn as L,
|
|
5672
5666
|
Ta as M,
|
|
5673
|
-
|
|
5667
|
+
Hn as N,
|
|
5674
5668
|
Da as P,
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5669
|
+
Bn as S,
|
|
5670
|
+
Jn as T,
|
|
5671
|
+
Wn as U,
|
|
5678
5672
|
Ps as a,
|
|
5679
5673
|
Bs as b,
|
|
5680
5674
|
Oa as c,
|
|
5681
5675
|
za as d,
|
|
5682
5676
|
Fa as e,
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5677
|
+
kn as f,
|
|
5678
|
+
On as g,
|
|
5679
|
+
zn as h,
|
|
5680
|
+
Fn as i,
|
|
5681
|
+
Tn as j,
|
|
5682
|
+
In as k,
|
|
5683
|
+
Ln as l,
|
|
5684
|
+
En as m,
|
|
5685
|
+
qn as n,
|
|
5686
|
+
Rn as o,
|
|
5687
|
+
_n as p,
|
|
5688
|
+
$n as q,
|
|
5689
|
+
Pn as r,
|
|
5690
|
+
Ma as s,
|
|
5691
|
+
Un as t,
|
|
5692
|
+
Gn as u,
|
|
5693
|
+
Qn as v,
|
|
5694
|
+
Kn as w,
|
|
5695
|
+
Us as x,
|
|
5696
|
+
qe as y,
|
|
5697
|
+
$e as z
|
|
5704
5698
|
};
|