react-semaphor 0.0.337 → 0.0.338

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,4 +1,4 @@
1
- import { c as _, u as Ds, v as O, w as fs, x as Ie, y as e, z as Ts, A as Fs, H as I, o as Ls, J as Ms, K as Es, M as As, N as Vs, O as H, Q as re, R as ra, V as ia, W as oa, Y as ca, Z as rt, _ as it, $ as ot, a0 as Ws, a1 as W, a2 as Xe, i as ct, a3 as d, a4 as dt, P as da, F as ua, a5 as Ze, a6 as es, a7 as ma, a8 as ut, a9 as ha, aa as ue, ab as me, ac as he, ad as xe, ae as ke, af as pe, ag as Z, T as qs, ah as Rs, ai as _s, aj as Hs, ak as xa, al as pa, am as ce, an as mt, ao as ht, ap as fa, aq as xt, C as pt, ar as ft, as as ga, B as gt, at as fe, au as jt, av as ss, aw as ja, ax as ws, ay as Se, az as Le, aA as ze, aB as ba, aC as bt, aD as yt, aE as vt, aF as Ct, l as Nt, aG as St, aH as wt, aI as kt, aJ as $e, aK as ks, aL as zt, a as Ot, aM as We, aN as us, aO as we, aP as It, aQ as ms, aR as Dt, aS as Tt, aT as Ft, aU as Lt, aV as Mt, aW as Ss, aX as Et, aY as Ys, aZ as At, a_ as Xs, a$ as Vt, b0 as qt, b1 as Rt, b2 as _t, b3 as ya, b4 as oe, b5 as Ht, b6 as $s, b7 as va, b8 as $t, b9 as Pt, ba as os, bb as Bt, bc as Ut, bd as Ca, be as Gt, s as Qt, bf as Jt, bg as Kt, r as Wt, bh as gs, bi as Na, bj as Sa, bk as wa, bl as cs, bm as ka, bn as ds, bo as Zs, bp as Yt, bq as Xt, br as js, bs, bt as ys, bu as Zt, I as en, X as za, bv as sn, bw as an, bx as tn, E as nn, by as vs, bz as Me, f as ln, bA as Ke, bB as Ps, bC as Oa, bD as rn, bE as on, bF as hs, bG as cn, bH as dn, bI as un, bJ as ea, bK as Ia, bL as mn, bM as hn, bN as xn, bO as pn, bP as fn, bQ as gn, bR as jn, bS as Ee, bT as Q, bU as J, bV as Bs, bW as K, bX as bn, bY as Da, bZ as yn, b_ as vn, b$ as Cn, c0 as Nn, c1 as Sn, c2 as wn, c3 as kn, c4 as zn, c5 as On } from "./index-BSwfjVFo.js";
1
+ import { c as _, u as Ds, v as O, w as fs, x as Ie, y as e, z as Fs, A as Ts, H as I, o as Ls, J as Ms, K as Es, M as As, N as Vs, O as H, Q as re, R as ra, V as ia, W as oa, Y as ca, Z as rt, _ as it, $ as ot, a0 as Ws, a1 as W, a2 as Xe, i as ct, a3 as d, a4 as dt, P as da, F as ua, a5 as Ze, a6 as es, a7 as ma, a8 as ut, a9 as ha, aa as ue, ab as me, ac as he, ad as xe, ae as ke, af as pe, ag as Z, T as qs, ah as Rs, ai as _s, aj as Hs, ak as xa, al as pa, am as ce, an as mt, ao as ht, ap as fa, aq as xt, C as pt, ar as ft, as as ga, B as gt, at as fe, au as jt, av as ss, aw as ja, ax as ws, ay as Se, az as Le, aA as ze, aB as ba, aC as bt, aD as yt, aE as vt, aF as Ct, l as Nt, aG as St, aH as wt, aI as kt, aJ as $e, aK as ks, aL as zt, a as Ot, aM as We, aN as us, aO as we, aP as It, aQ as ms, aR as Dt, aS as Ft, aT as Tt, aU as Lt, aV as Mt, aW as Ss, aX as Et, aY as Ys, aZ as At, a_ as Xs, a$ as Vt, b0 as qt, b1 as Rt, b2 as _t, b3 as ya, b4 as oe, b5 as Ht, b6 as $s, b7 as va, b8 as $t, b9 as Pt, ba as os, bb as Bt, bc as Ut, bd as Ca, be as Gt, s as Qt, bf as Jt, bg as Kt, r as Wt, bh as gs, bi as Na, bj as Sa, bk as wa, bl as cs, bm as ka, bn as ds, bo as Zs, bp as Yt, bq as Xt, br as js, bs, bt as ys, bu as Zt, I as en, X as za, bv as sn, bw as an, bx as tn, E as nn, by as vs, bz as Me, f as ln, bA as Ke, bB as Ps, bC as Oa, bD as rn, bE as on, bF as hs, bG as cn, bH as dn, bI as un, bJ as ea, bK as Ia, bL as mn, bM as hn, bN as xn, bO as pn, bP as fn, bQ as gn, bR as jn, bS as Ee, bT as Q, bU as J, bV as Bs, bW as K, bX as bn, bY as Da, bZ as yn, b_ as vn, b$ as Cn, c0 as Nn, c1 as Sn, c2 as wn, c3 as kn, c4 as zn, c5 as On } from "./index-BSwfjVFo.js";
2
2
  import * as sa from "react";
3
3
  import Oe, { useState as q, useMemo as zs, useEffect as se, useRef as Os, useCallback as In, Suspense as Dn } from "react";
4
4
  import "react-dom";
@@ -8,7 +8,7 @@ import "react-dom";
8
8
  * This source code is licensed under the ISC license.
9
9
  * See the LICENSE file in the root directory of this source tree.
10
10
  */
11
- const Tn = _("Box", [
11
+ const Fn = _("Box", [
12
12
  [
13
13
  "path",
14
14
  {
@@ -25,7 +25,26 @@ const Tn = _("Box", [
25
25
  * This source code is licensed under the ISC license.
26
26
  * See the LICENSE file in the root directory of this source tree.
27
27
  */
28
- const Fn = _("ChartArea", [
28
+ const Tn = _("Braces", [
29
+ [
30
+ "path",
31
+ { 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" }
32
+ ],
33
+ [
34
+ "path",
35
+ {
36
+ d: "M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",
37
+ key: "e1hn23"
38
+ }
39
+ ]
40
+ ]);
41
+ /**
42
+ * @license lucide-react v0.453.0 - ISC
43
+ *
44
+ * This source code is licensed under the ISC license.
45
+ * See the LICENSE file in the root directory of this source tree.
46
+ */
47
+ const Ln = _("ChartArea", [
29
48
  ["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
30
49
  [
31
50
  "path",
@@ -63,7 +82,7 @@ const Gs = _("ChartLine", [
63
82
  * This source code is licensed under the ISC license.
64
83
  * See the LICENSE file in the root directory of this source tree.
65
84
  */
66
- const Ta = _("ChartNoAxesGantt", [
85
+ const Fa = _("ChartNoAxesGantt", [
67
86
  ["path", { d: "M8 6h10", key: "9lnwnk" }],
68
87
  ["path", { d: "M6 12h9", key: "1g9pqf" }],
69
88
  ["path", { d: "M11 18h7", key: "c8dzvl" }]
@@ -74,7 +93,7 @@ const Ta = _("ChartNoAxesGantt", [
74
93
  * This source code is licensed under the ISC license.
75
94
  * See the LICENSE file in the root directory of this source tree.
76
95
  */
77
- const Fa = _("ChartPie", [
96
+ const Ta = _("ChartPie", [
78
97
  [
79
98
  "path",
80
99
  {
@@ -104,7 +123,7 @@ const La = _("ChartScatter", [
104
123
  * This source code is licensed under the ISC license.
105
124
  * See the LICENSE file in the root directory of this source tree.
106
125
  */
107
- const Ln = _("CircleX", [
126
+ const Mn = _("CircleX", [
108
127
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
109
128
  ["path", { d: "m15 9-6 6", key: "1uzhvr" }],
110
129
  ["path", { d: "m9 9 6 6", key: "z0biqf" }]
@@ -115,7 +134,7 @@ const Ln = _("CircleX", [
115
134
  * This source code is licensed under the ISC license.
116
135
  * See the LICENSE file in the root directory of this source tree.
117
136
  */
118
- const Mn = _("CopyPlus", [
137
+ const En = _("CopyPlus", [
119
138
  ["line", { x1: "15", x2: "15", y1: "12", y2: "18", key: "1p7wdc" }],
120
139
  ["line", { x1: "12", x2: "18", y1: "15", y2: "15", key: "1nscbv" }],
121
140
  ["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
@@ -127,7 +146,7 @@ const Mn = _("CopyPlus", [
127
146
  * This source code is licensed under the ISC license.
128
147
  * See the LICENSE file in the root directory of this source tree.
129
148
  */
130
- const En = _("Database", [
149
+ const An = _("Database", [
131
150
  ["ellipse", { cx: "12", cy: "5", rx: "9", ry: "3", key: "msslwz" }],
132
151
  ["path", { d: "M3 5V19A9 3 0 0 0 21 19V5", key: "1wlel7" }],
133
152
  ["path", { d: "M3 12A9 3 0 0 0 21 12", key: "mv7ke4" }]
@@ -149,7 +168,7 @@ const Ma = _("EllipsisVertical", [
149
168
  * This source code is licensed under the ISC license.
150
169
  * See the LICENSE file in the root directory of this source tree.
151
170
  */
152
- const An = _("Eraser", [
171
+ const Vn = _("Eraser", [
153
172
  [
154
173
  "path",
155
174
  {
@@ -166,7 +185,7 @@ const An = _("Eraser", [
166
185
  * This source code is licensed under the ISC license.
167
186
  * See the LICENSE file in the root directory of this source tree.
168
187
  */
169
- const Vn = _("EyeClosed", [
188
+ const qn = _("EyeClosed", [
170
189
  ["path", { d: "m15 18-.722-3.25", key: "1j64jw" }],
171
190
  ["path", { d: "M2 8a10.645 10.645 0 0 0 20 0", key: "1e7gxb" }],
172
191
  ["path", { d: "m20 15-1.726-2.05", key: "1cnuld" }],
@@ -179,7 +198,7 @@ const Vn = _("EyeClosed", [
179
198
  * This source code is licensed under the ISC license.
180
199
  * See the LICENSE file in the root directory of this source tree.
181
200
  */
182
- const qn = _("Glasses", [
201
+ const Rn = _("Glasses", [
183
202
  ["circle", { cx: "6", cy: "15", r: "4", key: "vux9w4" }],
184
203
  ["circle", { cx: "18", cy: "15", r: "4", key: "18o8ve" }],
185
204
  ["path", { d: "M14 15a2 2 0 0 0-2-2 2 2 0 0 0-2 2", key: "1ag4bs" }],
@@ -192,7 +211,7 @@ const qn = _("Glasses", [
192
211
  * This source code is licensed under the ISC license.
193
212
  * See the LICENSE file in the root directory of this source tree.
194
213
  */
195
- const Rn = _("Hammer", [
214
+ const _n = _("Hammer", [
196
215
  ["path", { d: "m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9", key: "eefl8a" }],
197
216
  ["path", { d: "m18 15 4-4", key: "16gjal" }],
198
217
  [
@@ -209,7 +228,7 @@ const Rn = _("Hammer", [
209
228
  * This source code is licensed under the ISC license.
210
229
  * See the LICENSE file in the root directory of this source tree.
211
230
  */
212
- const _n = _("Hash", [
231
+ const Hn = _("Hash", [
213
232
  ["line", { x1: "4", x2: "20", y1: "9", y2: "9", key: "4lhtct" }],
214
233
  ["line", { x1: "4", x2: "20", y1: "15", y2: "15", key: "vyu0kd" }],
215
234
  ["line", { x1: "10", x2: "8", y1: "3", y2: "21", key: "1ggp8o" }],
@@ -221,7 +240,7 @@ const _n = _("Hash", [
221
240
  * This source code is licensed under the ISC license.
222
241
  * See the LICENSE file in the root directory of this source tree.
223
242
  */
224
- const Hn = _("House", [
243
+ const $n = _("House", [
225
244
  ["path", { d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8", key: "5wwlr5" }],
226
245
  [
227
246
  "path",
@@ -237,7 +256,7 @@ const Hn = _("House", [
237
256
  * This source code is licensed under the ISC license.
238
257
  * See the LICENSE file in the root directory of this source tree.
239
258
  */
240
- const $n = _("ListEnd", [
259
+ const Pn = _("ListEnd", [
241
260
  ["path", { d: "M16 12H3", key: "1a2rj7" }],
242
261
  ["path", { d: "M16 6H3", key: "1wxfjs" }],
243
262
  ["path", { d: "M10 18H3", key: "13769t" }],
@@ -250,7 +269,7 @@ const $n = _("ListEnd", [
250
269
  * This source code is licensed under the ISC license.
251
270
  * See the LICENSE file in the root directory of this source tree.
252
271
  */
253
- const Pn = _("ListStart", [
272
+ const Bn = _("ListStart", [
254
273
  ["path", { d: "M16 12H3", key: "1a2rj7" }],
255
274
  ["path", { d: "M16 18H3", key: "12xzn7" }],
256
275
  ["path", { d: "M10 6H3", key: "lf8lx7" }],
@@ -263,7 +282,7 @@ const Pn = _("ListStart", [
263
282
  * This source code is licensed under the ISC license.
264
283
  * See the LICENSE file in the root directory of this source tree.
265
284
  */
266
- const Bn = _("ListX", [
285
+ const Un = _("ListX", [
267
286
  ["path", { d: "M11 12H3", key: "51ecnj" }],
268
287
  ["path", { d: "M16 6H3", key: "1wxfjs" }],
269
288
  ["path", { d: "M16 18H3", key: "12xzn7" }],
@@ -302,7 +321,7 @@ const Ea = _("Map", [
302
321
  * This source code is licensed under the ISC license.
303
322
  * See the LICENSE file in the root directory of this source tree.
304
323
  */
305
- const Un = _("MessageSquareMore", [
324
+ const Gn = _("MessageSquareMore", [
306
325
  ["path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z", key: "1lielz" }],
307
326
  ["path", { d: "M8 10h.01", key: "19clt8" }],
308
327
  ["path", { d: "M12 10h.01", key: "1nrarc" }],
@@ -314,7 +333,7 @@ const Un = _("MessageSquareMore", [
314
333
  * This source code is licensed under the ISC license.
315
334
  * See the LICENSE file in the root directory of this source tree.
316
335
  */
317
- const Gn = _("Network", [
336
+ const Qn = _("Network", [
318
337
  ["rect", { x: "16", y: "16", width: "6", height: "6", rx: "1", key: "4q2zg0" }],
319
338
  ["rect", { x: "2", y: "16", width: "6", height: "6", rx: "1", key: "8cvhb9" }],
320
339
  ["rect", { x: "9", y: "2", width: "6", height: "6", rx: "1", key: "1egb70" }],
@@ -327,7 +346,7 @@ const Gn = _("Network", [
327
346
  * This source code is licensed under the ISC license.
328
347
  * See the LICENSE file in the root directory of this source tree.
329
348
  */
330
- const Qn = _("Play", [
349
+ const Jn = _("Play", [
331
350
  ["polygon", { points: "6 3 20 12 6 21 6 3", key: "1oa8hb" }]
332
351
  ]);
333
352
  /**
@@ -336,7 +355,7 @@ const Qn = _("Play", [
336
355
  * This source code is licensed under the ISC license.
337
356
  * See the LICENSE file in the root directory of this source tree.
338
357
  */
339
- const Jn = _("Plug2", [
358
+ const Kn = _("Plug2", [
340
359
  ["path", { d: "M9 2v6", key: "17ngun" }],
341
360
  ["path", { d: "M15 2v6", key: "s7yy2p" }],
342
361
  ["path", { d: "M12 17v5", key: "bb1du9" }],
@@ -349,7 +368,7 @@ const Jn = _("Plug2", [
349
368
  * This source code is licensed under the ISC license.
350
369
  * See the LICENSE file in the root directory of this source tree.
351
370
  */
352
- const Kn = _("Save", [
371
+ const Wn = _("Save", [
353
372
  [
354
373
  "path",
355
374
  {
@@ -383,7 +402,7 @@ const Aa = _("Shapes", [
383
402
  * This source code is licensed under the ISC license.
384
403
  * See the LICENSE file in the root directory of this source tree.
385
404
  */
386
- const Wn = _("ShieldQuestion", [
405
+ const Yn = _("ShieldQuestion", [
387
406
  [
388
407
  "path",
389
408
  {
@@ -400,7 +419,7 @@ const Wn = _("ShieldQuestion", [
400
419
  * This source code is licensed under the ISC license.
401
420
  * See the LICENSE file in the root directory of this source tree.
402
421
  */
403
- const Yn = _("Sigma", [
422
+ const Xn = _("Sigma", [
404
423
  [
405
424
  "path",
406
425
  {
@@ -415,7 +434,7 @@ const Yn = _("Sigma", [
415
434
  * This source code is licensed under the ISC license.
416
435
  * See the LICENSE file in the root directory of this source tree.
417
436
  */
418
- const Xn = _("SwatchBook", [
437
+ const Zn = _("SwatchBook", [
419
438
  ["path", { d: "M11 17a4 4 0 0 1-8 0V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2Z", key: "1ldrpk" }],
420
439
  ["path", { d: "M16.7 13H19a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H7", key: "11i5po" }],
421
440
  ["path", { d: "M 7 17h.01", key: "1euzgo" }],
@@ -433,7 +452,7 @@ const Xn = _("SwatchBook", [
433
452
  * This source code is licensed under the ISC license.
434
453
  * See the LICENSE file in the root directory of this source tree.
435
454
  */
436
- const Zn = _("Tag", [
455
+ const el = _("Tag", [
437
456
  [
438
457
  "path",
439
458
  {
@@ -449,7 +468,7 @@ const Zn = _("Tag", [
449
468
  * This source code is licensed under the ISC license.
450
469
  * See the LICENSE file in the root directory of this source tree.
451
470
  */
452
- const el = _("ToggleLeft", [
471
+ const sl = _("ToggleLeft", [
453
472
  ["rect", { width: "20", height: "12", x: "2", y: "6", rx: "6", ry: "6", key: "f2vt7d" }],
454
473
  ["circle", { cx: "8", cy: "12", r: "2", key: "1nvbw3" }]
455
474
  ]);
@@ -470,7 +489,7 @@ const Qs = _("Type", [
470
489
  * This source code is licensed under the ISC license.
471
490
  * See the LICENSE file in the root directory of this source tree.
472
491
  */
473
- const sl = _("User", [
492
+ const al = _("User", [
474
493
  ["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
475
494
  ["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
476
495
  ]);
@@ -486,14 +505,14 @@ function Va(s) {
486
505
  var r;
487
506
  return {
488
507
  ...l,
489
- cards: (r = l.cards) == null ? void 0 : r.map((u) => al(u))
508
+ cards: (r = l.cards) == null ? void 0 : r.map((u) => tl(u))
490
509
  };
491
510
  })
492
511
  };
493
512
  })
494
513
  };
495
514
  }
496
- function al(s) {
515
+ function tl(s) {
497
516
  var n, a, t, l;
498
517
  return {
499
518
  ...s,
@@ -508,12 +527,12 @@ function al(s) {
508
527
  }))
509
528
  }
510
529
  },
511
- customCfg: tl(s.customCfg),
530
+ customCfg: nl(s.customCfg),
512
531
  // if customCfg is present, clean it, otherwise return null{
513
532
  data: []
514
533
  };
515
534
  }
516
- function tl(s) {
535
+ function nl(s) {
517
536
  var n, a;
518
537
  return s ? {
519
538
  ...s,
@@ -527,7 +546,7 @@ function tl(s) {
527
546
  }
528
547
  } : null;
529
548
  }
530
- async function nl(s, n, a, t) {
549
+ async function ll(s, n, a, t) {
531
550
  if (!t)
532
551
  return null;
533
552
  const l = JSON.stringify(n);
@@ -551,19 +570,19 @@ async function Is(s, n) {
551
570
  operation: "update"
552
571
  });
553
572
  }
554
- async function ll(s, n) {
573
+ async function rl(s, n) {
555
574
  return n ? await Ds("https://semaphor.cloud/api/v1/lens", n, {
556
575
  operation: "delete",
557
576
  lensId: s
558
577
  }) : null;
559
578
  }
560
- function rl() {
579
+ function il() {
561
580
  const [s, n] = q(""), [a, t] = q(!1), l = O((C) => C.lenses), { setLenses: r, setSelectedLensId: u } = fs(), [i, o] = q(!1), [x, c] = q(!1), j = O((C) => C.dashboard), g = O((C) => C.filterValues), { authToken: m } = Ie();
562
581
  async function f() {
563
582
  o(!0);
564
583
  const C = Va(
565
584
  j
566
- ), D = await nl(
585
+ ), D = await ll(
567
586
  s,
568
587
  C,
569
588
  g,
@@ -571,8 +590,8 @@ function rl() {
571
590
  );
572
591
  D && (r([...l || [], D]), u(D.id), c(!1)), o(!1);
573
592
  }
574
- return /* @__PURE__ */ e.jsxs(Ts, { open: x, onOpenChange: c, children: [
575
- /* @__PURE__ */ e.jsx(Fs, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
593
+ return /* @__PURE__ */ e.jsxs(Fs, { open: x, onOpenChange: c, children: [
594
+ /* @__PURE__ */ e.jsx(Ts, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
576
595
  I,
577
596
  {
578
597
  variant: "secondary",
@@ -618,13 +637,13 @@ function rl() {
618
637
  ] })
619
638
  ] });
620
639
  }
621
- function il() {
640
+ function ol() {
622
641
  const [s, n] = q(!1), a = O((c) => c.lenses), t = O((c) => c.selectedLensId), { setLenses: l, setSelectedLensId: r } = fs(), { authToken: u } = Ie();
623
642
  async function i(c) {
624
643
  r(c);
625
644
  }
626
645
  async function o(c) {
627
- if (await ll(c, u == null ? void 0 : u.accessToken)) {
646
+ if (await rl(c, u == null ? void 0 : u.accessToken)) {
628
647
  const g = a == null ? void 0 : a.filter((m) => m.id !== c);
629
648
  l(g || []), r("original");
630
649
  }
@@ -653,7 +672,7 @@ function il() {
653
672
  }
654
673
  }
655
674
  return /* @__PURE__ */ e.jsxs(ia, { open: s, onOpenChange: n, children: [
656
- /* @__PURE__ */ e.jsx(oa, { asChild: !0, children: /* @__PURE__ */ e.jsx(I, { variant: "ghost", className: "h-7 p-2", children: /* @__PURE__ */ e.jsx(qn, { className: "h-4 w-4", strokeWidth: 1.5 }) }) }),
675
+ /* @__PURE__ */ e.jsx(oa, { asChild: !0, children: /* @__PURE__ */ e.jsx(I, { variant: "ghost", className: "h-7 p-2", children: /* @__PURE__ */ e.jsx(Rn, { className: "h-4 w-4", strokeWidth: 1.5 }) }) }),
657
676
  /* @__PURE__ */ e.jsxs(ca, { align: "end", className: "w-60", children: [
658
677
  /* @__PURE__ */ e.jsx(rt, { className: "px-3", children: "Lenses" }),
659
678
  /* @__PURE__ */ e.jsx(it, {}),
@@ -673,7 +692,7 @@ function il() {
673
692
  /* @__PURE__ */ e.jsx("p", { children: c.name }),
674
693
  /* @__PURE__ */ e.jsxs("span", { className: "flex items-center gap-3", children: [
675
694
  /* @__PURE__ */ e.jsx(
676
- Hn,
695
+ $n,
677
696
  {
678
697
  onClick: (j) => {
679
698
  j.preventDefault(), x(c);
@@ -709,7 +728,7 @@ function il() {
709
728
  ] })
710
729
  ] });
711
730
  }
712
- function ol({
731
+ function cl({
713
732
  iconClassName: s
714
733
  }) {
715
734
  const [n, a] = q(!1), { authToken: t } = Ie(), l = O((i) => i.theme), r = O((i) => i.filterValues);
@@ -744,7 +763,7 @@ function ol({
744
763
  }
745
764
  );
746
765
  }
747
- function cl() {
766
+ function dl() {
748
767
  q(!1);
749
768
  const { authToken: s } = Ie();
750
769
  O((p) => p.theme);
@@ -762,11 +781,11 @@ function cl() {
762
781
  (p) => p.actions.setShowFilters
763
782
  ), { addFrame: f, setSelectedFrameId: C } = O(
764
783
  (p) => p.actions
765
- ), { getSelectedSheet: D, setIsDashboardEditing: y, setShowDashboardJSON: M } = O((p) => p.actions), T = D(), { tenantId: V, endUserId: N } = zs(
784
+ ), { getSelectedSheet: D, setIsDashboardEditing: y, setShowDashboardJSON: M } = O((p) => p.actions), F = D(), { tenantId: V, endUserId: N } = zs(
766
785
  () => dt(s == null ? void 0 : s.accessToken),
767
786
  [s == null ? void 0 : s.accessToken]
768
- ), F = zs(() => V || N, [V, N]), E = () => {
769
- if (!r || !T) return;
787
+ ), T = zs(() => V || N, [V, N]), E = () => {
788
+ if (!r || !F) return;
770
789
  const p = {
771
790
  connectionId: u,
772
791
  id: Ze(),
@@ -788,7 +807,7 @@ function cl() {
788
807
  cards: [p],
789
808
  activeCardId: p.id
790
809
  };
791
- f(T.id, z), C(z.id);
810
+ f(F.id, z), C(z.id);
792
811
  }, h = () => {
793
812
  y(!0);
794
813
  };
@@ -811,9 +830,9 @@ function cl() {
811
830
  children: [
812
831
  !c && /* @__PURE__ */ e.jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ e.jsx(H, { children: t == null ? void 0 : t.name }) }),
813
832
  /* @__PURE__ */ e.jsxs("div", { className: "flex gap-2", children: [
814
- /* @__PURE__ */ e.jsx(ol, {}),
815
- r && !c && F && /* @__PURE__ */ e.jsx(rl, {}),
816
- !c && F && /* @__PURE__ */ e.jsx(il, {}),
833
+ /* @__PURE__ */ e.jsx(cl, {}),
834
+ r && !c && T && /* @__PURE__ */ e.jsx(il, {}),
835
+ !c && T && /* @__PURE__ */ e.jsx(ol, {}),
817
836
  r && !c && /* @__PURE__ */ e.jsxs(
818
837
  I,
819
838
  {
@@ -851,7 +870,7 @@ function cl() {
851
870
  children: /* @__PURE__ */ e.jsx(Xe, { className: "h-4 w-4", strokeWidth: 1.5 })
852
871
  }
853
872
  ),
854
- r && !c && F && /* @__PURE__ */ e.jsx(
873
+ r && !c && T && /* @__PURE__ */ e.jsx(
855
874
  I,
856
875
  {
857
876
  className: "h-7 p-2",
@@ -859,7 +878,7 @@ function cl() {
859
878
  disabled: i,
860
879
  onClick: v,
861
880
  size: "sm",
862
- children: /* @__PURE__ */ e.jsx(Kn, { className: "h-4 w-4", strokeWidth: 1.5 })
881
+ children: /* @__PURE__ */ e.jsx(Wn, { className: "h-4 w-4", strokeWidth: 1.5 })
863
882
  }
864
883
  ),
865
884
  !j && !c && r && /* @__PURE__ */ e.jsx(
@@ -895,15 +914,15 @@ function Je({
895
914
  const j = t ? "Loading..." : l ? "Error" : a;
896
915
  function g() {
897
916
  if (s === "Connection")
898
- return /* @__PURE__ */ e.jsx(Jn, { className: "size-4 rotate-90" });
917
+ return /* @__PURE__ */ e.jsx(Kn, { className: "size-4 rotate-90" });
899
918
  if (s === "Database")
900
- return /* @__PURE__ */ e.jsx(En, { className: "size-4" });
919
+ return /* @__PURE__ */ e.jsx(An, { className: "size-4" });
901
920
  if (s === "Schema")
902
- return /* @__PURE__ */ e.jsx(Gn, { className: "size-4" });
921
+ return /* @__PURE__ */ e.jsx(Qn, { className: "size-4" });
903
922
  if (s === "Table")
904
923
  return /* @__PURE__ */ e.jsx(qs, { className: "size-4" });
905
924
  if (s === "Model")
906
- return /* @__PURE__ */ e.jsx(Tn, { className: "size-4" });
925
+ return /* @__PURE__ */ e.jsx(Fn, { className: "size-4" });
907
926
  }
908
927
  return /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
909
928
  x && /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: r ? /* @__PURE__ */ e.jsxs(ma, { children: [
@@ -937,7 +956,7 @@ function Je({
937
956
  ] })
938
957
  ] });
939
958
  }
940
- function dl({ column: s }) {
959
+ function ul({ column: s }) {
941
960
  const [n, a] = q(!1), t = d((m) => m.selectedTableName), l = d(
942
961
  (m) => m.selectedSchemaName
943
962
  ), r = d(
@@ -946,7 +965,7 @@ function dl({ column: s }) {
946
965
  function j(m, f) {
947
966
  var M;
948
967
  const C = xa(m, u, f), D = (M = i == null ? void 0 : i.find(
949
- (T) => T.id === r
968
+ (F) => F.id === r
950
969
  )) == null ? void 0 : M.name;
951
970
  o(C);
952
971
  const y = pa(
@@ -1020,12 +1039,12 @@ function qa({ column: s }) {
1020
1039
  /* @__PURE__ */ e.jsx(Qs, { className: "size-3" })
1021
1040
  ) : fa.includes(s.data_type.toLowerCase()) ? (
1022
1041
  //
1023
- /* @__PURE__ */ e.jsx(_n, { className: "size-3" })
1024
- ) : xt.includes(s.data_type.toLowerCase()) ? /* @__PURE__ */ e.jsx(pt, { className: "size-3" }) : ft.includes(s.data_type.toLowerCase()) ? /* @__PURE__ */ e.jsx(el, { className: "size-3" }) : /* @__PURE__ */ e.jsx(Wn, { className: "size-3" }) }),
1042
+ /* @__PURE__ */ e.jsx(Hn, { className: "size-3" })
1043
+ ) : xt.includes(s.data_type.toLowerCase()) ? /* @__PURE__ */ e.jsx(pt, { className: "size-3" }) : ft.includes(s.data_type.toLowerCase()) ? /* @__PURE__ */ e.jsx(sl, { className: "size-3" }) : s.data_type.toLowerCase() === "json" ? /* @__PURE__ */ e.jsx(Tn, { className: "size-3" }) : /* @__PURE__ */ e.jsx(Yn, { className: "size-3" }) }),
1025
1044
  /* @__PURE__ */ e.jsx(ha, { children: /* @__PURE__ */ e.jsx("p", { className: "font-mono text-xs", children: s.data_type }) })
1026
1045
  ] });
1027
1046
  }
1028
- function ul({
1047
+ function ml({
1029
1048
  schemaName: s,
1030
1049
  tableName: n,
1031
1050
  columns: a,
@@ -1053,7 +1072,7 @@ function ul({
1053
1072
  )) == null ? void 0 : w.name, z = pa(v, ce(s), ce(n), p);
1054
1073
  z && (C(z), g(!0));
1055
1074
  }
1056
- function T() {
1075
+ function F() {
1057
1076
  return (c == null ? void 0 : c.find(
1058
1077
  (h) => h.connectinonId === r && h.tableName === o
1059
1078
  )) !== void 0;
@@ -1097,7 +1116,7 @@ function ul({
1097
1116
  let p = h;
1098
1117
  return ((R) => /[A-Z]/.test(R))(n) && (p = p.split(".").map(($) => `"${$}"`).join(".")), p;
1099
1118
  }
1100
- function F() {
1119
+ function T() {
1101
1120
  const h = N();
1102
1121
  f(!1);
1103
1122
  const v = D === "MSSQL" ? `SELECT top 10 * FROM ${h}` : `SELECT * FROM ${h} LIMIT 10`;
@@ -1112,8 +1131,8 @@ function ul({
1112
1131
  /* @__PURE__ */ e.jsx(
1113
1132
  ga,
1114
1133
  {
1115
- title: `${T() ? "Remove from" : "Add to"} AI Scope`,
1116
- pressed: T(),
1134
+ title: `${F() ? "Remove from" : "Add to"} AI Scope`,
1135
+ pressed: F(),
1117
1136
  onPressedChange: V,
1118
1137
  variant: "outline",
1119
1138
  className: "h-9 px-2",
@@ -1121,8 +1140,8 @@ function ul({
1121
1140
  gt,
1122
1141
  {
1123
1142
  className: W("size-4", {
1124
- "text-primary": T(),
1125
- "text-muted-foreground": !T()
1143
+ "text-primary": F(),
1144
+ "text-muted-foreground": !F()
1126
1145
  })
1127
1146
  }
1128
1147
  )
@@ -1132,12 +1151,12 @@ function ul({
1132
1151
  I,
1133
1152
  {
1134
1153
  disabled: t !== "Success",
1135
- onClick: F,
1154
+ onClick: T,
1136
1155
  size: "sm",
1137
1156
  variant: "secondary",
1138
1157
  className: "flex",
1139
1158
  children: [
1140
- t !== "Success" ? /* @__PURE__ */ e.jsx(He, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" }) : /* @__PURE__ */ e.jsx(Xn, { className: "mr-2 size-4" }),
1159
+ t !== "Success" ? /* @__PURE__ */ e.jsx(He, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" }) : /* @__PURE__ */ e.jsx(Zn, { className: "mr-2 size-4" }),
1141
1160
  "Top 10"
1142
1161
  ]
1143
1162
  }
@@ -1151,7 +1170,7 @@ function ul({
1151
1170
  variant: "secondary",
1152
1171
  className: "flex",
1153
1172
  children: [
1154
- t !== "Success" ? /* @__PURE__ */ e.jsx(He, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" }) : /* @__PURE__ */ e.jsx(Yn, { className: "mr-2 size-4" }),
1173
+ t !== "Success" ? /* @__PURE__ */ e.jsx(He, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" }) : /* @__PURE__ */ e.jsx(Xn, { className: "mr-2 size-4" }),
1155
1174
  "Count"
1156
1175
  ]
1157
1176
  }
@@ -1182,7 +1201,7 @@ function ul({
1182
1201
  {
1183
1202
  onClick: (v) => v.stopPropagation(),
1184
1203
  className: "flex items-center justify-end",
1185
- children: fa.includes(h.data_type) && /* @__PURE__ */ e.jsx(dl, { column: h })
1204
+ children: fa.includes(h.data_type) && /* @__PURE__ */ e.jsx(ul, { column: h })
1186
1205
  }
1187
1206
  )
1188
1207
  ]
@@ -1197,7 +1216,7 @@ function ul({
1197
1216
  ] });
1198
1217
  }
1199
1218
  function Pe(s, n) {
1200
- var Fe, ts, Qe, ns, ls;
1219
+ var Te, ts, Qe, ns, ls;
1201
1220
  let a = zs(() => [], []);
1202
1221
  const t = Ie().authToken || s, l = d(
1203
1222
  (S) => S.selectedConnectionId
@@ -1230,7 +1249,7 @@ function Pe(s, n) {
1230
1249
  return l && S ? !(S === "API" || S === "S3") : !1;
1231
1250
  }
1232
1251
  const {
1233
- data: T,
1252
+ data: F,
1234
1253
  isLoading: V,
1235
1254
  isError: N
1236
1255
  } = Se({
@@ -1242,7 +1261,7 @@ function Pe(s, n) {
1242
1261
  enabled: !!(t != null && t.accessToken)
1243
1262
  // Only fetch if authToken is present
1244
1263
  }), {
1245
- data: F,
1264
+ data: T,
1246
1265
  isLoading: E,
1247
1266
  isError: h
1248
1267
  } = Se({
@@ -1256,7 +1275,7 @@ function Pe(s, n) {
1256
1275
  ),
1257
1276
  enabled: !!(t != null && t.accessToken) && !!l
1258
1277
  // Only fetch if authToken is present
1259
- }), v = T == null ? void 0 : T.connections.find(
1278
+ }), v = F == null ? void 0 : F.connections.find(
1260
1279
  (S) => S.id === l
1261
1280
  ), p = v == null ? void 0 : v.type, z = (v == null ? void 0 : v.type) === "API" || (v == null ? void 0 : v.type) === "S3", {
1262
1281
  data: w,
@@ -1362,7 +1381,7 @@ function Pe(s, n) {
1362
1381
  g,
1363
1382
  v
1364
1383
  ]);
1365
- const De = (v == null ? void 0 : v.type) === "API" ? (Fe = v == null ? void 0 : v.type) == null ? void 0 : Fe.toLowerCase() : o || "", Te = z ? "" : i || "";
1384
+ const De = (v == null ? void 0 : v.type) === "API" ? (Te = v == null ? void 0 : v.type) == null ? void 0 : Te.toLowerCase() : o || "", Fe = z ? "" : i || "";
1366
1385
  function Ve(S) {
1367
1386
  m(S), f("");
1368
1387
  }
@@ -1379,13 +1398,13 @@ function Pe(s, n) {
1379
1398
  ...S,
1380
1399
  data_type: S.data_type.toLowerCase()
1381
1400
  }))), G && (a = []), (ye || N) && (a = []);
1382
- const Re = T == null ? void 0 : T.connections.map(
1401
+ const Re = F == null ? void 0 : F.connections.map(
1383
1402
  (S) => ({
1384
1403
  id: S.id,
1385
1404
  name: S.name,
1386
1405
  type: S.type
1387
1406
  })
1388
- ), as = (ls = F == null ? void 0 : F.datamodels) == null ? void 0 : ls.map((S) => ({
1407
+ ), as = (ls = T == null ? void 0 : T.datamodels) == null ? void 0 : ls.map((S) => ({
1389
1408
  id: S.id,
1390
1409
  name: S.name
1391
1410
  })), _e = w == null ? void 0 : w.databases.map((S) => ({
@@ -1420,7 +1439,7 @@ function Pe(s, n) {
1420
1439
  isNonDbConnection: z,
1421
1440
  connectionType: p,
1422
1441
  tableName: De,
1423
- schemaName: Te,
1442
+ schemaName: Fe,
1424
1443
  handleConnectionChange: X,
1425
1444
  handleDatamodelChange: qe,
1426
1445
  handleDatabaseChange: ve,
@@ -1454,10 +1473,10 @@ function Ra({
1454
1473
  isModelsError: D,
1455
1474
  isDatabasesLoadingOrFetching: y,
1456
1475
  isDatabaseError: M,
1457
- isSchemaLoadingOrFetching: T,
1476
+ isSchemaLoadingOrFetching: F,
1458
1477
  isSchemaError: V,
1459
1478
  isColumnsError: N,
1460
- isColumnsLoadingOrFetching: F,
1479
+ isColumnsLoadingOrFetching: T,
1461
1480
  isTableLoadingOrFetching: E,
1462
1481
  isTableError: h,
1463
1482
  connectionType: v,
@@ -1471,12 +1490,12 @@ function Ra({
1471
1490
  } = Pe();
1472
1491
  function U() {
1473
1492
  return s ? s(Y, G, g) : /* @__PURE__ */ e.jsx(
1474
- ul,
1493
+ ml,
1475
1494
  {
1476
1495
  schemaName: Y,
1477
1496
  tableName: G,
1478
1497
  columns: g,
1479
- status: F ? "Loading..." : N ? "Error" : "Success"
1498
+ status: T ? "Loading..." : N ? "Error" : "Success"
1480
1499
  }
1481
1500
  );
1482
1501
  }
@@ -1529,7 +1548,7 @@ function Ra({
1529
1548
  {
1530
1549
  onChange: R,
1531
1550
  isError: V,
1532
- isLoading: T,
1551
+ isLoading: F,
1533
1552
  items: x,
1534
1553
  value: l || "",
1535
1554
  title: "Schema"
@@ -1584,14 +1603,14 @@ function Ra({
1584
1603
  variant: "secondary",
1585
1604
  className: "w-full",
1586
1605
  children: [
1587
- /* @__PURE__ */ e.jsx(Un, { className: "mr-2 size-4" }),
1606
+ /* @__PURE__ */ e.jsx(Gn, { className: "mr-2 size-4" }),
1588
1607
  "Help"
1589
1608
  ]
1590
1609
  }
1591
1610
  ) })
1592
1611
  ] });
1593
1612
  }
1594
- function ml(s) {
1613
+ function hl(s) {
1595
1614
  const n = s.toUpperCase().indexOf("WHERE"), a = s.toUpperCase().indexOf("GROUP BY"), t = s.toUpperCase().indexOf("LIMIT"), l = s.toUpperCase().indexOf("ORDER BY");
1596
1615
  let r = s.length;
1597
1616
  if (l !== -1 && (r = l), t !== -1 && t < r && (r = t), n !== -1) {
@@ -1607,14 +1626,14 @@ function ml(s) {
1607
1626
  return `${u} {{ filters | where }} ${i}`;
1608
1627
  }
1609
1628
  }
1610
- function hl({
1629
+ function xl({
1611
1630
  error: s,
1612
1631
  setShowAIDialog: n,
1613
1632
  setUserInputforAI: a,
1614
1633
  setTriggerAIRun: t
1615
1634
  }) {
1616
1635
  return /* @__PURE__ */ e.jsxs(Rs, { openDelay: 0, children: [
1617
- /* @__PURE__ */ e.jsx(_s, { asChild: !0, children: /* @__PURE__ */ e.jsx(I, { variant: "link", className: "h-5 p-0", children: /* @__PURE__ */ e.jsx(Ln, { className: "h-4 w-4 text-red-500" }) }) }),
1636
+ /* @__PURE__ */ e.jsx(_s, { asChild: !0, children: /* @__PURE__ */ e.jsx(I, { variant: "link", className: "h-5 p-0", children: /* @__PURE__ */ e.jsx(Mn, { className: "h-4 w-4 text-red-500" }) }) }),
1618
1637
  /* @__PURE__ */ e.jsx(
1619
1638
  Hs,
1620
1639
  {
@@ -1631,7 +1650,7 @@ function hl({
1631
1650
  size: "sm",
1632
1651
  variant: "outline",
1633
1652
  children: [
1634
- /* @__PURE__ */ e.jsx(Rn, { className: "mr-2 h-4 w-4" }),
1653
+ /* @__PURE__ */ e.jsx(_n, { className: "mr-2 h-4 w-4" }),
1635
1654
  "Debug with AI"
1636
1655
  ]
1637
1656
  }
@@ -1641,7 +1660,7 @@ function hl({
1641
1660
  )
1642
1661
  ] });
1643
1662
  }
1644
- const xl = `
1663
+ const pl = `
1645
1664
 
1646
1665
  Use the following syntax to create a chart query. Please replace the x-axis, y-axis, stack-by, label, and measure with the actual column names of the table.
1647
1666
 
@@ -1688,7 +1707,7 @@ SELECT label, measure FROM table
1688
1707
  - Label - Category
1689
1708
  - Measure - Number
1690
1709
  `;
1691
- function pl({
1710
+ function fl({
1692
1711
  open: s,
1693
1712
  setOpen: n,
1694
1713
  userInput: a,
@@ -1696,15 +1715,15 @@ function pl({
1696
1715
  triggerAIRun: l,
1697
1716
  setTriggerAIRun: r
1698
1717
  }) {
1699
- const u = Os(null), i = Os(null), { authToken: o } = Ie(), [x, c] = q(!1), j = d((k) => k.actions.setCardSql), g = O((k) => k.dashboard.baseQueries), m = d((k) => k.actions.setRunSql), f = d((k) => k.actions.setCardType), [C, D] = q([]), y = d((k) => k.currentColumns), M = d((k) => k.card.sql), T = d((k) => k.selectedTableName), V = `
1718
+ const u = Os(null), i = Os(null), { authToken: o } = Ie(), [x, c] = q(!1), j = d((k) => k.actions.setCardSql), g = O((k) => k.dashboard.baseQueries), m = d((k) => k.actions.setRunSql), f = d((k) => k.actions.setCardType), [C, D] = q([]), y = d((k) => k.currentColumns), M = d((k) => k.card.sql), F = d((k) => k.selectedTableName), V = `
1700
1719
  ${a}
1701
1720
 
1702
- Database Query Dialect: ${T === "api" || T === "s3" ? "DuckDb" : ""}
1703
- Table Name: ${T}
1721
+ Database Query Dialect: ${F === "api" || F === "s3" ? "DuckDb" : ""}
1722
+ Table Name: ${F}
1704
1723
  Table Columns: ${y == null ? void 0 : y.map((k) => `${k.column_name} | ${k.data_type}`).join(", ")}
1705
1724
  User SQL: ${M}
1706
1725
  ${g && `Base Queries: ${JSON.stringify(g)} `}`, N = ` When the user asks for a specific chart please use the following query structure to generate the chart query. Do not make up the column names. Use only the table columns provided above for the query. Replace x-axis, y-axis, and lables with the appropriate column names.
1707
- Visual Query Syntax: ${xl}`, { data: F, isLoading: E, isFetching: h, isError: v, refetch: p } = Se({
1726
+ Visual Query Syntax: ${pl}`, { data: T, isLoading: E, isFetching: h, isError: v, refetch: p } = Se({
1708
1727
  queryKey: ["ai-query"],
1709
1728
  queryFn: () => Le(
1710
1729
  "https://semaphor.cloud/api/v1/ai",
@@ -1738,8 +1757,8 @@ function pl({
1738
1757
  return !0;
1739
1758
  }
1740
1759
  se(() => {
1741
- F && D((k) => [...k, { role: "ai", content: F.response }]);
1742
- }, [F]), se(() => {
1760
+ T && D((k) => [...k, { role: "ai", content: T.response }]);
1761
+ }, [T]), se(() => {
1743
1762
  const k = setTimeout(() => {
1744
1763
  var P;
1745
1764
  i.current && (i.current.scroll({
@@ -1817,7 +1836,7 @@ function pl({
1817
1836
  {
1818
1837
  className: "flex items-start rounded-md bg-muted p-3 text-sm",
1819
1838
  children: [
1820
- /* @__PURE__ */ e.jsx(sl, { className: "mr-2 h-5 w-5" }),
1839
+ /* @__PURE__ */ e.jsx(al, { className: "mr-2 h-5 w-5" }),
1821
1840
  /* @__PURE__ */ e.jsx("div", { children: k.content })
1822
1841
  ]
1823
1842
  },
@@ -1827,13 +1846,13 @@ function pl({
1827
1846
  {
1828
1847
  className: "w-full overflow-auto py-1",
1829
1848
  components: Y,
1830
- children: F == null ? void 0 : F.response.replace(/DuckDB/gi, "Semaphor")
1849
+ children: T == null ? void 0 : T.response.replace(/DuckDB/gi, "Semaphor")
1831
1850
  },
1832
1851
  P
1833
1852
  ) : /* @__PURE__ */ e.jsx("div", {}, P));
1834
1853
  }
1835
- return /* @__PURE__ */ e.jsxs(Ts, { open: s, onOpenChange: n, children: [
1836
- /* @__PURE__ */ e.jsx(Fs, { asChild: !0, children: /* @__PURE__ */ e.jsx(
1854
+ return /* @__PURE__ */ e.jsxs(Fs, { open: s, onOpenChange: n, children: [
1855
+ /* @__PURE__ */ e.jsx(Ts, { asChild: !0, children: /* @__PURE__ */ e.jsx(
1837
1856
  I,
1838
1857
  {
1839
1858
  size: "sm",
@@ -1909,10 +1928,10 @@ var _a = {
1909
1928
  className: void 0,
1910
1929
  style: void 0,
1911
1930
  attr: void 0
1912
- }, aa = Oe.createContext && /* @__PURE__ */ Oe.createContext(_a), fl = ["attr", "size", "title"];
1913
- function gl(s, n) {
1931
+ }, aa = Oe.createContext && /* @__PURE__ */ Oe.createContext(_a), gl = ["attr", "size", "title"];
1932
+ function jl(s, n) {
1914
1933
  if (s == null) return {};
1915
- var a = jl(s, n), t, l;
1934
+ var a = bl(s, n), t, l;
1916
1935
  if (Object.getOwnPropertySymbols) {
1917
1936
  var r = Object.getOwnPropertySymbols(s);
1918
1937
  for (l = 0; l < r.length; l++)
@@ -1920,7 +1939,7 @@ function gl(s, n) {
1920
1939
  }
1921
1940
  return a;
1922
1941
  }
1923
- function jl(s, n) {
1942
+ function bl(s, n) {
1924
1943
  if (s == null) return {};
1925
1944
  var a = {};
1926
1945
  for (var t in s)
@@ -1954,21 +1973,21 @@ function ps(s) {
1954
1973
  for (var n = 1; n < arguments.length; n++) {
1955
1974
  var a = arguments[n] != null ? arguments[n] : {};
1956
1975
  n % 2 ? ta(Object(a), !0).forEach(function(t) {
1957
- bl(s, t, a[t]);
1976
+ yl(s, t, a[t]);
1958
1977
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(a)) : ta(Object(a)).forEach(function(t) {
1959
1978
  Object.defineProperty(s, t, Object.getOwnPropertyDescriptor(a, t));
1960
1979
  });
1961
1980
  }
1962
1981
  return s;
1963
1982
  }
1964
- function bl(s, n, a) {
1965
- return n = yl(n), n in s ? Object.defineProperty(s, n, { value: a, enumerable: !0, configurable: !0, writable: !0 }) : s[n] = a, s;
1983
+ function yl(s, n, a) {
1984
+ return n = vl(n), n in s ? Object.defineProperty(s, n, { value: a, enumerable: !0, configurable: !0, writable: !0 }) : s[n] = a, s;
1966
1985
  }
1967
- function yl(s) {
1968
- var n = vl(s, "string");
1986
+ function vl(s) {
1987
+ var n = Cl(s, "string");
1969
1988
  return typeof n == "symbol" ? n : n + "";
1970
1989
  }
1971
- function vl(s, n) {
1990
+ function Cl(s, n) {
1972
1991
  if (typeof s != "object" || !s) return s;
1973
1992
  var a = s[Symbol.toPrimitive];
1974
1993
  if (a !== void 0) {
@@ -1984,17 +2003,17 @@ function Ha(s) {
1984
2003
  }, n.attr), Ha(n.child)));
1985
2004
  }
1986
2005
  function ge(s) {
1987
- return (n) => /* @__PURE__ */ Oe.createElement(Cl, xs({
2006
+ return (n) => /* @__PURE__ */ Oe.createElement(Nl, xs({
1988
2007
  attr: ps({}, s.attr)
1989
2008
  }, n), Ha(s.child));
1990
2009
  }
1991
- function Cl(s) {
2010
+ function Nl(s) {
1992
2011
  var n = (a) => {
1993
2012
  var {
1994
2013
  attr: t,
1995
2014
  size: l,
1996
2015
  title: r
1997
- } = s, u = gl(s, fl), i = l || a.size || "1em", o;
2016
+ } = s, u = jl(s, gl), i = l || a.size || "1em", o;
1998
2017
  return a.className && (o = a.className), s.className && (o = (o ? o + " " : "") + s.className), /* @__PURE__ */ Oe.createElement("svg", xs({
1999
2018
  stroke: "currentColor",
2000
2019
  fill: "currentColor",
@@ -2011,10 +2030,10 @@ function Cl(s) {
2011
2030
  };
2012
2031
  return aa !== void 0 ? /* @__PURE__ */ Oe.createElement(aa.Consumer, null, (a) => n(a)) : n(_a);
2013
2032
  }
2014
- function Nl(s) {
2033
+ function Sl(s) {
2015
2034
  return ge({ tag: "svg", attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M439.8 200.5c-7.7-30.9-22.3-54.2-53.4-54.2h-40.1v47.4c0 36.8-31.2 67.8-66.8 67.8H172.7c-29.2 0-53.4 25-53.4 54.3v101.8c0 29 25.2 46 53.4 54.3 33.8 9.9 66.3 11.7 106.8 0 26.9-7.8 53.4-23.5 53.4-54.3v-40.7H226.2v-13.6h160.2c31.1 0 42.6-21.7 53.4-54.2 11.2-33.5 10.7-65.7 0-108.6zM286.2 404c11.1 0 20.1 9.1 20.1 20.3 0 11.3-9 20.4-20.1 20.4-11 0-20.1-9.2-20.1-20.4.1-11.3 9.1-20.3 20.1-20.3zM167.8 248.1h106.8c29.7 0 53.4-24.5 53.4-54.3V91.9c0-29-24.4-50.7-53.4-55.6-35.8-5.9-74.7-5.6-106.8.1-45.2 8-53.4 24.7-53.4 55.6v40.7h106.9v13.6h-147c-31.1 0-58.3 18.7-66.8 54.2-9.8 40.7-10.2 66.1 0 108.6 7.6 31.6 25.7 54.2 56.8 54.2H101v-48.8c0-35.3 30.5-66.4 66.8-66.4zm-6.7-142.6c-11.1 0-20.1-9.1-20.1-20.3.1-11.3 9-20.4 20.1-20.4 11 0 20.1 9.2 20.1 20.4s-9 20.3-20.1 20.3z" }, child: [] }] })(s);
2016
2035
  }
2017
- function Sl({ sql: s }) {
2036
+ function wl({ sql: s }) {
2018
2037
  return /* @__PURE__ */ e.jsxs(Rs, { children: [
2019
2038
  /* @__PURE__ */ e.jsx(_s, { asChild: !0, children: /* @__PURE__ */ e.jsx(I, { variant: "link", className: "h-5 p-0", children: /* @__PURE__ */ e.jsx(Nt, { className: "h-4 w-4 text-muted-foreground" }) }) }),
2020
2039
  /* @__PURE__ */ e.jsx(
@@ -2030,19 +2049,19 @@ function Sl({ sql: s }) {
2030
2049
  )
2031
2050
  ] });
2032
2051
  }
2033
- function wl() {
2052
+ function kl() {
2034
2053
  const [s, n] = q({
2035
2054
  queryKey: [],
2036
2055
  queryData: null
2037
2056
  }), { theme: a } = St(), t = wt(), l = Os(), r = kt(), [u, i] = q(!1), [o, x] = q(!1), [c, j] = q(!1), [g, m] = q(""), [f, C] = q(!1), D = O((b) => b.selectedSheetId);
2038
2057
  O((b) => b.dashboard.baseQueries);
2039
- const y = d((b) => b.card), M = O((b) => b.theme), T = d((b) => b.isShowingVisual);
2058
+ const y = d((b) => b.card), M = O((b) => b.theme), F = d((b) => b.isShowingVisual);
2040
2059
  O((b) => b.onAcceptChanges);
2041
2060
  const V = d(
2042
2061
  (b) => b.selectedConnectionId
2043
2062
  ), N = d(
2044
2063
  (b) => b.selectedDatabaseName
2045
- ), F = d(
2064
+ ), T = d(
2046
2065
  (b) => b.selectedDatamodelId
2047
2066
  ), E = d(
2048
2067
  (b) => b.selectedSchemaName
@@ -2069,7 +2088,7 @@ function wl() {
2069
2088
  d(
2070
2089
  (b) => b.actions.setApplyFilters
2071
2090
  );
2072
- const be = d((b) => b.onClose), ye = d((b) => b.actions.setSqlGen), De = d((b) => b.runSql), Te = d((b) => b.actions.setRunSql), Ve = d((b) => b.actions.setCardCfg), ve = d(
2091
+ const be = d((b) => b.onClose), ye = d((b) => b.actions.setSqlGen), De = d((b) => b.runSql), Fe = d((b) => b.actions.setRunSql), Ve = d((b) => b.actions.setCardCfg), ve = d(
2073
2092
  (b) => b.actions.setIsSqlRunning
2074
2093
  ), {
2075
2094
  data: X,
@@ -2079,7 +2098,7 @@ function wl() {
2079
2098
  isError: _e,
2080
2099
  error: Ue,
2081
2100
  queryKey: Ge,
2082
- refetch: Fe
2101
+ refetch: Te
2083
2102
  } = $e(y);
2084
2103
  se(() => {
2085
2104
  if (X && (X.rowLimitExceeded && es.error("Row limit (10,000) exceeded. Refine your query.", {
@@ -2108,8 +2127,8 @@ function wl() {
2108
2127
  te,
2109
2128
  Ue
2110
2129
  ]), se(() => {
2111
- De && (Fe(), Te(!1));
2112
- }, [De, Fe, Te]);
2130
+ De && (Te(), Fe(!1));
2131
+ }, [De, Te, Fe]);
2113
2132
  function ts() {
2114
2133
  const b = t.getQueryData(Ge);
2115
2134
  s.queryData || n({
@@ -2142,17 +2161,17 @@ function wl() {
2142
2161
  }
2143
2162
  function ls() {
2144
2163
  let b = v;
2145
- v && !v.includes("{{") && (b = ml(v), ee(b));
2164
+ v && !v.includes("{{") && (b = hl(v), ee(b));
2146
2165
  const le = {
2147
2166
  ...y,
2148
2167
  lastSelectedSchema: E,
2149
- lastSelectedDatamodelId: F,
2168
+ lastSelectedDatamodelId: T,
2150
2169
  lastSelectedDatabase: N,
2151
2170
  lastSelectedTable: h,
2152
2171
  connectionId: V,
2153
- type: T ? y.type : "table",
2172
+ type: F ? y.type : "table",
2154
2173
  sql: b,
2155
- customCfg: T ? y.customCfg : null
2174
+ customCfg: F ? y.customCfg : null
2156
2175
  }, Ce = w.cards.map(
2157
2176
  (Ns) => Ns.id === y.id ? le : Ns
2158
2177
  ), Ne = {
@@ -2184,7 +2203,7 @@ function wl() {
2184
2203
  }), r.editor.setTheme("default"), b && r && b.addCommand(
2185
2204
  r.KeyMod.Shift | r.KeyCode.Enter,
2186
2205
  function() {
2187
- return Fe(), !1;
2206
+ return Te(), !1;
2188
2207
  }
2189
2208
  ), () => {
2190
2209
  };
@@ -2391,19 +2410,19 @@ function wl() {
2391
2410
  title: "Shift + Enter",
2392
2411
  disabled: qe || Re,
2393
2412
  onClick: () => {
2394
- Fe();
2413
+ Te();
2395
2414
  },
2396
2415
  className: "shrink-0",
2397
2416
  size: "sm",
2398
2417
  variant: "outline",
2399
2418
  children: [
2400
- qe || Re ? /* @__PURE__ */ e.jsx(He, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" }) : /* @__PURE__ */ e.jsx(Qn, { className: "mr-2 h-4 w-4" }),
2419
+ qe || Re ? /* @__PURE__ */ e.jsx(He, { className: "mr-2 h-4 w-4 animate-spin text-foreground/50" }) : /* @__PURE__ */ e.jsx(Jn, { className: "mr-2 h-4 w-4" }),
2401
2420
  "Run"
2402
2421
  ]
2403
2422
  }
2404
2423
  ),
2405
2424
  _e && /* @__PURE__ */ e.jsx(
2406
- hl,
2425
+ xl,
2407
2426
  {
2408
2427
  error: Ue.message,
2409
2428
  setShowAIDialog: j,
@@ -2419,7 +2438,7 @@ function wl() {
2419
2438
  size: "sm",
2420
2439
  variant: "outline",
2421
2440
  children: [
2422
- /* @__PURE__ */ e.jsx(An, { className: "mr-2 size-4" }),
2441
+ /* @__PURE__ */ e.jsx(Vn, { className: "mr-2 size-4" }),
2423
2442
  "Clear"
2424
2443
  ]
2425
2444
  }
@@ -2432,11 +2451,11 @@ function wl() {
2432
2451
  className: "",
2433
2452
  size: "sm",
2434
2453
  variant: "outline",
2435
- children: /* @__PURE__ */ e.jsx(Nl, { className: "size-4 text-foreground/70" })
2454
+ children: /* @__PURE__ */ e.jsx(Sl, { className: "size-4 text-foreground/70" })
2436
2455
  }
2437
2456
  ),
2438
2457
  /* @__PURE__ */ e.jsx(
2439
- pl,
2458
+ fl,
2440
2459
  {
2441
2460
  open: c,
2442
2461
  setOpen: j,
@@ -2448,7 +2467,7 @@ function wl() {
2448
2467
  )
2449
2468
  ] }),
2450
2469
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
2451
- (X == null ? void 0 : X.sql) && /* @__PURE__ */ e.jsx(Sl, { sql: X.sql }),
2470
+ (X == null ? void 0 : X.sql) && /* @__PURE__ */ e.jsx(wl, { sql: X.sql }),
2452
2471
  /* @__PURE__ */ e.jsxs(
2453
2472
  I,
2454
2473
  {
@@ -2483,7 +2502,7 @@ function wl() {
2483
2502
  )
2484
2503
  );
2485
2504
  }
2486
- function kl({ data: s }) {
2505
+ function zl({ data: s }) {
2487
2506
  var u;
2488
2507
  const [n, a] = Oe.useState([]), l = Object.keys(s[0]).map((i) => ({
2489
2508
  // header: key,
@@ -2497,7 +2516,7 @@ function kl({ data: s }) {
2497
2516
  onClick: () => o.toggleSorting(o.getIsSorted() === "asc"),
2498
2517
  children: [
2499
2518
  i,
2500
- x === "asc" ? /* @__PURE__ */ e.jsx(Tt, { className: "ml-2 h-5 w-5" }) : x === "desc" ? /* @__PURE__ */ e.jsx(Ft, { className: "ml-2 h-5 w-5" }) : null
2519
+ x === "asc" ? /* @__PURE__ */ e.jsx(Ft, { className: "ml-2 h-5 w-5" }) : x === "desc" ? /* @__PURE__ */ e.jsx(Tt, { className: "ml-2 h-5 w-5" }) : null
2501
2520
  ]
2502
2521
  }
2503
2522
  ) });
@@ -2537,14 +2556,14 @@ function kl({ data: s }) {
2537
2556
  )) : /* @__PURE__ */ e.jsx(Ss, { children: /* @__PURE__ */ e.jsx(Xs, { colSpan: l.length, className: "h-24 text-center", children: "No results." }) }) })
2538
2557
  ] }) });
2539
2558
  }
2540
- function zl({ card: s }) {
2541
- var y, M, T, V, N, F, E, h, v, p, z;
2559
+ function Ol({ card: s }) {
2560
+ var y, M, F, V, N, T, E, h, v, p, z;
2542
2561
  const [n, a] = q(!1), [t, l] = q(
2543
2562
  []
2544
2563
  ), { authToken: r } = Ie(), u = _t(r == null ? void 0 : r.accessToken), i = O((w) => w.themeStyle), o = {
2545
2564
  colors: ((M = (y = i == null ? void 0 : i.chart) == null ? void 0 : y.dataset) == null ? void 0 : M.backgroundColor) || []
2546
2565
  };
2547
- (T = s.customCardPreferences) != null && T.inputData;
2566
+ (F = s.customCardPreferences) != null && F.inputData;
2548
2567
  const { getCard: x } = ya(((V = s.customCardPreferences) == null ? void 0 : V.url) || ""), c = ((N = s.customCardPreferences) == null ? void 0 : N.visualType) || "single", j = d((w) => w.frame);
2549
2568
  oe();
2550
2569
  const { data: g } = $e(s), m = In((w, R) => {
@@ -2553,7 +2572,7 @@ function zl({ card: s }) {
2553
2572
  [w]: R
2554
2573
  }));
2555
2574
  }, []);
2556
- if (!((F = s.customCardPreferences) != null && F.componentName))
2575
+ if (!((T = s.customCardPreferences) != null && T.componentName))
2557
2576
  return null;
2558
2577
  const f = x(
2559
2578
  (E = s.customCardPreferences) == null ? void 0 : E.componentName
@@ -2644,7 +2663,7 @@ function $a({
2644
2663
  topoJson: g
2645
2664
  }));
2646
2665
  function f(y) {
2647
- return /* @__PURE__ */ e.jsx(zl, { card: y });
2666
+ return /* @__PURE__ */ e.jsx(Ol, { card: y });
2648
2667
  }
2649
2668
  function C() {
2650
2669
  var y;
@@ -2715,13 +2734,13 @@ function $a({
2715
2734
  }
2716
2735
  );
2717
2736
  }
2718
- function Ol() {
2737
+ function Il() {
2719
2738
  const [s, n] = q(!1), [a, t] = q(""), [l, r] = q(""), [u, i] = q(""), [o, x] = q(""), c = d((N) => N.card), j = d(
2720
2739
  (N) => N.card.customCfg
2721
2740
  ), { data: g } = $e(c), { data: m } = $s(c), { setCardCustomCfg: f, setCustomVisualCode: C } = oe();
2722
2741
  function D(N) {
2723
2742
  var h, v;
2724
- const F = {
2743
+ const T = {
2725
2744
  ...N,
2726
2745
  data: {
2727
2746
  ...N == null ? void 0 : N.data,
@@ -2731,10 +2750,10 @@ function Ol() {
2731
2750
  }))
2732
2751
  }
2733
2752
  };
2734
- return JSON.stringify(F, null, 1);
2753
+ return JSON.stringify(T, null, 1);
2735
2754
  }
2736
2755
  function y() {
2737
- var F, E;
2756
+ var T, E;
2738
2757
  if (!(g != null && g.records) || (g == null ? void 0 : g.records.length) === 0) return;
2739
2758
  const N = va({
2740
2759
  data: g == null ? void 0 : g.records,
@@ -2743,7 +2762,7 @@ function Ol() {
2743
2762
  preferences: c.preferences,
2744
2763
  topoJson: m
2745
2764
  });
2746
- N && (t(JSON.stringify(N, null, 1)), (F = c == null ? void 0 : c.preferences) != null && F.customVisualCode && i((E = c == null ? void 0 : c.preferences) == null ? void 0 : E.customVisualCode), j && r(JSON.stringify(j, null, 1)));
2765
+ N && (t(JSON.stringify(N, null, 1)), (T = c == null ? void 0 : c.preferences) != null && T.customVisualCode && i((E = c == null ? void 0 : c.preferences) == null ? void 0 : E.customVisualCode), j && r(JSON.stringify(j, null, 1)));
2747
2766
  }
2748
2767
  function M() {
2749
2768
  if (u && C(u), !!l)
@@ -2754,19 +2773,19 @@ function Ol() {
2754
2773
  console.log(N), x("Invalid JSON");
2755
2774
  }
2756
2775
  }
2757
- function T() {
2776
+ function F() {
2758
2777
  r(""), f(null);
2759
2778
  }
2760
2779
  function V() {
2761
2780
  let N;
2762
2781
  if (j) {
2763
- const F = Zs.cloneDeep(c.cfg), E = Zs.merge(F, j);
2782
+ const T = Zs.cloneDeep(c.cfg), E = Zs.merge(T, j);
2764
2783
  return N = D(E), N;
2765
2784
  }
2766
2785
  return a ? (N = D(JSON.parse(a)), N) : "";
2767
2786
  }
2768
- return /* @__PURE__ */ e.jsxs(Ts, { open: s, onOpenChange: n, children: [
2769
- /* @__PURE__ */ e.jsx(Fs, { asChild: !0, children: /* @__PURE__ */ e.jsx(
2787
+ return /* @__PURE__ */ e.jsxs(Fs, { open: s, onOpenChange: n, children: [
2788
+ /* @__PURE__ */ e.jsx(Ts, { asChild: !0, children: /* @__PURE__ */ e.jsx(
2770
2789
  I,
2771
2790
  {
2772
2791
  onClick: y,
@@ -2888,7 +2907,7 @@ function Ol() {
2888
2907
  I,
2889
2908
  {
2890
2909
  disabled: !j,
2891
- onClick: T,
2910
+ onClick: F,
2892
2911
  variant: "outline",
2893
2912
  children: "Reset"
2894
2913
  }
@@ -2929,7 +2948,7 @@ function Ya(s) {
2929
2948
  const [n, a] = q(null);
2930
2949
  return se(() => {
2931
2950
  s && (async () => {
2932
- const r = (await import("./lucide-react-BmFAOwr0.js"))[s];
2951
+ const r = (await import("./lucide-react-Df4Kdthg.js"))[s];
2933
2952
  a(r);
2934
2953
  })();
2935
2954
  }, [s]), n;
@@ -2942,7 +2961,7 @@ function Xa() {
2942
2961
  });
2943
2962
  return { data: n, isLoading: a, isFetching: t, isError: l };
2944
2963
  }
2945
- function Il({
2964
+ function Dl({
2946
2965
  onChartTypeChange: s
2947
2966
  }) {
2948
2967
  const [n, a] = q([]), { data: t } = Xa();
@@ -2963,7 +2982,7 @@ function Il({
2963
2982
  }, [t]), n.length === 0 ? null : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
2964
2983
  /* @__PURE__ */ e.jsx(ze, { className: "my-2" }),
2965
2984
  /* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-4 place-items-center", children: n.map((l, r) => /* @__PURE__ */ e.jsx(
2966
- Dl,
2985
+ Fl,
2967
2986
  {
2968
2987
  text: l.name,
2969
2988
  onClick: () => s("custom", l),
@@ -2973,7 +2992,7 @@ function Il({
2973
2992
  )) })
2974
2993
  ] });
2975
2994
  }
2976
- const Dl = ({
2995
+ const Fl = ({
2977
2996
  text: s,
2978
2997
  icon: n,
2979
2998
  onClick: a
@@ -2995,7 +3014,7 @@ function Tl() {
2995
3014
  }
2996
3015
  return /* @__PURE__ */ e.jsxs(js, { open: s, onOpenChange: n, children: [
2997
3016
  /* @__PURE__ */ e.jsx(bs, { asChild: !0, children: /* @__PURE__ */ e.jsx(I, { size: "sm", variant: "outline", children: /* @__PURE__ */ e.jsx(
2998
- Fl,
3017
+ Ll,
2999
3018
  {
3000
3019
  className: "h-4 w-4",
3001
3020
  chartType: t,
@@ -3059,7 +3078,7 @@ function Tl() {
3059
3078
  {
3060
3079
  onClick: () => x("pie"),
3061
3080
  variant: "ghost",
3062
- children: /* @__PURE__ */ e.jsx(Fa, { className: "size-5" })
3081
+ children: /* @__PURE__ */ e.jsx(Ta, { className: "size-5" })
3063
3082
  }
3064
3083
  ),
3065
3084
  /* @__PURE__ */ e.jsx(
@@ -3105,7 +3124,7 @@ function Tl() {
3105
3124
  {
3106
3125
  onClick: () => x("range"),
3107
3126
  variant: "ghost",
3108
- children: /* @__PURE__ */ e.jsx(Ta, { className: "size-5" })
3127
+ children: /* @__PURE__ */ e.jsx(Fa, { className: "size-5" })
3109
3128
  }
3110
3129
  ),
3111
3130
  /* @__PURE__ */ e.jsx(
@@ -3149,11 +3168,11 @@ function Tl() {
3149
3168
  }
3150
3169
  )
3151
3170
  ] }),
3152
- /* @__PURE__ */ e.jsx(Il, { onChartTypeChange: x })
3171
+ /* @__PURE__ */ e.jsx(Dl, { onChartTypeChange: x })
3153
3172
  ] })
3154
3173
  ] });
3155
3174
  }
3156
- function Fl({
3175
+ function Ll({
3157
3176
  chartType: s,
3158
3177
  className: n,
3159
3178
  customIcon: a,
@@ -3166,7 +3185,7 @@ function Fl({
3166
3185
  case "line":
3167
3186
  return /* @__PURE__ */ e.jsx(Gs, { className: n });
3168
3187
  case "pie":
3169
- return /* @__PURE__ */ e.jsx(Fa, { className: n });
3188
+ return /* @__PURE__ */ e.jsx(Ta, { className: n });
3170
3189
  case "radar":
3171
3190
  return /* @__PURE__ */ e.jsx(Pa, { className: n });
3172
3191
  case "scatter":
@@ -3184,7 +3203,7 @@ function Fl({
3184
3203
  case "pyramid":
3185
3204
  return /* @__PURE__ */ e.jsx(Wa, { className: n });
3186
3205
  case "range":
3187
- return /* @__PURE__ */ e.jsx(Ta, { className: n });
3206
+ return /* @__PURE__ */ e.jsx(Fa, { className: n });
3188
3207
  case "kpi":
3189
3208
  return /* @__PURE__ */ e.jsx(Ka, { className: n });
3190
3209
  case "text":
@@ -3197,7 +3216,7 @@ function Fl({
3197
3216
  return /* @__PURE__ */ e.jsx(qs, { className: n });
3198
3217
  }
3199
3218
  }
3200
- function Ll() {
3219
+ function Ml() {
3201
3220
  var n;
3202
3221
  const s = d((a) => a.card);
3203
3222
  return (n = s.customCardPreferences) == null || n.showCardHeader, oe(), /* @__PURE__ */ e.jsxs(ia, { children: [
@@ -3280,7 +3299,7 @@ function na() {
3280
3299
  }
3281
3300
  const M = (h, v) => {
3282
3301
  console.log("handleDragStart", v), h.dataTransfer.setData("tabIndex", v.toString());
3283
- }, T = (h) => {
3302
+ }, F = (h) => {
3284
3303
  h.preventDefault();
3285
3304
  }, V = (h, v) => {
3286
3305
  const p = h.dataTransfer.getData("tabIndex");
@@ -3299,11 +3318,11 @@ function na() {
3299
3318
  displayTab: p
3300
3319
  });
3301
3320
  },
3302
- children: v.displayTab === !0 || v.displayTab === void 0 ? /* @__PURE__ */ e.jsx(nn, { className: "mr-2 size-3.5 text-muted-foreground hover:text-foreground" }) : /* @__PURE__ */ e.jsx(Vn, { className: "mr-2 size-3.5 text-muted-foreground hover:text-foreground" })
3321
+ children: v.displayTab === !0 || v.displayTab === void 0 ? /* @__PURE__ */ e.jsx(nn, { className: "mr-2 size-3.5 text-muted-foreground hover:text-foreground" }) : /* @__PURE__ */ e.jsx(qn, { className: "mr-2 size-3.5 text-muted-foreground hover:text-foreground" })
3303
3322
  }
3304
3323
  );
3305
3324
  }
3306
- function F() {
3325
+ function T() {
3307
3326
  return /* @__PURE__ */ e.jsxs(
3308
3327
  Sa,
3309
3328
  {
@@ -3325,7 +3344,7 @@ function na() {
3325
3344
  {
3326
3345
  draggable: !0,
3327
3346
  onDragStart: (p) => M(p, v),
3328
- onDragOver: T,
3347
+ onDragOver: F,
3329
3348
  onDrop: (p) => V(p, v),
3330
3349
  className: "",
3331
3350
  value: h.id,
@@ -3360,7 +3379,7 @@ function na() {
3360
3379
  className: "invisible ml-1 h-8 px-2 hover:bg-muted-foreground/50 group-hover:visible",
3361
3380
  variant: "outline",
3362
3381
  onClick: C,
3363
- children: /* @__PURE__ */ e.jsx(Mn, { className: "h-4 w-4" })
3382
+ children: /* @__PURE__ */ e.jsx(En, { className: "h-4 w-4" })
3364
3383
  }
3365
3384
  )
3366
3385
  ] }) })
@@ -3383,12 +3402,12 @@ function na() {
3383
3402
  /* @__PURE__ */ e.jsxs("div", { className: "mb-0 flex min-h-10 items-center justify-end gap-2 px-6", children: [
3384
3403
  a && /* @__PURE__ */ e.jsxs("div", { className: "flex grow items-center gap-2", children: [
3385
3404
  /* @__PURE__ */ e.jsx(Tl, {}),
3386
- !["table", "custom"].includes(n.type) && /* @__PURE__ */ e.jsx(Ol, {}),
3387
- /* @__PURE__ */ e.jsx(Ll, {})
3405
+ !["table", "custom"].includes(n.type) && /* @__PURE__ */ e.jsx(Il, {}),
3406
+ /* @__PURE__ */ e.jsx(Ml, {})
3388
3407
  ] }),
3389
- /* @__PURE__ */ e.jsx(El, {})
3408
+ /* @__PURE__ */ e.jsx(Al, {})
3390
3409
  ] }),
3391
- a ? F() : /* @__PURE__ */ e.jsxs(
3410
+ a ? T() : /* @__PURE__ */ e.jsxs(
3392
3411
  us,
3393
3412
  {
3394
3413
  className: "px-6",
@@ -3403,7 +3422,7 @@ function na() {
3403
3422
  defaultSize: 30,
3404
3423
  minSize: 10,
3405
3424
  className: "relative flex h-full min-h-0 w-full flex-1 basis-0",
3406
- children: r && /* @__PURE__ */ e.jsx(Ml, {})
3425
+ children: r && /* @__PURE__ */ e.jsx(El, {})
3407
3426
  }
3408
3427
  ),
3409
3428
  /* @__PURE__ */ e.jsx(ms, {})
@@ -3416,7 +3435,7 @@ function na() {
3416
3435
  minSize: 10,
3417
3436
  className: "relative flex h-full min-h-0 w-full flex-1 basis-0",
3418
3437
  children: /* @__PURE__ */ e.jsxs(fe, { className: "relative flex h-full min-h-0 w-full flex-1 basis-0", children: [
3419
- (c == null ? void 0 : c.records) && (c == null ? void 0 : c.records.length) > 0 && /* @__PURE__ */ e.jsx(kl, { data: (c == null ? void 0 : c.records) || [] }),
3438
+ (c == null ? void 0 : c.records) && (c == null ? void 0 : c.records.length) > 0 && /* @__PURE__ */ e.jsx(zl, { data: (c == null ? void 0 : c.records) || [] }),
3420
3439
  l && /* @__PURE__ */ e.jsx("span", { className: "font-mono text-xs", children: l }),
3421
3440
  /* @__PURE__ */ e.jsx(ss, { orientation: "horizontal" })
3422
3441
  ] })
@@ -3427,7 +3446,7 @@ function na() {
3427
3446
  )
3428
3447
  ] });
3429
3448
  }
3430
- function Ml() {
3449
+ function El() {
3431
3450
  const s = d((a) => a.pythonStdOut);
3432
3451
  if (!s) return null;
3433
3452
  const n = s.replace(/\n/g, "<br>");
@@ -3439,7 +3458,7 @@ function Ml() {
3439
3458
  ] })
3440
3459
  ] });
3441
3460
  }
3442
- function El() {
3461
+ function Al() {
3443
3462
  const s = d((a) => a.isShowingVisual), n = d(
3444
3463
  (a) => a.actions.setIsShowingVisual
3445
3464
  );
@@ -3456,7 +3475,7 @@ function El() {
3456
3475
  )
3457
3476
  ] });
3458
3477
  }
3459
- function Al({
3478
+ function Vl({
3460
3479
  options: s,
3461
3480
  value: n,
3462
3481
  onValueChange: a
@@ -3517,7 +3536,7 @@ function Ye({
3517
3536
  }
3518
3537
  );
3519
3538
  }
3520
- function Vl() {
3539
+ function ql() {
3521
3540
  var C, D;
3522
3541
  const s = d(
3523
3542
  (y) => y.card.customCardPreferences
@@ -3541,15 +3560,15 @@ function Vl() {
3541
3560
  });
3542
3561
  }
3543
3562
  function j(y) {
3544
- var T, V;
3545
- const M = (T = l == null ? void 0 : l.cards) == null ? void 0 : T.filter((N) => {
3546
- var F;
3547
- return ((F = N == null ? void 0 : N.customCardPreferences) == null ? void 0 : F.visualType) !== "multiple";
3563
+ var F, V;
3564
+ const M = (F = l == null ? void 0 : l.cards) == null ? void 0 : F.filter((N) => {
3565
+ var T;
3566
+ return ((T = N == null ? void 0 : N.customCardPreferences) == null ? void 0 : T.visualType) !== "multiple";
3548
3567
  }).map((N) => ({
3549
3568
  value: N.id,
3550
3569
  label: N.tabTitle || N.title
3551
3570
  }));
3552
- return /* @__PURE__ */ e.jsx("div", { className: "space-y-2", children: (V = y == null ? void 0 : y.dataInputs) == null ? void 0 : V.map((N, F) => {
3571
+ return /* @__PURE__ */ e.jsx("div", { className: "space-y-2", children: (V = y == null ? void 0 : y.dataInputs) == null ? void 0 : V.map((N, T) => {
3553
3572
  var E, h;
3554
3573
  return /* @__PURE__ */ e.jsxs(
3555
3574
  "div",
@@ -3563,29 +3582,29 @@ function Vl() {
3563
3582
  className: "col-span-6 h-8 w-full justify-between",
3564
3583
  label: "",
3565
3584
  options: M || [],
3566
- value: ((h = (E = s == null ? void 0 : s.dataInputCardIds) == null ? void 0 : E[F]) == null ? void 0 : h.cardId) || "",
3567
- onValueChange: (v) => c(F, v)
3585
+ value: ((h = (E = s == null ? void 0 : s.dataInputCardIds) == null ? void 0 : E[T]) == null ? void 0 : h.cardId) || "",
3586
+ onValueChange: (v) => c(T, v)
3568
3587
  }
3569
3588
  )
3570
3589
  ]
3571
3590
  },
3572
- F + Math.random()
3591
+ T + Math.random()
3573
3592
  );
3574
3593
  }) });
3575
3594
  }
3576
- function g(y, M, T = []) {
3595
+ function g(y, M, F = []) {
3577
3596
  var V, N;
3578
3597
  return s ? y === "input" ? /* @__PURE__ */ e.jsx(
3579
3598
  re,
3580
3599
  {
3581
3600
  className: `h-8 w-full ${Ke}`,
3582
3601
  value: ((V = s == null ? void 0 : s.settings) == null ? void 0 : V[M]) || "",
3583
- onChange: (F) => {
3602
+ onChange: (T) => {
3584
3603
  u({
3585
3604
  ...s,
3586
3605
  settings: {
3587
3606
  ...s == null ? void 0 : s.settings,
3588
- [M]: F.target.value
3607
+ [M]: T.target.value
3589
3608
  }
3590
3609
  });
3591
3610
  }
@@ -3596,12 +3615,12 @@ function Vl() {
3596
3615
  {
3597
3616
  className: "h-8 w-full",
3598
3617
  label: "",
3599
- options: T,
3618
+ options: F,
3600
3619
  value: ((N = s == null ? void 0 : s.settings) == null ? void 0 : N[M]) || "",
3601
- onValueChange: (F) => {
3620
+ onValueChange: (T) => {
3602
3621
  u({
3603
3622
  ...s,
3604
- settings: { ...s == null ? void 0 : s.settings, [M]: F }
3623
+ settings: { ...s == null ? void 0 : s.settings, [M]: T }
3605
3624
  });
3606
3625
  }
3607
3626
  }
@@ -3609,14 +3628,14 @@ function Vl() {
3609
3628
  }
3610
3629
  function m(y) {
3611
3630
  const M = Object.entries((y == null ? void 0 : y.settings) || {});
3612
- return /* @__PURE__ */ e.jsx("div", { className: "space-y-3", children: M.map(([T, V]) => /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
3631
+ return /* @__PURE__ */ e.jsx("div", { className: "space-y-3", children: M.map(([F, V]) => /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
3613
3632
  /* @__PURE__ */ e.jsx(H, { children: V.title }),
3614
3633
  g(
3615
3634
  V.ui,
3616
- T,
3635
+ F,
3617
3636
  V.options
3618
3637
  )
3619
- ] }, T)) });
3638
+ ] }, F)) });
3620
3639
  }
3621
3640
  function f(y) {
3622
3641
  s && u({
@@ -3648,7 +3667,7 @@ function Vl() {
3648
3667
  }
3649
3668
  ) }) }),
3650
3669
  ((s == null ? void 0 : s.type) === "component" || (s == null ? void 0 : s.type) === void 0) && /* @__PURE__ */ e.jsx(
3651
- Al,
3670
+ Vl,
3652
3671
  {
3653
3672
  options: [
3654
3673
  { value: "single", label: "Single Visual" },
@@ -3862,19 +3881,19 @@ function Za() {
3862
3881
  ((ae = (U = (Y = a == null ? void 0 : a.chartOptions) == null ? void 0 : Y.scales) == null ? void 0 : U[l]) == null ? void 0 : ae.min) || ""
3863
3882
  ), [x, c] = q(
3864
3883
  ((ee = (P = (k = a == null ? void 0 : a.chartOptions) == null ? void 0 : k.scales) == null ? void 0 : P[l]) == null ? void 0 : ee.max) || ""
3865
- ), [j, g] = q(i || x ? "custom" : "auto"), [m, f] = q(""), [C, D] = q(0), [y, M] = q(""), [T, V] = q(""), [N, F] = q(""), E = d(
3884
+ ), [j, g] = q(i || x ? "custom" : "auto"), [m, f] = q(""), [C, D] = q(0), [y, M] = q(""), [F, V] = q(""), [N, T] = q(""), E = d(
3866
3885
  (A) => A.actions.setCardPreferences
3867
3886
  ), { updateCardInFrame: h } = oe(), v = d((A) => A.card), p = d((A) => {
3868
3887
  var L;
3869
3888
  return (L = A.card) == null ? void 0 : L.type;
3870
3889
  }), z = ["pie", "doughnut", "polarArea"].includes(p);
3871
3890
  se(() => {
3872
- var A, L, te, B, ne, ie, je, be, ye, De, Te, Ve, ve, X;
3891
+ var A, L, te, B, ne, ie, je, be, ye, De, Fe, Ve, ve, X;
3873
3892
  u(la(a)), o(
3874
3893
  ((te = (L = (A = a == null ? void 0 : a.chartOptions) == null ? void 0 : A.scales) == null ? void 0 : L[l]) == null ? void 0 : te.min) === 0 ? 0 : ""
3875
3894
  ), c(((ie = (ne = (B = a == null ? void 0 : a.chartOptions) == null ? void 0 : B.scales) == null ? void 0 : ne[l]) == null ? void 0 : ie.max) || ""), f(
3876
3895
  ((De = (ye = (be = (je = a == null ? void 0 : a.chartOptions) == null ? void 0 : je.scales) == null ? void 0 : be[l]) == null ? void 0 : ye.ticks) == null ? void 0 : De.stepSize) || ""
3877
- ), D(((Te = a == null ? void 0 : a.numberAxisFormat) == null ? void 0 : Te.decimalPlaces) || 0), M(((Ve = a == null ? void 0 : a.numberAxisFormat) == null ? void 0 : Ve.suffix) || ""), V(((ve = a == null ? void 0 : a.numberAxisFormat) == null ? void 0 : ve.currency) || ""), F(((X = a == null ? void 0 : a.numberAxisFormat) == null ? void 0 : X.locale) || "");
3896
+ ), D(((Fe = a == null ? void 0 : a.numberAxisFormat) == null ? void 0 : Fe.decimalPlaces) || 0), M(((Ve = a == null ? void 0 : a.numberAxisFormat) == null ? void 0 : Ve.suffix) || ""), V(((ve = a == null ? void 0 : a.numberAxisFormat) == null ? void 0 : ve.currency) || ""), T(((X = a == null ? void 0 : a.numberAxisFormat) == null ? void 0 : X.locale) || "");
3878
3897
  }, [s, a, l]);
3879
3898
  function w(A, L) {
3880
3899
  return L === "" || /^[0-9\b]+$/.test(L) ? Number(L) : Number(A);
@@ -3903,7 +3922,7 @@ function Za() {
3903
3922
  /* @__PURE__ */ e.jsxs(
3904
3923
  ue,
3905
3924
  {
3906
- value: T || "none",
3925
+ value: F || "none",
3907
3926
  onValueChange: (L) => V(L === "none" ? "" : L),
3908
3927
  children: [
3909
3928
  /* @__PURE__ */ e.jsx(me, { className: "col-span-2 h-8 w-full focus:ring-1 focus:ring-offset-0", children: /* @__PURE__ */ e.jsx(he, {}) }),
@@ -3915,7 +3934,7 @@ function Za() {
3915
3934
  ]
3916
3935
  }
3917
3936
  ),
3918
- /* @__PURE__ */ e.jsxs(ue, { value: N, onValueChange: (L) => F(L), children: [
3937
+ /* @__PURE__ */ e.jsxs(ue, { value: N, onValueChange: (L) => T(L), children: [
3919
3938
  /* @__PURE__ */ e.jsx(
3920
3939
  me,
3921
3940
  {
@@ -4006,7 +4025,7 @@ function Za() {
4006
4025
  numberAxisFormat: {
4007
4026
  decimalPlaces: C,
4008
4027
  suffix: y,
4009
- currency: T,
4028
+ currency: F,
4010
4029
  locale: N
4011
4030
  }
4012
4031
  };
@@ -4084,7 +4103,7 @@ function Za() {
4084
4103
  ] }) })
4085
4104
  ] });
4086
4105
  }
4087
- function ql({ idx: s }) {
4106
+ function Rl({ idx: s }) {
4088
4107
  var i;
4089
4108
  const n = d((o) => {
4090
4109
  var x;
@@ -4129,7 +4148,7 @@ function ql({ idx: s }) {
4129
4148
  }
4130
4149
  }
4131
4150
  return /* @__PURE__ */ e.jsxs(js, { children: [
4132
- /* @__PURE__ */ e.jsx(bs, { children: /* @__PURE__ */ e.jsx(Zn, { className: "invisible size-4 rotate-[135deg] cursor-pointer text-muted-foreground hover:text-foreground group-hover:visible" }) }),
4151
+ /* @__PURE__ */ e.jsx(bs, { children: /* @__PURE__ */ e.jsx(el, { className: "invisible size-4 rotate-[135deg] cursor-pointer text-muted-foreground hover:text-foreground group-hover:visible" }) }),
4133
4152
  /* @__PURE__ */ e.jsx(ys, { className: "w-fit p-1", children: /* @__PURE__ */ e.jsxs("div", { className: "flex gap-1", children: [
4134
4153
  /* @__PURE__ */ e.jsx(
4135
4154
  I,
@@ -4149,7 +4168,7 @@ function ql({ idx: s }) {
4149
4168
  variant: "secondary",
4150
4169
  className: "h-7 p-1 text-xs font-normal",
4151
4170
  children: /* @__PURE__ */ e.jsx(
4152
- $n,
4171
+ Pn,
4153
4172
  {
4154
4173
  className: W("h-4 w-4", {
4155
4174
  "rotate-90": l === "y"
@@ -4166,7 +4185,7 @@ function ql({ idx: s }) {
4166
4185
  variant: "secondary",
4167
4186
  className: "h-7 p-1 text-xs font-normal",
4168
4187
  children: /* @__PURE__ */ e.jsx(
4169
- Bn,
4188
+ Un,
4170
4189
  {
4171
4190
  className: W("h-4 w-4", {
4172
4191
  "rotate-90": l === "y"
@@ -4183,7 +4202,7 @@ function ql({ idx: s }) {
4183
4202
  variant: "secondary",
4184
4203
  className: "h-7 p-1 text-xs font-normal",
4185
4204
  children: /* @__PURE__ */ e.jsx(
4186
- Pn,
4205
+ Bn,
4187
4206
  {
4188
4207
  className: W("h-4 w-4", {
4189
4208
  "rotate-90": l === "y"
@@ -4226,11 +4245,11 @@ function et() {
4226
4245
  /* @__PURE__ */ e.jsx(H, { children: l }),
4227
4246
  /* @__PURE__ */ e.jsx(Za, {})
4228
4247
  ] }),
4229
- /* @__PURE__ */ e.jsx("div", { className: "my-1 space-y-1", children: o.map((x, c) => /* @__PURE__ */ e.jsx(Rl, { col: x, idx: c }, x)) })
4248
+ /* @__PURE__ */ e.jsx("div", { className: "my-1 space-y-1", children: o.map((x, c) => /* @__PURE__ */ e.jsx(_l, { col: x, idx: c }, x)) })
4230
4249
  ] })
4231
4250
  ] });
4232
4251
  }
4233
- function Rl({ col: s, idx: n }) {
4252
+ function _l({ col: s, idx: n }) {
4234
4253
  const a = d((i) => {
4235
4254
  var o;
4236
4255
  return (o = i.card) == null ? void 0 : o.preferences;
@@ -4283,31 +4302,31 @@ function Rl({ col: s, idx: n }) {
4283
4302
  }
4284
4303
  ),
4285
4304
  /* @__PURE__ */ e.jsx(
4286
- Fn,
4305
+ Ln,
4287
4306
  {
4288
4307
  onClick: () => u("area"),
4289
4308
  className: "invisible size-4 cursor-pointer text-muted-foreground hover:text-foreground group-hover:visible"
4290
4309
  }
4291
4310
  ),
4292
- /* @__PURE__ */ e.jsx(ql, { idx: n })
4311
+ /* @__PURE__ */ e.jsx(Rl, { idx: n })
4293
4312
  ] })
4294
4313
  ] });
4295
4314
  }
4296
4315
  function st() {
4297
4316
  const s = d((g) => g.selectedConnectionId), n = d((g) => g.selectedDatamodelId), a = d((g) => g.selectedDatabaseName), t = d((g) => g.selectedSchemaName), l = d((g) => g.selectedTableName), r = O((g) => g.dashboard.filters) || [], u = O((g) => g.actions.addFilter), i = O((g) => g.actions.removeFilter), { removeFilterValues: o } = fs(), { modelItems: x, tableName: c } = Pe();
4298
4317
  function j(g, m = "dashboard") {
4299
- var F;
4318
+ var T;
4300
4319
  const f = ce(g.column_name), C = ce(a || ""), D = ce(t || ""), y = ce(c);
4301
4320
  let M = ja(
4302
4321
  D,
4303
4322
  y
4304
- ), T = `${M}.${f}`;
4305
- const V = (F = x == null ? void 0 : x.find(
4323
+ ), F = `${M}.${f}`;
4324
+ const V = (T = x == null ? void 0 : x.find(
4306
4325
  (E) => E.id === n
4307
- )) == null ? void 0 : F.name;
4308
- n && n !== "none" && (T = `${ws}.${V}.${f}`, M = `${ws}.${V}`);
4326
+ )) == null ? void 0 : T.name;
4327
+ n && n !== "none" && (F = `${ws}.${V}.${f}`, M = `${ws}.${V}`);
4309
4328
  const N = r == null ? void 0 : r.find(
4310
- (E) => E.column === T && E.table === y && (E.database === C || E.database === a)
4329
+ (E) => E.column === F && E.table === y && (E.database === C || E.database === a)
4311
4330
  );
4312
4331
  if (N)
4313
4332
  o(N.id), i(N.id);
@@ -4317,7 +4336,7 @@ function st() {
4317
4336
  location: m,
4318
4337
  id: E,
4319
4338
  //uuidv4(),
4320
- column: T,
4339
+ column: F,
4321
4340
  title: g.column_name,
4322
4341
  dataType: g.data_type,
4323
4342
  table: "api",
@@ -4335,7 +4354,7 @@ function st() {
4335
4354
  id: E,
4336
4355
  //uuidv4(),
4337
4356
  location: m,
4338
- column: T,
4357
+ column: F,
4339
4358
  //columnName, //`${qualifiedTableName}.${formattedColumnName}`,
4340
4359
  title: g.column_name,
4341
4360
  dataType: g.data_type,
@@ -4365,11 +4384,11 @@ function Be() {
4365
4384
  const u = s == null ? void 0 : s.find((i) => i.id === n.filterId);
4366
4385
  return /* @__PURE__ */ e.jsxs("div", { className: "space-y-3", children: [
4367
4386
  /* @__PURE__ */ e.jsx(H, { children: "Card Filter" }),
4368
- /* @__PURE__ */ e.jsx(_l, { onSelect: r, columns: t }),
4387
+ /* @__PURE__ */ e.jsx(Hl, { onSelect: r, columns: t }),
4369
4388
  u && /* @__PURE__ */ e.jsx(Ia, { filter: u })
4370
4389
  ] });
4371
4390
  }
4372
- function _l({
4391
+ function Hl({
4373
4392
  columns: s,
4374
4393
  onSelect: n
4375
4394
  }) {
@@ -4421,7 +4440,7 @@ function _l({
4421
4440
  ] }) })
4422
4441
  ] });
4423
4442
  }
4424
- function Hl({
4443
+ function $l({
4425
4444
  cardType: s
4426
4445
  }) {
4427
4446
  return /* @__PURE__ */ e.jsx("div", { className: "space-y-6 px-6 py-2", children: /* @__PURE__ */ e.jsxs(Ee, { defaultValue: ["item-2"], type: "multiple", children: [
@@ -4517,7 +4536,7 @@ function Js() {
4517
4536
  )
4518
4537
  ] });
4519
4538
  }
4520
- function $l({
4539
+ function Pl({
4521
4540
  cardType: s
4522
4541
  }) {
4523
4542
  function n(a) {
@@ -4564,7 +4583,7 @@ function $l({
4564
4583
  ] })
4565
4584
  ] }) });
4566
4585
  }
4567
- const Pl = {
4586
+ const Bl = {
4568
4587
  datasets: [
4569
4588
  {
4570
4589
  type: "line",
@@ -4577,7 +4596,7 @@ const Pl = {
4577
4596
  data: []
4578
4597
  }
4579
4598
  ]
4580
- }, Bl = {
4599
+ }, Ul = {
4581
4600
  datasets: [
4582
4601
  {
4583
4602
  fill: "origin",
@@ -4587,7 +4606,7 @@ const Pl = {
4587
4606
  }
4588
4607
  ]
4589
4608
  };
4590
- function Ul() {
4609
+ function Gl() {
4591
4610
  const s = d((n) => n.card.type);
4592
4611
  return /* @__PURE__ */ e.jsxs("div", { className: "space-y-6 p-6", children: [
4593
4612
  /* @__PURE__ */ e.jsx(
@@ -4596,7 +4615,7 @@ function Ul() {
4596
4615
  className: " ",
4597
4616
  type: "single",
4598
4617
  collapsible: !0,
4599
- children: Gl(s)
4618
+ children: Ql(s)
4600
4619
  }
4601
4620
  ),
4602
4621
  /* @__PURE__ */ e.jsx("section", { className: "", children: ["line", "bar"].includes(s) && /* @__PURE__ */ e.jsx(Cs, {}) }),
@@ -4607,7 +4626,7 @@ function Ul() {
4607
4626
  ] })
4608
4627
  ] });
4609
4628
  }
4610
- function Gl(s) {
4629
+ function Ql(s) {
4611
4630
  if (["line", "bar"].includes(s))
4612
4631
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
4613
4632
  /* @__PURE__ */ e.jsxs(Q, { value: "item-1", children: [
@@ -4628,7 +4647,7 @@ function Gl(s) {
4628
4647
  /* @__PURE__ */ e.jsx("b", { children: "Customize" }),
4629
4648
  " and change the `type` property in the dataset."
4630
4649
  ] }),
4631
- /* @__PURE__ */ e.jsx("pre", { children: JSON.stringify(Pl, null, 2) })
4650
+ /* @__PURE__ */ e.jsx("pre", { children: JSON.stringify(Bl, null, 2) })
4632
4651
  ] })
4633
4652
  ] }),
4634
4653
  /* @__PURE__ */ e.jsxs(Q, { value: "item-3", children: [
@@ -4649,7 +4668,7 @@ function Gl(s) {
4649
4668
  ),
4650
4669
  "for more options."
4651
4670
  ] }),
4652
- /* @__PURE__ */ e.jsx("pre", { children: JSON.stringify(Bl, null, 2) })
4671
+ /* @__PURE__ */ e.jsx("pre", { children: JSON.stringify(Ul, null, 2) })
4653
4672
  ] })
4654
4673
  ] })
4655
4674
  ] });
@@ -4704,7 +4723,7 @@ function Gl(s) {
4704
4723
  ] })
4705
4724
  ] }) });
4706
4725
  }
4707
- function Ql() {
4726
+ function Jl() {
4708
4727
  var o, x, c, j, g;
4709
4728
  const s = d((m) => m.card.preferences), n = d(
4710
4729
  (m) => m.actions.setCardPreferences
@@ -4870,7 +4889,7 @@ function Ql() {
4870
4889
  ] })
4871
4890
  ] });
4872
4891
  }
4873
- function Jl() {
4892
+ function Kl() {
4874
4893
  return /* @__PURE__ */ e.jsxs("div", { className: "space-y-6 px-6 py-2", children: [
4875
4894
  /* @__PURE__ */ e.jsx(Ee, { type: "single", collapsible: !0, children: /* @__PURE__ */ e.jsxs(Q, { value: "item-1", children: [
4876
4895
  /* @__PURE__ */ e.jsx(J, { className: "", children: "KPI Query" }),
@@ -4896,12 +4915,12 @@ function Jl() {
4896
4915
  ] })
4897
4916
  ] })
4898
4917
  ] }) }),
4899
- /* @__PURE__ */ e.jsx("section", { className: "", children: /* @__PURE__ */ e.jsx(Ql, {}) }),
4918
+ /* @__PURE__ */ e.jsx("section", { className: "", children: /* @__PURE__ */ e.jsx(Jl, {}) }),
4900
4919
  /* @__PURE__ */ e.jsx("div", {}),
4901
4920
  /* @__PURE__ */ e.jsx("div", {})
4902
4921
  ] });
4903
4922
  }
4904
- const Kl = [
4923
+ const Wl = [
4905
4924
  {
4906
4925
  label: "Mercator",
4907
4926
  value: "mercator"
@@ -4958,7 +4977,7 @@ const Kl = [
4958
4977
  label: "Natural Earth 1",
4959
4978
  value: "naturalEarth1"
4960
4979
  }
4961
- ], Wl = [
4980
+ ], Yl = [
4962
4981
  "blues",
4963
4982
  "brBG",
4964
4983
  "buGn",
@@ -4997,12 +5016,12 @@ const Kl = [
4997
5016
  "ylGnBu",
4998
5017
  "ylOrBr",
4999
5018
  "ylOrRd"
5000
- ], Yl = Wl.map((s) => ({
5019
+ ], Xl = Yl.map((s) => ({
5001
5020
  label: s,
5002
5021
  value: s
5003
5022
  }));
5004
- function Xl() {
5005
- var o, x, c, j, g, m, f, C, D, y, M, T, V, N, F, E, h, v;
5023
+ function Zl() {
5024
+ var o, x, c, j, g, m, f, C, D, y, M, F, V, N, T, E, h, v;
5006
5025
  const s = d((p) => p.card), n = (x = (o = s == null ? void 0 : s.preferences) == null ? void 0 : o.mapVisualOptions) == null ? void 0 : x.topoJsonUrl, [a, t] = q(
5007
5026
  ((j = (c = s == null ? void 0 : s.preferences) == null ? void 0 : c.mapVisualOptions) == null ? void 0 : j.customTopoJsonUrl) || ""
5008
5027
  ), { setCardPreferences: l } = oe(), { data: r } = $s(s), u = Object.keys((r == null ? void 0 : r.objects) || {}).map((p) => ({
@@ -5094,7 +5113,7 @@ function Xl() {
5094
5113
  de,
5095
5114
  {
5096
5115
  className: "h-9",
5097
- options: Kl,
5116
+ options: Wl,
5098
5117
  value: ((C = (f = s.preferences) == null ? void 0 : f.mapVisualOptions) == null ? void 0 : C.projection) || "",
5099
5118
  label: "Projection",
5100
5119
  onValueChange: (p) => {
@@ -5116,7 +5135,7 @@ function Xl() {
5116
5135
  de,
5117
5136
  {
5118
5137
  className: "h-9",
5119
- options: Yl,
5138
+ options: Xl,
5120
5139
  value: ((y = (D = s.preferences) == null ? void 0 : D.mapVisualOptions) == null ? void 0 : y.colorScale) || "",
5121
5140
  label: "Select Color Scale",
5122
5141
  onValueChange: (p) => {
@@ -5142,7 +5161,7 @@ function Xl() {
5142
5161
  className: `h-9 w-full ${Ke}`,
5143
5162
  type: "number",
5144
5163
  step: 0.1,
5145
- value: ((T = (M = s.preferences) == null ? void 0 : M.mapVisualOptions) == null ? void 0 : T.projectionScale) || 1,
5164
+ value: ((F = (M = s.preferences) == null ? void 0 : M.mapVisualOptions) == null ? void 0 : F.projectionScale) || 1,
5146
5165
  onChange: (p) => {
5147
5166
  var z;
5148
5167
  l({
@@ -5162,7 +5181,7 @@ function Xl() {
5162
5181
  className: `h-9 w-full ${Ke}`,
5163
5182
  type: "number",
5164
5183
  step: 10,
5165
- value: ((F = (N = (V = s.preferences) == null ? void 0 : V.mapVisualOptions) == null ? void 0 : N.projectionOffset) == null ? void 0 : F[0]) || 0,
5184
+ value: ((T = (N = (V = s.preferences) == null ? void 0 : V.mapVisualOptions) == null ? void 0 : N.projectionOffset) == null ? void 0 : T[0]) || 0,
5166
5185
  onChange: (p) => {
5167
5186
  var z, w, R, $;
5168
5187
  l({
@@ -5206,7 +5225,7 @@ function Xl() {
5206
5225
  /* @__PURE__ */ e.jsx(Ae, {})
5207
5226
  ] });
5208
5227
  }
5209
- function Zl() {
5228
+ function er() {
5210
5229
  var t;
5211
5230
  const s = d((l) => l.card.preferences), { setCardPreferences: n } = d((l) => l.actions);
5212
5231
  function a(l) {
@@ -5274,7 +5293,7 @@ function is({
5274
5293
  /* @__PURE__ */ e.jsxs(K, { className: "space-y-4 px-2", children: [
5275
5294
  s === "range" && /* @__PURE__ */ e.jsx(Cs, {}),
5276
5295
  s !== "text" && /* @__PURE__ */ e.jsx(Js, {}),
5277
- s === "text" && /* @__PURE__ */ e.jsx(Zl, {})
5296
+ s === "text" && /* @__PURE__ */ e.jsx(er, {})
5278
5297
  ] })
5279
5298
  ] }),
5280
5299
  !["range", "text"].includes(s) && /* @__PURE__ */ e.jsxs(Q, { value: "item-3", children: [
@@ -5286,7 +5305,7 @@ function is({
5286
5305
  ] })
5287
5306
  ] }) });
5288
5307
  }
5289
- function er() {
5308
+ function sr() {
5290
5309
  const s = d(
5291
5310
  (t) => {
5292
5311
  var l, r;
@@ -5366,7 +5385,7 @@ function er() {
5366
5385
  ] })
5367
5386
  ] }) });
5368
5387
  }
5369
- function sr({}) {
5388
+ function ar({}) {
5370
5389
  const s = d((t) => {
5371
5390
  var l;
5372
5391
  return (l = t.card) == null ? void 0 : l.preferences;
@@ -5399,7 +5418,7 @@ function sr({}) {
5399
5418
  ] })
5400
5419
  ] });
5401
5420
  }
5402
- const ar = /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 font-mono text-xs", children: [
5421
+ const tr = /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 font-mono text-xs", children: [
5403
5422
  /* @__PURE__ */ e.jsx("div", { className: "rounded bg-muted px-2 py-1 text-xs", children: "SELECT dimension, cohort, metric FROM table" }),
5404
5423
  /* @__PURE__ */ e.jsxs("div", { children: [
5405
5424
  "See ",
@@ -5415,7 +5434,7 @@ const ar = /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 font-mono text-
5415
5434
  ),
5416
5435
  " in the docs."
5417
5436
  ] })
5418
- ] }), tr = /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 font-mono text-xs", children: [
5437
+ ] }), nr = /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 font-mono text-xs", children: [
5419
5438
  /* @__PURE__ */ e.jsx("div", { className: "rounded bg-muted px-2 py-1 text-xs", children: "SELECT y-axis, label, range-from, range-to, range-value FROM table" }),
5420
5439
  /* @__PURE__ */ e.jsxs("div", { children: [
5421
5440
  "See ",
@@ -5431,7 +5450,7 @@ const ar = /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 font-mono text-
5431
5450
  ),
5432
5451
  " in the docs."
5433
5452
  ] })
5434
- ] }), nr = /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 font-mono text-xs", children: [
5453
+ ] }), lr = /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 font-mono text-xs", children: [
5435
5454
  /* @__PURE__ */ e.jsx("div", { className: "rounded bg-muted px-2 py-1 text-xs", children: "SELECT text FROM table limit 1" }),
5436
5455
  /* @__PURE__ */ e.jsxs("div", { children: [
5437
5456
  "See ",
@@ -5448,22 +5467,22 @@ const ar = /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 font-mono text-
5448
5467
  " in the docs."
5449
5468
  ] })
5450
5469
  ] });
5451
- function lr() {
5470
+ function rr() {
5452
5471
  const s = d((a) => a.card.type);
5453
5472
  function n(a) {
5454
5473
  switch (a) {
5455
5474
  case "stackedBar":
5456
5475
  case "stackedLine":
5457
- return /* @__PURE__ */ e.jsx(er, {});
5476
+ return /* @__PURE__ */ e.jsx(sr, {});
5458
5477
  case "pyramid":
5459
- return /* @__PURE__ */ e.jsx(is, { docContent: ar, cardType: a });
5478
+ return /* @__PURE__ */ e.jsx(is, { docContent: tr, cardType: a });
5460
5479
  case "kpi":
5461
- return /* @__PURE__ */ e.jsx(Jl, {});
5480
+ return /* @__PURE__ */ e.jsx(Kl, {});
5462
5481
  case "line":
5463
5482
  case "bar":
5464
- return /* @__PURE__ */ e.jsx(Hl, { cardType: a });
5483
+ return /* @__PURE__ */ e.jsx($l, { cardType: a });
5465
5484
  case "range":
5466
- return /* @__PURE__ */ e.jsx(is, { docContent: tr, cardType: a });
5485
+ return /* @__PURE__ */ e.jsx(is, { docContent: nr, cardType: a });
5467
5486
  case "pie":
5468
5487
  case "doughnut":
5469
5488
  case "polarArea":
@@ -5471,29 +5490,29 @@ function lr() {
5471
5490
  return /* @__PURE__ */ e.jsx(is, { cardType: a });
5472
5491
  case "bubble":
5473
5492
  case "scatter":
5474
- return /* @__PURE__ */ e.jsx($l, { cardType: a });
5493
+ return /* @__PURE__ */ e.jsx(Pl, { cardType: a });
5475
5494
  case "table":
5476
- return /* @__PURE__ */ e.jsx(sr, { cardType: a });
5495
+ return /* @__PURE__ */ e.jsx(ar, { cardType: a });
5477
5496
  case "text":
5478
5497
  return /* @__PURE__ */ e.jsx(
5479
5498
  is,
5480
5499
  {
5481
- docContent: nr,
5500
+ docContent: lr,
5482
5501
  cardType: a,
5483
5502
  suffix: "Visual"
5484
5503
  }
5485
5504
  );
5486
5505
  case "map":
5487
- return /* @__PURE__ */ e.jsx(Xl, {});
5506
+ return /* @__PURE__ */ e.jsx(Zl, {});
5488
5507
  case "custom":
5489
- return /* @__PURE__ */ e.jsx(Vl, {});
5508
+ return /* @__PURE__ */ e.jsx(ql, {});
5490
5509
  default:
5491
- return /* @__PURE__ */ e.jsx(Ul, {});
5510
+ return /* @__PURE__ */ e.jsx(Gl, {});
5492
5511
  }
5493
5512
  }
5494
5513
  return /* @__PURE__ */ e.jsx(fe, { className: "h-full w-full text-sm", children: n(s) });
5495
5514
  }
5496
- function rr() {
5515
+ function ir() {
5497
5516
  const s = d((n) => n.isShowingVisual);
5498
5517
  return /* @__PURE__ */ e.jsxs(
5499
5518
  us,
@@ -5508,7 +5527,7 @@ function rr() {
5508
5527
  className: "flex",
5509
5528
  minSize: 20,
5510
5529
  defaultSize: 40,
5511
- children: /* @__PURE__ */ e.jsx(wl, {})
5530
+ children: /* @__PURE__ */ e.jsx(kl, {})
5512
5531
  }
5513
5532
  ),
5514
5533
  /* @__PURE__ */ e.jsx(ms, { withHandle: !0, className: "border" }),
@@ -5527,7 +5546,7 @@ function rr() {
5527
5546
  minSize: 20,
5528
5547
  defaultSize: 25,
5529
5548
  maxSize: 30,
5530
- children: /* @__PURE__ */ e.jsx(lr, {})
5549
+ children: /* @__PURE__ */ e.jsx(rr, {})
5531
5550
  }
5532
5551
  ) }),
5533
5552
  /* @__PURE__ */ e.jsx(ms, { className: "border" }),
@@ -5539,7 +5558,7 @@ function rr() {
5539
5558
  }
5540
5559
  );
5541
5560
  }
5542
- function ir({ authToken: s, onSave: n, onClose: a }) {
5561
+ function or({ authToken: s, onSave: n, onClose: a }) {
5543
5562
  O((u) => u.themeStyle);
5544
5563
  const t = d((u) => u.actions.setOnSave), l = d((u) => u.actions.setOnClose), r = O((u) => u.actions.setAuthToken);
5545
5564
  return se(() => {
@@ -5557,12 +5576,12 @@ function ir({ authToken: s, onSave: n, onClose: a }) {
5557
5576
  role: "editor-panel",
5558
5577
  children: [
5559
5578
  /* @__PURE__ */ e.jsx(vn, { className: "rounded-none border-r-[1.5px]", children: /* @__PURE__ */ e.jsx(Ra, {}) }),
5560
- /* @__PURE__ */ e.jsx(Cn, { children: /* @__PURE__ */ e.jsx(rr, {}) })
5579
+ /* @__PURE__ */ e.jsx(Cn, { children: /* @__PURE__ */ e.jsx(ir, {}) })
5561
5580
  ]
5562
5581
  }
5563
5582
  ) });
5564
5583
  }
5565
- function or() {
5584
+ function cr() {
5566
5585
  O((u) => u.selectedCardId);
5567
5586
  const s = O((u) => u.selectedSheetId), { setIsVisualEditing: n } = O((u) => u.actions), a = O((u) => u.isVisualEditing), t = O((u) => u.actions.updateFrame);
5568
5587
  function l(u) {
@@ -5578,11 +5597,11 @@ function or() {
5578
5597
  className: W("flex grow", {
5579
5598
  "max-h-0 overflow-hidden": !a
5580
5599
  }),
5581
- children: /* @__PURE__ */ e.jsx(ir, { onSave: l, onClose: r })
5600
+ children: /* @__PURE__ */ e.jsx(or, { onSave: l, onClose: r })
5582
5601
  }
5583
5602
  );
5584
5603
  }
5585
- function cr() {
5604
+ function dr() {
5586
5605
  const s = d((r) => r.selectedDatabaseName), n = d((r) => r.selectedTableName), a = O((r) => r.dashboard.filters) || [], { columns: t } = Pe(), { assignFilter: l } = st();
5587
5606
  return /* @__PURE__ */ e.jsx(fe, { className: "flex-1 basis-0 flex-col px-3", children: t == null ? void 0 : t.map((r) => {
5588
5607
  const u = a == null ? void 0 : a.find(
@@ -5607,7 +5626,7 @@ function cr() {
5607
5626
  );
5608
5627
  }) });
5609
5628
  }
5610
- function dr() {
5629
+ function ur() {
5611
5630
  O((n) => n.showFilters);
5612
5631
  const s = O(
5613
5632
  (n) => n.actions.setShowFilters
@@ -5631,7 +5650,7 @@ function dr() {
5631
5650
  ColumnsComponent: () => (
5632
5651
  // schemaName, tableName, columns
5633
5652
  /* @__PURE__ */ e.jsx(
5634
- cr,
5653
+ dr,
5635
5654
  {}
5636
5655
  )
5637
5656
  )
@@ -5639,7 +5658,7 @@ function dr() {
5639
5658
  ) })
5640
5659
  ] });
5641
5660
  }
5642
- function ur() {
5661
+ function mr() {
5643
5662
  const s = O((t) => t.dashboard.filters), n = O((t) => t.theme), a = s == null ? void 0 : s.filter((t) => t.hide);
5644
5663
  return a != null && a.length ? /* @__PURE__ */ e.jsx(
5645
5664
  "div",
@@ -5648,14 +5667,21 @@ function ur() {
5648
5667
  "bg-[repeating-linear-gradient(45deg,_#ffffff_0_3px,_#f3f3f3_3px_6px)]": n === "light",
5649
5668
  "bg-[repeating-linear-gradient(45deg,_#18171d_0_3px,_#272729_3px_6px)]": n === "dark"
5650
5669
  }),
5651
- children: a == null ? void 0 : a.map((t) => /* @__PURE__ */ e.jsxs("div", { className: "flex w-[250px] flex-col gap-1 p-2", children: [
5652
- /* @__PURE__ */ e.jsx(Ia, { filter: t }),
5653
- /* @__PURE__ */ e.jsx(Ca, { filter: t })
5654
- ] }, t.id))
5670
+ children: a == null ? void 0 : a.map((t) => /* @__PURE__ */ e.jsxs(
5671
+ "div",
5672
+ {
5673
+ className: "flex min-w-[250px] max-w-fit flex-col gap-1 p-2",
5674
+ children: [
5675
+ /* @__PURE__ */ e.jsx(Ia, { filter: t }),
5676
+ /* @__PURE__ */ e.jsx(Ca, { filter: t })
5677
+ ]
5678
+ },
5679
+ t.id
5680
+ ))
5655
5681
  }
5656
5682
  ) : null;
5657
5683
  }
5658
- function mr() {
5684
+ function hr() {
5659
5685
  const s = O((t) => t.showFilters), n = O((t) => t.isVisualEditing), a = O(
5660
5686
  (t) => t.isDashboardEditing
5661
5687
  );
@@ -5669,15 +5695,15 @@ function mr() {
5669
5695
  }),
5670
5696
  children: [
5671
5697
  /* @__PURE__ */ e.jsxs("section", { className: "flex grow flex-col", children: [
5672
- a && /* @__PURE__ */ e.jsx(ur, {}),
5698
+ a && /* @__PURE__ */ e.jsx(mr, {}),
5673
5699
  /* @__PURE__ */ e.jsx(Nn, {})
5674
5700
  ] }),
5675
- s && /* @__PURE__ */ e.jsx("div", { role: "filter-aside-container", className: "flex", children: /* @__PURE__ */ e.jsx(dr, {}) })
5701
+ s && /* @__PURE__ */ e.jsx("div", { role: "filter-aside-container", className: "flex", children: /* @__PURE__ */ e.jsx(ur, {}) })
5676
5702
  ]
5677
5703
  }
5678
5704
  );
5679
5705
  }
5680
- function hr() {
5706
+ function xr() {
5681
5707
  const s = O((t) => t.dashboard), n = O((t) => t.actions.setDashboard), a = O(
5682
5708
  (t) => t.showDashboardJSON
5683
5709
  );
@@ -5721,7 +5747,7 @@ function hr() {
5721
5747
  }
5722
5748
  );
5723
5749
  }
5724
- function gr({
5750
+ function jr({
5725
5751
  showControls: s = !1,
5726
5752
  showFooter: n = !0,
5727
5753
  ...a
@@ -5729,54 +5755,55 @@ function gr({
5729
5755
  return /* @__PURE__ */ e.jsx(gs, { FallbackComponent: Da, children: /* @__PURE__ */ e.jsxs(wn, { dashboardProps: a, children: [
5730
5756
  /* @__PURE__ */ e.jsx(kn, {}),
5731
5757
  /* @__PURE__ */ e.jsxs(zn, { children: [
5732
- /* @__PURE__ */ e.jsx(hr, {}),
5758
+ /* @__PURE__ */ e.jsx(xr, {}),
5733
5759
  /* @__PURE__ */ e.jsxs(On, { ...a, children: [
5734
- s && /* @__PURE__ */ e.jsx(cl, {}),
5735
- /* @__PURE__ */ e.jsx(or, {}),
5736
- /* @__PURE__ */ e.jsx(mr, {})
5760
+ s && /* @__PURE__ */ e.jsx(dl, {}),
5761
+ /* @__PURE__ */ e.jsx(cr, {}),
5762
+ /* @__PURE__ */ e.jsx(hr, {})
5737
5763
  ] })
5738
5764
  ] })
5739
5765
  ] }) });
5740
5766
  }
5741
5767
  export {
5742
- al as A,
5743
- Tn as B,
5744
- Fn as C,
5745
- gr as D,
5768
+ Va as A,
5769
+ Fn as B,
5770
+ Ln as C,
5771
+ jr as D,
5746
5772
  Ma as E,
5747
- qn as G,
5748
- Rn as H,
5749
- $n as L,
5773
+ tl as F,
5774
+ Rn as G,
5775
+ _n as H,
5776
+ Pn as L,
5750
5777
  Ea as M,
5751
- Gn as N,
5752
- Qn as P,
5753
- Kn as S,
5754
- Zn as T,
5755
- sl as U,
5756
- Us as a,
5757
- Gs as b,
5758
- Ta as c,
5778
+ Qn as N,
5779
+ Jn as P,
5780
+ Wn as S,
5781
+ el as T,
5782
+ al as U,
5783
+ Tn as a,
5784
+ Us as b,
5785
+ Gs as c,
5759
5786
  Fa as d,
5760
- La as e,
5761
- Ln as f,
5787
+ Ta as e,
5788
+ La as f,
5762
5789
  Mn as g,
5763
5790
  En as h,
5764
5791
  An as i,
5765
5792
  Vn as j,
5766
- _n as k,
5793
+ qn as k,
5767
5794
  Hn as l,
5768
- Pn as m,
5795
+ $n as m,
5769
5796
  Bn as n,
5770
- He as o,
5771
- Un as p,
5772
- Jn as q,
5773
- Aa as r,
5774
- Wn as s,
5797
+ Un as o,
5798
+ He as p,
5799
+ Gn as q,
5800
+ Kn as r,
5801
+ Aa as s,
5775
5802
  Yn as t,
5776
5803
  Xn as u,
5777
- el as v,
5778
- Qs as w,
5779
- Pe as x,
5780
- Je as y,
5781
- Va as z
5804
+ Zn as v,
5805
+ sl as w,
5806
+ Qs as x,
5807
+ Pe as y,
5808
+ Je as z
5782
5809
  };