react-semaphor 0.0.438 → 0.0.440

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { c as A, p as nn, u as _, a as rt, b as Ve, d as Rn, e as jn, B as ee, P as mt, f as Bn, g as Pn, h as Hn, i as Gn, L as U, I as he, j as Un, k as $n, l as Qn, m as X, n as Kn, o as Jn, q as Wn, r as ks, s as In, t as G, C as an, v as Ms, S as ke, w as Me, x as De, y as Ie, z as Fe, A as Oe, E as ue, T as Zn, F as Ke, G as Je, H as It, J as ze, K as sn, M as Ot, N as rn, O as Tt, Q as Le, R as Yn, U as zt, V as Xn, W as Ae, X as On, Y as Re, Z as f, _ as ea, $ as tt, a0 as bt, a1 as Ds, a2 as ta, a3 as na, a4 as aa, a5 as sa, a6 as ra, a7 as ia, a8 as la, a9 as oa, aa as ca, ab as da, ac as ua, ad as ma, ae as xe, af as Is, ag as Se, ah as $e, ai as we, aj as Os, ak as Ts, al as zs, am as vt, an as Ee, ao as As, ap as xt, aq as Fs, ar as W, as as Ls, at as Es, au as _s, av as Jt, aw as ha, ax as At, ay as nt, az as pa, aA as Ct, aB as ge, aC as Vs, aD as qs, aE as it, aF as Rs, aG as js, aH as Bs, aI as fa, aJ as Ps, aK as Ft, aL as Hs, aM as Gs, aN as Us, aO as Tn, aP as $s, aQ as Qs, aR as ln, aS as Ce, aT as Ks, aU as Wt, aV as je, aW as pe, aX as Be, aY as Js, aZ as Ws, a_ as Zs, a$ as Ys, b0 as Xs, b1 as Rt, b2 as er, b3 as zn, b4 as tr, b5 as An, b6 as nr, b7 as ar, b8 as sr, b9 as rr, ba as ga, bb as ir, bc as on, bd as ya, be as lr, bf as or, bg as Xe, bh as cr, bi as dr, bj as ba, bk as ur, bl as mr, bm as hr, bn as pr, bo as fr, bp as Lt, bq as va, br as gr, bs as cn, bt as dn, bu as et, bv as yt, bw as yr, bx as br, by as vr, bz as un, bA as xa, bB as Ca, bC as Nt, bD as xr, bE as St, bF as Na, bG as Sa, bH as wa, bI as Cr, bJ as Nr, bK as Sr, bL as wr, bM as qe, bN as le, bO as oe, bP as ce, bQ as mn, bR as kr, bS as Mr, bT as Dr, bU as Ir, bV as Fn, bW as ka, bX as Or, bY as Tr, bZ as zr, b_ as Ar, b$ as hn, c0 as Ma, c1 as Da, c2 as pn, c3 as Fr, c4 as Ia, c5 as Oa, c6 as Lr, c7 as Er, c8 as _r, c9 as Vr, ca as qr, cb as Rr, cc as jr, cd as Br, ce as Pr, cf as jt, cg as Ta, ch as Hr, ci as Gr, cj as Ur, ck as $r, cl as Qr, cm as Kr, cn as Jr } from "./chunks/index-By2xd102.js";
2
- import { D as Go, cs as Uo, cq as $o, cq as Qo, cv as Ko, cu as Jo, ct as Wo, cw as Zo, cx as Yo, cr as Xo, co as ec, cp as tc } from "./chunks/index-By2xd102.js";
3
- import { jsxs as r, jsx as e, Fragment as se } from "react/jsx-runtime";
4
- import * as Ye from "react";
1
+ import { c as A, p as nn, u as _, a as rt, b as Ve, d as Rn, e as jn, B as ee, P as mt, f as Bn, g as Pn, h as Hn, i as Gn, L as U, I as he, j as Un, k as $n, l as Qn, m as X, n as Kn, o as Jn, q as Wn, r as ks, s as In, t as G, C as an, v as Ms, S as ke, w as Me, x as De, y as Ie, z as Fe, A as Oe, E as ue, T as Yn, F as Je, G as We, H as It, J as ze, K as sn, M as Ot, N as rn, O as Tt, Q as Le, R as Zn, U as zt, V as Xn, W as Ae, X as On, Y as Re, Z as f, _ as ea, $ as nt, a0 as bt, a1 as Ds, a2 as ta, a3 as na, a4 as aa, a5 as sa, a6 as ra, a7 as ia, a8 as la, a9 as oa, aa as ca, ab as da, ac as ua, ad as ma, ae as xe, af as Is, ag as Se, ah as $e, ai as we, aj as Os, ak as Ts, al as zs, am as vt, an as Ee, ao as As, ap as xt, aq as Fs, ar as W, as as Ls, at as Es, au as _s, av as Jt, aw as ha, ax as At, ay as Qe, az as pa, aA as Ct, aB as ge, aC as Vs, aD as qs, aE as it, aF as Rs, aG as js, aH as Bs, aI as fa, aJ as Ps, aK as Ft, aL as Hs, aM as Gs, aN as Us, aO as Tn, aP as $s, aQ as Qs, aR as ln, aS as Ce, aT as Ks, aU as Wt, aV as je, aW as pe, aX as Be, aY as Js, aZ as Ws, a_ as Ys, a$ as Zs, b0 as Xs, b1 as Rt, b2 as er, b3 as zn, b4 as tr, b5 as An, b6 as nr, b7 as ar, b8 as sr, b9 as rr, ba as ga, bb as ir, bc as on, bd as ya, be as lr, bf as or, bg as et, bh as cr, bi as dr, bj as ba, bk as ur, bl as mr, bm as hr, bn as pr, bo as fr, bp as Lt, bq as va, br as gr, bs as cn, bt as dn, bu as tt, bv as yt, bw as yr, bx as br, by as vr, bz as un, bA as xa, bB as Ca, bC as Nt, bD as xr, bE as St, bF as Na, bG as Sa, bH as wa, bI as Cr, bJ as Nr, bK as Sr, bL as wr, bM as qe, bN as le, bO as oe, bP as ce, bQ as mn, bR as kr, bS as Mr, bT as Dr, bU as Ir, bV as Fn, bW as ka, bX as Or, bY as Tr, bZ as zr, b_ as Ar, b$ as hn, c0 as Ma, c1 as Da, c2 as pn, c3 as Fr, c4 as Ia, c5 as Oa, c6 as Lr, c7 as Er, c8 as _r, c9 as Vr, ca as qr, cb as Rr, cc as jr, cd as Br, ce as Pr, cf as jt, cg as Ta, ch as Hr, ci as Gr, cj as Ur, ck as $r, cl as Qr, cm as Kr, cn as Jr } from "./chunks/index-B5cVrMjI.js";
2
+ import { D as Go, cs as Uo, cq as $o, cq as Qo, cv as Ko, cu as Jo, ct as Wo, cw as Yo, cx as Zo, cr as Xo, co as ec, cp as tc } from "./chunks/index-B5cVrMjI.js";
3
+ import { jsxs as r, jsx as e, Fragment as ae } from "react/jsx-runtime";
4
+ import * as Xe from "react";
5
5
  import _e, { useState as J, useMemo as Pe, useEffect as me, useRef as at, useCallback as za, Suspense as Wr } from "react";
6
6
  import "react-dom";
7
7
  /**
@@ -10,7 +10,7 @@ import "react-dom";
10
10
  * This source code is licensed under the ISC license.
11
11
  * See the LICENSE file in the root directory of this source tree.
12
12
  */
13
- const Zr = A("AlignCenter", [
13
+ const Yr = A("AlignCenter", [
14
14
  ["path", { d: "M17 12H7", key: "16if0g" }],
15
15
  ["path", { d: "M19 18H5", key: "18s9l3" }],
16
16
  ["path", { d: "M21 6H3", key: "1jwq7v" }]
@@ -21,7 +21,7 @@ const Zr = A("AlignCenter", [
21
21
  * This source code is licensed under the ISC license.
22
22
  * See the LICENSE file in the root directory of this source tree.
23
23
  */
24
- const Yr = A("AlignLeft", [
24
+ const Zr = A("AlignLeft", [
25
25
  ["path", { d: "M15 12H3", key: "6jk70r" }],
26
26
  ["path", { d: "M17 18H3", key: "1amg6g" }],
27
27
  ["path", { d: "M21 6H3", key: "1jwq7v" }]
@@ -415,6 +415,16 @@ const bi = A("Database", [
415
415
  ["path", { d: "M3 5V19A9 3 0 0 0 21 19V5", key: "1wlel7" }],
416
416
  ["path", { d: "M3 12A9 3 0 0 0 21 12", key: "mv7ke4" }]
417
417
  ]);
418
+ /**
419
+ * @license lucide-react v0.453.0 - ISC
420
+ *
421
+ * This source code is licensed under the ISC license.
422
+ * See the LICENSE file in the root directory of this source tree.
423
+ */
424
+ const vi = A("DollarSign", [
425
+ ["line", { x1: "12", x2: "12", y1: "2", y2: "22", key: "7eqyqh" }],
426
+ ["path", { d: "M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6", key: "1b0p4s" }]
427
+ ]);
418
428
  /**
419
429
  * @license lucide-react v0.453.0 - ISC
420
430
  *
@@ -448,7 +458,7 @@ const Ra = A("EllipsisVertical", [
448
458
  * This source code is licensed under the ISC license.
449
459
  * See the LICENSE file in the root directory of this source tree.
450
460
  */
451
- const vi = A("Eraser", [
461
+ const xi = A("Eraser", [
452
462
  [
453
463
  "path",
454
464
  {
@@ -477,7 +487,7 @@ const ja = A("Expand", [
477
487
  * This source code is licensed under the ISC license.
478
488
  * See the LICENSE file in the root directory of this source tree.
479
489
  */
480
- const xi = A("EyeClosed", [
490
+ const Ci = A("EyeClosed", [
481
491
  ["path", { d: "m15 18-.722-3.25", key: "1j64jw" }],
482
492
  ["path", { d: "M2 8a10.645 10.645 0 0 0 20 0", key: "1e7gxb" }],
483
493
  ["path", { d: "m20 15-1.726-2.05", key: "1cnuld" }],
@@ -490,7 +500,7 @@ const xi = A("EyeClosed", [
490
500
  * This source code is licensed under the ISC license.
491
501
  * See the LICENSE file in the root directory of this source tree.
492
502
  */
493
- const Ci = A("FileCode2", [
503
+ const Ni = A("FileCode2", [
494
504
  ["path", { d: "M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4", key: "1pf5j1" }],
495
505
  ["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
496
506
  ["path", { d: "m5 12-3 3 3 3", key: "oke12k" }],
@@ -502,7 +512,7 @@ const Ci = A("FileCode2", [
502
512
  * This source code is licensed under the ISC license.
503
513
  * See the LICENSE file in the root directory of this source tree.
504
514
  */
505
- const Ni = A("FileJson2", [
515
+ const Si = A("FileJson2", [
506
516
  ["path", { d: "M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4", key: "1pf5j1" }],
507
517
  ["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
508
518
  [
@@ -529,7 +539,7 @@ const Ba = A("Filter", [
529
539
  * This source code is licensed under the ISC license.
530
540
  * See the LICENSE file in the root directory of this source tree.
531
541
  */
532
- const Si = A("Fingerprint", [
542
+ const wi = A("Fingerprint", [
533
543
  ["path", { d: "M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4", key: "1nerag" }],
534
544
  ["path", { d: "M14 13.12c0 2.38 0 6.38-1 8.88", key: "o46ks0" }],
535
545
  ["path", { d: "M17.29 21.02c.12-.6.43-2.3.5-3.02", key: "ptglia" }],
@@ -546,7 +556,7 @@ const Si = A("Fingerprint", [
546
556
  * This source code is licensed under the ISC license.
547
557
  * See the LICENSE file in the root directory of this source tree.
548
558
  */
549
- const wi = A("Glasses", [
559
+ const ki = A("Glasses", [
550
560
  ["circle", { cx: "6", cy: "15", r: "4", key: "vux9w4" }],
551
561
  ["circle", { cx: "18", cy: "15", r: "4", key: "18o8ve" }],
552
562
  ["path", { d: "M14 15a2 2 0 0 0-2-2 2 2 0 0 0-2 2", key: "1ag4bs" }],
@@ -559,7 +569,7 @@ const wi = A("Glasses", [
559
569
  * This source code is licensed under the ISC license.
560
570
  * See the LICENSE file in the root directory of this source tree.
561
571
  */
562
- const ki = A("Grid3x3", [
572
+ const Mi = A("Grid3x3", [
563
573
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
564
574
  ["path", { d: "M3 9h18", key: "1pudct" }],
565
575
  ["path", { d: "M3 15h18", key: "5xshup" }],
@@ -572,7 +582,7 @@ const ki = A("Grid3x3", [
572
582
  * This source code is licensed under the ISC license.
573
583
  * See the LICENSE file in the root directory of this source tree.
574
584
  */
575
- const Mi = A("Hammer", [
585
+ const Di = A("Hammer", [
576
586
  ["path", { d: "m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9", key: "eefl8a" }],
577
587
  ["path", { d: "m18 15 4-4", key: "16gjal" }],
578
588
  [
@@ -601,7 +611,7 @@ const Pa = A("Hash", [
601
611
  * This source code is licensed under the ISC license.
602
612
  * See the LICENSE file in the root directory of this source tree.
603
613
  */
604
- const Di = A("House", [
614
+ const Ii = A("House", [
605
615
  ["path", { d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8", key: "5wwlr5" }],
606
616
  [
607
617
  "path",
@@ -617,7 +627,7 @@ const Di = A("House", [
617
627
  * This source code is licensed under the ISC license.
618
628
  * See the LICENSE file in the root directory of this source tree.
619
629
  */
620
- const Ii = A("LayoutList", [
630
+ const Oi = A("LayoutList", [
621
631
  ["rect", { width: "7", height: "7", x: "3", y: "3", rx: "1", key: "1g98yp" }],
622
632
  ["rect", { width: "7", height: "7", x: "3", y: "14", rx: "1", key: "1bb6yr" }],
623
633
  ["path", { d: "M14 4h7", key: "3xa0d5" }],
@@ -631,7 +641,7 @@ const Ii = A("LayoutList", [
631
641
  * This source code is licensed under the ISC license.
632
642
  * See the LICENSE file in the root directory of this source tree.
633
643
  */
634
- const Oi = A("ListEnd", [
644
+ const Ti = A("ListEnd", [
635
645
  ["path", { d: "M16 12H3", key: "1a2rj7" }],
636
646
  ["path", { d: "M16 6H3", key: "1wxfjs" }],
637
647
  ["path", { d: "M10 18H3", key: "13769t" }],
@@ -644,7 +654,7 @@ const Oi = A("ListEnd", [
644
654
  * This source code is licensed under the ISC license.
645
655
  * See the LICENSE file in the root directory of this source tree.
646
656
  */
647
- const Ti = A("ListStart", [
657
+ const zi = A("ListStart", [
648
658
  ["path", { d: "M16 12H3", key: "1a2rj7" }],
649
659
  ["path", { d: "M16 18H3", key: "12xzn7" }],
650
660
  ["path", { d: "M10 6H3", key: "lf8lx7" }],
@@ -657,7 +667,7 @@ const Ti = A("ListStart", [
657
667
  * This source code is licensed under the ISC license.
658
668
  * See the LICENSE file in the root directory of this source tree.
659
669
  */
660
- const zi = A("ListX", [
670
+ const Ai = A("ListX", [
661
671
  ["path", { d: "M11 12H3", key: "51ecnj" }],
662
672
  ["path", { d: "M16 6H3", key: "1wxfjs" }],
663
673
  ["path", { d: "M16 18H3", key: "12xzn7" }],
@@ -670,7 +680,7 @@ const zi = A("ListX", [
670
680
  * This source code is licensed under the ISC license.
671
681
  * See the LICENSE file in the root directory of this source tree.
672
682
  */
673
- const Qe = A("LoaderCircle", [
683
+ const Ke = A("LoaderCircle", [
674
684
  ["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]
675
685
  ]);
676
686
  /**
@@ -679,7 +689,7 @@ const Qe = A("LoaderCircle", [
679
689
  * This source code is licensed under the ISC license.
680
690
  * See the LICENSE file in the root directory of this source tree.
681
691
  */
682
- const Ai = A("Logs", [
692
+ const Fi = A("Logs", [
683
693
  ["path", { d: "M13 12h8", key: "h98zly" }],
684
694
  ["path", { d: "M13 18h8", key: "oe0vm4" }],
685
695
  ["path", { d: "M13 6h8", key: "15sg57" }],
@@ -696,7 +706,7 @@ const Ai = A("Logs", [
696
706
  * This source code is licensed under the ISC license.
697
707
  * See the LICENSE file in the root directory of this source tree.
698
708
  */
699
- const Fi = A("Mail", [
709
+ const Li = A("Mail", [
700
710
  ["rect", { width: "20", height: "16", x: "2", y: "4", rx: "2", key: "18n3k1" }],
701
711
  ["path", { d: "m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7", key: "1ocrg3" }]
702
712
  ]);
@@ -723,7 +733,7 @@ const Ha = A("Map", [
723
733
  * This source code is licensed under the ISC license.
724
734
  * See the LICENSE file in the root directory of this source tree.
725
735
  */
726
- const Li = A("MessageCircleMore", [
736
+ const Ei = A("MessageCircleMore", [
727
737
  ["path", { d: "M7.9 20A9 9 0 1 0 4 16.1L2 22Z", key: "vv11sd" }],
728
738
  ["path", { d: "M8 12h.01", key: "czm47f" }],
729
739
  ["path", { d: "M12 12h.01", key: "1mp3jc" }],
@@ -735,7 +745,7 @@ const Li = A("MessageCircleMore", [
735
745
  * This source code is licensed under the ISC license.
736
746
  * See the LICENSE file in the root directory of this source tree.
737
747
  */
738
- const Ei = A("MoveHorizontal", [
748
+ const _i = A("MoveHorizontal", [
739
749
  ["path", { d: "m18 8 4 4-4 4", key: "1ak13k" }],
740
750
  ["path", { d: "M2 12h20", key: "9i4pu4" }],
741
751
  ["path", { d: "m6 8-4 4 4 4", key: "15zrgr" }]
@@ -746,7 +756,7 @@ const Ei = A("MoveHorizontal", [
746
756
  * This source code is licensed under the ISC license.
747
757
  * See the LICENSE file in the root directory of this source tree.
748
758
  */
749
- const _i = A("MoveVertical", [
759
+ const Vi = A("MoveVertical", [
750
760
  ["path", { d: "M12 2v20", key: "t6zp3m" }],
751
761
  ["path", { d: "m8 18 4 4 4-4", key: "bh5tu3" }],
752
762
  ["path", { d: "m8 6 4-4 4 4", key: "ybng9g" }]
@@ -757,7 +767,7 @@ const _i = A("MoveVertical", [
757
767
  * This source code is licensed under the ISC license.
758
768
  * See the LICENSE file in the root directory of this source tree.
759
769
  */
760
- const Vi = A("Network", [
770
+ const qi = A("Network", [
761
771
  ["rect", { x: "16", y: "16", width: "6", height: "6", rx: "1", key: "4q2zg0" }],
762
772
  ["rect", { x: "2", y: "16", width: "6", height: "6", rx: "1", key: "8cvhb9" }],
763
773
  ["rect", { x: "9", y: "2", width: "6", height: "6", rx: "1", key: "1egb70" }],
@@ -770,7 +780,7 @@ const Vi = A("Network", [
770
780
  * This source code is licensed under the ISC license.
771
781
  * See the LICENSE file in the root directory of this source tree.
772
782
  */
773
- const qi = A("Plug", [
783
+ const Ri = A("Plug", [
774
784
  ["path", { d: "M12 22v-5", key: "1ega77" }],
775
785
  ["path", { d: "M9 8V2", key: "14iosj" }],
776
786
  ["path", { d: "M15 8V2", key: "18g5xt" }],
@@ -810,30 +820,11 @@ const Ua = A("RefreshCw", [
810
820
  * This source code is licensed under the ISC license.
811
821
  * See the LICENSE file in the root directory of this source tree.
812
822
  */
813
- const Ri = A("Rows3", [
823
+ const ji = A("Rows3", [
814
824
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
815
825
  ["path", { d: "M21 9H3", key: "1338ky" }],
816
826
  ["path", { d: "M21 15H3", key: "9uk58r" }]
817
827
  ]);
818
- /**
819
- * @license lucide-react v0.453.0 - ISC
820
- *
821
- * This source code is licensed under the ISC license.
822
- * See the LICENSE file in the root directory of this source tree.
823
- */
824
- const ji = A("Ruler", [
825
- [
826
- "path",
827
- {
828
- d: "M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z",
829
- key: "icamh8"
830
- }
831
- ],
832
- ["path", { d: "m14.5 12.5 2-2", key: "inckbg" }],
833
- ["path", { d: "m11.5 9.5 2-2", key: "fmmyf7" }],
834
- ["path", { d: "m8.5 6.5 2-2", key: "vc6u1g" }],
835
- ["path", { d: "m17.5 15.5 2-2", key: "wo5hmg" }]
836
- ]);
837
828
  /**
838
829
  * @license lucide-react v0.453.0 - ISC
839
830
  *
@@ -1064,7 +1055,7 @@ async function Wi(t, a, n, s) {
1064
1055
  operation: "create"
1065
1056
  });
1066
1057
  }
1067
- async function Zt(t, a) {
1058
+ async function Yt(t, a) {
1068
1059
  if (!a)
1069
1060
  return null;
1070
1061
  const { id: n, template: s, filterValues: i, isDefault: o, shared: l } = t;
@@ -1077,13 +1068,13 @@ async function Zt(t, a) {
1077
1068
  operation: "update"
1078
1069
  });
1079
1070
  }
1080
- async function Zi(t, a) {
1071
+ async function Yi(t, a) {
1081
1072
  return a ? await nn("https://semaphor.cloud/api/v1/lens", a, {
1082
1073
  operation: "delete",
1083
1074
  lensId: t
1084
1075
  }) : null;
1085
1076
  }
1086
- function Yi() {
1077
+ function Zi() {
1087
1078
  const [t, a] = J(""), [n, s] = J(!1), i = _((p) => p.lenses), { setLenses: o, setSelectedLensId: l } = rt(), [u, c] = J(!1), [h, d] = J(!1), y = _((p) => p.dashboard), x = _((p) => p.filterValues), { authToken: m } = Ve();
1088
1079
  async function C() {
1089
1080
  c(!0);
@@ -1150,7 +1141,7 @@ function Xi() {
1150
1141
  o(d);
1151
1142
  }
1152
1143
  async function c(d) {
1153
- if (await Zi(d, l == null ? void 0 : l.accessToken)) {
1144
+ if (await Yi(d, l == null ? void 0 : l.accessToken)) {
1154
1145
  const x = n == null ? void 0 : n.filter((m) => m.id !== d);
1155
1146
  i(x || []), o("original");
1156
1147
  }
@@ -1168,18 +1159,18 @@ function Xi() {
1168
1159
  ...d,
1169
1160
  isDefault: !d.isDefault
1170
1161
  };
1171
- await Zt(x, l == null ? void 0 : l.accessToken);
1162
+ await Yt(x, l == null ? void 0 : l.accessToken);
1172
1163
  const m = n == null ? void 0 : n.find((C) => C.isDefault);
1173
1164
  if (m && m.id !== d.id) {
1174
1165
  const C = {
1175
1166
  ...m,
1176
1167
  isDefault: !1
1177
1168
  };
1178
- await Zt(C, l == null ? void 0 : l.accessToken);
1169
+ await Yt(C, l == null ? void 0 : l.accessToken);
1179
1170
  }
1180
1171
  }
1181
1172
  return /* @__PURE__ */ r($n, { open: t, onOpenChange: a, children: [
1182
- /* @__PURE__ */ e(Qn, { asChild: !0, children: /* @__PURE__ */ e(X, { tooltip: "Lenses", className: "h-7 p-2", children: /* @__PURE__ */ e(wi, { className: "h-4 w-4" }) }) }),
1173
+ /* @__PURE__ */ e(Qn, { asChild: !0, children: /* @__PURE__ */ e(X, { tooltip: "Lenses", className: "h-7 p-2", children: /* @__PURE__ */ e(ki, { className: "h-4 w-4" }) }) }),
1183
1174
  /* @__PURE__ */ r(Kn, { align: "end", className: "w-60", children: [
1184
1175
  /* @__PURE__ */ e(Jn, { className: "px-3", children: "Lenses" }),
1185
1176
  /* @__PURE__ */ e(Wn, {}),
@@ -1199,7 +1190,7 @@ function Xi() {
1199
1190
  /* @__PURE__ */ e("p", { children: d.name }),
1200
1191
  /* @__PURE__ */ r("span", { className: "flex items-center gap-3", children: [
1201
1192
  /* @__PURE__ */ e(
1202
- Di,
1193
+ Ii,
1203
1194
  {
1204
1195
  onClick: (y) => {
1205
1196
  y.preventDefault(), h(d);
@@ -1235,7 +1226,7 @@ function Xi() {
1235
1226
  ] })
1236
1227
  ] });
1237
1228
  }
1238
- function Za() {
1229
+ function Ya() {
1239
1230
  var o;
1240
1231
  const t = _.getState().authToken, a = _.getState().theme, n = _.getState().filterValues, s = (o = _.getState().dashboard) == null ? void 0 : o.title, i = _.getState().selectedSheetId;
1241
1232
  return {
@@ -1247,7 +1238,7 @@ function Za() {
1247
1238
  };
1248
1239
  }
1249
1240
  async function el() {
1250
- const t = _.getState().isDownloadingPdf, { authToken: a, theme: n, filterValues: s, dashboardTitle: i, selectedSheetId: o } = Za();
1241
+ const t = _.getState().isDownloadingPdf, { authToken: a, theme: n, filterValues: s, dashboardTitle: i, selectedSheetId: o } = Ya();
1251
1242
  if (t)
1252
1243
  return;
1253
1244
  const l = new URLSearchParams();
@@ -1282,7 +1273,7 @@ function tl({
1282
1273
  tooltip: "Download PDF",
1283
1274
  className: "h-7 p-2",
1284
1275
  onClick: s,
1285
- children: n ? /* @__PURE__ */ e(Qe, { className: G("size-3.5 animate-spin", t) }) : /* @__PURE__ */ e(Ms, { className: G("size-4", t) })
1276
+ children: n ? /* @__PURE__ */ e(Ke, { className: G("size-3.5 animate-spin", t) }) : /* @__PURE__ */ e(Ms, { className: G("size-4", t) })
1286
1277
  }
1287
1278
  );
1288
1279
  }
@@ -1338,8 +1329,8 @@ function nl({
1338
1329
  error: o,
1339
1330
  isDeleting: l
1340
1331
  } = al(), [u, c] = J(""), [h, d] = J(Ln[0].value), [y, x] = J("06:00"), [m, C] = J("");
1341
- return /* @__PURE__ */ e(Zn, { delayDuration: 0, children: /* @__PURE__ */ r(Ke, { children: [
1342
- /* @__PURE__ */ e(Je, { asChild: !0, children: /* @__PURE__ */ e(
1332
+ return /* @__PURE__ */ e(Yn, { delayDuration: 0, children: /* @__PURE__ */ r(Je, { children: [
1333
+ /* @__PURE__ */ e(We, { asChild: !0, children: /* @__PURE__ */ e(
1343
1334
  X,
1344
1335
  {
1345
1336
  tooltip: "Schedule Dashboard",
@@ -1420,7 +1411,7 @@ function nl({
1420
1411
  className: "h-8 p-2",
1421
1412
  disabled: i === "loading" || !u,
1422
1413
  children: [
1423
- i === "loading" && /* @__PURE__ */ e(Qe, { className: "mr-2 size-4 animate-spin" }),
1414
+ i === "loading" && /* @__PURE__ */ e(Ke, { className: "mr-2 size-4 animate-spin" }),
1424
1415
  i === "success" && /* @__PURE__ */ e(sn, { className: "mr-2 size-4" }),
1425
1416
  i === "error" && /* @__PURE__ */ r(Ot, { children: [
1426
1417
  /* @__PURE__ */ e(rn, { children: /* @__PURE__ */ e(Va, { className: "mr-2 size-4 text-destructive" }) }),
@@ -1437,7 +1428,7 @@ function nl({
1437
1428
  /* @__PURE__ */ e("h4", { className: "font-medium leading-none", children: "Subscriptions" }),
1438
1429
  /* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: "Active email subscriptions" })
1439
1430
  ] }),
1440
- Yn
1431
+ Zn
1441
1432
  ] }) }),
1442
1433
  /* @__PURE__ */ e("div", { className: "grid gap-2", children: a == null ? void 0 : a.map((p) => /* @__PURE__ */ r(
1443
1434
  "div",
@@ -1459,8 +1450,8 @@ function nl({
1459
1450
  children: /* @__PURE__ */ e(hi, { className: "size-3.5" })
1460
1451
  }
1461
1452
  ),
1462
- /* @__PURE__ */ e(En, { tooltip: `${p.endUserEmail}`, children: /* @__PURE__ */ e(Fi, { className: "size-3.5" }) }),
1463
- l === p.id ? /* @__PURE__ */ e(Qe, { className: "size-3.5 animate-spin" }) : /* @__PURE__ */ e(
1453
+ /* @__PURE__ */ e(En, { tooltip: `${p.endUserEmail}`, children: /* @__PURE__ */ e(Li, { className: "size-3.5" }) }),
1454
+ l === p.id ? /* @__PURE__ */ e(Ke, { className: "size-3.5 animate-spin" }) : /* @__PURE__ */ e(
1464
1455
  Qi,
1465
1456
  {
1466
1457
  onClick: () => s(p.id),
@@ -1480,7 +1471,7 @@ function nl({
1480
1471
  const En = ({
1481
1472
  children: t,
1482
1473
  tooltip: a
1483
- }) => /* @__PURE__ */ e(Zn, { delayDuration: 0, children: /* @__PURE__ */ r(Ot, { children: [
1474
+ }) => /* @__PURE__ */ e(Yn, { delayDuration: 0, children: /* @__PURE__ */ r(Ot, { children: [
1484
1475
  /* @__PURE__ */ e(rn, { asChild: !0, children: t }),
1485
1476
  /* @__PURE__ */ e(Tt, { children: a })
1486
1477
  ] }) });
@@ -1499,11 +1490,11 @@ function al() {
1499
1490
  frequency: k,
1500
1491
  time: O
1501
1492
  }) {
1502
- const { authToken: R, ...j } = Za(), Z = Intl.DateTimeFormat().resolvedOptions().timeZone, M = {
1493
+ const { authToken: R, ...j } = Ya(), Y = Intl.DateTimeFormat().resolvedOptions().timeZone, M = {
1503
1494
  email: S,
1504
1495
  frequency: k,
1505
1496
  time: O,
1506
- timezone: Z,
1497
+ timezone: Y,
1507
1498
  endUserId: h,
1508
1499
  endUserEmail: S,
1509
1500
  subject: z || c || "Scheduled Dashboard",
@@ -1513,7 +1504,7 @@ function al() {
1513
1504
  a("loading");
1514
1505
  const V = "https://semaphor.cloud/api/v1/subscriptions/create";
1515
1506
  try {
1516
- const Y = await On(
1507
+ const Z = await On(
1517
1508
  V,
1518
1509
  (R == null ? void 0 : R.accessToken) || "",
1519
1510
  {
@@ -1523,8 +1514,8 @@ function al() {
1523
1514
  a("success"), s(""), v(), setTimeout(() => {
1524
1515
  a("idle");
1525
1516
  }, 2e3);
1526
- } catch (Y) {
1527
- console.error(Y), a("error"), s(Y.message);
1517
+ } catch (Z) {
1518
+ console.error(Z), a("error"), s(Z.message);
1528
1519
  }
1529
1520
  }
1530
1521
  async function N(S) {
@@ -1575,7 +1566,7 @@ function sl() {
1575
1566
  if (!o || !S) return;
1576
1567
  const M = {
1577
1568
  connectionId: l,
1578
- id: tt(),
1569
+ id: nt(),
1579
1570
  title: "Title",
1580
1571
  description: "Description",
1581
1572
  preferences: {
@@ -1590,7 +1581,7 @@ function sl() {
1590
1581
  sql: "",
1591
1582
  data: []
1592
1583
  }, V = {
1593
- id: tt(),
1584
+ id: nt(),
1594
1585
  cards: [M],
1595
1586
  activeCardId: M.id
1596
1587
  };
@@ -1598,16 +1589,16 @@ function sl() {
1598
1589
  }, j = () => {
1599
1590
  g(!0);
1600
1591
  };
1601
- async function Z() {
1592
+ async function Y() {
1602
1593
  if (c(!0), !n || !s) return;
1603
1594
  const M = Wa(
1604
1595
  i
1605
- ), V = JSON.stringify(M), Y = {
1596
+ ), V = JSON.stringify(M), Z = {
1606
1597
  ...s,
1607
1598
  template: V,
1608
1599
  filterValues: h
1609
1600
  };
1610
- await Zt(Y, t == null ? void 0 : t.accessToken), bt.success("Lens saved"), x == null || x(M), c(!1);
1601
+ await Yt(Z, t == null ? void 0 : t.accessToken), bt.success("Lens saved"), x == null || x(M), c(!1);
1611
1602
  }
1612
1603
  return d ? null : /* @__PURE__ */ r(
1613
1604
  "div",
@@ -1620,7 +1611,7 @@ function sl() {
1620
1611
  !1,
1621
1612
  !d && /* @__PURE__ */ e(tl, {}),
1622
1613
  !d && /* @__PURE__ */ e(nl, {}),
1623
- o && !d && O && /* @__PURE__ */ e(Yi, {}),
1614
+ o && !d && O && /* @__PURE__ */ e(Zi, {}),
1624
1615
  !d && O && /* @__PURE__ */ e(Xi, {}),
1625
1616
  o && !d && /* @__PURE__ */ r(
1626
1617
  ee,
@@ -1662,7 +1653,7 @@ function sl() {
1662
1653
  className: "h-7 p-2",
1663
1654
  variant: "ghost",
1664
1655
  disabled: u,
1665
- onClick: Z,
1656
+ onClick: Y,
1666
1657
  size: "sm",
1667
1658
  children: /* @__PURE__ */ e(Bi, { className: "h-4 w-4" })
1668
1659
  }
@@ -1696,8 +1687,8 @@ function rl({
1696
1687
  icon: c,
1697
1688
  showNone: h = !1
1698
1689
  }) {
1699
- const d = Ye.useRef(null), [y, x] = Ye.useState(!1), [m, C] = Ye.useState("100%"), p = h ? [...a || [], { id: "none", name: "None" }] : a;
1700
- Ye.useLayoutEffect(() => {
1690
+ const d = Xe.useRef(null), [y, x] = Xe.useState(!1), [m, C] = Xe.useState("100%"), p = h ? [...a || [], { id: "none", name: "None" }] : a;
1691
+ Xe.useLayoutEffect(() => {
1701
1692
  d.current && C(d.current.offsetWidth);
1702
1693
  }, []);
1703
1694
  function v() {
@@ -1707,8 +1698,8 @@ function rl({
1707
1698
  function g(N, S) {
1708
1699
  s(S), x(!1);
1709
1700
  }
1710
- return /* @__PURE__ */ r(Ke, { open: y, onOpenChange: x, children: [
1711
- /* @__PURE__ */ e(Je, { asChild: !0, children: /* @__PURE__ */ r(
1701
+ return /* @__PURE__ */ r(Je, { open: y, onOpenChange: x, children: [
1702
+ /* @__PURE__ */ e(We, { asChild: !0, children: /* @__PURE__ */ r(
1712
1703
  ee,
1713
1704
  {
1714
1705
  ref: d,
@@ -1793,11 +1784,11 @@ function ct({
1793
1784
  const y = s ? "Loading..." : i ? "Error" : n;
1794
1785
  function x() {
1795
1786
  if (t === "Connection")
1796
- return /* @__PURE__ */ e(qi, { className: "size-4" });
1787
+ return /* @__PURE__ */ e(Ri, { className: "size-4" });
1797
1788
  if (t === "Database")
1798
1789
  return /* @__PURE__ */ e(bi, { className: "size-4" });
1799
1790
  if (t === "Schema")
1800
- return /* @__PURE__ */ e(Vi, { className: "size-4" });
1791
+ return /* @__PURE__ */ e(qi, { className: "size-4" });
1801
1792
  if (t === "Table")
1802
1793
  return /* @__PURE__ */ e(yn, { className: "size-4" });
1803
1794
  if (t === "Model")
@@ -1834,7 +1825,7 @@ function ct({
1834
1825
  }
1835
1826
  )
1836
1827
  ] }),
1837
- /* @__PURE__ */ r(se, { children: [
1828
+ /* @__PURE__ */ r(ae, { children: [
1838
1829
  u && /* @__PURE__ */ e(ue, { value: "none", children: "None" }, "none"),
1839
1830
  a && a.map((p, v) => /* @__PURE__ */ e(ue, { value: p.id, children: p.name }, v))
1840
1831
  ] }),
@@ -2044,7 +2035,7 @@ function ol({
2044
2035
  )
2045
2036
  );
2046
2037
  }
2047
- function Ya(t) {
2038
+ function Za(t) {
2048
2039
  const a = _((c) => c.authToken) || t, n = f(
2049
2040
  (c) => c.selectedConnectionId
2050
2041
  ), {
@@ -2081,7 +2072,7 @@ function vn(t) {
2081
2072
  (g) => g.selectedDatamodelId
2082
2073
  ), o = f(
2083
2074
  (g) => g.selectedSchemaName
2084
- ), l = f((g) => g.selectedTableName), { currentConnection: u } = Ya(), c = u == null ? void 0 : u.type, {
2075
+ ), l = f((g) => g.selectedTableName), { currentConnection: u } = Za(), c = u == null ? void 0 : u.type, {
2085
2076
  data: h,
2086
2077
  isLoading: d,
2087
2078
  isFetching: y,
@@ -2168,7 +2159,7 @@ function Ne(t, a) {
2168
2159
  isConnectionsLoading: g,
2169
2160
  isConnectionsError: N,
2170
2161
  currentConnection: S
2171
- } = Ya(t), {
2162
+ } = Za(t), {
2172
2163
  refetch: z,
2173
2164
  data: k,
2174
2165
  isLoading: O,
@@ -2184,10 +2175,10 @@ function Ne(t, a) {
2184
2175
  ),
2185
2176
  enabled: !!(n != null && n.accessToken) && !!s
2186
2177
  // Only fetch if authToken is present
2187
- }), j = S == null ? void 0 : S.type, Z = (S == null ? void 0 : S.type) === "API" || (S == null ? void 0 : S.type) === "S3", {
2178
+ }), j = S == null ? void 0 : S.type, Y = (S == null ? void 0 : S.type) === "API" || (S == null ? void 0 : S.type) === "S3", {
2188
2179
  data: M,
2189
2180
  isLoading: V,
2190
- isFetching: Y,
2181
+ isFetching: Z,
2191
2182
  isError: $,
2192
2183
  refetch: I
2193
2184
  } = Ae({
@@ -2217,13 +2208,13 @@ function Ne(t, a) {
2217
2208
  database_name: o
2218
2209
  }
2219
2210
  ),
2220
- enabled: !!s && !!o && !Z && o !== "NA"
2211
+ enabled: !!s && !!o && !Y && o !== "NA"
2221
2212
  //currentConnection?.type !== 'API', // Only fetch if connectionId and database is present
2222
2213
  }), {
2223
2214
  data: w,
2224
2215
  isLoading: L,
2225
2216
  isFetching: E,
2226
- isError: ae,
2217
+ isError: se,
2227
2218
  refetch: Q
2228
2219
  } = Ae({
2229
2220
  queryKey: [
@@ -2258,7 +2249,7 @@ function Ne(t, a) {
2258
2249
  y,
2259
2250
  h
2260
2251
  ]);
2261
- const q = (S == null ? void 0 : S.type) === "API" ? (Sn = S == null ? void 0 : S.type) == null ? void 0 : Sn.toLowerCase() : u || "", te = Z ? "" : l || "";
2252
+ const q = (S == null ? void 0 : S.type) === "API" ? (Sn = S == null ? void 0 : S.type) == null ? void 0 : Sn.toLowerCase() : u || "", te = Y ? "" : l || "";
2262
2253
  function fe(B) {
2263
2254
  y(B), x("");
2264
2255
  }
@@ -2311,7 +2302,7 @@ function Ne(t, a) {
2311
2302
  isModelsError: R,
2312
2303
  selectedDatabaseName: o,
2313
2304
  databaseItems: qt,
2314
- isDatabasesLoadingOrFetching: V || Y,
2305
+ isDatabasesLoadingOrFetching: V || Z,
2315
2306
  isDatabaseError: $,
2316
2307
  schemaItems: ht,
2317
2308
  selectedSchemaName: l,
@@ -2320,11 +2311,11 @@ function Ne(t, a) {
2320
2311
  tableItems: ie,
2321
2312
  selectedTableName: u,
2322
2313
  isTableLoadingOrFetching: L || E,
2323
- isTableError: ae,
2314
+ isTableError: se,
2324
2315
  columns: re,
2325
2316
  isColumnsLoadingOrFetching: P || ne,
2326
2317
  isColumnsError: K,
2327
- isNonDbConnection: Z,
2318
+ isNonDbConnection: Y,
2328
2319
  connectionType: j,
2329
2320
  tableName: q,
2330
2321
  formattedTableName: ws,
@@ -2360,7 +2351,7 @@ const Pt = {
2360
2351
  type: "string"
2361
2352
  }, Xa = {
2362
2353
  id: "__placeholder__"
2363
- }, He = "droppable-group-by", Ge = "droppable-metrics", Ue = "droppable-pivot-by", wt = "sortable-group-by", Yt = "sortable-metrics", kt = "sortable-pivot-by", Xt = "droppable-filters", en = "sortable-filters", xn = "sortable-order-by";
2354
+ }, He = "droppable-group-by", Ge = "droppable-metrics", Ue = "droppable-pivot-by", wt = "sortable-group-by", Zt = "sortable-metrics", kt = "sortable-pivot-by", Xt = "droppable-filters", en = "sortable-filters", xn = "sortable-order-by";
2364
2355
  function cl() {
2365
2356
  const t = Ee((I) => I.insertIndex), a = f(
2366
2357
  (I) => {
@@ -2412,7 +2403,7 @@ function cl() {
2412
2403
  const { active: b, over: T } = I;
2413
2404
  if (((H = b.data.current) == null ? void 0 : H.type) === "column" && T) {
2414
2405
  const F = T.id, D = g.find(
2415
- (ae) => ae.column_name === b.id
2406
+ (se) => se.column_name === b.id
2416
2407
  );
2417
2408
  if (!D) return;
2418
2409
  const w = $e(D.data_type), L = Se(D.data_type), E = we(D.data_type);
@@ -2530,7 +2521,7 @@ function cl() {
2530
2521
  granularity: "month"
2531
2522
  }, T.splice(H, 0, F), v(T);
2532
2523
  }
2533
- function Z(I) {
2524
+ function Y(I) {
2534
2525
  const b = Se(I.data_type);
2535
2526
  we(I.data_type);
2536
2527
  const T = [...a], H = t !== null ? t : a.length;
@@ -2570,7 +2561,7 @@ function cl() {
2570
2561
  b.splice(T, 0, H), C(b);
2571
2562
  }
2572
2563
  function V(I) {
2573
- var F, D, w, L, E, ae, Q, re;
2564
+ var F, D, w, L, E, se, Q, re;
2574
2565
  const { active: b, over: T } = I, H = b.data.current;
2575
2566
  if ((H == null ? void 0 : H.type) === "column" && T) {
2576
2567
  const P = g.find(
@@ -2578,7 +2569,7 @@ function cl() {
2578
2569
  );
2579
2570
  if (!P) return;
2580
2571
  const ne = $e(P.data_type), K = Se(P.data_type), de = we(P.data_type);
2581
- (K || de) && (T.id === He || ((F = T.data.current) == null ? void 0 : F.type) === wt) && Z(P), (K || de) && (T.id === Ue || ((D = T.data.current) == null ? void 0 : D.type) === kt) ? j(P) : (ne || K) && (T.id === Ge || ((w = T.data.current) == null ? void 0 : w.type) === Yt) ? (ne && R(P), K && R(P, "COUNT")) : O(P) && (T.id === Xt || ((L = T.data.current) == null ? void 0 : L.type) === en) && M(P);
2572
+ (K || de) && (T.id === He || ((F = T.data.current) == null ? void 0 : F.type) === wt) && Y(P), (K || de) && (T.id === Ue || ((D = T.data.current) == null ? void 0 : D.type) === kt) ? j(P) : (ne || K) && (T.id === Ge || ((w = T.data.current) == null ? void 0 : w.type) === Zt) ? (ne && R(P), K && R(P, "COUNT")) : O(P) && (T.id === Xt || ((L = T.data.current) == null ? void 0 : L.type) === en) && M(P);
2582
2573
  }
2583
2574
  if (T && ((E = T.data.current) == null ? void 0 : E.type) === wt && a.some((P) => P.id === b.id)) {
2584
2575
  const P = a.findIndex(
@@ -2589,14 +2580,14 @@ function cl() {
2589
2580
  K.splice(ne, 0, de), x(K);
2590
2581
  }
2591
2582
  }
2592
- if (T && ((ae = T.data.current) == null ? void 0 : ae.type) === kt && o.some((P) => P.id === b.id)) {
2583
+ if (T && ((se = T.data.current) == null ? void 0 : se.type) === kt && o.some((P) => P.id === b.id)) {
2593
2584
  const P = o.findIndex((K) => K.id === b.id), ne = o.findIndex((K) => K.id === T.id);
2594
2585
  if (P !== -1 && ne !== -1 && P !== ne) {
2595
2586
  const K = [...o], [de] = K.splice(P, 1);
2596
2587
  K.splice(ne, 0, de), v(K);
2597
2588
  }
2598
2589
  }
2599
- if (T && ((Q = T.data.current) == null ? void 0 : Q.type) === Yt && n.some((P) => P.id === b.id)) {
2590
+ if (T && ((Q = T.data.current) == null ? void 0 : Q.type) === Zt && n.some((P) => P.id === b.id)) {
2600
2591
  const P = n.findIndex((K) => K.id === b.id), ne = n.findIndex((K) => K.id === T.id);
2601
2592
  if (P !== -1 && ne !== -1 && P !== ne) {
2602
2593
  const K = [...n], [de] = K.splice(P, 1);
@@ -2610,9 +2601,9 @@ function cl() {
2610
2601
  K.splice(ne, 0, de), C(K);
2611
2602
  }
2612
2603
  }
2613
- Y(I), u(null), l(null), c(a), h(n), d(s), y(o);
2604
+ Z(I), u(null), l(null), c(a), h(n), d(s), y(o);
2614
2605
  }
2615
- function Y(I) {
2606
+ function Z(I) {
2616
2607
  const { active: b, over: T } = I, H = b.data.current;
2617
2608
  if ((H == null ? void 0 : H.type) === xn && T) {
2618
2609
  const F = i.findIndex(
@@ -2638,7 +2629,7 @@ function cl() {
2638
2629
  };
2639
2630
  }
2640
2631
  function ve(t) {
2641
- return `${t}-${tt()}`;
2632
+ return `${t}-${nt()}`;
2642
2633
  }
2643
2634
  function ut(t, a) {
2644
2635
  const n = ha(t.replace(/_/g, " "));
@@ -2779,7 +2770,7 @@ function dl({
2779
2770
  }
2780
2771
  }
2781
2772
  }
2782
- function Z(b) {
2773
+ function Y(b) {
2783
2774
  b === !0 && (d || R) && l ? (m({
2784
2775
  connectionId: l,
2785
2776
  connectionType: k === "S3" || k === "API" ? "DuckDb" : k,
@@ -2828,7 +2819,7 @@ function dl({
2828
2819
  });
2829
2820
  g(`SELECT COUNT(*) as count FROM ${b}`), N(!0);
2830
2821
  }
2831
- function Y() {
2822
+ function Z() {
2832
2823
  return (x == null ? void 0 : x.find(
2833
2824
  (b) => b.connectionId === l && (b.tableName === d || b.datamodelName === R)
2834
2825
  )) !== void 0;
@@ -2857,13 +2848,13 @@ function dl({
2857
2848
  ) : /* @__PURE__ */ e(ol, { onClick: j, column: b });
2858
2849
  }
2859
2850
  function I() {
2860
- return /* @__PURE__ */ r(se, { children: [
2851
+ return /* @__PURE__ */ r(ae, { children: [
2861
2852
  /* @__PURE__ */ r(
2862
2853
  pa,
2863
2854
  {
2864
- title: `${Y() ? "Remove from" : "Add to"} Assistant Scope`,
2865
- pressed: Y(),
2866
- onPressedChange: Z,
2855
+ title: `${Z() ? "Remove from" : "Add to"} Assistant Scope`,
2856
+ pressed: Z(),
2857
+ onPressedChange: Y,
2867
2858
  variant: "outline",
2868
2859
  className: G("h-9 px-2", {
2869
2860
  // 'outline outline-1 outline-green-400': isInAIScopeTable(),
@@ -2873,8 +2864,8 @@ function dl({
2873
2864
  mt,
2874
2865
  {
2875
2866
  className: G("mr-1 size-4", {
2876
- "text-green-400": Y(),
2877
- "text-muted-foreground": !Y()
2867
+ "text-green-400": Z(),
2868
+ "text-muted-foreground": !Z()
2878
2869
  })
2879
2870
  }
2880
2871
  ),
@@ -2891,7 +2882,7 @@ function dl({
2891
2882
  variant: "secondary",
2892
2883
  className: "flex",
2893
2884
  children: [
2894
- s !== "Success" ? /* @__PURE__ */ e(Qe, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" }) : /* @__PURE__ */ e(Ai, { className: "mr-2 size-4" }),
2885
+ s !== "Success" ? /* @__PURE__ */ e(Ke, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" }) : /* @__PURE__ */ e(Fi, { className: "mr-2 size-4" }),
2895
2886
  "Top 10"
2896
2887
  ]
2897
2888
  }
@@ -2905,7 +2896,7 @@ function dl({
2905
2896
  variant: "secondary",
2906
2897
  className: "w-full",
2907
2898
  children: [
2908
- s !== "Success" ? /* @__PURE__ */ e(Qe, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" }) : /* @__PURE__ */ e(Qa, { className: "mr-2 size-4" }),
2899
+ s !== "Success" ? /* @__PURE__ */ e(Ke, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" }) : /* @__PURE__ */ e(Qa, { className: "mr-2 size-4" }),
2909
2900
  "Count"
2910
2901
  ]
2911
2902
  }
@@ -2929,8 +2920,8 @@ function dl({
2929
2920
  },
2930
2921
  b.column_name
2931
2922
  )) }),
2932
- /* @__PURE__ */ e(nt, { orientation: "vertical" }),
2933
- /* @__PURE__ */ e(nt, { orientation: "horizontal" })
2923
+ /* @__PURE__ */ e(Qe, { orientation: "vertical" }),
2924
+ /* @__PURE__ */ e(Qe, { orientation: "horizontal" })
2934
2925
  ]
2935
2926
  }
2936
2927
  )
@@ -2962,10 +2953,10 @@ function es({
2962
2953
  isModelsError: O,
2963
2954
  isDatabasesLoadingOrFetching: R,
2964
2955
  isDatabaseError: j,
2965
- isSchemaLoadingOrFetching: Z,
2956
+ isSchemaLoadingOrFetching: Y,
2966
2957
  isSchemaError: M,
2967
2958
  isColumnsError: V,
2968
- isColumnsLoadingOrFetching: Y,
2959
+ isColumnsLoadingOrFetching: Z,
2969
2960
  isTableLoadingOrFetching: $,
2970
2961
  isTableError: I,
2971
2962
  connectionType: b,
@@ -2976,7 +2967,7 @@ function es({
2976
2967
  refetchTables: w,
2977
2968
  refetchColumns: L,
2978
2969
  refetchConnections: E,
2979
- handleConnectionChange: ae,
2970
+ handleConnectionChange: se,
2980
2971
  handleDatabaseChange: Q,
2981
2972
  handleSchemaChange: re,
2982
2973
  handleDatamodelChange: P,
@@ -2990,7 +2981,7 @@ function es({
2990
2981
  schemaName: K,
2991
2982
  tableName: ne,
2992
2983
  columns: N,
2993
- status: Y ? "Loading..." : V ? "Error" : "Success"
2984
+ status: Z ? "Loading..." : V ? "Error" : "Success"
2994
2985
  }
2995
2986
  );
2996
2987
  }
@@ -3053,7 +3044,7 @@ function es({
3053
3044
  refetch: D,
3054
3045
  onChange: re,
3055
3046
  isError: M,
3056
- isLoading: Z,
3047
+ isLoading: Y,
3057
3048
  items: p,
3058
3049
  value: u || "",
3059
3050
  title: "Schema",
@@ -3084,7 +3075,7 @@ function es({
3084
3075
  "aside",
3085
3076
  {
3086
3077
  className: G(
3087
- "flex h-full min-w-[325px] max-w-[325px] flex-col justify-between rounded-none",
3078
+ "flex h-full min-w-[310px] max-w-[310px] flex-col justify-between rounded-none",
3088
3079
  {
3089
3080
  "border-r-[1px]": !i
3090
3081
  }
@@ -3098,7 +3089,7 @@ function es({
3098
3089
  items: m,
3099
3090
  title: "Connection",
3100
3091
  value: s || "",
3101
- onChange: ae,
3092
+ onChange: se,
3102
3093
  isLoading: S,
3103
3094
  isError: k,
3104
3095
  type: "combobox",
@@ -3114,7 +3105,7 @@ function es({
3114
3105
  qt()
3115
3106
  ] }),
3116
3107
  te(),
3117
- /* @__PURE__ */ e("div", { className: "flex items-center justify-between gap-2 px-6 py-4", children: a === "main" && /* @__PURE__ */ r(se, { children: [
3108
+ /* @__PURE__ */ e("div", { className: "flex items-center justify-between gap-2 px-6 py-4", children: a === "main" && /* @__PURE__ */ r(ae, { children: [
3118
3109
  /* @__PURE__ */ r("div", { className: "flex items-center gap-2", children: [
3119
3110
  /* @__PURE__ */ e(
3120
3111
  Vs,
@@ -3135,7 +3126,7 @@ function es({
3135
3126
  variant: "secondary",
3136
3127
  className: "group flex items-center gap-2 rounded-full",
3137
3128
  children: [
3138
- /* @__PURE__ */ e(Li, { className: "size-4" }),
3129
+ /* @__PURE__ */ e(Ei, { className: "size-4" }),
3139
3130
  /* @__PURE__ */ e("span", { className: "hidden group-hover:block", children: "Help" })
3140
3131
  ]
3141
3132
  }
@@ -3178,13 +3169,13 @@ function ts({ sql: t, error: a, onClick: n }) {
3178
3169
  variant: "secondary",
3179
3170
  size: "sm",
3180
3171
  children: [
3181
- /* @__PURE__ */ e(Ci, { className: "mr-2 h-4 w-4" }),
3172
+ /* @__PURE__ */ e(Ni, { className: "mr-2 h-4 w-4" }),
3182
3173
  "View in SQL Editor"
3183
3174
  ]
3184
3175
  }
3185
3176
  ),
3186
3177
  a && n && /* @__PURE__ */ r(ee, { onClick: n, size: "sm", variant: "secondary", children: [
3187
- /* @__PURE__ */ e(Mi, { className: "mr-2 h-4 w-4" }),
3178
+ /* @__PURE__ */ e(Di, { className: "mr-2 h-4 w-4" }),
3188
3179
  "Debug with Assistant"
3189
3180
  ] })
3190
3181
  ] }) })
@@ -3471,10 +3462,10 @@ function rs(t) {
3471
3462
  (q) => q.dashboard.aiScopeTables
3472
3463
  ), { setTriggerAIRun: S, setCurrentAssitantScope: z } = W(), { selectedDatamodelName: k, connectionType: O, selectedDatamodelId: R } = Ne(), {
3473
3464
  messages: j,
3474
- setMessages: Z,
3465
+ setMessages: Y,
3475
3466
  reload: M,
3476
3467
  error: V,
3477
- append: Y,
3468
+ append: Z,
3478
3469
  input: $,
3479
3470
  setInput: I,
3480
3471
  status: b,
@@ -3552,7 +3543,7 @@ function rs(t) {
3552
3543
  }
3553
3544
  function E(q) {
3554
3545
  const te = $s(q);
3555
- z(te), Z((fe) => [
3546
+ z(te), Y((fe) => [
3556
3547
  ...fe,
3557
3548
  {
3558
3549
  id: crypto.randomUUID(),
@@ -3561,7 +3552,7 @@ function rs(t) {
3561
3552
  }
3562
3553
  ]);
3563
3554
  }
3564
- function ae() {
3555
+ function se() {
3565
3556
  const q = {
3566
3557
  databaseName: C || "",
3567
3558
  schemaName: g || "",
@@ -3600,14 +3591,14 @@ function rs(t) {
3600
3591
  const re = !["ready", "error"].includes(b), P = (de = (K = (ne = JSON.parse((V == null ? void 0 : V.message) || "{}")) == null ? void 0 : ne.error) == null ? void 0 : K.lastError) == null ? void 0 : de.message;
3601
3592
  return {
3602
3593
  messages: j,
3603
- setMessages: Z,
3594
+ setMessages: Y,
3604
3595
  reload: M,
3605
- append: Y,
3596
+ append: Z,
3606
3597
  input: $,
3607
3598
  setInput: I,
3608
3599
  isLoading: re,
3609
3600
  handleSetAIScope: Q,
3610
- handleAddCurrentTableToScope: ae,
3601
+ handleAddCurrentTableToScope: se,
3611
3602
  removeFromCurrentSelections: L,
3612
3603
  currentAssitantScope: y,
3613
3604
  setCurrentAssitantScope: z,
@@ -3724,7 +3715,7 @@ function os() {
3724
3715
  }), a.setQueryData(i, null), a.removeQueries({ queryKey: i, exact: !0 }), o(""), l({}), y(), u(""), c(""), h({});
3725
3716
  }
3726
3717
  return /* @__PURE__ */ r(ee, { onClick: x, className: "", size: "sm", variant: "secondary", children: [
3727
- /* @__PURE__ */ e(vi, { className: "mr-2 size-4" }),
3718
+ /* @__PURE__ */ e(xi, { className: "mr-2 size-4" }),
3728
3719
  "Clear"
3729
3720
  ] });
3730
3721
  }
@@ -3786,10 +3777,10 @@ function wl() {
3786
3777
  data: O,
3787
3778
  isLoading: R,
3788
3779
  isFetching: j,
3789
- isSuccess: Z,
3780
+ isSuccess: Y,
3790
3781
  isError: M,
3791
3782
  error: V,
3792
- queryKey: Y,
3783
+ queryKey: Z,
3793
3784
  refetch: $,
3794
3785
  errorMessage: I
3795
3786
  } = ge(o), { handleSetAIScope: b } = rs();
@@ -3802,21 +3793,21 @@ function wl() {
3802
3793
  d(w);
3803
3794
  }
3804
3795
  }, [O, d, m]), me(() => {
3805
- (R || j) && k(!0), (M || Z) && k(!1), M && (d([]), m(""));
3796
+ (R || j) && k(!0), (M || Y) && k(!1), M && (d([]), m(""));
3806
3797
  }, [
3807
3798
  R,
3808
3799
  j,
3809
3800
  O,
3810
3801
  m,
3811
3802
  M,
3812
- Z,
3803
+ Y,
3813
3804
  k,
3814
3805
  d,
3815
3806
  // setQueryError,
3816
3807
  V
3817
3808
  ]), me(() => {
3818
- S && (t.getQueryData(Y) || $(), z(!1));
3819
- }, [S, $, z, Y, t]);
3809
+ S && (t.getQueryData(Z) || $(), z(!1));
3810
+ }, [S, $, z, Z, t]);
3820
3811
  async function T() {
3821
3812
  const w = `Can you help me debug this query in the current table scope?
3822
3813
 
@@ -3832,7 +3823,7 @@ function wl() {
3832
3823
  g(w);
3833
3824
  }
3834
3825
  function H() {
3835
- return /* @__PURE__ */ r(se, { children: [
3826
+ return /* @__PURE__ */ r(ae, { children: [
3836
3827
  s && /* @__PURE__ */ e(
3837
3828
  "div",
3838
3829
  {
@@ -3885,7 +3876,7 @@ function wl() {
3885
3876
  ]
3886
3877
  }
3887
3878
  ),
3888
- a && /* @__PURE__ */ r(se, { children: [
3879
+ a && /* @__PURE__ */ r(ae, { children: [
3889
3880
  /* @__PURE__ */ e(Be, { withHandle: !0, className: "border" }),
3890
3881
  /* @__PURE__ */ r(
3891
3882
  pe,
@@ -3931,7 +3922,7 @@ function wl() {
3931
3922
  className: "shrink-0",
3932
3923
  size: "sm",
3933
3924
  children: [
3934
- R || j ? /* @__PURE__ */ e(Qe, { className: "mr-2 h-4 w-4 animate-spin" }) : /* @__PURE__ */ e(Js, { className: "mr-2 h-4 w-4" }),
3925
+ R || j ? /* @__PURE__ */ e(Ke, { className: "mr-2 h-4 w-4 animate-spin" }) : /* @__PURE__ */ e(Js, { className: "mr-2 h-4 w-4" }),
3935
3926
  "Run"
3936
3927
  ]
3937
3928
  }
@@ -4007,12 +3998,12 @@ function kl({ data: t }) {
4007
3998
  onClick: () => c.toggleSorting(c.getIsSorted() === "asc"),
4008
3999
  children: [
4009
4000
  u,
4010
- h === "asc" ? /* @__PURE__ */ e(Ws, { className: "ml-2 h-5 w-5" }) : h === "desc" ? /* @__PURE__ */ e(Zs, { className: "ml-2 h-5 w-5" }) : null
4001
+ h === "asc" ? /* @__PURE__ */ e(Ws, { className: "ml-2 h-5 w-5" }) : h === "desc" ? /* @__PURE__ */ e(Ys, { className: "ml-2 h-5 w-5" }) : null
4011
4002
  ]
4012
4003
  }
4013
4004
  ) });
4014
4005
  }
4015
- })), o = Ys({
4006
+ })), o = Zs({
4016
4007
  data: t,
4017
4008
  columns: i,
4018
4009
  getCoreRowModel: sr(),
@@ -4024,31 +4015,34 @@ function kl({ data: t }) {
4024
4015
  sorting: a
4025
4016
  }
4026
4017
  });
4027
- return /* @__PURE__ */ e(At, { className: "grow overflow-auto font-mono text-xs text-foreground/95", children: /* @__PURE__ */ r("table", { className: "w-full", children: [
4028
- /* @__PURE__ */ e(Xs, { className: "sticky top-0 z-50 h-0 bg-muted", children: o.getHeaderGroups().map((u) => /* @__PURE__ */ e(Rt, { className: "", children: u.headers.map((c) => /* @__PURE__ */ e(
4029
- er,
4030
- {
4031
- className: "h-11 font-semibold text-foreground",
4032
- children: c.isPlaceholder ? null : zn(
4033
- c.column.columnDef.header,
4034
- c.getContext()
4035
- )
4036
- },
4037
- c.id
4038
- )) }, u.id)) }),
4039
- /* @__PURE__ */ e(tr, { children: (l = o.getRowModel().rows) != null && l.length ? o.getRowModel().rows.map((u) => /* @__PURE__ */ e(
4040
- Rt,
4041
- {
4042
- className: "h-11 whitespace-nowrap py-2",
4043
- "data-state": u.getIsSelected() && "selected",
4044
- children: u.getVisibleCells().map((c) => /* @__PURE__ */ e(An, { className: "py-2", children: zn(c.column.columnDef.cell, c.getContext()) }, c.id))
4045
- },
4046
- u.id
4047
- )) : /* @__PURE__ */ e(Rt, { children: /* @__PURE__ */ e(An, { colSpan: i.length, className: "h-24 text-center", children: "No results." }) }) })
4048
- ] }) });
4018
+ return /* @__PURE__ */ r(At, { className: "grow overflow-auto font-mono text-xs text-foreground/95", children: [
4019
+ /* @__PURE__ */ r("table", { className: "w-full", children: [
4020
+ /* @__PURE__ */ e(Xs, { className: "sticky top-0 z-50 h-0 bg-muted", children: o.getHeaderGroups().map((u) => /* @__PURE__ */ e(Rt, { className: "", children: u.headers.map((c) => /* @__PURE__ */ e(
4021
+ er,
4022
+ {
4023
+ className: "h-11 font-semibold text-foreground",
4024
+ children: c.isPlaceholder ? null : zn(
4025
+ c.column.columnDef.header,
4026
+ c.getContext()
4027
+ )
4028
+ },
4029
+ c.id
4030
+ )) }, u.id)) }),
4031
+ /* @__PURE__ */ e(tr, { children: (l = o.getRowModel().rows) != null && l.length ? o.getRowModel().rows.map((u) => /* @__PURE__ */ e(
4032
+ Rt,
4033
+ {
4034
+ className: "h-11 whitespace-nowrap py-2",
4035
+ "data-state": u.getIsSelected() && "selected",
4036
+ children: u.getVisibleCells().map((c) => /* @__PURE__ */ e(An, { className: "py-2", children: zn(c.column.columnDef.cell, c.getContext()) }, c.id))
4037
+ },
4038
+ u.id
4039
+ )) : /* @__PURE__ */ e(Rt, { children: /* @__PURE__ */ e(An, { colSpan: i.length, className: "h-24 text-center", children: "No results." }) }) })
4040
+ ] }),
4041
+ /* @__PURE__ */ e(Qe, { orientation: "horizontal" })
4042
+ ] });
4049
4043
  }
4050
4044
  function Ml({ card: t }) {
4051
- var N, S, z, k, O, R, j, Z, M, V, Y;
4045
+ var N, S, z, k, O, R, j, Y, M, V, Z;
4052
4046
  const [a, n] = J(!1), [s, i] = J(
4053
4047
  []
4054
4048
  ), { authToken: o } = Ve(), l = rr(o == null ? void 0 : o.accessToken), u = _(($) => $.themeStyle), c = {
@@ -4070,7 +4064,7 @@ function Ml({ card: t }) {
4070
4064
  n($);
4071
4065
  }
4072
4066
  const g = Object.keys(
4073
- ((Z = t.customCardPreferences) == null ? void 0 : Z.dataInputCardIds) || {}
4067
+ ((Y = t.customCardPreferences) == null ? void 0 : Y.dataInputCardIds) || {}
4074
4068
  ).map(($) => {
4075
4069
  var T, H, F;
4076
4070
  const I = (H = (T = t.customCardPreferences) == null ? void 0 : T.dataInputCardIds) == null ? void 0 : H[$].cardId, b = (F = y == null ? void 0 : y.cards) == null ? void 0 : F.find((D) => D.id === I);
@@ -4079,7 +4073,7 @@ function Ml({ card: t }) {
4079
4073
  return /* @__PURE__ */ e("div", { className: "semaphor-custom mb-3 flex grow basis-0 flex-col space-y-2 overflow-y-auto", children: /* @__PURE__ */ r(
4080
4074
  Wr,
4081
4075
  {
4082
- fallback: /* @__PURE__ */ e(se, {}),
4076
+ fallback: /* @__PURE__ */ e(ae, {}),
4083
4077
  children: [
4084
4078
  p && d === "single" && /* @__PURE__ */ e(
4085
4079
  p,
@@ -4091,7 +4085,7 @@ function Ml({ card: t }) {
4091
4085
  data: (m == null ? void 0 : m.records) || []
4092
4086
  }
4093
4087
  ),
4094
- p && d === "multiple" && /* @__PURE__ */ r(se, { children: [
4088
+ p && d === "multiple" && /* @__PURE__ */ r(ae, { children: [
4095
4089
  Object.keys(
4096
4090
  ((V = t.customCardPreferences) == null ? void 0 : V.dataInputCardIds) || {}
4097
4091
  ).map(($) => {
@@ -4128,7 +4122,7 @@ function Ml({ card: t }) {
4128
4122
  ] })
4129
4123
  ]
4130
4124
  },
4131
- (Y = t.customCardPreferences) == null ? void 0 : Y.componentName
4125
+ (Z = t.customCardPreferences) == null ? void 0 : Z.componentName
4132
4126
  ) });
4133
4127
  }
4134
4128
  function cs({
@@ -4170,7 +4164,7 @@ function cs({
4170
4164
  if (n.type === "custom")
4171
4165
  return C(n);
4172
4166
  if (!["table", "custom"].includes(n.type) && m)
4173
- return /* @__PURE__ */ e(se, { children: h || d ? /* @__PURE__ */ e(se, {}) : /* @__PURE__ */ e(
4167
+ return /* @__PURE__ */ e(ae, { children: h || d ? /* @__PURE__ */ e(ae, {}) : /* @__PURE__ */ e(
4174
4168
  hr,
4175
4169
  {
4176
4170
  cfg: m
@@ -4179,7 +4173,7 @@ function cs({
4179
4173
  if (n.type === "table" && (c != null && c.records) && (c == null ? void 0 : c.records.length) > 0)
4180
4174
  return /* @__PURE__ */ r(it, { className: "relative mb-2 flex h-full min-h-0 w-full flex-1 grow basis-0", children: [
4181
4175
  /* @__PURE__ */ e(pr, { card: n, data: c == null ? void 0 : c.records }),
4182
- /* @__PURE__ */ e(nt, { orientation: "horizontal" })
4176
+ /* @__PURE__ */ e(Qe, { orientation: "horizontal" })
4183
4177
  ] });
4184
4178
  }
4185
4179
  return /* @__PURE__ */ r(
@@ -4192,7 +4186,7 @@ function cs({
4192
4186
  s && /* @__PURE__ */ r(or, { className: "flex flex-row items-start justify-between py-4", children: [
4193
4187
  /* @__PURE__ */ r("div", { children: [
4194
4188
  /* @__PURE__ */ e(
4195
- Xe,
4189
+ et,
4196
4190
  {
4197
4191
  text: n.title,
4198
4192
  onSave: (g) => y({ ...n, title: g }),
@@ -4201,7 +4195,7 @@ function cs({
4201
4195
  n.title
4202
4196
  ),
4203
4197
  /* @__PURE__ */ e(
4204
- Xe,
4198
+ et,
4205
4199
  {
4206
4200
  text: n.description || "",
4207
4201
  onSave: (g) => y({ ...n, description: g }),
@@ -4212,7 +4206,7 @@ function cs({
4212
4206
  ] }),
4213
4207
  u && /* @__PURE__ */ r("div", { className: "flex items-center gap-3", children: [
4214
4208
  /* @__PURE__ */ e(
4215
- Xe,
4209
+ et,
4216
4210
  {
4217
4211
  className: "my-1",
4218
4212
  text: u.title || u.column,
@@ -4277,9 +4271,9 @@ const $t = ({
4277
4271
  onCodeChange: i
4278
4272
  }) => /* @__PURE__ */ r(cn, { defaultValue: "final-config", className: "flex w-1/2 flex-col", children: [
4279
4273
  /* @__PURE__ */ r(dn, { className: "justify-start rounded-sm rounded-b-none border border-b-0", children: [
4280
- /* @__PURE__ */ e(et, { value: "final-config", children: "Config" }),
4281
- /* @__PURE__ */ e(et, { value: "custom-config", children: "Changes" }),
4282
- /* @__PURE__ */ e(et, { value: "custom-code", children: "Custom Code" })
4274
+ /* @__PURE__ */ e(tt, { value: "final-config", children: "Config" }),
4275
+ /* @__PURE__ */ e(tt, { value: "custom-config", children: "Changes" }),
4276
+ /* @__PURE__ */ e(tt, { value: "custom-code", children: "Custom Code" })
4283
4277
  ] }),
4284
4278
  /* @__PURE__ */ e(
4285
4279
  yt,
@@ -4472,7 +4466,7 @@ function zl({
4472
4466
  n(x);
4473
4467
  }
4474
4468
  })();
4475
- }, [u]), a.length === 0 ? null : /* @__PURE__ */ r(se, { children: [
4469
+ }, [u]), a.length === 0 ? null : /* @__PURE__ */ r(ae, { children: [
4476
4470
  /* @__PURE__ */ e(Le, { className: "my-2" }),
4477
4471
  /* @__PURE__ */ e("div", { className: "grid grid-cols-4 place-items-center", children: a.map((h, d) => /* @__PURE__ */ e(
4478
4472
  Al,
@@ -4743,8 +4737,8 @@ function Ll({
4743
4737
  function El() {
4744
4738
  var o, l;
4745
4739
  const [t, a] = J(!1), n = f((u) => u.card), s = n.type, i = _((u) => u.isVisualEditing);
4746
- return /* @__PURE__ */ r(Ke, { open: t, onOpenChange: a, children: [
4747
- /* @__PURE__ */ e(Je, { asChild: !0, children: /* @__PURE__ */ e(ee, { size: "sm", variant: i ? "ghost" : "outline", children: /* @__PURE__ */ e(
4740
+ return /* @__PURE__ */ r(Je, { open: t, onOpenChange: a, children: [
4741
+ /* @__PURE__ */ e(We, { asChild: !0, children: /* @__PURE__ */ e(ee, { size: "sm", variant: i ? "ghost" : "outline", children: /* @__PURE__ */ e(
4748
4742
  Ll,
4749
4743
  {
4750
4744
  className: "size-4",
@@ -4790,14 +4784,14 @@ function _l() {
4790
4784
  ((w = (D = (F = n == null ? void 0 : n.chartOptions) == null ? void 0 : F.scales) == null ? void 0 : D[s]) == null ? void 0 : w.max) || ""
4791
4785
  ), [d, y] = J(l || c ? "custom" : "auto"), [x, m] = J(""), [C, p] = J(0), [v, g] = J(""), [N, S] = J(""), [z, k] = J(""), O = f(
4792
4786
  (L) => L.actions.setCardPreferences
4793
- ), { updateCardInFrame: R } = W(), j = f((L) => L.card), Z = f((L) => {
4787
+ ), { updateCardInFrame: R } = W(), j = f((L) => L.card), Y = f((L) => {
4794
4788
  var E;
4795
4789
  return (E = L.card) == null ? void 0 : E.type;
4796
- }), M = ["pie", "doughnut", "polarArea"].includes(Z);
4790
+ }), M = ["pie", "doughnut", "polarArea"].includes(Y);
4797
4791
  me(() => {
4798
- var L, E, ae, Q, re, P, ne, K, de, q, te, fe, Te, Ze;
4792
+ var L, E, se, Q, re, P, ne, K, de, q, te, fe, Te, Ze;
4799
4793
  o(qn(n)), u(
4800
- ((ae = (E = (L = n == null ? void 0 : n.chartOptions) == null ? void 0 : L.scales) == null ? void 0 : E[s]) == null ? void 0 : ae.min) === 0 ? 0 : ""
4794
+ ((se = (E = (L = n == null ? void 0 : n.chartOptions) == null ? void 0 : L.scales) == null ? void 0 : E[s]) == null ? void 0 : se.min) === 0 ? 0 : ""
4801
4795
  ), h(((P = (re = (Q = n == null ? void 0 : n.chartOptions) == null ? void 0 : Q.scales) == null ? void 0 : re[s]) == null ? void 0 : P.max) || ""), m(
4802
4796
  ((q = (de = (K = (ne = n == null ? void 0 : n.chartOptions) == null ? void 0 : ne.scales) == null ? void 0 : K[s]) == null ? void 0 : de.ticks) == null ? void 0 : q.stepSize) || ""
4803
4797
  ), p(((te = n == null ? void 0 : n.numberAxisFormat) == null ? void 0 : te.decimalPlaces) || 0), g(((fe = n == null ? void 0 : n.numberAxisFormat) == null ? void 0 : fe.suffix) || ""), S(((Te = n == null ? void 0 : n.numberAxisFormat) == null ? void 0 : Te.currency) || ""), k(((Ze = n == null ? void 0 : n.numberAxisFormat) == null ? void 0 : Ze.locale) || "");
@@ -4805,11 +4799,11 @@ function _l() {
4805
4799
  function V(L, E) {
4806
4800
  return E === "" || /^[0-9\b]+$/.test(E) ? Number(E) : Number(L);
4807
4801
  }
4808
- function Y() {
4802
+ function Z() {
4809
4803
  const L = [
4810
4804
  ...new Set(St.map((E) => E.currency))
4811
4805
  ];
4812
- return /* @__PURE__ */ r(se, { children: [
4806
+ return /* @__PURE__ */ r(ae, { children: [
4813
4807
  /* @__PURE__ */ r("div", { className: "grid grid-cols-6 items-center gap-2", children: [
4814
4808
  /* @__PURE__ */ e(
4815
4809
  U,
@@ -4870,7 +4864,7 @@ function _l() {
4870
4864
  ] });
4871
4865
  }
4872
4866
  function $() {
4873
- return /* @__PURE__ */ r(se, { children: [
4867
+ return /* @__PURE__ */ r(ae, { children: [
4874
4868
  /* @__PURE__ */ r("div", { className: "grid grid-cols-3 items-center gap-2", children: [
4875
4869
  /* @__PURE__ */ e(U, { htmlFor: "range", children: "Range" }),
4876
4870
  /* @__PURE__ */ e(
@@ -4937,21 +4931,23 @@ function _l() {
4937
4931
  }
4938
4932
  };
4939
4933
  console.log(E), O(E);
4940
- const ae = {
4934
+ const se = {
4941
4935
  ...j,
4942
4936
  preferences: E
4943
4937
  };
4944
- R(ae);
4938
+ R(se);
4945
4939
  }
4946
- return /* @__PURE__ */ r(Ke, { onOpenChange: (L) => a(L), children: [
4947
- /* @__PURE__ */ e(Je, { asChild: !0, children: /* @__PURE__ */ e(X, { tooltip: "Scale Options", children: /* @__PURE__ */ e(ji, { className: "size-4 rotate-45" }) }) }),
4948
- /* @__PURE__ */ e(un, { align: "center", className: "max-w-65", children: /* @__PURE__ */ r("div", { className: "grid gap-4", children: [
4940
+ return /* @__PURE__ */ r(Je, { onOpenChange: (L) => a(L), children: [
4941
+ /* @__PURE__ */ e(We, { asChild: !0, children: /* @__PURE__ */ e(X, { tooltip: "Format Number", children: /* @__PURE__ */ e(vi, { className: "size-4" }) }) }),
4942
+ /* @__PURE__ */ e(un, { align: "end", className: "max-w-65", children: /* @__PURE__ */ r("div", { className: "grid gap-4", children: [
4949
4943
  /* @__PURE__ */ r("div", { className: "space-y-2", children: [
4950
- /* @__PURE__ */ e("h4", { className: "font-medium leading-none", children: "Scale Options" }),
4951
- /* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: "Set the scale for the number axis" })
4944
+ /* @__PURE__ */ e("h4", { className: "font-medium leading-none", children: "Format Options" }),
4945
+ /* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: "Set the format for number axis" })
4952
4946
  ] }),
4953
4947
  /* @__PURE__ */ r("div", { className: "grid gap-2", children: [
4954
- /* @__PURE__ */ r("div", { className: "grid grid-cols-3 items-center gap-2", children: [
4948
+ Z(),
4949
+ /* @__PURE__ */ e("div", { className: "mt-4 space-y-2", children: /* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: "Set the scale for number axis" }) }),
4950
+ /* @__PURE__ */ r("div", { className: "mt-2 grid grid-cols-3 items-center gap-2", children: [
4955
4951
  /* @__PURE__ */ e(U, { htmlFor: "scale", children: "Type" }),
4956
4952
  /* @__PURE__ */ r(
4957
4953
  ke,
@@ -4995,7 +4991,6 @@ function _l() {
4995
4991
  )
4996
4992
  ] }),
4997
4993
  d === "custom" && i == "linear" && $(),
4998
- Y(),
4999
4994
  /* @__PURE__ */ e(xr, {}),
5000
4995
  /* @__PURE__ */ e("div", { className: "grid grid-cols-3", children: /* @__PURE__ */ e(
5001
4996
  ee,
@@ -5045,9 +5040,9 @@ function Vl() {
5045
5040
  align: u
5046
5041
  });
5047
5042
  };
5048
- return /* @__PURE__ */ r(Ke, { children: [
5049
- /* @__PURE__ */ e(Je, { asChild: !0, children: /* @__PURE__ */ e(X, { tooltip: "Legend Settings", children: /* @__PURE__ */ e(Ii, { className: "size-4" }) }) }),
5050
- /* @__PURE__ */ e(un, { className: "w-72", children: /* @__PURE__ */ r("div", { className: "grid gap-4", children: [
5043
+ return /* @__PURE__ */ r(Je, { children: [
5044
+ /* @__PURE__ */ e(We, { asChild: !0, children: /* @__PURE__ */ e(X, { tooltip: "Legend Settings", children: /* @__PURE__ */ e(Oi, { className: "size-4" }) }) }),
5045
+ /* @__PURE__ */ e(un, { align: "end", className: "w-72", children: /* @__PURE__ */ r("div", { className: "grid gap-4", children: [
5051
5046
  /* @__PURE__ */ r("div", { className: "space-y-2", children: [
5052
5047
  /* @__PURE__ */ e("h4", { className: "font-medium leading-none", children: "Legend Options" }),
5053
5048
  /* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: "Set the legend options for the chart." })
@@ -5060,75 +5055,76 @@ function Vl() {
5060
5055
  {
5061
5056
  checked: n,
5062
5057
  onCheckedChange: i,
5063
- defaultChecked: !0,
5064
5058
  id: "displayLegend"
5065
5059
  }
5066
5060
  ) })
5067
5061
  ] }),
5068
- /* @__PURE__ */ r("div", { className: "grid grid-cols-3 items-center gap-4", children: [
5069
- /* @__PURE__ */ e(U, { htmlFor: "position", children: "Position" }),
5070
- /* @__PURE__ */ r("div", { className: "col-span-2 flex h-8 items-center", children: [
5071
- /* @__PURE__ */ e(
5072
- X,
5073
- {
5074
- tooltip: "Top",
5075
- onClick: () => o("top"),
5076
- children: /* @__PURE__ */ e(Sa, { className: "size-4" })
5077
- }
5078
- ),
5079
- /* @__PURE__ */ e(
5080
- X,
5081
- {
5082
- tooltip: "Left",
5083
- onClick: () => o("left"),
5084
- children: /* @__PURE__ */ e(ai, { className: "size-4" })
5085
- }
5086
- ),
5087
- /* @__PURE__ */ e(
5088
- X,
5089
- {
5090
- tooltip: "Bottom",
5091
- onClick: () => o("bottom"),
5092
- children: /* @__PURE__ */ e(Aa, { className: "size-4" })
5093
- }
5094
- ),
5095
- /* @__PURE__ */ e(
5096
- X,
5097
- {
5098
- tooltip: "Right",
5099
- onClick: () => o("right"),
5100
- children: /* @__PURE__ */ e(si, { className: "size-4" })
5101
- }
5102
- )
5103
- ] })
5104
- ] }),
5105
- /* @__PURE__ */ r("div", { className: "grid grid-cols-3 items-center gap-4", children: [
5106
- /* @__PURE__ */ e(U, { htmlFor: "align", children: "Align" }),
5107
- /* @__PURE__ */ r("div", { className: "col-span-2 flex h-8 items-center", children: [
5108
- /* @__PURE__ */ e(
5109
- X,
5110
- {
5111
- tooltip: "Start",
5112
- onClick: () => l("start"),
5113
- children: /* @__PURE__ */ e(Yr, { className: "size-4" })
5114
- }
5115
- ),
5116
- /* @__PURE__ */ e(
5117
- X,
5118
- {
5119
- tooltip: "Center",
5120
- onClick: () => l("center"),
5121
- children: /* @__PURE__ */ e(Zr, { className: "size-4" })
5122
- }
5123
- ),
5124
- /* @__PURE__ */ e(
5125
- X,
5126
- {
5127
- tooltip: "End",
5128
- onClick: () => l("end"),
5129
- children: /* @__PURE__ */ e(Xr, { className: "size-4" })
5130
- }
5131
- )
5062
+ n && /* @__PURE__ */ r(ae, { children: [
5063
+ /* @__PURE__ */ r("div", { className: "grid grid-cols-3 items-center gap-4", children: [
5064
+ /* @__PURE__ */ e(U, { htmlFor: "position", children: "Position" }),
5065
+ /* @__PURE__ */ r("div", { className: "col-span-2 flex h-8 items-center", children: [
5066
+ /* @__PURE__ */ e(
5067
+ X,
5068
+ {
5069
+ tooltip: "Top",
5070
+ onClick: () => o("top"),
5071
+ children: /* @__PURE__ */ e(Sa, { className: "size-4" })
5072
+ }
5073
+ ),
5074
+ /* @__PURE__ */ e(
5075
+ X,
5076
+ {
5077
+ tooltip: "Left",
5078
+ onClick: () => o("left"),
5079
+ children: /* @__PURE__ */ e(ai, { className: "size-4" })
5080
+ }
5081
+ ),
5082
+ /* @__PURE__ */ e(
5083
+ X,
5084
+ {
5085
+ tooltip: "Bottom",
5086
+ onClick: () => o("bottom"),
5087
+ children: /* @__PURE__ */ e(Aa, { className: "size-4" })
5088
+ }
5089
+ ),
5090
+ /* @__PURE__ */ e(
5091
+ X,
5092
+ {
5093
+ tooltip: "Right",
5094
+ onClick: () => o("right"),
5095
+ children: /* @__PURE__ */ e(si, { className: "size-4" })
5096
+ }
5097
+ )
5098
+ ] })
5099
+ ] }),
5100
+ /* @__PURE__ */ r("div", { className: "grid grid-cols-3 items-center gap-4", children: [
5101
+ /* @__PURE__ */ e(U, { htmlFor: "align", children: "Align" }),
5102
+ /* @__PURE__ */ r("div", { className: "col-span-2 flex h-8 items-center", children: [
5103
+ /* @__PURE__ */ e(
5104
+ X,
5105
+ {
5106
+ tooltip: "Start",
5107
+ onClick: () => l("start"),
5108
+ children: /* @__PURE__ */ e(Zr, { className: "size-4" })
5109
+ }
5110
+ ),
5111
+ /* @__PURE__ */ e(
5112
+ X,
5113
+ {
5114
+ tooltip: "Center",
5115
+ onClick: () => l("center"),
5116
+ children: /* @__PURE__ */ e(Yr, { className: "size-4" })
5117
+ }
5118
+ ),
5119
+ /* @__PURE__ */ e(
5120
+ X,
5121
+ {
5122
+ tooltip: "End",
5123
+ onClick: () => l("end"),
5124
+ children: /* @__PURE__ */ e(Xr, { className: "size-4" })
5125
+ }
5126
+ )
5127
+ ] })
5132
5128
  ] })
5133
5129
  ] })
5134
5130
  ] })
@@ -5150,7 +5146,7 @@ function ql() {
5150
5146
  {
5151
5147
  onClick: () => s(i === "y" ? "x" : "y"),
5152
5148
  tooltip: "Chart Orientation",
5153
- children: i === "y" ? /* @__PURE__ */ e(_i, { className: "size-4" }) : /* @__PURE__ */ e(Ei, { className: "size-4" })
5149
+ children: i === "y" ? /* @__PURE__ */ e(Vi, { className: "size-4" }) : /* @__PURE__ */ e(_i, { className: "size-4" })
5154
5150
  }
5155
5151
  );
5156
5152
  }
@@ -5174,7 +5170,7 @@ function Rl() {
5174
5170
  "stackedLine",
5175
5171
  "horizontalBar"
5176
5172
  ].includes(t.type) && /* @__PURE__ */ e(ql, {}),
5177
- !["kpi", "text", "custom", "table"].includes(t.type) && /* @__PURE__ */ r(se, { children: [
5173
+ !["kpi", "text", "custom", "table"].includes(t.type) && /* @__PURE__ */ r(ae, { children: [
5178
5174
  /* @__PURE__ */ e(_l, {}),
5179
5175
  /* @__PURE__ */ e(Vl, {})
5180
5176
  ] }),
@@ -5189,9 +5185,9 @@ function Rl() {
5189
5185
  "text",
5190
5186
  "map"
5191
5187
  ].includes(t.type) && /* @__PURE__ */ r(X, { tooltip: "Grid Style", onClick: o, children: [
5192
- (s === "xy" || !s) && /* @__PURE__ */ e(ki, { className: "size-4" }),
5188
+ (s === "xy" || !s) && /* @__PURE__ */ e(Mi, { className: "size-4" }),
5193
5189
  s === "x" && /* @__PURE__ */ e(fi, { className: "size-4" }),
5194
- s === "y" && /* @__PURE__ */ e(Ri, { className: "size-4" }),
5190
+ s === "y" && /* @__PURE__ */ e(ji, { className: "size-4" }),
5195
5191
  s === "none" && /* @__PURE__ */ e(Gi, { className: "size-4" })
5196
5192
  ] })
5197
5193
  ] }) : null;
@@ -5213,7 +5209,7 @@ function ft() {
5213
5209
  runAssistant: m,
5214
5210
  setChartGrid: C
5215
5211
  } = W(), { data: p, isLoading: v, isFetching: g, error: N } = ge(a);
5216
- if (!a) return /* @__PURE__ */ e(se, { children: "No Active Card" });
5212
+ if (!a) return /* @__PURE__ */ e(ae, { children: "No Active Card" });
5217
5213
  function S() {
5218
5214
  const D = {
5219
5215
  connectionId: a.connectionId,
@@ -5221,7 +5217,7 @@ function ft() {
5221
5217
  lastSelectedSchema: a.lastSelectedSchema,
5222
5218
  lastSelectedTable: a.lastSelectedTable,
5223
5219
  lastSelectedDatamodelId: a.lastSelectedDatamodelId,
5224
- id: tt(),
5220
+ id: nt(),
5225
5221
  title: "Title",
5226
5222
  description: "Description",
5227
5223
  preferences: {
@@ -5249,14 +5245,14 @@ function ft() {
5249
5245
  function k() {
5250
5246
  const D = {
5251
5247
  ...a,
5252
- id: tt(),
5248
+ id: nt(),
5253
5249
  title: `${a.title} Copy`,
5254
5250
  tabTitle: `${a.tabTitle || a.title} Copy`
5255
5251
  };
5256
5252
  z(D);
5257
5253
  }
5258
5254
  function O(D) {
5259
- const w = t.cards.filter((ae) => ae.id !== D), L = w[0], E = {
5255
+ const w = t.cards.filter((se) => se.id !== D), L = w[0], E = {
5260
5256
  ...t,
5261
5257
  cards: w,
5262
5258
  // update the active card to the first card in the frame
@@ -5277,17 +5273,17 @@ function ft() {
5277
5273
  const L = w.cards.find((E) => E.id === D);
5278
5274
  L.sql && c(!0), d(L);
5279
5275
  }
5280
- const Z = (D, w) => {
5276
+ const Y = (D, w) => {
5281
5277
  console.log("handleDragStart", w), D.dataTransfer.setData("tabIndex", w.toString());
5282
5278
  }, M = (D) => {
5283
5279
  D.preventDefault();
5284
5280
  }, V = (D, w) => {
5285
5281
  const L = D.dataTransfer.getData("tabIndex");
5286
5282
  if (L === w.toString()) return;
5287
- const E = Array.from(t.cards), [ae] = E.splice(parseInt(L), 1);
5288
- E.splice(w, 0, ae), h({ ...t, cards: E });
5283
+ const E = Array.from(t.cards), [se] = E.splice(parseInt(L), 1);
5284
+ E.splice(w, 0, se), h({ ...t, cards: E });
5289
5285
  };
5290
- function Y(D, w) {
5286
+ function Z(D, w) {
5291
5287
  return D.cards.length === 1 && (w.displayTab === !0 || w.displayTab === void 0) || D.activeCardId !== w.id && (w.displayTab === !0 || w.displayTab === void 0) ? null : /* @__PURE__ */ e(
5292
5288
  "div",
5293
5289
  {
@@ -5298,7 +5294,7 @@ function ft() {
5298
5294
  displayTab: L
5299
5295
  });
5300
5296
  },
5301
- children: w.displayTab === !0 || w.displayTab === void 0 ? /* @__PURE__ */ e(wr, { className: "mr-2 size-3.5 text-muted-foreground hover:text-foreground" }) : /* @__PURE__ */ e(xi, { className: "mr-2 size-3.5 text-muted-foreground hover:text-foreground" })
5297
+ children: w.displayTab === !0 || w.displayTab === void 0 ? /* @__PURE__ */ e(wr, { className: "mr-2 size-3.5 text-muted-foreground hover:text-foreground" }) : /* @__PURE__ */ e(Ci, { className: "mr-2 size-3.5 text-muted-foreground hover:text-foreground" })
5302
5298
  }
5303
5299
  );
5304
5300
  }
@@ -5313,23 +5309,23 @@ function ft() {
5313
5309
  t.cards.map((D) => /* @__PURE__ */ e(yt, { className: "mt-0 grow", value: D.id, children: I() }, D.id)),
5314
5310
  /* @__PURE__ */ e(dn, { className: "group mx-4 justify-between overflow-x-auto", children: /* @__PURE__ */ r("div", { className: "flex items-center", children: [
5315
5311
  t.cards.map((D, w) => /* @__PURE__ */ e(
5316
- Xe,
5312
+ et,
5317
5313
  {
5318
5314
  text: D.tabTitle || D.title,
5319
5315
  onSave: (L) => {
5320
5316
  d({ ...a, tabTitle: L }), y({ ...a, tabTitle: L });
5321
5317
  },
5322
5318
  children: /* @__PURE__ */ r(
5323
- et,
5319
+ tt,
5324
5320
  {
5325
5321
  draggable: !0,
5326
- onDragStart: (L) => Z(L, w),
5322
+ onDragStart: (L) => Y(L, w),
5327
5323
  onDragOver: M,
5328
5324
  onDrop: (L) => V(L, w),
5329
5325
  className: "",
5330
5326
  value: D.id,
5331
5327
  children: [
5332
- Y(t, D),
5328
+ Z(t, D),
5333
5329
  D.tabTitle || D.title,
5334
5330
  t.activeCardId === D.id && t.cards.length > 1 && /* @__PURE__ */ e(
5335
5331
  Ce,
@@ -5388,8 +5384,8 @@ function ft() {
5388
5384
  ).join(","),
5389
5385
  ...((p == null ? void 0 : p.records) || []).map((Q) => Object.values(Q).join(","))
5390
5386
  ].join(`
5391
- `), L = new Blob([w], { type: "text/csv" }), E = URL.createObjectURL(L), ae = document.createElement("a");
5392
- ae.href = E, ae.download = `${a.title}.csv`, ae.click();
5387
+ `), L = new Blob([w], { type: "text/csv" }), E = URL.createObjectURL(L), se = document.createElement("a");
5388
+ se.href = E, se.download = `${a.title}.csv`, se.click();
5393
5389
  }
5394
5390
  function H() {
5395
5391
  const D = `Can you get the documentation for ${a.type} chart?`;
@@ -5400,7 +5396,7 @@ function ft() {
5400
5396
  {
5401
5397
  className: "relative isolate flex h-full flex-col py-2 pb-3",
5402
5398
  children: [
5403
- (v || g) && /* @__PURE__ */ e("div", { className: "absolute bottom-0 left-0 right-0 top-0 z-50 m-auto flex h-10 w-10 items-center justify-center rounded-md bg-muted", children: /* @__PURE__ */ e(Qe, { className: "h-8 w-8 animate-spin text-muted-foreground" }) }),
5399
+ (v || g) && /* @__PURE__ */ e("div", { className: "absolute bottom-0 left-0 right-0 top-0 z-50 m-auto flex h-10 w-10 items-center justify-center rounded-md bg-muted", children: /* @__PURE__ */ e(Ke, { className: "h-8 w-8 animate-spin text-muted-foreground" }) }),
5404
5400
  /* @__PURE__ */ r(
5405
5401
  "div",
5406
5402
  {
@@ -5429,7 +5425,7 @@ function ft() {
5429
5425
  variant: "ghost",
5430
5426
  size: "icon",
5431
5427
  onClick: b,
5432
- children: /* @__PURE__ */ e(Ni, { strokeWidth: 1.5, className: "size-4" })
5428
+ children: /* @__PURE__ */ e(Si, { strokeWidth: 1.5, className: "size-4" })
5433
5429
  }
5434
5430
  ),
5435
5431
  /* @__PURE__ */ e(
@@ -5451,7 +5447,7 @@ function ft() {
5451
5447
  className: "px-6",
5452
5448
  direction: "horizontal",
5453
5449
  children: [
5454
- l && /* @__PURE__ */ r(se, { children: [
5450
+ l && /* @__PURE__ */ r(ae, { children: [
5455
5451
  /* @__PURE__ */ e(
5456
5452
  pe,
5457
5453
  {
@@ -5493,7 +5489,7 @@ function jl() {
5493
5489
  /* @__PURE__ */ e("div", { className: "sticky top-0 flex max-h-11 min-h-11 grow items-center border-b bg-muted px-3 font-mono text-xs font-semibold text-foreground/70", children: "Python Output" }),
5494
5490
  /* @__PURE__ */ r(it, { className: "overflow-y-auto px-2 pt-1 font-mono text-xs text-foreground/90", children: [
5495
5491
  /* @__PURE__ */ e("div", { dangerouslySetInnerHTML: { __html: a } }),
5496
- /* @__PURE__ */ e(nt, { orientation: "horizontal" })
5492
+ /* @__PURE__ */ e(Qe, { orientation: "horizontal" })
5497
5493
  ] })
5498
5494
  ] });
5499
5495
  }
@@ -5561,7 +5557,7 @@ function Pl() {
5561
5557
  label: "",
5562
5558
  options: N || [],
5563
5559
  value: ((j = (R = t == null ? void 0 : t.dataInputCardIds) == null ? void 0 : R[O]) == null ? void 0 : j.cardId) || "",
5564
- onValueChange: (Z) => d(O, Z)
5560
+ onValueChange: (Y) => d(O, Y)
5565
5561
  }
5566
5562
  )
5567
5563
  ]
@@ -5657,13 +5653,13 @@ function Pl() {
5657
5653
  value: o,
5658
5654
  onValueChange: C,
5659
5655
  children: /* @__PURE__ */ r(dn, { className: "h-9 w-full", children: [
5660
- /* @__PURE__ */ e(et, { className: "h-7 w-full", value: "single", children: "Single Visual" }),
5661
- /* @__PURE__ */ e(et, { className: "h-7 w-full", value: "multiple", children: "Multi-Visual" })
5656
+ /* @__PURE__ */ e(tt, { className: "h-7 w-full", value: "single", children: "Single Visual" }),
5657
+ /* @__PURE__ */ e(tt, { className: "h-7 w-full", value: "multiple", children: "Multi-Visual" })
5662
5658
  ] })
5663
5659
  }
5664
5660
  )
5665
5661
  ] }) }),
5666
- ((t == null ? void 0 : t.type) === "component" || (t == null ? void 0 : t.type) === void 0) && t && /* @__PURE__ */ e(se, { children: u && /* @__PURE__ */ e(
5662
+ ((t == null ? void 0 : t.type) === "component" || (t == null ? void 0 : t.type) === void 0) && t && /* @__PURE__ */ e(ae, { children: u && /* @__PURE__ */ e(
5667
5663
  ye,
5668
5664
  {
5669
5665
  icon: /* @__PURE__ */ e(gi, { className: "h-3.5 w-3.5" }),
@@ -5698,7 +5694,7 @@ function Pl() {
5698
5694
  }
5699
5695
  );
5700
5696
  }
5701
- function We() {
5697
+ function Ye() {
5702
5698
  const [t, a] = J([]), n = f((h) => h.card.preferences), { setFilterOnClickColumnIndex: s, setCardPreferences: i } = f(
5703
5699
  (h) => h.actions
5704
5700
  ), o = f(
@@ -5859,8 +5855,8 @@ function Hl({ idx: t }) {
5859
5855
  });
5860
5856
  }
5861
5857
  }
5862
- return /* @__PURE__ */ r(Ke, { children: [
5863
- /* @__PURE__ */ e(Je, { children: /* @__PURE__ */ e(Ui, { className: "size-4 rotate-[135deg] cursor-pointer text-muted-foreground hover:text-foreground" }) }),
5858
+ return /* @__PURE__ */ r(Je, { children: [
5859
+ /* @__PURE__ */ e(We, { children: /* @__PURE__ */ e(Ui, { className: "size-4 rotate-[135deg] cursor-pointer text-muted-foreground hover:text-foreground" }) }),
5864
5860
  /* @__PURE__ */ e(It, { className: "w-fit px-2 py-1", children: /* @__PURE__ */ r("div", { className: "flex gap-1", children: [
5865
5861
  /* @__PURE__ */ e(
5866
5862
  "button",
@@ -5876,7 +5872,7 @@ function Hl({ idx: t }) {
5876
5872
  onClick: () => l("start", t),
5877
5873
  className: "h-7 p-1 text-xs font-normal",
5878
5874
  children: /* @__PURE__ */ e(
5879
- Oi,
5875
+ Ti,
5880
5876
  {
5881
5877
  className: G("h-4 w-4", {
5882
5878
  "rotate-90": i === "y"
@@ -5891,7 +5887,7 @@ function Hl({ idx: t }) {
5891
5887
  onClick: () => l("center", t),
5892
5888
  className: "h-7 p-1 text-xs font-normal",
5893
5889
  children: /* @__PURE__ */ e(
5894
- zi,
5890
+ Ai,
5895
5891
  {
5896
5892
  className: G("h-4 w-4", {
5897
5893
  "rotate-90": i === "y"
@@ -5906,7 +5902,7 @@ function Hl({ idx: t }) {
5906
5902
  onClick: () => l("end", t),
5907
5903
  className: "h-7 p-1 text-xs font-normal",
5908
5904
  children: /* @__PURE__ */ e(
5909
- Ti,
5905
+ zi,
5910
5906
  {
5911
5907
  className: G("h-4 w-4", {
5912
5908
  "rotate-90": i === "y"
@@ -6087,7 +6083,7 @@ function Cs() {
6087
6083
  if (O)
6088
6084
  c(O.id), u(O.id);
6089
6085
  else {
6090
- const j = tt();
6086
+ const j = nt();
6091
6087
  return d === "api" && t ? (l({
6092
6088
  location: C,
6093
6089
  id: j,
@@ -6149,9 +6145,9 @@ function Gl({
6149
6145
  onSelect: a
6150
6146
  }) {
6151
6147
  var l;
6152
- const [n, s] = Ye.useState(!1), [i, o] = Ye.useState("");
6153
- return /* @__PURE__ */ r(Ke, { open: n, onOpenChange: s, children: [
6154
- /* @__PURE__ */ e(Je, { asChild: !0, children: /* @__PURE__ */ r(
6148
+ const [n, s] = Xe.useState(!1), [i, o] = Xe.useState("");
6149
+ return /* @__PURE__ */ r(Je, { open: n, onOpenChange: s, children: [
6150
+ /* @__PURE__ */ e(We, { asChild: !0, children: /* @__PURE__ */ r(
6155
6151
  ee,
6156
6152
  {
6157
6153
  size: "sm",
@@ -6232,7 +6228,7 @@ function Ul({
6232
6228
  /* @__PURE__ */ r(le, { value: "item-3", children: [
6233
6229
  /* @__PURE__ */ e(oe, { children: "Filters" }),
6234
6230
  /* @__PURE__ */ r(ce, { className: "space-y-4 px-2", children: [
6235
- /* @__PURE__ */ e(We, {}),
6231
+ /* @__PURE__ */ e(Ye, {}),
6236
6232
  /* @__PURE__ */ e(ot, {})
6237
6233
  ] })
6238
6234
  ] })
@@ -6288,7 +6284,7 @@ function $l({
6288
6284
  cardType: t
6289
6285
  }) {
6290
6286
  function a(n) {
6291
- return /* @__PURE__ */ r(se, { children: [
6287
+ return /* @__PURE__ */ r(ae, { children: [
6292
6288
  /* @__PURE__ */ e("div", { className: "rounded bg-muted px-2 py-1 text-xs", children: n === "bubble" ? "SELECT label, [group], x-axis, y-axis, radius FROM table" : "SELECT label, [group], x-axis, y-axis FROM table" }),
6293
6289
  /* @__PURE__ */ r("ul", { className: "ml-6 list-disc text-xs [&>li]:mt-2", children: [
6294
6290
  /* @__PURE__ */ e("li", { children: "label - category" }),
@@ -6325,7 +6321,7 @@ function $l({
6325
6321
  /* @__PURE__ */ r(le, { value: "item-3", children: [
6326
6322
  /* @__PURE__ */ e(oe, { children: "Filters" }),
6327
6323
  /* @__PURE__ */ r(ce, { className: "space-y-4 px-2", children: [
6328
- /* @__PURE__ */ e(We, {}),
6324
+ /* @__PURE__ */ e(Ye, {}),
6329
6325
  /* @__PURE__ */ e(ot, {})
6330
6326
  ] })
6331
6327
  ] })
@@ -6368,14 +6364,14 @@ function Jl() {
6368
6364
  ),
6369
6365
  !["kpi"].includes(t) && /* @__PURE__ */ r("div", { className: "space-y-4", children: [
6370
6366
  /* @__PURE__ */ e(Cn, {}),
6371
- /* @__PURE__ */ e(We, {}),
6367
+ /* @__PURE__ */ e(Ye, {}),
6372
6368
  /* @__PURE__ */ e(ot, {})
6373
6369
  ] })
6374
6370
  ] });
6375
6371
  }
6376
6372
  function Wl(t) {
6377
6373
  if (["line", "bar"].includes(t))
6378
- return /* @__PURE__ */ r(se, { children: [
6374
+ return /* @__PURE__ */ r(ae, { children: [
6379
6375
  /* @__PURE__ */ r(le, { value: "item-1", children: [
6380
6376
  /* @__PURE__ */ e(oe, { className: "font-normal", children: /* @__PURE__ */ e("p", { children: "Chart Query" }) }),
6381
6377
  /* @__PURE__ */ r(ce, { className: " ", children: [
@@ -6420,7 +6416,7 @@ function Wl(t) {
6420
6416
  ] })
6421
6417
  ] });
6422
6418
  if (t === "bubble")
6423
- return /* @__PURE__ */ e(se, { children: /* @__PURE__ */ r(le, { value: "item-1", children: [
6419
+ return /* @__PURE__ */ e(ae, { children: /* @__PURE__ */ r(le, { value: "item-1", children: [
6424
6420
  /* @__PURE__ */ e(oe, { className: "font-normal", children: /* @__PURE__ */ r("p", { children: [
6425
6421
  "How to create a ",
6426
6422
  /* @__PURE__ */ e("span", { children: t }),
@@ -6438,7 +6434,7 @@ function Wl(t) {
6438
6434
  ] })
6439
6435
  ] }) });
6440
6436
  if (t === "scatter")
6441
- return /* @__PURE__ */ e(se, { children: /* @__PURE__ */ r(le, { value: "item-1", children: [
6437
+ return /* @__PURE__ */ e(ae, { children: /* @__PURE__ */ r(le, { value: "item-1", children: [
6442
6438
  /* @__PURE__ */ e(oe, { className: "font-normal", children: /* @__PURE__ */ r("p", { children: [
6443
6439
  "How to create a ",
6444
6440
  /* @__PURE__ */ e("span", { children: t }),
@@ -6455,7 +6451,7 @@ function Wl(t) {
6455
6451
  ] })
6456
6452
  ] }) });
6457
6453
  if (["pie", "doughnut", "polarArea"].includes(t))
6458
- return /* @__PURE__ */ e(se, { children: /* @__PURE__ */ r(le, { value: "item-1", children: [
6454
+ return /* @__PURE__ */ e(ae, { children: /* @__PURE__ */ r(le, { value: "item-1", children: [
6459
6455
  /* @__PURE__ */ e(oe, { className: "font-normal", children: /* @__PURE__ */ r("p", { children: [
6460
6456
  /* @__PURE__ */ e("span", { children: t === "polarArea" ? "Polar" : t.charAt(0).toUpperCase() + t.slice(1) }),
6461
6457
  " ",
@@ -6470,7 +6466,7 @@ function Wl(t) {
6470
6466
  ] })
6471
6467
  ] }) });
6472
6468
  }
6473
- function Zl() {
6469
+ function Yl() {
6474
6470
  var c, h, d, y, x;
6475
6471
  const t = f((m) => m.card.preferences), a = f(
6476
6472
  (m) => m.actions.setCardPreferences
@@ -6636,7 +6632,7 @@ function Zl() {
6636
6632
  ] })
6637
6633
  ] });
6638
6634
  }
6639
- function Yl() {
6635
+ function Zl() {
6640
6636
  return /* @__PURE__ */ r("div", { className: "space-y-6 px-6 py-2", children: [
6641
6637
  /* @__PURE__ */ e(qe, { type: "single", collapsible: !0, children: /* @__PURE__ */ r(le, { value: "item-1", children: [
6642
6638
  /* @__PURE__ */ e(oe, { className: "", children: "KPI Query" }),
@@ -6662,7 +6658,7 @@ function Yl() {
6662
6658
  ] })
6663
6659
  ] })
6664
6660
  ] }) }),
6665
- /* @__PURE__ */ e("section", { className: "", children: /* @__PURE__ */ e(Zl, {}) }),
6661
+ /* @__PURE__ */ e("section", { className: "", children: /* @__PURE__ */ e(Yl, {}) }),
6666
6662
  /* @__PURE__ */ e("div", {}),
6667
6663
  /* @__PURE__ */ e("div", {})
6668
6664
  ] });
@@ -6789,7 +6785,7 @@ const Xl = [
6789
6785
  value: t
6790
6786
  }));
6791
6787
  function no() {
6792
- var c, h, d, y, x, m, C, p, v, g, N, S, z, k, O, R, j, Z;
6788
+ var c, h, d, y, x, m, C, p, v, g, N, S, z, k, O, R, j, Y;
6793
6789
  const t = f((M) => M.card), a = (h = (c = t == null ? void 0 : t.preferences) == null ? void 0 : c.mapVisualOptions) == null ? void 0 : h.topoJsonUrl, [n, s] = J(
6794
6790
  ((y = (d = t == null ? void 0 : t.preferences) == null ? void 0 : d.mapVisualOptions) == null ? void 0 : y.customTopoJsonUrl) || ""
6795
6791
  ), { setCardPreferences: i } = W(), { data: o } = on(t), l = Object.keys((o == null ? void 0 : o.objects) || {}).map((M) => ({
@@ -6852,7 +6848,7 @@ function no() {
6852
6848
  placeholder: "Custom URL"
6853
6849
  }
6854
6850
  ),
6855
- o && /* @__PURE__ */ r(se, { children: [
6851
+ o && /* @__PURE__ */ r(ae, { children: [
6856
6852
  /* @__PURE__ */ r("div", { className: "space-y-1", children: [
6857
6853
  /* @__PURE__ */ e(U, { children: "Map Object" }),
6858
6854
  /* @__PURE__ */ e(
@@ -6951,14 +6947,14 @@ function no() {
6951
6947
  step: 10,
6952
6948
  value: ((O = (k = (z = t.preferences) == null ? void 0 : z.mapVisualOptions) == null ? void 0 : k.projectionOffset) == null ? void 0 : O[0]) || 0,
6953
6949
  onChange: (M) => {
6954
- var V, Y, $, I;
6950
+ var V, Z, $, I;
6955
6951
  i({
6956
6952
  ...t.preferences,
6957
6953
  mapVisualOptions: {
6958
6954
  ...(V = t.preferences) == null ? void 0 : V.mapVisualOptions,
6959
6955
  projectionOffset: [
6960
6956
  Number(M.target.value),
6961
- ((I = ($ = (Y = t.preferences) == null ? void 0 : Y.mapVisualOptions) == null ? void 0 : $.projectionOffset) == null ? void 0 : I[1]) || 0
6957
+ ((I = ($ = (Z = t.preferences) == null ? void 0 : Z.mapVisualOptions) == null ? void 0 : $.projectionOffset) == null ? void 0 : I[1]) || 0
6962
6958
  ]
6963
6959
  }
6964
6960
  });
@@ -6972,15 +6968,15 @@ function no() {
6972
6968
  className: `h-9 w-full ${ze}`,
6973
6969
  type: "number",
6974
6970
  step: 10,
6975
- value: ((Z = (j = (R = t.preferences) == null ? void 0 : R.mapVisualOptions) == null ? void 0 : j.projectionOffset) == null ? void 0 : Z[1]) || 0,
6971
+ value: ((Y = (j = (R = t.preferences) == null ? void 0 : R.mapVisualOptions) == null ? void 0 : j.projectionOffset) == null ? void 0 : Y[1]) || 0,
6976
6972
  onChange: (M) => {
6977
- var V, Y, $, I;
6973
+ var V, Z, $, I;
6978
6974
  i({
6979
6975
  ...t.preferences,
6980
6976
  mapVisualOptions: {
6981
6977
  ...(V = t.preferences) == null ? void 0 : V.mapVisualOptions,
6982
6978
  projectionOffset: [
6983
- ((I = ($ = (Y = t.preferences) == null ? void 0 : Y.mapVisualOptions) == null ? void 0 : $.projectionOffset) == null ? void 0 : I[0]) || 0,
6979
+ ((I = ($ = (Z = t.preferences) == null ? void 0 : Z.mapVisualOptions) == null ? void 0 : $.projectionOffset) == null ? void 0 : I[0]) || 0,
6984
6980
  Number(M.target.value)
6985
6981
  ]
6986
6982
  }
@@ -6990,7 +6986,7 @@ function no() {
6990
6986
  )
6991
6987
  ] }) }),
6992
6988
  /* @__PURE__ */ e(Le, { className: "my-4" }),
6993
- /* @__PURE__ */ e(We, {})
6989
+ /* @__PURE__ */ e(Ye, {})
6994
6990
  ] });
6995
6991
  }
6996
6992
  function ao() {
@@ -7065,7 +7061,7 @@ function gt({
7065
7061
  !["range", "text"].includes(t) && /* @__PURE__ */ r(le, { value: "item-3", children: [
7066
7062
  /* @__PURE__ */ e(oe, { children: "Filters" }),
7067
7063
  /* @__PURE__ */ r(ce, { className: "space-y-4 px-2", children: [
7068
- /* @__PURE__ */ e(We, {}),
7064
+ /* @__PURE__ */ e(Ye, {}),
7069
7065
  /* @__PURE__ */ e(ot, {})
7070
7066
  ] })
7071
7067
  ] })
@@ -7144,7 +7140,7 @@ function so() {
7144
7140
  /* @__PURE__ */ r(le, { value: "item-3", children: [
7145
7141
  /* @__PURE__ */ e(oe, { children: "Filters" }),
7146
7142
  /* @__PURE__ */ r(ce, { className: "space-y-4 px-2", children: [
7147
- /* @__PURE__ */ e(We, {}),
7143
+ /* @__PURE__ */ e(Ye, {}),
7148
7144
  /* @__PURE__ */ e(ot, {})
7149
7145
  ] })
7150
7146
  ] })
@@ -7164,7 +7160,7 @@ function ro({
7164
7160
  /* @__PURE__ */ e(qe, { defaultValue: ["item-3"], type: "multiple", children: /* @__PURE__ */ r(le, { value: "item-3", children: [
7165
7161
  /* @__PURE__ */ e(oe, { children: "Filters" }),
7166
7162
  /* @__PURE__ */ r(ce, { className: "space-y-4 px-2", children: [
7167
- /* @__PURE__ */ e(We, {}),
7163
+ /* @__PURE__ */ e(Ye, {}),
7168
7164
  /* @__PURE__ */ e(ot, {})
7169
7165
  ] })
7170
7166
  ] }) }),
@@ -7245,7 +7241,7 @@ function co() {
7245
7241
  case "pyramid":
7246
7242
  return /* @__PURE__ */ e(gt, { docContent: io, cardType: n });
7247
7243
  case "kpi":
7248
- return /* @__PURE__ */ e(Yl, {});
7244
+ return /* @__PURE__ */ e(Zl, {});
7249
7245
  case "line":
7250
7246
  case "bar":
7251
7247
  return /* @__PURE__ */ e(Ul, { cardType: n });
@@ -7280,7 +7276,7 @@ function co() {
7280
7276
  }
7281
7277
  return /* @__PURE__ */ r(it, { className: "h-full w-full text-sm", children: [
7282
7278
  a(t),
7283
- /* @__PURE__ */ e(nt, { orientation: "horizontal" })
7279
+ /* @__PURE__ */ e(Qe, { orientation: "horizontal" })
7284
7280
  ] });
7285
7281
  }
7286
7282
  function Ns({
@@ -7325,7 +7321,7 @@ const uo = [
7325
7321
  {
7326
7322
  label: "Unique",
7327
7323
  value: "DISTINCT",
7328
- logo: /* @__PURE__ */ e(Si, { className: "size-3.5" })
7324
+ logo: /* @__PURE__ */ e(wi, { className: "size-3.5" })
7329
7325
  },
7330
7326
  {
7331
7327
  label: "Average",
@@ -7488,7 +7484,7 @@ function go({ column: t }) {
7488
7484
  ), u = l ? n.indexOf(l) : -1;
7489
7485
  return /* @__PURE__ */ r("div", { className: "space-y-3", children: [
7490
7486
  l && /* @__PURE__ */ e(xs, { idx: u, col: l, children: /* @__PURE__ */ e(
7491
- Xe,
7487
+ et,
7492
7488
  {
7493
7489
  className: "w-[130px]",
7494
7490
  text: t.label || "",
@@ -7505,7 +7501,7 @@ function go({ column: t }) {
7505
7501
  o && /* @__PURE__ */ r("div", { className: "flex items-center justify-between gap-2", children: [
7506
7502
  /* @__PURE__ */ e(U, { children: "Pivot Header" }),
7507
7503
  /* @__PURE__ */ e(
7508
- Xe,
7504
+ et,
7509
7505
  {
7510
7506
  text: t.aliasTemplate || "",
7511
7507
  placeholder: "{label} ({pivot})",
@@ -7540,7 +7536,7 @@ function yo({
7540
7536
  transition: m
7541
7537
  } : void 0, v = Se(t.type);
7542
7538
  function g(O) {
7543
- const R = $e(O.data_type), j = Se(O.data_type), Z = we(O.data_type), M = R ? "number" : j ? "string" : Z ? "date" : "string";
7539
+ const R = $e(O.data_type), j = Se(O.data_type), Y = we(O.data_type), M = R ? "number" : j ? "string" : Y ? "date" : "string";
7544
7540
  if (s === He) {
7545
7541
  if (j) {
7546
7542
  const V = {
@@ -7552,7 +7548,7 @@ function yo({
7552
7548
  };
7553
7549
  l(t.id, V);
7554
7550
  }
7555
- if (Z) {
7551
+ if (Y) {
7556
7552
  const V = {
7557
7553
  id: t.id,
7558
7554
  // use the previous column's id.
@@ -7576,7 +7572,7 @@ function yo({
7576
7572
  };
7577
7573
  c(t.id, V);
7578
7574
  }
7579
- if (Z) {
7575
+ if (Y) {
7580
7576
  const V = {
7581
7577
  id: t.id,
7582
7578
  // use the previous column's id.
@@ -7764,7 +7760,7 @@ function vo() {
7764
7760
  return (N = g.card.queryConfig) == null ? void 0 : N.metricColumns;
7765
7761
  }) || [], { addOrderByColumn: s, removeOrderByColumn: i, updateOrderByColumn: o } = W(), l = [...a, ...n];
7766
7762
  if (l.length === 0)
7767
- return /* @__PURE__ */ e(se, {});
7763
+ return /* @__PURE__ */ e(ae, {});
7768
7764
  const u = /* @__PURE__ */ e(ii, { className: "size-3.5 text-muted-foreground hover:text-foreground" }), c = /* @__PURE__ */ e(ti, { className: "size-3.5 text-muted-foreground hover:text-foreground" }), h = /* @__PURE__ */ e(ri, { className: "size-3.5 text-muted-foreground hover:text-foreground" }), d = /* @__PURE__ */ e(ei, { className: "size-3.5 text-muted-foreground hover:text-foreground" }), y = l == null ? void 0 : l.filter((g) => !t.some((N) => N.columnId === g.id)).map((g) => ({
7769
7765
  id: g.id,
7770
7766
  value: g.label || g.name
@@ -7934,7 +7930,7 @@ function xo() {
7934
7930
  Kt,
7935
7931
  {
7936
7932
  onRemoveColumn: y,
7937
- sortableType: Yt,
7933
+ sortableType: Zt,
7938
7934
  id: Ge,
7939
7935
  label: C,
7940
7936
  columns: s,
@@ -7943,7 +7939,7 @@ function xo() {
7943
7939
  ),
7944
7940
  /* @__PURE__ */ e(vo, {})
7945
7941
  ] }),
7946
- /* @__PURE__ */ e(nt, { orientation: "horizontal" })
7942
+ /* @__PURE__ */ e(Qe, { orientation: "horizontal" })
7947
7943
  ] })
7948
7944
  ] });
7949
7945
  }
@@ -8246,7 +8242,7 @@ function Do() {
8246
8242
  n ? (l = t.current) == null || l.resize(0) : (u = t.current) == null || u.resize(25);
8247
8243
  }, [n]);
8248
8244
  function i() {
8249
- return /* @__PURE__ */ r(se, { children: [
8245
+ return /* @__PURE__ */ r(ae, { children: [
8250
8246
  /* @__PURE__ */ e(
8251
8247
  pe,
8252
8248
  {
@@ -8266,7 +8262,7 @@ function Do() {
8266
8262
  minSize: 0,
8267
8263
  defaultSize: 60,
8268
8264
  children: a && !n ? /* @__PURE__ */ r(je, { direction: "horizontal", children: [
8269
- /* @__PURE__ */ e(se, { children: /* @__PURE__ */ e(
8265
+ /* @__PURE__ */ e(ae, { children: /* @__PURE__ */ e(
8270
8266
  pe,
8271
8267
  {
8272
8268
  ref: t,
@@ -8284,13 +8280,13 @@ function Do() {
8284
8280
  ] });
8285
8281
  }
8286
8282
  function o() {
8287
- return /* @__PURE__ */ e(se, { children: /* @__PURE__ */ e(
8283
+ return /* @__PURE__ */ e(ae, { children: /* @__PURE__ */ e(
8288
8284
  "div",
8289
8285
  {
8290
8286
  className: "grow",
8291
8287
  "data-biz-mode-container": "",
8292
8288
  children: a && !n ? /* @__PURE__ */ r(je, { direction: "horizontal", children: [
8293
- /* @__PURE__ */ e(se, { children: /* @__PURE__ */ e(
8289
+ /* @__PURE__ */ e(ae, { children: /* @__PURE__ */ e(
8294
8290
  pe,
8295
8291
  {
8296
8292
  ref: t,
@@ -8341,7 +8337,7 @@ const Io = [
8341
8337
  }
8342
8338
  ];
8343
8339
  function Oo() {
8344
- const t = at(null), a = at(null), [n, s] = J(!1), [i, o] = J(Yn), [l, u] = J(!1), c = f((F) => F.actions.setCardSql), h = f((F) => F.actions.setRunSql), d = f((F) => F.showAIDialog), { setShowAIDialog: y } = W(), {
8340
+ const t = at(null), a = at(null), [n, s] = J(!1), [i, o] = J(Zn), [l, u] = J(!1), c = f((F) => F.actions.setCardSql), h = f((F) => F.actions.setRunSql), d = f((F) => F.showAIDialog), { setShowAIDialog: y } = W(), {
8345
8341
  messages: x,
8346
8342
  setMessages: m,
8347
8343
  reload: C,
@@ -8355,10 +8351,10 @@ function Oo() {
8355
8351
  handleInputChange: O,
8356
8352
  handleSubmit: R,
8357
8353
  stop: j,
8358
- chatStatus: Z,
8354
+ chatStatus: Y,
8359
8355
  toolStatus: M,
8360
8356
  llmUsage: V,
8361
- errorMessage: Y
8357
+ errorMessage: Z
8362
8358
  } = rs();
8363
8359
  _r({
8364
8360
  scrollContainerRef: t,
@@ -8519,7 +8515,7 @@ function Oo() {
8519
8515
  /* @__PURE__ */ e(
8520
8516
  Rr,
8521
8517
  {
8522
- status: jr(Z, M),
8518
+ status: jr(Y, M),
8523
8519
  isLoading: N
8524
8520
  }
8525
8521
  )
@@ -8559,7 +8555,7 @@ function Oo() {
8559
8555
  V.totalTokens,
8560
8556
  " total tokens"
8561
8557
  ] }) }),
8562
- Y && /* @__PURE__ */ e("div", { className: "flex items-center justify-between text-xs text-muted-foreground", children: /* @__PURE__ */ e("span", { children: Y }) })
8558
+ Z && /* @__PURE__ */ e("div", { className: "flex items-center justify-between text-xs text-muted-foreground", children: /* @__PURE__ */ e("span", { children: Z }) })
8563
8559
  ]
8564
8560
  }
8565
8561
  );
@@ -8850,11 +8846,11 @@ export {
8850
8846
  ma as getSql,
8851
8847
  Wo as invalidateToken,
8852
8848
  Ts as isBooleanDataType,
8853
- Zo as isColumnInSqlGen,
8849
+ Yo as isColumnInSqlGen,
8854
8850
  we as isDateDataType,
8855
8851
  $e as isNumberDataType,
8856
8852
  Se as isTextDataType,
8857
- Yo as resolveDataType,
8853
+ Zo as resolveDataType,
8858
8854
  Ct as resolveDatamodelName,
8859
8855
  Xo as useCard,
8860
8856
  rt as useDashboardActions,