react-semaphor 0.0.401 → 0.0.402
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-BsAoJTv_.js → index-9tCwI6nB.js} +80 -85
- package/dist/chunks/{index-BQjgev3I.js → index-BoFxult0.js} +9621 -9594
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +58 -53
- package/dist/index.js +230 -221
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { D as vr,
|
|
1
|
+
import { c as T, p as Tt, u as I, a as Ke, b as Ae, d as oa, e as ca, B as $, P as nt, f as da, g as ha, h as ua, i as ma, L as H, I as de, j as pa, k as fa, l as ga, m as U, n as ya, o as ba, q as xa, r as zs, s as Kt, t as Z, C as pt, v as Is, S as xe, w as ve, x as Ne, y as Ce, z as Ie, A as Se, E as le, T as va, F as Re, G as je, H as ft, J as ze, K as At, M as gt, N as Lt, O as yt, Q as we, R as Os, U as bt, V as Na, W as De, X as Qt, Y as Ve, Z as m, _ as Ca, $ as et, a0 as ct, a1 as Ts, a2 as Sa, a3 as wa, a4 as ka, a5 as Ma, a6 as Da, a7 as za, a8 as As, a9 as Ia, aa as Oa, ab as Ta, ac as Aa, ad as La, ae as be, af as Ls, ag as Fs, ah as Fa, ai as Es, aj as Vs, ak as qs, al as Ea, am as Te, an as Rs, ao as Ue, ap as dt, aq as kt, ar as js, as as _s, at as Hs, au as _e, av as ne, aw as Va, ax as Ps, ay as xt, az as $s, aA as Bs, aB as Us, aC as Wt, aD as Gs, aE as Js, aF as Ks, aG as Qs, aH as Mt, aI as Ws, aJ as Ge, aK as tt, aL as ge, aM as at, aN as Zs, aO as Ys, aP as Xs, aQ as en, aR as St, aS as tn, aT as Zt, aU as an, aV as Yt, aW as sn, aX as nn, aY as ln, aZ as rn, a_ as qa, a$ as on, b0 as Ft, b1 as Ra, b2 as cn, b3 as dn, b4 as ot, b5 as hn, b6 as un, b7 as ja, b8 as mn, b9 as pn, ba as fn, bb as gn, bc as yn, bd as vt, be as _a, bf as bn, bg as Ha, bh as Pa, bi as Dt, bj as zt, bk as xn, bl as vn, bm as Nn, bn as Et, bo as $a, bp as Vt, bq as st, br as Cn, bs as ht, bt as Ba, bu as Sn, bv as Ua, bw as wn, bx as kn, by as Mn, bz as Dn, bA as zn, bB as qt, bC as In, bD as On, bE as Tn, bF as An, bG as Xt, bH as ea, bI as Ga, bJ as Ln, bK as Fn, bL as He, bM as ee, bN as te, bO as ae, bP as En, bQ as Vn, bR as qn, bS as Rn, bT as jn, bU as _n, bV as Hn, bW as Pn, bX as $n, bY as wt, bZ as Ja, b_ as Bn, b$ as Un, c0 as Gn, c1 as Jn, c2 as Kn, c3 as Qn } from "./chunks/index-BoFxult0.js";
|
|
2
|
+
import { D as vr, c8 as Nr, c6 as Cr, c6 as Sr, cb as wr, ca as kr, c9 as Mr, cc as Dr, c7 as zr, c4 as Ir, c5 as Or } from "./chunks/index-BoFxult0.js";
|
|
3
3
|
import { jsxs as n, jsx as e, Fragment as se } from "react/jsx-runtime";
|
|
4
4
|
import * as Be from "react";
|
|
5
|
-
import Oe, { useState as j, useMemo as It, useEffect as oe, useRef as Je, useCallback as
|
|
5
|
+
import Oe, { useState as j, useMemo as It, useEffect as oe, useRef as Je, useCallback as Ka, Suspense as Wn } from "react";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
/**
|
|
8
8
|
* @license lucide-react v0.453.0 - ISC
|
|
@@ -10,7 +10,7 @@ import "react-dom";
|
|
|
10
10
|
* This source code is licensed under the ISC license.
|
|
11
11
|
* See the LICENSE file in the root directory of this source tree.
|
|
12
12
|
*/
|
|
13
|
-
const Zn =
|
|
13
|
+
const Zn = T("AlignCenter", [
|
|
14
14
|
["path", { d: "M17 12H7", key: "16if0g" }],
|
|
15
15
|
["path", { d: "M19 18H5", key: "18s9l3" }],
|
|
16
16
|
["path", { d: "M21 6H3", key: "1jwq7v" }]
|
|
@@ -21,7 +21,7 @@ const Zn = L("AlignCenter", [
|
|
|
21
21
|
* This source code is licensed under the ISC license.
|
|
22
22
|
* See the LICENSE file in the root directory of this source tree.
|
|
23
23
|
*/
|
|
24
|
-
const Yn =
|
|
24
|
+
const Yn = T("AlignLeft", [
|
|
25
25
|
["path", { d: "M15 12H3", key: "6jk70r" }],
|
|
26
26
|
["path", { d: "M17 18H3", key: "1amg6g" }],
|
|
27
27
|
["path", { d: "M21 6H3", key: "1jwq7v" }]
|
|
@@ -32,7 +32,7 @@ const Yn = L("AlignLeft", [
|
|
|
32
32
|
* This source code is licensed under the ISC license.
|
|
33
33
|
* See the LICENSE file in the root directory of this source tree.
|
|
34
34
|
*/
|
|
35
|
-
const Xn =
|
|
35
|
+
const Xn = T("AlignRight", [
|
|
36
36
|
["path", { d: "M21 12H9", key: "dn1m92" }],
|
|
37
37
|
["path", { d: "M21 18H7", key: "1ygte8" }],
|
|
38
38
|
["path", { d: "M21 6H3", key: "1jwq7v" }]
|
|
@@ -43,7 +43,7 @@ const Xn = L("AlignRight", [
|
|
|
43
43
|
* This source code is licensed under the ISC license.
|
|
44
44
|
* See the LICENSE file in the root directory of this source tree.
|
|
45
45
|
*/
|
|
46
|
-
const el =
|
|
46
|
+
const el = T("ArrowDown", [
|
|
47
47
|
["path", { d: "M12 5v14", key: "s699le" }],
|
|
48
48
|
["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
|
|
49
49
|
]);
|
|
@@ -53,7 +53,7 @@ const el = L("ArrowDown", [
|
|
|
53
53
|
* This source code is licensed under the ISC license.
|
|
54
54
|
* See the LICENSE file in the root directory of this source tree.
|
|
55
55
|
*/
|
|
56
|
-
const tl =
|
|
56
|
+
const tl = T("ArrowLeft", [
|
|
57
57
|
["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
|
|
58
58
|
["path", { d: "M19 12H5", key: "x3x0zl" }]
|
|
59
59
|
]);
|
|
@@ -63,7 +63,7 @@ const tl = L("ArrowLeft", [
|
|
|
63
63
|
* This source code is licensed under the ISC license.
|
|
64
64
|
* See the LICENSE file in the root directory of this source tree.
|
|
65
65
|
*/
|
|
66
|
-
const al =
|
|
66
|
+
const al = T("ArrowRight", [
|
|
67
67
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
68
68
|
["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
|
|
69
69
|
]);
|
|
@@ -73,7 +73,7 @@ const al = L("ArrowRight", [
|
|
|
73
73
|
* This source code is licensed under the ISC license.
|
|
74
74
|
* See the LICENSE file in the root directory of this source tree.
|
|
75
75
|
*/
|
|
76
|
-
const sl =
|
|
76
|
+
const sl = T("BookOpenText", [
|
|
77
77
|
["path", { d: "M12 7v14", key: "1akyts" }],
|
|
78
78
|
["path", { d: "M16 12h2", key: "7q9ll5" }],
|
|
79
79
|
["path", { d: "M16 8h2", key: "msurwy" }],
|
|
@@ -93,7 +93,7 @@ const sl = L("BookOpenText", [
|
|
|
93
93
|
* This source code is licensed under the ISC license.
|
|
94
94
|
* See the LICENSE file in the root directory of this source tree.
|
|
95
95
|
*/
|
|
96
|
-
const nl =
|
|
96
|
+
const nl = T("BookType", [
|
|
97
97
|
["path", { d: "M10 13h4", key: "ytezjc" }],
|
|
98
98
|
["path", { d: "M12 6v7", key: "1f6ttz" }],
|
|
99
99
|
["path", { d: "M16 8V6H8v2", key: "x8j6u4" }],
|
|
@@ -111,7 +111,7 @@ const nl = L("BookType", [
|
|
|
111
111
|
* This source code is licensed under the ISC license.
|
|
112
112
|
* See the LICENSE file in the root directory of this source tree.
|
|
113
113
|
*/
|
|
114
|
-
const ll =
|
|
114
|
+
const ll = T("Box", [
|
|
115
115
|
[
|
|
116
116
|
"path",
|
|
117
117
|
{
|
|
@@ -128,7 +128,7 @@ const ll = L("Box", [
|
|
|
128
128
|
* This source code is licensed under the ISC license.
|
|
129
129
|
* See the LICENSE file in the root directory of this source tree.
|
|
130
130
|
*/
|
|
131
|
-
const il =
|
|
131
|
+
const il = T("Braces", [
|
|
132
132
|
[
|
|
133
133
|
"path",
|
|
134
134
|
{ d: "M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1", key: "ezmyqa" }
|
|
@@ -147,7 +147,7 @@ const il = L("Braces", [
|
|
|
147
147
|
* This source code is licensed under the ISC license.
|
|
148
148
|
* See the LICENSE file in the root directory of this source tree.
|
|
149
149
|
*/
|
|
150
|
-
const rl =
|
|
150
|
+
const rl = T("ChartArea", [
|
|
151
151
|
["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
|
|
152
152
|
[
|
|
153
153
|
"path",
|
|
@@ -163,7 +163,7 @@ const rl = L("ChartArea", [
|
|
|
163
163
|
* This source code is licensed under the ISC license.
|
|
164
164
|
* See the LICENSE file in the root directory of this source tree.
|
|
165
165
|
*/
|
|
166
|
-
const Rt =
|
|
166
|
+
const Rt = T("ChartColumnIncreasing", [
|
|
167
167
|
["path", { d: "M13 17V9", key: "1fwyjl" }],
|
|
168
168
|
["path", { d: "M18 17V5", key: "sfb6ij" }],
|
|
169
169
|
["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
|
|
@@ -175,7 +175,7 @@ const Rt = L("ChartColumnIncreasing", [
|
|
|
175
175
|
* This source code is licensed under the ISC license.
|
|
176
176
|
* See the LICENSE file in the root directory of this source tree.
|
|
177
177
|
*/
|
|
178
|
-
const
|
|
178
|
+
const Qa = T("ChartColumnStacked", [
|
|
179
179
|
["path", { d: "M11 13H7", key: "t0o9gq" }],
|
|
180
180
|
["path", { d: "M19 9h-4", key: "rera1j" }],
|
|
181
181
|
["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
|
|
@@ -188,7 +188,7 @@ const Wa = L("ChartColumnStacked", [
|
|
|
188
188
|
* This source code is licensed under the ISC license.
|
|
189
189
|
* See the LICENSE file in the root directory of this source tree.
|
|
190
190
|
*/
|
|
191
|
-
const jt =
|
|
191
|
+
const jt = T("ChartLine", [
|
|
192
192
|
["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
|
|
193
193
|
["path", { d: "m19 9-5 5-4-4-3 3", key: "2osh9i" }]
|
|
194
194
|
]);
|
|
@@ -198,7 +198,7 @@ const jt = L("ChartLine", [
|
|
|
198
198
|
* This source code is licensed under the ISC license.
|
|
199
199
|
* See the LICENSE file in the root directory of this source tree.
|
|
200
200
|
*/
|
|
201
|
-
const
|
|
201
|
+
const Wa = T("ChartNoAxesGantt", [
|
|
202
202
|
["path", { d: "M8 6h10", key: "9lnwnk" }],
|
|
203
203
|
["path", { d: "M6 12h9", key: "1g9pqf" }],
|
|
204
204
|
["path", { d: "M11 18h7", key: "c8dzvl" }]
|
|
@@ -209,7 +209,7 @@ const Za = L("ChartNoAxesGantt", [
|
|
|
209
209
|
* This source code is licensed under the ISC license.
|
|
210
210
|
* See the LICENSE file in the root directory of this source tree.
|
|
211
211
|
*/
|
|
212
|
-
const
|
|
212
|
+
const Za = T("ChartPie", [
|
|
213
213
|
[
|
|
214
214
|
"path",
|
|
215
215
|
{
|
|
@@ -225,7 +225,7 @@ const Ya = L("ChartPie", [
|
|
|
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 Ya = T("ChartScatter", [
|
|
229
229
|
["circle", { cx: "7.5", cy: "7.5", r: ".5", fill: "currentColor", key: "kqv944" }],
|
|
230
230
|
["circle", { cx: "18.5", cy: "5.5", r: ".5", fill: "currentColor", key: "lysivs" }],
|
|
231
231
|
["circle", { cx: "11.5", cy: "11.5", r: ".5", fill: "currentColor", key: "byv1b8" }],
|
|
@@ -239,7 +239,7 @@ const Xa = L("ChartScatter", [
|
|
|
239
239
|
* This source code is licensed under the ISC license.
|
|
240
240
|
* See the LICENSE file in the root directory of this source tree.
|
|
241
241
|
*/
|
|
242
|
-
const ol =
|
|
242
|
+
const ol = T("CircleArrowRight", [
|
|
243
243
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
244
244
|
["path", { d: "M8 12h8", key: "1wcyev" }],
|
|
245
245
|
["path", { d: "m12 16 4-4-4-4", key: "1i9zcv" }]
|
|
@@ -250,7 +250,7 @@ const ol = L("CircleArrowRight", [
|
|
|
250
250
|
* This source code is licensed under the ISC license.
|
|
251
251
|
* See the LICENSE file in the root directory of this source tree.
|
|
252
252
|
*/
|
|
253
|
-
const
|
|
253
|
+
const Xa = T("CircleX", [
|
|
254
254
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
255
255
|
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
256
256
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
@@ -261,7 +261,7 @@ const es = L("CircleX", [
|
|
|
261
261
|
* This source code is licensed under the ISC license.
|
|
262
262
|
* See the LICENSE file in the root directory of this source tree.
|
|
263
263
|
*/
|
|
264
|
-
const cl =
|
|
264
|
+
const cl = T("Clock", [
|
|
265
265
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
266
266
|
["polyline", { points: "12 6 12 12 16 14", key: "68esgv" }]
|
|
267
267
|
]);
|
|
@@ -271,7 +271,7 @@ const cl = L("Clock", [
|
|
|
271
271
|
* This source code is licensed under the ISC license.
|
|
272
272
|
* See the LICENSE file in the root directory of this source tree.
|
|
273
273
|
*/
|
|
274
|
-
const dl =
|
|
274
|
+
const dl = T("Columns3", [
|
|
275
275
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
276
276
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
277
277
|
["path", { d: "M15 3v18", key: "14nvp0" }]
|
|
@@ -282,7 +282,7 @@ const dl = L("Columns3", [
|
|
|
282
282
|
* This source code is licensed under the ISC license.
|
|
283
283
|
* See the LICENSE file in the root directory of this source tree.
|
|
284
284
|
*/
|
|
285
|
-
const hl =
|
|
285
|
+
const hl = T("CopyPlus", [
|
|
286
286
|
["line", { x1: "15", x2: "15", y1: "12", y2: "18", key: "1p7wdc" }],
|
|
287
287
|
["line", { x1: "12", x2: "18", y1: "15", y2: "15", key: "1nscbv" }],
|
|
288
288
|
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
|
@@ -294,7 +294,7 @@ const hl = L("CopyPlus", [
|
|
|
294
294
|
* This source code is licensed under the ISC license.
|
|
295
295
|
* See the LICENSE file in the root directory of this source tree.
|
|
296
296
|
*/
|
|
297
|
-
const ul =
|
|
297
|
+
const ul = T("Database", [
|
|
298
298
|
["ellipse", { cx: "12", cy: "5", rx: "9", ry: "3", key: "msslwz" }],
|
|
299
299
|
["path", { d: "M3 5V19A9 3 0 0 0 21 19V5", key: "1wlel7" }],
|
|
300
300
|
["path", { d: "M3 12A9 3 0 0 0 21 12", key: "mv7ke4" }]
|
|
@@ -305,7 +305,7 @@ const ul = L("Database", [
|
|
|
305
305
|
* This source code is licensed under the ISC license.
|
|
306
306
|
* See the LICENSE file in the root directory of this source tree.
|
|
307
307
|
*/
|
|
308
|
-
const
|
|
308
|
+
const es = T("Donut", [
|
|
309
309
|
[
|
|
310
310
|
"path",
|
|
311
311
|
{
|
|
@@ -321,7 +321,7 @@ const ts = L("Donut", [
|
|
|
321
321
|
* This source code is licensed under the ISC license.
|
|
322
322
|
* See the LICENSE file in the root directory of this source tree.
|
|
323
323
|
*/
|
|
324
|
-
const
|
|
324
|
+
const ts = T("EllipsisVertical", [
|
|
325
325
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
326
326
|
["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
|
|
327
327
|
["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
|
|
@@ -332,7 +332,7 @@ const as = L("EllipsisVertical", [
|
|
|
332
332
|
* This source code is licensed under the ISC license.
|
|
333
333
|
* See the LICENSE file in the root directory of this source tree.
|
|
334
334
|
*/
|
|
335
|
-
const ml =
|
|
335
|
+
const ml = T("Eraser", [
|
|
336
336
|
[
|
|
337
337
|
"path",
|
|
338
338
|
{
|
|
@@ -349,7 +349,7 @@ const ml = L("Eraser", [
|
|
|
349
349
|
* This source code is licensed under the ISC license.
|
|
350
350
|
* See the LICENSE file in the root directory of this source tree.
|
|
351
351
|
*/
|
|
352
|
-
const pl =
|
|
352
|
+
const pl = T("EyeClosed", [
|
|
353
353
|
["path", { d: "m15 18-.722-3.25", key: "1j64jw" }],
|
|
354
354
|
["path", { d: "M2 8a10.645 10.645 0 0 0 20 0", key: "1e7gxb" }],
|
|
355
355
|
["path", { d: "m20 15-1.726-2.05", key: "1cnuld" }],
|
|
@@ -362,7 +362,7 @@ const pl = L("EyeClosed", [
|
|
|
362
362
|
* This source code is licensed under the ISC license.
|
|
363
363
|
* See the LICENSE file in the root directory of this source tree.
|
|
364
364
|
*/
|
|
365
|
-
const fl =
|
|
365
|
+
const fl = T("FileJson2", [
|
|
366
366
|
["path", { d: "M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4", key: "1pf5j1" }],
|
|
367
367
|
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
|
|
368
368
|
[
|
|
@@ -380,7 +380,16 @@ const fl = L("FileJson2", [
|
|
|
380
380
|
* This source code is licensed under the ISC license.
|
|
381
381
|
* See the LICENSE file in the root directory of this source tree.
|
|
382
382
|
*/
|
|
383
|
-
const
|
|
383
|
+
const as = T("Filter", [
|
|
384
|
+
["polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3", key: "1yg77f" }]
|
|
385
|
+
]);
|
|
386
|
+
/**
|
|
387
|
+
* @license lucide-react v0.453.0 - ISC
|
|
388
|
+
*
|
|
389
|
+
* This source code is licensed under the ISC license.
|
|
390
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
391
|
+
*/
|
|
392
|
+
const gl = T("Glasses", [
|
|
384
393
|
["circle", { cx: "6", cy: "15", r: "4", key: "vux9w4" }],
|
|
385
394
|
["circle", { cx: "18", cy: "15", r: "4", key: "18o8ve" }],
|
|
386
395
|
["path", { d: "M14 15a2 2 0 0 0-2-2 2 2 0 0 0-2 2", key: "1ag4bs" }],
|
|
@@ -393,7 +402,7 @@ const gl = L("Glasses", [
|
|
|
393
402
|
* This source code is licensed under the ISC license.
|
|
394
403
|
* See the LICENSE file in the root directory of this source tree.
|
|
395
404
|
*/
|
|
396
|
-
const yl =
|
|
405
|
+
const yl = T("Grid3x3", [
|
|
397
406
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
398
407
|
["path", { d: "M3 9h18", key: "1pudct" }],
|
|
399
408
|
["path", { d: "M3 15h18", key: "5xshup" }],
|
|
@@ -406,7 +415,7 @@ const yl = L("Grid3x3", [
|
|
|
406
415
|
* This source code is licensed under the ISC license.
|
|
407
416
|
* See the LICENSE file in the root directory of this source tree.
|
|
408
417
|
*/
|
|
409
|
-
const bl =
|
|
418
|
+
const bl = T("Hammer", [
|
|
410
419
|
["path", { d: "m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9", key: "eefl8a" }],
|
|
411
420
|
["path", { d: "m18 15 4-4", key: "16gjal" }],
|
|
412
421
|
[
|
|
@@ -423,7 +432,7 @@ const bl = L("Hammer", [
|
|
|
423
432
|
* This source code is licensed under the ISC license.
|
|
424
433
|
* See the LICENSE file in the root directory of this source tree.
|
|
425
434
|
*/
|
|
426
|
-
const xl =
|
|
435
|
+
const xl = T("Hash", [
|
|
427
436
|
["line", { x1: "4", x2: "20", y1: "9", y2: "9", key: "4lhtct" }],
|
|
428
437
|
["line", { x1: "4", x2: "20", y1: "15", y2: "15", key: "vyu0kd" }],
|
|
429
438
|
["line", { x1: "10", x2: "8", y1: "3", y2: "21", key: "1ggp8o" }],
|
|
@@ -435,7 +444,7 @@ const xl = L("Hash", [
|
|
|
435
444
|
* This source code is licensed under the ISC license.
|
|
436
445
|
* See the LICENSE file in the root directory of this source tree.
|
|
437
446
|
*/
|
|
438
|
-
const vl =
|
|
447
|
+
const vl = T("House", [
|
|
439
448
|
["path", { d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8", key: "5wwlr5" }],
|
|
440
449
|
[
|
|
441
450
|
"path",
|
|
@@ -451,7 +460,7 @@ const vl = L("House", [
|
|
|
451
460
|
* This source code is licensed under the ISC license.
|
|
452
461
|
* See the LICENSE file in the root directory of this source tree.
|
|
453
462
|
*/
|
|
454
|
-
const Nl =
|
|
463
|
+
const Nl = T("LayoutList", [
|
|
455
464
|
["rect", { width: "7", height: "7", x: "3", y: "3", rx: "1", key: "1g98yp" }],
|
|
456
465
|
["rect", { width: "7", height: "7", x: "3", y: "14", rx: "1", key: "1bb6yr" }],
|
|
457
466
|
["path", { d: "M14 4h7", key: "3xa0d5" }],
|
|
@@ -465,7 +474,7 @@ const Nl = L("LayoutList", [
|
|
|
465
474
|
* This source code is licensed under the ISC license.
|
|
466
475
|
* See the LICENSE file in the root directory of this source tree.
|
|
467
476
|
*/
|
|
468
|
-
const Cl =
|
|
477
|
+
const Cl = T("ListEnd", [
|
|
469
478
|
["path", { d: "M16 12H3", key: "1a2rj7" }],
|
|
470
479
|
["path", { d: "M16 6H3", key: "1wxfjs" }],
|
|
471
480
|
["path", { d: "M10 18H3", key: "13769t" }],
|
|
@@ -478,7 +487,7 @@ const Cl = L("ListEnd", [
|
|
|
478
487
|
* This source code is licensed under the ISC license.
|
|
479
488
|
* See the LICENSE file in the root directory of this source tree.
|
|
480
489
|
*/
|
|
481
|
-
const Sl =
|
|
490
|
+
const Sl = T("ListStart", [
|
|
482
491
|
["path", { d: "M16 12H3", key: "1a2rj7" }],
|
|
483
492
|
["path", { d: "M16 18H3", key: "12xzn7" }],
|
|
484
493
|
["path", { d: "M10 6H3", key: "lf8lx7" }],
|
|
@@ -491,7 +500,7 @@ const Sl = L("ListStart", [
|
|
|
491
500
|
* This source code is licensed under the ISC license.
|
|
492
501
|
* See the LICENSE file in the root directory of this source tree.
|
|
493
502
|
*/
|
|
494
|
-
const wl =
|
|
503
|
+
const wl = T("ListX", [
|
|
495
504
|
["path", { d: "M11 12H3", key: "51ecnj" }],
|
|
496
505
|
["path", { d: "M16 6H3", key: "1wxfjs" }],
|
|
497
506
|
["path", { d: "M16 18H3", key: "12xzn7" }],
|
|
@@ -504,7 +513,7 @@ const wl = L("ListX", [
|
|
|
504
513
|
* This source code is licensed under the ISC license.
|
|
505
514
|
* See the LICENSE file in the root directory of this source tree.
|
|
506
515
|
*/
|
|
507
|
-
const qe =
|
|
516
|
+
const qe = T("LoaderCircle", [
|
|
508
517
|
["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]
|
|
509
518
|
]);
|
|
510
519
|
/**
|
|
@@ -513,7 +522,7 @@ const qe = L("LoaderCircle", [
|
|
|
513
522
|
* This source code is licensed under the ISC license.
|
|
514
523
|
* See the LICENSE file in the root directory of this source tree.
|
|
515
524
|
*/
|
|
516
|
-
const kl =
|
|
525
|
+
const kl = T("Logs", [
|
|
517
526
|
["path", { d: "M13 12h8", key: "h98zly" }],
|
|
518
527
|
["path", { d: "M13 18h8", key: "oe0vm4" }],
|
|
519
528
|
["path", { d: "M13 6h8", key: "15sg57" }],
|
|
@@ -530,7 +539,7 @@ const kl = L("Logs", [
|
|
|
530
539
|
* This source code is licensed under the ISC license.
|
|
531
540
|
* See the LICENSE file in the root directory of this source tree.
|
|
532
541
|
*/
|
|
533
|
-
const Ml =
|
|
542
|
+
const Ml = T("Mail", [
|
|
534
543
|
["rect", { width: "20", height: "16", x: "2", y: "4", rx: "2", key: "18n3k1" }],
|
|
535
544
|
["path", { d: "m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7", key: "1ocrg3" }]
|
|
536
545
|
]);
|
|
@@ -540,7 +549,7 @@ const Ml = L("Mail", [
|
|
|
540
549
|
* This source code is licensed under the ISC license.
|
|
541
550
|
* See the LICENSE file in the root directory of this source tree.
|
|
542
551
|
*/
|
|
543
|
-
const ss =
|
|
552
|
+
const ss = T("Map", [
|
|
544
553
|
[
|
|
545
554
|
"path",
|
|
546
555
|
{
|
|
@@ -557,7 +566,7 @@ const ss = L("Map", [
|
|
|
557
566
|
* This source code is licensed under the ISC license.
|
|
558
567
|
* See the LICENSE file in the root directory of this source tree.
|
|
559
568
|
*/
|
|
560
|
-
const Dl =
|
|
569
|
+
const Dl = T("MessageSquareMore", [
|
|
561
570
|
["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" }],
|
|
562
571
|
["path", { d: "M8 10h.01", key: "19clt8" }],
|
|
563
572
|
["path", { d: "M12 10h.01", key: "1nrarc" }],
|
|
@@ -569,7 +578,7 @@ const Dl = L("MessageSquareMore", [
|
|
|
569
578
|
* This source code is licensed under the ISC license.
|
|
570
579
|
* See the LICENSE file in the root directory of this source tree.
|
|
571
580
|
*/
|
|
572
|
-
const zl =
|
|
581
|
+
const zl = T("MoveHorizontal", [
|
|
573
582
|
["path", { d: "m18 8 4 4-4 4", key: "1ak13k" }],
|
|
574
583
|
["path", { d: "M2 12h20", key: "9i4pu4" }],
|
|
575
584
|
["path", { d: "m6 8-4 4 4 4", key: "15zrgr" }]
|
|
@@ -580,7 +589,7 @@ const zl = L("MoveHorizontal", [
|
|
|
580
589
|
* This source code is licensed under the ISC license.
|
|
581
590
|
* See the LICENSE file in the root directory of this source tree.
|
|
582
591
|
*/
|
|
583
|
-
const Il =
|
|
592
|
+
const Il = T("MoveVertical", [
|
|
584
593
|
["path", { d: "M12 2v20", key: "t6zp3m" }],
|
|
585
594
|
["path", { d: "m8 18 4 4 4-4", key: "bh5tu3" }],
|
|
586
595
|
["path", { d: "m8 6 4-4 4 4", key: "ybng9g" }]
|
|
@@ -591,7 +600,7 @@ const Il = L("MoveVertical", [
|
|
|
591
600
|
* This source code is licensed under the ISC license.
|
|
592
601
|
* See the LICENSE file in the root directory of this source tree.
|
|
593
602
|
*/
|
|
594
|
-
const Ol =
|
|
603
|
+
const Ol = T("Network", [
|
|
595
604
|
["rect", { x: "16", y: "16", width: "6", height: "6", rx: "1", key: "4q2zg0" }],
|
|
596
605
|
["rect", { x: "2", y: "16", width: "6", height: "6", rx: "1", key: "8cvhb9" }],
|
|
597
606
|
["rect", { x: "9", y: "2", width: "6", height: "6", rx: "1", key: "1egb70" }],
|
|
@@ -604,7 +613,7 @@ const Ol = L("Network", [
|
|
|
604
613
|
* This source code is licensed under the ISC license.
|
|
605
614
|
* See the LICENSE file in the root directory of this source tree.
|
|
606
615
|
*/
|
|
607
|
-
const Tl =
|
|
616
|
+
const Tl = T("Plug2", [
|
|
608
617
|
["path", { d: "M9 2v6", key: "17ngun" }],
|
|
609
618
|
["path", { d: "M15 2v6", key: "s7yy2p" }],
|
|
610
619
|
["path", { d: "M12 17v5", key: "bb1du9" }],
|
|
@@ -617,7 +626,7 @@ const Tl = L("Plug2", [
|
|
|
617
626
|
* This source code is licensed under the ISC license.
|
|
618
627
|
* See the LICENSE file in the root directory of this source tree.
|
|
619
628
|
*/
|
|
620
|
-
const ns =
|
|
629
|
+
const ns = T("Radar", [
|
|
621
630
|
["path", { d: "M19.07 4.93A10 10 0 0 0 6.99 3.34", key: "z3du51" }],
|
|
622
631
|
["path", { d: "M4 6h.01", key: "oypzma" }],
|
|
623
632
|
["path", { d: "M2.29 9.62A10 10 0 1 0 21.31 8.35", key: "qzzz0" }],
|
|
@@ -633,7 +642,7 @@ const ns = L("Radar", [
|
|
|
633
642
|
* This source code is licensed under the ISC license.
|
|
634
643
|
* See the LICENSE file in the root directory of this source tree.
|
|
635
644
|
*/
|
|
636
|
-
const ls =
|
|
645
|
+
const ls = T("RefreshCw", [
|
|
637
646
|
["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
|
|
638
647
|
["path", { d: "M21 3v5h-5", key: "1q7to0" }],
|
|
639
648
|
["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
|
|
@@ -645,7 +654,7 @@ const ls = L("RefreshCw", [
|
|
|
645
654
|
* This source code is licensed under the ISC license.
|
|
646
655
|
* See the LICENSE file in the root directory of this source tree.
|
|
647
656
|
*/
|
|
648
|
-
const Al =
|
|
657
|
+
const Al = T("Rows3", [
|
|
649
658
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
650
659
|
["path", { d: "M21 9H3", key: "1338ky" }],
|
|
651
660
|
["path", { d: "M21 15H3", key: "9uk58r" }]
|
|
@@ -656,7 +665,7 @@ const Al = L("Rows3", [
|
|
|
656
665
|
* This source code is licensed under the ISC license.
|
|
657
666
|
* See the LICENSE file in the root directory of this source tree.
|
|
658
667
|
*/
|
|
659
|
-
const Ll =
|
|
668
|
+
const Ll = T("Ruler", [
|
|
660
669
|
[
|
|
661
670
|
"path",
|
|
662
671
|
{
|
|
@@ -675,7 +684,7 @@ const Ll = L("Ruler", [
|
|
|
675
684
|
* This source code is licensed under the ISC license.
|
|
676
685
|
* See the LICENSE file in the root directory of this source tree.
|
|
677
686
|
*/
|
|
678
|
-
const Fl =
|
|
687
|
+
const Fl = T("Save", [
|
|
679
688
|
[
|
|
680
689
|
"path",
|
|
681
690
|
{
|
|
@@ -692,7 +701,7 @@ const Fl = L("Save", [
|
|
|
692
701
|
* This source code is licensed under the ISC license.
|
|
693
702
|
* See the LICENSE file in the root directory of this source tree.
|
|
694
703
|
*/
|
|
695
|
-
const is =
|
|
704
|
+
const is = T("Shapes", [
|
|
696
705
|
[
|
|
697
706
|
"path",
|
|
698
707
|
{
|
|
@@ -709,7 +718,7 @@ const is = L("Shapes", [
|
|
|
709
718
|
* This source code is licensed under the ISC license.
|
|
710
719
|
* See the LICENSE file in the root directory of this source tree.
|
|
711
720
|
*/
|
|
712
|
-
const El =
|
|
721
|
+
const El = T("ShieldQuestion", [
|
|
713
722
|
[
|
|
714
723
|
"path",
|
|
715
724
|
{
|
|
@@ -726,7 +735,7 @@ const El = L("ShieldQuestion", [
|
|
|
726
735
|
* This source code is licensed under the ISC license.
|
|
727
736
|
* See the LICENSE file in the root directory of this source tree.
|
|
728
737
|
*/
|
|
729
|
-
const Vl =
|
|
738
|
+
const Vl = T("Sigma", [
|
|
730
739
|
[
|
|
731
740
|
"path",
|
|
732
741
|
{
|
|
@@ -741,7 +750,7 @@ const Vl = L("Sigma", [
|
|
|
741
750
|
* This source code is licensed under the ISC license.
|
|
742
751
|
* See the LICENSE file in the root directory of this source tree.
|
|
743
752
|
*/
|
|
744
|
-
const ql =
|
|
753
|
+
const ql = T("Square", [
|
|
745
754
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }]
|
|
746
755
|
]);
|
|
747
756
|
/**
|
|
@@ -750,7 +759,7 @@ const ql = L("Square", [
|
|
|
750
759
|
* This source code is licensed under the ISC license.
|
|
751
760
|
* See the LICENSE file in the root directory of this source tree.
|
|
752
761
|
*/
|
|
753
|
-
const _t =
|
|
762
|
+
const _t = T("Table2", [
|
|
754
763
|
[
|
|
755
764
|
"path",
|
|
756
765
|
{
|
|
@@ -765,7 +774,7 @@ const _t = L("Table2", [
|
|
|
765
774
|
* This source code is licensed under the ISC license.
|
|
766
775
|
* See the LICENSE file in the root directory of this source tree.
|
|
767
776
|
*/
|
|
768
|
-
const Rl =
|
|
777
|
+
const Rl = T("Tag", [
|
|
769
778
|
[
|
|
770
779
|
"path",
|
|
771
780
|
{
|
|
@@ -781,7 +790,7 @@ const Rl = L("Tag", [
|
|
|
781
790
|
* This source code is licensed under the ISC license.
|
|
782
791
|
* See the LICENSE file in the root directory of this source tree.
|
|
783
792
|
*/
|
|
784
|
-
const jl =
|
|
793
|
+
const jl = T("ToggleLeft", [
|
|
785
794
|
["rect", { width: "20", height: "12", x: "2", y: "6", rx: "6", ry: "6", key: "f2vt7d" }],
|
|
786
795
|
["circle", { cx: "8", cy: "12", r: "2", key: "1nvbw3" }]
|
|
787
796
|
]);
|
|
@@ -791,7 +800,7 @@ const jl = L("ToggleLeft", [
|
|
|
791
800
|
* This source code is licensed under the ISC license.
|
|
792
801
|
* See the LICENSE file in the root directory of this source tree.
|
|
793
802
|
*/
|
|
794
|
-
const rs =
|
|
803
|
+
const rs = T("Tornado", [
|
|
795
804
|
["path", { d: "M21 4H3", key: "1hwok0" }],
|
|
796
805
|
["path", { d: "M18 8H6", key: "41n648" }],
|
|
797
806
|
["path", { d: "M19 12H9", key: "1g4lpz" }],
|
|
@@ -804,7 +813,7 @@ const rs = L("Tornado", [
|
|
|
804
813
|
* This source code is licensed under the ISC license.
|
|
805
814
|
* See the LICENSE file in the root directory of this source tree.
|
|
806
815
|
*/
|
|
807
|
-
const _l =
|
|
816
|
+
const _l = T("Trash2", [
|
|
808
817
|
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
809
818
|
["path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6", key: "4alrt4" }],
|
|
810
819
|
["path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2", key: "v07s0e" }],
|
|
@@ -817,7 +826,7 @@ const _l = L("Trash2", [
|
|
|
817
826
|
* This source code is licensed under the ISC license.
|
|
818
827
|
* See the LICENSE file in the root directory of this source tree.
|
|
819
828
|
*/
|
|
820
|
-
const os =
|
|
829
|
+
const os = T("Type", [
|
|
821
830
|
["polyline", { points: "4 7 4 4 20 4 20 7", key: "1nosan" }],
|
|
822
831
|
["line", { x1: "9", x2: "15", y1: "20", y2: "20", key: "swin9y" }],
|
|
823
832
|
["line", { x1: "12", x2: "12", y1: "4", y2: "20", key: "1tx1rr" }]
|
|
@@ -1240,7 +1249,7 @@ function Ql({
|
|
|
1240
1249
|
i === "loading" && /* @__PURE__ */ e(qe, { className: "mr-2 size-4 animate-spin" }),
|
|
1241
1250
|
i === "success" && /* @__PURE__ */ e(At, { className: "mr-2 size-4" }),
|
|
1242
1251
|
i === "error" && /* @__PURE__ */ n(gt, { children: [
|
|
1243
|
-
/* @__PURE__ */ e(Lt, { children: /* @__PURE__ */ e(
|
|
1252
|
+
/* @__PURE__ */ e(Lt, { children: /* @__PURE__ */ e(Xa, { className: "mr-2 size-4 text-destructive" }) }),
|
|
1244
1253
|
/* @__PURE__ */ e(yt, { children: /* @__PURE__ */ e("p", { children: o }) })
|
|
1245
1254
|
] }),
|
|
1246
1255
|
"Schedule"
|
|
@@ -1328,10 +1337,10 @@ function Wl() {
|
|
|
1328
1337
|
dashboardParams: _
|
|
1329
1338
|
};
|
|
1330
1339
|
s("loading");
|
|
1331
|
-
const
|
|
1340
|
+
const A = "https://semaphor.cloud/api/v1/subscriptions/create";
|
|
1332
1341
|
try {
|
|
1333
1342
|
const B = await Qt(
|
|
1334
|
-
|
|
1343
|
+
A,
|
|
1335
1344
|
(P == null ? void 0 : P.accessToken) || "",
|
|
1336
1345
|
{
|
|
1337
1346
|
...p
|
|
@@ -1406,12 +1415,12 @@ function Zl() {
|
|
|
1406
1415
|
type: "bar",
|
|
1407
1416
|
sql: "select COUNT(*) from YOUR_TABLE",
|
|
1408
1417
|
data: []
|
|
1409
|
-
},
|
|
1418
|
+
}, A = {
|
|
1410
1419
|
id: et(),
|
|
1411
1420
|
cards: [p],
|
|
1412
1421
|
activeCardId: p.id
|
|
1413
1422
|
};
|
|
1414
|
-
g(N.id,
|
|
1423
|
+
g(N.id, A), f(A.id);
|
|
1415
1424
|
}, _ = () => {
|
|
1416
1425
|
x(!0);
|
|
1417
1426
|
};
|
|
@@ -1419,9 +1428,9 @@ function Zl() {
|
|
|
1419
1428
|
if (u(!0), !a || !l) return;
|
|
1420
1429
|
const p = cs(
|
|
1421
1430
|
i
|
|
1422
|
-
),
|
|
1431
|
+
), A = JSON.stringify(p), B = {
|
|
1423
1432
|
...l,
|
|
1424
|
-
template:
|
|
1433
|
+
template: A,
|
|
1425
1434
|
filterValues: b
|
|
1426
1435
|
};
|
|
1427
1436
|
await Ot(B, t == null ? void 0 : t.accessToken), ct.success("Lens saved"), v == null || v(p), u(!1);
|
|
@@ -1491,7 +1500,7 @@ function Zl() {
|
|
|
1491
1500
|
variant: "ghost",
|
|
1492
1501
|
onClick: () => c(!0),
|
|
1493
1502
|
size: "sm",
|
|
1494
|
-
children: /* @__PURE__ */ e(
|
|
1503
|
+
children: /* @__PURE__ */ e(as, { className: "h-4 w-4" })
|
|
1495
1504
|
}
|
|
1496
1505
|
),
|
|
1497
1506
|
!h && o && !1,
|
|
@@ -1546,9 +1555,9 @@ function Yl({
|
|
|
1546
1555
|
{
|
|
1547
1556
|
className: "w-full p-0",
|
|
1548
1557
|
style: { minWidth: v },
|
|
1549
|
-
children: /* @__PURE__ */ n(
|
|
1558
|
+
children: /* @__PURE__ */ n(Sa, { children: [
|
|
1550
1559
|
/* @__PURE__ */ n("div", { className: "flex h-9 items-center justify-between border-b pr-1", children: [
|
|
1551
|
-
/* @__PURE__ */ e(
|
|
1560
|
+
/* @__PURE__ */ e(wa, { className: "h-9", placeholder: "Search..." }),
|
|
1552
1561
|
/* @__PURE__ */ e(U, { className: "h-7", onClick: r, children: /* @__PURE__ */ e(
|
|
1553
1562
|
ls,
|
|
1554
1563
|
{
|
|
@@ -1559,14 +1568,14 @@ function Yl({
|
|
|
1559
1568
|
}
|
|
1560
1569
|
) })
|
|
1561
1570
|
] }),
|
|
1562
|
-
/* @__PURE__ */ n(
|
|
1563
|
-
/* @__PURE__ */ n(
|
|
1571
|
+
/* @__PURE__ */ n(ka, { children: [
|
|
1572
|
+
/* @__PURE__ */ n(Ma, { children: [
|
|
1564
1573
|
"No ",
|
|
1565
1574
|
t == null ? void 0 : t.toLowerCase(),
|
|
1566
1575
|
" found."
|
|
1567
1576
|
] }),
|
|
1568
|
-
/* @__PURE__ */ e(
|
|
1569
|
-
|
|
1577
|
+
/* @__PURE__ */ e(Da, { children: g == null ? void 0 : g.map((x) => /* @__PURE__ */ e(
|
|
1578
|
+
za,
|
|
1570
1579
|
{
|
|
1571
1580
|
className: "overflow-x-auto",
|
|
1572
1581
|
value: x.name,
|
|
@@ -1691,11 +1700,11 @@ function Xl({ column: t }) {
|
|
|
1691
1700
|
), r = m((g) => g.sqlGen), { modelItems: d, connectionType: u } = Pe(), b = m((g) => g.actions.setSqlGen), h = m((g) => g.actions.setCardSql), y = m((g) => g.actions.setRunSql);
|
|
1692
1701
|
function v(g, f) {
|
|
1693
1702
|
var N;
|
|
1694
|
-
const C =
|
|
1703
|
+
const C = Aa(g, r, f), x = (N = d == null ? void 0 : d.find(
|
|
1695
1704
|
(O) => O.id === o
|
|
1696
1705
|
)) == null ? void 0 : N.name;
|
|
1697
1706
|
b(C);
|
|
1698
|
-
const D =
|
|
1707
|
+
const D = La(
|
|
1699
1708
|
C,
|
|
1700
1709
|
be(i || ""),
|
|
1701
1710
|
be(l),
|
|
@@ -1748,10 +1757,10 @@ function Xl({ column: t }) {
|
|
|
1748
1757
|
)
|
|
1749
1758
|
] });
|
|
1750
1759
|
}
|
|
1751
|
-
return /* @__PURE__ */ n(
|
|
1752
|
-
/* @__PURE__ */ e(
|
|
1760
|
+
return /* @__PURE__ */ n(Ia, { openDelay: 0, open: s, onOpenChange: a, children: [
|
|
1761
|
+
/* @__PURE__ */ e(Oa, { asChild: !0, children: /* @__PURE__ */ e(ts, { className: "invisible size-3.5 cursor-pointer text-foreground/40 group-hover:visible" }) }),
|
|
1753
1762
|
/* @__PURE__ */ e(
|
|
1754
|
-
|
|
1763
|
+
Ta,
|
|
1755
1764
|
{
|
|
1756
1765
|
align: "center",
|
|
1757
1766
|
className: "w-20 rounded-md p-0 shadow-none",
|
|
@@ -1762,7 +1771,7 @@ function Xl({ column: t }) {
|
|
|
1762
1771
|
}
|
|
1763
1772
|
function hs({ column: t }) {
|
|
1764
1773
|
return /* @__PURE__ */ n(gt, { children: [
|
|
1765
|
-
/* @__PURE__ */ e(Ls, { asChild: !0, children: Fs(t.data_type) ? /* @__PURE__ */ e(os, { className: "size-3" }) :
|
|
1774
|
+
/* @__PURE__ */ e(Ls, { asChild: !0, children: Fs(t.data_type) ? /* @__PURE__ */ e(os, { className: "size-3" }) : Fa(t.data_type) ? /* @__PURE__ */ e(xl, { className: "size-3" }) : Es(t.data_type) ? /* @__PURE__ */ e(Vs, { className: "size-3" }) : qs(t.data_type) ? /* @__PURE__ */ e(jl, { className: "size-3" }) : t.data_type.toLowerCase() === "json" ? /* @__PURE__ */ e(il, { className: "size-3" }) : /* @__PURE__ */ e(El, { className: "size-3" }) }),
|
|
1766
1775
|
/* @__PURE__ */ e(yt, { children: /* @__PURE__ */ e("p", { className: "font-mono text-xs", children: t.data_type }) })
|
|
1767
1776
|
] });
|
|
1768
1777
|
}
|
|
@@ -1787,12 +1796,12 @@ function ei({
|
|
|
1787
1796
|
), x = m((p) => p.actions.setCardSql), { connectionType: D, modelItems: N, selectedDatamodelName: O } = Pe();
|
|
1788
1797
|
function z(p) {
|
|
1789
1798
|
var G;
|
|
1790
|
-
const
|
|
1791
|
-
f(
|
|
1799
|
+
const A = Aa(p, i);
|
|
1800
|
+
f(A);
|
|
1792
1801
|
const B = (G = N == null ? void 0 : N.find(
|
|
1793
1802
|
(W) => W.id === b
|
|
1794
|
-
)) == null ? void 0 : G.name, V =
|
|
1795
|
-
|
|
1803
|
+
)) == null ? void 0 : G.name, V = La(
|
|
1804
|
+
A,
|
|
1796
1805
|
be(t),
|
|
1797
1806
|
be(s),
|
|
1798
1807
|
B,
|
|
@@ -1840,8 +1849,8 @@ function ei({
|
|
|
1840
1849
|
connectionType: D
|
|
1841
1850
|
});
|
|
1842
1851
|
C(!1);
|
|
1843
|
-
const
|
|
1844
|
-
x(
|
|
1852
|
+
const A = D === "MSSQL" ? `SELECT top 10 * FROM ${p}` : `SELECT * FROM ${p} LIMIT 10`;
|
|
1853
|
+
x(A), g(!0);
|
|
1845
1854
|
}
|
|
1846
1855
|
function Q() {
|
|
1847
1856
|
const p = kt({
|
|
@@ -1855,7 +1864,7 @@ function ei({
|
|
|
1855
1864
|
return /* @__PURE__ */ n("div", { className: "flex grow flex-col space-y-4 px-4", children: [
|
|
1856
1865
|
/* @__PURE__ */ n("div", { className: "mx-2 flex items-center justify-center gap-2", children: [
|
|
1857
1866
|
/* @__PURE__ */ n(
|
|
1858
|
-
|
|
1867
|
+
Ea,
|
|
1859
1868
|
{
|
|
1860
1869
|
title: `${q() ? "Remove from" : "Add to"} Assistant Scope`,
|
|
1861
1870
|
pressed: q(),
|
|
@@ -1930,9 +1939,9 @@ function ei({
|
|
|
1930
1939
|
/* @__PURE__ */ e(
|
|
1931
1940
|
"div",
|
|
1932
1941
|
{
|
|
1933
|
-
onClick: (
|
|
1942
|
+
onClick: (A) => A.stopPropagation(),
|
|
1934
1943
|
className: "flex items-center justify-end",
|
|
1935
|
-
children:
|
|
1944
|
+
children: Fa(p.data_type) && /* @__PURE__ */ e(Xl, { column: p })
|
|
1936
1945
|
}
|
|
1937
1946
|
)
|
|
1938
1947
|
]
|
|
@@ -2011,7 +2020,7 @@ function Pe(t, s) {
|
|
|
2011
2020
|
// Only fetch if authToken is present
|
|
2012
2021
|
}), p = N == null ? void 0 : N.connections.find(
|
|
2013
2022
|
(k) => k.id === i
|
|
2014
|
-
),
|
|
2023
|
+
), A = p == null ? void 0 : p.type, B = (p == null ? void 0 : p.type) === "API" || (p == null ? void 0 : p.type) === "S3", {
|
|
2015
2024
|
data: V,
|
|
2016
2025
|
isLoading: G,
|
|
2017
2026
|
isFetching: W,
|
|
@@ -2026,10 +2035,10 @@ function Pe(t, s) {
|
|
|
2026
2035
|
connection_id: i
|
|
2027
2036
|
}
|
|
2028
2037
|
),
|
|
2029
|
-
enabled: x(
|
|
2038
|
+
enabled: x(A)
|
|
2030
2039
|
// !!selectedConnectionId && !isNonDbConnection, //currentConnection?.type !== 'API', // Only fetch if connectionId is present
|
|
2031
2040
|
}), {
|
|
2032
|
-
data:
|
|
2041
|
+
data: L,
|
|
2033
2042
|
isLoading: K,
|
|
2034
2043
|
isFetching: X,
|
|
2035
2044
|
isError: ie,
|
|
@@ -2068,7 +2077,7 @@ function Pe(t, s) {
|
|
|
2068
2077
|
schema_name: d
|
|
2069
2078
|
}
|
|
2070
2079
|
),
|
|
2071
|
-
enabled: f(
|
|
2080
|
+
enabled: f(A)
|
|
2072
2081
|
}), {
|
|
2073
2082
|
data: ce,
|
|
2074
2083
|
isLoading: ke,
|
|
@@ -2096,7 +2105,7 @@ function Pe(t, s) {
|
|
|
2096
2105
|
table_name: u
|
|
2097
2106
|
}
|
|
2098
2107
|
),
|
|
2099
|
-
enabled: C(
|
|
2108
|
+
enabled: C(A)
|
|
2100
2109
|
// (!!selectedConnectionId &&
|
|
2101
2110
|
// !!selectedDatabaseName &&
|
|
2102
2111
|
// !!selectedSchemaName &&
|
|
@@ -2108,9 +2117,9 @@ function Pe(t, s) {
|
|
|
2108
2117
|
oe(() => {
|
|
2109
2118
|
b(a);
|
|
2110
2119
|
}, [ce, b, a]), oe(() => {
|
|
2111
|
-
(
|
|
2120
|
+
(A === "S3" || A === "API") && (v(""), c(""), y(""), A === "API" && g("api"));
|
|
2112
2121
|
}, [
|
|
2113
|
-
|
|
2122
|
+
A,
|
|
2114
2123
|
g,
|
|
2115
2124
|
v,
|
|
2116
2125
|
c,
|
|
@@ -2129,7 +2138,7 @@ function Pe(t, s) {
|
|
|
2129
2138
|
function Ee(k) {
|
|
2130
2139
|
y(k === "none" ? "" : k), k !== "none" && k !== "" && v("");
|
|
2131
2140
|
}
|
|
2132
|
-
V && (($t = V == null ? void 0 : V.databases) == null ? void 0 : $t.length) > 0,
|
|
2141
|
+
V && (($t = V == null ? void 0 : V.databases) == null ? void 0 : $t.length) > 0, L && ((Bt = L == null ? void 0 : L.schemas) == null ? void 0 : Bt.length) > 0, ce && ((Ut = ce == null ? void 0 : ce.columns) == null ? void 0 : Ut.length) > 0 && (a = ce.columns.map((k) => ({
|
|
2133
2142
|
...k,
|
|
2134
2143
|
data_type: k.data_type.toLowerCase()
|
|
2135
2144
|
}))), S && (a = []), (pe || z) && (a = []);
|
|
@@ -2145,7 +2154,7 @@ function Pe(t, s) {
|
|
|
2145
2154
|
})), Nt = V == null ? void 0 : V.databases.map((k) => ({
|
|
2146
2155
|
id: k.database_name,
|
|
2147
2156
|
name: k.database_name
|
|
2148
|
-
})), lt =
|
|
2157
|
+
})), lt = L == null ? void 0 : L.schemas.map((k) => ({
|
|
2149
2158
|
id: k.schema_name,
|
|
2150
2159
|
name: k.schema_name
|
|
2151
2160
|
})), Ct = E == null ? void 0 : E.tables.map((k) => ({
|
|
@@ -2176,7 +2185,7 @@ function Pe(t, s) {
|
|
|
2176
2185
|
isColumnsLoadingOrFetching: ke || Me,
|
|
2177
2186
|
isColumnsError: pe,
|
|
2178
2187
|
isNonDbConnection: B,
|
|
2179
|
-
connectionType:
|
|
2188
|
+
connectionType: A,
|
|
2180
2189
|
tableName: ue,
|
|
2181
2190
|
schemaName: Le,
|
|
2182
2191
|
refetchConnections: D,
|
|
@@ -2225,14 +2234,14 @@ function us({
|
|
|
2225
2234
|
isTableLoadingOrFetching: _,
|
|
2226
2235
|
isTableError: Q,
|
|
2227
2236
|
connectionType: p,
|
|
2228
|
-
isNonDbConnection:
|
|
2237
|
+
isNonDbConnection: A,
|
|
2229
2238
|
refetchDatabases: B,
|
|
2230
2239
|
refetchModels: V,
|
|
2231
2240
|
refetchSchemas: G,
|
|
2232
2241
|
refetchTables: W,
|
|
2233
2242
|
refetchColumns: S,
|
|
2234
2243
|
refetchConnections: w,
|
|
2235
|
-
handleConnectionChange:
|
|
2244
|
+
handleConnectionChange: L,
|
|
2236
2245
|
handleDatabaseChange: K,
|
|
2237
2246
|
handleSchemaChange: X,
|
|
2238
2247
|
handleDatamodelChange: ie,
|
|
@@ -2272,7 +2281,7 @@ function us({
|
|
|
2272
2281
|
);
|
|
2273
2282
|
}
|
|
2274
2283
|
function he() {
|
|
2275
|
-
if (s && !
|
|
2284
|
+
if (s && !A && (!i || i === "none") && (!l || l === "none"))
|
|
2276
2285
|
return /* @__PURE__ */ n("div", { className: "grid grid-cols-3", children: [
|
|
2277
2286
|
/* @__PURE__ */ e("div", { className: "col-span-1 grid place-items-center", children: /* @__PURE__ */ e(we, {}) }),
|
|
2278
2287
|
/* @__PURE__ */ e("div", { className: "col-span-1 grid place-items-center", children: /* @__PURE__ */ e(H, { children: "OR" }) }),
|
|
@@ -2349,7 +2358,7 @@ function us({
|
|
|
2349
2358
|
items: u,
|
|
2350
2359
|
title: "Connection",
|
|
2351
2360
|
value: s || "",
|
|
2352
|
-
onChange:
|
|
2361
|
+
onChange: L,
|
|
2353
2362
|
isLoading: g,
|
|
2354
2363
|
isError: C,
|
|
2355
2364
|
type: "combobox",
|
|
@@ -2399,10 +2408,10 @@ function ti(t) {
|
|
|
2399
2408
|
}
|
|
2400
2409
|
}
|
|
2401
2410
|
function ai({ sql: t, error: s, onClick: a }) {
|
|
2402
|
-
return !t && !s ? null : /* @__PURE__ */ n(
|
|
2403
|
-
/* @__PURE__ */ e(
|
|
2411
|
+
return !t && !s ? null : /* @__PURE__ */ n(Ia, { openDelay: s ? 0 : 500, children: [
|
|
2412
|
+
/* @__PURE__ */ e(Oa, { asChild: !0, children: /* @__PURE__ */ e($, { variant: "link", className: "h-5 p-0", children: s ? /* @__PURE__ */ e(Xa, { className: "h-4 w-4 text-red-500" }) : /* @__PURE__ */ e(js, { className: "h-4 w-4 text-muted-foreground" }) }) }),
|
|
2404
2413
|
/* @__PURE__ */ e(
|
|
2405
|
-
|
|
2414
|
+
Ta,
|
|
2406
2415
|
{
|
|
2407
2416
|
align: "start",
|
|
2408
2417
|
className: "w-full min-w-fit max-w-[700px]",
|
|
@@ -2535,9 +2544,9 @@ function di(t) {
|
|
|
2535
2544
|
return Qe({ attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M439.8 200.5c-7.7-30.9-22.3-54.2-53.4-54.2h-40.1v47.4c0 36.8-31.2 67.8-66.8 67.8H172.7c-29.2 0-53.4 25-53.4 54.3v101.8c0 29 25.2 46 53.4 54.3 33.8 9.9 66.3 11.7 106.8 0 26.9-7.8 53.4-23.5 53.4-54.3v-40.7H226.2v-13.6h160.2c31.1 0 42.6-21.7 53.4-54.2 11.2-33.5 10.7-65.7 0-108.6zM286.2 404c11.1 0 20.1 9.1 20.1 20.3 0 11.3-9 20.4-20.1 20.4-11 0-20.1-9.2-20.1-20.4.1-11.3 9.1-20.3 20.1-20.3zM167.8 248.1h106.8c29.7 0 53.4-24.5 53.4-54.3V91.9c0-29-24.4-50.7-53.4-55.6-35.8-5.9-74.7-5.6-106.8.1-45.2 8-53.4 24.7-53.4 55.6v40.7h106.9v13.6h-147c-31.1 0-58.3 18.7-66.8 54.2-9.8 40.7-10.2 66.1 0 108.6 7.6 31.6 25.7 54.2 56.8 54.2H101v-48.8c0-35.3 30.5-66.4 66.8-66.4zm-6.7-142.6c-11.1 0-20.1-9.1-20.1-20.3.1-11.3 9-20.4 20.1-20.4 11 0 20.1 9.2 20.1 20.4s-9 20.3-20.1 20.3z" }, child: [] }] })(t);
|
|
2536
2545
|
}
|
|
2537
2546
|
function fs(t) {
|
|
2538
|
-
const { theme: s } = _s(), a = I((f) => f.theme), l = m((f) => f.frame), i = m((f) => f.card), o = m((f) => f.activeTabCardId), r = Hs(), { refetch: d } = _e(i), { updateCardTab: u, setRunSql: b } = ne(), h = Je(), y = Je({}), v = l.cards.find((f) => f.id === o), c =
|
|
2547
|
+
const { theme: s } = _s(), a = I((f) => f.theme), l = m((f) => f.frame), i = m((f) => f.card), o = m((f) => f.activeTabCardId), r = Hs(), { refetch: d } = _e(i), { updateCardTab: u, setRunSql: b } = ne(), h = Je(), y = Je({}), v = l.cards.find((f) => f.id === o), c = Ka(() => {
|
|
2539
2548
|
let f = "";
|
|
2540
|
-
return t === "python" && (f = (v == null ? void 0 : v.python) ||
|
|
2549
|
+
return t === "python" && (f = (v == null ? void 0 : v.python) || Va), t === "sql" && (f = (v == null ? void 0 : v.sql) || ""), f;
|
|
2541
2550
|
}, [t, v]);
|
|
2542
2551
|
oe(() => {
|
|
2543
2552
|
if (o && i.id && i.id !== o) {
|
|
@@ -2635,7 +2644,7 @@ function ui() {
|
|
|
2635
2644
|
className: "pt-3",
|
|
2636
2645
|
theme: "default",
|
|
2637
2646
|
onChange: l,
|
|
2638
|
-
value: t ||
|
|
2647
|
+
value: t || Va,
|
|
2639
2648
|
options: {
|
|
2640
2649
|
minimap: {
|
|
2641
2650
|
enabled: !1
|
|
@@ -2700,7 +2709,7 @@ function gs(t) {
|
|
|
2700
2709
|
messages: _,
|
|
2701
2710
|
setMessages: Q,
|
|
2702
2711
|
reload: p,
|
|
2703
|
-
append:
|
|
2712
|
+
append: A,
|
|
2704
2713
|
input: B,
|
|
2705
2714
|
setInput: V,
|
|
2706
2715
|
status: G,
|
|
@@ -2717,7 +2726,7 @@ function gs(t) {
|
|
|
2717
2726
|
},
|
|
2718
2727
|
maxSteps: 10,
|
|
2719
2728
|
//maxToolRoundtrips: 5,
|
|
2720
|
-
onToolCall:
|
|
2729
|
+
onToolCall: L,
|
|
2721
2730
|
onFinish(M, J) {
|
|
2722
2731
|
K(J.usage), a(""), J.finishReason === "stop" && a("");
|
|
2723
2732
|
}
|
|
@@ -2735,7 +2744,7 @@ function gs(t) {
|
|
|
2735
2744
|
N,
|
|
2736
2745
|
W
|
|
2737
2746
|
]);
|
|
2738
|
-
async function
|
|
2747
|
+
async function L({
|
|
2739
2748
|
toolCall: M
|
|
2740
2749
|
}) {
|
|
2741
2750
|
if (M.toolName === "createChart") {
|
|
@@ -2828,7 +2837,7 @@ function gs(t) {
|
|
|
2828
2837
|
messages: _,
|
|
2829
2838
|
setMessages: Q,
|
|
2830
2839
|
reload: p,
|
|
2831
|
-
append:
|
|
2840
|
+
append: A,
|
|
2832
2841
|
input: B,
|
|
2833
2842
|
setInput: V,
|
|
2834
2843
|
isLoading: re,
|
|
@@ -2873,10 +2882,10 @@ function pi() {
|
|
|
2873
2882
|
setCardPython: _,
|
|
2874
2883
|
runAssistant: Q,
|
|
2875
2884
|
setShowAIDialog: p
|
|
2876
|
-
} = ne(),
|
|
2885
|
+
} = ne(), A = m((F) => F.onSave), B = m((F) => F.onClose), V = m((F) => F.actions.setSqlGen), G = m((F) => F.runSql), W = m((F) => F.actions.setRunSql), S = m((F) => F.actions.setCardCfg), w = m(
|
|
2877
2886
|
(F) => F.actions.setIsSqlRunning
|
|
2878
2887
|
), {
|
|
2879
|
-
data:
|
|
2888
|
+
data: L,
|
|
2880
2889
|
isLoading: K,
|
|
2881
2890
|
isFetching: X,
|
|
2882
2891
|
isSuccess: ie,
|
|
@@ -2886,19 +2895,19 @@ function pi() {
|
|
|
2886
2895
|
refetch: M
|
|
2887
2896
|
} = _e(u), { handleSetAIScope: J } = gs();
|
|
2888
2897
|
oe(() => {
|
|
2889
|
-
if (
|
|
2898
|
+
if (L && (L.rowLimitExceeded && ct.error("Row limit (10,000) exceeded. Refine your query.", {
|
|
2890
2899
|
position: "top-center",
|
|
2891
2900
|
richColors: !0
|
|
2892
|
-
}), z((
|
|
2893
|
-
const { dimensionKeys: F } = Mt(
|
|
2901
|
+
}), z((L == null ? void 0 : L.output) || ""), L.records.length > 0)) {
|
|
2902
|
+
const { dimensionKeys: F } = Mt(L.records);
|
|
2894
2903
|
N(F);
|
|
2895
2904
|
}
|
|
2896
|
-
}, [
|
|
2905
|
+
}, [L, N, z]), oe(() => {
|
|
2897
2906
|
(K || X) && w(!0), (R || ie) && w(!1), R && (N([]), z(""));
|
|
2898
2907
|
}, [
|
|
2899
2908
|
K,
|
|
2900
2909
|
X,
|
|
2901
|
-
|
|
2910
|
+
L,
|
|
2902
2911
|
z,
|
|
2903
2912
|
R,
|
|
2904
2913
|
ie,
|
|
@@ -2956,7 +2965,7 @@ function pi() {
|
|
|
2956
2965
|
cards: Ee,
|
|
2957
2966
|
activeCardId: ce(Ee, d.activeCardId)
|
|
2958
2967
|
};
|
|
2959
|
-
|
|
2968
|
+
A == null || A(fe);
|
|
2960
2969
|
}
|
|
2961
2970
|
function Me() {
|
|
2962
2971
|
const { queryKey: F, queryData: me } = t;
|
|
@@ -2997,7 +3006,7 @@ function pi() {
|
|
|
2997
3006
|
variant: "ghost",
|
|
2998
3007
|
onClick: () => r(!o),
|
|
2999
3008
|
className: "absolute bottom-0 right-6 size-7 p-1",
|
|
3000
|
-
children: o ? /* @__PURE__ */ e(Ge, { className: "size-3.5 text-muted-foreground" }) : /* @__PURE__ */ e(
|
|
3009
|
+
children: o ? /* @__PURE__ */ e(Ge, { className: "size-3.5 text-muted-foreground" }) : /* @__PURE__ */ e(as, { className: "size-3.5 text-muted-foreground" })
|
|
3001
3010
|
}
|
|
3002
3011
|
)
|
|
3003
3012
|
] });
|
|
@@ -3057,7 +3066,7 @@ function pi() {
|
|
|
3057
3066
|
}
|
|
3058
3067
|
);
|
|
3059
3068
|
}
|
|
3060
|
-
const Le = (E == null ? void 0 : E.message) || ((Fe =
|
|
3069
|
+
const Le = (E == null ? void 0 : E.message) || ((Fe = L == null ? void 0 : L.error) == null ? void 0 : Fe.message);
|
|
3061
3070
|
return (
|
|
3062
3071
|
// This is a tricky css, the pt-8 is to make sure the editor doesn't slide under the header
|
|
3063
3072
|
/* @__PURE__ */ n(
|
|
@@ -3096,7 +3105,7 @@ function pi() {
|
|
|
3096
3105
|
/* @__PURE__ */ e(
|
|
3097
3106
|
ai,
|
|
3098
3107
|
{
|
|
3099
|
-
sql:
|
|
3108
|
+
sql: L == null ? void 0 : L.sql,
|
|
3100
3109
|
error: Le,
|
|
3101
3110
|
onClick: pe
|
|
3102
3111
|
}
|
|
@@ -3115,7 +3124,7 @@ function pi() {
|
|
|
3115
3124
|
}
|
|
3116
3125
|
),
|
|
3117
3126
|
/* @__PURE__ */ e(
|
|
3118
|
-
|
|
3127
|
+
Ea,
|
|
3119
3128
|
{
|
|
3120
3129
|
pressed: l,
|
|
3121
3130
|
onPressedChange: (F) => i(F),
|
|
@@ -3226,14 +3235,14 @@ function fi({ data: t }) {
|
|
|
3226
3235
|
] }) });
|
|
3227
3236
|
}
|
|
3228
3237
|
function gi({ card: t }) {
|
|
3229
|
-
var D, N, O, z, q, P, _, Q, p,
|
|
3238
|
+
var D, N, O, z, q, P, _, Q, p, A, B;
|
|
3230
3239
|
const [s, a] = j(!1), [l, i] = j(
|
|
3231
3240
|
[]
|
|
3232
3241
|
), { authToken: o } = Ae(), r = rn(o == null ? void 0 : o.accessToken), d = I((V) => V.themeStyle), u = {
|
|
3233
3242
|
colors: ((N = (D = d == null ? void 0 : d.chart) == null ? void 0 : D.dataset) == null ? void 0 : N.backgroundColor) || []
|
|
3234
3243
|
};
|
|
3235
3244
|
(O = t.customCardPreferences) != null && O.inputData;
|
|
3236
|
-
const { getCard: b } =
|
|
3245
|
+
const { getCard: b } = qa(((z = t.customCardPreferences) == null ? void 0 : z.url) || ""), h = ((q = t.customCardPreferences) == null ? void 0 : q.visualType) || "single", y = m((V) => V.frame), { setCustomCardPreferences: v } = ne(), { data: c } = _e(t), g = Ka((V, G) => {
|
|
3237
3246
|
i((W) => ({
|
|
3238
3247
|
...W,
|
|
3239
3248
|
[V]: G
|
|
@@ -3250,8 +3259,8 @@ function gi({ card: t }) {
|
|
|
3250
3259
|
const x = Object.keys(
|
|
3251
3260
|
((Q = t.customCardPreferences) == null ? void 0 : Q.dataInputCardIds) || {}
|
|
3252
3261
|
).map((V) => {
|
|
3253
|
-
var S, w,
|
|
3254
|
-
const G = (w = (S = t.customCardPreferences) == null ? void 0 : S.dataInputCardIds) == null ? void 0 : w[V].cardId, W = (
|
|
3262
|
+
var S, w, L;
|
|
3263
|
+
const G = (w = (S = t.customCardPreferences) == null ? void 0 : S.dataInputCardIds) == null ? void 0 : w[V].cardId, W = (L = y == null ? void 0 : y.cards) == null ? void 0 : L.find((K) => K.id === G);
|
|
3255
3264
|
return W || null;
|
|
3256
3265
|
});
|
|
3257
3266
|
return /* @__PURE__ */ e("div", { className: "semaphor-custom mb-3 flex grow basis-0 flex-col space-y-2 overflow-y-auto", children: /* @__PURE__ */ n(
|
|
@@ -3271,10 +3280,10 @@ function gi({ card: t }) {
|
|
|
3271
3280
|
),
|
|
3272
3281
|
f && h === "multiple" && /* @__PURE__ */ n(se, { children: [
|
|
3273
3282
|
Object.keys(
|
|
3274
|
-
((
|
|
3283
|
+
((A = t.customCardPreferences) == null ? void 0 : A.dataInputCardIds) || {}
|
|
3275
3284
|
).map((V) => {
|
|
3276
|
-
var S, w,
|
|
3277
|
-
const G = (w = (S = t.customCardPreferences) == null ? void 0 : S.dataInputCardIds) == null ? void 0 : w[V].cardId, W = (
|
|
3285
|
+
var S, w, L;
|
|
3286
|
+
const G = (w = (S = t.customCardPreferences) == null ? void 0 : S.dataInputCardIds) == null ? void 0 : w[V].cardId, W = (L = y == null ? void 0 : y.cards) == null ? void 0 : L.find(
|
|
3278
3287
|
(K) => K.id === G
|
|
3279
3288
|
);
|
|
3280
3289
|
if (W)
|
|
@@ -3321,7 +3330,7 @@ function ys({
|
|
|
3321
3330
|
const { updateFilter: r } = Ke(), d = o == null ? void 0 : o.find((x) => x.id === i.filterId), { data: u, isLoading: b, isFetching: h } = _e(a), { setCard: y } = ne(), { data: v } = Ft(a);
|
|
3322
3331
|
if (!a.id) return null;
|
|
3323
3332
|
let c;
|
|
3324
|
-
u != null && u.records && (u == null ? void 0 : u.records.length) > 0 && (c =
|
|
3333
|
+
u != null && u.records && (u == null ? void 0 : u.records.length) > 0 && (c = Ra({
|
|
3325
3334
|
data: u == null ? void 0 : u.records,
|
|
3326
3335
|
cardType: a.type,
|
|
3327
3336
|
cfg: a.cfg,
|
|
@@ -3393,7 +3402,7 @@ function ys({
|
|
|
3393
3402
|
children: /* @__PURE__ */ e(H, { children: d.title })
|
|
3394
3403
|
}
|
|
3395
3404
|
),
|
|
3396
|
-
/* @__PURE__ */ e(
|
|
3405
|
+
/* @__PURE__ */ e(ja, { filter: d })
|
|
3397
3406
|
] })
|
|
3398
3407
|
] }),
|
|
3399
3408
|
/* @__PURE__ */ e(mn, { className: "flex grow flex-col", children: f() })
|
|
@@ -3447,8 +3456,8 @@ const la = ({
|
|
|
3447
3456
|
customConfig: s,
|
|
3448
3457
|
onConfigChange: a,
|
|
3449
3458
|
onCodeChange: l
|
|
3450
|
-
}) => /* @__PURE__ */ n(
|
|
3451
|
-
/* @__PURE__ */ n(
|
|
3459
|
+
}) => /* @__PURE__ */ n(Ha, { defaultValue: "final-config", className: "flex w-1/2 flex-col", children: [
|
|
3460
|
+
/* @__PURE__ */ n(Pa, { className: "justify-start rounded-sm rounded-b-none border border-b-0", children: [
|
|
3452
3461
|
/* @__PURE__ */ e(Dt, { value: "final-config", children: "Config" }),
|
|
3453
3462
|
/* @__PURE__ */ e(Dt, { value: "custom-code", children: "Custom Code" })
|
|
3454
3463
|
] }),
|
|
@@ -3520,7 +3529,7 @@ function vi() {
|
|
|
3520
3529
|
onClick: () => {
|
|
3521
3530
|
var O, z;
|
|
3522
3531
|
if (!((O = v == null ? void 0 : v.records) != null && O.length)) return;
|
|
3523
|
-
const N =
|
|
3532
|
+
const N = Ra({
|
|
3524
3533
|
data: v.records,
|
|
3525
3534
|
cardType: h.type,
|
|
3526
3535
|
cfg: h.cfg,
|
|
@@ -3540,7 +3549,7 @@ function vi() {
|
|
|
3540
3549
|
/* @__PURE__ */ n(da, { className: "max-h-[70vh] min-h-[70vh] overflow-auto sm:min-w-[900px] lg:min-w-[1200px]", children: [
|
|
3541
3550
|
/* @__PURE__ */ e(yi, {}),
|
|
3542
3551
|
/* @__PURE__ */ n("div", { className: "flex grow gap-2", children: [
|
|
3543
|
-
/* @__PURE__ */ e(vt, { FallbackComponent:
|
|
3552
|
+
/* @__PURE__ */ e(vt, { FallbackComponent: _a, children: /* @__PURE__ */ e(ys, { className: "w-1/2 rounded shadow-none" }) }),
|
|
3544
3553
|
/* @__PURE__ */ e(
|
|
3545
3554
|
bi,
|
|
3546
3555
|
{
|
|
@@ -3699,7 +3708,7 @@ function wi() {
|
|
|
3699
3708
|
tooltip: "Stacked Bar Chart",
|
|
3700
3709
|
onClick: () => h("stackedBar"),
|
|
3701
3710
|
className: "h-10 p-4",
|
|
3702
|
-
children: /* @__PURE__ */ e(
|
|
3711
|
+
children: /* @__PURE__ */ e(Qa, { className: "size-5" })
|
|
3703
3712
|
}
|
|
3704
3713
|
),
|
|
3705
3714
|
/* @__PURE__ */ e(
|
|
@@ -3717,7 +3726,7 @@ function wi() {
|
|
|
3717
3726
|
tooltip: "Scatter Chart",
|
|
3718
3727
|
onClick: () => h("scatter"),
|
|
3719
3728
|
className: "h-10 p-4",
|
|
3720
|
-
children: /* @__PURE__ */ e(
|
|
3729
|
+
children: /* @__PURE__ */ e(Ya, { className: "size-5" })
|
|
3721
3730
|
}
|
|
3722
3731
|
),
|
|
3723
3732
|
/* @__PURE__ */ e(
|
|
@@ -3735,7 +3744,7 @@ function wi() {
|
|
|
3735
3744
|
tooltip: "Pie Chart",
|
|
3736
3745
|
onClick: () => h("pie"),
|
|
3737
3746
|
className: "h-10 p-4",
|
|
3738
|
-
children: /* @__PURE__ */ e(
|
|
3747
|
+
children: /* @__PURE__ */ e(Za, { className: "size-5" })
|
|
3739
3748
|
}
|
|
3740
3749
|
),
|
|
3741
3750
|
/* @__PURE__ */ e(
|
|
@@ -3744,7 +3753,7 @@ function wi() {
|
|
|
3744
3753
|
tooltip: "Doughnut Chart",
|
|
3745
3754
|
onClick: () => h("doughnut"),
|
|
3746
3755
|
className: "h-10 p-4",
|
|
3747
|
-
children: /* @__PURE__ */ e(
|
|
3756
|
+
children: /* @__PURE__ */ e(es, { className: "size-5" })
|
|
3748
3757
|
}
|
|
3749
3758
|
),
|
|
3750
3759
|
/* @__PURE__ */ e(
|
|
@@ -3780,7 +3789,7 @@ function wi() {
|
|
|
3780
3789
|
tooltip: "Range Chart",
|
|
3781
3790
|
onClick: () => h("range"),
|
|
3782
3791
|
className: "h-10 p-4",
|
|
3783
|
-
children: /* @__PURE__ */ e(
|
|
3792
|
+
children: /* @__PURE__ */ e(Wa, { className: "size-5" })
|
|
3784
3793
|
}
|
|
3785
3794
|
),
|
|
3786
3795
|
/* @__PURE__ */ e(
|
|
@@ -3848,17 +3857,17 @@ function ki({
|
|
|
3848
3857
|
case "line":
|
|
3849
3858
|
return /* @__PURE__ */ e(jt, { className: s });
|
|
3850
3859
|
case "pie":
|
|
3851
|
-
return /* @__PURE__ */ e(
|
|
3860
|
+
return /* @__PURE__ */ e(Za, { className: s });
|
|
3852
3861
|
case "radar":
|
|
3853
3862
|
return /* @__PURE__ */ e(ns, { className: s });
|
|
3854
3863
|
case "scatter":
|
|
3855
|
-
return /* @__PURE__ */ e(
|
|
3864
|
+
return /* @__PURE__ */ e(Ya, { className: s });
|
|
3856
3865
|
case "bubble":
|
|
3857
3866
|
return /* @__PURE__ */ e(xs, { className: s });
|
|
3858
3867
|
case "doughnut":
|
|
3859
|
-
return /* @__PURE__ */ e(
|
|
3868
|
+
return /* @__PURE__ */ e(es, { className: s });
|
|
3860
3869
|
case "stackedBar":
|
|
3861
|
-
return /* @__PURE__ */ e(
|
|
3870
|
+
return /* @__PURE__ */ e(Qa, { className: s });
|
|
3862
3871
|
case "stackedLine":
|
|
3863
3872
|
return /* @__PURE__ */ e(vs, { className: s });
|
|
3864
3873
|
case "polarArea":
|
|
@@ -3866,7 +3875,7 @@ function ki({
|
|
|
3866
3875
|
case "pyramid":
|
|
3867
3876
|
return /* @__PURE__ */ e(rs, { className: s });
|
|
3868
3877
|
case "range":
|
|
3869
|
-
return /* @__PURE__ */ e(
|
|
3878
|
+
return /* @__PURE__ */ e(Wa, { className: s });
|
|
3870
3879
|
case "kpi":
|
|
3871
3880
|
return /* @__PURE__ */ e(Ns, { className: s });
|
|
3872
3881
|
case "text":
|
|
@@ -3882,21 +3891,21 @@ function ki({
|
|
|
3882
3891
|
const it = "focus-visible:ring-0 focus-visible:ring-ring focus-visible:ring-offset-0";
|
|
3883
3892
|
function ia(t, s) {
|
|
3884
3893
|
var l, i, o;
|
|
3885
|
-
const a =
|
|
3894
|
+
const a = $a(t, s);
|
|
3886
3895
|
return ((o = (i = (l = t == null ? void 0 : t.chartOptions) == null ? void 0 : l.scales) == null ? void 0 : i[a]) == null ? void 0 : o.type) || "linear";
|
|
3887
3896
|
}
|
|
3888
3897
|
function Mi() {
|
|
3889
|
-
var S, w,
|
|
3898
|
+
var S, w, L, K, X, ie;
|
|
3890
3899
|
const [t, s] = j(!1), a = m((R) => {
|
|
3891
3900
|
var E;
|
|
3892
3901
|
return (E = R.card) == null ? void 0 : E.preferences;
|
|
3893
3902
|
}), l = m((R) => {
|
|
3894
3903
|
var E;
|
|
3895
3904
|
return (E = R.card) == null ? void 0 : E.cfg;
|
|
3896
|
-
}), i =
|
|
3905
|
+
}), i = $a(a, l), [o, r] = j(
|
|
3897
3906
|
ia(a)
|
|
3898
3907
|
), [d, u] = j(
|
|
3899
|
-
((
|
|
3908
|
+
((L = (w = (S = a == null ? void 0 : a.chartOptions) == null ? void 0 : S.scales) == null ? void 0 : w[i]) == null ? void 0 : L.min) || ""
|
|
3900
3909
|
), [b, h] = j(
|
|
3901
3910
|
((ie = (X = (K = a == null ? void 0 : a.chartOptions) == null ? void 0 : K.scales) == null ? void 0 : X[i]) == null ? void 0 : ie.max) || ""
|
|
3902
3911
|
), [y, v] = j(d || b ? "custom" : "auto"), [c, g] = j(""), [f, C] = j(0), [x, D] = j(""), [N, O] = j(""), [z, q] = j(""), P = m(
|
|
@@ -3904,7 +3913,7 @@ function Mi() {
|
|
|
3904
3913
|
), { updateCardInFrame: _ } = ne(), Q = m((R) => R.card), p = m((R) => {
|
|
3905
3914
|
var E;
|
|
3906
3915
|
return (E = R.card) == null ? void 0 : E.type;
|
|
3907
|
-
}),
|
|
3916
|
+
}), A = ["pie", "doughnut", "polarArea"].includes(p);
|
|
3908
3917
|
oe(() => {
|
|
3909
3918
|
var R, E, re, M, J, he, ce, ke, Me, pe, Y, ue, Le, Fe;
|
|
3910
3919
|
r(ia(a)), u(
|
|
@@ -4067,7 +4076,7 @@ function Mi() {
|
|
|
4067
4076
|
/* @__PURE__ */ n(
|
|
4068
4077
|
xe,
|
|
4069
4078
|
{
|
|
4070
|
-
disabled:
|
|
4079
|
+
disabled: A,
|
|
4071
4080
|
value: o,
|
|
4072
4081
|
onValueChange: (R) => r(R),
|
|
4073
4082
|
children: [
|
|
@@ -4086,7 +4095,7 @@ function Mi() {
|
|
|
4086
4095
|
/* @__PURE__ */ n(
|
|
4087
4096
|
Vt,
|
|
4088
4097
|
{
|
|
4089
|
-
disabled:
|
|
4098
|
+
disabled: A,
|
|
4090
4099
|
id: "scale-option",
|
|
4091
4100
|
value: y,
|
|
4092
4101
|
onValueChange: (R) => v(R),
|
|
@@ -4167,7 +4176,7 @@ function Di() {
|
|
|
4167
4176
|
/* @__PURE__ */ n("div", { className: "grid grid-cols-3 items-center gap-4", children: [
|
|
4168
4177
|
/* @__PURE__ */ e(H, { htmlFor: "displayLegend", children: "Display" }),
|
|
4169
4178
|
/* @__PURE__ */ e("div", { className: "col-span-2 flex h-8 items-center", children: /* @__PURE__ */ e(
|
|
4170
|
-
|
|
4179
|
+
Ba,
|
|
4171
4180
|
{
|
|
4172
4181
|
checked: a,
|
|
4173
4182
|
onCheckedChange: i,
|
|
@@ -4271,7 +4280,7 @@ function Ii() {
|
|
|
4271
4280
|
var d, u;
|
|
4272
4281
|
return (u = (d = r.card) == null ? void 0 : d.preferences) == null ? void 0 : u.chartOptions;
|
|
4273
4282
|
}
|
|
4274
|
-
), l =
|
|
4283
|
+
), l = Ua(a), { setChartGrid: i } = ne();
|
|
4275
4284
|
function o() {
|
|
4276
4285
|
const r = ["xy", "none", "x", "y"], u = (r.indexOf(l) + 1) % r.length;
|
|
4277
4286
|
i(r[u]);
|
|
@@ -4315,7 +4324,7 @@ function ra() {
|
|
|
4315
4324
|
return (w = S.card.preferences) == null ? void 0 : w.chartOptions;
|
|
4316
4325
|
}
|
|
4317
4326
|
);
|
|
4318
|
-
m((S) => S.actions.setRunSql),
|
|
4327
|
+
m((S) => S.actions.setRunSql), Ua(r);
|
|
4319
4328
|
const {
|
|
4320
4329
|
setFrame: d,
|
|
4321
4330
|
setCard: u,
|
|
@@ -4363,13 +4372,13 @@ function ra() {
|
|
|
4363
4372
|
D(S);
|
|
4364
4373
|
}
|
|
4365
4374
|
function O(S) {
|
|
4366
|
-
const w = t.cards.filter((X) => X.id !== S),
|
|
4375
|
+
const w = t.cards.filter((X) => X.id !== S), L = w[0], K = {
|
|
4367
4376
|
...t,
|
|
4368
4377
|
cards: w,
|
|
4369
4378
|
// update the active card to the first card in the frame
|
|
4370
|
-
activeCardId:
|
|
4379
|
+
activeCardId: L.id
|
|
4371
4380
|
};
|
|
4372
|
-
d(K), h(
|
|
4381
|
+
d(K), h(L.id), u(L);
|
|
4373
4382
|
}
|
|
4374
4383
|
function z(S) {
|
|
4375
4384
|
h(S);
|
|
@@ -4379,9 +4388,9 @@ function ra() {
|
|
|
4379
4388
|
}, P = (S) => {
|
|
4380
4389
|
S.preventDefault();
|
|
4381
4390
|
}, _ = (S, w) => {
|
|
4382
|
-
const
|
|
4383
|
-
if (
|
|
4384
|
-
const K = Array.from(t.cards), [X] = K.splice(parseInt(
|
|
4391
|
+
const L = S.dataTransfer.getData("tabIndex");
|
|
4392
|
+
if (L === w.toString()) return;
|
|
4393
|
+
const K = Array.from(t.cards), [X] = K.splice(parseInt(L), 1);
|
|
4385
4394
|
K.splice(w, 0, X), d({ ...t, cards: K });
|
|
4386
4395
|
};
|
|
4387
4396
|
function Q(S, w) {
|
|
@@ -4389,10 +4398,10 @@ function ra() {
|
|
|
4389
4398
|
"div",
|
|
4390
4399
|
{
|
|
4391
4400
|
onClick: () => {
|
|
4392
|
-
const
|
|
4393
|
-
u({ ...w, displayTab:
|
|
4401
|
+
const L = w.displayTab === void 0 ? !1 : !w.displayTab;
|
|
4402
|
+
u({ ...w, displayTab: L }), b({
|
|
4394
4403
|
...w,
|
|
4395
|
-
displayTab:
|
|
4404
|
+
displayTab: L
|
|
4396
4405
|
});
|
|
4397
4406
|
},
|
|
4398
4407
|
children: w.displayTab === !0 || w.displayTab === void 0 ? /* @__PURE__ */ e(Dn, { className: "mr-2 size-3.5 text-muted-foreground hover:text-foreground" }) : /* @__PURE__ */ e(pl, { className: "mr-2 size-3.5 text-muted-foreground hover:text-foreground" })
|
|
@@ -4401,28 +4410,28 @@ function ra() {
|
|
|
4401
4410
|
}
|
|
4402
4411
|
function p() {
|
|
4403
4412
|
return /* @__PURE__ */ n(
|
|
4404
|
-
|
|
4413
|
+
Ha,
|
|
4405
4414
|
{
|
|
4406
4415
|
onValueChange: z,
|
|
4407
4416
|
value: t.activeCardId,
|
|
4408
4417
|
className: "flex grow flex-col",
|
|
4409
4418
|
children: [
|
|
4410
|
-
t.cards.map((S) => /* @__PURE__ */ e(zt, { className: "mt-0 grow", value: S.id, children:
|
|
4411
|
-
/* @__PURE__ */ e(
|
|
4419
|
+
t.cards.map((S) => /* @__PURE__ */ e(zt, { className: "mt-0 grow", value: S.id, children: A() }, S.id)),
|
|
4420
|
+
/* @__PURE__ */ e(Pa, { className: "group mx-6 justify-between overflow-x-auto", children: /* @__PURE__ */ n("div", { className: "flex items-center", children: [
|
|
4412
4421
|
t.cards.map((S, w) => /* @__PURE__ */ e(
|
|
4413
4422
|
ot,
|
|
4414
4423
|
{
|
|
4415
4424
|
text: S.tabTitle || S.title,
|
|
4416
|
-
onSave: (
|
|
4417
|
-
u({ ...s, tabTitle:
|
|
4425
|
+
onSave: (L) => {
|
|
4426
|
+
u({ ...s, tabTitle: L }), b({ ...s, tabTitle: L });
|
|
4418
4427
|
},
|
|
4419
4428
|
children: /* @__PURE__ */ n(
|
|
4420
4429
|
Dt,
|
|
4421
4430
|
{
|
|
4422
4431
|
draggable: !0,
|
|
4423
|
-
onDragStart: (
|
|
4432
|
+
onDragStart: (L) => q(L, w),
|
|
4424
4433
|
onDragOver: P,
|
|
4425
|
-
onDrop: (
|
|
4434
|
+
onDrop: (L) => _(L, w),
|
|
4426
4435
|
className: "",
|
|
4427
4436
|
value: S.id,
|
|
4428
4437
|
children: [
|
|
@@ -4464,7 +4473,7 @@ function ra() {
|
|
|
4464
4473
|
}
|
|
4465
4474
|
);
|
|
4466
4475
|
}
|
|
4467
|
-
function
|
|
4476
|
+
function A() {
|
|
4468
4477
|
return s.type === "kpi" ? /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ e("div", { className: "w-1/2 rounded-md border", children: /* @__PURE__ */ e(kn, { card: s, data: c == null ? void 0 : c.records }) }) }) : s.type === "text" ? /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ e("div", { className: "w-1/2 rounded-md border", children: /* @__PURE__ */ e(Te, { className: "mx-3 my-6 h-[300px] overflow-y-auto break-words px-3", children: /* @__PURE__ */ e(
|
|
4469
4478
|
Mn,
|
|
4470
4479
|
{
|
|
@@ -4472,11 +4481,11 @@ function ra() {
|
|
|
4472
4481
|
card: s,
|
|
4473
4482
|
data: c == null ? void 0 : c.records
|
|
4474
4483
|
}
|
|
4475
|
-
) }) }) }) : /* @__PURE__ */ e(vt, { FallbackComponent:
|
|
4484
|
+
) }) }) }) : /* @__PURE__ */ e(vt, { FallbackComponent: _a, children: /* @__PURE__ */ e(ys, { className: "grow border-none shadow-none" }) });
|
|
4476
4485
|
}
|
|
4477
4486
|
function B() {
|
|
4478
|
-
const S = JSON.stringify(c == null ? void 0 : c.records, null, 2), w = new Blob([S], { type: "application/json" }),
|
|
4479
|
-
K.href =
|
|
4487
|
+
const S = JSON.stringify(c == null ? void 0 : c.records, null, 2), w = new Blob([S], { type: "application/json" }), L = URL.createObjectURL(w), K = document.createElement("a");
|
|
4488
|
+
K.href = L, K.download = `${s.title}.json`, K.click();
|
|
4480
4489
|
}
|
|
4481
4490
|
function V() {
|
|
4482
4491
|
const w = [
|
|
@@ -4485,7 +4494,7 @@ function ra() {
|
|
|
4485
4494
|
).join(","),
|
|
4486
4495
|
...((c == null ? void 0 : c.records) || []).map((ie) => Object.values(ie).join(","))
|
|
4487
4496
|
].join(`
|
|
4488
|
-
`),
|
|
4497
|
+
`), L = new Blob([w], { type: "text/csv" }), K = URL.createObjectURL(L), X = document.createElement("a");
|
|
4489
4498
|
X.href = K, X.download = `${s.title}.csv`, X.click();
|
|
4490
4499
|
}
|
|
4491
4500
|
function G() {
|
|
@@ -4602,7 +4611,7 @@ function Ti() {
|
|
|
4602
4611
|
return /* @__PURE__ */ n("div", { className: "flex items-center space-x-2", children: [
|
|
4603
4612
|
/* @__PURE__ */ e(H, { htmlFor: "visualize", children: "Chart" }),
|
|
4604
4613
|
/* @__PURE__ */ e(
|
|
4605
|
-
|
|
4614
|
+
Ba,
|
|
4606
4615
|
{
|
|
4607
4616
|
checked: t,
|
|
4608
4617
|
onCheckedChange: () => s(!t),
|
|
@@ -4656,7 +4665,7 @@ function Li() {
|
|
|
4656
4665
|
var f, C;
|
|
4657
4666
|
const t = m(
|
|
4658
4667
|
(x) => x.card.customCardPreferences
|
|
4659
|
-
), { data: s } = Ss(), a = (s == null ? void 0 : s.plugins) || [], l = m((x) => x.card), i = m((x) => x.frame), o = (t == null ? void 0 : t.visualType) || "single", { setCustomCardPreferences: r } = ne(), { components: d, manifest: u } =
|
|
4668
|
+
), { data: s } = Ss(), a = (s == null ? void 0 : s.plugins) || [], l = m((x) => x.card), i = m((x) => x.frame), o = (t == null ? void 0 : t.visualType) || "single", { setCustomCardPreferences: r } = ne(), { components: d, manifest: u } = qa(
|
|
4660
4669
|
(t == null ? void 0 : t.url) || ""
|
|
4661
4670
|
), b = (f = u == null ? void 0 : u.visuals) == null ? void 0 : f.find(
|
|
4662
4671
|
(x) => x.name === (t == null ? void 0 : t.componentName)
|
|
@@ -5231,7 +5240,7 @@ function We() {
|
|
|
5231
5240
|
return /* @__PURE__ */ n("div", { className: "space-y-3", children: [
|
|
5232
5241
|
/* @__PURE__ */ e(H, { children: "Card Filter" }),
|
|
5233
5242
|
/* @__PURE__ */ e(Vi, { onSelect: o, columns: l }),
|
|
5234
|
-
r && /* @__PURE__ */ e(
|
|
5243
|
+
r && /* @__PURE__ */ e(Ga, { filter: r })
|
|
5235
5244
|
] });
|
|
5236
5245
|
}
|
|
5237
5246
|
function Vi({
|
|
@@ -5255,12 +5264,12 @@ function Vi({
|
|
|
5255
5264
|
]
|
|
5256
5265
|
}
|
|
5257
5266
|
) }),
|
|
5258
|
-
/* @__PURE__ */ e(ft, { className: "w-[200px] p-0", children: /* @__PURE__ */ n(
|
|
5259
|
-
/* @__PURE__ */ e(
|
|
5260
|
-
/* @__PURE__ */ n(
|
|
5261
|
-
/* @__PURE__ */ e(
|
|
5262
|
-
/* @__PURE__ */ e(
|
|
5263
|
-
|
|
5267
|
+
/* @__PURE__ */ e(ft, { className: "w-[200px] p-0", children: /* @__PURE__ */ n(Sa, { children: [
|
|
5268
|
+
/* @__PURE__ */ e(wa, { placeholder: "Search column", className: "h-9" }),
|
|
5269
|
+
/* @__PURE__ */ n(ka, { children: [
|
|
5270
|
+
/* @__PURE__ */ e(Ma, { children: "No framework found." }),
|
|
5271
|
+
/* @__PURE__ */ e(Da, { children: t.map((d) => /* @__PURE__ */ n(
|
|
5272
|
+
za,
|
|
5264
5273
|
{
|
|
5265
5274
|
value: d.column_name,
|
|
5266
5275
|
onSelect: (u) => {
|
|
@@ -5934,11 +5943,11 @@ function Ki() {
|
|
|
5934
5943
|
value: ((c = (v = t.preferences) == null ? void 0 : v.mapVisualOptions) == null ? void 0 : c.objectKey) || "",
|
|
5935
5944
|
label: "Map Object",
|
|
5936
5945
|
onValueChange: (p) => {
|
|
5937
|
-
var
|
|
5946
|
+
var A;
|
|
5938
5947
|
i({
|
|
5939
5948
|
...t.preferences,
|
|
5940
5949
|
mapVisualOptions: {
|
|
5941
|
-
...(
|
|
5950
|
+
...(A = t.preferences) == null ? void 0 : A.mapVisualOptions,
|
|
5942
5951
|
objectKey: p
|
|
5943
5952
|
}
|
|
5944
5953
|
});
|
|
@@ -5956,11 +5965,11 @@ function Ki() {
|
|
|
5956
5965
|
value: ((f = (g = t.preferences) == null ? void 0 : g.mapVisualOptions) == null ? void 0 : f.projection) || "",
|
|
5957
5966
|
label: "Projection",
|
|
5958
5967
|
onValueChange: (p) => {
|
|
5959
|
-
var
|
|
5968
|
+
var A;
|
|
5960
5969
|
i({
|
|
5961
5970
|
...t.preferences,
|
|
5962
5971
|
mapVisualOptions: {
|
|
5963
|
-
...(
|
|
5972
|
+
...(A = t.preferences) == null ? void 0 : A.mapVisualOptions,
|
|
5964
5973
|
projection: p
|
|
5965
5974
|
}
|
|
5966
5975
|
});
|
|
@@ -5978,11 +5987,11 @@ function Ki() {
|
|
|
5978
5987
|
value: ((x = (C = t.preferences) == null ? void 0 : C.mapVisualOptions) == null ? void 0 : x.colorScale) || "",
|
|
5979
5988
|
label: "Select Color Scale",
|
|
5980
5989
|
onValueChange: (p) => {
|
|
5981
|
-
var
|
|
5990
|
+
var A;
|
|
5982
5991
|
i({
|
|
5983
5992
|
...t.preferences,
|
|
5984
5993
|
mapVisualOptions: {
|
|
5985
|
-
...(
|
|
5994
|
+
...(A = t.preferences) == null ? void 0 : A.mapVisualOptions,
|
|
5986
5995
|
colorScale: p
|
|
5987
5996
|
}
|
|
5988
5997
|
});
|
|
@@ -6002,11 +6011,11 @@ function Ki() {
|
|
|
6002
6011
|
step: 0.1,
|
|
6003
6012
|
value: ((N = (D = t.preferences) == null ? void 0 : D.mapVisualOptions) == null ? void 0 : N.projectionScale) || 1,
|
|
6004
6013
|
onChange: (p) => {
|
|
6005
|
-
var
|
|
6014
|
+
var A;
|
|
6006
6015
|
i({
|
|
6007
6016
|
...t.preferences,
|
|
6008
6017
|
mapVisualOptions: {
|
|
6009
|
-
...(
|
|
6018
|
+
...(A = t.preferences) == null ? void 0 : A.mapVisualOptions,
|
|
6010
6019
|
projectionScale: Number(p.target.value)
|
|
6011
6020
|
}
|
|
6012
6021
|
});
|
|
@@ -6022,11 +6031,11 @@ function Ki() {
|
|
|
6022
6031
|
step: 10,
|
|
6023
6032
|
value: ((q = (z = (O = t.preferences) == null ? void 0 : O.mapVisualOptions) == null ? void 0 : z.projectionOffset) == null ? void 0 : q[0]) || 0,
|
|
6024
6033
|
onChange: (p) => {
|
|
6025
|
-
var
|
|
6034
|
+
var A, B, V, G;
|
|
6026
6035
|
i({
|
|
6027
6036
|
...t.preferences,
|
|
6028
6037
|
mapVisualOptions: {
|
|
6029
|
-
...(
|
|
6038
|
+
...(A = t.preferences) == null ? void 0 : A.mapVisualOptions,
|
|
6030
6039
|
projectionOffset: [
|
|
6031
6040
|
Number(p.target.value),
|
|
6032
6041
|
((G = (V = (B = t.preferences) == null ? void 0 : B.mapVisualOptions) == null ? void 0 : V.projectionOffset) == null ? void 0 : G[1]) || 0
|
|
@@ -6045,11 +6054,11 @@ function Ki() {
|
|
|
6045
6054
|
step: 10,
|
|
6046
6055
|
value: ((Q = (_ = (P = t.preferences) == null ? void 0 : P.mapVisualOptions) == null ? void 0 : _.projectionOffset) == null ? void 0 : Q[1]) || 0,
|
|
6047
6056
|
onChange: (p) => {
|
|
6048
|
-
var
|
|
6057
|
+
var A, B, V, G;
|
|
6049
6058
|
i({
|
|
6050
6059
|
...t.preferences,
|
|
6051
6060
|
mapVisualOptions: {
|
|
6052
|
-
...(
|
|
6061
|
+
...(A = t.preferences) == null ? void 0 : A.mapVisualOptions,
|
|
6053
6062
|
projectionOffset: [
|
|
6054
6063
|
((G = (V = (B = t.preferences) == null ? void 0 : B.mapVisualOptions) == null ? void 0 : V.projectionOffset) == null ? void 0 : G[0]) || 0,
|
|
6055
6064
|
Number(p.target.value)
|
|
@@ -6430,7 +6439,7 @@ function lr() {
|
|
|
6430
6439
|
stop: _,
|
|
6431
6440
|
chatStatus: Q,
|
|
6432
6441
|
toolStatus: p,
|
|
6433
|
-
llmUsage:
|
|
6442
|
+
llmUsage: A
|
|
6434
6443
|
} = gs();
|
|
6435
6444
|
Vn({
|
|
6436
6445
|
scrollContainerRef: t,
|
|
@@ -6444,15 +6453,15 @@ function lr() {
|
|
|
6444
6453
|
u(w), b(!0);
|
|
6445
6454
|
}
|
|
6446
6455
|
function V(w) {
|
|
6447
|
-
const
|
|
6456
|
+
const L = {
|
|
6448
6457
|
role: "user",
|
|
6449
6458
|
content: w.title + " " + w.subtitle
|
|
6450
6459
|
};
|
|
6451
|
-
f(
|
|
6460
|
+
f(L);
|
|
6452
6461
|
}
|
|
6453
6462
|
function G() {
|
|
6454
6463
|
return /* @__PURE__ */ n(fa, { children: [
|
|
6455
|
-
/* @__PURE__ */ e(ga, { asChild: !0, children: /* @__PURE__ */ e($, { className: "h-7 p-2", size: "sm", variant: "ghost", children: /* @__PURE__ */ e(
|
|
6464
|
+
/* @__PURE__ */ e(ga, { asChild: !0, children: /* @__PURE__ */ e($, { className: "h-7 p-2", size: "sm", variant: "ghost", children: /* @__PURE__ */ e(ts, { className: "size-3.5 text-muted-foreground/70 hover:text-muted-foreground" }) }) }),
|
|
6456
6465
|
/* @__PURE__ */ n(ya, { align: "end", children: [
|
|
6457
6466
|
/* @__PURE__ */ e(ba, { children: "Options" }),
|
|
6458
6467
|
/* @__PURE__ */ e(xa, {}),
|
|
@@ -6486,7 +6495,7 @@ function lr() {
|
|
|
6486
6495
|
function W() {
|
|
6487
6496
|
return /* @__PURE__ */ n("div", { "data-role": "header", children: [
|
|
6488
6497
|
/* @__PURE__ */ e("div", { className: "text-lg font-semibold", children: "Assistant" }),
|
|
6489
|
-
z && z.length > 0 && /* @__PURE__ */ e("div", { className: "mt-2 flex flex-wrap items-center gap-2", children: z == null ? void 0 : z.map((w,
|
|
6498
|
+
z && z.length > 0 && /* @__PURE__ */ e("div", { className: "mt-2 flex flex-wrap items-center gap-2", children: z == null ? void 0 : z.map((w, L) => /* @__PURE__ */ n(
|
|
6490
6499
|
"div",
|
|
6491
6500
|
{
|
|
6492
6501
|
className: "flex items-center gap-2 rounded-md border border-border bg-muted px-2 py-1 text-xs",
|
|
@@ -6508,7 +6517,7 @@ function lr() {
|
|
|
6508
6517
|
)
|
|
6509
6518
|
]
|
|
6510
6519
|
},
|
|
6511
|
-
|
|
6520
|
+
L
|
|
6512
6521
|
)) }),
|
|
6513
6522
|
(z == null ? void 0 : z.length) === 0 && /* @__PURE__ */ n("div", { className: "mt-2 flex items-center gap-2", children: [
|
|
6514
6523
|
/* @__PURE__ */ e("span", { className: "text-xs text-muted-foreground", children: "Context: None" }),
|
|
@@ -6619,15 +6628,15 @@ function lr() {
|
|
|
6619
6628
|
isLoading: D
|
|
6620
6629
|
}
|
|
6621
6630
|
),
|
|
6622
|
-
|
|
6631
|
+
A && a && /* @__PURE__ */ e("div", { className: "flex h-8 items-center justify-between", children: /* @__PURE__ */ n("div", { className: "text-xs text-muted-foreground", children: [
|
|
6623
6632
|
"Usage: ",
|
|
6624
|
-
|
|
6633
|
+
A.promptTokens,
|
|
6625
6634
|
" prompt tokens,",
|
|
6626
6635
|
" ",
|
|
6627
|
-
|
|
6636
|
+
A.completionTokens,
|
|
6628
6637
|
" completion tokens,",
|
|
6629
6638
|
" ",
|
|
6630
|
-
|
|
6639
|
+
A.totalTokens,
|
|
6631
6640
|
" total tokens"
|
|
6632
6641
|
] }) })
|
|
6633
6642
|
]
|
|
@@ -6671,7 +6680,7 @@ function ir({ authToken: t, onSave: s, onClose: a }) {
|
|
|
6671
6680
|
}
|
|
6672
6681
|
);
|
|
6673
6682
|
}
|
|
6674
|
-
return /* @__PURE__ */ e(vt, { FallbackComponent:
|
|
6683
|
+
return /* @__PURE__ */ e(vt, { FallbackComponent: Ja, children: /* @__PURE__ */ n("section", { className: "flex h-full grow", "data-content": "editor-panel", children: [
|
|
6675
6684
|
/* @__PURE__ */ e(us, {}),
|
|
6676
6685
|
h()
|
|
6677
6686
|
] }) });
|
|
@@ -6767,8 +6776,8 @@ function dr() {
|
|
|
6767
6776
|
{
|
|
6768
6777
|
className: "flex min-w-[250px] max-w-fit flex-col gap-1 p-2",
|
|
6769
6778
|
children: [
|
|
6770
|
-
/* @__PURE__ */ e(
|
|
6771
|
-
/* @__PURE__ */ e(
|
|
6779
|
+
/* @__PURE__ */ e(Ga, { filter: l }),
|
|
6780
|
+
/* @__PURE__ */ e(ja, { filter: l })
|
|
6772
6781
|
]
|
|
6773
6782
|
},
|
|
6774
6783
|
l.id
|
|
@@ -6864,7 +6873,7 @@ function yr({
|
|
|
6864
6873
|
showFooter: s = !0,
|
|
6865
6874
|
...a
|
|
6866
6875
|
}) {
|
|
6867
|
-
return /* @__PURE__ */ e(vt, { FallbackComponent:
|
|
6876
|
+
return /* @__PURE__ */ e(vt, { FallbackComponent: Ja, children: /* @__PURE__ */ n(Gn, { dashboardProps: a, children: [
|
|
6868
6877
|
/* @__PURE__ */ e(Jn, {}),
|
|
6869
6878
|
/* @__PURE__ */ n(Kn, { children: [
|
|
6870
6879
|
/* @__PURE__ */ e(ur, {}),
|
|
@@ -6885,7 +6894,7 @@ export {
|
|
|
6885
6894
|
Sr as SemaphorQueryClient,
|
|
6886
6895
|
yr as Surfboard,
|
|
6887
6896
|
Hl as cleanCard,
|
|
6888
|
-
|
|
6897
|
+
Aa as createSqlGenConfig,
|
|
6889
6898
|
Jl as downloadPdf,
|
|
6890
6899
|
be as fmt,
|
|
6891
6900
|
wr as getColumnDataType,
|
|
@@ -6893,12 +6902,12 @@ export {
|
|
|
6893
6902
|
kr as getFilterValueType,
|
|
6894
6903
|
kt as getFormattedTableNameForQuery,
|
|
6895
6904
|
An as getQualifiedTableName,
|
|
6896
|
-
|
|
6905
|
+
La as getSql,
|
|
6897
6906
|
Mr as invalidateToken,
|
|
6898
6907
|
qs as isBooleanDataType,
|
|
6899
6908
|
Rs as isColumnInSqlGen,
|
|
6900
6909
|
Es as isDateDataType,
|
|
6901
|
-
|
|
6910
|
+
Fa as isNumberDataType,
|
|
6902
6911
|
Fs as isTextDataType,
|
|
6903
6912
|
Dr as resolveDataType,
|
|
6904
6913
|
dt as resolveDatamodelName,
|