react-semaphor 0.0.535 → 0.0.537

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { jsxs as s, jsx as e, Fragment as ae } from "react/jsx-runtime";
2
- import { E as J, F as Fa, w as Z, A as zt, G as Qe, H as fn, I as er, J as V, P as Oe, K as gn, L as yn, M as xn, N as vn, O as K, Q as _e, R as Kn, T as Nn, U as bn, V as le, W as Cn, X as tr, Y as $t, Z as Zl, _ as Os, $ as nr, a0 as G, a1 as Pa, a2 as De, a3 as Xl, a4 as pe, a5 as fe, a6 as ge, a7 as ye, a8 as Tt, a9 as Dt, aa as te, ab as ar, ac as Ze, ad as Xe, ae as ei, af as Lt, ag as mt, ah as _t, ai as Fe, aj as Ve, ak as je, al as He, am as sr, an as wn, ao as Sn, ap as rr, aq as kn, ar as wa, as as lr, at as et, au as ir, av as ti, aw as Un, ax as or, ay as st, az as cr, aA as Qn, aB as Va, aC as ni, aD as Ee, aE as ie, aF as we, aG as Wt, aH as tt, aI as Yt, aJ as ai, aK as wt, aL as Ye, aM as Tn, aN as Zn, aO as sn, aP as ja, aQ as rn, aR as nt, aS as Ft, aT as Dn, aU as Mn, aV as dr, aW as Pt, aX as Ba, aY as Ua, aZ as qa, a_ as ur, a$ as qe, b0 as si, b1 as Kt, b2 as On, b3 as mr, b4 as $a, b5 as Xn, b6 as Ga, b7 as ri, b8 as li, b9 as Ja, ba as ii, bb as oi, bc as Vt, bd as jt, be as Ie, bf as yt, bg as ci, bh as di, bi as hr, bj as pr, bk as fr, bl as gr, bm as yr, bn as xr, bo as vr, bp as Nr, bq as br, br as ui, bs as mi, bt as Es, bu as hi, bv as Ha, bw as pi, bx as fi, by as gi, bz as ea, B as I, bA as Cr, bB as yi, bC as Wa, bD as Gt, bE as ln, bF as Qt, bG as En, bH as In, bI as An, bJ as Rn, bK as Mt, bL as Zt, bM as on, v as at, bN as wr, m as Sr, l as kr, f as Je, bO as xi, g as rt, bP as vi, h as Rt, j as lt, k as Ni, bQ as bi, bR as Ci, bS as vt, bT as xt, bU as Tr, bV as wi, C as se, e as Dr, bW as cn, bX as ht, bY as Si, bZ as Sa, b_ as Ya, b$ as zn, c0 as it, c1 as Mr, r as qn, q as Is, c2 as Le, c3 as Vn, c4 as Or, c5 as ki, c6 as Ti, c7 as Di, c8 as Er, c9 as Mi, ca as ta, cb as Oi, cc as Ei, cd as Ii, ce as ka, cf as pt, cg as ze, ch as ft, ci as Ai, cj as Ka, ck as Ir, cl as Ar, cm as Ri, cn as zi, co as Li, cp as _i, cq as ha, cr as Fi, cs as As, ct as Pi, cu as Rs, cv as Vi, cw as ji, cx as Bi, cy as Ui, cz as Qa, cA as qi, cB as $i, cC as Za, cD as Rr, cE as jn, cF as zr, cG as Gi, cH as Ji, cI as Hi, cJ as Lr, cK as _r, cL as na, cM as Fr, cN as Wi, cO as Yi, cP as Ki, cQ as Pr, cR as Xa, cS as Vr, cT as Qi, cU as zs, cV as es, cW as aa, cX as sa, cY as Zi, cZ as Xi, c_ as eo, c$ as ct, d0 as Ne, d1 as be, d2 as Ce, d3 as to, d4 as no, d5 as ao, d6 as so, s as ro, d7 as Ls, d8 as jr, d9 as lo, da as io, db as oo, dc as Br, dd as ts, de as Xt, df as ns, dg as Nt, dh as co, di as en, dj as Ur, dk as uo, dl as mo, dm as ho, dn as po, dp as fo, dq as _s, dr as go, ds as yo, dt as xo, du as vo, dv as No, dw as bo, dx as Co, dy as qr, dz as wo, dA as So, dB as ko, dC as To, dD as Do, dE as $r, dF as Ta, dG as pa, dH as We, dI as Gr, dJ as Fs, dK as ra, dL as Mo, dM as Oo, dN as Jr, dO as as, dP as Eo, dQ as Io, dR as Ao, dS as dn, dT as Da, dU as Ro, dV as zo, dW as Ps, dX as Ma, dY as Oa, dZ as $n, d_ as Jt, d$ as un, e0 as Lo, e1 as Hr, e2 as _o, e3 as Fo, S as Po, e4 as Vo, e5 as jo, e6 as Bo } from "./index-C7jXeSfd.js";
2
+ import { E as J, F as Fa, w as Z, A as zt, G as Qe, H as fn, I as er, J as V, P as Oe, K as gn, L as yn, M as xn, N as vn, O as K, Q as _e, R as Kn, T as Nn, U as bn, V as le, W as Cn, X as tr, Y as $t, Z as Xl, _ as Os, $ as nr, a0 as G, a1 as Pa, a2 as De, a3 as ei, a4 as pe, a5 as fe, a6 as ge, a7 as ye, a8 as Tt, a9 as Dt, aa as te, ab as ar, ac as Ze, ad as Xe, ae as ti, af as Lt, ag as mt, ah as _t, ai as Fe, aj as Ve, ak as je, al as We, am as sr, an as wn, ao as Sn, ap as rr, aq as kn, ar as wa, as as lr, at as et, au as ir, av as ni, aw as Un, ax as or, ay as st, az as cr, aA as Qn, aB as Va, aC as ai, aD as Ee, aE as ie, aF as we, aG as Wt, aH as tt, aI as Yt, aJ as si, aK as wt, aL as Ye, aM as Tn, aN as Zn, aO as sn, aP as ja, aQ as rn, aR as nt, aS as Ft, aT as Dn, aU as Mn, aV as dr, aW as Pt, aX as Ba, aY as Ua, aZ as qa, a_ as ur, a$ as qe, b0 as ri, b1 as Kt, b2 as On, b3 as mr, b4 as $a, b5 as Xn, b6 as Ga, b7 as li, b8 as ii, b9 as Ja, ba as oi, bb as ci, bc as Vt, bd as jt, be as Ie, bf as yt, bg as di, bh as ui, bi as hr, bj as pr, bk as fr, bl as gr, bm as yr, bn as xr, bo as vr, bp as Nr, bq as br, br as mi, bs as hi, bt as Es, bu as pi, bv as Ha, bw as fi, bx as gi, by as yi, bz as ea, B as I, bA as Cr, bB as xi, bC as Wa, bD as Gt, bE as ln, bF as Qt, bG as En, bH as In, bI as An, bJ as Rn, bK as Mt, bL as Zt, bM as on, v as at, bN as wr, m as Sr, l as kr, f as He, bO as vi, g as rt, bP as Ni, h as Rt, j as lt, k as bi, bQ as Ci, bR as wi, bS as vt, bT as xt, bU as Tr, bV as Si, C as se, e as Dr, bW as cn, bX as ht, bY as ki, bZ as Sa, b_ as Ya, b$ as zn, c0 as it, c1 as Mr, r as qn, q as Is, c2 as Le, c3 as Vn, c4 as Or, c5 as Ti, c6 as Di, c7 as Mi, c8 as Er, c9 as Oi, ca as ta, cb as Ei, cc as Ii, cd as Ai, ce as ka, cf as pt, cg as ze, ch as ft, ci as Ri, cj as Ka, ck as Ir, cl as Ar, cm as zi, cn as Li, co as _i, cp as Fi, cq as ha, cr as Pi, cs as As, ct as Vi, cu as Rs, cv as ji, cw as Bi, cx as Ui, cy as qi, cz as Qa, cA as $i, cB as Gi, cC as Za, cD as Rr, cE as jn, cF as zr, cG as Ji, cH as Hi, cI as Wi, cJ as Lr, cK as _r, cL as na, cM as Fr, cN as Yi, cO as Ki, cP as Qi, cQ as Pr, cR as Xa, cS as Vr, cT as Zi, cU as zs, cV as es, cW as aa, cX as sa, cY as Xi, cZ as eo, c_ as to, c$ as ct, d0 as Ne, d1 as be, d2 as Ce, d3 as no, d4 as ao, d5 as so, d6 as ro, s as lo, d7 as Ls, d8 as jr, d9 as io, da as oo, db as co, dc as Br, dd as ts, de as Xt, df as ns, dg as Nt, dh as uo, di as en, dj as Ur, dk as mo, dl as ho, dm as po, dn as fo, dp as go, dq as _s, dr as yo, ds as xo, dt as vo, du as No, dv as bo, dw as Co, dx as wo, dy as qr, dz as So, dA as ko, dB as To, dC as Do, dD as Mo, dE as $r, dF as Ta, dG as pa, dH as $e, dI as Gr, dJ as Fs, dK as ra, dL as Oo, dM as Eo, dN as Jr, dO as as, dP as Io, dQ as Ao, dR as Ro, dS as dn, dT as Da, dU as zo, dV as Lo, dW as Ps, dX as Ma, dY as Oa, dZ as $n, d_ as Jt, d$ as un, e0 as _o, e1 as Hr, e2 as Fo, e3 as Po, S as Vo, e4 as jo, e5 as Bo, e6 as Uo } from "./index-C7jXeSfd.js";
3
3
  import * as kt from "react";
4
4
  import ke, { useState as P, useEffect as Te, useRef as Ke, useMemo as Pe, useCallback as xe, Suspense as Wr } from "react";
5
5
  import "react-dom";
@@ -9,7 +9,7 @@ import "react-dom";
9
9
  * This source code is licensed under the ISC license.
10
10
  * See the LICENSE file in the root directory of this source tree.
11
11
  */
12
- const Uo = J("AlignCenter", [
12
+ const qo = J("AlignCenter", [
13
13
  ["path", { d: "M17 12H7", key: "16if0g" }],
14
14
  ["path", { d: "M19 18H5", key: "18s9l3" }],
15
15
  ["path", { d: "M21 6H3", key: "1jwq7v" }]
@@ -20,7 +20,7 @@ const Uo = J("AlignCenter", [
20
20
  * This source code is licensed under the ISC license.
21
21
  * See the LICENSE file in the root directory of this source tree.
22
22
  */
23
- const qo = J("AlignLeft", [
23
+ const $o = J("AlignLeft", [
24
24
  ["path", { d: "M15 12H3", key: "6jk70r" }],
25
25
  ["path", { d: "M17 18H3", key: "1amg6g" }],
26
26
  ["path", { d: "M21 6H3", key: "1jwq7v" }]
@@ -31,7 +31,7 @@ const qo = J("AlignLeft", [
31
31
  * This source code is licensed under the ISC license.
32
32
  * See the LICENSE file in the root directory of this source tree.
33
33
  */
34
- const $o = J("AlignRight", [
34
+ const Go = J("AlignRight", [
35
35
  ["path", { d: "M21 12H9", key: "dn1m92" }],
36
36
  ["path", { d: "M21 18H7", key: "1ygte8" }],
37
37
  ["path", { d: "M21 6H3", key: "1jwq7v" }]
@@ -42,7 +42,7 @@ const $o = J("AlignRight", [
42
42
  * This source code is licensed under the ISC license.
43
43
  * See the LICENSE file in the root directory of this source tree.
44
44
  */
45
- const Go = J("ArrowDown10", [
45
+ const Jo = J("ArrowDown10", [
46
46
  ["path", { d: "m3 16 4 4 4-4", key: "1co6wj" }],
47
47
  ["path", { d: "M7 20V4", key: "1yoxec" }],
48
48
  ["path", { d: "M17 10V4h-2", key: "zcsr5x" }],
@@ -55,7 +55,7 @@ const Go = J("ArrowDown10", [
55
55
  * This source code is licensed under the ISC license.
56
56
  * See the LICENSE file in the root directory of this source tree.
57
57
  */
58
- const Jo = J("ArrowDownZA", [
58
+ const Ho = J("ArrowDownZA", [
59
59
  ["path", { d: "m3 16 4 4 4-4", key: "1co6wj" }],
60
60
  ["path", { d: "M7 4v16", key: "1glfcx" }],
61
61
  ["path", { d: "M15 4h5l-5 6h5", key: "8asdl1" }],
@@ -68,7 +68,7 @@ const Jo = J("ArrowDownZA", [
68
68
  * This source code is licensed under the ISC license.
69
69
  * See the LICENSE file in the root directory of this source tree.
70
70
  */
71
- const Ho = J("ArrowLeftRight", [
71
+ const Wo = J("ArrowLeftRight", [
72
72
  ["path", { d: "M8 3 4 7l4 4", key: "9rb6wj" }],
73
73
  ["path", { d: "M4 7h16", key: "6tx8e3" }],
74
74
  ["path", { d: "m16 21 4-4-4-4", key: "siv7j2" }],
@@ -80,7 +80,7 @@ const Ho = J("ArrowLeftRight", [
80
80
  * This source code is licensed under the ISC license.
81
81
  * See the LICENSE file in the root directory of this source tree.
82
82
  */
83
- const Wo = J("ArrowLeft", [
83
+ const Yo = J("ArrowLeft", [
84
84
  ["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
85
85
  ["path", { d: "M19 12H5", key: "x3x0zl" }]
86
86
  ]);
@@ -90,7 +90,7 @@ const Wo = J("ArrowLeft", [
90
90
  * This source code is licensed under the ISC license.
91
91
  * See the LICENSE file in the root directory of this source tree.
92
92
  */
93
- const Yo = J("ArrowRight", [
93
+ const Ko = J("ArrowRight", [
94
94
  ["path", { d: "M5 12h14", key: "1ays0h" }],
95
95
  ["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
96
96
  ]);
@@ -100,7 +100,7 @@ const Yo = J("ArrowRight", [
100
100
  * This source code is licensed under the ISC license.
101
101
  * See the LICENSE file in the root directory of this source tree.
102
102
  */
103
- const Ko = J("ArrowUp01", [
103
+ const Qo = J("ArrowUp01", [
104
104
  ["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
105
105
  ["path", { d: "M7 4v16", key: "1glfcx" }],
106
106
  ["rect", { x: "15", y: "4", width: "4", height: "6", ry: "2", key: "1bwicg" }],
@@ -113,7 +113,7 @@ const Ko = J("ArrowUp01", [
113
113
  * This source code is licensed under the ISC license.
114
114
  * See the LICENSE file in the root directory of this source tree.
115
115
  */
116
- const Qo = J("ArrowUpAZ", [
116
+ const Zo = J("ArrowUpAZ", [
117
117
  ["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
118
118
  ["path", { d: "M7 4v16", key: "1glfcx" }],
119
119
  ["path", { d: "M20 8h-5", key: "1vsyxs" }],
@@ -126,7 +126,7 @@ const Qo = J("ArrowUpAZ", [
126
126
  * This source code is licensed under the ISC license.
127
127
  * See the LICENSE file in the root directory of this source tree.
128
128
  */
129
- const Zo = J("Blocks", [
129
+ const Xo = J("Blocks", [
130
130
  ["rect", { width: "7", height: "7", x: "14", y: "3", rx: "1", key: "6d4xhi" }],
131
131
  [
132
132
  "path",
@@ -142,7 +142,7 @@ const Zo = J("Blocks", [
142
142
  * This source code is licensed under the ISC license.
143
143
  * See the LICENSE file in the root directory of this source tree.
144
144
  */
145
- const Xo = J("BookOpenText", [
145
+ const ec = J("BookOpenText", [
146
146
  ["path", { d: "M12 7v14", key: "1akyts" }],
147
147
  ["path", { d: "M16 12h2", key: "7q9ll5" }],
148
148
  ["path", { d: "M16 8h2", key: "msurwy" }],
@@ -180,7 +180,7 @@ const Yr = J("BookType", [
180
180
  * This source code is licensed under the ISC license.
181
181
  * See the LICENSE file in the root directory of this source tree.
182
182
  */
183
- const ec = J("Box", [
183
+ const tc = J("Box", [
184
184
  [
185
185
  "path",
186
186
  {
@@ -197,7 +197,7 @@ const ec = J("Box", [
197
197
  * This source code is licensed under the ISC license.
198
198
  * See the LICENSE file in the root directory of this source tree.
199
199
  */
200
- const tc = J("Braces", [
200
+ const nc = J("Braces", [
201
201
  [
202
202
  "path",
203
203
  { d: "M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1", key: "ezmyqa" }
@@ -235,7 +235,7 @@ const Vs = J("Building", [
235
235
  * This source code is licensed under the ISC license.
236
236
  * See the LICENSE file in the root directory of this source tree.
237
237
  */
238
- const nc = J("Calculator", [
238
+ const ac = J("Calculator", [
239
239
  ["rect", { width: "16", height: "20", x: "4", y: "2", rx: "2", key: "1nb95v" }],
240
240
  ["line", { x1: "8", x2: "16", y1: "6", y2: "6", key: "x4nwl0" }],
241
241
  ["line", { x1: "16", x2: "16", y1: "14", y2: "18", key: "wjye3r" }],
@@ -304,7 +304,7 @@ const ia = J("ChartLine", [
304
304
  * This source code is licensed under the ISC license.
305
305
  * See the LICENSE file in the root directory of this source tree.
306
306
  */
307
- const ac = J("ChartNoAxesCombined", [
307
+ const sc = J("ChartNoAxesCombined", [
308
308
  ["path", { d: "M12 16v5", key: "zza2cw" }],
309
309
  ["path", { d: "M16 14v7", key: "1g90b9" }],
310
310
  ["path", { d: "M20 10v11", key: "1iqoj0" }],
@@ -362,7 +362,7 @@ const ls = J("ChartScatter", [
362
362
  * This source code is licensed under the ISC license.
363
363
  * See the LICENSE file in the root directory of this source tree.
364
364
  */
365
- const sc = J("CircleArrowRight", [
365
+ const rc = J("CircleArrowRight", [
366
366
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
367
367
  ["path", { d: "M8 12h8", key: "1wcyev" }],
368
368
  ["path", { d: "m12 16 4-4-4-4", key: "1i9zcv" }]
@@ -384,7 +384,7 @@ const Qr = J("CircleX", [
384
384
  * This source code is licensed under the ISC license.
385
385
  * See the LICENSE file in the root directory of this source tree.
386
386
  */
387
- const rc = J("Code", [
387
+ const lc = J("Code", [
388
388
  ["polyline", { points: "16 18 22 12 16 6", key: "z7tu5w" }],
389
389
  ["polyline", { points: "8 6 2 12 8 18", key: "1eg1df" }]
390
390
  ]);
@@ -394,7 +394,7 @@ const rc = J("Code", [
394
394
  * This source code is licensed under the ISC license.
395
395
  * See the LICENSE file in the root directory of this source tree.
396
396
  */
397
- const lc = J("Columns3", [
397
+ const ic = J("Columns3", [
398
398
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
399
399
  ["path", { d: "M9 3v18", key: "fh3hqa" }],
400
400
  ["path", { d: "M15 3v18", key: "14nvp0" }]
@@ -405,7 +405,7 @@ const lc = J("Columns3", [
405
405
  * This source code is licensed under the ISC license.
406
406
  * See the LICENSE file in the root directory of this source tree.
407
407
  */
408
- const ic = J("Component", [
408
+ const oc = J("Component", [
409
409
  [
410
410
  "path",
411
411
  {
@@ -441,7 +441,7 @@ const ic = J("Component", [
441
441
  * This source code is licensed under the ISC license.
442
442
  * See the LICENSE file in the root directory of this source tree.
443
443
  */
444
- const oc = J("CopyPlus", [
444
+ const cc = J("CopyPlus", [
445
445
  ["line", { x1: "15", x2: "15", y1: "12", y2: "18", key: "1p7wdc" }],
446
446
  ["line", { x1: "12", x2: "18", y1: "15", y2: "15", key: "1nscbv" }],
447
447
  ["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
@@ -453,7 +453,7 @@ const oc = J("CopyPlus", [
453
453
  * This source code is licensed under the ISC license.
454
454
  * See the LICENSE file in the root directory of this source tree.
455
455
  */
456
- const cc = J("DollarSign", [
456
+ const dc = J("DollarSign", [
457
457
  ["line", { x1: "12", x2: "12", y1: "2", y2: "22", key: "7eqyqh" }],
458
458
  ["path", { d: "M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6", key: "1b0p4s" }]
459
459
  ]);
@@ -491,7 +491,7 @@ const Zr = J("Expand", [
491
491
  * This source code is licensed under the ISC license.
492
492
  * See the LICENSE file in the root directory of this source tree.
493
493
  */
494
- const dc = J("EyeClosed", [
494
+ const uc = J("EyeClosed", [
495
495
  ["path", { d: "m15 18-.722-3.25", key: "1j64jw" }],
496
496
  ["path", { d: "M2 8a10.645 10.645 0 0 0 20 0", key: "1e7gxb" }],
497
497
  ["path", { d: "m20 15-1.726-2.05", key: "1cnuld" }],
@@ -504,7 +504,7 @@ const dc = J("EyeClosed", [
504
504
  * This source code is licensed under the ISC license.
505
505
  * See the LICENSE file in the root directory of this source tree.
506
506
  */
507
- const uc = J("FileCode2", [
507
+ const mc = J("FileCode2", [
508
508
  ["path", { d: "M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4", key: "1pf5j1" }],
509
509
  ["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
510
510
  ["path", { d: "m5 12-3 3 3 3", key: "oke12k" }],
@@ -516,7 +516,7 @@ const uc = J("FileCode2", [
516
516
  * This source code is licensed under the ISC license.
517
517
  * See the LICENSE file in the root directory of this source tree.
518
518
  */
519
- const mc = J("FileJson2", [
519
+ const hc = J("FileJson2", [
520
520
  ["path", { d: "M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4", key: "1pf5j1" }],
521
521
  ["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
522
522
  [
@@ -534,7 +534,7 @@ const mc = J("FileJson2", [
534
534
  * This source code is licensed under the ISC license.
535
535
  * See the LICENSE file in the root directory of this source tree.
536
536
  */
537
- const hc = J("File", [
537
+ const pc = J("File", [
538
538
  ["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
539
539
  ["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }]
540
540
  ]);
@@ -544,7 +544,7 @@ const hc = J("File", [
544
544
  * This source code is licensed under the ISC license.
545
545
  * See the LICENSE file in the root directory of this source tree.
546
546
  */
547
- const pc = J("Fingerprint", [
547
+ const fc = J("Fingerprint", [
548
548
  ["path", { d: "M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4", key: "1nerag" }],
549
549
  ["path", { d: "M14 13.12c0 2.38 0 6.38-1 8.88", key: "o46ks0" }],
550
550
  ["path", { d: "M17.29 21.02c.12-.6.43-2.3.5-3.02", key: "ptglia" }],
@@ -561,7 +561,7 @@ const pc = J("Fingerprint", [
561
561
  * This source code is licensed under the ISC license.
562
562
  * See the LICENSE file in the root directory of this source tree.
563
563
  */
564
- const fc = J("FolderOpen", [
564
+ const gc = J("FolderOpen", [
565
565
  [
566
566
  "path",
567
567
  {
@@ -576,7 +576,7 @@ const fc = J("FolderOpen", [
576
576
  * This source code is licensed under the ISC license.
577
577
  * See the LICENSE file in the root directory of this source tree.
578
578
  */
579
- const gc = J("Glasses", [
579
+ const yc = J("Glasses", [
580
580
  ["circle", { cx: "6", cy: "15", r: "4", key: "vux9w4" }],
581
581
  ["circle", { cx: "18", cy: "15", r: "4", key: "18o8ve" }],
582
582
  ["path", { d: "M14 15a2 2 0 0 0-2-2 2 2 0 0 0-2 2", key: "1ag4bs" }],
@@ -589,7 +589,7 @@ const gc = J("Glasses", [
589
589
  * This source code is licensed under the ISC license.
590
590
  * See the LICENSE file in the root directory of this source tree.
591
591
  */
592
- const yc = J("Grid3x3", [
592
+ const xc = J("Grid3x3", [
593
593
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
594
594
  ["path", { d: "M3 9h18", key: "1pudct" }],
595
595
  ["path", { d: "M3 15h18", key: "5xshup" }],
@@ -602,7 +602,7 @@ const yc = J("Grid3x3", [
602
602
  * This source code is licensed under the ISC license.
603
603
  * See the LICENSE file in the root directory of this source tree.
604
604
  */
605
- const xc = J("Hammer", [
605
+ const vc = J("Hammer", [
606
606
  ["path", { d: "m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9", key: "eefl8a" }],
607
607
  ["path", { d: "m18 15 4-4", key: "16gjal" }],
608
608
  [
@@ -631,7 +631,7 @@ const os = J("Hash", [
631
631
  * This source code is licensed under the ISC license.
632
632
  * See the LICENSE file in the root directory of this source tree.
633
633
  */
634
- const vc = J("LayoutGrid", [
634
+ const Nc = J("LayoutGrid", [
635
635
  ["rect", { width: "7", height: "7", x: "3", y: "3", rx: "1", key: "1g98yp" }],
636
636
  ["rect", { width: "7", height: "7", x: "14", y: "3", rx: "1", key: "6d4xhi" }],
637
637
  ["rect", { width: "7", height: "7", x: "14", y: "14", rx: "1", key: "nxv5o0" }],
@@ -643,7 +643,7 @@ const vc = J("LayoutGrid", [
643
643
  * This source code is licensed under the ISC license.
644
644
  * See the LICENSE file in the root directory of this source tree.
645
645
  */
646
- const Nc = J("LayoutList", [
646
+ const bc = J("LayoutList", [
647
647
  ["rect", { width: "7", height: "7", x: "3", y: "3", rx: "1", key: "1g98yp" }],
648
648
  ["rect", { width: "7", height: "7", x: "3", y: "14", rx: "1", key: "1bb6yr" }],
649
649
  ["path", { d: "M14 4h7", key: "3xa0d5" }],
@@ -657,7 +657,7 @@ const Nc = J("LayoutList", [
657
657
  * This source code is licensed under the ISC license.
658
658
  * See the LICENSE file in the root directory of this source tree.
659
659
  */
660
- const bc = J("ListEnd", [
660
+ const Cc = J("ListEnd", [
661
661
  ["path", { d: "M16 12H3", key: "1a2rj7" }],
662
662
  ["path", { d: "M16 6H3", key: "1wxfjs" }],
663
663
  ["path", { d: "M10 18H3", key: "13769t" }],
@@ -670,7 +670,7 @@ const bc = J("ListEnd", [
670
670
  * This source code is licensed under the ISC license.
671
671
  * See the LICENSE file in the root directory of this source tree.
672
672
  */
673
- const Cc = J("ListStart", [
673
+ const wc = J("ListStart", [
674
674
  ["path", { d: "M16 12H3", key: "1a2rj7" }],
675
675
  ["path", { d: "M16 18H3", key: "12xzn7" }],
676
676
  ["path", { d: "M10 6H3", key: "lf8lx7" }],
@@ -683,7 +683,7 @@ const Cc = J("ListStart", [
683
683
  * This source code is licensed under the ISC license.
684
684
  * See the LICENSE file in the root directory of this source tree.
685
685
  */
686
- const wc = J("ListX", [
686
+ const Sc = J("ListX", [
687
687
  ["path", { d: "M11 12H3", key: "51ecnj" }],
688
688
  ["path", { d: "M16 6H3", key: "1wxfjs" }],
689
689
  ["path", { d: "M16 18H3", key: "12xzn7" }],
@@ -706,7 +706,7 @@ const Xr = J("Lock", [
706
706
  * This source code is licensed under the ISC license.
707
707
  * See the LICENSE file in the root directory of this source tree.
708
708
  */
709
- const Sc = J("Logs", [
709
+ const kc = J("Logs", [
710
710
  ["path", { d: "M13 12h8", key: "h98zly" }],
711
711
  ["path", { d: "M13 18h8", key: "oe0vm4" }],
712
712
  ["path", { d: "M13 6h8", key: "15sg57" }],
@@ -723,7 +723,7 @@ const Sc = J("Logs", [
723
723
  * This source code is licensed under the ISC license.
724
724
  * See the LICENSE file in the root directory of this source tree.
725
725
  */
726
- const kc = J("Mail", [
726
+ const Tc = J("Mail", [
727
727
  ["rect", { width: "20", height: "16", x: "2", y: "4", rx: "2", key: "18n3k1" }],
728
728
  ["path", { d: "m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7", key: "1ocrg3" }]
729
729
  ]);
@@ -733,7 +733,7 @@ const kc = J("Mail", [
733
733
  * This source code is licensed under the ISC license.
734
734
  * See the LICENSE file in the root directory of this source tree.
735
735
  */
736
- const Tc = J("MapPin", [
736
+ const Dc = J("MapPin", [
737
737
  [
738
738
  "path",
739
739
  {
@@ -766,7 +766,7 @@ const cs = J("Map", [
766
766
  * This source code is licensed under the ISC license.
767
767
  * See the LICENSE file in the root directory of this source tree.
768
768
  */
769
- const Dc = J("MessageCircleMore", [
769
+ const Mc = J("MessageCircleMore", [
770
770
  ["path", { d: "M7.9 20A9 9 0 1 0 4 16.1L2 22Z", key: "vv11sd" }],
771
771
  ["path", { d: "M8 12h.01", key: "czm47f" }],
772
772
  ["path", { d: "M12 12h.01", key: "1mp3jc" }],
@@ -778,7 +778,7 @@ const Dc = J("MessageCircleMore", [
778
778
  * This source code is licensed under the ISC license.
779
779
  * See the LICENSE file in the root directory of this source tree.
780
780
  */
781
- const Mc = J("MessageCircle", [
781
+ const Oc = J("MessageCircle", [
782
782
  ["path", { d: "M7.9 20A9 9 0 1 0 4 16.1L2 22Z", key: "vv11sd" }]
783
783
  ]);
784
784
  /**
@@ -809,7 +809,7 @@ const Bs = J("MoveVertical", [
809
809
  * This source code is licensed under the ISC license.
810
810
  * See the LICENSE file in the root directory of this source tree.
811
811
  */
812
- const Oc = J("Network", [
812
+ const Ec = J("Network", [
813
813
  ["rect", { x: "16", y: "16", width: "6", height: "6", rx: "1", key: "4q2zg0" }],
814
814
  ["rect", { x: "2", y: "16", width: "6", height: "6", rx: "1", key: "8cvhb9" }],
815
815
  ["rect", { x: "9", y: "2", width: "6", height: "6", rx: "1", key: "1egb70" }],
@@ -822,7 +822,7 @@ const Oc = J("Network", [
822
822
  * This source code is licensed under the ISC license.
823
823
  * See the LICENSE file in the root directory of this source tree.
824
824
  */
825
- const Ec = J("PenLine", [
825
+ const Ic = J("PenLine", [
826
826
  ["path", { d: "M12 20h9", key: "t2du7b" }],
827
827
  [
828
828
  "path",
@@ -838,7 +838,7 @@ const Ec = J("PenLine", [
838
838
  * This source code is licensed under the ISC license.
839
839
  * See the LICENSE file in the root directory of this source tree.
840
840
  */
841
- const Ic = J("Plug", [
841
+ const Ac = J("Plug", [
842
842
  ["path", { d: "M12 22v-5", key: "1ega77" }],
843
843
  ["path", { d: "M9 8V2", key: "14iosj" }],
844
844
  ["path", { d: "M15 8V2", key: "18g5xt" }],
@@ -878,7 +878,7 @@ const el = J("RefreshCw", [
878
878
  * This source code is licensed under the ISC license.
879
879
  * See the LICENSE file in the root directory of this source tree.
880
880
  */
881
- const Ac = J("Rows3", [
881
+ const Rc = J("Rows3", [
882
882
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
883
883
  ["path", { d: "M21 9H3", key: "1338ky" }],
884
884
  ["path", { d: "M21 15H3", key: "9uk58r" }]
@@ -889,7 +889,7 @@ const Ac = J("Rows3", [
889
889
  * This source code is licensed under the ISC license.
890
890
  * See the LICENSE file in the root directory of this source tree.
891
891
  */
892
- const Rc = J("Settings2", [
892
+ const zc = J("Settings2", [
893
893
  ["path", { d: "M20 7h-9", key: "3s1dr2" }],
894
894
  ["path", { d: "M14 17H5", key: "gfn3mx" }],
895
895
  ["circle", { cx: "17", cy: "17", r: "3", key: "18b49y" }],
@@ -931,7 +931,7 @@ const hn = J("Share2", [
931
931
  * This source code is licensed under the ISC license.
932
932
  * See the LICENSE file in the root directory of this source tree.
933
933
  */
934
- const zc = J("Share", [
934
+ const Lc = J("Share", [
935
935
  ["path", { d: "M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8", key: "1b2hhj" }],
936
936
  ["polyline", { points: "16 6 12 2 8 6", key: "m901s6" }],
937
937
  ["line", { x1: "12", x2: "12", y1: "2", y2: "15", key: "1p0rca" }]
@@ -942,7 +942,7 @@ const zc = J("Share", [
942
942
  * This source code is licensed under the ISC license.
943
943
  * See the LICENSE file in the root directory of this source tree.
944
944
  */
945
- const Lc = J("Shrink", [
945
+ const _c = J("Shrink", [
946
946
  ["path", { d: "m15 15 6 6m-6-6v4.8m0-4.8h4.8", key: "17vawe" }],
947
947
  ["path", { d: "M9 19.8V15m0 0H4.2M9 15l-6 6", key: "chjx8e" }],
948
948
  ["path", { d: "M15 4.2V9m0 0h4.8M15 9l6-6", key: "lav6yq" }],
@@ -969,7 +969,7 @@ const tl = J("Sigma", [
969
969
  * This source code is licensed under the ISC license.
970
970
  * See the LICENSE file in the root directory of this source tree.
971
971
  */
972
- const _c = J("Sparkles", [
972
+ const Fc = J("Sparkles", [
973
973
  [
974
974
  "path",
975
975
  {
@@ -988,7 +988,7 @@ const _c = J("Sparkles", [
988
988
  * This source code is licensed under the ISC license.
989
989
  * See the LICENSE file in the root directory of this source tree.
990
990
  */
991
- const Fc = J("Square", [
991
+ const Pc = J("Square", [
992
992
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }]
993
993
  ]);
994
994
  /**
@@ -1028,7 +1028,7 @@ const nl = J("Tag", [
1028
1028
  * This source code is licensed under the ISC license.
1029
1029
  * See the LICENSE file in the root directory of this source tree.
1030
1030
  */
1031
- const Pc = J("Terminal", [
1031
+ const Vc = J("Terminal", [
1032
1032
  ["polyline", { points: "4 17 10 11 4 5", key: "akl6gq" }],
1033
1033
  ["line", { x1: "12", x2: "20", y1: "19", y2: "19", key: "q2wloq" }]
1034
1034
  ]);
@@ -1100,14 +1100,14 @@ function rl(t) {
1100
1100
  var i;
1101
1101
  return {
1102
1102
  ...l,
1103
- cards: (i = l.cards) == null ? void 0 : i.map((c) => Vc(c))
1103
+ cards: (i = l.cards) == null ? void 0 : i.map((c) => jc(c))
1104
1104
  };
1105
1105
  })
1106
1106
  };
1107
1107
  })
1108
1108
  };
1109
1109
  }
1110
- function Vc(t) {
1110
+ function jc(t) {
1111
1111
  return {
1112
1112
  ...t,
1113
1113
  // cfg: {
@@ -1123,12 +1123,12 @@ function Vc(t) {
1123
1123
  // }),
1124
1124
  // },
1125
1125
  // },
1126
- customCfg: jc(t.customCfg),
1126
+ customCfg: Bc(t.customCfg),
1127
1127
  // if customCfg is present, clean it, otherwise return null{
1128
1128
  data: []
1129
1129
  };
1130
1130
  }
1131
- function jc(t) {
1131
+ function Bc(t) {
1132
1132
  var a, n;
1133
1133
  return t ? {
1134
1134
  ...t,
@@ -1142,7 +1142,7 @@ function jc(t) {
1142
1142
  }
1143
1143
  } : null;
1144
1144
  }
1145
- async function Bc(t, a, n, r) {
1145
+ async function Uc(t, a, n, r) {
1146
1146
  if (!r)
1147
1147
  return null;
1148
1148
  const l = JSON.stringify(a);
@@ -1166,19 +1166,19 @@ async function Ea(t, a) {
1166
1166
  operation: "update"
1167
1167
  });
1168
1168
  }
1169
- async function Uc(t, a) {
1169
+ async function qc(t, a) {
1170
1170
  return a ? await Fa("https://semaphor.cloud/api/v1/lens", a, {
1171
1171
  operation: "delete",
1172
1172
  lensId: t
1173
1173
  }) : null;
1174
1174
  }
1175
- function qc() {
1175
+ function $c() {
1176
1176
  const [t, a] = P(""), [n, r] = P(!1), l = Z((p) => p.lenses), { setLenses: i, setSelectedLensId: c } = zt(), [o, d] = P(!1), [m, h] = P(!1), u = Z((p) => p.dashboard), f = Z((p) => p.filterValues), { authToken: g } = Qe();
1177
1177
  async function x() {
1178
1178
  d(!0);
1179
1179
  const p = rl(
1180
1180
  u
1181
- ), T = await Bc(
1181
+ ), T = await Uc(
1182
1182
  t,
1183
1183
  p,
1184
1184
  f,
@@ -1233,13 +1233,13 @@ function qc() {
1233
1233
  ] })
1234
1234
  ] });
1235
1235
  }
1236
- function $c() {
1236
+ function Gc() {
1237
1237
  const [t, a] = P(!1), n = Z((h) => h.lenses), r = Z((h) => h.selectedLensId), { setLenses: l, setSelectedLensId: i } = zt(), { authToken: c } = Qe();
1238
1238
  async function o(h) {
1239
1239
  i(h);
1240
1240
  }
1241
1241
  async function d(h) {
1242
- if (await Uc(h, c == null ? void 0 : c.accessToken)) {
1242
+ if (await qc(h, c == null ? void 0 : c.accessToken)) {
1243
1243
  const f = n == null ? void 0 : n.filter((g) => g.id !== h);
1244
1244
  l(f || []), i("original");
1245
1245
  }
@@ -1268,12 +1268,12 @@ function $c() {
1268
1268
  }
1269
1269
  }
1270
1270
  return /* @__PURE__ */ s(Nn, { open: t, onOpenChange: a, children: [
1271
- /* @__PURE__ */ e(bn, { asChild: !0, children: /* @__PURE__ */ e(le, { tooltip: "Lenses", className: "h-7 p-2", children: /* @__PURE__ */ e(gc, { className: "h-4 w-4" }) }) }),
1271
+ /* @__PURE__ */ e(bn, { asChild: !0, children: /* @__PURE__ */ e(le, { tooltip: "Lenses", className: "h-7 p-2", children: /* @__PURE__ */ e(yc, { className: "h-4 w-4" }) }) }),
1272
1272
  /* @__PURE__ */ s(Cn, { align: "end", className: "w-60", children: [
1273
1273
  /* @__PURE__ */ e(tr, { className: "px-3", children: "Lenses" }),
1274
1274
  /* @__PURE__ */ e($t, {}),
1275
1275
  /* @__PURE__ */ s(
1276
- Zl,
1276
+ Xl,
1277
1277
  {
1278
1278
  value: r,
1279
1279
  onValueChange: o,
@@ -1335,7 +1335,7 @@ function ll() {
1335
1335
  selectedSheetId: l || ""
1336
1336
  };
1337
1337
  }
1338
- async function Gc() {
1338
+ async function Jc() {
1339
1339
  const t = Z.getState().isDownloadingPdf, { authToken: a, theme: n, filterValues: r, dashboardTitle: l, selectedSheetId: i } = ll();
1340
1340
  if (t)
1341
1341
  return;
@@ -1353,7 +1353,7 @@ async function Gc() {
1353
1353
  const f = `${l}-${(/* @__PURE__ */ new Date()).toISOString()}.pdf`;
1354
1354
  u.download = f, u.click(), Z.setState({ isDownloadingPdf: !1 });
1355
1355
  }
1356
- function Jc({
1356
+ function Hc({
1357
1357
  iconClassName: t
1358
1358
  }) {
1359
1359
  const { authToken: a } = Qe();
@@ -1363,7 +1363,7 @@ function Jc({
1363
1363
  }), Z((l) => l.theme), Z((l) => l.filterValues);
1364
1364
  const n = Z((l) => l.isDownloadingPdf);
1365
1365
  async function r() {
1366
- await Gc();
1366
+ await Jc();
1367
1367
  }
1368
1368
  return /* @__PURE__ */ e(
1369
1369
  le,
@@ -1371,7 +1371,7 @@ function Jc({
1371
1371
  tooltip: "Download PDF",
1372
1372
  className: "h-7 p-2",
1373
1373
  onClick: r,
1374
- children: n ? /* @__PURE__ */ e(De, { className: G("size-3.5 animate-spin", t) }) : /* @__PURE__ */ e(Xl, { className: G("size-4", t) })
1374
+ children: n ? /* @__PURE__ */ e(De, { className: G("size-3.5 animate-spin", t) }) : /* @__PURE__ */ e(ei, { className: G("size-4", t) })
1375
1375
  }
1376
1376
  );
1377
1377
  }
@@ -1416,7 +1416,7 @@ const Us = [
1416
1416
  { value: "biweekly", label: "Bi-Weekly" },
1417
1417
  { value: "monthly", label: "Monthly" }
1418
1418
  ];
1419
- function Hc({
1419
+ function Wc({
1420
1420
  triggerButtonClassName: t
1421
1421
  }) {
1422
1422
  const {
@@ -1426,14 +1426,14 @@ function Hc({
1426
1426
  status: l,
1427
1427
  error: i,
1428
1428
  isDeleting: c
1429
- } = Wc(), [o, d] = P(""), [m, h] = P(Us[0].value), [u, f] = P("06:00"), [g, x] = P("");
1429
+ } = Yc(), [o, d] = P(""), [m, h] = P(Us[0].value), [u, f] = P("06:00"), [g, x] = P("");
1430
1430
  return /* @__PURE__ */ e(ar, { delayDuration: 0, children: /* @__PURE__ */ s(Ze, { children: [
1431
1431
  /* @__PURE__ */ e(Xe, { asChild: !0, children: /* @__PURE__ */ e(
1432
1432
  le,
1433
1433
  {
1434
1434
  tooltip: "Schedule Dashboard",
1435
1435
  className: G("h-7 p-2", t),
1436
- children: /* @__PURE__ */ e(ei, { className: "size-4" })
1436
+ children: /* @__PURE__ */ e(ti, { className: "size-4" })
1437
1437
  }
1438
1438
  ) }),
1439
1439
  /* @__PURE__ */ e(Lt, { align: "end", className: "w-80", children: /* @__PURE__ */ s("div", { className: "grid gap-4", children: [
@@ -1520,7 +1520,7 @@ function Hc({
1520
1520
  }
1521
1521
  ) }),
1522
1522
  a && a.length > 0 && /* @__PURE__ */ s("div", { className: "space-y-4", children: [
1523
- /* @__PURE__ */ e(He, { className: "my-2" }),
1523
+ /* @__PURE__ */ e(We, { className: "my-2" }),
1524
1524
  /* @__PURE__ */ e("div", { className: "space-y-2", children: /* @__PURE__ */ s("div", { className: "flex items-start justify-between", children: [
1525
1525
  /* @__PURE__ */ s("div", { className: "space-y-2", children: [
1526
1526
  /* @__PURE__ */ e("h4", { className: "font-medium leading-none", children: "Subscriptions" }),
@@ -1545,10 +1545,10 @@ function Hc({
1545
1545
  qs,
1546
1546
  {
1547
1547
  tooltip: `Next Run: ${new Date(p.nextRun).toLocaleString()} ${p.timezone}`,
1548
- children: /* @__PURE__ */ e(sc, { className: "size-3.5" })
1548
+ children: /* @__PURE__ */ e(rc, { className: "size-3.5" })
1549
1549
  }
1550
1550
  ),
1551
- /* @__PURE__ */ e(qs, { tooltip: `${p.endUserEmail}`, children: /* @__PURE__ */ e(kc, { className: "size-3.5" }) }),
1551
+ /* @__PURE__ */ e(qs, { tooltip: `${p.endUserEmail}`, children: /* @__PURE__ */ e(Tc, { className: "size-3.5" }) }),
1552
1552
  c === p.id ? /* @__PURE__ */ e(De, { className: "size-3.5 animate-spin" }) : /* @__PURE__ */ e(
1553
1553
  Sn,
1554
1554
  {
@@ -1573,7 +1573,7 @@ const qs = ({
1573
1573
  /* @__PURE__ */ e(Ve, { asChild: !0, children: t }),
1574
1574
  /* @__PURE__ */ e(je, { children: a })
1575
1575
  ] }) });
1576
- function Wc() {
1576
+ function Yc() {
1577
1577
  const [t, a] = P("idle"), [n, r] = P(""), [l, i] = P(null), c = Z((w) => w.authToken), o = Z((w) => w.dashboard.id), d = Z((w) => w.dashboard.title), { endUserId: m } = rr((c == null ? void 0 : c.accessToken) || ""), h = "https://semaphor.cloud/api/v1/subscriptions/get", u = {
1578
1578
  dashboardId: o,
1579
1579
  endUserId: m
@@ -1698,7 +1698,7 @@ function il() {
1698
1698
  ] }) }, a)) })
1699
1699
  ] }) });
1700
1700
  }
1701
- function Yc({
1701
+ function Kc({
1702
1702
  visual: t,
1703
1703
  isDeleting: a,
1704
1704
  isDuplicating: n,
@@ -1714,7 +1714,7 @@ function Yc({
1714
1714
  formatDate: u
1715
1715
  }) {
1716
1716
  var k;
1717
- const { selectVisual: f } = ir(), g = ti(t.id), [x, p] = P(!1), [T, y] = P(!1);
1717
+ const { selectVisual: f } = ir(), g = ni(t.id), [x, p] = P(!1), [T, y] = P(!1);
1718
1718
  Te(() => {
1719
1719
  n ? (p(!0), y(!0)) : T && (p(!1), y(!1));
1720
1720
  }, [n, T]);
@@ -1835,7 +1835,7 @@ function Yc({
1835
1835
  O.stopPropagation(), c == null || c(t);
1836
1836
  },
1837
1837
  children: [
1838
- /* @__PURE__ */ e(Ec, { className: "mr-2 h-3 w-3" }),
1838
+ /* @__PURE__ */ e(Ic, { className: "mr-2 h-3 w-3" }),
1839
1839
  "Edit"
1840
1840
  ]
1841
1841
  }
@@ -1898,7 +1898,7 @@ function ol({
1898
1898
  placeholder: n = "Search users by name, email, or department..."
1899
1899
  }) {
1900
1900
  return /* @__PURE__ */ s("div", { className: "relative", children: [
1901
- /* @__PURE__ */ e(ni, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
1901
+ /* @__PURE__ */ e(ai, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
1902
1902
  /* @__PURE__ */ e(
1903
1903
  Ee,
1904
1904
  {
@@ -2003,7 +2003,7 @@ function cl({
2003
2003
  )
2004
2004
  ] }, i.id);
2005
2005
  }) }),
2006
- /* @__PURE__ */ e(He, {})
2006
+ /* @__PURE__ */ e(We, {})
2007
2007
  ] });
2008
2008
  }
2009
2009
  function dl({
@@ -2040,7 +2040,7 @@ function dl({
2040
2040
  }
2041
2041
  )
2042
2042
  ] }, r.id)) }),
2043
- /* @__PURE__ */ e(He, {})
2043
+ /* @__PURE__ */ e(We, {})
2044
2044
  ] });
2045
2045
  }
2046
2046
  function ul({
@@ -2097,7 +2097,7 @@ function ul({
2097
2097
  )) })
2098
2098
  ] });
2099
2099
  }
2100
- function Kc(t, a = {}) {
2100
+ function ml(t, a = {}) {
2101
2101
  const { enabled: n = !0, eventType: r = "mousedown" } = a, l = Ke(null);
2102
2102
  return Te(() => {
2103
2103
  const i = (c) => {
@@ -2109,18 +2109,18 @@ function Kc(t, a = {}) {
2109
2109
  };
2110
2110
  }, [t, n, r]), l;
2111
2111
  }
2112
- function $e(t, a) {
2112
+ function Ge(t, a) {
2113
2113
  var n;
2114
2114
  return ((n = a.find((r) => r.value === t)) == null ? void 0 : n.label) || t;
2115
2115
  }
2116
2116
  function Qc(t) {
2117
2117
  return ["POWER_USER", "ADMIN", "EDITOR"].includes(t);
2118
2118
  }
2119
- function ml(t) {
2119
+ function hl(t) {
2120
2120
  return "tenantId" in t && t.tenantId ? "tenant" : "organization";
2121
2121
  }
2122
2122
  function Zc(t, a, n) {
2123
- const r = ml(t), l = (n == null ? void 0 : n.type) || "organization";
2123
+ const r = hl(t), l = (n == null ? void 0 : n.type) || "organization";
2124
2124
  if (!(!a || !a.shares))
2125
2125
  if (l === "organization")
2126
2126
  if (r === "organization") {
@@ -2138,7 +2138,7 @@ function Zc(t, a, n) {
2138
2138
  );
2139
2139
  }
2140
2140
  function Xc({ user: t }) {
2141
- return ml(t) === "tenant" ? /* @__PURE__ */ e(ie, { variant: "outline", className: "text-xs", children: t.role === "POWER_USER" ? "Power User" : "Viewer" }) : /* @__PURE__ */ e(ie, { variant: "outline", className: "text-xs", children: t.role === "ADMIN" ? "Admin" : t.role === "POWER_USER" ? "Power User" : "Viewer" });
2141
+ return hl(t) === "tenant" ? /* @__PURE__ */ e(ie, { variant: "outline", className: "text-xs", children: t.role === "POWER_USER" ? "Power User" : "Viewer" }) : /* @__PURE__ */ e(ie, { variant: "outline", className: "text-xs", children: t.role === "ADMIN" ? "Admin" : t.role === "POWER_USER" ? "Power User" : "Viewer" });
2142
2142
  }
2143
2143
  function ed({
2144
2144
  user: t,
@@ -2166,7 +2166,7 @@ function ed({
2166
2166
  allowDropdown: c,
2167
2167
  className: o ? "border-orange-300 bg-orange-100" : ""
2168
2168
  }
2169
- ) : /* @__PURE__ */ e(ie, { variant: "outline", className: "text-xs", children: $e(m, h) }) }) : /* @__PURE__ */ e(ie, { variant: "outline", className: "text-xs", children: "Unknown" });
2169
+ ) : /* @__PURE__ */ e(ie, { variant: "outline", className: "text-xs", children: Ge(m, h) }) }) : /* @__PURE__ */ e(ie, { variant: "outline", className: "text-xs", children: "Unknown" });
2170
2170
  }
2171
2171
  function td({
2172
2172
  hasAccess: t,
@@ -2253,7 +2253,7 @@ function ad({
2253
2253
  (w) => w.id === f.orgUserId
2254
2254
  )) == null ? void 0 : y.name) || "Unknown User", p = ((b = a.find(
2255
2255
  (w) => w.id === f.orgUserId
2256
- )) == null ? void 0 : b.type) || "", T = $e(
2256
+ )) == null ? void 0 : b.type) || "", T = Ge(
2257
2257
  f.role,
2258
2258
  n(p)
2259
2259
  );
@@ -2296,7 +2296,7 @@ function ad({
2296
2296
  (w) => w.id === f.tenantUserId
2297
2297
  )) == null ? void 0 : y.name) || "Unknown User", p = ((b = a.find(
2298
2298
  (w) => w.id === f.tenantUserId
2299
- )) == null ? void 0 : b.type) || "", T = $e(
2299
+ )) == null ? void 0 : b.type) || "", T = Ge(
2300
2300
  f.role,
2301
2301
  n(p)
2302
2302
  );
@@ -2329,7 +2329,7 @@ function ad({
2329
2329
  m.length > 0 && /* @__PURE__ */ s("div", { className: "space-y-1", children: [
2330
2330
  /* @__PURE__ */ e("div", { className: "text-xs font-medium text-purple-600", children: "All Org Users" }),
2331
2331
  /* @__PURE__ */ e("div", { className: "grid grid-cols-1 gap-1", children: m.map((f, g) => {
2332
- const x = $e(
2332
+ const x = Ge(
2333
2333
  f.role,
2334
2334
  n("")
2335
2335
  );
@@ -2356,7 +2356,7 @@ function ad({
2356
2356
  h.length > 0 && /* @__PURE__ */ s("div", { className: "space-y-1", children: [
2357
2357
  /* @__PURE__ */ e("div", { className: "text-xs font-medium text-orange-600", children: "Org Users Only" }),
2358
2358
  /* @__PURE__ */ e("div", { className: "grid grid-cols-1 gap-1", children: h.map((f, g) => {
2359
- const x = $e(
2359
+ const x = Ge(
2360
2360
  f.role,
2361
2361
  n("")
2362
2362
  );
@@ -2383,7 +2383,7 @@ function ad({
2383
2383
  u.length > 0 && /* @__PURE__ */ s("div", { className: "space-y-1", children: [
2384
2384
  /* @__PURE__ */ e("div", { className: "text-xs font-medium text-indigo-600", children: "All Tenants" }),
2385
2385
  /* @__PURE__ */ e("div", { className: "grid grid-cols-1 gap-1", children: u.map((f, g) => {
2386
- const x = $e(
2386
+ const x = Ge(
2387
2387
  f.role,
2388
2388
  n("")
2389
2389
  );
@@ -2428,7 +2428,7 @@ function ad({
2428
2428
  (p) => p.id === d.tenantUserId
2429
2429
  )) == null ? void 0 : g.name) || "Unknown User", u = ((x = a.find(
2430
2430
  (p) => p.id === d.tenantUserId
2431
- )) == null ? void 0 : x.type) || "", f = $e(
2431
+ )) == null ? void 0 : x.type) || "", f = Ge(
2432
2432
  d.role,
2433
2433
  n(u)
2434
2434
  );
@@ -2461,7 +2461,7 @@ function ad({
2461
2461
  o.length > 0 && /* @__PURE__ */ s("div", { className: "space-y-1", children: [
2462
2462
  /* @__PURE__ */ e("div", { className: "text-xs font-medium text-green-600", children: "All Users" }),
2463
2463
  /* @__PURE__ */ e("div", { className: "grid grid-cols-1 gap-1", children: o.map((d, m) => {
2464
- const h = $e(
2464
+ const h = Ge(
2465
2465
  d.role,
2466
2466
  n("")
2467
2467
  );
@@ -2507,7 +2507,7 @@ function ad({
2507
2507
  (x) => x.id === o.tenantUserId
2508
2508
  )) == null ? void 0 : f.name) || "Unknown User", h = ((g = a.find(
2509
2509
  (x) => x.id === o.tenantUserId
2510
- )) == null ? void 0 : g.type) || "", u = $e(
2510
+ )) == null ? void 0 : g.type) || "", u = Ge(
2511
2511
  o.role,
2512
2512
  n(h)
2513
2513
  );
@@ -2540,7 +2540,7 @@ function ad({
2540
2540
  c.length > 0 && /* @__PURE__ */ s("div", { className: "space-y-1", children: [
2541
2541
  /* @__PURE__ */ e("div", { className: "text-xs font-medium text-green-600", children: "All Users" }),
2542
2542
  /* @__PURE__ */ e("div", { className: "grid grid-cols-1 gap-1", children: c.map((o, d) => {
2543
- const m = $e(
2543
+ const m = Ge(
2544
2544
  o.role,
2545
2545
  n("")
2546
2546
  );
@@ -2676,7 +2676,7 @@ function rd({
2676
2676
  }
2677
2677
  );
2678
2678
  }
2679
- function hl({
2679
+ function pl({
2680
2680
  existingShares: t,
2681
2681
  isInitialLoading: a,
2682
2682
  isSearching: n,
@@ -2688,7 +2688,7 @@ function hl({
2688
2688
  handleRemoveAccess: d,
2689
2689
  handleUpdateAccess: m
2690
2690
  }) {
2691
- const h = Wt(), u = tt(), f = Yt(), g = ai(), x = wt(), p = c || ((k) => {
2691
+ const h = Wt(), u = tt(), f = Yt(), g = si(), x = wt(), p = c || ((k) => {
2692
2692
  const O = h.some((M) => M.id === k), C = u.includes(k);
2693
2693
  O ? x.removeSelectedUser(k) : C ? x.removeUserFromRemove(k) : x.addSelectedUser({ id: k, role: "VIEWER" });
2694
2694
  }), T = o || x.updateSelectedUserRole, y = d || x.addUserToRemove, b = m || ((k, O, C) => {
@@ -2770,7 +2770,7 @@ function hl({
2770
2770
  ] })
2771
2771
  ] });
2772
2772
  }
2773
- function pl({
2773
+ function fl({
2774
2774
  shareType: t,
2775
2775
  onShareTypeChange: a,
2776
2776
  currentUser: n,
@@ -2851,7 +2851,7 @@ function ld({
2851
2851
  case "EDITOR":
2852
2852
  return /* @__PURE__ */ e(ur, { className: "h-4 w-4" });
2853
2853
  case "CONTRIBUTOR":
2854
- return /* @__PURE__ */ e(zc, { className: "h-4 w-4" });
2854
+ return /* @__PURE__ */ e(Lc, { className: "h-4 w-4" });
2855
2855
  default:
2856
2856
  return /* @__PURE__ */ e(sn, { className: "h-4 w-4" });
2857
2857
  }
@@ -2958,7 +2958,7 @@ function ld({
2958
2958
  }
2959
2959
  ) });
2960
2960
  }
2961
- function fl({
2961
+ function gl({
2962
2962
  currentUser: t,
2963
2963
  currentShare: a,
2964
2964
  isSharing: n,
@@ -3037,7 +3037,7 @@ function Ct(t) {
3037
3037
  users: o,
3038
3038
  isLoading: d,
3039
3039
  isError: m
3040
- } = od(c), h = si(r, n);
3040
+ } = od(c), h = ri(r, n);
3041
3041
  return {
3042
3042
  allUsers: o,
3043
3043
  isLoadingUsers: d,
@@ -3115,7 +3115,7 @@ function cd({
3115
3115
  const j = M, oe = !1;
3116
3116
  return n ? /* @__PURE__ */ s(ae, { children: [
3117
3117
  /* @__PURE__ */ e(
3118
- pl,
3118
+ fl,
3119
3119
  {
3120
3120
  shareType: b,
3121
3121
  onShareTypeChange: S,
@@ -3172,7 +3172,7 @@ function cd({
3172
3172
  }
3173
3173
  ),
3174
3174
  /* @__PURE__ */ e(
3175
- hl,
3175
+ pl,
3176
3176
  {
3177
3177
  existingShares: C,
3178
3178
  isInitialLoading: j,
@@ -3192,7 +3192,7 @@ function cd({
3192
3192
  }
3193
3193
  )
3194
3194
  ] }) : /* @__PURE__ */ e("div", { className: "mt-3", children: /* @__PURE__ */ e(
3195
- fl,
3195
+ gl,
3196
3196
  {
3197
3197
  currentUser: n,
3198
3198
  currentShare: U,
@@ -3220,7 +3220,7 @@ function $s({
3220
3220
  isRemoving: c = !1
3221
3221
  }) {
3222
3222
  var ee;
3223
- const { searchQuery: o, debouncedSearchQuery: d, setSearchQuery: m } = mr(), h = Wt(), u = tt(), f = Yt(), g = nt(), x = Xn(), p = Ga(), T = On(), y = wt(), { data: b, isLoading: w } = ri({
3223
+ const { searchQuery: o, debouncedSearchQuery: d, setSearchQuery: m } = mr(), h = Wt(), u = tt(), f = Yt(), g = nt(), x = Xn(), p = Ga(), T = On(), y = wt(), { data: b, isLoading: w } = li({
3224
3224
  enabled: (n == null ? void 0 : n.type) === "organization"
3225
3225
  }), [z, k] = P(
3226
3226
  (n == null ? void 0 : n.type) === "organization" ? "all_tenants" : "specific_tenant_users"
@@ -3296,7 +3296,7 @@ function $s({
3296
3296
  ), W = A || L, $ = D || E, Q = () => (n == null ? void 0 : n.type) === "tenant" || z === "all_tenants" ? !0 : T && (z === "specific_tenant_users" || z === "all_tenant_users");
3297
3297
  return /* @__PURE__ */ s(ae, { children: [
3298
3298
  $ && /* @__PURE__ */ e("div", { className: "flex items-center justify-center py-8", children: /* @__PURE__ */ s("div", { className: "text-center", children: [
3299
- /* @__PURE__ */ e(li, { className: "mx-auto mb-2 h-8 w-8 text-destructive" }),
3299
+ /* @__PURE__ */ e(ii, { className: "mx-auto mb-2 h-8 w-8 text-destructive" }),
3300
3300
  /* @__PURE__ */ e("p", { className: "mb-4 text-sm text-destructive", children: "Failed to load users or shares" }),
3301
3301
  /* @__PURE__ */ e(
3302
3302
  V,
@@ -3310,7 +3310,7 @@ function $s({
3310
3310
  ] }) }),
3311
3311
  !$ && n && /* @__PURE__ */ s("div", { className: "max-h-[500px] space-y-4 overflow-y-auto", children: [
3312
3312
  /* @__PURE__ */ e(
3313
- pl,
3313
+ fl,
3314
3314
  {
3315
3315
  shareType: z,
3316
3316
  onShareTypeChange: O,
@@ -3406,7 +3406,7 @@ function $s({
3406
3406
  }
3407
3407
  ),
3408
3408
  /* @__PURE__ */ e(
3409
- hl,
3409
+ pl,
3410
3410
  {
3411
3411
  existingShares: S,
3412
3412
  isInitialLoading: !!W,
@@ -3424,7 +3424,7 @@ function $s({
3424
3424
  }
3425
3425
  )
3426
3426
  ] }) : z === "all_tenant_users" || z === "all_tenants" ? /* @__PURE__ */ e("div", { className: "mt-6", children: /* @__PURE__ */ e(
3427
- fl,
3427
+ gl,
3428
3428
  {
3429
3429
  currentUser: n,
3430
3430
  currentShare: q,
@@ -3449,8 +3449,8 @@ function $s({
3449
3449
  ] })
3450
3450
  ] });
3451
3451
  }
3452
- const gl = () => {
3453
- const t = Ja(), a = nt(), n = Wt(), r = tt(), l = Yt(), i = On(), c = $a(), o = Ga(), d = Xn(), m = Pe(() => () => ii({
3452
+ const yl = () => {
3453
+ const t = Ja(), a = nt(), n = Wt(), r = tt(), l = Yt(), i = On(), c = $a(), o = Ga(), d = Xn(), m = Pe(() => () => oi({
3454
3454
  currentContext: t,
3455
3455
  currentMode: a,
3456
3456
  selectedUsers: n,
@@ -3470,7 +3470,7 @@ const gl = () => {
3470
3470
  c,
3471
3471
  o,
3472
3472
  d
3473
- ]), h = Pe(() => (f) => oi(f), []), u = Pe(() => {
3473
+ ]), h = Pe(() => (f) => ci(f), []), u = Pe(() => {
3474
3474
  if (!t || !a)
3475
3475
  return !1;
3476
3476
  switch (t) {
@@ -3525,7 +3525,7 @@ function Gs({
3525
3525
  nt(), Ja();
3526
3526
  const g = On();
3527
3527
  Kt();
3528
- const x = $a(), p = Ga(), T = Xn(), { buildShareData: y, validateShareData: b, isCurrentStateValid: w } = gl(), z = n || r || l, k = () => {
3528
+ const x = $a(), p = Ga(), T = Xn(), { buildShareData: y, validateShareData: b, isCurrentStateValid: w } = yl(), z = n || r || l, k = () => {
3529
3529
  var A, D, L, E;
3530
3530
  if (z) return "Updating...";
3531
3531
  if (o === "specific_users") {
@@ -3692,7 +3692,7 @@ function dd({
3692
3692
  nt(), Ja();
3693
3693
  const u = Xn();
3694
3694
  On();
3695
- const { buildShareData: f, validateShareData: g, isCurrentStateValid: x } = gl(), p = a || n || r, T = () => {
3695
+ const { buildShareData: f, validateShareData: g, isCurrentStateValid: x } = yl(), p = a || n || r, T = () => {
3696
3696
  if (p) return "Updating...";
3697
3697
  if (c === "specific_users") {
3698
3698
  if (d.length === 0 && m.length === 0 && h.length === 0)
@@ -3770,7 +3770,7 @@ function dd({
3770
3770
  )
3771
3771
  ] });
3772
3772
  }
3773
- function yl({
3773
+ function xl({
3774
3774
  resource: t,
3775
3775
  resourceType: a,
3776
3776
  isSharing: n,
@@ -3951,7 +3951,7 @@ function gt(t, a, n) {
3951
3951
  data: { shares: n }
3952
3952
  };
3953
3953
  }
3954
- function xl(t, a) {
3954
+ function vl(t, a) {
3955
3955
  const {
3956
3956
  resourceType: n,
3957
3957
  resourceId: r,
@@ -4213,7 +4213,7 @@ function xl(t, a) {
4213
4213
  break;
4214
4214
  }
4215
4215
  }
4216
- function vl(t, a, n, r) {
4216
+ function Nl(t, a, n, r) {
4217
4217
  var m, h, u, f, g, x;
4218
4218
  const {
4219
4219
  resourceType: l,
@@ -4325,7 +4325,7 @@ function ud(t, a, n) {
4325
4325
  existingShares: o,
4326
4326
  resetUserSelections: d
4327
4327
  };
4328
- xl(u, f);
4328
+ vl(u, f);
4329
4329
  },
4330
4330
  [
4331
4331
  t,
@@ -4343,7 +4343,7 @@ function ud(t, a, n) {
4343
4343
  existingShares: o,
4344
4344
  resetUserSelections: d
4345
4345
  };
4346
- vl(
4346
+ Nl(
4347
4347
  l,
4348
4348
  i || "",
4349
4349
  c || "",
@@ -4383,7 +4383,7 @@ function md(t, a, n) {
4383
4383
  existingShares: o,
4384
4384
  resetUserSelections: d
4385
4385
  };
4386
- xl(u, f);
4386
+ vl(u, f);
4387
4387
  },
4388
4388
  [
4389
4389
  t,
@@ -4401,7 +4401,7 @@ function md(t, a, n) {
4401
4401
  existingShares: o,
4402
4402
  resetUserSelections: d
4403
4403
  };
4404
- vl(
4404
+ Nl(
4405
4405
  l,
4406
4406
  i || "",
4407
4407
  c || "",
@@ -4425,7 +4425,7 @@ function md(t, a, n) {
4425
4425
  function hd() {
4426
4426
  const [t, a] = P(""), [n, r] = P(!1), [l, i] = P(""), [c, o] = P(""), [d, m] = P(!1), [h, u] = P(
4427
4427
  null
4428
- ), [f, g] = P(!1), [x, p] = P(null), [T, y] = P(null), { setIsDashboardEditing: b, setIsVisualEditing: w } = zt(), { handleEditLibraryVisual: z, handleAddLibraryVisual: k } = ci(), {
4428
+ ), [f, g] = P(!1), [x, p] = P(null), [T, y] = P(null), { setIsDashboardEditing: b, setIsVisualEditing: w } = zt(), { handleEditLibraryVisual: z, handleAddLibraryVisual: k } = di(), {
4429
4429
  resources: O,
4430
4430
  isLoading: C,
4431
4431
  isError: M,
@@ -4440,7 +4440,7 @@ function hd() {
4440
4440
  isSharing: F,
4441
4441
  isRemovingShares: B,
4442
4442
  isUpdatingShares: U
4443
- } = di(
4443
+ } = ui(
4444
4444
  () => {
4445
4445
  g(!1), p(null);
4446
4446
  },
@@ -4611,7 +4611,7 @@ function hd() {
4611
4611
  /* @__PURE__ */ e(oa, { className: "mx-auto mb-2 h-8 w-8 opacity-50" }),
4612
4612
  /* @__PURE__ */ e("p", { className: "text-sm", children: "No visuals found" })
4613
4613
  ] }) : ne.map((_) => /* @__PURE__ */ e(
4614
- Yc,
4614
+ Kc,
4615
4615
  {
4616
4616
  visual: _,
4617
4617
  onAddVisual: ue,
@@ -4630,7 +4630,7 @@ function hd() {
4630
4630
  _.id
4631
4631
  )) }) }),
4632
4632
  d && h && /* @__PURE__ */ e(
4633
- yl,
4633
+ xl,
4634
4634
  {
4635
4635
  resource: h,
4636
4636
  resourceType: qe.VISUAL,
@@ -4695,11 +4695,11 @@ function pd({
4695
4695
  formatDate: h
4696
4696
  }) {
4697
4697
  var z;
4698
- const { selectDashboard: u } = ir(), f = ui(t.id), [g, x] = P(!1), [p, T] = P(!1);
4698
+ const { selectDashboard: u } = ir(), f = mi(t.id), [g, x] = P(!1), [p, T] = P(!1);
4699
4699
  Te(() => {
4700
4700
  n ? (x(!0), T(!0)) : p && (x(!1), T(!1));
4701
4701
  }, [n, p]);
4702
- const y = () => t.ownership.isOwner ? t.ownership.status === "private" ? /* @__PURE__ */ e(Xr, { className: "h-3 w-3 text-purple-500" }) : /* @__PURE__ */ e(ot, { className: "h-3.5 w-3.5 text-blue-600" }) : /* @__PURE__ */ e(bt, { className: "h-3.5 w-3.5 text-slate-500" }), b = () => /* @__PURE__ */ e(mi, { className: "h-4 w-4 text-slate-400" }), w = () => {
4702
+ const y = () => t.ownership.isOwner ? t.ownership.status === "private" ? /* @__PURE__ */ e(Xr, { className: "h-3 w-3 text-purple-500" }) : /* @__PURE__ */ e(ot, { className: "h-3.5 w-3.5 text-blue-600" }) : /* @__PURE__ */ e(bt, { className: "h-3.5 w-3.5 text-slate-500" }), b = () => /* @__PURE__ */ e(hi, { className: "h-4 w-4 text-slate-400" }), w = () => {
4703
4703
  u(t), i(t.id);
4704
4704
  };
4705
4705
  return /* @__PURE__ */ s(
@@ -4866,7 +4866,7 @@ function gd(t) {
4866
4866
  isUpdatingShares: R,
4867
4867
  shareResource: F,
4868
4868
  removeResourceShares: B
4869
- } = hi(
4869
+ } = pi(
4870
4870
  () => {
4871
4871
  x(!1), T(null), w && z(w);
4872
4872
  },
@@ -5021,7 +5021,7 @@ function gd(t) {
5021
5021
  }
5022
5022
  ) }),
5023
5023
  /* @__PURE__ */ e("div", { className: "mb-4 flex flex-1 flex-col", children: /* @__PURE__ */ e("div", { className: "flex flex-1 basis-0 flex-col gap-2 overflow-y-auto p-1", children: ne.length === 0 ? /* @__PURE__ */ s("div", { className: "py-8 text-center text-muted-foreground", children: [
5024
- /* @__PURE__ */ e(fc, { className: "mx-auto mb-2 h-8 w-8 opacity-50" }),
5024
+ /* @__PURE__ */ e(gc, { className: "mx-auto mb-2 h-8 w-8 opacity-50" }),
5025
5025
  /* @__PURE__ */ e("p", { className: "text-sm", children: "No dashboards found" })
5026
5026
  ] }) : ne.map((X) => /* @__PURE__ */ e(
5027
5027
  pd,
@@ -5046,7 +5046,7 @@ function gd(t) {
5046
5046
  X.id
5047
5047
  )) }) }),
5048
5048
  m && u && /* @__PURE__ */ e(
5049
- yl,
5049
+ xl,
5050
5050
  {
5051
5051
  resource: u,
5052
5052
  resourceType: qe.DASHBOARD,
@@ -5100,21 +5100,24 @@ function yd({
5100
5100
  onClose: a,
5101
5101
  className: n
5102
5102
  }) {
5103
- Z((u) => u.dashboard);
5103
+ Z((f) => f.dashboard);
5104
5104
  const { setDashboard: r, addSheet: l } = Z(
5105
- (u) => u.actions
5105
+ (f) => f.actions
5106
5106
  ), {
5107
5107
  currentUser: i
5108
5108
  } = da(), c = i, [o, d] = Ha(
5109
5109
  "resource-management-active-tab",
5110
5110
  "dashboards"
5111
- ), m = (u) => {
5112
- }, h = (u) => {
5113
- console.log("Editing dashboard:", u);
5111
+ ), m = ml(a, {
5112
+ enabled: t
5113
+ }), h = (f) => {
5114
+ }, u = (f) => {
5115
+ console.log("Editing dashboard:", f);
5114
5116
  };
5115
5117
  return /* @__PURE__ */ e(Ye, { children: /* @__PURE__ */ s(
5116
5118
  "div",
5117
5119
  {
5120
+ ref: m,
5118
5121
  className: G(
5119
5122
  "absolute inset-y-0 left-0 z-[51] flex w-96 flex-col border-r bg-background shadow-lg transition-transform duration-300 ease-in-out",
5120
5123
  t ? "translate-x-0" : "-translate-x-full",
@@ -5124,14 +5127,14 @@ function yd({
5124
5127
  /* @__PURE__ */ s("div", { className: "flex items-center justify-between p-4", children: [
5125
5128
  /* @__PURE__ */ e("div", { className: "flex items-center gap-3", children: c && /* @__PURE__ */ e(Ye, { children: /* @__PURE__ */ s(Fe, { children: [
5126
5129
  /* @__PURE__ */ e(Ve, { asChild: !0, children: /* @__PURE__ */ s("div", { className: "flex items-center gap-2 rounded-lg border border-muted bg-muted/30 px-2 py-1", children: [
5127
- /* @__PURE__ */ s(pi, { className: "h-5 w-5", children: [
5130
+ /* @__PURE__ */ s(fi, { className: "h-5 w-5", children: [
5128
5131
  /* @__PURE__ */ e(
5129
- fi,
5132
+ gi,
5130
5133
  {
5131
5134
  alt: c.name
5132
5135
  }
5133
5136
  ),
5134
- /* @__PURE__ */ e(gi, { className: "text-xs", children: c.name.charAt(0).toUpperCase() })
5137
+ /* @__PURE__ */ e(yi, { className: "text-xs", children: c.name.charAt(0).toUpperCase() })
5135
5138
  ] }),
5136
5139
  /* @__PURE__ */ e("span", { className: "text-xs font-medium", children: c.name })
5137
5140
  ] }) }),
@@ -5175,8 +5178,8 @@ function yd({
5175
5178
  /* @__PURE__ */ e(yt, { value: "dashboards", className: "flex-1", children: /* @__PURE__ */ e(
5176
5179
  gd,
5177
5180
  {
5178
- onLoadDashboard: m,
5179
- onEditDashboard: h
5181
+ onLoadDashboard: h,
5182
+ onEditDashboard: u
5180
5183
  }
5181
5184
  ) }),
5182
5185
  /* @__PURE__ */ e(yt, { value: "visuals", className: "flex-1", children: /* @__PURE__ */ e(hd, {}) })
@@ -5265,17 +5268,17 @@ function xd() {
5265
5268
  tooltip: "Manage Dashboards",
5266
5269
  onClick: () => u(!0),
5267
5270
  className: "h-7 p-2",
5268
- children: /* @__PURE__ */ e(vc, { className: "h-4 w-4" })
5271
+ children: /* @__PURE__ */ e(Nc, { className: "h-4 w-4" })
5269
5272
  }
5270
5273
  ),
5271
5274
  !g && /* @__PURE__ */ e(K, { children: E })
5272
5275
  ] }),
5273
5276
  /* @__PURE__ */ s("div", { className: "flex gap-2", children: [
5274
5277
  !1,
5275
- !g && /* @__PURE__ */ e(Jc, {}),
5276
5278
  !g && /* @__PURE__ */ e(Hc, {}),
5277
- i && !g && S && /* @__PURE__ */ e(qc, {}),
5278
- !g && S && /* @__PURE__ */ e($c, {}),
5279
+ !g && /* @__PURE__ */ e(Wc, {}),
5280
+ i && !g && S && /* @__PURE__ */ e($c, {}),
5281
+ !g && S && /* @__PURE__ */ e(Gc, {}),
5279
5282
  i && !g && /* @__PURE__ */ s(
5280
5283
  V,
5281
5284
  {
@@ -5318,7 +5321,7 @@ function xd() {
5318
5321
  disabled: d,
5319
5322
  onClick: L,
5320
5323
  size: "sm",
5321
- children: /* @__PURE__ */ e(yi, { className: "h-4 w-4" })
5324
+ children: /* @__PURE__ */ e(xi, { className: "h-4 w-4" })
5322
5325
  }
5323
5326
  ),
5324
5327
  !x && !g && i && /* @__PURE__ */ e(
@@ -5454,15 +5457,15 @@ function nn({
5454
5457
  const u = r ? "Loading..." : l ? "Error" : n;
5455
5458
  function f() {
5456
5459
  if (t === "Connection")
5457
- return /* @__PURE__ */ e(Ic, { className: "size-4" });
5460
+ return /* @__PURE__ */ e(Ac, { className: "size-4" });
5458
5461
  if (t === "Database")
5459
5462
  return /* @__PURE__ */ e(on, { className: "size-4" });
5460
5463
  if (t === "Schema")
5461
- return /* @__PURE__ */ e(Oc, { className: "size-4" });
5464
+ return /* @__PURE__ */ e(Ec, { className: "size-4" });
5462
5465
  if (t === "Table")
5463
5466
  return /* @__PURE__ */ e(ca, { className: "size-4" });
5464
5467
  if (t === "Model")
5465
- return /* @__PURE__ */ e(ec, { className: "size-4" });
5468
+ return /* @__PURE__ */ e(tc, { className: "size-4" });
5466
5469
  }
5467
5470
  function g() {
5468
5471
  return /* @__PURE__ */ s(pe, { disabled: m, value: u, onValueChange: c, children: [
@@ -5538,8 +5541,8 @@ function Nd({ column: t }) {
5538
5541
  h(y);
5539
5542
  const w = kr(
5540
5543
  y,
5541
- Je(l || ""),
5542
- Je(r),
5544
+ He(l || ""),
5545
+ He(r),
5543
5546
  b || "",
5544
5547
  m,
5545
5548
  i || ""
@@ -5604,7 +5607,7 @@ function Nd({ column: t }) {
5604
5607
  }
5605
5608
  function ms({ column: t }) {
5606
5609
  return /* @__PURE__ */ s(Fe, { children: [
5607
- /* @__PURE__ */ e(xi, { className: "shrink-0", asChild: !0, children: rt(t.data_type) ? /* @__PURE__ */ e(vi, { className: "size-3 text-muted-foreground" }) : Rt(t.data_type) ? /* @__PURE__ */ e(os, { className: "size-3 text-muted-foreground" }) : lt(t.data_type) ? /* @__PURE__ */ e(Qn, { className: "size-3 text-muted-foreground" }) : Ni(t.data_type) ? /* @__PURE__ */ e(al, { className: "size-3 text-muted-foreground" }) : t.data_type.startsWith("json") ? /* @__PURE__ */ e(tc, { className: "size-3 text-muted-foreground" }) : /* @__PURE__ */ e(bi, { className: "size-3 text-muted-foreground" }) }),
5610
+ /* @__PURE__ */ e(vi, { className: "shrink-0", asChild: !0, children: rt(t.data_type) ? /* @__PURE__ */ e(Ni, { className: "size-3 text-muted-foreground" }) : Rt(t.data_type) ? /* @__PURE__ */ e(os, { className: "size-3 text-muted-foreground" }) : lt(t.data_type) ? /* @__PURE__ */ e(Qn, { className: "size-3 text-muted-foreground" }) : bi(t.data_type) ? /* @__PURE__ */ e(al, { className: "size-3 text-muted-foreground" }) : t.data_type.startsWith("json") ? /* @__PURE__ */ e(nc, { className: "size-3 text-muted-foreground" }) : /* @__PURE__ */ e(Ci, { className: "size-3 text-muted-foreground" }) }),
5608
5611
  /* @__PURE__ */ e(je, { children: /* @__PURE__ */ e("p", { className: "text-xs", children: t.data_type }) })
5609
5612
  ] });
5610
5613
  }
@@ -5627,7 +5630,7 @@ function fa({
5627
5630
  );
5628
5631
  }
5629
5632
  function bd({ id: t, children: a, type: n = "column" }) {
5630
- const { attributes: r, listeners: l, setNodeRef: i, transform: c } = Ci({
5633
+ const { attributes: r, listeners: l, setNodeRef: i, transform: c } = wi({
5631
5634
  id: t,
5632
5635
  data: { type: n }
5633
5636
  // Tag as a column from the left-hand side
@@ -5722,7 +5725,7 @@ const ga = {
5722
5725
  id: "__placeholder__",
5723
5726
  role: "filter",
5724
5727
  type: "string"
5725
- }, Nl = {
5728
+ }, bl = {
5726
5729
  id: "__placeholder__"
5727
5730
  }, Et = "droppable-group-by", It = "droppable-metrics", At = "droppable-pivot-by", Jn = "sortable-group-by", Ia = "sortable-metrics", Hn = "sortable-pivot-by", Aa = "droppable-filters", Ra = "sortable-filters", hs = "sortable-order-by";
5728
5731
  function wd() {
@@ -5758,14 +5761,14 @@ function wd() {
5758
5761
  setPreviewMetricColumns: m,
5759
5762
  setPreviewFilterColumns: h,
5760
5763
  setPreviewPivotColumns: u
5761
- } = wi(), {
5764
+ } = Si(), {
5762
5765
  setGroupByColumns: f,
5763
5766
  setMetricColumns: g,
5764
5767
  setFilterColumns: x,
5765
5768
  setOrderByColumns: p,
5766
5769
  setPivotByColumns: T
5767
5770
  } = se(), { columns: y } = Dr(), { formattedTableName: b } = at(), w = cn(
5768
- ht(Si, {
5771
+ ht(ki, {
5769
5772
  activationConstraint: {
5770
5773
  distance: 1
5771
5774
  }
@@ -5861,7 +5864,7 @@ function wd() {
5861
5864
  function C(N, v = "SUM") {
5862
5865
  const { column_name: R, data_type: F } = N, B = [...n], U = t !== null ? t : n.length, j = {
5863
5866
  ...N,
5864
- id: Ge(R),
5867
+ id: Je(R),
5865
5868
  // Unique ID
5866
5869
  name: R,
5867
5870
  label: pn(R, v),
@@ -5878,14 +5881,14 @@ function wd() {
5878
5881
  let B;
5879
5882
  v ? B = {
5880
5883
  ...N,
5881
- id: Ge(N.column_name),
5884
+ id: Je(N.column_name),
5882
5885
  // Unique ID
5883
5886
  name: N.column_name,
5884
5887
  type: N.data_type,
5885
5888
  role: "groupby"
5886
5889
  } : B = {
5887
5890
  ...N,
5888
- id: Ge(N.column_name),
5891
+ id: Je(N.column_name),
5889
5892
  // Unique ID
5890
5893
  name: N.column_name,
5891
5894
  type: N.data_type,
@@ -5901,14 +5904,14 @@ function wd() {
5901
5904
  let B;
5902
5905
  v ? B = {
5903
5906
  ...N,
5904
- id: Ge(N.column_name),
5907
+ id: Je(N.column_name),
5905
5908
  // Unique ID
5906
5909
  name: N.column_name,
5907
5910
  type: N.data_type,
5908
5911
  role: "groupby"
5909
5912
  } : B = {
5910
5913
  ...N,
5911
- id: Ge(N.column_name),
5914
+ id: Je(N.column_name),
5912
5915
  // Unique ID
5913
5916
  name: N.column_name,
5914
5917
  type: N.data_type,
@@ -5920,14 +5923,14 @@ function wd() {
5920
5923
  function A(N) {
5921
5924
  const v = [...r], R = t !== null ? t : r.length, F = {
5922
5925
  ...N,
5923
- id: Ge(N.column_name),
5926
+ id: Je(N.column_name),
5924
5927
  // Unique ID
5925
5928
  name: N.column_name,
5926
5929
  type: N.data_type,
5927
5930
  sql: Sa(
5928
5931
  N.data_type,
5929
5932
  b,
5930
- Je(N.column_name)
5933
+ He(N.column_name)
5931
5934
  ),
5932
5935
  role: "filter"
5933
5936
  };
@@ -6001,7 +6004,7 @@ function wd() {
6001
6004
  sensors: w
6002
6005
  };
6003
6006
  }
6004
- function Ge(t) {
6007
+ function Je(t) {
6005
6008
  return `${t}-${Gt()}`;
6006
6009
  }
6007
6010
  function pn(t, a) {
@@ -6086,8 +6089,8 @@ function Sd({
6086
6089
  (j) => j.id === u
6087
6090
  )) == null ? void 0 : R.name, U = kr(
6088
6091
  F,
6089
- Je(t),
6090
- Je(a),
6092
+ He(t),
6093
+ He(a),
6091
6094
  B || "",
6092
6095
  k,
6093
6096
  d || ""
@@ -6100,7 +6103,7 @@ function Sd({
6100
6103
  const F = {
6101
6104
  ...v,
6102
6105
  role: "groupby",
6103
- id: Ge(v.column_name),
6106
+ id: Je(v.column_name),
6104
6107
  name: v.column_name,
6105
6108
  type: v.data_type
6106
6109
  };
@@ -6109,7 +6112,7 @@ function Sd({
6109
6112
  const F = {
6110
6113
  ...v,
6111
6114
  role: "metric",
6112
- id: Ge(v.column_name),
6115
+ id: Je(v.column_name),
6113
6116
  name: v.column_name,
6114
6117
  label: pn(v.column_name, "COUNT"),
6115
6118
  type: v.data_type,
@@ -6121,7 +6124,7 @@ function Sd({
6121
6124
  const F = {
6122
6125
  ...v,
6123
6126
  role: "groupby",
6124
- id: Ge(v.column_name),
6127
+ id: Je(v.column_name),
6125
6128
  name: v.column_name,
6126
6129
  type: v.data_type,
6127
6130
  label: Ht(v.column_name, "month"),
@@ -6133,7 +6136,7 @@ function Sd({
6133
6136
  const F = {
6134
6137
  ...v,
6135
6138
  role: "metric",
6136
- id: Ge(v.column_name),
6139
+ id: Je(v.column_name),
6137
6140
  name: v.column_name,
6138
6141
  label: pn(v.column_name, "SUM"),
6139
6142
  type: v.data_type,
@@ -6255,7 +6258,7 @@ function Sd({
6255
6258
  variant: "secondary",
6256
6259
  className: "flex",
6257
6260
  children: [
6258
- r !== "Success" ? /* @__PURE__ */ e(De, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" }) : /* @__PURE__ */ e(Sc, { className: "mr-2 size-4" }),
6261
+ r !== "Success" ? /* @__PURE__ */ e(De, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" }) : /* @__PURE__ */ e(kc, { className: "mr-2 size-4" }),
6259
6262
  "Top 10"
6260
6263
  ]
6261
6264
  }
@@ -6305,7 +6308,7 @@ function Sd({
6305
6308
  )
6306
6309
  ] });
6307
6310
  }
6308
- function bl({
6311
+ function Cl({
6309
6312
  ColumnsComponent: t,
6310
6313
  type: a
6311
6314
  }) {
@@ -6393,9 +6396,9 @@ function bl({
6393
6396
  function _() {
6394
6397
  if (r && !R && (!c || c === "none") && (!i || i === "none"))
6395
6398
  return /* @__PURE__ */ s("div", { className: "grid grid-cols-3", children: [
6396
- /* @__PURE__ */ e("div", { className: "col-span-1 grid place-items-center", children: /* @__PURE__ */ e(He, {}) }),
6399
+ /* @__PURE__ */ e("div", { className: "col-span-1 grid place-items-center", children: /* @__PURE__ */ e(We, {}) }),
6397
6400
  /* @__PURE__ */ e("div", { className: "col-span-1 grid place-items-center", children: /* @__PURE__ */ e(K, { children: "OR" }) }),
6398
- /* @__PURE__ */ e("div", { className: "col-span-1 grid place-items-center", children: /* @__PURE__ */ e(He, {}) })
6401
+ /* @__PURE__ */ e("div", { className: "col-span-1 grid place-items-center", children: /* @__PURE__ */ e(We, {}) })
6399
6402
  ] });
6400
6403
  }
6401
6404
  function re() {
@@ -6505,7 +6508,7 @@ function bl({
6505
6508
  variant: "secondary",
6506
6509
  className: "group flex items-center gap-2 rounded-full",
6507
6510
  children: [
6508
- /* @__PURE__ */ e(Dc, { className: "size-4" }),
6511
+ /* @__PURE__ */ e(Mc, { className: "size-4" }),
6509
6512
  /* @__PURE__ */ e("span", { className: "hidden group-hover:block", children: "Help" })
6510
6513
  ]
6511
6514
  }
@@ -6515,7 +6518,7 @@ function bl({
6515
6518
  }
6516
6519
  );
6517
6520
  }
6518
- function Cl({
6521
+ function wl({
6519
6522
  error: t,
6520
6523
  className: a = "",
6521
6524
  textClassName: n = "",
@@ -6574,7 +6577,7 @@ function Cl({
6574
6577
  }
6575
6578
  );
6576
6579
  }
6577
- function wl({
6580
+ function Sl({
6578
6581
  sql: t,
6579
6582
  error: a,
6580
6583
  onDebugWithAssistant: n
@@ -6587,11 +6590,11 @@ function wl({
6587
6590
  }
6588
6591
  return /* @__PURE__ */ e("div", { className: "flex justify-between space-x-4", children: /* @__PURE__ */ s("div", { className: "flex grow flex-col space-y-2", children: [
6589
6592
  /* @__PURE__ */ s(et, { className: "max-h-[250px] min-h-0 overflow-scroll text-xs leading-relaxed text-foreground/80", children: [
6590
- a && /* @__PURE__ */ e(Cl, { error: a }),
6591
- t && /* @__PURE__ */ e("div", { className: "flex flex-col space-y-1.5", children: /* @__PURE__ */ e("div", { className: "rounded-md", children: /* @__PURE__ */ e(ki, { code: t, language: "sql" }) }) })
6593
+ a && /* @__PURE__ */ e(wl, { error: a }),
6594
+ t && /* @__PURE__ */ e("div", { className: "flex flex-col space-y-1.5", children: /* @__PURE__ */ e("div", { className: "rounded-md", children: /* @__PURE__ */ e(Ti, { code: t, language: "sql" }) }) })
6592
6595
  ] }),
6593
6596
  !r && t && /* @__PURE__ */ s(V, { onClick: o, variant: "secondary", size: "sm", children: [
6594
- /* @__PURE__ */ e(uc, { className: "mr-2 h-4 w-4" }),
6597
+ /* @__PURE__ */ e(mc, { className: "mr-2 h-4 w-4" }),
6595
6598
  "View in SQL Editor"
6596
6599
  ] }),
6597
6600
  a && n && /* @__PURE__ */ s(
@@ -6601,14 +6604,14 @@ function wl({
6601
6604
  size: "sm",
6602
6605
  variant: "secondary",
6603
6606
  children: [
6604
- /* @__PURE__ */ e(xc, { className: "mr-2 h-4 w-4" }),
6607
+ /* @__PURE__ */ e(vc, { className: "mr-2 h-4 w-4" }),
6605
6608
  "Debug with Assistant"
6606
6609
  ]
6607
6610
  }
6608
6611
  )
6609
6612
  ] }) });
6610
6613
  }
6611
- function Sl({
6614
+ function kl({
6612
6615
  sql: t,
6613
6616
  error: a,
6614
6617
  onDebugWithAssistant: n
@@ -6616,7 +6619,7 @@ function Sl({
6616
6619
  return /* @__PURE__ */ s(Ba, { openDelay: a ? 0 : 500, children: [
6617
6620
  /* @__PURE__ */ e(Ua, { asChild: !0, children: /* @__PURE__ */ e(V, { variant: "link", className: "h-5 p-0", children: a ? /* @__PURE__ */ e(Qr, { className: "h-4 w-4 text-red-500" }) : /* @__PURE__ */ e(Tn, { className: "h-4 w-4 text-muted-foreground" }) }) }),
6618
6621
  /* @__PURE__ */ e(qa, { align: "start", className: "flex w-[600px]", children: /* @__PURE__ */ e(
6619
- wl,
6622
+ Sl,
6620
6623
  {
6621
6624
  sql: t,
6622
6625
  error: a,
@@ -6625,13 +6628,13 @@ function Sl({
6625
6628
  ) })
6626
6629
  ] });
6627
6630
  }
6628
- var kl = {
6631
+ var Tl = {
6629
6632
  color: void 0,
6630
6633
  size: void 0,
6631
6634
  className: void 0,
6632
6635
  style: void 0,
6633
6636
  attr: void 0
6634
- }, Js = ke.createContext && /* @__PURE__ */ ke.createContext(kl), kd = ["attr", "size", "title"];
6637
+ }, Js = ke.createContext && /* @__PURE__ */ ke.createContext(Tl), kd = ["attr", "size", "title"];
6635
6638
  function Td(t, a) {
6636
6639
  if (t == null) return {};
6637
6640
  var n = Dd(t, a), r, l;
@@ -6700,15 +6703,15 @@ function Ed(t, a) {
6700
6703
  }
6701
6704
  return (a === "string" ? String : Number)(t);
6702
6705
  }
6703
- function Tl(t) {
6706
+ function Dl(t) {
6704
6707
  return t && t.map((a, n) => /* @__PURE__ */ ke.createElement(a.tag, Yn({
6705
6708
  key: n
6706
- }, a.attr), Tl(a.child)));
6709
+ }, a.attr), Dl(a.child)));
6707
6710
  }
6708
6711
  function Bt(t) {
6709
6712
  return (a) => /* @__PURE__ */ ke.createElement(Id, Wn({
6710
6713
  attr: Yn({}, t.attr)
6711
- }, a), Tl(t.child));
6714
+ }, a), Dl(t.child));
6712
6715
  }
6713
6716
  function Id(t) {
6714
6717
  var a = (n) => {
@@ -6731,13 +6734,13 @@ function Id(t) {
6731
6734
  xmlns: "http://www.w3.org/2000/svg"
6732
6735
  }), i && /* @__PURE__ */ ke.createElement("title", null, i), t.children);
6733
6736
  };
6734
- return Js !== void 0 ? /* @__PURE__ */ ke.createElement(Js.Consumer, null, (n) => a(n)) : a(kl);
6737
+ return Js !== void 0 ? /* @__PURE__ */ ke.createElement(Js.Consumer, null, (n) => a(n)) : a(Tl);
6735
6738
  }
6736
6739
  function Ad(t) {
6737
6740
  return Bt({ attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M439.8 200.5c-7.7-30.9-22.3-54.2-53.4-54.2h-40.1v47.4c0 36.8-31.2 67.8-66.8 67.8H172.7c-29.2 0-53.4 25-53.4 54.3v101.8c0 29 25.2 46 53.4 54.3 33.8 9.9 66.3 11.7 106.8 0 26.9-7.8 53.4-23.5 53.4-54.3v-40.7H226.2v-13.6h160.2c31.1 0 42.6-21.7 53.4-54.2 11.2-33.5 10.7-65.7 0-108.6zM286.2 404c11.1 0 20.1 9.1 20.1 20.3 0 11.3-9 20.4-20.1 20.4-11 0-20.1-9.2-20.1-20.4.1-11.3 9.1-20.3 20.1-20.3zM167.8 248.1h106.8c29.7 0 53.4-24.5 53.4-54.3V91.9c0-29-24.4-50.7-53.4-55.6-35.8-5.9-74.7-5.6-106.8.1-45.2 8-53.4 24.7-53.4 55.6v40.7h106.9v13.6h-147c-31.1 0-58.3 18.7-66.8 54.2-9.8 40.7-10.2 66.1 0 108.6 7.6 31.6 25.7 54.2 56.8 54.2H101v-48.8c0-35.3 30.5-66.4 66.8-66.4zm-6.7-142.6c-11.1 0-20.1-9.1-20.1-20.3.1-11.3 9-20.4 20.1-20.4 11 0 20.1 9.2 20.1 20.4s-9 20.3-20.1 20.3z" }, child: [] }] })(t);
6738
6741
  }
6739
- function Dl(t) {
6740
- const { theme: a } = Ti(), n = Z((p) => p.theme), r = I((p) => p.frame), l = I((p) => p.card), i = I((p) => p.activeTabCardId), c = Di(), { refetch: o } = Le(l), { updateCardTab: d, setRunSql: m } = se(), h = Ke(), u = Ke({}), f = r.cards.find((p) => p.id === i), g = xe(() => {
6742
+ function Ml(t) {
6743
+ const { theme: a } = Di(), n = Z((p) => p.theme), r = I((p) => p.frame), l = I((p) => p.card), i = I((p) => p.activeTabCardId), c = Mi(), { refetch: o } = Le(l), { updateCardTab: d, setRunSql: m } = se(), h = Ke(), u = Ke({}), f = r.cards.find((p) => p.id === i), g = xe(() => {
6741
6744
  let p = "";
6742
6745
  return t === "python" && (p = (f == null ? void 0 : f.python) || Er), t === "sql" && (p = (f == null ? void 0 : f.sql) || ""), p;
6743
6746
  }, [t, f]);
@@ -6772,7 +6775,7 @@ function Dl(t) {
6772
6775
  inherit: !0,
6773
6776
  rules: [],
6774
6777
  colors: {
6775
- "editor.background": T === "light" ? "#ffffff" : Mi("240 10% 10%")
6778
+ "editor.background": T === "light" ? "#ffffff" : Oi("240 10% 10%")
6776
6779
  // 'editor.background':
6777
6780
  // activeTheme === 'light'
6778
6781
  // ? '#ffffff'
@@ -6798,9 +6801,9 @@ function Dl(t) {
6798
6801
  return { handleEditorDidMount: x };
6799
6802
  }
6800
6803
  function Rd() {
6801
- const t = I((c) => c.card.sql), a = I((c) => c.sqlGen), { setCardSql: n, setSqlGen: r } = se(), { handleEditorDidMount: l } = Dl("sql");
6804
+ const t = I((c) => c.card.sql), a = I((c) => c.sqlGen), { setCardSql: n, setSqlGen: r } = se(), { handleEditorDidMount: l } = Ml("sql");
6802
6805
  function i(c) {
6803
- n(c), Oi(a) || r({});
6806
+ n(c), Ei(a) || r({});
6804
6807
  }
6805
6808
  return /* @__PURE__ */ s("div", { className: "relative h-full w-full", children: [
6806
6809
  !t && /* @__PURE__ */ e("div", { className: "pointer-events-none absolute left-[65px] top-3 z-10 font-mono text-sm text-muted-foreground", children: "Write your SQL here" }),
@@ -6830,7 +6833,7 @@ function Rd() {
6830
6833
  ] });
6831
6834
  }
6832
6835
  function zd() {
6833
- const t = I((l) => l.card.python), { setCardPython: a } = se(), { handleEditorDidMount: n } = Dl("python");
6836
+ const t = I((l) => l.card.python), { setCardPython: a } = se(), { handleEditorDidMount: n } = Ml("python");
6834
6837
  function r(l) {
6835
6838
  a(l);
6836
6839
  }
@@ -6885,7 +6888,7 @@ function Ld({ jsonString: t }) {
6885
6888
  );
6886
6889
  }
6887
6890
  function _d() {
6888
- const t = Ei(), [a, n] = P(!1), [r, l] = P(!1);
6891
+ const t = Ii(), [a, n] = P(!1), [r, l] = P(!1);
6889
6892
  I((j) => j.frame);
6890
6893
  const i = I((j) => j.card);
6891
6894
  I((j) => j.isShowingVisual), I(
@@ -6905,7 +6908,7 @@ function _d() {
6905
6908
  }), d = I((j) => {
6906
6909
  var oe;
6907
6910
  return (oe = j == null ? void 0 : j.card) == null ? void 0 : oe.python;
6908
- }), { sheetFilterValues: m } = Ii(), {
6911
+ }), { sheetFilterValues: m } = Ai(), {
6909
6912
  setCardCustomCfg: h,
6910
6913
  setQueryResultColumns: u,
6911
6914
  setCardSql: f,
@@ -7072,13 +7075,13 @@ ${d}` : ""}
7072
7075
  className: "h-8 shrink-0",
7073
7076
  size: "sm",
7074
7077
  children: [
7075
- M || S ? /* @__PURE__ */ e(De, { className: "mr-2 h-4 w-4 animate-spin" }) : /* @__PURE__ */ e(Ai, { className: "mr-2 h-4 w-4" }),
7078
+ M || S ? /* @__PURE__ */ e(De, { className: "mr-2 h-4 w-4 animate-spin" }) : /* @__PURE__ */ e(Ri, { className: "mr-2 h-4 w-4" }),
7076
7079
  "Run"
7077
7080
  ]
7078
7081
  }
7079
7082
  ),
7080
7083
  /* @__PURE__ */ e(
7081
- Sl,
7084
+ kl,
7082
7085
  {
7083
7086
  sql: C == null ? void 0 : C.sql,
7084
7087
  error: v,
@@ -7148,18 +7151,18 @@ function Fd({ data: t }) {
7148
7151
  onClick: () => d.toggleSorting(d.getIsSorted() === "asc"),
7149
7152
  children: [
7150
7153
  o,
7151
- m === "asc" ? /* @__PURE__ */ e(Ri, { className: "ml-2 h-5 w-5" }) : m === "desc" ? /* @__PURE__ */ e(zi, { className: "ml-2 h-5 w-5" }) : null
7154
+ m === "asc" ? /* @__PURE__ */ e(zi, { className: "ml-2 h-5 w-5" }) : m === "desc" ? /* @__PURE__ */ e(Li, { className: "ml-2 h-5 w-5" }) : null
7152
7155
  ]
7153
7156
  }
7154
7157
  ) });
7155
7158
  }
7156
- })), i = Li({
7159
+ })), i = _i({
7157
7160
  data: t,
7158
7161
  columns: l,
7159
- getCoreRowModel: Bi(),
7160
- getPaginationRowModel: ji(),
7162
+ getCoreRowModel: Ui(),
7163
+ getPaginationRowModel: Bi(),
7161
7164
  onSortingChange: n,
7162
- getSortedRowModel: Vi(),
7165
+ getSortedRowModel: ji(),
7163
7166
  manualPagination: !0,
7164
7167
  state: {
7165
7168
  sorting: a
@@ -7167,8 +7170,8 @@ function Fd({ data: t }) {
7167
7170
  });
7168
7171
  return /* @__PURE__ */ s(zn, { className: "grow overflow-auto font-mono text-xs text-foreground/95", children: [
7169
7172
  /* @__PURE__ */ s("table", { className: "w-full", children: [
7170
- /* @__PURE__ */ e(_i, { className: "sticky top-0 z-50 h-0 bg-muted", children: i.getHeaderGroups().map((o) => /* @__PURE__ */ e(ha, { className: "", children: o.headers.map((d) => /* @__PURE__ */ e(
7171
- Fi,
7173
+ /* @__PURE__ */ e(Fi, { className: "sticky top-0 z-50 h-0 bg-muted", children: i.getHeaderGroups().map((o) => /* @__PURE__ */ e(ha, { className: "", children: o.headers.map((d) => /* @__PURE__ */ e(
7174
+ Pi,
7172
7175
  {
7173
7176
  className: "h-11 font-semibold text-foreground",
7174
7177
  children: d.isPlaceholder ? null : As(
@@ -7178,7 +7181,7 @@ function Fd({ data: t }) {
7178
7181
  },
7179
7182
  d.id
7180
7183
  )) }, o.id)) }),
7181
- /* @__PURE__ */ e(Pi, { children: (c = i.getRowModel().rows) != null && c.length ? i.getRowModel().rows.map((o) => /* @__PURE__ */ e(
7184
+ /* @__PURE__ */ e(Vi, { children: (c = i.getRowModel().rows) != null && c.length ? i.getRowModel().rows.map((o) => /* @__PURE__ */ e(
7182
7185
  ha,
7183
7186
  {
7184
7187
  className: "h-11 whitespace-nowrap py-2",
@@ -7195,7 +7198,7 @@ function Pd({ card: t }) {
7195
7198
  var b, w, z, k, O, C, M, S, A, D, L;
7196
7199
  const [a, n] = P(!1), [r, l] = P(
7197
7200
  []
7198
- ), { authToken: i } = Qe(), c = Ui(i == null ? void 0 : i.accessToken), o = Z((E) => E.themeStyle), d = {
7201
+ ), { authToken: i } = Qe(), c = qi(i == null ? void 0 : i.accessToken), o = Z((E) => E.themeStyle), d = {
7199
7202
  colors: ((w = (b = o == null ? void 0 : o.chart) == null ? void 0 : b.dataset) == null ? void 0 : w.backgroundColor) || []
7200
7203
  };
7201
7204
  (z = t.customCardPreferences) != null && z.inputData;
@@ -7246,7 +7249,7 @@ function Pd({ card: t }) {
7246
7249
  );
7247
7250
  if (v)
7248
7251
  return /* @__PURE__ */ e(
7249
- qi,
7252
+ $i,
7250
7253
  {
7251
7254
  onLoadingStatus: T,
7252
7255
  onDataChange: x,
@@ -7276,14 +7279,14 @@ function Pd({ card: t }) {
7276
7279
  (L = t.customCardPreferences) == null ? void 0 : L.componentName
7277
7280
  ) });
7278
7281
  }
7279
- function Ml({
7282
+ function Ol({
7280
7283
  // card,
7281
7284
  // showCard,
7282
7285
  className: t,
7283
7286
  ...a
7284
7287
  }) {
7285
7288
  var b;
7286
- const n = I((w) => w.card), r = $i(n), l = ((b = n.customCardPreferences) == null ? void 0 : b.showCardHeader) ?? !0, i = I((w) => w.frame), c = Z((w) => w.dashboard.filters);
7289
+ const n = I((w) => w.card), r = Gi(n), l = ((b = n.customCardPreferences) == null ? void 0 : b.showCardHeader) ?? !0, i = I((w) => w.frame), c = Z((w) => w.dashboard.filters);
7287
7290
  I((w) => w.actions.setRunSql);
7288
7291
  const { updateFilter: o } = zt(), d = c == null ? void 0 : c.find((w) => w.id === i.filterId), { data: m, isLoading: h, isFetching: u, errorMessage: f } = Le(n), { setCard: g } = se(), { data: x } = Za(n), p = Pe(() => !n.id || !(m != null && m.records) ? null : Rr({
7289
7292
  card: n,
@@ -7309,10 +7312,10 @@ function Ml({
7309
7312
  function y() {
7310
7313
  if (m != null && m.records && (m == null ? void 0 : m.records.length) === 0 && !h && !u)
7311
7314
  return f ? /* @__PURE__ */ s("div", { className: "flex h-full flex-col items-center justify-center gap-2", children: [
7312
- /* @__PURE__ */ e(Gi, { className: "size-8 text-destructive" }),
7315
+ /* @__PURE__ */ e(Ji, { className: "size-8 text-destructive" }),
7313
7316
  /* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: r ? "Error fetching data. Please check your chart configuration" : "Error fetching data. Please check your SQL or Python code." })
7314
7317
  ] }) : /* @__PURE__ */ s("div", { className: "flex h-full flex-col items-center justify-center gap-2", children: [
7315
- /* @__PURE__ */ e(Ji, { className: "size-8 text-muted-foreground" }),
7318
+ /* @__PURE__ */ e(Hi, { className: "size-8 text-muted-foreground" }),
7316
7319
  /* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: "No results to display" })
7317
7320
  ] });
7318
7321
  if (!n.id) return null;
@@ -7320,7 +7323,7 @@ function Ml({
7320
7323
  return T(n);
7321
7324
  if (!["table", "custom"].includes(n.type) && p)
7322
7325
  return /* @__PURE__ */ e(ae, { children: h || u ? /* @__PURE__ */ e(ae, {}) : /* @__PURE__ */ e(
7323
- Hi,
7326
+ Wi,
7324
7327
  {
7325
7328
  cfg: p
7326
7329
  }
@@ -7520,7 +7523,7 @@ function Ud() {
7520
7523
  });
7521
7524
  if (k) {
7522
7525
  r(y(k)), o(((C = h.preferences) == null ? void 0 : C.customVisualCode) || "");
7523
- const M = Wi(k, u);
7526
+ const M = Yi(k, u);
7524
7527
  i(y(M));
7525
7528
  }
7526
7529
  }, w = () => {
@@ -7528,7 +7531,7 @@ function Ud() {
7528
7531
  if (c && T(c), l) {
7529
7532
  const k = JSON.parse(
7530
7533
  l
7531
- ), O = Yi(
7534
+ ), O = Ki(
7532
7535
  JSON.parse(n),
7533
7536
  k
7534
7537
  );
@@ -7551,7 +7554,7 @@ function Ud() {
7551
7554
  /* @__PURE__ */ s(gn, { className: "flex h-[600px] grow flex-col overflow-auto sm:min-w-[900px] lg:min-w-[1200px]", children: [
7552
7555
  /* @__PURE__ */ e(Vd, {}),
7553
7556
  /* @__PURE__ */ s("div", { className: "flex grow gap-2", children: [
7554
- /* @__PURE__ */ e(na, { FallbackComponent: Fr, children: /* @__PURE__ */ e(Ml, { className: "w-1/2 rounded shadow-none" }) }),
7557
+ /* @__PURE__ */ e(na, { FallbackComponent: Fr, children: /* @__PURE__ */ e(Ol, { className: "w-1/2 rounded shadow-none" }) }),
7555
7558
  /* @__PURE__ */ e(
7556
7559
  jd,
7557
7560
  {
@@ -7585,7 +7588,7 @@ function ua(t) {
7585
7588
  function ps() {
7586
7589
  const { authToken: t } = Qe(), { data: a, isLoading: n, isFetching: r, isError: l } = kn({
7587
7590
  queryKey: ["plugins", t == null ? void 0 : t.accessToken],
7588
- queryFn: () => Ki(t == null ? void 0 : t.accessToken)
7591
+ queryFn: () => Qi(t == null ? void 0 : t.accessToken)
7589
7592
  // staleTime: Infinity,
7590
7593
  });
7591
7594
  return { data: a, isLoading: n, isFetching: r, isError: l };
@@ -7623,7 +7626,7 @@ function qd({
7623
7626
  }
7624
7627
  })();
7625
7628
  }, [o]), a.length === 0 ? null : /* @__PURE__ */ s(ae, { children: [
7626
- /* @__PURE__ */ e(He, { className: "my-2" }),
7629
+ /* @__PURE__ */ e(We, { className: "my-2" }),
7627
7630
  /* @__PURE__ */ e("div", { className: "grid grid-cols-4 place-items-center", children: a.map((m, h) => /* @__PURE__ */ e(
7628
7631
  $d,
7629
7632
  {
@@ -7661,7 +7664,7 @@ function xs(t) {
7661
7664
  function vs(t) {
7662
7665
  return Bt({ attr: { version: "1.2", baseProfile: "tiny", viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M4 18c-.552 0-1-.448-1-1v-6.382l-.553.276c-.495.248-1.095.046-1.342-.447-.247-.494-.046-1.094.448-1.342l2-1c.31-.155.678-.139.973.044.294.183.474.504.474.851v8c0 .552-.448 1-1 1zM13 18h-5c-.404 0-.769-.244-.924-.617-.155-.374-.069-.804.217-1.09l4-4c.254-.254.394-.591.394-.95 0-.358-.14-.695-.394-.949-.508-.508-1.39-.508-1.9.001-.253.252-.393.589-.393.948 0 .552-.448 1-1 1s-1-.448-1-1c0-.894.348-1.733.98-2.364 1.265-1.263 3.464-1.263 4.727.001.632.631.979 1.471.979 2.363 0 .893-.348 1.733-.979 2.364l-2.293 2.293h2.586c.552 0 1 .448 1 1s-.448 1-1 1zM20.955 12.377c.338-.457.545-1.016.545-1.627 0-1.517-1.234-2.75-2.75-2.75-1.031 0-1.966.569-2.44 1.484-.254.49-.063 1.094.428 1.348.49.254 1.094.062 1.348-.428.128-.249.383-.404.664-.404.414 0 .75.336.75.75s-.336.75-.75.75c-.552 0-1 .448-1 1s.448 1 1 1c.689 0 1.25.561 1.25 1.25s-.561 1.25-1.25 1.25-1.25-.561-1.25-1.25c0-.552-.448-1-1-1s-1 .448-1 1c0 1.792 1.458 3.25 3.25 3.25s3.25-1.458 3.25-3.25c0-.939-.406-1.779-1.045-2.373z" }, child: [] }] })(t);
7663
7666
  }
7664
- function Ol({
7667
+ function El({
7665
7668
  onChartTypeChange: t,
7666
7669
  iconClassName: a
7667
7670
  }) {
@@ -7906,7 +7909,7 @@ function Jd({
7906
7909
  return /* @__PURE__ */ e(ca, { className: a });
7907
7910
  }
7908
7911
  }
7909
- function El({
7912
+ function Il({
7910
7913
  variant: t = "ghost"
7911
7914
  }) {
7912
7915
  var i, c;
@@ -7935,7 +7938,7 @@ function El({
7935
7938
  className: "w-72 p-1",
7936
7939
  children: [
7937
7940
  /* @__PURE__ */ e(
7938
- Ol,
7941
+ El,
7939
7942
  {
7940
7943
  onChartTypeChange: () => n(!1)
7941
7944
  }
@@ -8171,8 +8174,8 @@ function Hd() {
8171
8174
  M(H);
8172
8175
  }
8173
8176
  return /* @__PURE__ */ s(Ze, { onOpenChange: (ne) => a(ne), children: [
8174
- /* @__PURE__ */ e(Xe, { asChild: !0, children: /* @__PURE__ */ e(le, { tooltip: "Format Number", children: /* @__PURE__ */ e(cc, { className: "size-4" }) }) }),
8175
- /* @__PURE__ */ e(Xa, { align: "end", className: "max-w-65", children: /* @__PURE__ */ s("div", { className: "grid gap-4", children: [
8177
+ /* @__PURE__ */ e(Xe, { asChild: !0, children: /* @__PURE__ */ e(le, { tooltip: "Format Number", children: /* @__PURE__ */ e(dc, { className: "size-4" }) }) }),
8178
+ /* @__PURE__ */ e(Xa, { align: "end", className: "max-w-65 z-[51]", children: /* @__PURE__ */ s("div", { className: "grid gap-4", children: [
8176
8179
  /* @__PURE__ */ s("div", { className: "space-y-2", children: [
8177
8180
  /* @__PURE__ */ e("h4", { className: "font-medium leading-none", children: "Format Options" }),
8178
8181
  /* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: "Set the format for number axis" })
@@ -8181,7 +8184,7 @@ function Hd() {
8181
8184
  L(),
8182
8185
  // ['bar', 'line', 'area', 'horizontalBar'].includes(cardType) &&
8183
8186
  E(),
8184
- /* @__PURE__ */ e(Qi, {}),
8187
+ /* @__PURE__ */ e(Zi, {}),
8185
8188
  /* @__PURE__ */ e("div", { className: "grid grid-cols-3", children: /* @__PURE__ */ e(
8186
8189
  V,
8187
8190
  {
@@ -8231,8 +8234,8 @@ function Wd() {
8231
8234
  });
8232
8235
  };
8233
8236
  return /* @__PURE__ */ s(Ze, { children: [
8234
- /* @__PURE__ */ e(Xe, { asChild: !0, children: /* @__PURE__ */ e(le, { tooltip: "Legend Settings", children: /* @__PURE__ */ e(Nc, { className: "size-4" }) }) }),
8235
- /* @__PURE__ */ e(Xa, { align: "end", className: "w-72", children: /* @__PURE__ */ s("div", { className: "grid gap-4", children: [
8237
+ /* @__PURE__ */ e(Xe, { asChild: !0, children: /* @__PURE__ */ e(le, { tooltip: "Legend Settings", children: /* @__PURE__ */ e(bc, { className: "size-4" }) }) }),
8238
+ /* @__PURE__ */ e(Xa, { align: "end", className: "z-[51] w-72", children: /* @__PURE__ */ s("div", { className: "grid gap-4", children: [
8236
8239
  /* @__PURE__ */ s("div", { className: "space-y-2", children: [
8237
8240
  /* @__PURE__ */ e("h4", { className: "font-medium leading-none", children: "Legend Options" }),
8238
8241
  /* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: "Set the legend options for the chart." })
@@ -8266,7 +8269,7 @@ function Wd() {
8266
8269
  {
8267
8270
  tooltip: "Left",
8268
8271
  onClick: () => i("left"),
8269
- children: /* @__PURE__ */ e(Wo, { className: "size-4" })
8272
+ children: /* @__PURE__ */ e(Yo, { className: "size-4" })
8270
8273
  }
8271
8274
  ),
8272
8275
  /* @__PURE__ */ e(
@@ -8282,7 +8285,7 @@ function Wd() {
8282
8285
  {
8283
8286
  tooltip: "Right",
8284
8287
  onClick: () => i("right"),
8285
- children: /* @__PURE__ */ e(Yo, { className: "size-4" })
8288
+ children: /* @__PURE__ */ e(Ko, { className: "size-4" })
8286
8289
  }
8287
8290
  )
8288
8291
  ] })
@@ -8295,7 +8298,7 @@ function Wd() {
8295
8298
  {
8296
8299
  tooltip: "Start",
8297
8300
  onClick: () => c("start"),
8298
- children: /* @__PURE__ */ e(qo, { className: "size-4" })
8301
+ children: /* @__PURE__ */ e($o, { className: "size-4" })
8299
8302
  }
8300
8303
  ),
8301
8304
  /* @__PURE__ */ e(
@@ -8303,7 +8306,7 @@ function Wd() {
8303
8306
  {
8304
8307
  tooltip: "Center",
8305
8308
  onClick: () => c("center"),
8306
- children: /* @__PURE__ */ e(Uo, { className: "size-4" })
8309
+ children: /* @__PURE__ */ e(qo, { className: "size-4" })
8307
8310
  }
8308
8311
  ),
8309
8312
  /* @__PURE__ */ e(
@@ -8311,7 +8314,7 @@ function Wd() {
8311
8314
  {
8312
8315
  tooltip: "End",
8313
8316
  onClick: () => c("end"),
8314
- children: /* @__PURE__ */ e($o, { className: "size-4" })
8317
+ children: /* @__PURE__ */ e(Go, { className: "size-4" })
8315
8318
  }
8316
8319
  )
8317
8320
  ] })
@@ -8354,13 +8357,13 @@ function Yd() {
8354
8357
  }
8355
8358
  return /* @__PURE__ */ e(ae, { children: a === "funnel" ? l() : r() });
8356
8359
  }
8357
- function Il() {
8360
+ function Al() {
8358
8361
  const t = I((c) => c.card), a = I((c) => c.isShowingVisual), n = I(
8359
8362
  (c) => {
8360
8363
  var o, d;
8361
8364
  return (d = (o = c.card) == null ? void 0 : o.preferences) == null ? void 0 : d.chartOptions;
8362
8365
  }
8363
- ), r = Zi(n), { setChartGrid: l } = se();
8366
+ ), r = Xi(n), { setChartGrid: l } = se();
8364
8367
  function i() {
8365
8368
  const c = ["xy", "none", "x", "y"], d = (c.indexOf(r) + 1) % c.length;
8366
8369
  l(c[d]);
@@ -8391,10 +8394,10 @@ function Il() {
8391
8394
  "text",
8392
8395
  "map"
8393
8396
  ].includes(t.type) && /* @__PURE__ */ s(le, { tooltip: "Grid Style", onClick: i, children: [
8394
- (r === "xy" || !r) && /* @__PURE__ */ e(yc, { className: "size-4" }),
8395
- r === "x" && /* @__PURE__ */ e(lc, { className: "size-4" }),
8396
- r === "y" && /* @__PURE__ */ e(Ac, { className: "size-4" }),
8397
- r === "none" && /* @__PURE__ */ e(Fc, { className: "size-4" })
8397
+ (r === "xy" || !r) && /* @__PURE__ */ e(xc, { className: "size-4" }),
8398
+ r === "x" && /* @__PURE__ */ e(ic, { className: "size-4" }),
8399
+ r === "y" && /* @__PURE__ */ e(Rc, { className: "size-4" }),
8400
+ r === "none" && /* @__PURE__ */ e(Pc, { className: "size-4" })
8398
8401
  ] })
8399
8402
  ] }) : null;
8400
8403
  }
@@ -8474,7 +8477,7 @@ function Kd() {
8474
8477
  displayTab: T
8475
8478
  });
8476
8479
  },
8477
- children: p.displayTab === !0 || p.displayTab === void 0 ? /* @__PURE__ */ e(sn, { className: "mr-2 size-3.5 text-muted-foreground hover:text-foreground" }) : /* @__PURE__ */ e(dc, { className: "mr-2 size-3.5 text-muted-foreground hover:text-foreground" })
8480
+ children: p.displayTab === !0 || p.displayTab === void 0 ? /* @__PURE__ */ e(sn, { className: "mr-2 size-3.5 text-muted-foreground hover:text-foreground" }) : /* @__PURE__ */ e(uc, { className: "mr-2 size-3.5 text-muted-foreground hover:text-foreground" })
8478
8481
  }
8479
8482
  );
8480
8483
  }
@@ -8528,12 +8531,12 @@ function Kd() {
8528
8531
  className: "invisible ml-1 h-8 px-2 hover:bg-muted-foreground/50 group-hover:visible",
8529
8532
  variant: "outline",
8530
8533
  onClick: u,
8531
- children: /* @__PURE__ */ e(oc, { className: "h-4 w-4" })
8534
+ children: /* @__PURE__ */ e(cc, { className: "h-4 w-4" })
8532
8535
  }
8533
8536
  )
8534
8537
  ] }) });
8535
8538
  }
8536
- function Al() {
8539
+ function Rl() {
8537
8540
  const t = I((p) => p.frame), a = I((p) => p.card), n = I((p) => p.isSqlRunning), r = I((p) => p.isDevMode), { setFrame: l, setActiveTabCardId: i, setCard: c, setIsDevMode: o, setRunSql: d } = se(), { data: m, isLoading: h, isFetching: u } = Le(a);
8538
8541
  function f(p) {
8539
8542
  const T = t.cards.find((y) => y.id === p);
@@ -8558,14 +8561,14 @@ function Al() {
8558
8561
  y.sql && d(!0), c(y);
8559
8562
  }
8560
8563
  function x() {
8561
- return a.type === "kpi" ? /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ e("div", { className: "w-1/2 rounded-md border", children: /* @__PURE__ */ e(Xi, { card: a, data: m == null ? void 0 : m.records, isPending: h }) }) }) : a.type === "text" ? /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ e("div", { className: "w-1/2 rounded-md border", children: /* @__PURE__ */ e(et, { className: "mx-3 my-6 h-[300px] overflow-y-auto break-words px-3", children: /* @__PURE__ */ e(
8562
- eo,
8564
+ return a.type === "kpi" ? /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ e("div", { className: "w-1/2 rounded-md border", children: /* @__PURE__ */ e(eo, { card: a, data: m == null ? void 0 : m.records, isPending: h }) }) }) : a.type === "text" ? /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ e("div", { className: "w-1/2 rounded-md border", children: /* @__PURE__ */ e(et, { className: "mx-3 my-6 h-[300px] overflow-y-auto break-words px-3", children: /* @__PURE__ */ e(
8565
+ to,
8563
8566
  {
8564
8567
  isLoading: n,
8565
8568
  card: a,
8566
8569
  data: m == null ? void 0 : m.records
8567
8570
  }
8568
- ) }) }) }) : /* @__PURE__ */ e(na, { FallbackComponent: Fr, children: /* @__PURE__ */ e(Ml, { className: "grow border-none shadow-none" }) });
8571
+ ) }) }) }) : /* @__PURE__ */ e(na, { FallbackComponent: Fr, children: /* @__PURE__ */ e(Ol, { className: "grow border-none shadow-none" }) });
8569
8572
  }
8570
8573
  return /* @__PURE__ */ s(
8571
8574
  Vt,
@@ -8617,8 +8620,8 @@ function _n({
8617
8620
  className: "z-10 mb-0 flex min-h-10 items-center justify-end gap-2 px-6",
8618
8621
  children: [
8619
8622
  r && /* @__PURE__ */ s("div", { className: "flex grow items-center", children: [
8620
- /* @__PURE__ */ e(El, {}),
8621
- l && /* @__PURE__ */ e(le, { tooltip: "Visual Docs", onClick: y, children: /* @__PURE__ */ e(Xo, { className: "size-4" }) }),
8623
+ /* @__PURE__ */ e(Il, {}),
8624
+ l && /* @__PURE__ */ e(le, { tooltip: "Visual Docs", onClick: y, children: /* @__PURE__ */ e(ec, { className: "size-4" }) }),
8622
8625
  !["table", "custom"].includes(a.type) && l && /* @__PURE__ */ e(Ud, {})
8623
8626
  ] }),
8624
8627
  !r && /* @__PURE__ */ s("div", { className: "flex grow items-center gap-1", children: [
@@ -8639,7 +8642,7 @@ function _n({
8639
8642
  variant: "ghost",
8640
8643
  size: "icon",
8641
8644
  onClick: p,
8642
- children: /* @__PURE__ */ e(mc, { strokeWidth: 1.5, className: "size-4" })
8645
+ children: /* @__PURE__ */ e(hc, { strokeWidth: 1.5, className: "size-4" })
8643
8646
  }
8644
8647
  ),
8645
8648
  /* @__PURE__ */ e(
@@ -8652,13 +8655,13 @@ function _n({
8652
8655
  ] }),
8653
8656
  /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
8654
8657
  t,
8655
- /* @__PURE__ */ e(Il, {})
8658
+ /* @__PURE__ */ e(Al, {})
8656
8659
  ] }),
8657
8660
  n && /* @__PURE__ */ e(Zd, {})
8658
8661
  ]
8659
8662
  }
8660
8663
  ),
8661
- r ? /* @__PURE__ */ e(Al, {}) : /* @__PURE__ */ s(
8664
+ r ? /* @__PURE__ */ e(Rl, {}) : /* @__PURE__ */ s(
8662
8665
  pt,
8663
8666
  {
8664
8667
  className: "px-6",
@@ -8687,7 +8690,7 @@ function _n({
8687
8690
  className: "relative flex h-full min-h-0 w-full flex-1 basis-0",
8688
8691
  children: [
8689
8692
  (u == null ? void 0 : u.records) && (u == null ? void 0 : u.records.length) > 0 && /* @__PURE__ */ e(Fd, { data: (u == null ? void 0 : u.records) || [] }),
8690
- x && /* @__PURE__ */ e(Cl, { error: x })
8693
+ x && /* @__PURE__ */ e(wl, { error: x })
8691
8694
  ]
8692
8695
  }
8693
8696
  )
@@ -8850,7 +8853,7 @@ function Xd() {
8850
8853
  /* @__PURE__ */ e(
8851
8854
  Ue,
8852
8855
  {
8853
- icon: /* @__PURE__ */ e(Zo, { className: "h-3.5 w-3.5" }),
8856
+ icon: /* @__PURE__ */ e(Xo, { className: "h-3.5 w-3.5" }),
8854
8857
  className: "h-9 w-full",
8855
8858
  label: "Select Plugin",
8856
8859
  options: n,
@@ -8879,7 +8882,7 @@ function Xd() {
8879
8882
  ((t == null ? void 0 : t.type) === "component" || (t == null ? void 0 : t.type) === void 0) && t && /* @__PURE__ */ e(ae, { children: o && /* @__PURE__ */ e(
8880
8883
  Ue,
8881
8884
  {
8882
- icon: /* @__PURE__ */ e(ic, { className: "h-3.5 w-3.5" }),
8885
+ icon: /* @__PURE__ */ e(oc, { className: "h-3.5 w-3.5" }),
8883
8886
  className: "h-9 w-full",
8884
8887
  label: "Select Component",
8885
8888
  options: (o == null ? void 0 : o.filter((y) => y.type === i).map((y) => ({
@@ -9042,7 +9045,7 @@ function eu({ idx: t }) {
9042
9045
  (d) => d.actions.setCardPreferences
9043
9046
  ), l = (o = a == null ? void 0 : a.chartOptions) == null ? void 0 : o.indexAxis, i = n == null ? void 0 : n.find((d) => d.idx === t);
9044
9047
  function c(d, m) {
9045
- (d === "end" || d === "start") && to(no());
9048
+ (d === "end" || d === "start") && no(ao());
9046
9049
  const h = {
9047
9050
  display: d !== "none",
9048
9051
  align: d,
@@ -9089,7 +9092,7 @@ function eu({ idx: t }) {
9089
9092
  onClick: () => c("start", t),
9090
9093
  className: "h-7 p-1 text-xs font-normal",
9091
9094
  children: /* @__PURE__ */ e(
9092
- bc,
9095
+ Cc,
9093
9096
  {
9094
9097
  className: G("h-4 w-4", {
9095
9098
  "rotate-90": l === "y"
@@ -9104,7 +9107,7 @@ function eu({ idx: t }) {
9104
9107
  onClick: () => c("center", t),
9105
9108
  className: "h-7 p-1 text-xs font-normal",
9106
9109
  children: /* @__PURE__ */ e(
9107
- wc,
9110
+ Sc,
9108
9111
  {
9109
9112
  className: G("h-4 w-4", {
9110
9113
  "rotate-90": l === "y"
@@ -9119,7 +9122,7 @@ function eu({ idx: t }) {
9119
9122
  onClick: () => c("end", t),
9120
9123
  className: "h-7 p-1 text-xs font-normal",
9121
9124
  children: /* @__PURE__ */ e(
9122
- Cc,
9125
+ wc,
9123
9126
  {
9124
9127
  className: G("h-4 w-4", {
9125
9128
  "rotate-90": l === "y"
@@ -9132,10 +9135,10 @@ function eu({ idx: t }) {
9132
9135
  ] });
9133
9136
  }
9134
9137
  function tu() {
9135
- const t = I((i) => i.card), { data: a } = Le(t), { keys: n } = ka((a == null ? void 0 : a.records) || []), r = n.slice(1).filter((i) => !ao.includes(i));
9138
+ const t = I((i) => i.card), { data: a } = Le(t), { keys: n } = ka((a == null ? void 0 : a.records) || []), r = n.slice(1).filter((i) => !so.includes(i));
9136
9139
  let l = r;
9137
9140
  if (["stackedBar", "stackedLine"].includes(t.type)) {
9138
- const i = so({
9141
+ const i = ro({
9139
9142
  dataArray: (a == null ? void 0 : a.records) || [],
9140
9143
  groupKey: n[0],
9141
9144
  pivotKey: n[1],
@@ -9169,7 +9172,7 @@ function Ns({
9169
9172
  /* @__PURE__ */ e(je, { children: t })
9170
9173
  ] }) });
9171
9174
  }
9172
- function Rl() {
9175
+ function zl() {
9173
9176
  const t = I((d) => d.card), a = I(
9174
9177
  (d) => {
9175
9178
  var m, h, u;
@@ -9184,7 +9187,7 @@ function Rl() {
9184
9187
  {
9185
9188
  className: "flex h-8 items-center rounded-md bg-muted/70 px-3 hover:bg-muted",
9186
9189
  title: d,
9187
- children: zl(d)
9190
+ children: Ll(d)
9188
9191
  },
9189
9192
  d
9190
9193
  )) })
@@ -9192,7 +9195,7 @@ function Rl() {
9192
9195
  /* @__PURE__ */ s("div", { className: "space-y-2", children: [
9193
9196
  /* @__PURE__ */ e(K, { children: l }),
9194
9197
  /* @__PURE__ */ e("div", { className: "my-1 max-h-[125px] space-y-1 overflow-y-auto", children: c.map((d, m) => /* @__PURE__ */ e(
9195
- Ll,
9198
+ _l,
9196
9199
  {
9197
9200
  className: "flex h-8 items-center bg-muted/70 px-3 hover:bg-muted",
9198
9201
  iconClassName: "invisible group-hover:visible",
@@ -9204,10 +9207,10 @@ function Rl() {
9204
9207
  ] })
9205
9208
  ] });
9206
9209
  }
9207
- function zl(t, a = 30) {
9210
+ function Ll(t, a = 30) {
9208
9211
  return t.length > a ? t.slice(0, a) + "..." : t;
9209
9212
  }
9210
- function Ll({
9213
+ function _l({
9211
9214
  col: t,
9212
9215
  idx: a,
9213
9216
  className: n,
@@ -9256,7 +9259,7 @@ function Ll({
9256
9259
  n
9257
9260
  ),
9258
9261
  children: [
9259
- l || /* @__PURE__ */ e(Ns, { className: "max-w-[100px]", title: t, children: zl(t) }),
9262
+ l || /* @__PURE__ */ e(Ns, { className: "max-w-[100px]", title: t, children: Ll(t) }),
9260
9263
  /* @__PURE__ */ s("div", { className: "flex gap-2", children: [
9261
9264
  /* @__PURE__ */ e(
9262
9265
  la,
@@ -9294,12 +9297,12 @@ function Ll({
9294
9297
  }
9295
9298
  );
9296
9299
  }
9297
- function _l() {
9300
+ function Fl() {
9298
9301
  const t = I((g) => g.selectedConnectionId), a = I((g) => g.selectedDatamodelId), n = I((g) => g.selectedDatabaseName), r = I((g) => g.selectedSchemaName), l = I((g) => g.selectedTableName), i = Z((g) => g.dashboard.filters) || [], c = Z((g) => g.actions.addFilter), o = Z((g) => g.actions.removeFilter), { removeFilterValues: d } = zt(), { modelItems: m, tableName: h, connectionType: u } = at();
9299
9302
  function f(g, x = "dashboard") {
9300
9303
  var C;
9301
- const p = Je(g.column_name), T = Je(n || ""), y = Je(r || ""), b = Je(h);
9302
- let w = ro({
9304
+ const p = He(g.column_name), T = He(n || ""), y = He(r || ""), b = He(h);
9305
+ let w = lo({
9303
9306
  schemaName: y,
9304
9307
  tableName: b,
9305
9308
  connectionType: u,
@@ -9360,7 +9363,7 @@ function _l() {
9360
9363
  function tn() {
9361
9364
  const t = Z(
9362
9365
  (o) => o.dashboard.filters
9363
- ), a = I((o) => o.frame), { setFrame: n } = se(), { columns: r } = at(), { assignFilter: l } = _l();
9366
+ ), a = I((o) => o.frame), { setFrame: n } = se(), { columns: r } = at(), { assignFilter: l } = Fl();
9364
9367
  function i(o) {
9365
9368
  const d = l(o, "frame");
9366
9369
  n({ ...a, filterId: d });
@@ -9389,7 +9392,7 @@ function nu({
9389
9392
  className: "w-full justify-between font-normal",
9390
9393
  children: [
9391
9394
  l ? (c = t.find((o) => o.column_name === l)) == null ? void 0 : c.column_name : "Select Column...",
9392
- /* @__PURE__ */ e(lo, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
9395
+ /* @__PURE__ */ e(io, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
9393
9396
  ]
9394
9397
  }
9395
9398
  ) }),
@@ -9408,7 +9411,7 @@ function nu({
9408
9411
  children: [
9409
9412
  o.column_name,
9410
9413
  /* @__PURE__ */ e(
9411
- io,
9414
+ oo,
9412
9415
  {
9413
9416
  className: G(
9414
9417
  "ml-auto h-4 w-4",
@@ -9455,7 +9458,7 @@ function au({
9455
9458
  ] }),
9456
9459
  /* @__PURE__ */ s(Ne, { value: "item-2", children: [
9457
9460
  /* @__PURE__ */ e(be, { children: "Settings" }),
9458
- /* @__PURE__ */ e(Ce, { className: "space-y-4 px-2", children: /* @__PURE__ */ e(Rl, {}) })
9461
+ /* @__PURE__ */ e(Ce, { className: "space-y-4 px-2", children: /* @__PURE__ */ e(zl, {}) })
9459
9462
  ] }),
9460
9463
  /* @__PURE__ */ s(Ne, { value: "item-3", children: [
9461
9464
  /* @__PURE__ */ e(be, { children: "Filters" }),
@@ -9747,7 +9750,7 @@ function cu() {
9747
9750
  ] })
9748
9751
  ] })
9749
9752
  ] }) }),
9750
- /* @__PURE__ */ e("section", { className: "", children: /* @__PURE__ */ e(oo, {}) }),
9753
+ /* @__PURE__ */ e("section", { className: "", children: /* @__PURE__ */ e(co, {}) }),
9751
9754
  /* @__PURE__ */ e("div", {}),
9752
9755
  /* @__PURE__ */ e("div", {})
9753
9756
  ] });
@@ -9883,7 +9886,7 @@ function hu() {
9883
9886
  })) || [];
9884
9887
  return /* @__PURE__ */ s("div", { className: "p-6", children: [
9885
9888
  /* @__PURE__ */ e(ba, { summary: "Map Chart", children: /* @__PURE__ */ e("p", { className: "rounded-md bg-muted p-2 font-mono text-xs", children: "SELECT country, value FROM table" }) }),
9886
- /* @__PURE__ */ e(He, { className: "my-4" }),
9889
+ /* @__PURE__ */ e(We, { className: "my-4" }),
9887
9890
  /* @__PURE__ */ e(ba, { open: !0, summary: "Settings", children: /* @__PURE__ */ s("div", { className: "space-y-3 px-2", children: [
9888
9891
  /* @__PURE__ */ e(
9889
9892
  Ue,
@@ -10006,7 +10009,7 @@ function hu() {
10006
10009
  ] })
10007
10010
  ] })
10008
10011
  ] }) }),
10009
- /* @__PURE__ */ e(He, { className: "my-4" }),
10012
+ /* @__PURE__ */ e(We, { className: "my-4" }),
10010
10013
  /* @__PURE__ */ e(ba, { className: "", summary: "Scale Options", children: /* @__PURE__ */ s("div", { className: "flex items-center gap-3", children: [
10011
10014
  /* @__PURE__ */ e(
10012
10015
  _e,
@@ -10074,7 +10077,7 @@ function hu() {
10074
10077
  }
10075
10078
  )
10076
10079
  ] }) }),
10077
- /* @__PURE__ */ e(He, { className: "my-4" }),
10080
+ /* @__PURE__ */ e(We, { className: "my-4" }),
10078
10081
  /* @__PURE__ */ e(Ut, {})
10079
10082
  ] });
10080
10083
  }
@@ -10224,7 +10227,7 @@ function fu() {
10224
10227
  /* @__PURE__ */ e(be, { children: "Settings" }),
10225
10228
  /* @__PURE__ */ s(Ce, { className: "space-y-4 px-2", children: [
10226
10229
  n(),
10227
- /* @__PURE__ */ e(Rl, {})
10230
+ /* @__PURE__ */ e(zl, {})
10228
10231
  ] })
10229
10232
  ] }),
10230
10233
  /* @__PURE__ */ s(Ne, { value: "item-3", children: [
@@ -10371,7 +10374,7 @@ function Nu() {
10371
10374
  /* @__PURE__ */ e(it, { orientation: "horizontal" })
10372
10375
  ] });
10373
10376
  }
10374
- function Fl({
10377
+ function Pl({
10375
10378
  label: t,
10376
10379
  column: a,
10377
10380
  functions: n,
@@ -10413,12 +10416,12 @@ const bu = [
10413
10416
  {
10414
10417
  label: "Unique",
10415
10418
  value: "DISTINCT",
10416
- logo: /* @__PURE__ */ e(pc, { className: "size-3.5" })
10419
+ logo: /* @__PURE__ */ e(fc, { className: "size-3.5" })
10417
10420
  },
10418
10421
  {
10419
10422
  label: "Average",
10420
10423
  value: "AVG",
10421
- logo: /* @__PURE__ */ e(Ho, { className: "size-3.5" })
10424
+ logo: /* @__PURE__ */ e(Wo, { className: "size-3.5" })
10422
10425
  },
10423
10426
  {
10424
10427
  label: "Min",
@@ -10448,7 +10451,7 @@ function Cu({ column: t }) {
10448
10451
  a(t.id, i);
10449
10452
  }
10450
10453
  return /* @__PURE__ */ e(
10451
- Fl,
10454
+ Pl,
10452
10455
  {
10453
10456
  column: t,
10454
10457
  functions: n,
@@ -10490,7 +10493,7 @@ function Su({ column: t }) {
10490
10493
  a(t.id, l);
10491
10494
  }
10492
10495
  return /* @__PURE__ */ e(
10493
- Fl,
10496
+ Pl,
10494
10497
  {
10495
10498
  column: t,
10496
10499
  functions: wu,
@@ -10544,7 +10547,7 @@ function ku({
10544
10547
  }
10545
10548
  );
10546
10549
  }
10547
- function Pl({
10550
+ function Vl({
10548
10551
  column: t
10549
10552
  }) {
10550
10553
  const a = I((d) => d.card.type), n = I(
@@ -10556,7 +10559,7 @@ function Pl({
10556
10559
  (d) => d === t.label || d === t.name
10557
10560
  ), i = l ? r.indexOf(l) : -1;
10558
10561
  function c() {
10559
- return /* @__PURE__ */ e("div", { className: "pr-1", children: l && /* @__PURE__ */ e(Ll, { idx: i, col: l, children: /* @__PURE__ */ e("div", { className: "w-[130px] text-xs text-muted-foreground", children: "Display Series As" }) }) });
10562
+ return /* @__PURE__ */ e("div", { className: "pr-1", children: l && /* @__PURE__ */ e(_l, { idx: i, col: l, children: /* @__PURE__ */ e("div", { className: "w-[130px] text-xs text-muted-foreground", children: "Display Series As" }) }) });
10560
10563
  }
10561
10564
  function o() {
10562
10565
  return /* @__PURE__ */ s("div", { className: "space-y-1", children: [
@@ -10661,7 +10664,7 @@ function Tu({
10661
10664
  {
10662
10665
  "data-setting-container": "",
10663
10666
  className: "mt-1.5 max-h-32 overflow-y-auto rounded-md border border-border p-3 text-sm",
10664
- children: /* @__PURE__ */ e(Pl, { column: t })
10667
+ children: /* @__PURE__ */ e(Vl, { column: t })
10665
10668
  }
10666
10669
  );
10667
10670
  }
@@ -10697,7 +10700,7 @@ function Tu({
10697
10700
  className: "h-full pl-2",
10698
10701
  onClick: () => i(!l),
10699
10702
  children: l ? /* @__PURE__ */ e(
10700
- Lc,
10703
+ _c,
10701
10704
  {
10702
10705
  className: G(
10703
10706
  "size-3 cursor-pointer items-center justify-center rounded-r-sm text-muted-foreground"
@@ -10772,7 +10775,7 @@ function Ca({
10772
10775
  ] }),
10773
10776
  x(),
10774
10777
  /* @__PURE__ */ e("div", { className: "space-y-2", children: f == null ? void 0 : f.map(
10775
- (y) => y.id === Nl.id ? /* @__PURE__ */ e(Du, {}, y.id) : /* @__PURE__ */ e(
10778
+ (y) => y.id === bl.id ? /* @__PURE__ */ e(Du, {}, y.id) : /* @__PURE__ */ e(
10776
10779
  Tu,
10777
10780
  {
10778
10781
  droppableId: t,
@@ -10790,7 +10793,7 @@ function Ca({
10790
10793
  function Du() {
10791
10794
  return /* @__PURE__ */ e("div", { className: "mr-5 flex h-8 grow items-center space-x-2 rounded-md border border-dashed border-muted-foreground bg-background px-2 py-1 text-sm", children: /* @__PURE__ */ e("span", { className: "text-muted-foreground/70", children: "Drop here" }) });
10792
10795
  }
10793
- function Vl({ children: t, id: a, type: n }) {
10796
+ function jl({ children: t, id: a, type: n }) {
10794
10797
  const {
10795
10798
  attributes: r,
10796
10799
  listeners: l,
@@ -10818,7 +10821,7 @@ function Mu() {
10818
10821
  }) || [], { addOrderByColumn: r, removeOrderByColumn: l, updateOrderByColumn: i } = se(), c = [...a, ...n];
10819
10822
  if (c.length === 0)
10820
10823
  return /* @__PURE__ */ e(ae, {});
10821
- const o = /* @__PURE__ */ e(Qo, { className: "size-3.5 text-muted-foreground hover:text-foreground" }), d = /* @__PURE__ */ e(Jo, { className: "size-3.5 text-muted-foreground hover:text-foreground" }), m = /* @__PURE__ */ e(Ko, { className: "size-3.5 text-muted-foreground hover:text-foreground" }), h = /* @__PURE__ */ e(Go, { className: "size-3.5 text-muted-foreground hover:text-foreground" }), u = c == null ? void 0 : c.filter((y) => !t.some((b) => b.columnId === y.id)).map((y) => ({
10824
+ const o = /* @__PURE__ */ e(Zo, { className: "size-3.5 text-muted-foreground hover:text-foreground" }), d = /* @__PURE__ */ e(Ho, { className: "size-3.5 text-muted-foreground hover:text-foreground" }), m = /* @__PURE__ */ e(Qo, { className: "size-3.5 text-muted-foreground hover:text-foreground" }), h = /* @__PURE__ */ e(Jo, { className: "size-3.5 text-muted-foreground hover:text-foreground" }), u = c == null ? void 0 : c.filter((y) => !t.some((b) => b.columnId === y.id)).map((y) => ({
10822
10825
  id: y.id,
10823
10826
  value: y.label || y.name
10824
10827
  }));
@@ -10875,7 +10878,7 @@ function Mu() {
10875
10878
  t.map((y) => {
10876
10879
  var b, w;
10877
10880
  return /* @__PURE__ */ e(
10878
- Vl,
10881
+ jl,
10879
10882
  {
10880
10883
  id: an(y.columnId),
10881
10884
  type: hs,
@@ -10958,7 +10961,7 @@ function Ou() {
10958
10961
  }
10959
10962
  let g = "Group By", x = "Metrics", p = "Stack By";
10960
10963
  return a === "table" && (g = "Rows", x = "Metrics", p = "Columns"), /* @__PURE__ */ s("div", { className: "flex h-full w-full flex-col gap-3 py-4", children: [
10961
- /* @__PURE__ */ e(Ol, { iconClassName: "size-[19px]" }),
10964
+ /* @__PURE__ */ e(El, { iconClassName: "size-[19px]" }),
10962
10965
  /* @__PURE__ */ s(zn, { className: "flex min-h-0 grow basis-0 flex-col gap-4 overflow-y-auto", children: [
10963
10966
  /* @__PURE__ */ s("div", { className: "flex flex-col gap-4 p-4", children: [
10964
10967
  /* @__PURE__ */ e(
@@ -11018,7 +11021,7 @@ function bs({
11018
11021
  function h(u) {
11019
11022
  o(u);
11020
11023
  }
11021
- return /* @__PURE__ */ e(Vl, { id: n, type: r, children: /* @__PURE__ */ s(
11024
+ return /* @__PURE__ */ e(jl, { id: n, type: r, children: /* @__PURE__ */ s(
11022
11025
  "div",
11023
11026
  {
11024
11027
  className: G(
@@ -11031,7 +11034,7 @@ function bs({
11031
11034
  /* @__PURE__ */ s("div", { className: "flex items-center justify-between", children: [
11032
11035
  /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
11033
11036
  /* @__PURE__ */ e(K, { className: "text-sm", children: a.name }),
11034
- m && /* @__PURE__ */ e("button", { onClick: () => d(a), children: /* @__PURE__ */ e(co, { className: "size-3 cursor-pointer items-center justify-center text-muted-foreground hover:text-foreground" }) })
11037
+ m && /* @__PURE__ */ e("button", { onClick: () => d(a), children: /* @__PURE__ */ e(uo, { className: "size-3 cursor-pointer items-center justify-center text-muted-foreground hover:text-foreground" }) })
11035
11038
  ] }),
11036
11039
  /* @__PURE__ */ e(
11037
11040
  "div",
@@ -11194,7 +11197,7 @@ function Au({
11194
11197
  title: "",
11195
11198
  // not needed
11196
11199
  dataType: t.type
11197
- }, { isLoading: d, isFetching: m, isError: h, data: u } = Ur(o), f = u == null ? void 0 : u.records, { dateRange: g, setDateRange: x, initialDateRange: p } = uo(f), { updateEditorFilterValue: T } = se();
11200
+ }, { isLoading: d, isFetching: m, isError: h, data: u } = Ur(o), f = u == null ? void 0 : u.records, { dateRange: g, setDateRange: x, initialDateRange: p } = mo(f), { updateEditorFilterValue: T } = se();
11198
11201
  function y(z) {
11199
11202
  var O, C;
11200
11203
  const k = {
@@ -11208,7 +11211,7 @@ function Au({
11208
11211
  }
11209
11212
  function w() {
11210
11213
  return d || m ? /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(Ya, { className: "h-8 w-72 bg-foreground/10" }) }) : h ? /* @__PURE__ */ e("div", { className: "h-8 w-72 bg-muted px-2", children: "Error" }) : f ? /* @__PURE__ */ e(
11211
- mo,
11214
+ ho,
11212
11215
  {
11213
11216
  title: o.title,
11214
11217
  open: n,
@@ -11251,7 +11254,7 @@ function Ru({
11251
11254
  }
11252
11255
  function f(T) {
11253
11256
  const y = lt(T.type);
11254
- return T.id === Nl.id ? /* @__PURE__ */ e(
11257
+ return T.id === bl.id ? /* @__PURE__ */ e(
11255
11258
  bs,
11256
11259
  {
11257
11260
  id: T.id,
@@ -11335,12 +11338,12 @@ function _u() {
11335
11338
  variant: "secondary",
11336
11339
  size: "sm",
11337
11340
  children: [
11338
- /* @__PURE__ */ e(Mc, { className: "mr-2 h-4 w-4" }),
11341
+ /* @__PURE__ */ e(Oc, { className: "mr-2 h-4 w-4" }),
11339
11342
  "Assistant"
11340
11343
  ]
11341
11344
  }
11342
11345
  ),
11343
- /* @__PURE__ */ e(Sl, { sql: r == null ? void 0 : r.sql, error: l })
11346
+ /* @__PURE__ */ e(kl, { sql: r == null ? void 0 : r.sql, error: l })
11344
11347
  ] }),
11345
11348
  /* @__PURE__ */ s("div", { className: "flex items-center gap-3", children: [
11346
11349
  /* @__PURE__ */ e("div", { className: "rounded-full bg-green-300 px-3 py-1 text-xs font-medium text-black", children: "Preview" }),
@@ -11440,7 +11443,7 @@ function Fu() {
11440
11443
  );
11441
11444
  }
11442
11445
  function Pu(t) {
11443
- const a = ho(
11446
+ const a = po(
11444
11447
  (_) => _.currentAIContext
11445
11448
  ), [n, r] = P(""), [l, i] = P(null), { authToken: c } = Qe(), o = I((_) => {
11446
11449
  var re;
@@ -11478,7 +11481,7 @@ function Pu(t) {
11478
11481
  handleInputChange: W,
11479
11482
  handleSubmit: $,
11480
11483
  stop: Q
11481
- } = po({
11484
+ } = fo({
11482
11485
  api: "https://semaphor.cloud/api/v1/assistant",
11483
11486
  headers: {
11484
11487
  Authorization: `Bearer ${c == null ? void 0 : c.accessToken}`
@@ -11564,11 +11567,11 @@ function Pu(t) {
11564
11567
  } : _);
11565
11568
  }
11566
11569
  function de(_) {
11567
- const re = xo(p, _);
11570
+ const re = vo(p, _);
11568
11571
  me(re);
11569
11572
  }
11570
11573
  function me(_) {
11571
- const re = yo(_);
11574
+ const re = xo(_);
11572
11575
  L(re), B((Me) => [
11573
11576
  ...Me,
11574
11577
  {
@@ -11600,7 +11603,7 @@ function Pu(t) {
11600
11603
  connectionType: v || "",
11601
11604
  datamodelId: R || ""
11602
11605
  };
11603
- if (!fo(
11606
+ if (!go(
11604
11607
  [...C || [], ...p],
11605
11608
  _
11606
11609
  ) || p.length === 0) {
@@ -11614,7 +11617,7 @@ function Pu(t) {
11614
11617
  me(Me);
11615
11618
  }
11616
11619
  }
11617
- const Se = !["ready", "error"].includes(H), X = go(j);
11620
+ const Se = !["ready", "error"].includes(H), X = yo(j);
11618
11621
  return {
11619
11622
  messages: F,
11620
11623
  setMessages: B,
@@ -11649,9 +11652,9 @@ const Vu = [
11649
11652
  }
11650
11653
  ];
11651
11654
  function Ys() {
11652
- const t = Ke(null), a = Ke(null), [n, r] = P(!1), [l, i] = P(sr), [c, o] = P(!1), [d, m] = P(!1), h = vo(), { setCurrentAIContext: u } = No(), f = Z((Q) => Q.dashboard.aiContext), g = I((Q) => Q.card.dataSource), x = I((Q) => Q.actions.setCardSql), p = I((Q) => Q.actions.setRunSql), T = I((Q) => Q.showAIDialog), y = Z(
11655
+ const t = Ke(null), a = Ke(null), [n, r] = P(!1), [l, i] = P(sr), [c, o] = P(!1), [d, m] = P(!1), h = No(), { setCurrentAIContext: u } = bo(), f = Z((Q) => Q.dashboard.aiContext), g = I((Q) => Q.card.dataSource), x = I((Q) => Q.actions.setCardSql), p = I((Q) => Q.actions.setRunSql), T = I((Q) => Q.showAIDialog), y = Z(
11653
11656
  (Q) => Q.handleOpenAssistantProfile
11654
- ), { setShowAIDialog: b, setCardPython: w } = se(), { setDataSource: z } = se(), { assistantProfile: k } = bo(), {
11657
+ ), { setShowAIDialog: b, setCardPython: w } = se(), { setDataSource: z } = se(), { assistantProfile: k } = Co(), {
11655
11658
  messages: O,
11656
11659
  setMessages: C,
11657
11660
  reload: M,
@@ -11666,7 +11669,7 @@ function Ys() {
11666
11669
  llmUsage: F,
11667
11670
  errorMessage: B
11668
11671
  } = Pu();
11669
- Co({
11672
+ wo({
11670
11673
  scrollContainerRef: t,
11671
11674
  inputRef: a,
11672
11675
  messages: O
@@ -11815,7 +11818,7 @@ function Ys() {
11815
11818
  className: "mt-2 flex w-full grow basis-0",
11816
11819
  children: /* @__PURE__ */ s("div", { className: "space-y-4 py-2 pr-3", "data-role": "messages", children: [
11817
11820
  /* @__PURE__ */ e(
11818
- wo,
11821
+ So,
11819
11822
  {
11820
11823
  messages: O,
11821
11824
  showTools: l,
@@ -11824,7 +11827,7 @@ function Ys() {
11824
11827
  }
11825
11828
  ),
11826
11829
  /* @__PURE__ */ e(
11827
- So,
11830
+ ko,
11828
11831
  {
11829
11832
  messages: O,
11830
11833
  chatStatus: R,
@@ -11836,14 +11839,14 @@ function Ys() {
11836
11839
  ),
11837
11840
  /* @__PURE__ */ s("div", { className: "mb-3", children: [
11838
11841
  $ && !k && /* @__PURE__ */ e(
11839
- ko,
11842
+ To,
11840
11843
  {
11841
11844
  onClick: ne,
11842
11845
  placeholders: Vu
11843
11846
  }
11844
11847
  ),
11845
11848
  /* @__PURE__ */ e("div", { children: $ && k && /* @__PURE__ */ e(
11846
- To,
11849
+ Do,
11847
11850
  {
11848
11851
  seedQuestions: k.seedQuestions || [],
11849
11852
  handleSeedQuestionClick: q
@@ -11851,7 +11854,7 @@ function Ys() {
11851
11854
  ) })
11852
11855
  ] }),
11853
11856
  /* @__PURE__ */ e(
11854
- Do,
11857
+ Mo,
11855
11858
  {
11856
11859
  ref: a,
11857
11860
  setInput: D,
@@ -11892,10 +11895,10 @@ function Ys() {
11892
11895
  }
11893
11896
  );
11894
11897
  }
11895
- function jl(t, a) {
11898
+ function Bl(t, a) {
11896
11899
  return `${t}-${a.qualifiedEntityName}-${a.name}-${Date.now()}`;
11897
11900
  }
11898
- function Bl(t, a) {
11901
+ function Ul(t, a) {
11899
11902
  const n = ea(t.replace(/_/g, " "));
11900
11903
  switch (a) {
11901
11904
  case "SUM":
@@ -11915,11 +11918,11 @@ function Bl(t, a) {
11915
11918
  }
11916
11919
  }
11917
11920
  function ju(t, a) {
11918
- const n = We(t.dataType);
11921
+ const n = $e(t.dataType);
11919
11922
  return n === "number" ? "metrics" : n === "date" || n === "string" ? "groupBy" : "metrics";
11920
11923
  }
11921
11924
  function za(t, a) {
11922
- const n = jl(a, t), r = We(t.dataType), l = r === "date", i = {
11925
+ const n = Bl(a, t), r = $e(t.dataType), l = r === "date", i = {
11923
11926
  id: n,
11924
11927
  name: t.name,
11925
11928
  dataType: t.dataType,
@@ -11930,7 +11933,7 @@ function za(t, a) {
11930
11933
  entityType: t.entityType
11931
11934
  };
11932
11935
  if (a === "metrics") {
11933
- const c = r === "number" ? "SUM" : "COUNT", o = Bl(t.label, c);
11936
+ const c = r === "number" ? "SUM" : "COUNT", o = Ul(t.label, c);
11934
11937
  return {
11935
11938
  ...i,
11936
11939
  role: "metric",
@@ -11955,7 +11958,7 @@ function za(t, a) {
11955
11958
  direction: "asc"
11956
11959
  } : null;
11957
11960
  }
11958
- function Ul(t, a, n) {
11961
+ function ql(t, a, n) {
11959
11962
  var r;
11960
11963
  return !n || !((r = n.baseEntity) != null && r.name) || !n.joins ? !1 : t === a || t === n.baseEntity.name || a === n.baseEntity.name ? !0 : n.joins.some((l) => {
11961
11964
  const i = Fs(l.source), c = Fs(l.target);
@@ -11970,7 +11973,7 @@ function Bu(t, a, n) {
11970
11973
  return { isValid: !0 };
11971
11974
  if (r !== t.qualifiedEntityName && t.qualifiedEntityName)
11972
11975
  if (n) {
11973
- if (!Ul(
11976
+ if (!ql(
11974
11977
  r,
11975
11978
  t.qualifiedEntityName,
11976
11979
  n
@@ -12132,7 +12135,7 @@ const Cs = (t) => {
12132
12135
  const v = f("metrics")[L];
12133
12136
  v && r(u, v.id, {
12134
12137
  aggregate: E,
12135
- label: Bl(
12138
+ label: Ul(
12136
12139
  v.name,
12137
12140
  E
12138
12141
  )
@@ -12305,9 +12308,9 @@ function Uu({ field: t }) {
12305
12308
  } = Xt({ id: t.id }), [o, d] = P(!1), m = I((p) => p.card), { handleFieldClick: h } = Cs(m), u = {
12306
12309
  transform: vt.Transform.toString(l),
12307
12310
  transition: i
12308
- }, f = We(t.dataType), x = ((p) => {
12311
+ }, f = $e(t.dataType), x = ((p) => {
12309
12312
  const T = (p || "").toLowerCase();
12310
- switch (We(T)) {
12313
+ switch ($e(T)) {
12311
12314
  case "number":
12312
12315
  return os;
12313
12316
  case "date":
@@ -12315,9 +12318,9 @@ function Uu({ field: t }) {
12315
12318
  case "boolean":
12316
12319
  return al;
12317
12320
  case "json":
12318
- return rc;
12321
+ return lc;
12319
12322
  case "geo":
12320
- return Tc;
12323
+ return Dc;
12321
12324
  default:
12322
12325
  return sl;
12323
12326
  }
@@ -12420,7 +12423,7 @@ function Uu({ field: t }) {
12420
12423
  /* @__PURE__ */ e("span", { className: "break-all", children: t.label || t.name })
12421
12424
  ] }),
12422
12425
  /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
12423
- /* @__PURE__ */ e(Pc, { className: "h-4 w-4 text-muted-foreground" }),
12426
+ /* @__PURE__ */ e(Vc, { className: "h-4 w-4 text-muted-foreground" }),
12424
12427
  /* @__PURE__ */ e("span", { className: "break-all", children: t.name })
12425
12428
  ] }),
12426
12429
  /* @__PURE__ */ e(ie, { variant: "outline", className: "mt-2 text-xs", children: t.dataType })
@@ -12437,7 +12440,12 @@ function qu() {
12437
12440
  error: d
12438
12441
  } = ra(), m = i.filter(
12439
12442
  (w) => w.name.toLowerCase().includes(t.toLowerCase()) || w.dataType.toLowerCase().includes(t.toLowerCase()) || w.qualifiedEntityName && w.qualifiedEntityName.toLowerCase().includes(t.toLowerCase())
12440
- ), h = (w) => w.dataType === "number" || w.dataType === "integer" || w.dataType === "float" || w.dataType === "decimal" || w.dataType === "currency" ? "metrics" : "dimensions", f = (n === "all" ? m : m.filter(
12443
+ ), h = (w) => {
12444
+ if (w.dataType === "number" || w.dataType === "integer" || w.dataType === "float" || w.dataType === "decimal" || w.dataType === "currency")
12445
+ return "metrics";
12446
+ const z = $e(w.dataType);
12447
+ return ["date", "string", "boolean"].includes(z) ? "dimensions" : z === "number" ? "metrics" : "dimensions";
12448
+ }, f = (n === "all" ? m : m.filter(
12441
12449
  (w) => h(w) === n
12442
12450
  )).reduce((w, z) => {
12443
12451
  const k = z.qualifiedEntityName || "Other Fields";
@@ -12487,7 +12495,7 @@ function qu() {
12487
12495
  /* @__PURE__ */ e("span", { className: "ml-2 text-xs font-semibold", children: m.length })
12488
12496
  ] }),
12489
12497
  /* @__PURE__ */ s(Ie, { value: "dimensions", className: "text-xs", children: [
12490
- /* @__PURE__ */ e(Mo, { className: "size-4 shrink-0" }),
12498
+ /* @__PURE__ */ e(Oo, { className: "size-4 shrink-0" }),
12491
12499
  /* @__PURE__ */ e("span", { className: "ml-2 text-xs font-semibold", children: p })
12492
12500
  ] }),
12493
12501
  /* @__PURE__ */ s(Ie, { value: "metrics", className: "text-xs", children: [
@@ -12495,7 +12503,7 @@ function qu() {
12495
12503
  /* @__PURE__ */ e("span", { className: "ml-2 text-xs font-semibold", children: T })
12496
12504
  ] }),
12497
12505
  /* @__PURE__ */ s(Ie, { value: "calculated", className: "text-xs", children: [
12498
- /* @__PURE__ */ e(nc, { className: "size-4 shrink-0" }),
12506
+ /* @__PURE__ */ e(ac, { className: "size-4 shrink-0" }),
12499
12507
  /* @__PURE__ */ e("span", { className: "ml-2 text-xs font-semibold", children: y })
12500
12508
  ] })
12501
12509
  ] })
@@ -12520,8 +12528,8 @@ function qu() {
12520
12528
  value: w,
12521
12529
  className: "border-none",
12522
12530
  children: [
12523
- /* @__PURE__ */ e(be, { className: "group rounded-md px-3 py-2 hover:bg-muted hover:no-underline", children: /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
12524
- /* @__PURE__ */ e("span", { className: "text-sm font-medium", children: k.label || k.entityName }),
12531
+ /* @__PURE__ */ e(be, { className: "group rounded-md px-3 py-2 text-muted-foreground hover:bg-muted hover:no-underline", children: /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
12532
+ /* @__PURE__ */ e("span", { className: "text-sm font-medium text-primary", children: k.label || k.entityName }),
12525
12533
  /* @__PURE__ */ e(
12526
12534
  ie,
12527
12535
  {
@@ -13606,7 +13614,7 @@ ${p.joinType} JOIN ${T.name}
13606
13614
  onClick: () => l(!0),
13607
13615
  children: [
13608
13616
  /* @__PURE__ */ e(
13609
- Oo,
13617
+ Eo,
13610
13618
  {
13611
13619
  className: G("mr-1 h-3 w-3", {
13612
13620
  "text-blue-500": n.joins.length > 0,
@@ -13787,7 +13795,7 @@ function Qu({
13787
13795
  className: "flex cursor-pointer items-center gap-2",
13788
13796
  onClick: () => i(!l),
13789
13797
  children: [
13790
- l ? /* @__PURE__ */ e(Qt, { className: "h-4 w-4" }) : /* @__PURE__ */ e(Eo, { className: "h-4 w-4" }),
13798
+ l ? /* @__PURE__ */ e(Qt, { className: "h-4 w-4" }) : /* @__PURE__ */ e(Io, { className: "h-4 w-4" }),
13791
13799
  /* @__PURE__ */ e("h2", { className: "text-brand-100 font-semibold", children: "Data Source" })
13792
13800
  ]
13793
13801
  }
@@ -13901,7 +13909,7 @@ const Bn = [
13901
13909
  { id: "line", icon: ia, label: "Line Chart" },
13902
13910
  { id: "area", icon: Kr, label: "Area Chart" },
13903
13911
  { id: "stackedBar", icon: ss, label: "Stacked Bar Chart" },
13904
- { id: "combo", icon: ac, label: "Combo Chart" },
13912
+ { id: "combo", icon: sc, label: "Combo Chart" },
13905
13913
  {
13906
13914
  id: "stackedLine",
13907
13915
  icon: xs,
@@ -13985,7 +13993,7 @@ function em({
13985
13993
  const [n, r] = P([]), [l, i] = P(!1), { data: c } = ps();
13986
13994
  Xu();
13987
13995
  const d = ((O = I((C) => C.card).customCardPreferences) == null ? void 0 : O.url) || "";
13988
- Io(d);
13996
+ Ao(d);
13989
13997
  const { setCardType: m, setCardPreferences: h, setIsDevMode: u } = I(
13990
13998
  (C) => C.actions
13991
13999
  ), { setCardCustomCfg: f, setCustomCardPreferences: g, setQueryConfig: x } = se(), [p, T] = Ha("chart-section-active", null), y = Pe(() => p ? [
@@ -14215,8 +14223,8 @@ const tm = ({
14215
14223
  }) => {
14216
14224
  const n = ua(), r = ws(a);
14217
14225
  return n ? /* @__PURE__ */ e(n, { className: "h-4 w-4" }) : r || /* @__PURE__ */ e(mn, { className: "h-4 w-4" });
14218
- }, ql = ({ dataType: t }) => {
14219
- const a = We(t);
14226
+ }, $l = ({ dataType: t }) => {
14227
+ const a = $e(t);
14220
14228
  return a === "string" ? /* @__PURE__ */ e("span", { className: "flex h-4 w-4 shrink-0 items-center justify-center rounded-sm bg-blue-500 text-xs text-white", children: "T" }) : a === "number" ? /* @__PURE__ */ e("span", { className: "flex h-4 w-4 shrink-0 items-center justify-center rounded-sm bg-green-500 text-xs text-white", children: "#" }) : a === "date" ? /* @__PURE__ */ e("span", { className: "flex h-4 w-4 shrink-0 items-center justify-center rounded-sm bg-purple-500 text-xs text-white", children: "D" }) : a === "boolean" ? /* @__PURE__ */ e("span", { className: "flex h-4 w-4 shrink-0 items-center justify-center rounded-sm bg-orange-500 text-xs text-white", children: "B" }) : /* @__PURE__ */ e("span", { className: "flex h-4 w-4 shrink-0 items-center justify-center rounded-sm bg-gray-500 text-xs text-white", children: "?" });
14221
14229
  };
14222
14230
  function nm({
@@ -14518,7 +14526,7 @@ function sm({
14518
14526
  }, me = {
14519
14527
  transform: vt.Transform.toString(h),
14520
14528
  transition: u
14521
- }, ve = We(t.dataType), ue = ve === "date", Se = c === "kpi", X = [
14529
+ }, ve = $e(t.dataType), ue = ve === "date", Se = c === "kpi", X = [
14522
14530
  { value: "MM-DD-YYYY", label: "01-15-2024 (MM-DD-YYYY)" },
14523
14531
  { value: "YYYY-MM-DD", label: "2024-01-15 (YYYY-MM-DD)" },
14524
14532
  { value: "MM/DD/YYYY", label: "01/15/2024 (MM/DD/YYYY)" },
@@ -14565,7 +14573,7 @@ function sm({
14565
14573
  ]
14566
14574
  }
14567
14575
  )
14568
- ] }) : null, Jl = () => Me ? /* @__PURE__ */ s(ae, { children: [
14576
+ ] }) : null, Hl = () => Me ? /* @__PURE__ */ s(ae, { children: [
14569
14577
  ks(),
14570
14578
  /* @__PURE__ */ s("div", { className: "space-y-1", children: [
14571
14579
  /* @__PURE__ */ e(K, { className: "text-xs font-medium text-muted-foreground", children: "Date Format" }),
@@ -14596,7 +14604,7 @@ function sm({
14596
14604
  /* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground", children: "Examples: YYYY-MM-DD, MM/DD/YY, DD-MMM-YYYY HH:mm" })
14597
14605
  ] })
14598
14606
  ] })
14599
- ] }) : null, Hl = () => {
14607
+ ] }) : null, Wl = () => {
14600
14608
  var ce, ut, qt, Ds, Ms;
14601
14609
  return dt ? /* @__PURE__ */ s(ae, { children: [
14602
14610
  /* @__PURE__ */ s("div", { className: "space-y-1", children: [
@@ -14638,9 +14646,9 @@ function sm({
14638
14646
  min: "1",
14639
14647
  max: "365",
14640
14648
  value: ((Ds = g.config) == null ? void 0 : Ds.trendlineWindow) || 30,
14641
- onChange: (Kl) => {
14642
- const Ql = parseInt(Kl.target.value) || 30;
14643
- C(Ql);
14649
+ onChange: (Ql) => {
14650
+ const Zl = parseInt(Ql.target.value) || 30;
14651
+ C(Zl);
14644
14652
  },
14645
14653
  className: "h-8 text-xs",
14646
14654
  placeholder: "30"
@@ -14667,7 +14675,7 @@ function sm({
14667
14675
  ] })
14668
14676
  ] })
14669
14677
  ] }) : null;
14670
- }, Wl = () => {
14678
+ }, Yl = () => {
14671
14679
  var ce, ut;
14672
14680
  return St ? /* @__PURE__ */ s("div", { className: "space-y-1", children: [
14673
14681
  /* @__PURE__ */ e(K, { className: "text-xs font-medium text-muted-foreground", children: "Target Value" }),
@@ -14683,7 +14691,7 @@ function sm({
14683
14691
  }
14684
14692
  )
14685
14693
  ] }) : null;
14686
- }, Yl = () => he ? /* @__PURE__ */ s(ae, { children: [
14694
+ }, Kl = () => he ? /* @__PURE__ */ s(ae, { children: [
14687
14695
  /* @__PURE__ */ s("div", { className: "space-y-1", children: [
14688
14696
  /* @__PURE__ */ e(K, { className: "text-xs font-medium text-muted-foreground", children: "Aggregation" }),
14689
14697
  /* @__PURE__ */ s(
@@ -14698,7 +14706,7 @@ function sm({
14698
14706
  /* @__PURE__ */ s(ye, { children: [
14699
14707
  /* @__PURE__ */ e(te, { value: "COUNT", children: "Count" }),
14700
14708
  /* @__PURE__ */ e(te, { value: "DISTINCT", children: "Count Distinct" }),
14701
- We(t.dataType) === "number" && /* @__PURE__ */ s(ae, { children: [
14709
+ $e(t.dataType) === "number" && /* @__PURE__ */ s(ae, { children: [
14702
14710
  /* @__PURE__ */ e(te, { value: "SUM", children: "Sum" }),
14703
14711
  /* @__PURE__ */ e(te, { value: "AVG", children: "Average" }),
14704
14712
  /* @__PURE__ */ e(te, { value: "MIN", children: "Min" }),
@@ -14710,7 +14718,7 @@ function sm({
14710
14718
  }
14711
14719
  )
14712
14720
  ] }),
14713
- /* @__PURE__ */ e(Pl, { column: t }),
14721
+ /* @__PURE__ */ e(Vl, { column: t }),
14714
14722
  i && /* @__PURE__ */ s(ae, { children: [
14715
14723
  /* @__PURE__ */ e(
14716
14724
  nm,
@@ -14739,7 +14747,7 @@ function sm({
14739
14747
  children: [
14740
14748
  /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
14741
14749
  /* @__PURE__ */ e(en, { className: "h-3 w-3" }),
14742
- /* @__PURE__ */ e(ql, { dataType: ve }),
14750
+ /* @__PURE__ */ e($l, { dataType: ve }),
14743
14751
  /* @__PURE__ */ e(Ns, { className: "max-w-[180px] flex-1 text-sm", children: t.label || t.name }),
14744
14752
  a !== "sortBy" && /* @__PURE__ */ e(
14745
14753
  V,
@@ -14795,10 +14803,10 @@ function sm({
14795
14803
  Ae(),
14796
14804
  Re(),
14797
14805
  ks(),
14798
- Jl(),
14799
14806
  Hl(),
14800
14807
  Wl(),
14801
- Yl()
14808
+ Yl(),
14809
+ Kl()
14802
14810
  ] })
14803
14811
  ]
14804
14812
  }
@@ -14806,7 +14814,7 @@ function sm({
14806
14814
  }
14807
14815
  function rm({ concept: t }) {
14808
14816
  return /* @__PURE__ */ e(Ye, { children: /* @__PURE__ */ s(Fe, { delayDuration: 300, children: [
14809
- /* @__PURE__ */ e(Ve, { asChild: !0, children: /* @__PURE__ */ e(Ao, { className: "size-4 text-muted-foreground hover:text-foreground" }) }),
14817
+ /* @__PURE__ */ e(Ve, { asChild: !0, children: /* @__PURE__ */ e(Ro, { className: "size-4 text-muted-foreground hover:text-foreground" }) }),
14810
14818
  /* @__PURE__ */ e(je, { side: "right", align: "start", className: "p-3", children: (() => {
14811
14819
  switch (t) {
14812
14820
  case "groupBy":
@@ -15056,7 +15064,7 @@ function im({
15056
15064
  className: "h-8",
15057
15065
  size: "sm",
15058
15066
  children: [
15059
- /* @__PURE__ */ e(_c, { className: "mr-2 size-4" }),
15067
+ /* @__PURE__ */ e(Fc, { className: "mr-2 size-4" }),
15060
15068
  "AI"
15061
15069
  ]
15062
15070
  }
@@ -15307,7 +15315,7 @@ function cm({
15307
15315
  children: t
15308
15316
  }
15309
15317
  ) }),
15310
- /* @__PURE__ */ e(Ro, { children: t })
15318
+ /* @__PURE__ */ e(zo, { children: t })
15311
15319
  ] }) });
15312
15320
  }
15313
15321
  const dm = (t) => {
@@ -15319,7 +15327,7 @@ const dm = (t) => {
15319
15327
  case "dataset":
15320
15328
  return /* @__PURE__ */ e(Va, { className: "h-3 w-3" });
15321
15329
  case "file":
15322
- return /* @__PURE__ */ e(hc, { className: "h-3 w-3" });
15330
+ return /* @__PURE__ */ e(pc, { className: "h-3 w-3" });
15323
15331
  default:
15324
15332
  return /* @__PURE__ */ e(Ps, { className: "h-3 w-3" });
15325
15333
  }
@@ -15362,7 +15370,7 @@ function mm({
15362
15370
  ".",
15363
15371
  t.name
15364
15372
  ] }) }) : r,
15365
- /* @__PURE__ */ e(zo, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
15373
+ /* @__PURE__ */ e(Lo, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
15366
15374
  ]
15367
15375
  }
15368
15376
  ) }),
@@ -15550,11 +15558,11 @@ function hm({
15550
15558
  ] }) })
15551
15559
  ] }) });
15552
15560
  }
15553
- const $l = (t) => {
15561
+ const Gl = (t) => {
15554
15562
  if (!t) return 0;
15555
15563
  let a = t.conditions.length;
15556
15564
  return t.groups.forEach((n) => {
15557
- a += $l(n);
15565
+ a += Gl(n);
15558
15566
  }), a;
15559
15567
  };
15560
15568
  function pm({
@@ -15634,7 +15642,7 @@ function Nm(t) {
15634
15642
  return fm;
15635
15643
  }
15636
15644
  }
15637
- function Gl({
15645
+ function Jl({
15638
15646
  condition: t,
15639
15647
  index: a,
15640
15648
  groupId: n,
@@ -15719,13 +15727,13 @@ function Gl({
15719
15727
  },
15720
15728
  children: [
15721
15729
  /* @__PURE__ */ e(fe, { className: "w-28", children: /* @__PURE__ */ e(ge, {}) }),
15722
- /* @__PURE__ */ e(ye, { children: Nm(We(t.field.dataType)).map(
15730
+ /* @__PURE__ */ e(ye, { children: Nm($e(t.field.dataType)).map(
15723
15731
  (b) => /* @__PURE__ */ e(te, { className: "hover:bg-muted", value: b, children: b }, b)
15724
15732
  ) })
15725
15733
  ]
15726
15734
  }
15727
15735
  ),
15728
- We(t.field.dataType) === "string" ? t.operator === "in" || t.operator === "not in" ? p ? /* @__PURE__ */ s("div", { className: "flex flex-1 items-center justify-center p-2 text-xs text-gray-500", children: [
15736
+ $e(t.field.dataType) === "string" ? t.operator === "in" || t.operator === "not in" ? p ? /* @__PURE__ */ s("div", { className: "flex flex-1 items-center justify-center p-2 text-xs text-gray-500", children: [
15729
15737
  /* @__PURE__ */ e(De, { className: "mr-2 size-3.5 animate-spin" }),
15730
15738
  " Loading values..."
15731
15739
  ] }) : T ? /* @__PURE__ */ e("div", { className: "flex-1 p-2 text-xs text-red-500", children: "Error loading values" }) : /* @__PURE__ */ e(
@@ -15760,7 +15768,7 @@ function Gl({
15760
15768
  placeholder: "Select value...",
15761
15769
  className: "flex-1"
15762
15770
  }
15763
- ) : We(t.field.dataType) === "boolean" ? /* @__PURE__ */ s(
15771
+ ) : $e(t.field.dataType) === "boolean" ? /* @__PURE__ */ s(
15764
15772
  pe,
15765
15773
  {
15766
15774
  value: typeof t.value == "boolean" ? String(t.value) : "",
@@ -15916,7 +15924,7 @@ function bm({
15916
15924
  items: t.conditions.map((S) => S.id),
15917
15925
  strategy: dn,
15918
15926
  children: t.conditions.map((S, A) => /* @__PURE__ */ e(
15919
- Gl,
15927
+ Jl,
15920
15928
  {
15921
15929
  condition: S,
15922
15930
  index: A,
@@ -16059,7 +16067,7 @@ function Cm({
16059
16067
  items: D.conditions.map((N) => N.id),
16060
16068
  strategy: dn,
16061
16069
  children: D.conditions.map((N, v) => /* @__PURE__ */ e(
16062
- Gl,
16070
+ Jl,
16063
16071
  {
16064
16072
  condition: N,
16065
16073
  index: v,
@@ -16155,7 +16163,7 @@ function Cm({
16155
16163
  updateConditionFields: g
16156
16164
  },
16157
16165
  D.id
16158
- ), A = $l(t);
16166
+ ), A = Gl(t);
16159
16167
  return /* @__PURE__ */ s("div", { className: "space-y-4", children: [
16160
16168
  /* @__PURE__ */ e(Ft, { children: /* @__PURE__ */ e(Pt, { className: "p-4", children: /* @__PURE__ */ s("div", { className: "space-y-4", children: [
16161
16169
  o ? /* @__PURE__ */ s("div", { className: "flex items-center justify-center p-4", children: [
@@ -16291,7 +16299,7 @@ function Sm({
16291
16299
  }
16292
16300
  if (S !== k.qualifiedEntityName && k.qualifiedEntityName)
16293
16301
  if (o) {
16294
- if (!Ul(
16302
+ if (!ql(
16295
16303
  S,
16296
16304
  k.qualifiedEntityName,
16297
16305
  o
@@ -16446,7 +16454,7 @@ function Mm({
16446
16454
  isOpen: t,
16447
16455
  onClose: a
16448
16456
  }) {
16449
- const n = Kc(a, {
16457
+ const n = ml(a, {
16450
16458
  enabled: t
16451
16459
  }), r = I(
16452
16460
  (h) => {
@@ -16575,7 +16583,7 @@ function Om({
16575
16583
  (q) => q.label === R
16576
16584
  ), j = B || U;
16577
16585
  return j ? {
16578
- id: jl("sortBy", j),
16586
+ id: Bl("sortBy", j),
16579
16587
  name: j.name,
16580
16588
  dataType: j.dataType,
16581
16589
  label: j.label,
@@ -16600,7 +16608,7 @@ function Om({
16600
16608
  }, [(L = g.config) == null ? void 0 : L.sortByColumns]);
16601
16609
  return /* @__PURE__ */ s("div", { className: "relative flex w-0 grow flex-col", children: [
16602
16610
  /* @__PURE__ */ e(
16603
- Lo,
16611
+ _o,
16604
16612
  {
16605
16613
  showDebug: n,
16606
16614
  onDebugToggle: r,
@@ -16612,11 +16620,11 @@ function Om({
16612
16620
  }
16613
16621
  ),
16614
16622
  n && S(),
16615
- /* @__PURE__ */ e(He, {}),
16623
+ /* @__PURE__ */ e(We, {}),
16616
16624
  /* @__PURE__ */ s("div", { className: "group/visualization relative flex h-full max-w-full grow flex-col pt-4", children: [
16617
16625
  /* @__PURE__ */ s("div", { className: "flex items-center gap-2 px-6", children: [
16618
16626
  /* @__PURE__ */ s("div", { className: "flex items-center justify-between gap-2", children: [
16619
- t === "chart" && T && /* @__PURE__ */ e(El, { variant: "outline" }),
16627
+ t === "chart" && T && /* @__PURE__ */ e(Il, { variant: "outline" }),
16620
16628
  /* @__PURE__ */ e(km, { activeView: t, onViewChange: a }),
16621
16629
  o && /* @__PURE__ */ s(
16622
16630
  le,
@@ -16632,7 +16640,7 @@ function Om({
16632
16640
  ),
16633
16641
  /* @__PURE__ */ e("div", { className: "ml-2", children: /* @__PURE__ */ e(Dm, {}) })
16634
16642
  ] }),
16635
- /* @__PURE__ */ e("div", { className: G("flex grow items-center justify-end"), children: t === "chart" && /* @__PURE__ */ e(Il, {}) })
16643
+ /* @__PURE__ */ e("div", { className: G("flex grow items-center justify-end"), children: t === "chart" && /* @__PURE__ */ e(Al, {}) })
16636
16644
  ] }),
16637
16645
  !y && w && /* @__PURE__ */ e(
16638
16646
  le,
@@ -16641,11 +16649,11 @@ function Om({
16641
16649
  tooltip: "Open Chart Settings",
16642
16650
  onClick: () => b(!0),
16643
16651
  className: "absolute right-5 top-1/2 z-40 size-10 -translate-y-1/2 rounded-full border border-border bg-background shadow-lg hover:bg-muted focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
16644
- children: /* @__PURE__ */ e(Rc, { className: "size-4" })
16652
+ children: /* @__PURE__ */ e(zc, { className: "size-4" })
16645
16653
  }
16646
16654
  ),
16647
16655
  /* @__PURE__ */ s("div", { className: "flex grow flex-col", children: [
16648
- t === "chart" && /* @__PURE__ */ e("div", { className: "flex grow flex-col pb-6", children: C || M ? /* @__PURE__ */ e("div", { className: "m-auto flex h-10 w-10 items-center justify-center rounded-md bg-muted", children: /* @__PURE__ */ e(De, { className: "h-8 w-8 animate-spin text-muted-foreground" }) }) : /* @__PURE__ */ e(Al, {}) }),
16656
+ t === "chart" && /* @__PURE__ */ e("div", { className: "flex grow flex-col pb-6", children: C || M ? /* @__PURE__ */ e("div", { className: "m-auto flex h-10 w-10 items-center justify-center rounded-md bg-muted", children: /* @__PURE__ */ e(De, { className: "h-8 w-8 animate-spin text-muted-foreground" }) }) : /* @__PURE__ */ e(Rl, {}) }),
16649
16657
  t === "table" && (z == null ? void 0 : z.records) && /* @__PURE__ */ s("div", { className: "relative flex h-full min-h-0 max-w-full flex-1 grow basis-0 p-6", children: [
16650
16658
  (C || M) && /* @__PURE__ */ e("div", { className: "absolute flex h-full w-full items-center justify-between", children: /* @__PURE__ */ e("div", { className: "z-10 m-auto flex h-10 w-10 items-center justify-center rounded-md bg-muted", children: /* @__PURE__ */ e(De, { className: "h-8 w-8 animate-spin text-muted-foreground" }) }) }),
16651
16659
  /* @__PURE__ */ e(
@@ -16660,7 +16668,7 @@ function Om({
16660
16668
  ] }),
16661
16669
  t === "sql" && /* @__PURE__ */ e("div", { className: "p-6", children: /* @__PURE__ */ s("div", { className: "rounded-md border bg-background p-4", children: [
16662
16670
  (z == null ? void 0 : z.sql) && /* @__PURE__ */ e("h3", { className: "mb-3 text-sm font-medium", children: "Generated SQL Query" }),
16663
- /* @__PURE__ */ e(wl, { sql: z == null ? void 0 : z.sql, error: k })
16671
+ /* @__PURE__ */ e(Sl, { sql: z == null ? void 0 : z.sql, error: k })
16664
16672
  ] }) })
16665
16673
  ] }),
16666
16674
  /* @__PURE__ */ e(
@@ -16683,7 +16691,7 @@ function Em({ activeField: t }) {
16683
16691
  className: `flex max-w-[300px] items-center gap-2 rounded-lg border border-blue-500 bg-background p-2 shadow-lg transition-all duration-200 ${a ? "scale-100 opacity-100" : "scale-95 opacity-0"}`,
16684
16692
  children: [
16685
16693
  /* @__PURE__ */ e(en, { className: "h-3 w-3 shrink-0 text-muted-foreground" }),
16686
- /* @__PURE__ */ e(ql, { dataType: t.dataType }),
16694
+ /* @__PURE__ */ e($l, { dataType: t.dataType }),
16687
16695
  /* @__PURE__ */ e("span", { className: "overflow-hidden text-ellipsis whitespace-nowrap text-sm dark:text-muted-foreground", children: t.label || t.name })
16688
16696
  ]
16689
16697
  }
@@ -16875,7 +16883,7 @@ function Rm({ authToken: t, onSave: a, onClose: n }) {
16875
16883
  }
16876
16884
  function T() {
16877
16885
  return /* @__PURE__ */ s(ae, { children: [
16878
- /* @__PURE__ */ e(bl, { type: "main" }),
16886
+ /* @__PURE__ */ e(Cl, { type: "main" }),
16879
16887
  /* @__PURE__ */ s(
16880
16888
  pt,
16881
16889
  {
@@ -16964,10 +16972,10 @@ function zm() {
16964
16972
  );
16965
16973
  }
16966
16974
  function Lm() {
16967
- const t = I((i) => i.selectedDatabaseName), a = I((i) => i.selectedTableName), n = Z((i) => i.dashboard.filters) || [], { columns: r } = at(), { assignFilter: l } = _l();
16975
+ const t = I((i) => i.selectedDatabaseName), a = I((i) => i.selectedTableName), n = Z((i) => i.dashboard.filters) || [], { columns: r } = at(), { assignFilter: l } = Fl();
16968
16976
  return /* @__PURE__ */ e(et, { className: "flex-1 basis-0 flex-col px-3", children: r == null ? void 0 : r.map((i) => {
16969
16977
  const c = n == null ? void 0 : n.find(
16970
- (o) => o.column === Je(i.column_name) && o.table === a && o.database === t
16978
+ (o) => o.column === He(i.column_name) && o.table === a && o.database === t
16971
16979
  );
16972
16980
  return /* @__PURE__ */ e(
16973
16981
  "div",
@@ -17007,7 +17015,7 @@ function _m() {
17007
17015
  )
17008
17016
  ] }),
17009
17017
  /* @__PURE__ */ e("div", { className: "flex grow", children: /* @__PURE__ */ e(
17010
- bl,
17018
+ Cl,
17011
17019
  {
17012
17020
  type: "filter",
17013
17021
  ColumnsComponent: () => (
@@ -17061,7 +17069,7 @@ function Pm() {
17061
17069
  children: [
17062
17070
  /* @__PURE__ */ s("section", { className: "flex grow flex-col", children: [
17063
17071
  n && /* @__PURE__ */ e(Fm, {}),
17064
- /* @__PURE__ */ e(_o, {})
17072
+ /* @__PURE__ */ e(Fo, {})
17065
17073
  ] }),
17066
17074
  t && /* @__PURE__ */ e("div", { role: "filter-aside-container", className: "flex", children: /* @__PURE__ */ e(_m, {}) })
17067
17075
  ]
@@ -17095,7 +17103,7 @@ function Vm() {
17095
17103
  }
17096
17104
  ),
17097
17105
  /* @__PURE__ */ e(
17098
- Fo,
17106
+ Po,
17099
17107
  {
17100
17108
  onChange: (l) => {
17101
17109
  if (l)
@@ -17132,13 +17140,13 @@ function $m({
17132
17140
  showFooter: a = !0,
17133
17141
  ...n
17134
17142
  }) {
17135
- return /* @__PURE__ */ e(na, { FallbackComponent: Hr, children: /* @__PURE__ */ s(Po, { dashboardProps: n, children: [
17136
- /* @__PURE__ */ e(Vo, {}),
17137
- /* @__PURE__ */ s(jo, { children: [
17143
+ return /* @__PURE__ */ e(na, { FallbackComponent: Hr, children: /* @__PURE__ */ s(Vo, { dashboardProps: n, children: [
17144
+ /* @__PURE__ */ e(jo, {}),
17145
+ /* @__PURE__ */ s(Bo, { children: [
17138
17146
  /* @__PURE__ */ e(Vm, {}),
17139
17147
  /* @__PURE__ */ s("main", { className: "flex h-full flex-col", children: [
17140
17148
  t && /* @__PURE__ */ e(xd, {}),
17141
- /* @__PURE__ */ s(Bo, { ...n, children: [
17149
+ /* @__PURE__ */ s(Uo, { ...n, children: [
17142
17150
  /* @__PURE__ */ e(zm, {}),
17143
17151
  /* @__PURE__ */ e(Pm, {})
17144
17152
  ] })
@@ -17149,9 +17157,9 @@ function $m({
17149
17157
  export {
17150
17158
  $m as D,
17151
17159
  yd as R,
17152
- Hc as S,
17160
+ Wc as S,
17153
17161
  nn as a,
17154
- Vc as c,
17155
- Gc as d,
17162
+ jc as c,
17163
+ Jc as d,
17156
17164
  rl as g
17157
17165
  };