react-semaphor 0.0.260 → 0.0.262

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.
@@ -1,13 +1,14 @@
1
- import { J as O, L as Ue, b as z, c as Cs, u as je, j as e, M as Ss, O as ws, P as F, Q as ks, R as zs, U as Fs, V as Ls, W as Ts, X as H, Y as Ce, Z as aa, _ as Ja, $ as Ya, a0 as Xa, a1 as Za, a2 as et, a3 as st, a4 as Gs, f as J, a5 as Re, a6 as at, a7 as ta, a8 as _e, a9 as ts, T as Ds, e as na, g as Is, aa as he, ab as me, ac as xe, ad as pe, ae as Se, af as fe, ag as Q, ah as Ms, G as c, ai as Os, aj as As, ak as Es, w as la, v as ia, t as ue, al as tt, r as nt, N as ra, s as lt, am as it, B as rt, an as oa, ao as ot, S as Vs, z as ct, n as Ks, A as ca, ap as fs, aq as re, ar as Ne, as as He, at as rs, au as da, av as dt, aw as ut, ax as ua, ay as ht, az as mt, aA as xt, aB as pt, aC as ft, aD as gs, aE as gt, aF as ha, aG as qe, aH as js, aI as De, aJ as bs, aK as Ps, aL as jt, aM as bt, aN as yt, aO as vt, aP as Nt, aQ as xs, aR as Ct, aS as Ws, aT as St, aU as Qs, aV as wt, aW as kt, aX as zt, aY as ma, H as Ie, aZ as xa, l as Ft, C as Lt, E as es, d as Tt, h as Dt, a_ as It, i as Mt, o as Ot, a$ as At, m as Et, b0 as Vt, b1 as pa, b2 as fa, b3 as ss, b4 as ga, b5 as as, b6 as Js, b7 as Ge, b8 as Ke, b9 as Pe, ba as ja, K as qt, bb as Rt, bc as _t, bd as ba, be as ya, bf as va, bg as Na, bh as Ca, bi as Sa, bj as os, bk as Fe, bl as Ht, bm as $t, bn as wa, bo as Bt, bp as Ut, bq as ns, br as Gt, bs as Kt, bt as Pt, bu as Ys, bv as Wt, bw as Qt, bx as Le, by as U, bz as G, bA as qs, bB as K, bC as Jt, bD as Yt, bE as Xt, bF as Zt, bG as en, bH as sn, bI as an, bJ as tn, bK as nn, bL as ln } from "./index-TgixBDWy.js";
1
+ import { J as O, L as Ue, b as z, c as Cs, u as je, j as e, M as Ss, O as ws, P as F, Q as ks, R as zs, U as Fs, V as Ls, W as Ts, X as H, Y as Ce, Z as aa, _ as Xa, $ as Za, a0 as et, a1 as st, a2 as at, a3 as tt, a4 as Gs, f as J, a5 as Re, a6 as nt, a7 as ta, a8 as _e, a9 as ts, T as Ds, e as na, g as Is, aa as he, ab as me, ac as xe, ad as pe, ae as Se, af as fe, ag as Q, ah as Ms, G as c, ai as Os, aj as As, ak as Es, w as la, v as ia, t as ue, al as lt, r as it, N as ra, s as rt, am as ot, B as ct, an as oa, ao as dt, S as Vs, z as ut, n as Ks, A as ca, ap as fs, aq as re, ar as Ne, as as He, at as rs, au as da, av as ht, aw as mt, ax as ua, ay as xt, az as pt, aA as ft, aB as gt, aC as jt, aD as gs, aE as bt, aF as ha, aG as qe, aH as js, aI as De, aJ as bs, aK as Ps, aL as yt, aM as vt, aN as Nt, aO as Ct, aP as St, aQ as xs, aR as wt, aS as Ws, aT as kt, aU as Qs, aV as zt, aW as Ft, aX as Lt, aY as ma, H as Ie, aZ as xa, l as Tt, C as Dt, E as es, d as It, h as Mt, a_ as Ot, i as At, o as Et, a$ as Vt, m as qt, b0 as Rt, b1 as pa, b2 as fa, b3 as ss, b4 as ga, b5 as as, b6 as Js, b7 as Ge, b8 as Ke, b9 as Pe, ba as ja, K as _t, bb as Ht, bc as $t, bd as ba, be as ya, bf as va, bg as Na, bh as Ca, bi as Sa, bj as os, bk as Fe, bl as Bt, bm as Ut, bn as wa, bo as Gt, bp as Kt, bq as ns, br as Pt, bs as Wt, bt as Qt, bu as Ys, bv as Jt, bw as Yt, bx as Le, by as U, bz as G, bA as qs, bB as K, bC as Xt, bD as ka, bE as za, bF as Zt, bG as en, bH as sn, bI as an, bJ as tn, bK as nn, bL as ln, bM as rn, bN as on } from "./index-6JXvVFAp.js";
2
2
  import * as ys from "react";
3
- import ge, { useState as V, useMemo as vs, useEffect as Z, useRef as $e, Suspense as rn } from "react";
3
+ import ge, { useState as V, useMemo as vs, useEffect as Z, useRef as $e, Suspense as cn } from "react";
4
+ import "react-dom";
4
5
  /**
5
6
  * @license lucide-react v0.453.0 - ISC
6
7
  *
7
8
  * This source code is licensed under the ISC license.
8
9
  * See the LICENSE file in the root directory of this source tree.
9
10
  */
10
- const on = O("Box", [
11
+ const dn = O("Box", [
11
12
  [
12
13
  "path",
13
14
  {
@@ -24,7 +25,7 @@ const on = O("Box", [
24
25
  * This source code is licensed under the ISC license.
25
26
  * See the LICENSE file in the root directory of this source tree.
26
27
  */
27
- const cn = O("ChartArea", [
28
+ const un = O("ChartArea", [
28
29
  ["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
29
30
  [
30
31
  "path",
@@ -62,7 +63,7 @@ const _s = O("ChartLine", [
62
63
  * This source code is licensed under the ISC license.
63
64
  * See the LICENSE file in the root directory of this source tree.
64
65
  */
65
- const ka = O("ChartNoAxesGantt", [
66
+ const Fa = O("ChartNoAxesGantt", [
66
67
  ["path", { d: "M8 6h10", key: "9lnwnk" }],
67
68
  ["path", { d: "M6 12h9", key: "1g9pqf" }],
68
69
  ["path", { d: "M11 18h7", key: "c8dzvl" }]
@@ -73,7 +74,7 @@ const ka = O("ChartNoAxesGantt", [
73
74
  * This source code is licensed under the ISC license.
74
75
  * See the LICENSE file in the root directory of this source tree.
75
76
  */
76
- const za = O("ChartPie", [
77
+ const La = O("ChartPie", [
77
78
  [
78
79
  "path",
79
80
  {
@@ -89,7 +90,7 @@ const za = O("ChartPie", [
89
90
  * This source code is licensed under the ISC license.
90
91
  * See the LICENSE file in the root directory of this source tree.
91
92
  */
92
- const Fa = O("ChartScatter", [
93
+ const Ta = O("ChartScatter", [
93
94
  ["circle", { cx: "7.5", cy: "7.5", r: ".5", fill: "currentColor", key: "kqv944" }],
94
95
  ["circle", { cx: "18.5", cy: "5.5", r: ".5", fill: "currentColor", key: "lysivs" }],
95
96
  ["circle", { cx: "11.5", cy: "11.5", r: ".5", fill: "currentColor", key: "byv1b8" }],
@@ -103,7 +104,7 @@ const Fa = O("ChartScatter", [
103
104
  * This source code is licensed under the ISC license.
104
105
  * See the LICENSE file in the root directory of this source tree.
105
106
  */
106
- const dn = O("ChevronsUpDown", [
107
+ const hn = O("ChevronsUpDown", [
107
108
  ["path", { d: "m7 15 5 5 5-5", key: "1hf1tw" }],
108
109
  ["path", { d: "m7 9 5-5 5 5", key: "sgt6xg" }]
109
110
  ]);
@@ -113,7 +114,7 @@ const dn = O("ChevronsUpDown", [
113
114
  * This source code is licensed under the ISC license.
114
115
  * See the LICENSE file in the root directory of this source tree.
115
116
  */
116
- const un = O("CircleX", [
117
+ const mn = O("CircleX", [
117
118
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
118
119
  ["path", { d: "m15 9-6 6", key: "1uzhvr" }],
119
120
  ["path", { d: "m9 9 6 6", key: "z0biqf" }]
@@ -124,7 +125,7 @@ const un = O("CircleX", [
124
125
  * This source code is licensed under the ISC license.
125
126
  * See the LICENSE file in the root directory of this source tree.
126
127
  */
127
- const hn = O("CopyPlus", [
128
+ const xn = O("CopyPlus", [
128
129
  ["line", { x1: "15", x2: "15", y1: "12", y2: "18", key: "1p7wdc" }],
129
130
  ["line", { x1: "12", x2: "18", y1: "15", y2: "15", key: "1nscbv" }],
130
131
  ["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
@@ -136,7 +137,7 @@ const hn = O("CopyPlus", [
136
137
  * This source code is licensed under the ISC license.
137
138
  * See the LICENSE file in the root directory of this source tree.
138
139
  */
139
- const mn = O("Database", [
140
+ const pn = O("Database", [
140
141
  ["ellipse", { cx: "12", cy: "5", rx: "9", ry: "3", key: "msslwz" }],
141
142
  ["path", { d: "M3 5V19A9 3 0 0 0 21 19V5", key: "1wlel7" }],
142
143
  ["path", { d: "M3 12A9 3 0 0 0 21 12", key: "mv7ke4" }]
@@ -147,7 +148,7 @@ const mn = O("Database", [
147
148
  * This source code is licensed under the ISC license.
148
149
  * See the LICENSE file in the root directory of this source tree.
149
150
  */
150
- const xn = O("EllipsisVertical", [
151
+ const fn = O("EllipsisVertical", [
151
152
  ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
152
153
  ["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
153
154
  ["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
@@ -158,7 +159,7 @@ const xn = O("EllipsisVertical", [
158
159
  * This source code is licensed under the ISC license.
159
160
  * See the LICENSE file in the root directory of this source tree.
160
161
  */
161
- const pn = O("Eraser", [
162
+ const gn = O("Eraser", [
162
163
  [
163
164
  "path",
164
165
  {
@@ -175,7 +176,7 @@ const pn = O("Eraser", [
175
176
  * This source code is licensed under the ISC license.
176
177
  * See the LICENSE file in the root directory of this source tree.
177
178
  */
178
- const fn = O("EyeClosed", [
179
+ const jn = O("EyeClosed", [
179
180
  ["path", { d: "m15 18-.722-3.25", key: "1j64jw" }],
180
181
  ["path", { d: "M2 8a10.645 10.645 0 0 0 20 0", key: "1e7gxb" }],
181
182
  ["path", { d: "m20 15-1.726-2.05", key: "1cnuld" }],
@@ -188,7 +189,7 @@ const fn = O("EyeClosed", [
188
189
  * This source code is licensed under the ISC license.
189
190
  * See the LICENSE file in the root directory of this source tree.
190
191
  */
191
- const gn = O("Eye", [
192
+ const bn = O("Eye", [
192
193
  [
193
194
  "path",
194
195
  {
@@ -204,7 +205,7 @@ const gn = O("Eye", [
204
205
  * This source code is licensed under the ISC license.
205
206
  * See the LICENSE file in the root directory of this source tree.
206
207
  */
207
- const jn = O("Glasses", [
208
+ const yn = O("Glasses", [
208
209
  ["circle", { cx: "6", cy: "15", r: "4", key: "vux9w4" }],
209
210
  ["circle", { cx: "18", cy: "15", r: "4", key: "18o8ve" }],
210
211
  ["path", { d: "M14 15a2 2 0 0 0-2-2 2 2 0 0 0-2 2", key: "1ag4bs" }],
@@ -217,7 +218,7 @@ const jn = O("Glasses", [
217
218
  * This source code is licensed under the ISC license.
218
219
  * See the LICENSE file in the root directory of this source tree.
219
220
  */
220
- const bn = O("Hammer", [
221
+ const vn = O("Hammer", [
221
222
  ["path", { d: "m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9", key: "eefl8a" }],
222
223
  ["path", { d: "m18 15 4-4", key: "16gjal" }],
223
224
  [
@@ -234,7 +235,7 @@ const bn = O("Hammer", [
234
235
  * This source code is licensed under the ISC license.
235
236
  * See the LICENSE file in the root directory of this source tree.
236
237
  */
237
- const yn = O("Hash", [
238
+ const Nn = O("Hash", [
238
239
  ["line", { x1: "4", x2: "20", y1: "9", y2: "9", key: "4lhtct" }],
239
240
  ["line", { x1: "4", x2: "20", y1: "15", y2: "15", key: "vyu0kd" }],
240
241
  ["line", { x1: "10", x2: "8", y1: "3", y2: "21", key: "1ggp8o" }],
@@ -246,7 +247,7 @@ const yn = O("Hash", [
246
247
  * This source code is licensed under the ISC license.
247
248
  * See the LICENSE file in the root directory of this source tree.
248
249
  */
249
- const vn = O("House", [
250
+ const Cn = O("House", [
250
251
  ["path", { d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8", key: "5wwlr5" }],
251
252
  [
252
253
  "path",
@@ -262,7 +263,7 @@ const vn = O("House", [
262
263
  * This source code is licensed under the ISC license.
263
264
  * See the LICENSE file in the root directory of this source tree.
264
265
  */
265
- const Nn = O("Key", [
266
+ const Sn = O("Key", [
266
267
  ["path", { d: "m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4", key: "g0fldk" }],
267
268
  ["path", { d: "m21 2-9.6 9.6", key: "1j0ho8" }],
268
269
  ["circle", { cx: "7.5", cy: "15.5", r: "5.5", key: "yqb3hr" }]
@@ -273,7 +274,7 @@ const Nn = O("Key", [
273
274
  * This source code is licensed under the ISC license.
274
275
  * See the LICENSE file in the root directory of this source tree.
275
276
  */
276
- const Cn = O("ListEnd", [
277
+ const wn = O("ListEnd", [
277
278
  ["path", { d: "M16 12H3", key: "1a2rj7" }],
278
279
  ["path", { d: "M16 6H3", key: "1wxfjs" }],
279
280
  ["path", { d: "M10 18H3", key: "13769t" }],
@@ -286,7 +287,7 @@ const Cn = O("ListEnd", [
286
287
  * This source code is licensed under the ISC license.
287
288
  * See the LICENSE file in the root directory of this source tree.
288
289
  */
289
- const Sn = O("ListStart", [
290
+ const kn = O("ListStart", [
290
291
  ["path", { d: "M16 12H3", key: "1a2rj7" }],
291
292
  ["path", { d: "M16 18H3", key: "12xzn7" }],
292
293
  ["path", { d: "M10 6H3", key: "lf8lx7" }],
@@ -299,7 +300,7 @@ const Sn = O("ListStart", [
299
300
  * This source code is licensed under the ISC license.
300
301
  * See the LICENSE file in the root directory of this source tree.
301
302
  */
302
- const wn = O("ListX", [
303
+ const zn = O("ListX", [
303
304
  ["path", { d: "M11 12H3", key: "51ecnj" }],
304
305
  ["path", { d: "M16 6H3", key: "1wxfjs" }],
305
306
  ["path", { d: "M16 18H3", key: "12xzn7" }],
@@ -321,7 +322,7 @@ const Be = O("LoaderCircle", [
321
322
  * This source code is licensed under the ISC license.
322
323
  * See the LICENSE file in the root directory of this source tree.
323
324
  */
324
- const kn = O("MessageSquareMore", [
325
+ const Fn = O("MessageSquareMore", [
325
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" }],
326
327
  ["path", { d: "M8 10h.01", key: "19clt8" }],
327
328
  ["path", { d: "M12 10h.01", key: "1nrarc" }],
@@ -333,7 +334,7 @@ const kn = O("MessageSquareMore", [
333
334
  * This source code is licensed under the ISC license.
334
335
  * See the LICENSE file in the root directory of this source tree.
335
336
  */
336
- const zn = O("Network", [
337
+ const Ln = O("Network", [
337
338
  ["rect", { x: "16", y: "16", width: "6", height: "6", rx: "1", key: "4q2zg0" }],
338
339
  ["rect", { x: "2", y: "16", width: "6", height: "6", rx: "1", key: "8cvhb9" }],
339
340
  ["rect", { x: "9", y: "2", width: "6", height: "6", rx: "1", key: "1egb70" }],
@@ -346,7 +347,7 @@ const zn = O("Network", [
346
347
  * This source code is licensed under the ISC license.
347
348
  * See the LICENSE file in the root directory of this source tree.
348
349
  */
349
- const La = O("Pencil", [
350
+ const Da = O("Pencil", [
350
351
  [
351
352
  "path",
352
353
  {
@@ -362,7 +363,7 @@ const La = O("Pencil", [
362
363
  * This source code is licensed under the ISC license.
363
364
  * See the LICENSE file in the root directory of this source tree.
364
365
  */
365
- const Fn = O("Play", [
366
+ const Tn = O("Play", [
366
367
  ["polygon", { points: "6 3 20 12 6 21 6 3", key: "1oa8hb" }]
367
368
  ]);
368
369
  /**
@@ -371,7 +372,7 @@ const Fn = O("Play", [
371
372
  * This source code is licensed under the ISC license.
372
373
  * See the LICENSE file in the root directory of this source tree.
373
374
  */
374
- const Ln = O("Plug2", [
375
+ const Dn = O("Plug2", [
375
376
  ["path", { d: "M9 2v6", key: "17ngun" }],
376
377
  ["path", { d: "M15 2v6", key: "s7yy2p" }],
377
378
  ["path", { d: "M12 17v5", key: "bb1du9" }],
@@ -384,7 +385,7 @@ const Ln = O("Plug2", [
384
385
  * This source code is licensed under the ISC license.
385
386
  * See the LICENSE file in the root directory of this source tree.
386
387
  */
387
- const Tn = O("Save", [
388
+ const In = O("Save", [
388
389
  [
389
390
  "path",
390
391
  {
@@ -401,7 +402,7 @@ const Tn = O("Save", [
401
402
  * This source code is licensed under the ISC license.
402
403
  * See the LICENSE file in the root directory of this source tree.
403
404
  */
404
- const Ta = O("Shapes", [
405
+ const Ia = O("Shapes", [
405
406
  [
406
407
  "path",
407
408
  {
@@ -418,7 +419,7 @@ const Ta = O("Shapes", [
418
419
  * This source code is licensed under the ISC license.
419
420
  * See the LICENSE file in the root directory of this source tree.
420
421
  */
421
- const Dn = O("ShieldQuestion", [
422
+ const Mn = O("ShieldQuestion", [
422
423
  [
423
424
  "path",
424
425
  {
@@ -435,7 +436,7 @@ const Dn = O("ShieldQuestion", [
435
436
  * This source code is licensed under the ISC license.
436
437
  * See the LICENSE file in the root directory of this source tree.
437
438
  */
438
- const In = O("Sigma", [
439
+ const On = O("Sigma", [
439
440
  [
440
441
  "path",
441
442
  {
@@ -450,7 +451,7 @@ const In = O("Sigma", [
450
451
  * This source code is licensed under the ISC license.
451
452
  * See the LICENSE file in the root directory of this source tree.
452
453
  */
453
- const Mn = O("SwatchBook", [
454
+ const An = O("SwatchBook", [
454
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" }],
455
456
  ["path", { d: "M16.7 13H19a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H7", key: "11i5po" }],
456
457
  ["path", { d: "M 7 17h.01", key: "1euzgo" }],
@@ -468,7 +469,7 @@ const Mn = O("SwatchBook", [
468
469
  * This source code is licensed under the ISC license.
469
470
  * See the LICENSE file in the root directory of this source tree.
470
471
  */
471
- const On = O("Tag", [
472
+ const En = O("Tag", [
472
473
  [
473
474
  "path",
474
475
  {
@@ -484,7 +485,7 @@ const On = O("Tag", [
484
485
  * This source code is licensed under the ISC license.
485
486
  * See the LICENSE file in the root directory of this source tree.
486
487
  */
487
- const An = O("ToggleLeft", [
488
+ const Vn = O("ToggleLeft", [
488
489
  ["rect", { width: "20", height: "12", x: "2", y: "6", rx: "6", ry: "6", key: "f2vt7d" }],
489
490
  ["circle", { cx: "8", cy: "12", r: "2", key: "1nvbw3" }]
490
491
  ]);
@@ -505,11 +506,11 @@ const Hs = O("Type", [
505
506
  * This source code is licensed under the ISC license.
506
507
  * See the LICENSE file in the root directory of this source tree.
507
508
  */
508
- const En = O("User", [
509
+ const qn = O("User", [
509
510
  ["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
510
511
  ["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
511
512
  ]);
512
- function Da(s) {
513
+ function Ma(s) {
513
514
  var n;
514
515
  return {
515
516
  ...s,
@@ -521,14 +522,14 @@ function Da(s) {
521
522
  var o;
522
523
  return {
523
524
  ...i,
524
- cards: (o = i.cards) == null ? void 0 : o.map((l) => Vn(l))
525
+ cards: (o = i.cards) == null ? void 0 : o.map((l) => Rn(l))
525
526
  };
526
527
  })
527
528
  };
528
529
  })
529
530
  };
530
531
  }
531
- function Vn(s) {
532
+ function Rn(s) {
532
533
  var n, a, t, i;
533
534
  return {
534
535
  ...s,
@@ -543,12 +544,12 @@ function Vn(s) {
543
544
  }))
544
545
  }
545
546
  },
546
- customCfg: qn(s.customCfg),
547
+ customCfg: _n(s.customCfg),
547
548
  // if customCfg is present, clean it, otherwise return null{
548
549
  data: []
549
550
  };
550
551
  }
551
- function qn(s) {
552
+ function _n(s) {
552
553
  var n, a;
553
554
  return s ? {
554
555
  ...s,
@@ -562,7 +563,7 @@ function qn(s) {
562
563
  }
563
564
  } : null;
564
565
  }
565
- async function Rn(s, n, a, t) {
566
+ async function Hn(s, n, a, t) {
566
567
  if (!t)
567
568
  return null;
568
569
  const i = JSON.stringify(n);
@@ -586,19 +587,19 @@ async function Ns(s, n) {
586
587
  operation: "update"
587
588
  });
588
589
  }
589
- async function _n(s, n) {
590
+ async function $n(s, n) {
590
591
  return n ? await Ue("https://semaphor.cloud/api/v1/lens", n, {
591
592
  operation: "delete",
592
593
  lensId: s
593
594
  }) : null;
594
595
  }
595
- function Hn() {
596
+ function Bn() {
596
597
  const [s, n] = V(""), [a, t] = V(!1), i = z((u) => u.lenses), { setLenses: o, setSelectedLensId: l } = Cs(), [r, d] = V(!1), [p, h] = V(!1), y = z((u) => u.dashboard), x = z((u) => u.filterValues), { authToken: m } = je();
597
598
  async function f() {
598
599
  d(!0);
599
- const u = Da(
600
+ const u = Ma(
600
601
  y
601
- ), k = await Rn(
602
+ ), k = await Hn(
602
603
  s,
603
604
  u,
604
605
  x,
@@ -653,13 +654,13 @@ function Hn() {
653
654
  ] })
654
655
  ] });
655
656
  }
656
- function $n() {
657
+ function Un() {
657
658
  const [s, n] = V(!1), a = z((h) => h.lenses), t = z((h) => h.selectedLensId), { setLenses: i, setSelectedLensId: o } = Cs(), { authToken: l } = je();
658
659
  async function r(h) {
659
660
  o(h);
660
661
  }
661
662
  async function d(h) {
662
- if (await _n(h, l == null ? void 0 : l.accessToken)) {
663
+ if (await $n(h, l == null ? void 0 : l.accessToken)) {
663
664
  const x = a == null ? void 0 : a.filter((m) => m.id !== h);
664
665
  i(x || []), o("original");
665
666
  }
@@ -687,13 +688,13 @@ function $n() {
687
688
  await Ns(f, l == null ? void 0 : l.accessToken);
688
689
  }
689
690
  }
690
- return /* @__PURE__ */ e.jsxs(Ja, { open: s, onOpenChange: n, children: [
691
- /* @__PURE__ */ e.jsx(Ya, { asChild: !0, children: /* @__PURE__ */ e.jsx(F, { variant: "ghost", className: "h-7 p-2", children: /* @__PURE__ */ e.jsx(jn, { className: "h-4 w-4", strokeWidth: 1.5 }) }) }),
692
- /* @__PURE__ */ e.jsxs(Xa, { align: "end", className: "w-60", children: [
693
- /* @__PURE__ */ e.jsx(Za, { className: "px-3", children: "Lenses" }),
694
- /* @__PURE__ */ e.jsx(et, {}),
691
+ return /* @__PURE__ */ e.jsxs(Xa, { open: s, onOpenChange: n, children: [
692
+ /* @__PURE__ */ e.jsx(Za, { asChild: !0, children: /* @__PURE__ */ e.jsx(F, { variant: "ghost", className: "h-7 p-2", children: /* @__PURE__ */ e.jsx(yn, { className: "h-4 w-4", strokeWidth: 1.5 }) }) }),
693
+ /* @__PURE__ */ e.jsxs(et, { align: "end", className: "w-60", children: [
694
+ /* @__PURE__ */ e.jsx(st, { className: "px-3", children: "Lenses" }),
695
+ /* @__PURE__ */ e.jsx(at, {}),
695
696
  /* @__PURE__ */ e.jsxs(
696
- st,
697
+ tt,
697
698
  {
698
699
  value: t,
699
700
  onValueChange: r,
@@ -702,13 +703,13 @@ function $n() {
702
703
  a == null ? void 0 : a.map((h) => /* @__PURE__ */ e.jsxs(
703
704
  Gs,
704
705
  {
705
- className: "group flex justify-between",
706
+ className: "group flex justify-between gap-2",
706
707
  value: h.id,
707
708
  children: [
708
709
  /* @__PURE__ */ e.jsx("p", { children: h.name }),
709
710
  /* @__PURE__ */ e.jsxs("span", { className: "flex items-center gap-3", children: [
710
711
  /* @__PURE__ */ e.jsx(
711
- vn,
712
+ Cn,
712
713
  {
713
714
  onClick: (y) => {
714
715
  y.preventDefault(), p(h);
@@ -744,7 +745,7 @@ function $n() {
744
745
  ] })
745
746
  ] });
746
747
  }
747
- function Bn() {
748
+ function Gn() {
748
749
  const { authToken: s } = je(), n = z((b) => b.lenses), a = z((b) => b.selectedLensId), t = n == null ? void 0 : n.find((b) => b.id === a), i = z((b) => b.dashboard);
749
750
  z((b) => b.selectedSheetId);
750
751
  const o = z(
@@ -758,7 +759,7 @@ function Bn() {
758
759
  ), { addFrame: m, setSelectedFrameId: f } = z(
759
760
  (b) => b.actions
760
761
  ), { getSelectedSheet: u, setIsDashboardEditing: k, setShowDashboardJSON: D } = z((b) => b.actions), I = u(), { tenantId: N, endUserId: M } = vs(
761
- () => at(s == null ? void 0 : s.accessToken),
762
+ () => nt(s == null ? void 0 : s.accessToken),
762
763
  [s == null ? void 0 : s.accessToken]
763
764
  ), A = vs(() => N || M, [N, M]), j = () => {
764
765
  if (!o || !I)
@@ -790,7 +791,7 @@ function Bn() {
790
791
  async function v() {
791
792
  if (r(!0), !a || !t)
792
793
  return;
793
- const b = Da(
794
+ const b = Ma(
794
795
  i
795
796
  ), q = JSON.stringify(b), $ = {
796
797
  ...t,
@@ -807,8 +808,8 @@ function Bn() {
807
808
  children: [
808
809
  !p && /* @__PURE__ */ e.jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ e.jsx(H, { children: t == null ? void 0 : t.name }) }),
809
810
  /* @__PURE__ */ e.jsxs("div", { className: "flex gap-2", children: [
810
- o && !p && A && /* @__PURE__ */ e.jsx(Hn, {}),
811
- !p && A && /* @__PURE__ */ e.jsx($n, {}),
811
+ o && !p && A && /* @__PURE__ */ e.jsx(Bn, {}),
812
+ !p && A && /* @__PURE__ */ e.jsx(Un, {}),
812
813
  o && !p && /* @__PURE__ */ e.jsxs(
813
814
  F,
814
815
  {
@@ -830,7 +831,7 @@ function Bn() {
830
831
  className: "h-7 p-2",
831
832
  onClick: S,
832
833
  size: "sm",
833
- children: /* @__PURE__ */ e.jsx(La, { className: "h-4 w-4", strokeWidth: 1.5 })
834
+ children: /* @__PURE__ */ e.jsx(Da, { className: "h-4 w-4", strokeWidth: 1.5 })
834
835
  }
835
836
  ),
836
837
  o && !p && /* @__PURE__ */ e.jsx(
@@ -854,7 +855,7 @@ function Bn() {
854
855
  disabled: l,
855
856
  onClick: v,
856
857
  size: "sm",
857
- children: /* @__PURE__ */ e.jsx(Tn, { className: "h-4 w-4", strokeWidth: 1.5 })
858
+ children: /* @__PURE__ */ e.jsx(In, { className: "h-4 w-4", strokeWidth: 1.5 })
858
859
  }
859
860
  ),
860
861
  !h && !p && o && /* @__PURE__ */ e.jsx(
@@ -890,15 +891,15 @@ function Ve({
890
891
  const y = t ? "Loading..." : i ? "Error" : a;
891
892
  function x() {
892
893
  if (s === "Connection")
893
- return /* @__PURE__ */ e.jsx(Ln, { className: "size-4 rotate-90" });
894
+ return /* @__PURE__ */ e.jsx(Dn, { className: "size-4 rotate-90" });
894
895
  if (s === "Database")
895
- return /* @__PURE__ */ e.jsx(mn, { className: "size-4" });
896
+ return /* @__PURE__ */ e.jsx(pn, { className: "size-4" });
896
897
  if (s === "Schema")
897
- return /* @__PURE__ */ e.jsx(zn, { className: "size-4" });
898
+ return /* @__PURE__ */ e.jsx(Ln, { className: "size-4" });
898
899
  if (s === "Table")
899
900
  return /* @__PURE__ */ e.jsx(Ms, { className: "size-4" });
900
901
  if (s === "Model")
901
- return /* @__PURE__ */ e.jsx(on, { className: "size-4" });
902
+ return /* @__PURE__ */ e.jsx(dn, { className: "size-4" });
902
903
  }
903
904
  return /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
904
905
  p && /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: o ? /* @__PURE__ */ e.jsxs(Ds, { children: [
@@ -932,7 +933,7 @@ function Ve({
932
933
  ] })
933
934
  ] });
934
935
  }
935
- function Un({ column: s }) {
936
+ function Kn({ column: s }) {
936
937
  const [n, a] = V(!1), t = c((m) => m.selectedTableName), i = c(
937
938
  (m) => m.selectedSchemaName
938
939
  ), o = c(
@@ -997,7 +998,7 @@ function Un({ column: s }) {
997
998
  ] });
998
999
  }
999
1000
  return /* @__PURE__ */ e.jsxs(Os, { openDelay: 0, open: n, onOpenChange: a, children: [
1000
- /* @__PURE__ */ e.jsx(As, { asChild: !0, children: /* @__PURE__ */ e.jsx(xn, { className: "invisible size-3.5 cursor-pointer text-foreground/40 group-hover:visible" }) }),
1001
+ /* @__PURE__ */ e.jsx(As, { asChild: !0, children: /* @__PURE__ */ e.jsx(fn, { className: "invisible size-3.5 cursor-pointer text-foreground/40 group-hover:visible" }) }),
1001
1002
  /* @__PURE__ */ e.jsx(
1002
1003
  Es,
1003
1004
  {
@@ -1008,19 +1009,19 @@ function Un({ column: s }) {
1008
1009
  )
1009
1010
  ] });
1010
1011
  }
1011
- function Ia({ column: s }) {
1012
+ function Oa({ column: s }) {
1012
1013
  return /* @__PURE__ */ e.jsxs(Ds, { children: [
1013
- /* @__PURE__ */ e.jsx(tt, { asChild: !0, children: nt.includes(s.data_type.toLowerCase()) ? (
1014
+ /* @__PURE__ */ e.jsx(lt, { asChild: !0, children: it.includes(s.data_type.toLowerCase()) ? (
1014
1015
  // <span className=" font-thin">T</span>
1015
1016
  /* @__PURE__ */ e.jsx(Hs, { className: "size-3" })
1016
1017
  ) : ra.includes(s.data_type.toLowerCase()) ? (
1017
1018
  //
1018
- /* @__PURE__ */ e.jsx(yn, { className: "size-3" })
1019
- ) : lt.includes(s.data_type.toLowerCase()) ? /* @__PURE__ */ e.jsx(it, { className: "size-3" }) : rt.includes(s.data_type.toLowerCase()) ? /* @__PURE__ */ e.jsx(An, { className: "size-3" }) : /* @__PURE__ */ e.jsx(Dn, { className: "size-3" }) }),
1019
+ /* @__PURE__ */ e.jsx(Nn, { className: "size-3" })
1020
+ ) : rt.includes(s.data_type.toLowerCase()) ? /* @__PURE__ */ e.jsx(ot, { className: "size-3" }) : ct.includes(s.data_type.toLowerCase()) ? /* @__PURE__ */ e.jsx(Vn, { className: "size-3" }) : /* @__PURE__ */ e.jsx(Mn, { className: "size-3" }) }),
1020
1021
  /* @__PURE__ */ e.jsx(Is, { children: /* @__PURE__ */ e.jsx("p", { className: "font-mono text-xs", children: s.data_type }) })
1021
1022
  ] });
1022
1023
  }
1023
- function Gn({
1024
+ function Pn({
1024
1025
  schemaName: s,
1025
1026
  tableName: n,
1026
1027
  columns: a,
@@ -1113,7 +1114,7 @@ function Gn({
1113
1114
  variant: "outline",
1114
1115
  className: "h-9 px-2",
1115
1116
  children: /* @__PURE__ */ e.jsx(
1116
- ot,
1117
+ dt,
1117
1118
  {
1118
1119
  className: J("size-4", {
1119
1120
  "text-primary": N(),
@@ -1132,7 +1133,7 @@ function Gn({
1132
1133
  variant: "secondary",
1133
1134
  className: "flex",
1134
1135
  children: [
1135
- t !== "Success" ? /* @__PURE__ */ e.jsx(Be, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" }) : /* @__PURE__ */ e.jsx(Mn, { className: "mr-2 size-4" }),
1136
+ t !== "Success" ? /* @__PURE__ */ e.jsx(Be, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" }) : /* @__PURE__ */ e.jsx(An, { className: "mr-2 size-4" }),
1136
1137
  "Top 10"
1137
1138
  ]
1138
1139
  }
@@ -1146,7 +1147,7 @@ function Gn({
1146
1147
  variant: "secondary",
1147
1148
  className: "flex",
1148
1149
  children: [
1149
- t !== "Success" ? /* @__PURE__ */ e.jsx(Be, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" }) : /* @__PURE__ */ e.jsx(In, { className: "mr-2 size-4" }),
1150
+ t !== "Success" ? /* @__PURE__ */ e.jsx(Be, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" }) : /* @__PURE__ */ e.jsx(On, { className: "mr-2 size-4" }),
1150
1151
  "Count"
1151
1152
  ]
1152
1153
  }
@@ -1164,12 +1165,12 @@ function Gn({
1164
1165
  className: J(
1165
1166
  "group mx-3 flex cursor-pointer items-center justify-between rounded px-2 py-[6px] text-sm transition-colors hover:bg-muted/50",
1166
1167
  {
1167
- "bg-muted": ct(v, i)
1168
+ "bg-muted": ut(v, i)
1168
1169
  }
1169
1170
  ),
1170
1171
  children: [
1171
1172
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center space-x-2", children: [
1172
- /* @__PURE__ */ e.jsx(Ia, { column: v }),
1173
+ /* @__PURE__ */ e.jsx(Oa, { column: v }),
1173
1174
  /* @__PURE__ */ e.jsx("span", { children: v.column_name })
1174
1175
  ] }),
1175
1176
  /* @__PURE__ */ e.jsx(
@@ -1177,7 +1178,7 @@ function Gn({
1177
1178
  {
1178
1179
  onClick: (b) => b.stopPropagation(),
1179
1180
  className: "flex items-center justify-end",
1180
- children: ra.includes(v.data_type) && /* @__PURE__ */ e.jsx(Un, { column: v })
1181
+ children: ra.includes(v.data_type) && /* @__PURE__ */ e.jsx(Kn, { column: v })
1181
1182
  }
1182
1183
  )
1183
1184
  ]
@@ -1422,7 +1423,7 @@ function Me(s, n) {
1422
1423
  handleSchemaChange: ke
1423
1424
  };
1424
1425
  }
1425
- function Ma({
1426
+ function Aa({
1426
1427
  ColumnsComponent: s
1427
1428
  }) {
1428
1429
  var se;
@@ -1466,7 +1467,7 @@ function Ma({
1466
1467
  } = Me();
1467
1468
  function P() {
1468
1469
  return s ? s(le, W, x) : /* @__PURE__ */ e.jsx(
1469
- Gn,
1470
+ Pn,
1470
1471
  {
1471
1472
  schemaName: le,
1472
1473
  tableName: W,
@@ -1581,14 +1582,14 @@ function Ma({
1581
1582
  variant: "secondary",
1582
1583
  className: "w-full",
1583
1584
  children: [
1584
- /* @__PURE__ */ e.jsx(kn, { className: "mr-2 size-4" }),
1585
+ /* @__PURE__ */ e.jsx(Fn, { className: "mr-2 size-4" }),
1585
1586
  "Help"
1586
1587
  ]
1587
1588
  }
1588
1589
  ) })
1589
1590
  ] });
1590
1591
  }
1591
- function Kn(s) {
1592
+ function Wn(s) {
1592
1593
  const n = s.toUpperCase().indexOf("WHERE"), a = s.toUpperCase().indexOf("GROUP BY"), t = s.toUpperCase().indexOf("LIMIT"), i = s.toUpperCase().indexOf("ORDER BY");
1593
1594
  let o = s.length;
1594
1595
  if (i !== -1 && (o = i), t !== -1 && t < o && (o = t), n !== -1) {
@@ -1604,14 +1605,14 @@ function Kn(s) {
1604
1605
  return `${l} {{ filters | where }} ${r}`;
1605
1606
  }
1606
1607
  }
1607
- function Pn({
1608
+ function Qn({
1608
1609
  error: s,
1609
1610
  setShowAIDialog: n,
1610
1611
  setUserInputforAI: a,
1611
1612
  setTriggerAIRun: t
1612
1613
  }) {
1613
1614
  return /* @__PURE__ */ e.jsxs(Os, { openDelay: 0, children: [
1614
- /* @__PURE__ */ e.jsx(As, { asChild: !0, children: /* @__PURE__ */ e.jsx(F, { variant: "link", className: "h-5 p-0", children: /* @__PURE__ */ e.jsx(un, { className: "h-4 w-4 text-red-500" }) }) }),
1615
+ /* @__PURE__ */ e.jsx(As, { asChild: !0, children: /* @__PURE__ */ e.jsx(F, { variant: "link", className: "h-5 p-0", children: /* @__PURE__ */ e.jsx(mn, { className: "h-4 w-4 text-red-500" }) }) }),
1615
1616
  /* @__PURE__ */ e.jsx(Es, { align: "start", className: "min-w-fit max-w-[500px]", 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: [
1616
1617
  /* @__PURE__ */ e.jsx(Vs, { 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 }) }),
1617
1618
  /* @__PURE__ */ e.jsxs(
@@ -1623,7 +1624,7 @@ function Pn({
1623
1624
  size: "sm",
1624
1625
  variant: "outline",
1625
1626
  children: [
1626
- /* @__PURE__ */ e.jsx(bn, { className: "mr-2 h-4 w-4" }),
1627
+ /* @__PURE__ */ e.jsx(vn, { className: "mr-2 h-4 w-4" }),
1627
1628
  "Debug with AI"
1628
1629
  ]
1629
1630
  }
@@ -1631,7 +1632,7 @@ function Pn({
1631
1632
  ] }) }) })
1632
1633
  ] });
1633
1634
  }
1634
- function Wn({
1635
+ function Jn({
1635
1636
  text: s,
1636
1637
  onCheckedChange: n,
1637
1638
  checked: a
@@ -1641,7 +1642,7 @@ function Wn({
1641
1642
  /* @__PURE__ */ e.jsx("label", { className: "text-xs leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70", children: s })
1642
1643
  ] });
1643
1644
  }
1644
- function Qn() {
1645
+ function Yn() {
1645
1646
  const { authToken: s } = je(), n = c(
1646
1647
  (o) => o.selectedConnectionId
1647
1648
  ), { data: a } = re({
@@ -1657,8 +1658,8 @@ function Qn() {
1657
1658
  );
1658
1659
  return t == null ? void 0 : t.type;
1659
1660
  }
1660
- function Jn() {
1661
- const { authToken: s } = je(), n = $e(null), a = c((d) => d.applyFilters), [t, i] = V(""), o = c((d) => d.filterValues), l = c((d) => d.card.sql), r = Qn();
1661
+ function Xn() {
1662
+ const { authToken: s } = je(), n = $e(null), a = c((d) => d.applyFilters), [t, i] = V(""), o = c((d) => d.filterValues), l = c((d) => d.card.sql), r = Yn();
1662
1663
  return /* @__PURE__ */ e.jsxs(
1663
1664
  Os,
1664
1665
  {
@@ -1686,13 +1687,13 @@ function Jn() {
1686
1687
  /* @__PURE__ */ e.jsx(
1687
1688
  da,
1688
1689
  {
1689
- onClick: () => dt(n),
1690
+ onClick: () => ht(n),
1690
1691
  className: "ml-3 inline-block h-4 w-4 opacity-70 hover:cursor-pointer hover:opacity-100"
1691
1692
  }
1692
1693
  )
1693
1694
  ] }) }) }),
1694
1695
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 pt-2", children: [
1695
- /* @__PURE__ */ e.jsx(ut, { className: "h-4 w-4 opacity-70" }),
1696
+ /* @__PURE__ */ e.jsx(mt, { className: "h-4 w-4 opacity-70" }),
1696
1697
  /* @__PURE__ */ e.jsx("span", { className: "text-xs text-muted-foreground", children: "A preview of the query with filters applied." })
1697
1698
  ] })
1698
1699
  ] })
@@ -1700,7 +1701,7 @@ function Jn() {
1700
1701
  }
1701
1702
  );
1702
1703
  }
1703
- const Yn = `
1704
+ const Zn = `
1704
1705
 
1705
1706
  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.
1706
1707
 
@@ -1747,7 +1748,7 @@ SELECT label, measure FROM table
1747
1748
  - Label - Category
1748
1749
  - Measure - Number
1749
1750
  `;
1750
- function Xn({
1751
+ function el({
1751
1752
  open: s,
1752
1753
  setOpen: n,
1753
1754
  userInput: a,
@@ -1763,7 +1764,7 @@ function Xn({
1763
1764
  Table Columns: ${D == null ? void 0 : D.map((w) => `${w.column_name} | ${w.data_type}`).join(", ")}
1764
1765
  User SQL: ${I}
1765
1766
  ${x && `Base Queries: ${JSON.stringify(x)} `}`, A = ` 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.
1766
- Visual Query Syntax: ${Yn}`, { data: j, isLoading: S, isFetching: v, isError: b, refetch: q } = re({
1767
+ Visual Query Syntax: ${Zn}`, { data: j, isLoading: S, isFetching: v, isError: b, refetch: q } = re({
1767
1768
  queryKey: ["ai-query"],
1768
1769
  queryFn: () => Ne(
1769
1770
  "https://semaphor.cloud/api/v1/ai",
@@ -1856,7 +1857,7 @@ function Xn({
1856
1857
  },
1857
1858
  size: "sm",
1858
1859
  variant: "outline",
1859
- children: /* @__PURE__ */ e.jsx(xt, {})
1860
+ children: /* @__PURE__ */ e.jsx(ft, {})
1860
1861
  }
1861
1862
  )
1862
1863
  ] })
@@ -1877,13 +1878,13 @@ function Xn({
1877
1878
  {
1878
1879
  className: "flex items-start rounded-md bg-muted p-3 text-sm",
1879
1880
  children: [
1880
- /* @__PURE__ */ e.jsx(En, { className: "mr-2 h-5 w-5" }),
1881
+ /* @__PURE__ */ e.jsx(qn, { className: "mr-2 h-5 w-5" }),
1881
1882
  /* @__PURE__ */ e.jsx("div", { children: w.content })
1882
1883
  ]
1883
1884
  },
1884
1885
  E
1885
1886
  ) : w.role === "ai" ? /* @__PURE__ */ e.jsx(
1886
- mt,
1887
+ pt,
1887
1888
  {
1888
1889
  className: "w-full overflow-auto py-1",
1889
1890
  components: le,
@@ -1952,7 +1953,7 @@ function Xn({
1952
1953
  size: "sm",
1953
1954
  variant: "ghost",
1954
1955
  onClick: R,
1955
- children: !S && !v ? /* @__PURE__ */ e.jsx(ht, {}) : /* @__PURE__ */ e.jsx(Be, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" })
1956
+ children: !S && !v ? /* @__PURE__ */ e.jsx(xt, {}) : /* @__PURE__ */ e.jsx(Be, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" })
1956
1957
  }
1957
1958
  )
1958
1959
  ] })
@@ -1963,17 +1964,17 @@ function Xn({
1963
1964
  )
1964
1965
  ] });
1965
1966
  }
1966
- var Oa = {
1967
+ var Ea = {
1967
1968
  color: void 0,
1968
1969
  size: void 0,
1969
1970
  className: void 0,
1970
1971
  style: void 0,
1971
1972
  attr: void 0
1972
- }, Xs = ge.createContext && /* @__PURE__ */ ge.createContext(Oa), Zn = ["attr", "size", "title"];
1973
- function el(s, n) {
1973
+ }, Xs = ge.createContext && /* @__PURE__ */ ge.createContext(Ea), sl = ["attr", "size", "title"];
1974
+ function al(s, n) {
1974
1975
  if (s == null)
1975
1976
  return {};
1976
- var a = sl(s, n), t, i;
1977
+ var a = tl(s, n), t, i;
1977
1978
  if (Object.getOwnPropertySymbols) {
1978
1979
  var o = Object.getOwnPropertySymbols(s);
1979
1980
  for (i = 0; i < o.length; i++)
@@ -1981,7 +1982,7 @@ function el(s, n) {
1981
1982
  }
1982
1983
  return a;
1983
1984
  }
1984
- function sl(s, n) {
1985
+ function tl(s, n) {
1985
1986
  if (s == null)
1986
1987
  return {};
1987
1988
  var a = {}, t = Object.keys(s), i, o;
@@ -2013,21 +2014,21 @@ function is(s) {
2013
2014
  for (var n = 1; n < arguments.length; n++) {
2014
2015
  var a = arguments[n] != null ? arguments[n] : {};
2015
2016
  n % 2 ? Zs(Object(a), !0).forEach(function(t) {
2016
- al(s, t, a[t]);
2017
+ nl(s, t, a[t]);
2017
2018
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(a)) : Zs(Object(a)).forEach(function(t) {
2018
2019
  Object.defineProperty(s, t, Object.getOwnPropertyDescriptor(a, t));
2019
2020
  });
2020
2021
  }
2021
2022
  return s;
2022
2023
  }
2023
- function al(s, n, a) {
2024
- return n = tl(n), n in s ? Object.defineProperty(s, n, { value: a, enumerable: !0, configurable: !0, writable: !0 }) : s[n] = a, s;
2024
+ function nl(s, n, a) {
2025
+ return n = ll(n), n in s ? Object.defineProperty(s, n, { value: a, enumerable: !0, configurable: !0, writable: !0 }) : s[n] = a, s;
2025
2026
  }
2026
- function tl(s) {
2027
- var n = nl(s, "string");
2027
+ function ll(s) {
2028
+ var n = il(s, "string");
2028
2029
  return typeof n == "symbol" ? n : String(n);
2029
2030
  }
2030
- function nl(s, n) {
2031
+ function il(s, n) {
2031
2032
  if (typeof s != "object" || s === null)
2032
2033
  return s;
2033
2034
  var a = s[Symbol.toPrimitive];
@@ -2039,23 +2040,23 @@ function nl(s, n) {
2039
2040
  }
2040
2041
  return (n === "string" ? String : Number)(s);
2041
2042
  }
2042
- function Aa(s) {
2043
+ function Va(s) {
2043
2044
  return s && s.map((n, a) => /* @__PURE__ */ ge.createElement(n.tag, is({
2044
2045
  key: a
2045
- }, n.attr), Aa(n.child)));
2046
+ }, n.attr), Va(n.child)));
2046
2047
  }
2047
2048
  function be(s) {
2048
- return (n) => /* @__PURE__ */ ge.createElement(ll, ls({
2049
+ return (n) => /* @__PURE__ */ ge.createElement(rl, ls({
2049
2050
  attr: is({}, s.attr)
2050
- }, n), Aa(s.child));
2051
+ }, n), Va(s.child));
2051
2052
  }
2052
- function ll(s) {
2053
+ function rl(s) {
2053
2054
  var n = (a) => {
2054
2055
  var {
2055
2056
  attr: t,
2056
2057
  size: i,
2057
2058
  title: o
2058
- } = s, l = el(s, Zn), r = i || a.size || "1em", d;
2059
+ } = s, l = al(s, sl), r = i || a.size || "1em", d;
2059
2060
  return a.className && (d = a.className), s.className && (d = (d ? d + " " : "") + s.className), /* @__PURE__ */ ge.createElement("svg", ls({
2060
2061
  stroke: "currentColor",
2061
2062
  fill: "currentColor",
@@ -2070,13 +2071,13 @@ function ll(s) {
2070
2071
  xmlns: "http://www.w3.org/2000/svg"
2071
2072
  }), o && /* @__PURE__ */ ge.createElement("title", null, o), s.children);
2072
2073
  };
2073
- return Xs !== void 0 ? /* @__PURE__ */ ge.createElement(Xs.Consumer, null, (a) => n(a)) : n(Oa);
2074
+ return Xs !== void 0 ? /* @__PURE__ */ ge.createElement(Xs.Consumer, null, (a) => n(a)) : n(Ea);
2074
2075
  }
2075
- function il(s) {
2076
+ function ol(s) {
2076
2077
  return be({ 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);
2077
2078
  }
2078
- function rl() {
2079
- const { theme: s } = pt(), n = $e(), a = $e(), [t, i] = V(!1), [o, l] = V(!1), [r, d] = V(!1), [p, h] = V(""), [y, x] = V(!1), { authToken: m } = je();
2079
+ function cl() {
2080
+ const { theme: s } = gt(), n = $e(), a = $e(), [t, i] = V(!1), [o, l] = V(!1), [r, d] = V(!1), [p, h] = V(""), [y, x] = V(!1), { authToken: m } = je();
2080
2081
  z((g) => g.selectedSheetId);
2081
2082
  const f = z((g) => g.dashboard.baseQueries), u = c((g) => g.card), k = z((g) => g.theme), D = c((g) => g.isShowingVisual);
2082
2083
  z((g) => g.onAcceptChanges);
@@ -2092,7 +2093,7 @@ function rl() {
2092
2093
  z(
2093
2094
  (g) => g.actions.updateFrameCard
2094
2095
  );
2095
- const j = c((g) => g.selectedTableName), S = c((g) => g.card.sql), v = c((g) => g.card.python), b = ft(S, f), q = c((g) => g.selectedConnectionId), $ = c((g) => g.frame), R = z((g) => g.filterValues), B = c((g) => g.applyFilters), {
2096
+ const j = c((g) => g.selectedTableName), S = c((g) => g.card.sql), v = c((g) => g.card.python), b = jt(S, f), q = c((g) => g.selectedConnectionId), $ = c((g) => g.frame), R = z((g) => g.filterValues), B = c((g) => g.applyFilters), {
2096
2097
  setCardCustomCfg: ee,
2097
2098
  setQueryResultColumns: W,
2098
2099
  setFilterValues: le,
@@ -2170,8 +2171,8 @@ function rl() {
2170
2171
  if (ne == "All__Header")
2171
2172
  return g[0].id;
2172
2173
  if (ne && ne.endsWith("__Header")) {
2173
- const Wa = ne.split("__")[0], Us = g.find(
2174
- (Qa) => Qa.tabTitle === Wa
2174
+ const Ja = ne.split("__")[0], Us = g.find(
2175
+ (Ya) => Ya.tabTitle === Ja
2175
2176
  );
2176
2177
  return Us ? Us.id : g[0].id;
2177
2178
  }
@@ -2182,7 +2183,7 @@ function rl() {
2182
2183
  }
2183
2184
  function hs() {
2184
2185
  let g = S;
2185
- S && !S.includes("{{") && (g = Kn(S), P(g));
2186
+ S && !S.includes("{{") && (g = Wn(S), P(g));
2186
2187
  const C = {
2187
2188
  ...u,
2188
2189
  lastSelectedSchema: A,
@@ -2216,7 +2217,7 @@ function rl() {
2216
2217
  rules: [],
2217
2218
  colors: {
2218
2219
  // 'editor.background': activeTheme === 'light' ? '#ffffff' : '#020817',
2219
- "editor.background": ne === "light" ? "#ffffff" : gt("--semaphor-background")
2220
+ "editor.background": ne === "light" ? "#ffffff" : bt("--semaphor-background")
2220
2221
  }
2221
2222
  }), g.editor.setTheme("default");
2222
2223
  }
@@ -2241,14 +2242,14 @@ function rl() {
2241
2242
  children: /* @__PURE__ */ e.jsxs("div", { className: "w-[99%]", children: [
2242
2243
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 pt-3", children: [
2243
2244
  /* @__PURE__ */ e.jsx(
2244
- Wn,
2245
+ Jn,
2245
2246
  {
2246
2247
  checked: B,
2247
2248
  onCheckedChange: () => L(!B),
2248
2249
  text: "Apply Filters"
2249
2250
  }
2250
2251
  ),
2251
- /* @__PURE__ */ e.jsx(Jn, {}),
2252
+ /* @__PURE__ */ e.jsx(Xn, {}),
2252
2253
  R && o && /* @__PURE__ */ e.jsx(
2253
2254
  Re,
2254
2255
  {
@@ -2448,13 +2449,13 @@ function rl() {
2448
2449
  size: "sm",
2449
2450
  variant: "outline",
2450
2451
  children: [
2451
- oe || ce ? /* @__PURE__ */ e.jsx(Be, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" }) : /* @__PURE__ */ e.jsx(Fn, { className: "mr-2 h-4 w-4" }),
2452
+ oe || ce ? /* @__PURE__ */ e.jsx(Be, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" }) : /* @__PURE__ */ e.jsx(Tn, { className: "mr-2 h-4 w-4" }),
2452
2453
  "Run"
2453
2454
  ]
2454
2455
  }
2455
2456
  ),
2456
2457
  de && /* @__PURE__ */ e.jsx(
2457
- Pn,
2458
+ Qn,
2458
2459
  {
2459
2460
  error: ve.message,
2460
2461
  setShowAIDialog: d,
@@ -2470,7 +2471,7 @@ function rl() {
2470
2471
  size: "sm",
2471
2472
  variant: "outline",
2472
2473
  children: [
2473
- /* @__PURE__ */ e.jsx(pn, { className: "mr-2 size-4" }),
2474
+ /* @__PURE__ */ e.jsx(gn, { className: "mr-2 size-4" }),
2474
2475
  "Clear"
2475
2476
  ]
2476
2477
  }
@@ -2483,11 +2484,11 @@ function rl() {
2483
2484
  className: "",
2484
2485
  size: "sm",
2485
2486
  variant: "outline",
2486
- children: /* @__PURE__ */ e.jsx(il, { className: "size-4 text-foreground/70" })
2487
+ children: /* @__PURE__ */ e.jsx(ol, { className: "size-4 text-foreground/70" })
2487
2488
  }
2488
2489
  ),
2489
2490
  /* @__PURE__ */ e.jsx(
2490
- Xn,
2491
+ el,
2491
2492
  {
2492
2493
  open: r,
2493
2494
  setOpen: d,
@@ -2533,7 +2534,7 @@ function rl() {
2533
2534
  )
2534
2535
  );
2535
2536
  }
2536
- function ol({ data: s }) {
2537
+ function dl({ data: s }) {
2537
2538
  var l;
2538
2539
  const [n, a] = ge.useState([]), i = Object.keys(s[0]).map((r) => ({
2539
2540
  // header: key,
@@ -2547,29 +2548,29 @@ function ol({ data: s }) {
2547
2548
  onClick: () => d.toggleSorting(d.getIsSorted() === "asc"),
2548
2549
  children: [
2549
2550
  r,
2550
- p === "asc" ? /* @__PURE__ */ e.jsx(jt, { className: "ml-2 h-5 w-5" }) : p === "desc" ? /* @__PURE__ */ e.jsx(bt, { className: "ml-2 h-5 w-5" }) : null
2551
+ p === "asc" ? /* @__PURE__ */ e.jsx(yt, { className: "ml-2 h-5 w-5" }) : p === "desc" ? /* @__PURE__ */ e.jsx(vt, { className: "ml-2 h-5 w-5" }) : null
2551
2552
  ]
2552
2553
  }
2553
2554
  ) });
2554
2555
  }
2555
- })), o = yt({
2556
+ })), o = Nt({
2556
2557
  data: s,
2557
2558
  columns: i,
2558
- getCoreRowModel: wt(),
2559
- getPaginationRowModel: kt(),
2559
+ getCoreRowModel: zt(),
2560
+ getPaginationRowModel: Ft(),
2560
2561
  onSortingChange: a,
2561
- getSortedRowModel: zt(),
2562
+ getSortedRowModel: Lt(),
2562
2563
  manualPagination: !0,
2563
2564
  state: {
2564
2565
  sorting: n
2565
2566
  }
2566
2567
  });
2567
- return /* @__PURE__ */ e.jsxs(vt, { children: [
2568
- /* @__PURE__ */ e.jsx(Nt, { children: o.getHeaderGroups().map((r) => /* @__PURE__ */ e.jsx(xs, { children: r.headers.map((d) => /* @__PURE__ */ e.jsx(Ct, { className: "sticky top-0 bg-muted", children: d.isPlaceholder ? null : Ws(
2568
+ return /* @__PURE__ */ e.jsxs(Ct, { children: [
2569
+ /* @__PURE__ */ e.jsx(St, { children: o.getHeaderGroups().map((r) => /* @__PURE__ */ e.jsx(xs, { children: r.headers.map((d) => /* @__PURE__ */ e.jsx(wt, { className: "sticky top-0 bg-muted", children: d.isPlaceholder ? null : Ws(
2569
2570
  d.column.columnDef.header,
2570
2571
  d.getContext()
2571
2572
  ) }, d.id)) }, r.id)) }),
2572
- /* @__PURE__ */ e.jsx(St, { children: (l = o.getRowModel().rows) != null && l.length ? o.getRowModel().rows.map((r) => /* @__PURE__ */ e.jsx(
2573
+ /* @__PURE__ */ e.jsx(kt, { children: (l = o.getRowModel().rows) != null && l.length ? o.getRowModel().rows.map((r) => /* @__PURE__ */ e.jsx(
2573
2574
  xs,
2574
2575
  {
2575
2576
  className: "whitespace-nowrap py-2",
@@ -2580,7 +2581,7 @@ function ol({ data: s }) {
2580
2581
  )) : /* @__PURE__ */ e.jsx(xs, { children: /* @__PURE__ */ e.jsx(Qs, { colSpan: i.length, className: "h-24 text-center", children: "No results." }) }) })
2581
2582
  ] });
2582
2583
  }
2583
- function cl({ card: s }) {
2584
+ function ul({ card: s }) {
2584
2585
  var r, d, p, h, y, x, m, f;
2585
2586
  (r = s.customCardPreferences) != null && r.inputData;
2586
2587
  const { getCard: n } = ma(((d = s.customCardPreferences) == null ? void 0 : d.url) || ""), a = ((p = s.customCardPreferences) == null ? void 0 : p.visualType) || "single", t = c((u) => u.frame);
@@ -2598,7 +2599,7 @@ function cl({ card: s }) {
2598
2599
  return D || null;
2599
2600
  });
2600
2601
  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(
2601
- rn,
2602
+ cn,
2602
2603
  {
2603
2604
  fallback: /* @__PURE__ */ e.jsx(e.Fragment, {}),
2604
2605
  children: [
@@ -2628,7 +2629,7 @@ function cl({ card: s }) {
2628
2629
  (f = s.customCardPreferences) == null ? void 0 : f.componentName
2629
2630
  ) });
2630
2631
  }
2631
- function Ea({
2632
+ function qa({
2632
2633
  // card,
2633
2634
  // showCard,
2634
2635
  className: s,
@@ -2658,23 +2659,23 @@ function Ea({
2658
2659
  preferences: t.preferences
2659
2660
  }));
2660
2661
  function h(x) {
2661
- return /* @__PURE__ */ e.jsx(cl, { card: x });
2662
+ return /* @__PURE__ */ e.jsx(ul, { card: x });
2662
2663
  }
2663
2664
  return /* @__PURE__ */ e.jsxs(
2664
- Ft,
2665
+ Tt,
2665
2666
  {
2666
2667
  role: "editor-visual-card",
2667
2668
  className: J("relative flex h-full flex-col rounded-none", s),
2668
2669
  ...n,
2669
2670
  children: [
2670
- /* @__PURE__ */ e.jsxs(Lt, { className: "flex flex-row items-start justify-between py-4", children: [
2671
+ /* @__PURE__ */ e.jsxs(Dt, { className: "flex flex-row items-start justify-between py-4", children: [
2671
2672
  /* @__PURE__ */ e.jsxs("div", { children: [
2672
2673
  /* @__PURE__ */ e.jsx(
2673
2674
  es,
2674
2675
  {
2675
2676
  text: t.title,
2676
2677
  onSave: (x) => d({ ...t, title: x }),
2677
- children: /* @__PURE__ */ e.jsx("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ e.jsx(Tt, { className: "text-base", children: t.title }) })
2678
+ children: /* @__PURE__ */ e.jsx("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ e.jsx(It, { className: "text-base", children: t.title }) })
2678
2679
  },
2679
2680
  t.title
2680
2681
  ),
@@ -2683,7 +2684,7 @@ function Ea({
2683
2684
  {
2684
2685
  text: t.description || "",
2685
2686
  onSave: (x) => d({ ...t, description: x }),
2686
- children: /* @__PURE__ */ e.jsxs(Dt, { children: [
2687
+ children: /* @__PURE__ */ e.jsxs(Mt, { children: [
2687
2688
  " ",
2688
2689
  t.description
2689
2690
  ] })
@@ -2701,27 +2702,27 @@ function Ea({
2701
2702
  children: /* @__PURE__ */ e.jsx(H, { children: r.title })
2702
2703
  }
2703
2704
  ),
2704
- It(r)
2705
+ Ot(r)
2705
2706
  ] })
2706
2707
  ] }),
2707
- /* @__PURE__ */ e.jsxs(Mt, { className: "flex grow flex-col", children: [
2708
+ /* @__PURE__ */ e.jsxs(At, { className: "flex grow flex-col", children: [
2708
2709
  t.type === "custom" && h(t),
2709
2710
  !["table", "custom"].includes(t.type) && p && // <ChartJsVisual key={visualKey} cfg={cfg} />
2710
2711
  /* @__PURE__ */ e.jsx(
2711
- Ot,
2712
+ Et,
2712
2713
  {
2713
2714
  cfg: p
2714
2715
  },
2715
2716
  JSON.stringify(p) + JSON.stringify(t.preferences) + ((y = t == null ? void 0 : t.preferences) == null ? void 0 : y.customVisualCode)
2716
2717
  ),
2717
2718
  t.type === "table" && t.data && t.data.length > 0 && // All of the below css classes are #IMPORTANT for the table to scroll properly
2718
- /* @__PURE__ */ e.jsx(At, { className: "flex min-h-0 flex-1 grow basis-0", children: /* @__PURE__ */ e.jsx(Et, { card: t, data: t == null ? void 0 : t.data }) })
2719
+ /* @__PURE__ */ e.jsx(Vt, { className: "flex min-h-0 flex-1 grow basis-0", children: /* @__PURE__ */ e.jsx(qt, { card: t, data: t == null ? void 0 : t.data }) })
2719
2720
  ] })
2720
2721
  ]
2721
2722
  }
2722
2723
  );
2723
2724
  }
2724
- function dl() {
2725
+ function hl() {
2725
2726
  const [s, n] = V(!1), [a, t] = V(""), [i, o] = V(""), [l, r] = V(""), [d, p] = V(""), h = c((N) => N.card), y = c(
2726
2727
  (N) => N.card.customCfg
2727
2728
  ), { setCardCustomCfg: x, setCustomVisualCode: m } = Ie();
@@ -2779,7 +2780,7 @@ function dl() {
2779
2780
  className: ` ${y && "border-foreground/50 dark:border-foreground/70"}`,
2780
2781
  size: "sm",
2781
2782
  variant: "outline",
2782
- children: /* @__PURE__ */ e.jsx(Vt, { className: "h-4 w-4" })
2783
+ children: /* @__PURE__ */ e.jsx(Rt, { className: "h-4 w-4" })
2783
2784
  }
2784
2785
  ) }),
2785
2786
  /* @__PURE__ */ e.jsxs(
@@ -2792,7 +2793,7 @@ function dl() {
2792
2793
  /* @__PURE__ */ e.jsx(Ls, { children: "Customize Card" }),
2793
2794
  /* @__PURE__ */ e.jsxs(Ds, { children: [
2794
2795
  /* @__PURE__ */ e.jsx(na, { children: /* @__PURE__ */ e.jsx(
2795
- Nn,
2796
+ Sn,
2796
2797
  {
2797
2798
  onClick: () => {
2798
2799
  navigator.clipboard.writeText(h.id);
@@ -2817,7 +2818,7 @@ function dl() {
2817
2818
  ] })
2818
2819
  ] }),
2819
2820
  /* @__PURE__ */ e.jsxs("div", { className: "flex grow gap-2", children: [
2820
- /* @__PURE__ */ e.jsx(Ea, { className: "w-1/2 rounded shadow-none" }),
2821
+ /* @__PURE__ */ e.jsx(qa, { className: "w-1/2 rounded shadow-none" }),
2821
2822
  /* @__PURE__ */ e.jsxs(pa, { defaultValue: "custom-config", className: "flex w-1/2 flex-col", children: [
2822
2823
  /* @__PURE__ */ e.jsxs(fa, { className: "justify-start rounded-sm rounded-b-none border border-b-0", children: [
2823
2824
  /* @__PURE__ */ e.jsxs(ss, { value: "custom-config", children: [
@@ -2921,31 +2922,31 @@ function dl() {
2921
2922
  )
2922
2923
  ] });
2923
2924
  }
2924
- function Va(s) {
2925
+ function Ra(s) {
2925
2926
  return be({ tag: "svg", attr: { viewBox: "0 0 1024 1024" }, child: [{ tag: "path", attr: { d: "M926.8 397.1l-396-288a31.81 31.81 0 0 0-37.6 0l-396 288a31.99 31.99 0 0 0-11.6 35.8l151.3 466a32 32 0 0 0 30.4 22.1h489.5c13.9 0 26.1-8.9 30.4-22.1l151.3-466c4.2-13.2-.5-27.6-11.7-35.8zM838.6 417l-98.5 32-200-144.7V199.9L838.6 417zM466 567.2l-89.1 122.3-55.2-169.2L466 567.2zm-116.3-96.8L484 373.3v140.8l-134.3-43.7zM512 599.2l93.9 128.9H418.1L512 599.2zm28.1-225.9l134.2 97.1L540.1 514V373.3zM558 567.2l144.3-46.9-55.2 169.2L558 567.2zm-74-367.3v104.4L283.9 449l-98.5-32L484 199.9zM169.3 470.8l86.5 28.1 80.4 246.4-53.8 73.9-113.1-348.4zM327.1 853l50.3-69h269.3l50.3 69H327.1zm414.5-33.8l-53.8-73.9 80.4-246.4 86.5-28.1-113.1 348.4z" }, child: [] }] })(s);
2926
2927
  }
2927
- function qa(s) {
2928
+ function _a(s) {
2928
2929
  return be({ tag: "svg", attr: { viewBox: "0 0 256 256", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M137.39,24.06A16,16,0,0,0,120,40V80.67a15.86,15.86,0,0,0,13.25,15.76A32,32,0,1,1,96,129.68c-.41-8.22,1.27-15,5-20.26h0a15.86,15.86,0,0,0-1.69-20.47L71.69,60.68a16,16,0,0,0-23.63,1.1A103.6,103.6,0,0,0,55,202.05,103.24,103.24,0,0,0,128,232h1.49A104.3,104.3,0,0,0,232,129.48C232.75,75.18,191.19,28.88,137.39,24.06ZM60.32,71.94l27.61,28.19,0,.06A43.29,43.29,0,0,0,80.44,120H40.36A87.13,87.13,0,0,1,60.32,71.94ZM40.37,136h40.3A48,48,0,0,0,120,175.34v40.3A88,88,0,0,1,40.37,136Zm149.77,54.14A87.45,87.45,0,0,1,136,215.61V175.34a47.55,47.55,0,0,0,24.73-12.23A48,48,0,0,0,136,80.66L136,40c45.52,4.08,80.67,43.28,80,89.25A87.45,87.45,0,0,1,190.14,190.14Z" }, child: [] }] })(s);
2929
2930
  }
2930
- function Ra(s) {
2931
+ function Ha(s) {
2931
2932
  return be({ tag: "svg", attr: { viewBox: "0 0 256 256", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm87.63,96H191.48A64.1,64.1,0,0,0,136,64.52V40.37A88.13,88.13,0,0,1,215.63,120ZM120,120H80.68A48.09,48.09,0,0,1,120,80.68Zm0,16v39.32A48.09,48.09,0,0,1,80.68,136Zm16,0h39.32A48.09,48.09,0,0,1,136,175.32Zm0-16V80.68A48.09,48.09,0,0,1,175.32,120ZM120,40.37V64.52A64.1,64.1,0,0,0,64.52,120H40.37A88.13,88.13,0,0,1,120,40.37ZM40.37,136H64.52A64.1,64.1,0,0,0,120,191.48v24.15A88.13,88.13,0,0,1,40.37,136ZM136,215.63V191.48A64.1,64.1,0,0,0,191.48,136h24.15A88.13,88.13,0,0,1,136,215.63Z" }, child: [] }] })(s);
2932
2933
  }
2933
- function _a(s) {
2934
+ function $a(s) {
2934
2935
  return be({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }, child: [] }, { tag: "path", attr: { d: "M6 16m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0" }, child: [] }, { tag: "path", attr: { d: "M16 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" }, child: [] }, { tag: "path", attr: { d: "M14.5 7.5m-4.5 0a4.5 4.5 0 1 0 9 0a4.5 4.5 0 1 0 -9 0" }, child: [] }] })(s);
2935
2936
  }
2936
- function Ha(s) {
2937
+ function Ba(s) {
2937
2938
  return be({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "m2 19.99 7.5-7.51 4 4 7.09-7.97L22 9.92l-8.5 9.56-4-4-6 6.01-1.5-1.5zm1.5-4.5 6-6.01 4 4L22 3.92l-1.41-1.41-7.09 7.97-4-4L2 13.99l1.5 1.5z" }, child: [] }] })(s);
2938
2939
  }
2939
- function $a(s) {
2940
+ function Ua(s) {
2940
2941
  return be({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M4 9h4v11H4zM4 4h4v4H4zM10 7h4v4h-4zM16 10h4v4h-4zM16 15h4v5h-4zM10 12h4v8h-4z" }, child: [] }] })(s);
2941
2942
  }
2942
- function Ba(s) {
2943
+ function Ga(s) {
2943
2944
  return be({ tag: "svg", attr: { version: "1.2", baseProfile: "tiny", viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M4 18c-.552 0-1-.448-1-1v-6.382l-.553.276c-.495.248-1.095.046-1.342-.447-.247-.494-.046-1.094.448-1.342l2-1c.31-.155.678-.139.973.044.294.183.474.504.474.851v8c0 .552-.448 1-1 1zM13 18h-5c-.404 0-.769-.244-.924-.617-.155-.374-.069-.804.217-1.09l4-4c.254-.254.394-.591.394-.95 0-.358-.14-.695-.394-.949-.508-.508-1.39-.508-1.9.001-.253.252-.393.589-.393.948 0 .552-.448 1-1 1s-1-.448-1-1c0-.894.348-1.733.98-2.364 1.265-1.263 3.464-1.263 4.727.001.632.631.979 1.471.979 2.363 0 .893-.348 1.733-.979 2.364l-2.293 2.293h2.586c.552 0 1 .448 1 1s-.448 1-1 1zM20.955 12.377c.338-.457.545-1.016.545-1.627 0-1.517-1.234-2.75-2.75-2.75-1.031 0-1.966.569-2.44 1.484-.254.49-.063 1.094.428 1.348.49.254 1.094.062 1.348-.428.128-.249.383-.404.664-.404.414 0 .75.336.75.75s-.336.75-.75.75c-.552 0-1 .448-1 1s.448 1 1 1c.689 0 1.25.561 1.25 1.25s-.561 1.25-1.25 1.25-1.25-.561-1.25-1.25c0-.552-.448-1-1-1s-1 .448-1 1c0 1.792 1.458 3.25 3.25 3.25s3.25-1.458 3.25-3.25c0-.939-.406-1.779-1.045-2.373z" }, child: [] }] })(s);
2944
2945
  }
2945
- function Ua(s) {
2946
+ function Ka(s) {
2946
2947
  return be({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M217 25v14h78V25h-78zm0 32v46h14V71h50v32h14V57h-78zm32 32v14h14V89h-14zm-64 32v46h30v-46h-30zm48 0v14h46v-14h-46zm64 0v46h30v-46h-30zm-64 32v14h46v-14h-46zm-80 32v46h62v-46h-62zm80 0v14h46v-14h-46zm64 0v46h62v-46h-62zm-64 32v14h46v-14h-46zm-112 32v46h94v-46h-94zm112 0v14h46v-14h-46zm64 0v46h94v-46h-94zm-64 32v14h46v-14h-46zM89 313v46h126v-46H89zm144 0v14h46v-14h-46zm64 0v46h126v-46H297zm-64 32v14h46v-14h-46zM57 377v46h158v-46H57zm176 0v14h46v-14h-46zm64 0v46h158v-46H297zm-64 32v14h46v-14h-46zM25 441v46h190v-46H25zm208 0v14h46v-14h-46zm64 0v46h190v-46H297zm-64 32v14h46v-14h-46z" }, child: [] }] })(s);
2947
2948
  }
2948
- function ul() {
2949
+ function ml() {
2949
2950
  const [s, n] = V(!1), a = c((d) => d.card.type), { setCardType: t, setCardPreferences: i, setChartOrientation: o } = c((d) => d.actions), l = c(
2950
2951
  (d) => d.actions.setCardCustomCfg
2951
2952
  );
@@ -2953,7 +2954,7 @@ function ul() {
2953
2954
  l(null), i({}), t(d), n(!1);
2954
2955
  }
2955
2956
  return /* @__PURE__ */ e.jsxs(Ge, { open: s, onOpenChange: n, children: [
2956
- /* @__PURE__ */ e.jsx(Ke, { asChild: !0, children: /* @__PURE__ */ e.jsx(F, { size: "sm", variant: "outline", children: /* @__PURE__ */ e.jsx(hl, { className: "h-4 w-4", chartType: a }) }) }),
2957
+ /* @__PURE__ */ e.jsx(Ke, { asChild: !0, children: /* @__PURE__ */ e.jsx(F, { size: "sm", variant: "outline", children: /* @__PURE__ */ e.jsx(xl, { className: "h-4 w-4", chartType: a }) }) }),
2957
2958
  /* @__PURE__ */ e.jsx(Pe, { className: "w-50", children: /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-3 place-items-center", children: [
2958
2959
  /* @__PURE__ */ e.jsx(
2959
2960
  F,
@@ -2977,7 +2978,7 @@ function ul() {
2977
2978
  {
2978
2979
  onClick: () => r("stackedBar"),
2979
2980
  variant: "ghost",
2980
- children: /* @__PURE__ */ e.jsx($a, { className: "size-5", strokeWidth: 0 })
2981
+ children: /* @__PURE__ */ e.jsx(Ua, { className: "size-5", strokeWidth: 0 })
2981
2982
  }
2982
2983
  ),
2983
2984
  /* @__PURE__ */ e.jsx(
@@ -2985,7 +2986,7 @@ function ul() {
2985
2986
  {
2986
2987
  onClick: () => r("stackedLine"),
2987
2988
  variant: "ghost",
2988
- children: /* @__PURE__ */ e.jsx(Ha, { className: "size-5", strokeWidth: 0 })
2989
+ children: /* @__PURE__ */ e.jsx(Ba, { className: "size-5", strokeWidth: 0 })
2989
2990
  }
2990
2991
  ),
2991
2992
  /* @__PURE__ */ e.jsx(
@@ -2993,7 +2994,7 @@ function ul() {
2993
2994
  {
2994
2995
  onClick: () => r("scatter"),
2995
2996
  variant: "ghost",
2996
- children: /* @__PURE__ */ e.jsx(Fa, { className: "size-5" })
2997
+ children: /* @__PURE__ */ e.jsx(Ta, { className: "size-5" })
2997
2998
  }
2998
2999
  ),
2999
3000
  /* @__PURE__ */ e.jsx(
@@ -3001,7 +3002,7 @@ function ul() {
3001
3002
  {
3002
3003
  onClick: () => r("bubble"),
3003
3004
  variant: "ghost",
3004
- children: /* @__PURE__ */ e.jsx(_a, { className: "size-4" })
3005
+ children: /* @__PURE__ */ e.jsx($a, { className: "size-4" })
3005
3006
  }
3006
3007
  ),
3007
3008
  /* @__PURE__ */ e.jsx(
@@ -3009,7 +3010,7 @@ function ul() {
3009
3010
  {
3010
3011
  onClick: () => r("pie"),
3011
3012
  variant: "ghost",
3012
- children: /* @__PURE__ */ e.jsx(za, { className: "size-5" })
3013
+ children: /* @__PURE__ */ e.jsx(La, { className: "size-5" })
3013
3014
  }
3014
3015
  ),
3015
3016
  /* @__PURE__ */ e.jsx(
@@ -3017,7 +3018,7 @@ function ul() {
3017
3018
  {
3018
3019
  onClick: () => r("doughnut"),
3019
3020
  variant: "ghost",
3020
- children: /* @__PURE__ */ e.jsx(qa, { className: "size-5", strokeWidth: 1 })
3021
+ children: /* @__PURE__ */ e.jsx(_a, { className: "size-5", strokeWidth: 1 })
3021
3022
  }
3022
3023
  ),
3023
3024
  /* @__PURE__ */ e.jsx(
@@ -3026,7 +3027,7 @@ function ul() {
3026
3027
  onClick: () => r("radar"),
3027
3028
  variant: "ghost",
3028
3029
  children: /* @__PURE__ */ e.jsx(
3029
- Va,
3030
+ Ra,
3030
3031
  {
3031
3032
  className: "size-5 font-extralight",
3032
3033
  strokeWidth: 0.5
@@ -3039,7 +3040,7 @@ function ul() {
3039
3040
  {
3040
3041
  onClick: () => r("polarArea"),
3041
3042
  variant: "ghost",
3042
- children: /* @__PURE__ */ e.jsx(Ra, { className: "size-5" })
3043
+ children: /* @__PURE__ */ e.jsx(Ha, { className: "size-5" })
3043
3044
  }
3044
3045
  ),
3045
3046
  /* @__PURE__ */ e.jsx(
@@ -3047,7 +3048,7 @@ function ul() {
3047
3048
  {
3048
3049
  onClick: () => r("pyramid"),
3049
3050
  variant: "ghost",
3050
- children: /* @__PURE__ */ e.jsx(Ua, { className: "size-5" })
3051
+ children: /* @__PURE__ */ e.jsx(Ka, { className: "size-5" })
3051
3052
  }
3052
3053
  ),
3053
3054
  /* @__PURE__ */ e.jsx(
@@ -3055,7 +3056,7 @@ function ul() {
3055
3056
  {
3056
3057
  onClick: () => r("range"),
3057
3058
  variant: "ghost",
3058
- children: /* @__PURE__ */ e.jsx(ka, { className: "size-5" })
3059
+ children: /* @__PURE__ */ e.jsx(Fa, { className: "size-5" })
3059
3060
  }
3060
3061
  ),
3061
3062
  /* @__PURE__ */ e.jsx(
@@ -3071,7 +3072,7 @@ function ul() {
3071
3072
  {
3072
3073
  onClick: () => r("kpi"),
3073
3074
  variant: "ghost",
3074
- children: /* @__PURE__ */ e.jsx(Ba, { className: "size-6" })
3075
+ children: /* @__PURE__ */ e.jsx(Ga, { className: "size-6" })
3075
3076
  }
3076
3077
  ),
3077
3078
  /* @__PURE__ */ e.jsx(
@@ -3087,44 +3088,44 @@ function ul() {
3087
3088
  {
3088
3089
  onClick: () => r("custom"),
3089
3090
  variant: "ghost",
3090
- children: /* @__PURE__ */ e.jsx(Ta, { className: "size-4" })
3091
+ children: /* @__PURE__ */ e.jsx(Ia, { className: "size-4" })
3091
3092
  }
3092
3093
  )
3093
3094
  ] }) })
3094
3095
  ] });
3095
3096
  }
3096
- function hl({ chartType: s, className: n }) {
3097
+ function xl({ chartType: s, className: n }) {
3097
3098
  switch (s) {
3098
3099
  case "bar":
3099
3100
  return /* @__PURE__ */ e.jsx(Rs, { className: n });
3100
3101
  case "line":
3101
3102
  return /* @__PURE__ */ e.jsx(_s, { className: n });
3102
3103
  case "pie":
3103
- return /* @__PURE__ */ e.jsx(za, { className: n });
3104
+ return /* @__PURE__ */ e.jsx(La, { className: n });
3104
3105
  case "radar":
3105
- return /* @__PURE__ */ e.jsx(Va, { className: n });
3106
+ return /* @__PURE__ */ e.jsx(Ra, { className: n });
3106
3107
  case "scatter":
3107
- return /* @__PURE__ */ e.jsx(Fa, { className: n });
3108
+ return /* @__PURE__ */ e.jsx(Ta, { className: n });
3108
3109
  case "bubble":
3109
- return /* @__PURE__ */ e.jsx(_a, { className: n });
3110
+ return /* @__PURE__ */ e.jsx($a, { className: n });
3110
3111
  case "doughnut":
3111
- return /* @__PURE__ */ e.jsx(qa, { className: n });
3112
+ return /* @__PURE__ */ e.jsx(_a, { className: n });
3112
3113
  case "stackedBar":
3113
- return /* @__PURE__ */ e.jsx($a, { className: "size-4 text-foreground/70" });
3114
+ return /* @__PURE__ */ e.jsx(Ua, { className: "size-4 text-foreground/70" });
3114
3115
  case "stackedLine":
3115
- return /* @__PURE__ */ e.jsx(Ha, { className: "size-4 text-foreground/70" });
3116
+ return /* @__PURE__ */ e.jsx(Ba, { className: "size-4 text-foreground/70" });
3116
3117
  case "polarArea":
3117
- return /* @__PURE__ */ e.jsx(Ra, { className: n });
3118
+ return /* @__PURE__ */ e.jsx(Ha, { className: n });
3118
3119
  case "pyramid":
3119
- return /* @__PURE__ */ e.jsx(Ua, { className: n });
3120
+ return /* @__PURE__ */ e.jsx(Ka, { className: n });
3120
3121
  case "range":
3121
- return /* @__PURE__ */ e.jsx(ka, { className: n });
3122
+ return /* @__PURE__ */ e.jsx(Fa, { className: n });
3122
3123
  case "kpi":
3123
- return /* @__PURE__ */ e.jsx(Ba, { className: n });
3124
+ return /* @__PURE__ */ e.jsx(Ga, { className: n });
3124
3125
  case "text":
3125
3126
  return /* @__PURE__ */ e.jsx(Hs, { className: n });
3126
3127
  case "custom":
3127
- return /* @__PURE__ */ e.jsx(Ta, { className: n });
3128
+ return /* @__PURE__ */ e.jsx(Ia, { className: n });
3128
3129
  default:
3129
3130
  return /* @__PURE__ */ e.jsx(Ms, { className: n });
3130
3131
  }
@@ -3212,7 +3213,7 @@ function ea() {
3212
3213
  displayTab: v
3213
3214
  });
3214
3215
  },
3215
- children: S.displayTab === !0 || S.displayTab === void 0 ? /* @__PURE__ */ e.jsx(gn, { className: "mr-2 size-3.5 text-muted-foreground hover:text-foreground" }) : /* @__PURE__ */ e.jsx(fn, { className: "mr-2 size-3.5 text-muted-foreground hover:text-foreground" })
3216
+ children: S.displayTab === !0 || S.displayTab === void 0 ? /* @__PURE__ */ e.jsx(bn, { className: "mr-2 size-3.5 text-muted-foreground hover:text-foreground" }) : /* @__PURE__ */ e.jsx(jn, { className: "mr-2 size-3.5 text-muted-foreground hover:text-foreground" })
3216
3217
  }
3217
3218
  );
3218
3219
  }
@@ -3273,7 +3274,7 @@ function ea() {
3273
3274
  className: "invisible ml-1 h-8 px-2 hover:bg-muted-foreground/50 group-hover:visible",
3274
3275
  variant: "outline",
3275
3276
  onClick: m,
3276
- children: /* @__PURE__ */ e.jsx(hn, { className: "h-4 w-4" })
3277
+ children: /* @__PURE__ */ e.jsx(xn, { className: "h-4 w-4" })
3277
3278
  }
3278
3279
  )
3279
3280
  ] }) })
@@ -3282,25 +3283,25 @@ function ea() {
3282
3283
  );
3283
3284
  }
3284
3285
  function A() {
3285
- return n.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(qt, { isLoading: i, card: n }) }) }) : n.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(Rt, { isLoading: i, card: n }) }) }) : /* @__PURE__ */ e.jsx(Ea, { className: "grow border-none shadow-none" });
3286
+ return n.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(_t, { isLoading: i, card: n }) }) }) : n.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(Ht, { isLoading: i, card: n }) }) }) : /* @__PURE__ */ e.jsx(qa, { className: "grow border-none shadow-none" });
3286
3287
  }
3287
3288
  return /* @__PURE__ */ e.jsxs("div", { className: "relative flex h-full flex-col py-3", children: [
3288
3289
  i && /* @__PURE__ */ e.jsx(Be, { className: "absolute bottom-0 left-0 right-0 top-0 z-10 m-auto h-10 w-10 animate-spin text-foreground/10" }),
3289
3290
  /* @__PURE__ */ e.jsxs("div", { className: "mb-0 flex min-h-10 items-center justify-end gap-2 px-6", children: [
3290
3291
  t && /* @__PURE__ */ e.jsxs("div", { className: "flex grow items-center gap-2", children: [
3291
- /* @__PURE__ */ e.jsx(ul, {}),
3292
- n.type !== "table" && /* @__PURE__ */ e.jsx(dl, {})
3292
+ /* @__PURE__ */ e.jsx(ml, {}),
3293
+ n.type !== "table" && /* @__PURE__ */ e.jsx(hl, {})
3293
3294
  ] }),
3294
- /* @__PURE__ */ e.jsx(xl, {})
3295
+ /* @__PURE__ */ e.jsx(fl, {})
3295
3296
  ] }),
3296
3297
  t ? M() : /* @__PURE__ */ e.jsxs("div", { className: "flex min-h-0 w-full flex-1 grow basis-0 px-6", children: [
3297
- l && /* @__PURE__ */ e.jsx(ml, {}),
3298
- n.data && n.data.length > 0 && /* @__PURE__ */ e.jsx(ol, { data: a || [] }),
3298
+ l && /* @__PURE__ */ e.jsx(pl, {}),
3299
+ n.data && n.data.length > 0 && /* @__PURE__ */ e.jsx(dl, { data: a || [] }),
3299
3300
  o && /* @__PURE__ */ e.jsx("span", { className: "font-mono text-sm", children: o })
3300
3301
  ] })
3301
3302
  ] });
3302
3303
  }
3303
- function ml() {
3304
+ function pl() {
3304
3305
  const s = c((a) => a.pythonStdOut);
3305
3306
  if (!s)
3306
3307
  return null;
@@ -3317,14 +3318,14 @@ function ml() {
3317
3318
  /* @__PURE__ */ e.jsx(He, { className: "mb-2" })
3318
3319
  ] });
3319
3320
  }
3320
- function xl() {
3321
+ function fl() {
3321
3322
  const s = c((a) => a.isShowingVisual), n = c(
3322
3323
  (a) => a.actions.setIsShowingVisual
3323
3324
  );
3324
3325
  return /* @__PURE__ */ e.jsxs("div", { className: "flex items-center space-x-2", children: [
3325
3326
  /* @__PURE__ */ e.jsx(H, { htmlFor: "visualize", children: "Chart" }),
3326
3327
  /* @__PURE__ */ e.jsx(
3327
- _t,
3328
+ $t,
3328
3329
  {
3329
3330
  checked: s,
3330
3331
  onCheckedChange: () => n(!s),
@@ -3334,7 +3335,7 @@ function xl() {
3334
3335
  )
3335
3336
  ] });
3336
3337
  }
3337
- function pl({
3338
+ function gl({
3338
3339
  value: s,
3339
3340
  onValueChange: n,
3340
3341
  components: a
@@ -3351,7 +3352,7 @@ function pl({
3351
3352
  className: "h-8 w-full justify-between",
3352
3353
  children: [
3353
3354
  s ? (o = a.find((l) => l.value === s)) == null ? void 0 : o.label : "Select Component...",
3354
- /* @__PURE__ */ e.jsx(dn, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
3355
+ /* @__PURE__ */ e.jsx(hn, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
3355
3356
  ]
3356
3357
  }
3357
3358
  ) }),
@@ -3387,7 +3388,7 @@ function pl({
3387
3388
  ] }) })
3388
3389
  ] });
3389
3390
  }
3390
- function fl({
3391
+ function jl({
3391
3392
  options: s,
3392
3393
  value: n,
3393
3394
  onValueChange: a
@@ -3427,19 +3428,19 @@ function ps({
3427
3428
  ] }) })
3428
3429
  ] });
3429
3430
  }
3430
- function gl() {
3431
+ function bl() {
3431
3432
  const { authToken: s } = je(), { data: n, isLoading: a, isFetching: t, isError: i } = re({
3432
3433
  queryKey: ["plugins", s == null ? void 0 : s.accessToken],
3433
- queryFn: () => Ht(s == null ? void 0 : s.accessToken)
3434
+ queryFn: () => Bt(s == null ? void 0 : s.accessToken)
3434
3435
  // staleTime: Infinity,
3435
3436
  });
3436
3437
  return { data: n, isLoading: a, isFetching: t, isError: i };
3437
3438
  }
3438
- function jl() {
3439
+ function yl() {
3439
3440
  var f;
3440
3441
  const s = c(
3441
3442
  (u) => u.card.customCardPreferences
3442
- ), { data: n } = gl(), a = (n == null ? void 0 : n.plugins) || [];
3443
+ ), { data: n } = bl(), a = (n == null ? void 0 : n.plugins) || [];
3443
3444
  c((u) => u.card);
3444
3445
  const t = c((u) => u.frame), i = (s == null ? void 0 : s.visualType) || "single", { setCustomCardPreferences: o } = Ie(), { components: l, manifest: r } = ma(
3445
3446
  (s == null ? void 0 : s.url) || ""
@@ -3499,7 +3500,7 @@ function jl() {
3499
3500
  return s ? u === "input" ? /* @__PURE__ */ e.jsx(
3500
3501
  Ce,
3501
3502
  {
3502
- className: `h-8 w-full ${$t}`,
3503
+ className: `h-8 w-full ${Ut}`,
3503
3504
  value: ((I = s == null ? void 0 : s.settings) == null ? void 0 : I[k]) || "",
3504
3505
  onChange: (M) => {
3505
3506
  o({
@@ -3567,7 +3568,7 @@ function jl() {
3567
3568
  ) })
3568
3569
  ] }),
3569
3570
  ((s == null ? void 0 : s.type) === "component" || (s == null ? void 0 : s.type) === void 0) && /* @__PURE__ */ e.jsx(
3570
- fl,
3571
+ jl,
3571
3572
  {
3572
3573
  options: [
3573
3574
  { value: "single", label: "Single Visual" },
@@ -3581,7 +3582,7 @@ function jl() {
3581
3582
  /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
3582
3583
  /* @__PURE__ */ e.jsx(H, { children: "Component" }),
3583
3584
  /* @__PURE__ */ e.jsx("div", { className: "space-y-2 px-2", children: /* @__PURE__ */ e.jsx(
3584
- pl,
3585
+ gl,
3585
3586
  {
3586
3587
  components: (l == null ? void 0 : l.filter((u) => u.type === i).map((u) => ({
3587
3588
  value: u.name,
@@ -3705,7 +3706,7 @@ function Oe() {
3705
3706
  /* @__PURE__ */ e.jsx("div", { className: "flex items-center gap-2", children: ((m = a == null ? void 0 : a.onClickFilter) == null ? void 0 : m.find(
3706
3707
  (f) => f.columnIndex === y
3707
3708
  )) && /* @__PURE__ */ e.jsx(
3708
- La,
3709
+ Da,
3709
3710
  {
3710
3711
  onClick: () => {
3711
3712
  n((f) => {
@@ -3760,7 +3761,7 @@ function sa(s, n) {
3760
3761
  const a = wa(s, n);
3761
3762
  return ((o = (i = (t = s == null ? void 0 : s.chartOptions) == null ? void 0 : t.scales) == null ? void 0 : i[a]) == null ? void 0 : o.type) || "linear";
3762
3763
  }
3763
- function Ga() {
3764
+ function Pa() {
3764
3765
  var le, P, ie, w, E, X;
3765
3766
  const [s, n] = V(!1), a = c((T) => {
3766
3767
  var L;
@@ -3930,7 +3931,7 @@ function Ga() {
3930
3931
  v(se);
3931
3932
  }
3932
3933
  return /* @__PURE__ */ e.jsxs(Ge, { onOpenChange: (T) => n(T), children: [
3933
- /* @__PURE__ */ e.jsx(Ke, { asChild: !0, children: /* @__PURE__ */ e.jsx(Bt, { className: "size-4 cursor-pointer text-muted-foreground hover:text-foreground" }) }),
3934
+ /* @__PURE__ */ e.jsx(Ke, { asChild: !0, children: /* @__PURE__ */ e.jsx(Gt, { className: "size-4 cursor-pointer text-muted-foreground hover:text-foreground" }) }),
3934
3935
  /* @__PURE__ */ e.jsx(Pe, { align: "center", className: "max-w-65", children: /* @__PURE__ */ e.jsxs("div", { className: "grid gap-4", children: [
3935
3936
  /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
3936
3937
  /* @__PURE__ */ e.jsx("h4", { className: "font-medium leading-none", children: "Scale Options" }),
@@ -3982,7 +3983,7 @@ function Ga() {
3982
3983
  ] }),
3983
3984
  y === "custom" && o == "linear" && ee(),
3984
3985
  B(),
3985
- /* @__PURE__ */ e.jsx(Ut, {}),
3986
+ /* @__PURE__ */ e.jsx(Kt, {}),
3986
3987
  /* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-3", children: /* @__PURE__ */ e.jsx(
3987
3988
  F,
3988
3989
  {
@@ -3996,7 +3997,7 @@ function Ga() {
3996
3997
  ] }) })
3997
3998
  ] });
3998
3999
  }
3999
- function bl({ idx: s }) {
4000
+ function vl({ idx: s }) {
4000
4001
  var r;
4001
4002
  const n = c((d) => {
4002
4003
  var p;
@@ -4010,7 +4011,7 @@ function bl({ idx: s }) {
4010
4011
  (d) => d.actions.setCardPreferences
4011
4012
  ), i = (r = n == null ? void 0 : n.chartOptions) == null ? void 0 : r.indexAxis, o = a == null ? void 0 : a.find((d) => d.idx === s);
4012
4013
  function l(d, p) {
4013
- (d === "end" || d === "start") && Gt(Kt());
4014
+ (d === "end" || d === "start") && Pt(Wt());
4014
4015
  const h = {
4015
4016
  display: d !== "none",
4016
4017
  align: d,
@@ -4041,7 +4042,7 @@ function bl({ idx: s }) {
4041
4042
  }
4042
4043
  }
4043
4044
  return /* @__PURE__ */ e.jsxs(Ge, { children: [
4044
- /* @__PURE__ */ e.jsx(Ke, { children: /* @__PURE__ */ e.jsx(On, { className: "invisible size-4 rotate-[135deg] cursor-pointer text-muted-foreground hover:text-foreground group-hover:visible" }) }),
4045
+ /* @__PURE__ */ e.jsx(Ke, { children: /* @__PURE__ */ e.jsx(En, { className: "invisible size-4 rotate-[135deg] cursor-pointer text-muted-foreground hover:text-foreground group-hover:visible" }) }),
4045
4046
  /* @__PURE__ */ e.jsx(Pe, { className: "w-fit p-1", children: /* @__PURE__ */ e.jsxs("div", { className: "flex gap-1", children: [
4046
4047
  /* @__PURE__ */ e.jsx(
4047
4048
  F,
@@ -4061,7 +4062,7 @@ function bl({ idx: s }) {
4061
4062
  variant: "secondary",
4062
4063
  className: "h-7 p-1 text-xs font-normal",
4063
4064
  children: /* @__PURE__ */ e.jsx(
4064
- Cn,
4065
+ wn,
4065
4066
  {
4066
4067
  className: J("h-4 w-4", {
4067
4068
  "rotate-90": i === "y"
@@ -4078,7 +4079,7 @@ function bl({ idx: s }) {
4078
4079
  variant: "secondary",
4079
4080
  className: "h-7 p-1 text-xs font-normal",
4080
4081
  children: /* @__PURE__ */ e.jsx(
4081
- wn,
4082
+ zn,
4082
4083
  {
4083
4084
  className: J("h-4 w-4", {
4084
4085
  "rotate-90": i === "y"
@@ -4095,7 +4096,7 @@ function bl({ idx: s }) {
4095
4096
  variant: "secondary",
4096
4097
  className: "h-7 p-1 text-xs font-normal",
4097
4098
  children: /* @__PURE__ */ e.jsx(
4098
- Sn,
4099
+ kn,
4099
4100
  {
4100
4101
  className: J("h-4 w-4", {
4101
4102
  "rotate-90": i === "y"
@@ -4107,7 +4108,7 @@ function bl({ idx: s }) {
4107
4108
  ] }) })
4108
4109
  ] });
4109
4110
  }
4110
- function Ka() {
4111
+ function Wa() {
4111
4112
  const s = c((d) => d.card), n = c(
4112
4113
  (d) => {
4113
4114
  var p, h, y;
@@ -4120,7 +4121,7 @@ function Ka() {
4120
4121
  } = gs(s.data || []);
4121
4122
  let r = o;
4122
4123
  if (["stackedBar", "stackedLine"].includes(s.type)) {
4123
- const d = Pt({
4124
+ const d = Qt({
4124
4125
  dataArray: s.data || [],
4125
4126
  groupKey: l[0],
4126
4127
  pivotKey: l[1],
@@ -4136,13 +4137,13 @@ function Ka() {
4136
4137
  /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
4137
4138
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between gap-5", children: [
4138
4139
  /* @__PURE__ */ e.jsx(H, { children: t }),
4139
- /* @__PURE__ */ e.jsx(Ga, {})
4140
+ /* @__PURE__ */ e.jsx(Pa, {})
4140
4141
  ] }),
4141
- /* @__PURE__ */ e.jsx("div", { className: "my-1 space-y-1", children: r.map((d, p) => /* @__PURE__ */ e.jsx(yl, { col: d, idx: p }, d)) })
4142
+ /* @__PURE__ */ e.jsx("div", { className: "my-1 space-y-1", children: r.map((d, p) => /* @__PURE__ */ e.jsx(Nl, { col: d, idx: p }, d)) })
4142
4143
  ] })
4143
4144
  ] });
4144
4145
  }
4145
- function yl({ col: s, idx: n }) {
4146
+ function Nl({ col: s, idx: n }) {
4146
4147
  const a = c((r) => {
4147
4148
  var d;
4148
4149
  return (d = r.card) == null ? void 0 : d.preferences;
@@ -4195,7 +4196,7 @@ function yl({ col: s, idx: n }) {
4195
4196
  }
4196
4197
  ),
4197
4198
  /* @__PURE__ */ e.jsx(
4198
- cn,
4199
+ un,
4199
4200
  {
4200
4201
  onClick: () => l("area"),
4201
4202
  className: "invisible size-4 cursor-pointer text-muted-foreground hover:text-foreground group-hover:visible"
@@ -4208,11 +4209,11 @@ function yl({ col: s, idx: n }) {
4208
4209
  className: "invisible size-4 cursor-pointer py-2 text-muted-foreground hover:text-foreground group-hover:visible"
4209
4210
  }
4210
4211
  ),
4211
- /* @__PURE__ */ e.jsx(bl, { idx: n })
4212
+ /* @__PURE__ */ e.jsx(vl, { idx: n })
4212
4213
  ] })
4213
4214
  ] });
4214
4215
  }
4215
- function Pa() {
4216
+ function Qa() {
4216
4217
  const s = c((x) => x.selectedConnectionId), n = c((x) => x.selectedDatamodelId), a = c((x) => x.selectedDatabaseName), t = c((x) => x.selectedSchemaName), i = c((x) => x.selectedTableName), o = z((x) => x.dashboard.filters) || [], l = z((x) => x.actions.addFilter), r = z((x) => x.actions.removeFilter), d = z(
4217
4218
  (x) => x.actions.removeFilterValue
4218
4219
  ), { modelItems: p, tableName: h } = Me();
@@ -4278,7 +4279,7 @@ function Pa() {
4278
4279
  function Ae() {
4279
4280
  const s = z(
4280
4281
  (r) => r.dashboard.filters
4281
- ), n = c((r) => r.frame), { setFrame: a } = Ie(), { columns: t } = Me(), { assignFilter: i } = Pa();
4282
+ ), n = c((r) => r.frame), { setFrame: a } = Ie(), { columns: t } = Me(), { assignFilter: i } = Qa();
4282
4283
  function o(r) {
4283
4284
  const d = i(r, "frame");
4284
4285
  a({ ...n, filterId: d });
@@ -4286,11 +4287,11 @@ function Ae() {
4286
4287
  const l = s == null ? void 0 : s.find((r) => r.id === n.filterId);
4287
4288
  return /* @__PURE__ */ e.jsxs("div", { className: "space-y-3", children: [
4288
4289
  /* @__PURE__ */ e.jsx(H, { children: "Card Filter" }),
4289
- /* @__PURE__ */ e.jsx(vl, { onSelect: o, columns: t }),
4290
- l && /* @__PURE__ */ e.jsx(Wt, { filter: l })
4290
+ /* @__PURE__ */ e.jsx(Cl, { onSelect: o, columns: t }),
4291
+ l && /* @__PURE__ */ e.jsx(Jt, { filter: l })
4291
4292
  ] });
4292
4293
  }
4293
- function vl({
4294
+ function Cl({
4294
4295
  columns: s,
4295
4296
  onSelect: n
4296
4297
  }) {
@@ -4307,7 +4308,7 @@ function vl({
4307
4308
  className: "w-full justify-between font-normal",
4308
4309
  children: [
4309
4310
  i ? (l = s.find((r) => r.column_name === i)) == null ? void 0 : l.column_name : "Select Column...",
4310
- /* @__PURE__ */ e.jsx(Qt, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
4311
+ /* @__PURE__ */ e.jsx(Yt, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
4311
4312
  ]
4312
4313
  }
4313
4314
  ) }),
@@ -4342,7 +4343,7 @@ function vl({
4342
4343
  ] }) })
4343
4344
  ] });
4344
4345
  }
4345
- function Nl({
4346
+ function Sl({
4346
4347
  cardType: s
4347
4348
  }) {
4348
4349
  return /* @__PURE__ */ e.jsx("div", { className: "space-y-6 px-6 py-2", children: /* @__PURE__ */ e.jsxs(Le, { defaultValue: ["item-2"], type: "multiple", children: [
@@ -4375,7 +4376,7 @@ function Nl({
4375
4376
  /* @__PURE__ */ e.jsx(G, { children: "Settings" }),
4376
4377
  /* @__PURE__ */ e.jsxs(K, { className: "space-y-4 px-2", children: [
4377
4378
  /* @__PURE__ */ e.jsx(cs, {}),
4378
- /* @__PURE__ */ e.jsx(Ka, {})
4379
+ /* @__PURE__ */ e.jsx(Wa, {})
4379
4380
  ] })
4380
4381
  ] }),
4381
4382
  /* @__PURE__ */ e.jsxs(U, { value: "item-3", children: [
@@ -4416,7 +4417,7 @@ function $s() {
4416
4417
  return /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
4417
4418
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between", children: [
4418
4419
  /* @__PURE__ */ e.jsx("label", { className: "font-medium", children: "Data Labels" }),
4419
- !["pyramid"].includes(a) && /* @__PURE__ */ e.jsx(Ga, {})
4420
+ !["pyramid"].includes(a) && /* @__PURE__ */ e.jsx(Pa, {})
4420
4421
  ] }),
4421
4422
  /* @__PURE__ */ e.jsxs(
4422
4423
  he,
@@ -4438,7 +4439,7 @@ function $s() {
4438
4439
  )
4439
4440
  ] });
4440
4441
  }
4441
- function Cl({
4442
+ function wl({
4442
4443
  cardType: s
4443
4444
  }) {
4444
4445
  function n(a) {
@@ -4486,7 +4487,7 @@ function Cl({
4486
4487
  ] })
4487
4488
  ] }) });
4488
4489
  }
4489
- const Sl = {
4490
+ const kl = {
4490
4491
  datasets: [
4491
4492
  {
4492
4493
  type: "line",
@@ -4499,7 +4500,7 @@ const Sl = {
4499
4500
  data: []
4500
4501
  }
4501
4502
  ]
4502
- }, wl = {
4503
+ }, zl = {
4503
4504
  datasets: [
4504
4505
  {
4505
4506
  fill: "origin",
@@ -4509,7 +4510,7 @@ const Sl = {
4509
4510
  }
4510
4511
  ]
4511
4512
  };
4512
- function kl() {
4513
+ function Fl() {
4513
4514
  const s = c((n) => n.card.type);
4514
4515
  return /* @__PURE__ */ e.jsxs("div", { className: "space-y-6 p-6", children: [
4515
4516
  /* @__PURE__ */ e.jsx(
@@ -4518,7 +4519,7 @@ function kl() {
4518
4519
  className: " ",
4519
4520
  type: "single",
4520
4521
  collapsible: !0,
4521
- children: zl(s)
4522
+ children: Ll(s)
4522
4523
  }
4523
4524
  ),
4524
4525
  /* @__PURE__ */ e.jsx("section", { className: "", children: ["line", "bar"].includes(s) && /* @__PURE__ */ e.jsx(cs, {}) }),
@@ -4529,7 +4530,7 @@ function kl() {
4529
4530
  ] })
4530
4531
  ] });
4531
4532
  }
4532
- function zl(s) {
4533
+ function Ll(s) {
4533
4534
  if (["line", "bar"].includes(s))
4534
4535
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
4535
4536
  /* @__PURE__ */ e.jsxs(U, { value: "item-1", children: [
@@ -4550,7 +4551,7 @@ function zl(s) {
4550
4551
  /* @__PURE__ */ e.jsx("b", { children: "Customize" }),
4551
4552
  " and change the `type` property in the dataset."
4552
4553
  ] }),
4553
- /* @__PURE__ */ e.jsx("pre", { children: JSON.stringify(Sl, null, 2) })
4554
+ /* @__PURE__ */ e.jsx("pre", { children: JSON.stringify(kl, null, 2) })
4554
4555
  ] })
4555
4556
  ] }),
4556
4557
  /* @__PURE__ */ e.jsxs(U, { value: "item-3", children: [
@@ -4571,7 +4572,7 @@ function zl(s) {
4571
4572
  ),
4572
4573
  "for more options."
4573
4574
  ] }),
4574
- /* @__PURE__ */ e.jsx("pre", { children: JSON.stringify(wl, null, 2) })
4575
+ /* @__PURE__ */ e.jsx("pre", { children: JSON.stringify(zl, null, 2) })
4575
4576
  ] })
4576
4577
  ] })
4577
4578
  ] });
@@ -4626,7 +4627,7 @@ function zl(s) {
4626
4627
  ] })
4627
4628
  ] }) });
4628
4629
  }
4629
- function Fl() {
4630
+ function Tl() {
4630
4631
  var d, p, h, y, x;
4631
4632
  const s = c((m) => m.card.preferences), n = c(
4632
4633
  (m) => m.actions.setCardPreferences
@@ -4782,7 +4783,7 @@ function Fl() {
4782
4783
  ] }) }),
4783
4784
  /* @__PURE__ */ e.jsx(He, { className: "my-3" }),
4784
4785
  /* @__PURE__ */ e.jsx(
4785
- Jt,
4786
+ Xt,
4786
4787
  {
4787
4788
  colorRanges: o,
4788
4789
  setColorRanges: l
@@ -4791,7 +4792,7 @@ function Fl() {
4791
4792
  ] })
4792
4793
  ] });
4793
4794
  }
4794
- function Ll() {
4795
+ function Dl() {
4795
4796
  return /* @__PURE__ */ e.jsxs("div", { className: "space-y-6 px-6 py-2", children: [
4796
4797
  /* @__PURE__ */ e.jsx(Le, { type: "single", collapsible: !0, children: /* @__PURE__ */ e.jsxs(U, { value: "item-1", children: [
4797
4798
  /* @__PURE__ */ e.jsx(G, { className: "", children: "KPI Query" }),
@@ -4817,12 +4818,12 @@ function Ll() {
4817
4818
  ] })
4818
4819
  ] })
4819
4820
  ] }) }),
4820
- /* @__PURE__ */ e.jsx("section", { className: "", children: /* @__PURE__ */ e.jsx(Fl, {}) }),
4821
+ /* @__PURE__ */ e.jsx("section", { className: "", children: /* @__PURE__ */ e.jsx(Tl, {}) }),
4821
4822
  /* @__PURE__ */ e.jsx("div", {}),
4822
4823
  /* @__PURE__ */ e.jsx("div", {})
4823
4824
  ] });
4824
4825
  }
4825
- function Tl() {
4826
+ function Il() {
4826
4827
  var t;
4827
4828
  const s = c((i) => i.card.preferences), { setCardPreferences: n } = c((i) => i.actions);
4828
4829
  function a(i) {
@@ -4889,7 +4890,7 @@ function Ze({
4889
4890
  /* @__PURE__ */ e.jsxs(K, { className: "space-y-4 px-2", children: [
4890
4891
  s === "range" && /* @__PURE__ */ e.jsx(cs, {}),
4891
4892
  s !== "text" && /* @__PURE__ */ e.jsx($s, {}),
4892
- s === "text" && /* @__PURE__ */ e.jsx(Tl, {})
4893
+ s === "text" && /* @__PURE__ */ e.jsx(Il, {})
4893
4894
  ] })
4894
4895
  ] }),
4895
4896
  !["range", "text"].includes(s) && /* @__PURE__ */ e.jsxs(U, { value: "item-3", children: [
@@ -4901,7 +4902,7 @@ function Ze({
4901
4902
  ] })
4902
4903
  ] }) });
4903
4904
  }
4904
- function Dl() {
4905
+ function Ml() {
4905
4906
  return /* @__PURE__ */ e.jsx("div", { className: "space-y-6 px-6 py-2", children: /* @__PURE__ */ e.jsxs(Le, { defaultValue: ["item-2"], type: "multiple", children: [
4906
4907
  /* @__PURE__ */ e.jsxs(U, { value: "item-1", children: [
4907
4908
  /* @__PURE__ */ e.jsx(G, { children: "Stacked Chart" }),
@@ -4932,7 +4933,7 @@ function Dl() {
4932
4933
  /* @__PURE__ */ e.jsx(G, { children: "Settings" }),
4933
4934
  /* @__PURE__ */ e.jsxs(K, { className: "space-y-4 px-2", children: [
4934
4935
  /* @__PURE__ */ e.jsx(cs, {}),
4935
- /* @__PURE__ */ e.jsx(Ka, {})
4936
+ /* @__PURE__ */ e.jsx(Wa, {})
4936
4937
  ] })
4937
4938
  ] }),
4938
4939
  /* @__PURE__ */ e.jsxs(U, { value: "item-3", children: [
@@ -4944,7 +4945,7 @@ function Dl() {
4944
4945
  ] })
4945
4946
  ] }) });
4946
4947
  }
4947
- function Il({}) {
4948
+ function Ol({}) {
4948
4949
  const s = c((t) => {
4949
4950
  var i;
4950
4951
  return (i = t.card) == null ? void 0 : i.preferences;
@@ -4977,7 +4978,7 @@ function Il({}) {
4977
4978
  ] })
4978
4979
  ] });
4979
4980
  }
4980
- const Ml = /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 font-mono text-xs", children: [
4981
+ const Al = /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 font-mono text-xs", children: [
4981
4982
  /* @__PURE__ */ e.jsx("div", { className: "rounded bg-muted px-2 py-1 text-xs", children: "SELECT dimension, cohort, metric FROM table" }),
4982
4983
  /* @__PURE__ */ e.jsxs("div", { children: [
4983
4984
  "See ",
@@ -4993,7 +4994,7 @@ const Ml = /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 font-mono text-
4993
4994
  ),
4994
4995
  " in the docs."
4995
4996
  ] })
4996
- ] }), Ol = /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 font-mono text-xs", children: [
4997
+ ] }), El = /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 font-mono text-xs", children: [
4997
4998
  /* @__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" }),
4998
4999
  /* @__PURE__ */ e.jsxs("div", { children: [
4999
5000
  "See ",
@@ -5009,7 +5010,7 @@ const Ml = /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 font-mono text-
5009
5010
  ),
5010
5011
  " in the docs."
5011
5012
  ] })
5012
- ] }), Al = /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 font-mono text-xs", children: [
5013
+ ] }), Vl = /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 font-mono text-xs", children: [
5013
5014
  /* @__PURE__ */ e.jsx("div", { className: "rounded bg-muted px-2 py-1 text-xs", children: "SELECT text FROM table limit 1" }),
5014
5015
  /* @__PURE__ */ e.jsxs("div", { children: [
5015
5016
  "See ",
@@ -5026,22 +5027,22 @@ const Ml = /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 font-mono text-
5026
5027
  " in the docs."
5027
5028
  ] })
5028
5029
  ] });
5029
- function El() {
5030
+ function ql() {
5030
5031
  const s = c((a) => a.card.type);
5031
5032
  function n(a) {
5032
5033
  switch (a) {
5033
5034
  case "stackedBar":
5034
5035
  case "stackedLine":
5035
- return /* @__PURE__ */ e.jsx(Dl, {});
5036
+ return /* @__PURE__ */ e.jsx(Ml, {});
5036
5037
  case "pyramid":
5037
- return /* @__PURE__ */ e.jsx(Ze, { docContent: Ml, cardType: a });
5038
+ return /* @__PURE__ */ e.jsx(Ze, { docContent: Al, cardType: a });
5038
5039
  case "kpi":
5039
- return /* @__PURE__ */ e.jsx(Ll, {});
5040
+ return /* @__PURE__ */ e.jsx(Dl, {});
5040
5041
  case "line":
5041
5042
  case "bar":
5042
- return /* @__PURE__ */ e.jsx(Nl, { cardType: a });
5043
+ return /* @__PURE__ */ e.jsx(Sl, { cardType: a });
5043
5044
  case "range":
5044
- return /* @__PURE__ */ e.jsx(Ze, { docContent: Ol, cardType: a });
5045
+ return /* @__PURE__ */ e.jsx(Ze, { docContent: El, cardType: a });
5045
5046
  case "pie":
5046
5047
  case "doughnut":
5047
5048
  case "polarArea":
@@ -5049,27 +5050,27 @@ function El() {
5049
5050
  return /* @__PURE__ */ e.jsx(Ze, { cardType: a });
5050
5051
  case "bubble":
5051
5052
  case "scatter":
5052
- return /* @__PURE__ */ e.jsx(Cl, { cardType: a });
5053
+ return /* @__PURE__ */ e.jsx(wl, { cardType: a });
5053
5054
  case "table":
5054
- return /* @__PURE__ */ e.jsx(Il, { cardType: a });
5055
+ return /* @__PURE__ */ e.jsx(Ol, { cardType: a });
5055
5056
  case "text":
5056
5057
  return /* @__PURE__ */ e.jsx(
5057
5058
  Ze,
5058
5059
  {
5059
- docContent: Al,
5060
+ docContent: Vl,
5060
5061
  cardType: a,
5061
5062
  suffix: "Visual"
5062
5063
  }
5063
5064
  );
5064
5065
  case "custom":
5065
- return /* @__PURE__ */ e.jsx(jl, {});
5066
+ return /* @__PURE__ */ e.jsx(yl, {});
5066
5067
  default:
5067
- return /* @__PURE__ */ e.jsx(kl, {});
5068
+ return /* @__PURE__ */ e.jsx(Fl, {});
5068
5069
  }
5069
5070
  }
5070
5071
  return /* @__PURE__ */ e.jsx(Vs, { className: "h-full w-full text-sm", children: n(s) });
5071
5072
  }
5072
- function Vl() {
5073
+ function Rl() {
5073
5074
  const s = c((n) => n.isShowingVisual);
5074
5075
  return /* @__PURE__ */ e.jsxs(
5075
5076
  js,
@@ -5084,7 +5085,7 @@ function Vl() {
5084
5085
  className: "flex",
5085
5086
  minSize: 20,
5086
5087
  defaultSize: 40,
5087
- children: /* @__PURE__ */ e.jsx(rl, {})
5088
+ children: /* @__PURE__ */ e.jsx(cl, {})
5088
5089
  }
5089
5090
  ),
5090
5091
  /* @__PURE__ */ e.jsx(bs, { withHandle: !0, className: "border" }),
@@ -5103,7 +5104,7 @@ function Vl() {
5103
5104
  minSize: 20,
5104
5105
  defaultSize: 25,
5105
5106
  maxSize: 30,
5106
- children: /* @__PURE__ */ e.jsx(El, {})
5107
+ children: /* @__PURE__ */ e.jsx(ql, {})
5107
5108
  }
5108
5109
  ) }),
5109
5110
  /* @__PURE__ */ e.jsx(bs, { className: "border" }),
@@ -5115,18 +5116,18 @@ function Vl() {
5115
5116
  }
5116
5117
  );
5117
5118
  }
5118
- function ql({ authToken: s, onSave: n, onClose: a }) {
5119
+ function _l({ authToken: s, onSave: n, onClose: a }) {
5119
5120
  const t = c((l) => l.actions.setOnSave), i = c((l) => l.actions.setOnClose), o = z((l) => l.actions.setAuthToken);
5120
5121
  return Z(() => {
5121
5122
  n && t(n), a && i(a);
5122
5123
  }, [n, t, a, i]), Z(() => {
5123
5124
  s && s.accessToken && o(s);
5124
- }, [s, o]), /* @__PURE__ */ e.jsxs(Yt, { className: "rounded-none", role: "editor-panel", children: [
5125
- /* @__PURE__ */ e.jsx(Xt, { className: "rounded-none border-r-[1.5px]", children: /* @__PURE__ */ e.jsx(Ma, {}) }),
5126
- /* @__PURE__ */ e.jsx(Zt, { children: /* @__PURE__ */ e.jsx(Vl, {}) })
5127
- ] });
5125
+ }, [s, o]), /* @__PURE__ */ e.jsx(ka, { FallbackComponent: za, children: /* @__PURE__ */ e.jsxs(Zt, { className: "rounded-none", role: "editor-panel", children: [
5126
+ /* @__PURE__ */ e.jsx(en, { className: "rounded-none border-r-[1.5px]", children: /* @__PURE__ */ e.jsx(Aa, {}) }),
5127
+ /* @__PURE__ */ e.jsx(sn, { children: /* @__PURE__ */ e.jsx(Rl, {}) })
5128
+ ] }) });
5128
5129
  }
5129
- function Rl() {
5130
+ function Hl() {
5130
5131
  z((l) => l.selectedCardId);
5131
5132
  const s = z((l) => l.selectedSheetId), { setIsVisualEditing: n } = z((l) => l.actions), a = z((l) => l.isVisualEditing), t = z((l) => l.actions.updateFrame);
5132
5133
  function i(l) {
@@ -5143,11 +5144,11 @@ function Rl() {
5143
5144
  block: a,
5144
5145
  hidden: !a
5145
5146
  }),
5146
- children: /* @__PURE__ */ e.jsx(ql, { onSave: i, onClose: o })
5147
+ children: /* @__PURE__ */ e.jsx(_l, { onSave: i, onClose: o })
5147
5148
  }
5148
5149
  );
5149
5150
  }
5150
- function _l() {
5151
+ function $l() {
5151
5152
  c((l) => l.selectedConnectionId), c((l) => l.selectedDatamodelId);
5152
5153
  const s = c((l) => l.selectedDatabaseName);
5153
5154
  c((l) => l.selectedSchemaName);
@@ -5155,7 +5156,7 @@ function _l() {
5155
5156
  z((l) => l.actions.addFilter), z((l) => l.actions.removeFilter), z(
5156
5157
  (l) => l.actions.removeFilterValue
5157
5158
  );
5158
- const { modelItems: t, columns: i } = Me(), { assignFilter: o } = Pa();
5159
+ const { modelItems: t, columns: i } = Me(), { assignFilter: o } = Qa();
5159
5160
  return /* @__PURE__ */ e.jsx("div", { className: "xbg-red-100 flex-1 basis-0 flex-col overflow-scroll px-3", children: i == null ? void 0 : i.map((l) => {
5160
5161
  const r = a == null ? void 0 : a.find(
5161
5162
  (d) => d.column === ue(l.column_name) && d.table === n && d.database === s
@@ -5171,7 +5172,7 @@ function _l() {
5171
5172
  }
5172
5173
  ),
5173
5174
  children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
5174
- /* @__PURE__ */ e.jsx(Ia, { column: l }),
5175
+ /* @__PURE__ */ e.jsx(Oa, { column: l }),
5175
5176
  /* @__PURE__ */ e.jsx("span", { children: l.column_name })
5176
5177
  ] })
5177
5178
  },
@@ -5179,7 +5180,7 @@ function _l() {
5179
5180
  );
5180
5181
  }) });
5181
5182
  }
5182
- function Hl() {
5183
+ function Bl() {
5183
5184
  z((n) => n.showFilters);
5184
5185
  const s = z(
5185
5186
  (n) => n.actions.setShowFilters
@@ -5198,12 +5199,12 @@ function Hl() {
5198
5199
  )
5199
5200
  ] }),
5200
5201
  /* @__PURE__ */ e.jsx("div", { className: "flex grow", children: /* @__PURE__ */ e.jsx(
5201
- Ma,
5202
+ Aa,
5202
5203
  {
5203
5204
  ColumnsComponent: () => (
5204
5205
  // schemaName, tableName, columns
5205
5206
  /* @__PURE__ */ e.jsx(
5206
- _l,
5207
+ $l,
5207
5208
  {}
5208
5209
  )
5209
5210
  )
@@ -5211,7 +5212,7 @@ function Hl() {
5211
5212
  ) })
5212
5213
  ] });
5213
5214
  }
5214
- function $l() {
5215
+ function Ul() {
5215
5216
  const s = z((a) => a.showFilters), n = z((a) => a.isVisualEditing);
5216
5217
  return /* @__PURE__ */ e.jsxs(
5217
5218
  "div",
@@ -5222,13 +5223,13 @@ function $l() {
5222
5223
  flex: !n
5223
5224
  }),
5224
5225
  children: [
5225
- /* @__PURE__ */ e.jsx(en, {}),
5226
- s && /* @__PURE__ */ e.jsx("div", { role: "filter-aside-container", className: "flex", children: /* @__PURE__ */ e.jsx(Hl, {}) })
5226
+ /* @__PURE__ */ e.jsx(an, {}),
5227
+ s && /* @__PURE__ */ e.jsx("div", { role: "filter-aside-container", className: "flex", children: /* @__PURE__ */ e.jsx(Bl, {}) })
5227
5228
  ]
5228
5229
  }
5229
5230
  );
5230
5231
  }
5231
- function Bl() {
5232
+ function Gl() {
5232
5233
  const s = z((t) => t.dashboard), n = z((t) => t.actions.setDashboard), a = z(
5233
5234
  (t) => t.showDashboardJSON
5234
5235
  );
@@ -5241,7 +5242,7 @@ function Bl() {
5241
5242
  hidden: !a
5242
5243
  }),
5243
5244
  children: /* @__PURE__ */ e.jsx(
5244
- sn,
5245
+ tn,
5245
5246
  {
5246
5247
  onChange: (t) => {
5247
5248
  if (t)
@@ -5272,28 +5273,28 @@ function Bl() {
5272
5273
  }
5273
5274
  );
5274
5275
  }
5275
- function Kl({
5276
+ function Ql({
5276
5277
  showControls: s = !1,
5277
5278
  showFooter: n = !0,
5278
5279
  ...a
5279
5280
  }) {
5280
- return /* @__PURE__ */ e.jsxs(an, { dashboardProps: a, children: [
5281
- /* @__PURE__ */ e.jsx(tn, {}),
5282
- /* @__PURE__ */ e.jsxs(nn, { children: [
5283
- /* @__PURE__ */ e.jsx(Bl, {}),
5284
- /* @__PURE__ */ e.jsxs(ln, { ...a, children: [
5285
- s && /* @__PURE__ */ e.jsx(Bn, {}),
5286
- /* @__PURE__ */ e.jsx(Rl, {}),
5287
- /* @__PURE__ */ e.jsx($l, {})
5281
+ return /* @__PURE__ */ e.jsx(ka, { FallbackComponent: za, children: /* @__PURE__ */ e.jsxs(nn, { dashboardProps: a, children: [
5282
+ /* @__PURE__ */ e.jsx(ln, {}),
5283
+ /* @__PURE__ */ e.jsxs(rn, { children: [
5284
+ /* @__PURE__ */ e.jsx(Gl, {}),
5285
+ /* @__PURE__ */ e.jsxs(on, { ...a, children: [
5286
+ s && /* @__PURE__ */ e.jsx(Gn, {}),
5287
+ /* @__PURE__ */ e.jsx(Hl, {}),
5288
+ /* @__PURE__ */ e.jsx(Ul, {})
5288
5289
  ] })
5289
5290
  ] })
5290
- ] });
5291
+ ] }) });
5291
5292
  }
5292
5293
  export {
5293
- Kl as D,
5294
+ Ql as D,
5294
5295
  Be as L,
5295
5296
  Ve as S,
5296
- Vn as c,
5297
- Da as g,
5297
+ Rn as c,
5298
+ Ma as g,
5298
5299
  Me as u
5299
5300
  };