react-semaphor 0.0.403 → 0.0.404

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- import { c as O, p as At, u as I, a as Ke, b as Ae, d as oa, e as ca, B as $, P as nt, f as da, g as ha, h as ua, i as ma, L as P, I as de, j as pa, k as fa, l as ga, m as U, n as ya, o as ba, q as xa, r as zs, s as Qt, t as Z, C as yt, v as Is, S as xe, w as ve, x as Ne, y as Ce, z as Ie, A as Se, E as le, T as va, F as Re, G as je, H as bt, J as ze, K as Lt, M as xt, N as Ft, O as vt, Q as we, R as Os, U as Nt, V as Na, W as De, X as Wt, Y as Ve, Z as m, _ as Ca, $ as et, a0 as ht, a1 as Ts, a2 as Sa, a3 as wa, a4 as ka, a5 as Ma, a6 as Da, a7 as za, a8 as As, a9 as Ia, aa as Oa, ab as Ta, ac as Aa, ad as La, ae as be, af as Ls, ag as Fs, ah as Fa, ai as Es, aj as Vs, ak as qs, al as Ea, am as Te, an as Rs, ao as Ue, ap as ut, aq as It, ar as js, as as _s, at as Hs, au as _e, av as ne, aw as Va, ax as Ps, ay as Ct, az as $s, aA as Bs, aB as Us, aC as Zt, aD as Gs, aE as Js, aF as Ks, aG as Qs, aH as Ot, aI as Ws, aJ as Ge, aK as tt, aL as ge, aM as at, aN as Zs, aO as Ys, aP as Xs, aQ as en, aR as Mt, aS as tn, aT as Yt, aU as an, aV as Xt, aW as sn, aX as nn, aY as ln, aZ as rn, a_ as qa, a$ as on, b0 as Et, b1 as Ra, b2 as cn, b3 as dn, b4 as ot, b5 as hn, b6 as un, b7 as ja, b8 as mn, b9 as pn, ba as fn, bb as gn, bc as yn, bd as St, be as _a, bf as bn, bg as Ha, bh as Pa, bi as ct, bj as dt, bk as xn, bl as vn, bm as Nn, bn as Vt, bo as $a, bp as qt, bq as st, br as Cn, bs as mt, bt as Ba, bu as Sn, bv as Ua, bw as wn, bx as kn, by as Mn, bz as Dn, bA as zn, bB as Rt, bC as In, bD as On, bE as Tn, bF as An, bG as ea, bH as ta, bI as Ga, bJ as Ln, bK as Fn, bL as He, bM as te, bN as ae, bO as se, bP as En, bQ as Vn, bR as qn, bS as Rn, bT as jn, bU as _n, bV as Hn, bW as Pn, bX as $n, bY as Dt, bZ as Ja, b_ as Bn, b$ as Un, c0 as Gn, c1 as Jn, c2 as Kn, c3 as Qn } from "./chunks/index-u6Osy4-G.js";
2
- import { D as vr, c8 as Nr, c6 as Cr, c6 as Sr, cb as wr, ca as kr, c9 as Mr, cc as Dr, c7 as zr, c4 as Ir, c5 as Or } from "./chunks/index-u6Osy4-G.js";
1
+ import { c as O, p as At, u as I, a as Ke, b as Ae, d as oa, e as ca, B as $, P as nt, f as da, g as ha, h as ua, i as ma, L as P, I as de, j as pa, k as fa, l as ga, m as U, n as ya, o as ba, q as xa, r as Is, s as Qt, t as Z, C as yt, v as Os, S as xe, w as ve, x as Ne, y as Ce, z as Ie, A as Se, E as le, T as va, F as Re, G as je, H as bt, J as ze, K as Ft, M as xt, N as Lt, O as vt, Q as we, R as Na, U as Nt, V as Ca, W as De, X as Wt, Y as Ve, Z as m, _ as Sa, $ as et, a0 as ht, a1 as Ts, a2 as wa, a3 as ka, a4 as Ma, a5 as Da, a6 as za, a7 as Ia, a8 as As, a9 as Oa, aa as Ta, ab as Aa, ac as Fa, ad as La, ae as be, af as Fs, ag as Ls, ah as Ea, ai as Es, aj as Vs, ak as qs, al as Va, am as Te, an as Rs, ao as Ue, ap as ut, aq as It, ar as js, as as _s, at as Hs, au as _e, av as ne, aw as qa, ax as Ps, ay as Ct, az as $s, aA as Bs, aB as Us, aC as Zt, aD as Gs, aE as Js, aF as Ks, aG as Qs, aH as Ot, aI as Ws, aJ as Ge, aK as tt, aL as ge, aM as at, aN as Zs, aO as Ys, aP as Xs, aQ as en, aR as Mt, aS as tn, aT as Yt, aU as an, aV as Xt, aW as sn, aX as nn, aY as ln, aZ as rn, a_ as Ra, a$ as on, b0 as Et, b1 as ja, b2 as cn, b3 as dn, b4 as ot, b5 as hn, b6 as un, b7 as _a, b8 as mn, b9 as pn, ba as fn, bb as gn, bc as yn, bd as St, be as Ha, bf as bn, bg as Pa, bh as $a, bi as ct, bj as dt, bk as xn, bl as vn, bm as Nn, bn as Vt, bo as Ba, bp as qt, bq as st, br as Cn, bs as mt, bt as Ua, bu as Sn, bv as Ga, bw as wn, bx as kn, by as Mn, bz as Dn, bA as zn, bB as Rt, bC as In, bD as On, bE as Tn, bF as An, bG as ea, bH as ta, bI as Ja, bJ as Fn, bK as Ln, bL as He, bM as te, bN as ae, bO as se, bP as En, bQ as Vn, bR as qn, bS as Rn, bT as jn, bU as _n, bV as Hn, bW as Pn, bX as $n, bY as Dt, bZ as Ka, b_ as Bn, b$ as Un, c0 as Gn, c1 as Jn, c2 as Kn, c3 as Qn } from "./chunks/index-BSKRKj96.js";
2
+ import { D as xr, c8 as vr, c6 as Nr, c6 as Cr, cb as Sr, ca as wr, c9 as kr, cc as Mr, c7 as Dr, c4 as zr, c5 as Ir } from "./chunks/index-BSKRKj96.js";
3
3
  import { jsxs as n, jsx as e, Fragment as ee } from "react/jsx-runtime";
4
4
  import * as Be from "react";
5
- import Oe, { useState as H, useMemo as pt, useEffect as oe, useRef as Je, useCallback as Ka, Suspense as Wn } from "react";
5
+ import Oe, { useState as H, useMemo as pt, useEffect as oe, useRef as Je, useCallback as Qa, Suspense as Wn } from "react";
6
6
  import "react-dom";
7
7
  /**
8
8
  * @license lucide-react v0.453.0 - ISC
@@ -175,7 +175,7 @@ const jt = O("ChartColumnIncreasing", [
175
175
  * This source code is licensed under the ISC license.
176
176
  * See the LICENSE file in the root directory of this source tree.
177
177
  */
178
- const Qa = O("ChartColumnStacked", [
178
+ const Wa = O("ChartColumnStacked", [
179
179
  ["path", { d: "M11 13H7", key: "t0o9gq" }],
180
180
  ["path", { d: "M19 9h-4", key: "rera1j" }],
181
181
  ["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
@@ -198,7 +198,7 @@ const _t = O("ChartLine", [
198
198
  * This source code is licensed under the ISC license.
199
199
  * See the LICENSE file in the root directory of this source tree.
200
200
  */
201
- const Wa = O("ChartNoAxesGantt", [
201
+ const Za = O("ChartNoAxesGantt", [
202
202
  ["path", { d: "M8 6h10", key: "9lnwnk" }],
203
203
  ["path", { d: "M6 12h9", key: "1g9pqf" }],
204
204
  ["path", { d: "M11 18h7", key: "c8dzvl" }]
@@ -209,7 +209,7 @@ const Wa = O("ChartNoAxesGantt", [
209
209
  * This source code is licensed under the ISC license.
210
210
  * See the LICENSE file in the root directory of this source tree.
211
211
  */
212
- const Za = O("ChartPie", [
212
+ const Ya = O("ChartPie", [
213
213
  [
214
214
  "path",
215
215
  {
@@ -225,7 +225,7 @@ const Za = O("ChartPie", [
225
225
  * This source code is licensed under the ISC license.
226
226
  * See the LICENSE file in the root directory of this source tree.
227
227
  */
228
- const Ya = O("ChartScatter", [
228
+ const Xa = O("ChartScatter", [
229
229
  ["circle", { cx: "7.5", cy: "7.5", r: ".5", fill: "currentColor", key: "kqv944" }],
230
230
  ["circle", { cx: "18.5", cy: "5.5", r: ".5", fill: "currentColor", key: "lysivs" }],
231
231
  ["circle", { cx: "11.5", cy: "11.5", r: ".5", fill: "currentColor", key: "byv1b8" }],
@@ -250,7 +250,7 @@ const ol = O("CircleArrowRight", [
250
250
  * This source code is licensed under the ISC license.
251
251
  * See the LICENSE file in the root directory of this source tree.
252
252
  */
253
- const Xa = O("CircleX", [
253
+ const es = O("CircleX", [
254
254
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
255
255
  ["path", { d: "m15 9-6 6", key: "1uzhvr" }],
256
256
  ["path", { d: "m9 9 6 6", key: "z0biqf" }]
@@ -305,7 +305,7 @@ const ul = O("Database", [
305
305
  * This source code is licensed under the ISC license.
306
306
  * See the LICENSE file in the root directory of this source tree.
307
307
  */
308
- const es = O("Donut", [
308
+ const ts = O("Donut", [
309
309
  [
310
310
  "path",
311
311
  {
@@ -321,7 +321,7 @@ const es = O("Donut", [
321
321
  * This source code is licensed under the ISC license.
322
322
  * See the LICENSE file in the root directory of this source tree.
323
323
  */
324
- const ts = O("EllipsisVertical", [
324
+ const as = O("EllipsisVertical", [
325
325
  ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
326
326
  ["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
327
327
  ["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
@@ -380,7 +380,7 @@ const fl = O("FileJson2", [
380
380
  * This source code is licensed under the ISC license.
381
381
  * See the LICENSE file in the root directory of this source tree.
382
382
  */
383
- const as = O("Filter", [
383
+ const ss = O("Filter", [
384
384
  ["polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3", key: "1yg77f" }]
385
385
  ]);
386
386
  /**
@@ -549,7 +549,7 @@ const Ml = O("Mail", [
549
549
  * This source code is licensed under the ISC license.
550
550
  * See the LICENSE file in the root directory of this source tree.
551
551
  */
552
- const ss = O("Map", [
552
+ const ns = O("Map", [
553
553
  [
554
554
  "path",
555
555
  {
@@ -626,7 +626,7 @@ const Tl = O("Plug2", [
626
626
  * This source code is licensed under the ISC license.
627
627
  * See the LICENSE file in the root directory of this source tree.
628
628
  */
629
- const ns = O("Radar", [
629
+ const ls = O("Radar", [
630
630
  ["path", { d: "M19.07 4.93A10 10 0 0 0 6.99 3.34", key: "z3du51" }],
631
631
  ["path", { d: "M4 6h.01", key: "oypzma" }],
632
632
  ["path", { d: "M2.29 9.62A10 10 0 1 0 21.31 8.35", key: "qzzz0" }],
@@ -642,7 +642,7 @@ const ns = O("Radar", [
642
642
  * This source code is licensed under the ISC license.
643
643
  * See the LICENSE file in the root directory of this source tree.
644
644
  */
645
- const ls = O("RefreshCw", [
645
+ const is = O("RefreshCw", [
646
646
  ["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
647
647
  ["path", { d: "M21 3v5h-5", key: "1q7to0" }],
648
648
  ["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
@@ -665,7 +665,7 @@ const Al = O("Rows3", [
665
665
  * This source code is licensed under the ISC license.
666
666
  * See the LICENSE file in the root directory of this source tree.
667
667
  */
668
- const Ll = O("Ruler", [
668
+ const Fl = O("Ruler", [
669
669
  [
670
670
  "path",
671
671
  {
@@ -684,7 +684,7 @@ const Ll = O("Ruler", [
684
684
  * This source code is licensed under the ISC license.
685
685
  * See the LICENSE file in the root directory of this source tree.
686
686
  */
687
- const Fl = O("Save", [
687
+ const Ll = O("Save", [
688
688
  [
689
689
  "path",
690
690
  {
@@ -701,7 +701,7 @@ const Fl = O("Save", [
701
701
  * This source code is licensed under the ISC license.
702
702
  * See the LICENSE file in the root directory of this source tree.
703
703
  */
704
- const is = O("Shapes", [
704
+ const rs = O("Shapes", [
705
705
  [
706
706
  "path",
707
707
  {
@@ -800,7 +800,7 @@ const jl = O("ToggleLeft", [
800
800
  * This source code is licensed under the ISC license.
801
801
  * See the LICENSE file in the root directory of this source tree.
802
802
  */
803
- const rs = O("Tornado", [
803
+ const os = O("Tornado", [
804
804
  ["path", { d: "M21 4H3", key: "1hwok0" }],
805
805
  ["path", { d: "M18 8H6", key: "41n648" }],
806
806
  ["path", { d: "M19 12H9", key: "1g4lpz" }],
@@ -826,12 +826,12 @@ const _l = O("Trash2", [
826
826
  * This source code is licensed under the ISC license.
827
827
  * See the LICENSE file in the root directory of this source tree.
828
828
  */
829
- const os = O("Type", [
829
+ const cs = O("Type", [
830
830
  ["polyline", { points: "4 7 4 4 20 4 20 7", key: "1nosan" }],
831
831
  ["line", { x1: "9", x2: "15", y1: "20", y2: "20", key: "swin9y" }],
832
832
  ["line", { x1: "12", x2: "12", y1: "4", y2: "20", key: "1tx1rr" }]
833
833
  ]);
834
- function cs(t) {
834
+ function ds(t) {
835
835
  var s;
836
836
  return {
837
837
  ...t,
@@ -918,7 +918,7 @@ function Ul() {
918
918
  const [t, s] = H(""), [a, l] = H(!1), i = I((f) => f.lenses), { setLenses: o, setSelectedLensId: r } = Ke(), [d, u] = H(!1), [b, h] = H(!1), g = I((f) => f.dashboard), v = I((f) => f.filterValues), { authToken: c } = Ae();
919
919
  async function y() {
920
920
  u(!0);
921
- const f = cs(
921
+ const f = ds(
922
922
  g
923
923
  ), N = await $l(
924
924
  t,
@@ -1015,7 +1015,7 @@ function Gl() {
1015
1015
  /* @__PURE__ */ e(ba, { className: "px-3", children: "Lenses" }),
1016
1016
  /* @__PURE__ */ e(xa, {}),
1017
1017
  /* @__PURE__ */ n(
1018
- zs,
1018
+ Is,
1019
1019
  {
1020
1020
  value: l,
1021
1021
  onValueChange: d,
@@ -1066,7 +1066,7 @@ function Gl() {
1066
1066
  ] })
1067
1067
  ] });
1068
1068
  }
1069
- function ds() {
1069
+ function hs() {
1070
1070
  var o;
1071
1071
  const t = I.getState().authToken, s = I.getState().theme, a = I.getState().filterValues, l = (o = I.getState().dashboard) == null ? void 0 : o.title, i = I.getState().selectedSheetId;
1072
1072
  return {
@@ -1078,7 +1078,7 @@ function ds() {
1078
1078
  };
1079
1079
  }
1080
1080
  async function Jl() {
1081
- const t = I.getState().isDownloadingPdf, { authToken: s, theme: a, filterValues: l, dashboardTitle: i, selectedSheetId: o } = ds();
1081
+ const t = I.getState().isDownloadingPdf, { authToken: s, theme: a, filterValues: l, dashboardTitle: i, selectedSheetId: o } = hs();
1082
1082
  if (t)
1083
1083
  return;
1084
1084
  const r = new URLSearchParams();
@@ -1113,7 +1113,7 @@ function Kl({
1113
1113
  tooltip: "Download PDF",
1114
1114
  className: "h-7 p-2",
1115
1115
  onClick: l,
1116
- children: a ? /* @__PURE__ */ e(qe, { className: Z("size-3.5 animate-spin", t) }) : /* @__PURE__ */ e(Is, { className: Z("size-4", t) })
1116
+ children: a ? /* @__PURE__ */ e(qe, { className: Z("size-3.5 animate-spin", t) }) : /* @__PURE__ */ e(Os, { className: Z("size-4", t) })
1117
1117
  }
1118
1118
  );
1119
1119
  }
@@ -1247,9 +1247,9 @@ function Ql({
1247
1247
  disabled: i === "loading" || !d,
1248
1248
  children: [
1249
1249
  i === "loading" && /* @__PURE__ */ e(qe, { className: "mr-2 size-4 animate-spin" }),
1250
- i === "success" && /* @__PURE__ */ e(Lt, { className: "mr-2 size-4" }),
1250
+ i === "success" && /* @__PURE__ */ e(Ft, { className: "mr-2 size-4" }),
1251
1251
  i === "error" && /* @__PURE__ */ n(xt, { children: [
1252
- /* @__PURE__ */ e(Ft, { children: /* @__PURE__ */ e(Xa, { className: "mr-2 size-4 text-destructive" }) }),
1252
+ /* @__PURE__ */ e(Lt, { children: /* @__PURE__ */ e(es, { className: "mr-2 size-4 text-destructive" }) }),
1253
1253
  /* @__PURE__ */ e(vt, { children: /* @__PURE__ */ e("p", { children: o }) })
1254
1254
  ] }),
1255
1255
  "Schedule"
@@ -1263,7 +1263,7 @@ function Ql({
1263
1263
  /* @__PURE__ */ e("h4", { className: "font-medium leading-none", children: "Subscriptions" }),
1264
1264
  /* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: "Active email subscriptions" })
1265
1265
  ] }),
1266
- Os
1266
+ Na
1267
1267
  ] }) }),
1268
1268
  /* @__PURE__ */ e("div", { className: "grid gap-2", children: s == null ? void 0 : s.map((f) => /* @__PURE__ */ n(
1269
1269
  "div",
@@ -1307,11 +1307,11 @@ const sa = ({
1307
1307
  children: t,
1308
1308
  tooltip: s
1309
1309
  }) => /* @__PURE__ */ e(va, { delayDuration: 0, children: /* @__PURE__ */ n(xt, { children: [
1310
- /* @__PURE__ */ e(Ft, { asChild: !0, children: t }),
1310
+ /* @__PURE__ */ e(Lt, { asChild: !0, children: t }),
1311
1311
  /* @__PURE__ */ e(vt, { children: s })
1312
1312
  ] }) });
1313
1313
  function Wl() {
1314
- const [t, s] = H("idle"), [a, l] = H(""), [i, o] = H(null), r = I((M) => M.authToken), d = I((M) => M.dashboard.id), u = I((M) => M.dashboard.title), { endUserId: b } = Na((r == null ? void 0 : r.accessToken) || ""), h = "https://semaphor.cloud/api/v1/subscriptions/get", g = {
1314
+ const [t, s] = H("idle"), [a, l] = H(""), [i, o] = H(null), r = I((M) => M.authToken), d = I((M) => M.dashboard.id), u = I((M) => M.dashboard.title), { endUserId: b } = Ca((r == null ? void 0 : r.accessToken) || ""), h = "https://semaphor.cloud/api/v1/subscriptions/get", g = {
1315
1315
  dashboardId: d,
1316
1316
  endUserId: b
1317
1317
  }, { data: v, isLoading: c, isError: y, isFetching: f, refetch: N } = De({
@@ -1321,18 +1321,18 @@ function Wl() {
1321
1321
  });
1322
1322
  async function x({
1323
1323
  email: M,
1324
- subject: F,
1324
+ subject: L,
1325
1325
  frequency: C,
1326
1326
  time: V
1327
1327
  }) {
1328
- const { authToken: R, ...j } = ds(), Q = Intl.DateTimeFormat().resolvedOptions().timeZone, p = {
1328
+ const { authToken: R, ...j } = hs(), Q = Intl.DateTimeFormat().resolvedOptions().timeZone, p = {
1329
1329
  email: M,
1330
1330
  frequency: C,
1331
1331
  time: V,
1332
1332
  timezone: Q,
1333
1333
  endUserId: b,
1334
1334
  endUserEmail: M,
1335
- subject: F || u || "Scheduled Dashboard",
1335
+ subject: L || u || "Scheduled Dashboard",
1336
1336
  dashboardId: d,
1337
1337
  dashboardParams: j
1338
1338
  };
@@ -1354,10 +1354,10 @@ function Wl() {
1354
1354
  }
1355
1355
  }
1356
1356
  async function z(M) {
1357
- const F = "https://semaphor.cloud/api/v1/subscriptions/delete";
1357
+ const L = "https://semaphor.cloud/api/v1/subscriptions/delete";
1358
1358
  o(M);
1359
1359
  try {
1360
- await Wt(F, (r == null ? void 0 : r.accessToken) || "", { id: M }), N(), setTimeout(() => {
1360
+ await Wt(L, (r == null ? void 0 : r.accessToken) || "", { id: M }), N(), setTimeout(() => {
1361
1361
  o(null);
1362
1362
  }, 2e3);
1363
1363
  } catch (C) {
@@ -1394,10 +1394,10 @@ function Zl() {
1394
1394
  (p) => p.actions.setShowFilters
1395
1395
  ), { addFrame: y, setSelectedFrameId: f } = I(
1396
1396
  (p) => p.actions
1397
- ), { getSelectedSheet: N, setIsDashboardEditing: x, setShowDashboardJSON: z } = I((p) => p.actions), M = N(), { tenantId: F, endUserId: C } = pt(
1398
- () => Na(t == null ? void 0 : t.accessToken),
1397
+ ), { getSelectedSheet: N, setIsDashboardEditing: x, setShowDashboardJSON: z } = I((p) => p.actions), M = N(), { tenantId: L, endUserId: C } = pt(
1398
+ () => Ca(t == null ? void 0 : t.accessToken),
1399
1399
  [t == null ? void 0 : t.accessToken]
1400
- ), V = pt(() => F || C, [F, C]), R = () => {
1400
+ ), V = pt(() => L || C, [L, C]), R = () => {
1401
1401
  if (!o || !M) return;
1402
1402
  const p = {
1403
1403
  connectionId: r,
@@ -1426,7 +1426,7 @@ function Zl() {
1426
1426
  };
1427
1427
  async function Q() {
1428
1428
  if (u(!0), !a || !l) return;
1429
- const p = cs(
1429
+ const p = ds(
1430
1430
  i
1431
1431
  ), T = JSON.stringify(p), B = {
1432
1432
  ...l,
@@ -1469,7 +1469,7 @@ function Zl() {
1469
1469
  className: "h-7 p-2",
1470
1470
  onClick: j,
1471
1471
  size: "sm",
1472
- children: /* @__PURE__ */ e(Ca, { className: "h-4 w-4" })
1472
+ children: /* @__PURE__ */ e(Sa, { className: "h-4 w-4" })
1473
1473
  }
1474
1474
  ),
1475
1475
  o && !h && /* @__PURE__ */ e(
@@ -1490,7 +1490,7 @@ function Zl() {
1490
1490
  disabled: d,
1491
1491
  onClick: Q,
1492
1492
  size: "sm",
1493
- children: /* @__PURE__ */ e(Fl, { className: "h-4 w-4" })
1493
+ children: /* @__PURE__ */ e(Ll, { className: "h-4 w-4" })
1494
1494
  }
1495
1495
  ),
1496
1496
  !g && !h && o && /* @__PURE__ */ e(
@@ -1500,7 +1500,7 @@ function Zl() {
1500
1500
  variant: "ghost",
1501
1501
  onClick: () => c(!0),
1502
1502
  size: "sm",
1503
- children: /* @__PURE__ */ e(as, { className: "h-4 w-4" })
1503
+ children: /* @__PURE__ */ e(ss, { className: "h-4 w-4" })
1504
1504
  }
1505
1505
  ),
1506
1506
  !h && o && !1,
@@ -1555,11 +1555,11 @@ function Yl({
1555
1555
  {
1556
1556
  className: "w-full p-0",
1557
1557
  style: { minWidth: v },
1558
- children: /* @__PURE__ */ n(Sa, { children: [
1558
+ children: /* @__PURE__ */ n(wa, { children: [
1559
1559
  /* @__PURE__ */ n("div", { className: "flex h-9 items-center justify-between border-b pr-1", children: [
1560
- /* @__PURE__ */ e(wa, { className: "h-9", placeholder: "Search..." }),
1560
+ /* @__PURE__ */ e(ka, { className: "h-9", placeholder: "Search..." }),
1561
1561
  /* @__PURE__ */ e(U, { className: "h-7", onClick: r, children: /* @__PURE__ */ e(
1562
- ls,
1562
+ is,
1563
1563
  {
1564
1564
  className: Z(
1565
1565
  "size-3.5 opacity-50",
@@ -1568,21 +1568,21 @@ function Yl({
1568
1568
  }
1569
1569
  ) })
1570
1570
  ] }),
1571
- /* @__PURE__ */ n(ka, { children: [
1572
- /* @__PURE__ */ n(Ma, { children: [
1571
+ /* @__PURE__ */ n(Ma, { children: [
1572
+ /* @__PURE__ */ n(Da, { children: [
1573
1573
  "No ",
1574
1574
  t == null ? void 0 : t.toLowerCase(),
1575
1575
  " found."
1576
1576
  ] }),
1577
- /* @__PURE__ */ e(Da, { children: y == null ? void 0 : y.map((x) => /* @__PURE__ */ e(
1578
- za,
1577
+ /* @__PURE__ */ e(za, { children: y == null ? void 0 : y.map((x) => /* @__PURE__ */ e(
1578
+ Ia,
1579
1579
  {
1580
1580
  className: "overflow-x-auto",
1581
1581
  value: x.name,
1582
1582
  onSelect: (z) => N(z, x.id),
1583
1583
  children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
1584
1584
  /* @__PURE__ */ e(
1585
- Lt,
1585
+ Ft,
1586
1586
  {
1587
1587
  className: Z(
1588
1588
  "size-4",
@@ -1650,7 +1650,7 @@ function Ye({
1650
1650
  l ? /* @__PURE__ */ e(Se, { children: "Loading..." }) : /* @__PURE__ */ n(Se, { className: "flex items-center justify-between gap-2", children: [
1651
1651
  t,
1652
1652
  /* @__PURE__ */ e(
1653
- ls,
1653
+ is,
1654
1654
  {
1655
1655
  className: Z(
1656
1656
  "mr-1 size-3 cursor-pointer text-muted-foreground hover:text-foreground",
@@ -1686,7 +1686,7 @@ function Ye({
1686
1686
  }
1687
1687
  return /* @__PURE__ */ e(As, { delayDuration: 0, children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
1688
1688
  h && /* @__PURE__ */ e("div", { className: "shrink-0", children: r ? /* @__PURE__ */ n(xt, { children: [
1689
- /* @__PURE__ */ e(Ft, { children: y() }),
1689
+ /* @__PURE__ */ e(Lt, { children: y() }),
1690
1690
  /* @__PURE__ */ e(vt, { className: "text-xs", align: "start", children: r })
1691
1691
  ] }) : y() }),
1692
1692
  v === "select" ? f() : N()
@@ -1700,8 +1700,8 @@ function Xl({ column: t }) {
1700
1700
  ), r = m((y) => y.sqlGen), { modelItems: d, connectionType: u } = Pe(), b = m((y) => y.actions.setSqlGen), h = m((y) => y.actions.setCardSql), g = m((y) => y.actions.setRunSql);
1701
1701
  function v(y, f) {
1702
1702
  var M;
1703
- const N = Aa(y, r, f), x = (M = d == null ? void 0 : d.find(
1704
- (F) => F.id === o
1703
+ const N = Fa(y, r, f), x = (M = d == null ? void 0 : d.find(
1704
+ (L) => L.id === o
1705
1705
  )) == null ? void 0 : M.name;
1706
1706
  b(N);
1707
1707
  const z = La(
@@ -1757,10 +1757,10 @@ function Xl({ column: t }) {
1757
1757
  )
1758
1758
  ] });
1759
1759
  }
1760
- return /* @__PURE__ */ n(Ia, { openDelay: 0, open: s, onOpenChange: a, children: [
1761
- /* @__PURE__ */ e(Oa, { asChild: !0, children: /* @__PURE__ */ e(ts, { className: "invisible size-3.5 cursor-pointer text-foreground/40 group-hover:visible" }) }),
1760
+ return /* @__PURE__ */ n(Oa, { openDelay: 0, open: s, onOpenChange: a, children: [
1761
+ /* @__PURE__ */ e(Ta, { asChild: !0, children: /* @__PURE__ */ e(as, { className: "invisible size-3.5 cursor-pointer text-foreground/40 group-hover:visible" }) }),
1762
1762
  /* @__PURE__ */ e(
1763
- Ta,
1763
+ Aa,
1764
1764
  {
1765
1765
  align: "center",
1766
1766
  className: "w-20 rounded-md p-0 shadow-none",
@@ -1769,9 +1769,9 @@ function Xl({ column: t }) {
1769
1769
  )
1770
1770
  ] });
1771
1771
  }
1772
- function hs({ column: t }) {
1772
+ function us({ column: t }) {
1773
1773
  return /* @__PURE__ */ n(xt, { children: [
1774
- /* @__PURE__ */ e(Ls, { asChild: !0, children: Fs(t.data_type) ? /* @__PURE__ */ e(os, { className: "size-3" }) : Fa(t.data_type) ? /* @__PURE__ */ e(xl, { className: "size-3" }) : Es(t.data_type) ? /* @__PURE__ */ e(Vs, { className: "size-3" }) : qs(t.data_type) ? /* @__PURE__ */ e(jl, { className: "size-3" }) : t.data_type.toLowerCase() === "json" ? /* @__PURE__ */ e(il, { className: "size-3" }) : /* @__PURE__ */ e(El, { className: "size-3" }) }),
1774
+ /* @__PURE__ */ e(Fs, { asChild: !0, children: Ls(t.data_type) ? /* @__PURE__ */ e(cs, { className: "size-3" }) : Ea(t.data_type) ? /* @__PURE__ */ e(xl, { className: "size-3" }) : Es(t.data_type) ? /* @__PURE__ */ e(Vs, { className: "size-3" }) : qs(t.data_type) ? /* @__PURE__ */ e(jl, { className: "size-3" }) : t.data_type.toLowerCase() === "json" ? /* @__PURE__ */ e(il, { className: "size-3" }) : /* @__PURE__ */ e(El, { className: "size-3" }) }),
1775
1775
  /* @__PURE__ */ e(vt, { children: /* @__PURE__ */ e("p", { className: "font-mono text-xs", children: t.data_type }) })
1776
1776
  ] });
1777
1777
  }
@@ -1793,10 +1793,10 @@ function ei({
1793
1793
  (p) => p.dashboard.aiScopeTables
1794
1794
  ), { addToAIScope: g, removeFromAIScope: v } = Ke(), { setAIScopeTables: c } = I((p) => p.actions), y = m((p) => p.actions.setRunSql), f = m((p) => p.actions.setSqlGen), N = m(
1795
1795
  (p) => p.actions.setIsShowingVisual
1796
- ), x = m((p) => p.actions.setCardSql), { connectionType: z, modelItems: M, selectedDatamodelName: F } = Pe();
1796
+ ), x = m((p) => p.actions.setCardSql), { connectionType: z, modelItems: M, selectedDatamodelName: L } = Pe();
1797
1797
  function C(p) {
1798
1798
  var G;
1799
- const T = Aa(p, i);
1799
+ const T = Fa(p, i);
1800
1800
  f(T);
1801
1801
  const B = (G = M == null ? void 0 : M.find(
1802
1802
  (W) => W.id === b
@@ -1811,17 +1811,17 @@ function ei({
1811
1811
  }
1812
1812
  function V() {
1813
1813
  return (h == null ? void 0 : h.find(
1814
- (p) => p.connectionId === o && (p.tableName === u || p.datamodelName === F)
1814
+ (p) => p.connectionId === o && (p.tableName === u || p.datamodelName === L)
1815
1815
  )) !== void 0;
1816
1816
  }
1817
1817
  function R(p) {
1818
- p === !0 && (u || F) && o ? (g({
1818
+ p === !0 && (u || L) && o ? (g({
1819
1819
  connectionId: o,
1820
1820
  connectionType: z === "S3" || z === "API" ? "DuckDb" : z,
1821
1821
  databaseName: r || "",
1822
1822
  schemaName: d || "",
1823
1823
  tableName: u || "",
1824
- datamodelName: ut(F),
1824
+ datamodelName: ut(L),
1825
1825
  datamodelId: b || ""
1826
1826
  }), ht.success("Added to Assistant Scope", {
1827
1827
  position: "top-right",
@@ -1831,7 +1831,7 @@ function ei({
1831
1831
  connectionId: o || "",
1832
1832
  connectionType: z || "",
1833
1833
  tableName: u || "",
1834
- datamodelName: ut(F),
1834
+ datamodelName: ut(L),
1835
1835
  datamodelId: b || "",
1836
1836
  databaseName: r || "",
1837
1837
  schemaName: d || ""
@@ -1845,7 +1845,7 @@ function ei({
1845
1845
  const p = It({
1846
1846
  schemaName: t,
1847
1847
  tableName: s,
1848
- modelName: F,
1848
+ modelName: L,
1849
1849
  connectionType: z
1850
1850
  });
1851
1851
  N(!1);
@@ -1856,7 +1856,7 @@ function ei({
1856
1856
  const p = It({
1857
1857
  schemaName: t,
1858
1858
  tableName: s,
1859
- modelName: F,
1859
+ modelName: L,
1860
1860
  connectionType: z
1861
1861
  });
1862
1862
  x(`SELECT COUNT(*) as count FROM ${p}`), y(!0);
@@ -1864,7 +1864,7 @@ function ei({
1864
1864
  return /* @__PURE__ */ n("div", { className: "flex grow flex-col space-y-4 px-4", children: [
1865
1865
  /* @__PURE__ */ n("div", { className: "mx-2 flex items-center justify-center gap-2", children: [
1866
1866
  /* @__PURE__ */ n(
1867
- Ea,
1867
+ Va,
1868
1868
  {
1869
1869
  title: `${V() ? "Remove from" : "Add to"} Assistant Scope`,
1870
1870
  pressed: V(),
@@ -1933,7 +1933,7 @@ function ei({
1933
1933
  ),
1934
1934
  children: [
1935
1935
  /* @__PURE__ */ n("div", { className: "flex items-center space-x-2", children: [
1936
- /* @__PURE__ */ e(hs, { column: p }),
1936
+ /* @__PURE__ */ e(us, { column: p }),
1937
1937
  /* @__PURE__ */ e("span", { children: p.column_name })
1938
1938
  ] }),
1939
1939
  /* @__PURE__ */ e(
@@ -1941,7 +1941,7 @@ function ei({
1941
1941
  {
1942
1942
  onClick: (T) => T.stopPropagation(),
1943
1943
  className: "flex items-center justify-end",
1944
- children: Fa(p.data_type) && /* @__PURE__ */ e(Xl, { column: p })
1944
+ children: Ea(p.data_type) && /* @__PURE__ */ e(Xl, { column: p })
1945
1945
  }
1946
1946
  )
1947
1947
  ]
@@ -1992,7 +1992,7 @@ function Pe(t, s) {
1992
1992
  const {
1993
1993
  refetch: z,
1994
1994
  data: M,
1995
- isLoading: F,
1995
+ isLoading: L,
1996
1996
  isError: C
1997
1997
  } = De({
1998
1998
  queryKey: ["connections"],
@@ -2125,11 +2125,11 @@ function Pe(t, s) {
2125
2125
  c,
2126
2126
  g
2127
2127
  ]);
2128
- const ue = (p == null ? void 0 : p.type) === "API" ? ($t = p == null ? void 0 : p.type) == null ? void 0 : $t.toLowerCase() : u || "", Le = B ? "" : d || "";
2129
- function Fe(k) {
2128
+ const ue = (p == null ? void 0 : p.type) === "API" ? ($t = p == null ? void 0 : p.type) == null ? void 0 : $t.toLowerCase() : u || "", Fe = B ? "" : d || "";
2129
+ function Le(k) {
2130
2130
  c(k), y("");
2131
2131
  }
2132
- function L(k) {
2132
+ function F(k) {
2133
2133
  v(k === "none" ? "" : k), c(""), y(""), k !== "none" && k !== "" && g("");
2134
2134
  }
2135
2135
  function me(k) {
@@ -2160,16 +2160,16 @@ function Pe(t, s) {
2160
2160
  })), kt = E == null ? void 0 : E.tables.map((k) => ({
2161
2161
  id: k.table_name,
2162
2162
  name: k.table_name
2163
- })), Ds = (Kt = R == null ? void 0 : R.datamodels.find(
2163
+ })), zs = (Kt = R == null ? void 0 : R.datamodels.find(
2164
2164
  (k) => k.id === o
2165
2165
  )) == null ? void 0 : Kt.name;
2166
2166
  return {
2167
2167
  connectionItems: fe,
2168
- isConnectionsLoading: F,
2168
+ isConnectionsLoading: L,
2169
2169
  isConnectionsError: C,
2170
2170
  modelItems: Ze,
2171
2171
  selectedDatamodelId: o,
2172
- selectedDatamodelName: Ds,
2172
+ selectedDatamodelName: zs,
2173
2173
  isModelsLoading: j,
2174
2174
  isModelsError: Q,
2175
2175
  databaseItems: wt,
@@ -2187,7 +2187,7 @@ function Pe(t, s) {
2187
2187
  isNonDbConnection: B,
2188
2188
  connectionType: T,
2189
2189
  tableName: ue,
2190
- schemaName: Le,
2190
+ schemaName: Fe,
2191
2191
  refetchConnections: z,
2192
2192
  refetchModels: V,
2193
2193
  refetchDatabases: w,
@@ -2196,11 +2196,11 @@ function Pe(t, s) {
2196
2196
  refetchColumns: Y,
2197
2197
  handleConnectionChange: me,
2198
2198
  handleDatamodelChange: Ee,
2199
- handleDatabaseChange: L,
2200
- handleSchemaChange: Fe
2199
+ handleDatabaseChange: F,
2200
+ handleSchemaChange: Le
2201
2201
  };
2202
2202
  }
2203
- function us({
2203
+ function ms({
2204
2204
  ColumnsComponent: t
2205
2205
  }) {
2206
2206
  var pe;
@@ -2227,7 +2227,7 @@ function us({
2227
2227
  isModelsError: x,
2228
2228
  isDatabasesLoadingOrFetching: z,
2229
2229
  isDatabaseError: M,
2230
- isSchemaLoadingOrFetching: F,
2230
+ isSchemaLoadingOrFetching: L,
2231
2231
  isSchemaError: C,
2232
2232
  isColumnsError: V,
2233
2233
  isColumnsLoadingOrFetching: R,
@@ -2313,7 +2313,7 @@ function us({
2313
2313
  refetch: G,
2314
2314
  onChange: X,
2315
2315
  isError: C,
2316
- isLoading: F,
2316
+ isLoading: L,
2317
2317
  items: h,
2318
2318
  value: o || "",
2319
2319
  title: "Schema",
@@ -2408,10 +2408,10 @@ function ti(t) {
2408
2408
  }
2409
2409
  }
2410
2410
  function ai({ sql: t, error: s, onClick: a }) {
2411
- return !t && !s ? null : /* @__PURE__ */ n(Ia, { openDelay: s ? 0 : 500, children: [
2412
- /* @__PURE__ */ e(Oa, { asChild: !0, children: /* @__PURE__ */ e($, { variant: "link", className: "h-5 p-0", children: s ? /* @__PURE__ */ e(Xa, { className: "h-4 w-4 text-red-500" }) : /* @__PURE__ */ e(js, { className: "h-4 w-4 text-muted-foreground" }) }) }),
2411
+ return !t && !s ? null : /* @__PURE__ */ n(Oa, { openDelay: s ? 0 : 500, children: [
2412
+ /* @__PURE__ */ e(Ta, { asChild: !0, children: /* @__PURE__ */ e($, { variant: "link", className: "h-5 p-0", children: s ? /* @__PURE__ */ e(es, { className: "h-4 w-4 text-red-500" }) : /* @__PURE__ */ e(js, { className: "h-4 w-4 text-muted-foreground" }) }) }),
2413
2413
  /* @__PURE__ */ e(
2414
- Ta,
2414
+ Aa,
2415
2415
  {
2416
2416
  align: "start",
2417
2417
  className: "w-full min-w-fit max-w-[700px]",
@@ -2432,13 +2432,13 @@ function ai({ sql: t, error: s, onClick: a }) {
2432
2432
  )
2433
2433
  ] });
2434
2434
  }
2435
- var ms = {
2435
+ var ps = {
2436
2436
  color: void 0,
2437
2437
  size: void 0,
2438
2438
  className: void 0,
2439
2439
  style: void 0,
2440
2440
  attr: void 0
2441
- }, na = Oe.createContext && /* @__PURE__ */ Oe.createContext(ms), si = ["attr", "size", "title"];
2441
+ }, na = Oe.createContext && /* @__PURE__ */ Oe.createContext(ps), si = ["attr", "size", "title"];
2442
2442
  function ni(t, s) {
2443
2443
  if (t == null) return {};
2444
2444
  var a = li(t, s), l, i;
@@ -2507,15 +2507,15 @@ function oi(t, s) {
2507
2507
  }
2508
2508
  return (s === "string" ? String : Number)(t);
2509
2509
  }
2510
- function ps(t) {
2510
+ function fs(t) {
2511
2511
  return t && t.map((s, a) => /* @__PURE__ */ Oe.createElement(s.tag, gt({
2512
2512
  key: a
2513
- }, s.attr), ps(s.child)));
2513
+ }, s.attr), fs(s.child)));
2514
2514
  }
2515
2515
  function Qe(t) {
2516
2516
  return (s) => /* @__PURE__ */ Oe.createElement(ci, ft({
2517
2517
  attr: gt({}, t.attr)
2518
- }, s), ps(t.child));
2518
+ }, s), fs(t.child));
2519
2519
  }
2520
2520
  function ci(t) {
2521
2521
  var s = (a) => {
@@ -2538,15 +2538,15 @@ function ci(t) {
2538
2538
  xmlns: "http://www.w3.org/2000/svg"
2539
2539
  }), o && /* @__PURE__ */ Oe.createElement("title", null, o), t.children);
2540
2540
  };
2541
- return na !== void 0 ? /* @__PURE__ */ Oe.createElement(na.Consumer, null, (a) => s(a)) : s(ms);
2541
+ return na !== void 0 ? /* @__PURE__ */ Oe.createElement(na.Consumer, null, (a) => s(a)) : s(ps);
2542
2542
  }
2543
2543
  function di(t) {
2544
2544
  return Qe({ attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M439.8 200.5c-7.7-30.9-22.3-54.2-53.4-54.2h-40.1v47.4c0 36.8-31.2 67.8-66.8 67.8H172.7c-29.2 0-53.4 25-53.4 54.3v101.8c0 29 25.2 46 53.4 54.3 33.8 9.9 66.3 11.7 106.8 0 26.9-7.8 53.4-23.5 53.4-54.3v-40.7H226.2v-13.6h160.2c31.1 0 42.6-21.7 53.4-54.2 11.2-33.5 10.7-65.7 0-108.6zM286.2 404c11.1 0 20.1 9.1 20.1 20.3 0 11.3-9 20.4-20.1 20.4-11 0-20.1-9.2-20.1-20.4.1-11.3 9.1-20.3 20.1-20.3zM167.8 248.1h106.8c29.7 0 53.4-24.5 53.4-54.3V91.9c0-29-24.4-50.7-53.4-55.6-35.8-5.9-74.7-5.6-106.8.1-45.2 8-53.4 24.7-53.4 55.6v40.7h106.9v13.6h-147c-31.1 0-58.3 18.7-66.8 54.2-9.8 40.7-10.2 66.1 0 108.6 7.6 31.6 25.7 54.2 56.8 54.2H101v-48.8c0-35.3 30.5-66.4 66.8-66.4zm-6.7-142.6c-11.1 0-20.1-9.1-20.1-20.3.1-11.3 9-20.4 20.1-20.4 11 0 20.1 9.2 20.1 20.4s-9 20.3-20.1 20.3z" }, child: [] }] })(t);
2545
2545
  }
2546
- function fs(t) {
2547
- const { theme: s } = _s(), a = I((f) => f.theme), l = m((f) => f.frame), i = m((f) => f.card), o = m((f) => f.activeTabCardId), r = Hs(), { refetch: d } = _e(i), { updateCardTab: u, setRunSql: b } = ne(), h = Je(), g = Je({}), v = l.cards.find((f) => f.id === o), c = Ka(() => {
2546
+ function gs(t) {
2547
+ const { theme: s } = _s(), a = I((f) => f.theme), l = m((f) => f.frame), i = m((f) => f.card), o = m((f) => f.activeTabCardId), r = Hs(), { refetch: d } = _e(i), { updateCardTab: u, setRunSql: b } = ne(), h = Je(), g = Je({}), v = l.cards.find((f) => f.id === o), c = Qa(() => {
2548
2548
  let f = "";
2549
- return t === "python" && (f = (v == null ? void 0 : v.python) || Va), t === "sql" && (f = (v == null ? void 0 : v.sql) || ""), f;
2549
+ return t === "python" && (f = (v == null ? void 0 : v.python) || qa), t === "sql" && (f = (v == null ? void 0 : v.sql) || ""), f;
2550
2550
  }, [t, v]);
2551
2551
  oe(() => {
2552
2552
  if (o && i.id && i.id !== o) {
@@ -2605,7 +2605,7 @@ function fs(t) {
2605
2605
  return { handleEditorDidMount: y };
2606
2606
  }
2607
2607
  function hi() {
2608
- const t = m((r) => r.card.sql), s = m((r) => r.sqlGen), { setCardSql: a, setSqlGen: l } = ne(), { handleEditorDidMount: i } = fs("sql");
2608
+ const t = m((r) => r.card.sql), s = m((r) => r.sqlGen), { setCardSql: a, setSqlGen: l } = ne(), { handleEditorDidMount: i } = gs("sql");
2609
2609
  function o(r) {
2610
2610
  a(r), $s(s) || l({});
2611
2611
  }
@@ -2634,7 +2634,7 @@ function hi() {
2634
2634
  );
2635
2635
  }
2636
2636
  function ui() {
2637
- const t = m((i) => i.card.python), { setCardPython: s } = ne(), { handleEditorDidMount: a } = fs("python");
2637
+ const t = m((i) => i.card.python), { setCardPython: s } = ne(), { handleEditorDidMount: a } = gs("python");
2638
2638
  function l(i) {
2639
2639
  s(i);
2640
2640
  }
@@ -2644,7 +2644,7 @@ function ui() {
2644
2644
  className: "pt-3",
2645
2645
  theme: "default",
2646
2646
  onChange: l,
2647
- value: t || Va,
2647
+ value: t || qa,
2648
2648
  options: {
2649
2649
  minimap: {
2650
2650
  enabled: !1
@@ -2688,7 +2688,7 @@ function mi({ jsonString: t }) {
2688
2688
  }
2689
2689
  );
2690
2690
  }
2691
- function gs(t) {
2691
+ function ys(t) {
2692
2692
  const [s, a] = H(""), [l, i] = H(null), { authToken: o } = Ae(), r = m((D) => {
2693
2693
  var J;
2694
2694
  return (J = D == null ? void 0 : D.card) == null ? void 0 : J.sql;
@@ -2705,7 +2705,7 @@ function gs(t) {
2705
2705
  (D) => D.selectedSchemaName
2706
2706
  ), z = I(
2707
2707
  (D) => D.dashboard.aiScopeTables
2708
- ), { setTriggerAIRun: M, setCurrentAssitantScope: F } = ne(), { selectedDatamodelName: C, connectionType: V, selectedDatamodelId: R } = Pe(), {
2708
+ ), { setTriggerAIRun: M, setCurrentAssitantScope: L } = ne(), { selectedDatamodelName: C, connectionType: V, selectedDatamodelId: R } = Pe(), {
2709
2709
  messages: j,
2710
2710
  setMessages: Q,
2711
2711
  reload: p,
@@ -2787,7 +2787,7 @@ function gs(t) {
2787
2787
  }
2788
2788
  function ie(D) {
2789
2789
  const J = Js(D);
2790
- F(J), Q((he) => [
2790
+ L(J), Q((he) => [
2791
2791
  ...he,
2792
2792
  {
2793
2793
  id: crypto.randomUUID(),
@@ -2845,7 +2845,7 @@ function gs(t) {
2845
2845
  handleAddCurrentTableToScope: _,
2846
2846
  removeFromCurrentSelections: X,
2847
2847
  currentAssitantScope: g,
2848
- setCurrentAssitantScope: F,
2848
+ setCurrentAssitantScope: L,
2849
2849
  handleInputChange: W,
2850
2850
  handleSubmit: S,
2851
2851
  stop: w,
@@ -2856,25 +2856,25 @@ function gs(t) {
2856
2856
  };
2857
2857
  }
2858
2858
  function pi() {
2859
- var Fe;
2859
+ var Le;
2860
2860
  const [t, s] = H({
2861
2861
  queryKey: [],
2862
2862
  queryData: null
2863
- }), a = Ks(), [l, i] = H(!1), [o, r] = H(!1), d = m((L) => L.frame), u = m((L) => L.card), b = m((L) => L.isShowingVisual), h = m(
2864
- (L) => L.selectedConnectionId
2863
+ }), a = Ks(), [l, i] = H(!1), [o, r] = H(!1), d = m((F) => F.frame), u = m((F) => F.card), b = m((F) => F.isShowingVisual), h = m(
2864
+ (F) => F.selectedConnectionId
2865
2865
  ), g = m(
2866
- (L) => L.selectedDatabaseName
2866
+ (F) => F.selectedDatabaseName
2867
2867
  ), v = m(
2868
- (L) => L.selectedDatamodelId
2868
+ (F) => F.selectedDatamodelId
2869
2869
  ), c = m(
2870
- (L) => L.selectedSchemaName
2871
- ), y = m((L) => L.showAIDialog), f = m((L) => L.selectedTableName), N = m((L) => {
2870
+ (F) => F.selectedSchemaName
2871
+ ), y = m((F) => F.showAIDialog), f = m((F) => F.selectedTableName), N = m((F) => {
2872
2872
  var me;
2873
- return (me = L == null ? void 0 : L.card) == null ? void 0 : me.sql;
2873
+ return (me = F == null ? void 0 : F.card) == null ? void 0 : me.sql;
2874
2874
  }), { sheetFilterValues: x } = Qs(), {
2875
2875
  setCardCustomCfg: z,
2876
2876
  setQueryResultColumns: M,
2877
- setCardSql: F,
2877
+ setCardSql: L,
2878
2878
  // setQueryError,
2879
2879
  setPythonStdOut: C,
2880
2880
  setCardPreferences: V,
@@ -2882,8 +2882,8 @@ function pi() {
2882
2882
  setCardPython: j,
2883
2883
  runAssistant: Q,
2884
2884
  setShowAIDialog: p
2885
- } = ne(), T = m((L) => L.onSave), B = m((L) => L.onClose), q = m((L) => L.actions.setSqlGen), G = m((L) => L.runSql), W = m((L) => L.actions.setRunSql), S = m((L) => L.actions.setCardCfg), w = m(
2886
- (L) => L.actions.setIsSqlRunning
2885
+ } = ne(), T = m((F) => F.onSave), B = m((F) => F.onClose), q = m((F) => F.actions.setSqlGen), G = m((F) => F.runSql), W = m((F) => F.actions.setRunSql), S = m((F) => F.actions.setCardCfg), w = m(
2886
+ (F) => F.actions.setIsSqlRunning
2887
2887
  ), {
2888
2888
  data: A,
2889
2889
  isLoading: K,
@@ -2893,14 +2893,14 @@ function pi() {
2893
2893
  error: E,
2894
2894
  queryKey: re,
2895
2895
  refetch: D
2896
- } = _e(u), { handleSetAIScope: J } = gs();
2896
+ } = _e(u), { handleSetAIScope: J } = ys();
2897
2897
  oe(() => {
2898
2898
  if (A && (A.rowLimitExceeded && ht.error("Row limit (10,000) exceeded. Refine your query.", {
2899
2899
  position: "top-center",
2900
2900
  richColors: !0
2901
2901
  }), C((A == null ? void 0 : A.output) || ""), A.records.length > 0)) {
2902
- const { dimensionKeys: L } = Ot(A.records);
2903
- M(L);
2902
+ const { dimensionKeys: F } = Ot(A.records);
2903
+ M(F);
2904
2904
  }
2905
2905
  }, [A, M, C]), oe(() => {
2906
2906
  (K || X) && w(!0), (_ || ie) && w(!1), _ && (M([]), C(""));
@@ -2919,35 +2919,35 @@ function pi() {
2919
2919
  G && (a.getQueryData(re) || D(), W(!1));
2920
2920
  }, [G, D, W, re, a]);
2921
2921
  function he() {
2922
- const L = a.getQueryData(re);
2922
+ const F = a.getQueryData(re);
2923
2923
  t.queryData || s({
2924
2924
  queryKey: re,
2925
- queryData: L
2926
- }), a.setQueryData(re, null), a.removeQueries({ queryKey: re, exact: !0 }), F(""), q({}), j(""), S(void 0), z(""), V({}), R("bar");
2925
+ queryData: F
2926
+ }), a.setQueryData(re, null), a.removeQueries({ queryKey: re, exact: !0 }), L(""), q({}), j(""), S(void 0), z(""), V({}), R("bar");
2927
2927
  }
2928
- function ce(L, me) {
2929
- if (L.length === 0)
2928
+ function ce(F, me) {
2929
+ if (F.length === 0)
2930
2930
  return "";
2931
2931
  if (me) {
2932
- const Ee = L.find((fe) => fe.id === me);
2932
+ const Ee = F.find((fe) => fe.id === me);
2933
2933
  if (Ee) {
2934
2934
  const fe = Ee.tabTitle;
2935
2935
  if (fe == "All__Header")
2936
- return L[0].id;
2936
+ return F[0].id;
2937
2937
  if (fe && fe.endsWith("__Header")) {
2938
- const wt = fe.split("__")[0], lt = L.find(
2938
+ const wt = fe.split("__")[0], lt = F.find(
2939
2939
  (kt) => kt.tabTitle === wt
2940
2940
  );
2941
- return lt ? lt.id : L[0].id;
2941
+ return lt ? lt.id : F[0].id;
2942
2942
  }
2943
2943
  return me;
2944
2944
  }
2945
2945
  }
2946
- return L[0].id;
2946
+ return F[0].id;
2947
2947
  }
2948
2948
  function ke() {
2949
- let L = N;
2950
- N && !N.includes("{{") && (L = ti(N), F(L));
2949
+ let F = N;
2950
+ N && !N.includes("{{") && (F = ti(N), L(F));
2951
2951
  const me = {
2952
2952
  ...u,
2953
2953
  lastSelectedSchema: c,
@@ -2956,7 +2956,7 @@ function pi() {
2956
2956
  lastSelectedTable: f,
2957
2957
  connectionId: h,
2958
2958
  type: b ? u.type : "table",
2959
- sql: L,
2959
+ sql: F,
2960
2960
  customCfg: b ? u.customCfg : null
2961
2961
  }, Ee = d.cards.map(
2962
2962
  (Ze) => Ze.id === u.id ? me : Ze
@@ -2968,22 +2968,22 @@ function pi() {
2968
2968
  T == null || T(fe);
2969
2969
  }
2970
2970
  function Me() {
2971
- const { queryKey: L, queryData: me } = t;
2972
- L && me && a.setQueryData(L, me), q({}), B == null || B();
2971
+ const { queryKey: F, queryData: me } = t;
2972
+ F && me && a.setQueryData(F, me), q({}), B == null || B();
2973
2973
  }
2974
2974
  async function pe() {
2975
- const L = `Can you help me debug this query in the current table scope?
2975
+ const F = `Can you help me debug this query in the current table scope?
2976
2976
 
2977
2977
  Error:
2978
2978
 
2979
- ${Le}
2979
+ ${Fe}
2980
2980
 
2981
2981
  Query:
2982
2982
 
2983
2983
  ${N}
2984
2984
 
2985
2985
  `;
2986
- Q(L);
2986
+ Q(F);
2987
2987
  }
2988
2988
  function Y() {
2989
2989
  return /* @__PURE__ */ n(ee, { children: [
@@ -3006,7 +3006,7 @@ function pi() {
3006
3006
  variant: "ghost",
3007
3007
  onClick: () => r(!o),
3008
3008
  className: "absolute bottom-0 right-6 size-7 p-1",
3009
- children: o ? /* @__PURE__ */ e(Ge, { className: "size-3.5 text-muted-foreground" }) : /* @__PURE__ */ e(as, { className: "size-3.5 text-muted-foreground" })
3009
+ children: o ? /* @__PURE__ */ e(Ge, { className: "size-3.5 text-muted-foreground" }) : /* @__PURE__ */ e(ss, { className: "size-3.5 text-muted-foreground" })
3010
3010
  }
3011
3011
  )
3012
3012
  ] });
@@ -3066,7 +3066,7 @@ function pi() {
3066
3066
  }
3067
3067
  );
3068
3068
  }
3069
- const Le = (E == null ? void 0 : E.message) || ((Fe = A == null ? void 0 : A.error) == null ? void 0 : Fe.message);
3069
+ const Fe = (E == null ? void 0 : E.message) || ((Le = A == null ? void 0 : A.error) == null ? void 0 : Le.message);
3070
3070
  return (
3071
3071
  // This is a tricky css, the pt-8 is to make sure the editor doesn't slide under the header
3072
3072
  /* @__PURE__ */ n(
@@ -3106,7 +3106,7 @@ function pi() {
3106
3106
  ai,
3107
3107
  {
3108
3108
  sql: A == null ? void 0 : A.sql,
3109
- error: Le,
3109
+ error: Fe,
3110
3110
  onClick: pe
3111
3111
  }
3112
3112
  ),
@@ -3124,10 +3124,10 @@ function pi() {
3124
3124
  }
3125
3125
  ),
3126
3126
  /* @__PURE__ */ e(
3127
- Ea,
3127
+ Va,
3128
3128
  {
3129
3129
  pressed: l,
3130
- onPressedChange: (L) => i(L),
3130
+ onPressedChange: (F) => i(F),
3131
3131
  className: "",
3132
3132
  size: "sm",
3133
3133
  children: /* @__PURE__ */ e(di, { className: "size-4 text-foreground/70" })
@@ -3166,7 +3166,7 @@ function pi() {
3166
3166
  size: "sm",
3167
3167
  variant: "secondary",
3168
3168
  children: [
3169
- /* @__PURE__ */ e(Lt, { className: "mr-2 size-4 font-bold text-green-600" }),
3169
+ /* @__PURE__ */ e(Ft, { className: "mr-2 size-4 font-bold text-green-600" }),
3170
3170
  "Accept"
3171
3171
  ]
3172
3172
  }
@@ -3235,14 +3235,14 @@ function fi({ data: t }) {
3235
3235
  ] }) });
3236
3236
  }
3237
3237
  function gi({ card: t }) {
3238
- var z, M, F, C, V, R, j, Q, p, T, B;
3238
+ var z, M, L, C, V, R, j, Q, p, T, B;
3239
3239
  const [s, a] = H(!1), [l, i] = H(
3240
3240
  []
3241
3241
  ), { authToken: o } = Ae(), r = rn(o == null ? void 0 : o.accessToken), d = I((q) => q.themeStyle), u = {
3242
3242
  colors: ((M = (z = d == null ? void 0 : d.chart) == null ? void 0 : z.dataset) == null ? void 0 : M.backgroundColor) || []
3243
3243
  };
3244
- (F = t.customCardPreferences) != null && F.inputData;
3245
- const { getCard: b } = qa(((C = t.customCardPreferences) == null ? void 0 : C.url) || ""), h = ((V = t.customCardPreferences) == null ? void 0 : V.visualType) || "single", g = m((q) => q.frame), { setCustomCardPreferences: v } = ne(), { data: c } = _e(t), y = Ka((q, G) => {
3244
+ (L = t.customCardPreferences) != null && L.inputData;
3245
+ const { getCard: b } = Ra(((C = t.customCardPreferences) == null ? void 0 : C.url) || ""), h = ((V = t.customCardPreferences) == null ? void 0 : V.visualType) || "single", g = m((q) => q.frame), { setCustomCardPreferences: v } = ne(), { data: c } = _e(t), y = Qa((q, G) => {
3246
3246
  i((W) => ({
3247
3247
  ...W,
3248
3248
  [q]: G
@@ -3318,7 +3318,7 @@ function gi({ card: t }) {
3318
3318
  (B = t.customCardPreferences) == null ? void 0 : B.componentName
3319
3319
  ) });
3320
3320
  }
3321
- function ys({
3321
+ function bs({
3322
3322
  // card,
3323
3323
  // showCard,
3324
3324
  className: t,
@@ -3327,7 +3327,7 @@ function ys({
3327
3327
  var N;
3328
3328
  const a = m((x) => x.card), l = ((N = a.customCardPreferences) == null ? void 0 : N.showCardHeader) ?? !0, i = m((x) => x.frame), o = I((x) => x.dashboard.filters);
3329
3329
  m((x) => x.actions.setRunSql);
3330
- const { updateFilter: r } = Ke(), d = o == null ? void 0 : o.find((x) => x.id === i.filterId), { data: u, isLoading: b, isFetching: h } = _e(a), { setCard: g } = ne(), { data: v } = Et(a), c = pt(() => !a.id || !(u != null && u.records) ? null : Ra({
3330
+ const { updateFilter: r } = Ke(), d = o == null ? void 0 : o.find((x) => x.id === i.filterId), { data: u, isLoading: b, isFetching: h } = _e(a), { setCard: g } = ne(), { data: v } = Et(a), c = pt(() => !a.id || !(u != null && u.records) ? null : ja({
3331
3331
  data: u == null ? void 0 : u.records,
3332
3332
  cardType: a.type,
3333
3333
  cfg: a.cfg,
@@ -3406,7 +3406,7 @@ function ys({
3406
3406
  children: /* @__PURE__ */ e(P, { children: d.title })
3407
3407
  }
3408
3408
  ),
3409
- /* @__PURE__ */ e(ja, { filter: d })
3409
+ /* @__PURE__ */ e(_a, { filter: d })
3410
3410
  ] })
3411
3411
  ] }),
3412
3412
  /* @__PURE__ */ e(mn, { className: "flex grow flex-col", children: f() })
@@ -3461,8 +3461,8 @@ const zt = ({
3461
3461
  mergedConfig: a,
3462
3462
  onConfigChange: l,
3463
3463
  onCodeChange: i
3464
- }) => /* @__PURE__ */ n(Ha, { defaultValue: "final-config", className: "flex w-1/2 flex-col", children: [
3465
- /* @__PURE__ */ n(Pa, { className: "justify-start rounded-sm rounded-b-none border border-b-0", children: [
3464
+ }) => /* @__PURE__ */ n(Pa, { defaultValue: "final-config", className: "flex w-1/2 flex-col", children: [
3465
+ /* @__PURE__ */ n($a, { className: "justify-start rounded-sm rounded-b-none border border-b-0", children: [
3466
3466
  /* @__PURE__ */ e(ct, { value: "final-config", children: "Config" }),
3467
3467
  /* @__PURE__ */ e(ct, { value: "custom-config", children: "Changes" }),
3468
3468
  /* @__PURE__ */ e(ct, { value: "custom-code", children: "Custom Code" })
@@ -3546,7 +3546,7 @@ function vi() {
3546
3546
  }, z = () => {
3547
3547
  var V, R;
3548
3548
  if (!((V = c == null ? void 0 : c.records) != null && V.length)) return;
3549
- const C = Ra({
3549
+ const C = ja({
3550
3550
  data: c.records,
3551
3551
  cardType: h.type,
3552
3552
  cfg: h.cfg,
@@ -3572,21 +3572,21 @@ function vi() {
3572
3572
  } catch {
3573
3573
  b("Invalid JSON configuration");
3574
3574
  }
3575
- }, F = Object.keys(g || {}).length === 0;
3575
+ }, L = Object.keys(g || {}).length === 0;
3576
3576
  return /* @__PURE__ */ n(oa, { open: t, onOpenChange: s, children: [
3577
3577
  /* @__PURE__ */ e(ca, { asChild: !0, children: /* @__PURE__ */ e(
3578
3578
  U,
3579
3579
  {
3580
3580
  tooltip: "Customize Visual",
3581
3581
  onClick: z,
3582
- className: F ? "" : "text-green-600 hover:text-green-700",
3582
+ className: L ? "" : "text-green-600 hover:text-green-700",
3583
3583
  children: /* @__PURE__ */ e(yn, { className: "h-4 w-4" })
3584
3584
  }
3585
3585
  ) }),
3586
3586
  /* @__PURE__ */ n(da, { className: "flex h-[600px] grow flex-col overflow-auto sm:min-w-[900px] lg:min-w-[1200px]", children: [
3587
3587
  /* @__PURE__ */ e(yi, {}),
3588
3588
  /* @__PURE__ */ n("div", { className: "flex grow gap-2", children: [
3589
- /* @__PURE__ */ e(St, { FallbackComponent: _a, children: /* @__PURE__ */ e(ys, { className: "w-1/2 rounded shadow-none" }) }),
3589
+ /* @__PURE__ */ e(St, { FallbackComponent: Ha, children: /* @__PURE__ */ e(bs, { className: "w-1/2 rounded shadow-none" }) }),
3590
3590
  /* @__PURE__ */ e(
3591
3591
  bi,
3592
3592
  {
@@ -3613,26 +3613,26 @@ function vi() {
3613
3613
  ] })
3614
3614
  ] });
3615
3615
  }
3616
- function bs(t) {
3616
+ function xs(t) {
3617
3617
  return Qe({ attr: { viewBox: "0 0 256 256", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm87.63,96H191.48A64.1,64.1,0,0,0,136,64.52V40.37A88.13,88.13,0,0,1,215.63,120ZM120,120H80.68A48.09,48.09,0,0,1,120,80.68Zm0,16v39.32A48.09,48.09,0,0,1,80.68,136Zm16,0h39.32A48.09,48.09,0,0,1,136,175.32Zm0-16V80.68A48.09,48.09,0,0,1,175.32,120ZM120,40.37V64.52A64.1,64.1,0,0,0,64.52,120H40.37A88.13,88.13,0,0,1,120,40.37ZM40.37,136H64.52A64.1,64.1,0,0,0,120,191.48v24.15A88.13,88.13,0,0,1,40.37,136ZM136,215.63V191.48A64.1,64.1,0,0,0,191.48,136h24.15A88.13,88.13,0,0,1,136,215.63Z" }, child: [] }] })(t);
3618
3618
  }
3619
3619
  function Ni(t) {
3620
3620
  return Qe({ attr: { viewBox: "0 0 256 256", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M48,180c0,11,7.18,20,16,20a14.24,14.24,0,0,0,10.22-4.66A8,8,0,0,1,85.78,206.4,30.06,30.06,0,0,1,64,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a30.06,30.06,0,0,1,21.78,9.6,8,8,0,0,1-11.56,11.06A14.24,14.24,0,0,0,64,160C55.18,160,48,169,48,180Zm79.6-8.69c-4-1.16-8.14-2.35-10.45-3.84-1.25-.81-1.23-1-1.12-1.9a4.57,4.57,0,0,1,2-3.67c4.6-3.12,15.34-1.73,19.82-.56A8,8,0,0,0,142,145.86c-2.12-.55-21-5.22-32.84,2.76a20.58,20.58,0,0,0-9,14.95c-2,15.88,13.65,20.41,23,23.11,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.34-2.14,3.93-4.6,3.06-15.17,1.56-19.55.36A8,8,0,0,0,109.94,214a61.34,61.34,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.82,20.82,0,0,0,9.19-15.23C154,179,137.49,174.17,127.6,171.31Zm83.09-26.84a8,8,0,0,0-10.23,4.84L188,184.21l-12.47-34.9a8,8,0,0,0-15.07,5.38l20,56a8,8,0,0,0,15.07,0l20-56A8,8,0,0,0,210.69,144.47ZM216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-27.31-8L160,51.31V80Z" }, child: [] }] })(t);
3621
3621
  }
3622
- function xs(t) {
3622
+ function vs(t) {
3623
3623
  return Qe({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M6 16m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0" }, child: [] }, { tag: "path", attr: { d: "M16 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" }, child: [] }, { tag: "path", attr: { d: "M14.5 7.5m-4.5 0a4.5 4.5 0 1 0 9 0a4.5 4.5 0 1 0 -9 0" }, child: [] }] })(t);
3624
3624
  }
3625
- function vs(t) {
3625
+ function Ns(t) {
3626
3626
  return Qe({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "m2 19.99 7.5-7.51 4 4 7.09-7.97L22 9.92l-8.5 9.56-4-4-6 6.01-1.5-1.5zm1.5-4.5 6-6.01 4 4L22 3.92l-1.41-1.41-7.09 7.97-4-4L2 13.99l1.5 1.5z" }, child: [] }] })(t);
3627
3627
  }
3628
- function Ns(t) {
3628
+ function Cs(t) {
3629
3629
  return Qe({ attr: { version: "1.2", baseProfile: "tiny", viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M4 18c-.552 0-1-.448-1-1v-6.382l-.553.276c-.495.248-1.095.046-1.342-.447-.247-.494-.046-1.094.448-1.342l2-1c.31-.155.678-.139.973.044.294.183.474.504.474.851v8c0 .552-.448 1-1 1zM13 18h-5c-.404 0-.769-.244-.924-.617-.155-.374-.069-.804.217-1.09l4-4c.254-.254.394-.591.394-.95 0-.358-.14-.695-.394-.949-.508-.508-1.39-.508-1.9.001-.253.252-.393.589-.393.948 0 .552-.448 1-1 1s-1-.448-1-1c0-.894.348-1.733.98-2.364 1.265-1.263 3.464-1.263 4.727.001.632.631.979 1.471.979 2.363 0 .893-.348 1.733-.979 2.364l-2.293 2.293h2.586c.552 0 1 .448 1 1s-.448 1-1 1zM20.955 12.377c.338-.457.545-1.016.545-1.627 0-1.517-1.234-2.75-2.75-2.75-1.031 0-1.966.569-2.44 1.484-.254.49-.063 1.094.428 1.348.49.254 1.094.062 1.348-.428.128-.249.383-.404.664-.404.414 0 .75.336.75.75s-.336.75-.75.75c-.552 0-1 .448-1 1s.448 1 1 1c.689 0 1.25.561 1.25 1.25s-.561 1.25-1.25 1.25-1.25-.561-1.25-1.25c0-.552-.448-1-1-1s-1 .448-1 1c0 1.792 1.458 3.25 3.25 3.25s3.25-1.458 3.25-3.25c0-.939-.406-1.779-1.045-2.373z" }, child: [] }] })(t);
3630
3630
  }
3631
- function Cs(t) {
3631
+ function Ss(t) {
3632
3632
  const [s, a] = H(null);
3633
3633
  return s;
3634
3634
  }
3635
- function Ss() {
3635
+ function ws() {
3636
3636
  const { authToken: t } = Ae(), { data: s, isLoading: a, isFetching: l, isError: i } = De({
3637
3637
  queryKey: ["plugins", t == null ? void 0 : t.accessToken],
3638
3638
  queryFn: () => vn(t == null ? void 0 : t.accessToken)
@@ -3643,7 +3643,7 @@ function Ss() {
3643
3643
  function Ci({
3644
3644
  onChartTypeChange: t
3645
3645
  }) {
3646
- const [s, a] = H([]), { data: l } = Ss();
3646
+ const [s, a] = H([]), { data: l } = ws();
3647
3647
  return oe(() => {
3648
3648
  (async () => {
3649
3649
  var o;
@@ -3676,7 +3676,7 @@ const Si = ({
3676
3676
  icon: s,
3677
3677
  onClick: a
3678
3678
  }) => {
3679
- const l = Cs(), i = t.charAt(0).toUpperCase();
3679
+ const l = Ss(), i = t.charAt(0).toUpperCase();
3680
3680
  return /* @__PURE__ */ e($, { onClick: a, title: t, variant: "ghost", children: l ? /* @__PURE__ */ e(l, { className: "h-4 w-4" }) : i });
3681
3681
  };
3682
3682
  function wi() {
@@ -3732,7 +3732,7 @@ function wi() {
3732
3732
  tooltip: "Stacked Bar Chart",
3733
3733
  onClick: () => h("stackedBar"),
3734
3734
  className: "h-10 p-4",
3735
- children: /* @__PURE__ */ e(Qa, { className: "size-5" })
3735
+ children: /* @__PURE__ */ e(Wa, { className: "size-5" })
3736
3736
  }
3737
3737
  ),
3738
3738
  /* @__PURE__ */ e(
@@ -3741,7 +3741,7 @@ function wi() {
3741
3741
  tooltip: "Stacked Line Chart",
3742
3742
  onClick: () => h("stackedLine"),
3743
3743
  className: "h-10 p-4",
3744
- children: /* @__PURE__ */ e(vs, { className: "size-5", strokeWidth: 0 })
3744
+ children: /* @__PURE__ */ e(Ns, { className: "size-5", strokeWidth: 0 })
3745
3745
  }
3746
3746
  ),
3747
3747
  /* @__PURE__ */ e(
@@ -3750,7 +3750,7 @@ function wi() {
3750
3750
  tooltip: "Scatter Chart",
3751
3751
  onClick: () => h("scatter"),
3752
3752
  className: "h-10 p-4",
3753
- children: /* @__PURE__ */ e(Ya, { className: "size-5" })
3753
+ children: /* @__PURE__ */ e(Xa, { className: "size-5" })
3754
3754
  }
3755
3755
  ),
3756
3756
  /* @__PURE__ */ e(
@@ -3759,7 +3759,7 @@ function wi() {
3759
3759
  tooltip: "Bubble Chart",
3760
3760
  onClick: () => h("bubble"),
3761
3761
  className: "h-10 p-4",
3762
- children: /* @__PURE__ */ e(xs, { className: "size-5" })
3762
+ children: /* @__PURE__ */ e(vs, { className: "size-5" })
3763
3763
  }
3764
3764
  ),
3765
3765
  /* @__PURE__ */ e(
@@ -3768,7 +3768,7 @@ function wi() {
3768
3768
  tooltip: "Pie Chart",
3769
3769
  onClick: () => h("pie"),
3770
3770
  className: "h-10 p-4",
3771
- children: /* @__PURE__ */ e(Za, { className: "size-5" })
3771
+ children: /* @__PURE__ */ e(Ya, { className: "size-5" })
3772
3772
  }
3773
3773
  ),
3774
3774
  /* @__PURE__ */ e(
@@ -3777,7 +3777,7 @@ function wi() {
3777
3777
  tooltip: "Doughnut Chart",
3778
3778
  onClick: () => h("doughnut"),
3779
3779
  className: "h-10 p-4",
3780
- children: /* @__PURE__ */ e(es, { className: "size-5" })
3780
+ children: /* @__PURE__ */ e(ts, { className: "size-5" })
3781
3781
  }
3782
3782
  ),
3783
3783
  /* @__PURE__ */ e(
@@ -3786,7 +3786,7 @@ function wi() {
3786
3786
  tooltip: "Radar Chart",
3787
3787
  onClick: () => h("radar"),
3788
3788
  className: "h-10 p-4",
3789
- children: /* @__PURE__ */ e(ns, { className: "size-5" })
3789
+ children: /* @__PURE__ */ e(ls, { className: "size-5" })
3790
3790
  }
3791
3791
  ),
3792
3792
  /* @__PURE__ */ e(
@@ -3795,7 +3795,7 @@ function wi() {
3795
3795
  tooltip: "Polar Area Chart",
3796
3796
  onClick: () => h("polarArea"),
3797
3797
  className: "h-10 p-4",
3798
- children: /* @__PURE__ */ e(bs, { className: "size-6" })
3798
+ children: /* @__PURE__ */ e(xs, { className: "size-6" })
3799
3799
  }
3800
3800
  ),
3801
3801
  /* @__PURE__ */ e(
@@ -3804,7 +3804,7 @@ function wi() {
3804
3804
  tooltip: "Pyramid Chart",
3805
3805
  onClick: () => h("pyramid"),
3806
3806
  className: "h-10 p-4",
3807
- children: /* @__PURE__ */ e(rs, { className: "size-5" })
3807
+ children: /* @__PURE__ */ e(os, { className: "size-5" })
3808
3808
  }
3809
3809
  ),
3810
3810
  /* @__PURE__ */ e(
@@ -3813,7 +3813,7 @@ function wi() {
3813
3813
  tooltip: "Range Chart",
3814
3814
  onClick: () => h("range"),
3815
3815
  className: "h-10 p-4",
3816
- children: /* @__PURE__ */ e(Wa, { className: "size-5" })
3816
+ children: /* @__PURE__ */ e(Za, { className: "size-5" })
3817
3817
  }
3818
3818
  ),
3819
3819
  /* @__PURE__ */ e(
@@ -3831,7 +3831,7 @@ function wi() {
3831
3831
  tooltip: "KPI",
3832
3832
  onClick: () => h("kpi"),
3833
3833
  className: "h-10 p-4",
3834
- children: /* @__PURE__ */ e(Ns, { className: "size-6" })
3834
+ children: /* @__PURE__ */ e(Cs, { className: "size-6" })
3835
3835
  }
3836
3836
  ),
3837
3837
  /* @__PURE__ */ e(
@@ -3849,7 +3849,7 @@ function wi() {
3849
3849
  tooltip: "Map",
3850
3850
  onClick: () => h("map"),
3851
3851
  className: "h-10 p-4",
3852
- children: /* @__PURE__ */ e(ss, { className: "size-5" })
3852
+ children: /* @__PURE__ */ e(ns, { className: "size-5" })
3853
3853
  }
3854
3854
  ),
3855
3855
  /* @__PURE__ */ e(
@@ -3858,7 +3858,7 @@ function wi() {
3858
3858
  tooltip: "Custom",
3859
3859
  onClick: () => h("custom"),
3860
3860
  className: "h-10 p-4",
3861
- children: /* @__PURE__ */ e(is, { className: "size-5" })
3861
+ children: /* @__PURE__ */ e(rs, { className: "size-5" })
3862
3862
  }
3863
3863
  )
3864
3864
  ] }),
@@ -3874,40 +3874,40 @@ function ki({
3874
3874
  customIcon: a,
3875
3875
  componentName: l
3876
3876
  }) {
3877
- const i = Cs();
3877
+ const i = Ss();
3878
3878
  switch (t) {
3879
3879
  case "bar":
3880
3880
  return /* @__PURE__ */ e(jt, { className: s });
3881
3881
  case "line":
3882
3882
  return /* @__PURE__ */ e(_t, { className: s });
3883
3883
  case "pie":
3884
- return /* @__PURE__ */ e(Za, { className: s });
3884
+ return /* @__PURE__ */ e(Ya, { className: s });
3885
3885
  case "radar":
3886
- return /* @__PURE__ */ e(ns, { className: s });
3886
+ return /* @__PURE__ */ e(ls, { className: s });
3887
3887
  case "scatter":
3888
- return /* @__PURE__ */ e(Ya, { className: s });
3888
+ return /* @__PURE__ */ e(Xa, { className: s });
3889
3889
  case "bubble":
3890
- return /* @__PURE__ */ e(xs, { className: s });
3890
+ return /* @__PURE__ */ e(vs, { className: s });
3891
3891
  case "doughnut":
3892
- return /* @__PURE__ */ e(es, { className: s });
3892
+ return /* @__PURE__ */ e(ts, { className: s });
3893
3893
  case "stackedBar":
3894
- return /* @__PURE__ */ e(Qa, { className: s });
3894
+ return /* @__PURE__ */ e(Wa, { className: s });
3895
3895
  case "stackedLine":
3896
- return /* @__PURE__ */ e(vs, { className: s });
3896
+ return /* @__PURE__ */ e(Ns, { className: s });
3897
3897
  case "polarArea":
3898
- return /* @__PURE__ */ e(bs, { className: s });
3898
+ return /* @__PURE__ */ e(xs, { className: s });
3899
3899
  case "pyramid":
3900
- return /* @__PURE__ */ e(rs, { className: s });
3900
+ return /* @__PURE__ */ e(os, { className: s });
3901
3901
  case "range":
3902
- return /* @__PURE__ */ e(Wa, { className: s });
3902
+ return /* @__PURE__ */ e(Za, { className: s });
3903
3903
  case "kpi":
3904
- return /* @__PURE__ */ e(Ns, { className: s });
3904
+ return /* @__PURE__ */ e(Cs, { className: s });
3905
3905
  case "text":
3906
- return /* @__PURE__ */ e(os, { className: s });
3906
+ return /* @__PURE__ */ e(cs, { className: s });
3907
3907
  case "map":
3908
- return /* @__PURE__ */ e(ss, { className: s });
3908
+ return /* @__PURE__ */ e(ns, { className: s });
3909
3909
  case "custom":
3910
- return a && i ? /* @__PURE__ */ e(i, { className: s }) : l ? l == null ? void 0 : l.charAt(0).toUpperCase() : /* @__PURE__ */ e(is, { className: s });
3910
+ return a && i ? /* @__PURE__ */ e(i, { className: s }) : l ? l == null ? void 0 : l.charAt(0).toUpperCase() : /* @__PURE__ */ e(rs, { className: s });
3911
3911
  default:
3912
3912
  return /* @__PURE__ */ e(Ht, { className: s });
3913
3913
  }
@@ -3915,7 +3915,7 @@ function ki({
3915
3915
  const it = "focus-visible:ring-0 focus-visible:ring-ring focus-visible:ring-offset-0";
3916
3916
  function ia(t, s) {
3917
3917
  var l, i, o;
3918
- const a = $a(t, s);
3918
+ const a = Ba(t, s);
3919
3919
  return ((o = (i = (l = t == null ? void 0 : t.chartOptions) == null ? void 0 : l.scales) == null ? void 0 : i[a]) == null ? void 0 : o.type) || "linear";
3920
3920
  }
3921
3921
  function Mi() {
@@ -3926,25 +3926,25 @@ function Mi() {
3926
3926
  }), l = m((_) => {
3927
3927
  var E;
3928
3928
  return (E = _.card) == null ? void 0 : E.cfg;
3929
- }), i = $a(a, l), [o, r] = H(
3929
+ }), i = Ba(a, l), [o, r] = H(
3930
3930
  ia(a)
3931
3931
  ), [d, u] = H(
3932
3932
  ((A = (w = (S = a == null ? void 0 : a.chartOptions) == null ? void 0 : S.scales) == null ? void 0 : w[i]) == null ? void 0 : A.min) || ""
3933
3933
  ), [b, h] = H(
3934
3934
  ((ie = (X = (K = a == null ? void 0 : a.chartOptions) == null ? void 0 : K.scales) == null ? void 0 : X[i]) == null ? void 0 : ie.max) || ""
3935
- ), [g, v] = H(d || b ? "custom" : "auto"), [c, y] = H(""), [f, N] = H(0), [x, z] = H(""), [M, F] = H(""), [C, V] = H(""), R = m(
3935
+ ), [g, v] = H(d || b ? "custom" : "auto"), [c, y] = H(""), [f, N] = H(0), [x, z] = H(""), [M, L] = H(""), [C, V] = H(""), R = m(
3936
3936
  (_) => _.actions.setCardPreferences
3937
3937
  ), { updateCardInFrame: j } = ne(), Q = m((_) => _.card), p = m((_) => {
3938
3938
  var E;
3939
3939
  return (E = _.card) == null ? void 0 : E.type;
3940
3940
  }), T = ["pie", "doughnut", "polarArea"].includes(p);
3941
3941
  oe(() => {
3942
- var _, E, re, D, J, he, ce, ke, Me, pe, Y, ue, Le, Fe;
3942
+ var _, E, re, D, J, he, ce, ke, Me, pe, Y, ue, Fe, Le;
3943
3943
  r(ia(a)), u(
3944
3944
  ((re = (E = (_ = a == null ? void 0 : a.chartOptions) == null ? void 0 : _.scales) == null ? void 0 : E[i]) == null ? void 0 : re.min) === 0 ? 0 : ""
3945
3945
  ), h(((he = (J = (D = a == null ? void 0 : a.chartOptions) == null ? void 0 : D.scales) == null ? void 0 : J[i]) == null ? void 0 : he.max) || ""), y(
3946
3946
  ((pe = (Me = (ke = (ce = a == null ? void 0 : a.chartOptions) == null ? void 0 : ce.scales) == null ? void 0 : ke[i]) == null ? void 0 : Me.ticks) == null ? void 0 : pe.stepSize) || ""
3947
- ), N(((Y = a == null ? void 0 : a.numberAxisFormat) == null ? void 0 : Y.decimalPlaces) || 0), z(((ue = a == null ? void 0 : a.numberAxisFormat) == null ? void 0 : ue.suffix) || ""), F(((Le = a == null ? void 0 : a.numberAxisFormat) == null ? void 0 : Le.currency) || ""), V(((Fe = a == null ? void 0 : a.numberAxisFormat) == null ? void 0 : Fe.locale) || "");
3947
+ ), N(((Y = a == null ? void 0 : a.numberAxisFormat) == null ? void 0 : Y.decimalPlaces) || 0), z(((ue = a == null ? void 0 : a.numberAxisFormat) == null ? void 0 : ue.suffix) || ""), L(((Fe = a == null ? void 0 : a.numberAxisFormat) == null ? void 0 : Fe.currency) || ""), V(((Le = a == null ? void 0 : a.numberAxisFormat) == null ? void 0 : Le.locale) || "");
3948
3948
  }, [t, a, i]);
3949
3949
  function B(_, E) {
3950
3950
  return E === "" || /^[0-9\b]+$/.test(E) ? Number(E) : Number(_);
@@ -3974,7 +3974,7 @@ function Mi() {
3974
3974
  xe,
3975
3975
  {
3976
3976
  value: M || "none",
3977
- onValueChange: (E) => F(E === "none" ? "" : E),
3977
+ onValueChange: (E) => L(E === "none" ? "" : E),
3978
3978
  children: [
3979
3979
  /* @__PURE__ */ e(ve, { className: "col-span-2 h-8 w-full focus:ring-1 focus:ring-offset-0", children: /* @__PURE__ */ e(Ne, {}) }),
3980
3980
  /* @__PURE__ */ e(Ce, { children: /* @__PURE__ */ n(Ie, { children: [
@@ -4088,7 +4088,7 @@ function Mi() {
4088
4088
  j(re);
4089
4089
  }
4090
4090
  return /* @__PURE__ */ n(Re, { onOpenChange: (_) => s(_), children: [
4091
- /* @__PURE__ */ e(je, { asChild: !0, children: /* @__PURE__ */ e(U, { tooltip: "Scale Options", children: /* @__PURE__ */ e(Ll, { className: "size-4 rotate-45" }) }) }),
4091
+ /* @__PURE__ */ e(je, { asChild: !0, children: /* @__PURE__ */ e(U, { tooltip: "Scale Options", children: /* @__PURE__ */ e(Fl, { className: "size-4 rotate-45" }) }) }),
4092
4092
  /* @__PURE__ */ e(Vt, { align: "center", className: "max-w-65", children: /* @__PURE__ */ n("div", { className: "grid gap-4", children: [
4093
4093
  /* @__PURE__ */ n("div", { className: "space-y-2", children: [
4094
4094
  /* @__PURE__ */ e("h4", { className: "font-medium leading-none", children: "Scale Options" }),
@@ -4200,7 +4200,7 @@ function Di() {
4200
4200
  /* @__PURE__ */ n("div", { className: "grid grid-cols-3 items-center gap-4", children: [
4201
4201
  /* @__PURE__ */ e(P, { htmlFor: "displayLegend", children: "Display" }),
4202
4202
  /* @__PURE__ */ e("div", { className: "col-span-2 flex h-8 items-center", children: /* @__PURE__ */ e(
4203
- Ba,
4203
+ Ua,
4204
4204
  {
4205
4205
  checked: a,
4206
4206
  onCheckedChange: i,
@@ -4304,7 +4304,7 @@ function Ii() {
4304
4304
  var d, u;
4305
4305
  return (u = (d = r.card) == null ? void 0 : d.preferences) == null ? void 0 : u.chartOptions;
4306
4306
  }
4307
- ), l = Ua(a), { setChartGrid: i } = ne();
4307
+ ), l = Ga(a), { setChartGrid: i } = ne();
4308
4308
  function o() {
4309
4309
  const r = ["xy", "none", "x", "y"], u = (r.indexOf(l) + 1) % r.length;
4310
4310
  i(r[u]);
@@ -4348,7 +4348,7 @@ function ra() {
4348
4348
  return (w = S.card.preferences) == null ? void 0 : w.chartOptions;
4349
4349
  }
4350
4350
  );
4351
- m((S) => S.actions.setRunSql), Ua(r);
4351
+ m((S) => S.actions.setRunSql), Ga(r);
4352
4352
  const {
4353
4353
  setFrame: d,
4354
4354
  setCard: u,
@@ -4395,7 +4395,7 @@ function ra() {
4395
4395
  };
4396
4396
  z(S);
4397
4397
  }
4398
- function F(S) {
4398
+ function L(S) {
4399
4399
  const w = t.cards.filter((X) => X.id !== S), A = w[0], K = {
4400
4400
  ...t,
4401
4401
  cards: w,
@@ -4434,14 +4434,14 @@ function ra() {
4434
4434
  }
4435
4435
  function p() {
4436
4436
  return /* @__PURE__ */ n(
4437
- Ha,
4437
+ Pa,
4438
4438
  {
4439
4439
  onValueChange: C,
4440
4440
  value: t.activeCardId,
4441
4441
  className: "flex grow flex-col",
4442
4442
  children: [
4443
4443
  t.cards.map((S) => /* @__PURE__ */ e(dt, { className: "mt-0 grow", value: S.id, children: T() }, S.id)),
4444
- /* @__PURE__ */ e(Pa, { className: "group mx-6 justify-between overflow-x-auto", children: /* @__PURE__ */ n("div", { className: "flex items-center", children: [
4444
+ /* @__PURE__ */ e($a, { className: "group mx-6 justify-between overflow-x-auto", children: /* @__PURE__ */ n("div", { className: "flex items-center", children: [
4445
4445
  t.cards.map((S, w) => /* @__PURE__ */ e(
4446
4446
  ot,
4447
4447
  {
@@ -4465,7 +4465,7 @@ function ra() {
4465
4465
  Ge,
4466
4466
  {
4467
4467
  className: "ml-2 size-3.5 text-muted-foreground hover:text-foreground",
4468
- onClick: () => F(S.id)
4468
+ onClick: () => L(S.id)
4469
4469
  }
4470
4470
  )
4471
4471
  ]
@@ -4505,7 +4505,7 @@ function ra() {
4505
4505
  card: s,
4506
4506
  data: c == null ? void 0 : c.records
4507
4507
  }
4508
- ) }) }) }) : /* @__PURE__ */ e(St, { FallbackComponent: _a, children: /* @__PURE__ */ e(ys, { className: "grow border-none shadow-none" }) });
4508
+ ) }) }) }) : /* @__PURE__ */ e(St, { FallbackComponent: Ha, children: /* @__PURE__ */ e(bs, { className: "grow border-none shadow-none" }) });
4509
4509
  }
4510
4510
  function B() {
4511
4511
  const S = JSON.stringify(c == null ? void 0 : c.records, null, 2), w = new Blob([S], { type: "application/json" }), A = URL.createObjectURL(w), K = document.createElement("a");
@@ -4635,7 +4635,7 @@ function Ti() {
4635
4635
  return /* @__PURE__ */ n("div", { className: "flex items-center space-x-2", children: [
4636
4636
  /* @__PURE__ */ e(P, { htmlFor: "visualize", children: "Chart" }),
4637
4637
  /* @__PURE__ */ e(
4638
- Ba,
4638
+ Ua,
4639
4639
  {
4640
4640
  checked: t,
4641
4641
  onCheckedChange: () => s(!t),
@@ -4685,18 +4685,18 @@ function Xe({
4685
4685
  }
4686
4686
  );
4687
4687
  }
4688
- function Li() {
4688
+ function Fi() {
4689
4689
  var f, N;
4690
4690
  const t = m(
4691
4691
  (x) => x.card.customCardPreferences
4692
- ), { data: s } = Ss(), a = (s == null ? void 0 : s.plugins) || [], l = m((x) => x.card), i = m((x) => x.frame), o = (t == null ? void 0 : t.visualType) || "single", { setCustomCardPreferences: r } = ne(), { components: d, manifest: u } = qa(
4692
+ ), { data: s } = ws(), a = (s == null ? void 0 : s.plugins) || [], l = m((x) => x.card), i = m((x) => x.frame), o = (t == null ? void 0 : t.visualType) || "single", { setCustomCardPreferences: r } = ne(), { components: d, manifest: u } = Ra(
4693
4693
  (t == null ? void 0 : t.url) || ""
4694
4694
  ), b = (f = u == null ? void 0 : u.visuals) == null ? void 0 : f.find(
4695
4695
  (x) => x.name === (t == null ? void 0 : t.componentName)
4696
4696
  );
4697
4697
  function h(x, z) {
4698
4698
  if (!t) return;
4699
- const F = {
4699
+ const L = {
4700
4700
  ...(t == null ? void 0 : t.dataInputCardIds) || {},
4701
4701
  [x]: {
4702
4702
  cardId: z,
@@ -4705,11 +4705,11 @@ function Li() {
4705
4705
  };
4706
4706
  r({
4707
4707
  ...t,
4708
- dataInputCardIds: F
4708
+ dataInputCardIds: L
4709
4709
  });
4710
4710
  }
4711
4711
  function g(x) {
4712
- var M, F;
4712
+ var M, L;
4713
4713
  const z = (M = i == null ? void 0 : i.cards) == null ? void 0 : M.filter((C) => {
4714
4714
  var V;
4715
4715
  return ((V = C == null ? void 0 : C.customCardPreferences) == null ? void 0 : V.visualType) !== "multiple";
@@ -4717,7 +4717,7 @@ function Li() {
4717
4717
  value: C.id,
4718
4718
  label: C.tabTitle || C.title
4719
4719
  }));
4720
- return /* @__PURE__ */ e("div", { className: "space-y-2", children: (F = x == null ? void 0 : x.dataInputs) == null ? void 0 : F.map((C, V) => {
4720
+ return /* @__PURE__ */ e("div", { className: "space-y-2", children: (L = x == null ? void 0 : x.dataInputs) == null ? void 0 : L.map((C, V) => {
4721
4721
  var R, j;
4722
4722
  return /* @__PURE__ */ n(
4723
4723
  "div",
@@ -4742,12 +4742,12 @@ function Li() {
4742
4742
  }) });
4743
4743
  }
4744
4744
  function v(x, z, M = []) {
4745
- var F, C;
4745
+ var L, C;
4746
4746
  return t ? x === "input" ? /* @__PURE__ */ e(
4747
4747
  de,
4748
4748
  {
4749
4749
  className: `h-8 w-full ${ze}`,
4750
- value: ((F = t == null ? void 0 : t.settings) == null ? void 0 : F[z]) || "",
4750
+ value: ((L = t == null ? void 0 : t.settings) == null ? void 0 : L[z]) || "",
4751
4751
  onChange: (V) => {
4752
4752
  r({
4753
4753
  ...t,
@@ -4777,12 +4777,12 @@ function Li() {
4777
4777
  }
4778
4778
  function c(x) {
4779
4779
  const z = Object.entries((x == null ? void 0 : x.settings) || {});
4780
- return /* @__PURE__ */ e("div", { className: "space-y-3", children: z.map(([M, F]) => /* @__PURE__ */ n("div", { className: "space-y-2", children: [
4781
- /* @__PURE__ */ e(P, { children: F.title }),
4780
+ return /* @__PURE__ */ e("div", { className: "space-y-3", children: z.map(([M, L]) => /* @__PURE__ */ n("div", { className: "space-y-2", children: [
4781
+ /* @__PURE__ */ e(P, { children: L.title }),
4782
4782
  v(
4783
- F.ui,
4783
+ L.ui,
4784
4784
  M,
4785
- F.options
4785
+ L.options
4786
4786
  )
4787
4787
  ] }, M)) });
4788
4788
  }
@@ -4961,7 +4961,7 @@ function $e() {
4961
4961
  /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: ((c = a == null ? void 0 : a.onClickFilter) == null ? void 0 : c.find(
4962
4962
  (y) => y.columnIndex === g
4963
4963
  )) && /* @__PURE__ */ e(
4964
- Ca,
4964
+ Sa,
4965
4965
  {
4966
4966
  onClick: () => {
4967
4967
  s((y) => {
@@ -4981,7 +4981,7 @@ function $e() {
4981
4981
  })
4982
4982
  ] });
4983
4983
  }
4984
- function Fi({ idx: t }) {
4984
+ function Li({ idx: t }) {
4985
4985
  var d;
4986
4986
  const s = m((u) => {
4987
4987
  var b;
@@ -5092,7 +5092,7 @@ function Fi({ idx: t }) {
5092
5092
  ] }) })
5093
5093
  ] });
5094
5094
  }
5095
- function ws() {
5095
+ function ks() {
5096
5096
  const t = m((b) => b.card), s = m(
5097
5097
  (b) => {
5098
5098
  var h, g, v;
@@ -5116,7 +5116,7 @@ function ws() {
5116
5116
  return o.length === 0 ? null : /* @__PURE__ */ n("div", { className: "space-y-4", children: [
5117
5117
  /* @__PURE__ */ n("div", { className: "space-y-2", children: [
5118
5118
  /* @__PURE__ */ e(P, { children: l }),
5119
- /* @__PURE__ */ e("div", { className: "my-1 space-y-1", children: /* @__PURE__ */ e("div", { className: "rounded-md bg-muted/70 px-3 py-2 hover:bg-muted", children: /* @__PURE__ */ e("p", { title: d[0], children: ks(d[0]) }) }) })
5119
+ /* @__PURE__ */ e("div", { className: "my-1 space-y-1", children: /* @__PURE__ */ e("div", { className: "rounded-md bg-muted/70 px-3 py-2 hover:bg-muted", children: /* @__PURE__ */ e("p", { title: d[0], children: Ms(d[0]) }) }) })
5120
5120
  ] }),
5121
5121
  /* @__PURE__ */ n("div", { className: "space-y-2", children: [
5122
5122
  /* @__PURE__ */ e(P, { children: i }),
@@ -5124,7 +5124,7 @@ function ws() {
5124
5124
  ] })
5125
5125
  ] });
5126
5126
  }
5127
- function ks(t, s = 30) {
5127
+ function Ms(t, s = 30) {
5128
5128
  return t.length > s ? t.slice(0, s) + "..." : t;
5129
5129
  }
5130
5130
  function Ei({ col: t, idx: s }) {
@@ -5163,7 +5163,7 @@ function Ei({ col: t, idx: s }) {
5163
5163
  }
5164
5164
  }
5165
5165
  return /* @__PURE__ */ n("div", { className: "group flex items-center justify-between gap-5 rounded-md bg-muted/70 px-3 py-2 hover:bg-muted", children: [
5166
- /* @__PURE__ */ e("p", { title: t, children: ks(t) }),
5166
+ /* @__PURE__ */ e("p", { title: t, children: Ms(t) }),
5167
5167
  /* @__PURE__ */ n("div", { className: "flex gap-2", children: [
5168
5168
  /* @__PURE__ */ e(
5169
5169
  jt,
@@ -5186,11 +5186,11 @@ function Ei({ col: t, idx: s }) {
5186
5186
  className: "invisible size-4 cursor-pointer text-muted-foreground hover:text-foreground group-hover:visible"
5187
5187
  }
5188
5188
  ),
5189
- /* @__PURE__ */ e(Fi, { idx: s })
5189
+ /* @__PURE__ */ e(Li, { idx: s })
5190
5190
  ] })
5191
5191
  ] });
5192
5192
  }
5193
- function Ms() {
5193
+ function Ds() {
5194
5194
  const t = m((c) => c.selectedConnectionId), s = m((c) => c.selectedDatamodelId), a = m((c) => c.selectedDatabaseName), l = m((c) => c.selectedSchemaName), i = m((c) => c.selectedTableName), o = I((c) => c.dashboard.filters) || [], r = I((c) => c.actions.addFilter), d = I((c) => c.actions.removeFilter), { removeFilterValues: u } = Ke(), { modelItems: b, tableName: h, connectionType: g } = Pe();
5195
5195
  function v(c, y = "dashboard") {
5196
5196
  var R;
@@ -5199,13 +5199,13 @@ function Ms() {
5199
5199
  x,
5200
5200
  z,
5201
5201
  g
5202
- ), F = `${M}.${f}`;
5202
+ ), L = `${M}.${f}`;
5203
5203
  const C = (R = b == null ? void 0 : b.find(
5204
5204
  (j) => j.id === s
5205
5205
  )) == null ? void 0 : R.name;
5206
- s && s !== "none" && (F = `${ta}.${C}.${f}`, M = `${ta}.${C}`);
5206
+ s && s !== "none" && (L = `${ta}.${C}.${f}`, M = `${ta}.${C}`);
5207
5207
  const V = o == null ? void 0 : o.find(
5208
- (j) => j.column === F && j.table === z && (j.database === N || j.database === a)
5208
+ (j) => j.column === L && j.table === z && (j.database === N || j.database === a)
5209
5209
  );
5210
5210
  if (V)
5211
5211
  u(V.id), d(V.id);
@@ -5215,7 +5215,7 @@ function Ms() {
5215
5215
  location: y,
5216
5216
  id: j,
5217
5217
  //uuidv4(),
5218
- column: F,
5218
+ column: L,
5219
5219
  title: c.column_name,
5220
5220
  dataType: c.data_type,
5221
5221
  table: "api",
@@ -5233,7 +5233,7 @@ function Ms() {
5233
5233
  id: j,
5234
5234
  //uuidv4(),
5235
5235
  location: y,
5236
- column: F,
5236
+ column: L,
5237
5237
  //columnName, //`${qualifiedTableName}.${formattedColumnName}`,
5238
5238
  title: c.column_name,
5239
5239
  dataType: c.data_type,
@@ -5255,7 +5255,7 @@ function Ms() {
5255
5255
  function We() {
5256
5256
  const t = I(
5257
5257
  (d) => d.dashboard.filters
5258
- ), s = m((d) => d.frame), { setFrame: a } = ne(), { columns: l } = Pe(), { assignFilter: i } = Ms();
5258
+ ), s = m((d) => d.frame), { setFrame: a } = ne(), { columns: l } = Pe(), { assignFilter: i } = Ds();
5259
5259
  function o(d) {
5260
5260
  const u = i(d, "frame");
5261
5261
  a({ ...s, filterId: u });
@@ -5264,7 +5264,7 @@ function We() {
5264
5264
  return /* @__PURE__ */ n("div", { className: "space-y-3", children: [
5265
5265
  /* @__PURE__ */ e(P, { children: "Card Filter" }),
5266
5266
  /* @__PURE__ */ e(Vi, { onSelect: o, columns: l }),
5267
- r && /* @__PURE__ */ e(Ga, { filter: r })
5267
+ r && /* @__PURE__ */ e(Ja, { filter: r })
5268
5268
  ] });
5269
5269
  }
5270
5270
  function Vi({
@@ -5284,16 +5284,16 @@ function Vi({
5284
5284
  className: "w-full justify-between font-normal",
5285
5285
  children: [
5286
5286
  i ? (r = t.find((d) => d.column_name === i)) == null ? void 0 : r.column_name : "Select Column...",
5287
- /* @__PURE__ */ e(Ln, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
5287
+ /* @__PURE__ */ e(Fn, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
5288
5288
  ]
5289
5289
  }
5290
5290
  ) }),
5291
- /* @__PURE__ */ e(bt, { className: "w-[200px] p-0", children: /* @__PURE__ */ n(Sa, { children: [
5292
- /* @__PURE__ */ e(wa, { placeholder: "Search column", className: "h-9" }),
5293
- /* @__PURE__ */ n(ka, { children: [
5294
- /* @__PURE__ */ e(Ma, { children: "No framework found." }),
5295
- /* @__PURE__ */ e(Da, { children: t.map((d) => /* @__PURE__ */ n(
5296
- za,
5291
+ /* @__PURE__ */ e(bt, { className: "w-[200px] p-0", children: /* @__PURE__ */ n(wa, { children: [
5292
+ /* @__PURE__ */ e(ka, { placeholder: "Search column", className: "h-9" }),
5293
+ /* @__PURE__ */ n(Ma, { children: [
5294
+ /* @__PURE__ */ e(Da, { children: "No framework found." }),
5295
+ /* @__PURE__ */ e(za, { children: t.map((d) => /* @__PURE__ */ n(
5296
+ Ia,
5297
5297
  {
5298
5298
  value: d.column_name,
5299
5299
  onSelect: (u) => {
@@ -5303,7 +5303,7 @@ function Vi({
5303
5303
  children: [
5304
5304
  d.column_name,
5305
5305
  /* @__PURE__ */ e(
5306
- Fn,
5306
+ Ln,
5307
5307
  {
5308
5308
  className: Z(
5309
5309
  "ml-auto h-4 w-4",
@@ -5350,7 +5350,7 @@ function qi({
5350
5350
  ] }),
5351
5351
  /* @__PURE__ */ n(te, { value: "item-2", children: [
5352
5352
  /* @__PURE__ */ e(ae, { children: "Settings" }),
5353
- /* @__PURE__ */ e(se, { className: "space-y-4 px-2", children: /* @__PURE__ */ e(ws, {}) })
5353
+ /* @__PURE__ */ e(se, { className: "space-y-4 px-2", children: /* @__PURE__ */ e(ks, {}) })
5354
5354
  ] }),
5355
5355
  /* @__PURE__ */ n(te, { value: "item-3", children: [
5356
5356
  /* @__PURE__ */ e(ae, { children: "Filters" }),
@@ -5893,7 +5893,7 @@ const Ui = [
5893
5893
  value: t
5894
5894
  }));
5895
5895
  function Ki() {
5896
- var u, b, h, g, v, c, y, f, N, x, z, M, F, C, V, R, j, Q;
5896
+ var u, b, h, g, v, c, y, f, N, x, z, M, L, C, V, R, j, Q;
5897
5897
  const t = m((p) => p.card), s = (b = (u = t == null ? void 0 : t.preferences) == null ? void 0 : u.mapVisualOptions) == null ? void 0 : b.topoJsonUrl, [a, l] = H(
5898
5898
  ((g = (h = t == null ? void 0 : t.preferences) == null ? void 0 : h.mapVisualOptions) == null ? void 0 : g.customTopoJsonUrl) || ""
5899
5899
  ), { setCardPreferences: i } = ne(), { data: o } = Et(t), r = Object.keys((o == null ? void 0 : o.objects) || {}).map((p) => ({
@@ -6053,7 +6053,7 @@ function Ki() {
6053
6053
  className: `h-9 w-full ${ze}`,
6054
6054
  type: "number",
6055
6055
  step: 10,
6056
- value: ((V = (C = (F = t.preferences) == null ? void 0 : F.mapVisualOptions) == null ? void 0 : C.projectionOffset) == null ? void 0 : V[0]) || 0,
6056
+ value: ((V = (C = (L = t.preferences) == null ? void 0 : L.mapVisualOptions) == null ? void 0 : C.projectionOffset) == null ? void 0 : V[0]) || 0,
6057
6057
  onChange: (p) => {
6058
6058
  var T, B, q, G;
6059
6059
  i({
@@ -6242,7 +6242,7 @@ function Wi() {
6242
6242
  /* @__PURE__ */ e(ae, { children: "Settings" }),
6243
6243
  /* @__PURE__ */ n(se, { className: "space-y-4 px-2", children: [
6244
6244
  a(),
6245
- /* @__PURE__ */ e(ws, {})
6245
+ /* @__PURE__ */ e(ks, {})
6246
6246
  ] })
6247
6247
  ] }),
6248
6248
  /* @__PURE__ */ n(te, { value: "item-3", children: [
@@ -6377,7 +6377,7 @@ function tr() {
6377
6377
  case "map":
6378
6378
  return /* @__PURE__ */ e(Ki, {});
6379
6379
  case "custom":
6380
- return /* @__PURE__ */ e(Li, {});
6380
+ return /* @__PURE__ */ e(Fi, {});
6381
6381
  default:
6382
6382
  return /* @__PURE__ */ e(Hi, {});
6383
6383
  }
@@ -6436,7 +6436,7 @@ function ar() {
6436
6436
  }
6437
6437
  );
6438
6438
  }
6439
- const sr = !1, nr = [
6439
+ const sr = [
6440
6440
  {
6441
6441
  title: "Write a query for",
6442
6442
  subtitle: "orders by month"
@@ -6446,8 +6446,8 @@ const sr = !1, nr = [
6446
6446
  subtitle: "sales by category"
6447
6447
  }
6448
6448
  ];
6449
- function lr() {
6450
- const t = Je(null), s = Je(null), [a, l] = H(!1), [i, o] = H(sr), [r, d] = H(!1), u = m((w) => w.actions.setCardSql), b = m((w) => w.actions.setRunSql), h = m((w) => w.showAIDialog), { setShowAIDialog: g } = ne(), {
6449
+ function nr() {
6450
+ const t = Je(null), s = Je(null), [a, l] = H(!1), [i, o] = H(Na), [r, d] = H(!1), u = m((w) => w.actions.setCardSql), b = m((w) => w.actions.setRunSql), h = m((w) => w.showAIDialog), { setShowAIDialog: g } = ne(), {
6451
6451
  messages: v,
6452
6452
  setMessages: c,
6453
6453
  reload: y,
@@ -6456,7 +6456,7 @@ function lr() {
6456
6456
  setInput: x,
6457
6457
  isLoading: z,
6458
6458
  handleAddCurrentTableToScope: M,
6459
- removeFromCurrentSelections: F,
6459
+ removeFromCurrentSelections: L,
6460
6460
  currentAssitantScope: C,
6461
6461
  handleInputChange: V,
6462
6462
  handleSubmit: R,
@@ -6464,7 +6464,7 @@ function lr() {
6464
6464
  chatStatus: Q,
6465
6465
  toolStatus: p,
6466
6466
  llmUsage: T
6467
- } = gs();
6467
+ } = ys();
6468
6468
  Vn({
6469
6469
  scrollContainerRef: t,
6470
6470
  inputRef: s,
@@ -6485,7 +6485,7 @@ function lr() {
6485
6485
  }
6486
6486
  function G() {
6487
6487
  return /* @__PURE__ */ n(fa, { children: [
6488
- /* @__PURE__ */ e(ga, { asChild: !0, children: /* @__PURE__ */ e($, { className: "h-7 p-2", size: "sm", variant: "ghost", children: /* @__PURE__ */ e(ts, { className: "size-3.5 text-muted-foreground/70 hover:text-muted-foreground" }) }) }),
6488
+ /* @__PURE__ */ e(ga, { asChild: !0, children: /* @__PURE__ */ e($, { className: "h-7 p-2", size: "sm", variant: "ghost", children: /* @__PURE__ */ e(as, { className: "size-3.5 text-muted-foreground/70 hover:text-muted-foreground" }) }) }),
6489
6489
  /* @__PURE__ */ n(ya, { align: "end", children: [
6490
6490
  /* @__PURE__ */ e(ba, { children: "Options" }),
6491
6491
  /* @__PURE__ */ e(xa, {}),
@@ -6534,7 +6534,7 @@ function lr() {
6534
6534
  "button",
6535
6535
  {
6536
6536
  onClick: () => {
6537
- F(w);
6537
+ L(w);
6538
6538
  },
6539
6539
  children: /* @__PURE__ */ e(Ge, { className: "size-3 text-muted-foreground hover:text-foreground" })
6540
6540
  }
@@ -6634,7 +6634,7 @@ function lr() {
6634
6634
  Pn,
6635
6635
  {
6636
6636
  onClick: q,
6637
- placeholders: nr
6637
+ placeholders: sr
6638
6638
  }
6639
6639
  ),
6640
6640
  /* @__PURE__ */ e(
@@ -6667,7 +6667,7 @@ function lr() {
6667
6667
  }
6668
6668
  );
6669
6669
  }
6670
- function ir({ authToken: t, onSave: s, onClose: a }) {
6670
+ function lr({ authToken: t, onSave: s, onClose: a }) {
6671
6671
  const l = Je(null), i = m((g) => g.showAIDialog), { setAuthToken: o } = Ke(), { setShowAIDialog: r, setOnSave: d, setOnClose: u } = ne();
6672
6672
  oe(() => {
6673
6673
  s && d(s), a && u(a);
@@ -6697,19 +6697,19 @@ function ir({ authToken: t, onSave: s, onClose: a }) {
6697
6697
  ref: l,
6698
6698
  onResize: b,
6699
6699
  defaultSize: 0,
6700
- children: /* @__PURE__ */ e(lr, {})
6700
+ children: /* @__PURE__ */ e(nr, {})
6701
6701
  }
6702
6702
  )
6703
6703
  ]
6704
6704
  }
6705
6705
  );
6706
6706
  }
6707
- return /* @__PURE__ */ e(St, { FallbackComponent: Ja, children: /* @__PURE__ */ n("section", { className: "flex h-full grow", "data-content": "editor-panel", children: [
6708
- /* @__PURE__ */ e(us, {}),
6707
+ return /* @__PURE__ */ e(St, { FallbackComponent: Ka, children: /* @__PURE__ */ n("section", { className: "flex h-full grow", "data-content": "editor-panel", children: [
6708
+ /* @__PURE__ */ e(ms, {}),
6709
6709
  h()
6710
6710
  ] }) });
6711
6711
  }
6712
- function rr() {
6712
+ function ir() {
6713
6713
  I((r) => r.selectedCardId);
6714
6714
  const t = I((r) => r.selectedSheetId), { setIsVisualEditing: s } = I((r) => r.actions), a = I((r) => r.isVisualEditing), l = I((r) => r.actions.updateFrame);
6715
6715
  function i(r) {
@@ -6725,12 +6725,12 @@ function rr() {
6725
6725
  className: Z("flex grow", {
6726
6726
  "max-h-0 overflow-hidden": !a
6727
6727
  }),
6728
- children: /* @__PURE__ */ e(ir, { onSave: i, onClose: o })
6728
+ children: /* @__PURE__ */ e(lr, { onSave: i, onClose: o })
6729
6729
  }
6730
6730
  );
6731
6731
  }
6732
- function or() {
6733
- const t = m((o) => o.selectedDatabaseName), s = m((o) => o.selectedTableName), a = I((o) => o.dashboard.filters) || [], { columns: l } = Pe(), { assignFilter: i } = Ms();
6732
+ function rr() {
6733
+ const t = m((o) => o.selectedDatabaseName), s = m((o) => o.selectedTableName), a = I((o) => o.dashboard.filters) || [], { columns: l } = Pe(), { assignFilter: i } = Ds();
6734
6734
  return /* @__PURE__ */ e(Te, { className: "flex-1 basis-0 flex-col px-3", children: l == null ? void 0 : l.map((o) => {
6735
6735
  const r = a == null ? void 0 : a.find(
6736
6736
  (d) => d.column === be(o.column_name) && d.table === s && d.database === t
@@ -6746,7 +6746,7 @@ function or() {
6746
6746
  }
6747
6747
  ),
6748
6748
  children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
6749
- /* @__PURE__ */ e(hs, { column: o }),
6749
+ /* @__PURE__ */ e(us, { column: o }),
6750
6750
  /* @__PURE__ */ e("span", { children: o.column_name })
6751
6751
  ] })
6752
6752
  },
@@ -6754,7 +6754,7 @@ function or() {
6754
6754
  );
6755
6755
  }) });
6756
6756
  }
6757
- function cr() {
6757
+ function or() {
6758
6758
  I((s) => s.showFilters);
6759
6759
  const t = I(
6760
6760
  (s) => s.actions.setShowFilters
@@ -6773,12 +6773,12 @@ function cr() {
6773
6773
  )
6774
6774
  ] }),
6775
6775
  /* @__PURE__ */ e("div", { className: "flex grow", children: /* @__PURE__ */ e(
6776
- us,
6776
+ ms,
6777
6777
  {
6778
6778
  ColumnsComponent: () => (
6779
6779
  // schemaName, tableName, columns
6780
6780
  /* @__PURE__ */ e(
6781
- or,
6781
+ rr,
6782
6782
  {}
6783
6783
  )
6784
6784
  )
@@ -6786,7 +6786,7 @@ function cr() {
6786
6786
  ) })
6787
6787
  ] });
6788
6788
  }
6789
- function dr() {
6789
+ function cr() {
6790
6790
  const t = I((l) => l.dashboard.filters), s = I((l) => l.theme), a = t == null ? void 0 : t.filter((l) => l.hide);
6791
6791
  return a != null && a.length ? /* @__PURE__ */ e(
6792
6792
  "div",
@@ -6800,8 +6800,8 @@ function dr() {
6800
6800
  {
6801
6801
  className: "flex min-w-[250px] max-w-fit flex-col gap-1 p-2",
6802
6802
  children: [
6803
- /* @__PURE__ */ e(Ga, { filter: l }),
6804
- /* @__PURE__ */ e(ja, { filter: l })
6803
+ /* @__PURE__ */ e(Ja, { filter: l }),
6804
+ /* @__PURE__ */ e(_a, { filter: l })
6805
6805
  ]
6806
6806
  },
6807
6807
  l.id
@@ -6809,7 +6809,7 @@ function dr() {
6809
6809
  }
6810
6810
  ) : null;
6811
6811
  }
6812
- function hr() {
6812
+ function dr() {
6813
6813
  const t = I((l) => l.showFilters), s = I((l) => l.isVisualEditing), a = I(
6814
6814
  (l) => l.isDashboardEditing
6815
6815
  );
@@ -6825,15 +6825,15 @@ function hr() {
6825
6825
  }),
6826
6826
  children: [
6827
6827
  /* @__PURE__ */ n("section", { className: "flex grow flex-col", children: [
6828
- a && /* @__PURE__ */ e(dr, {}),
6828
+ a && /* @__PURE__ */ e(cr, {}),
6829
6829
  /* @__PURE__ */ e(Bn, {})
6830
6830
  ] }),
6831
- t && /* @__PURE__ */ e("div", { role: "filter-aside-container", className: "flex", children: /* @__PURE__ */ e(cr, {}) })
6831
+ t && /* @__PURE__ */ e("div", { role: "filter-aside-container", className: "flex", children: /* @__PURE__ */ e(or, {}) })
6832
6832
  ]
6833
6833
  }
6834
6834
  );
6835
6835
  }
6836
- function ur() {
6836
+ function hr() {
6837
6837
  const t = I((i) => i.dashboard), s = I((i) => i.actions.setDashboard), a = I(
6838
6838
  (i) => i.showDashboardJSON
6839
6839
  ), l = I(
@@ -6892,55 +6892,55 @@ function ur() {
6892
6892
  }
6893
6893
  );
6894
6894
  }
6895
- function yr({
6895
+ function gr({
6896
6896
  showControls: t = !1,
6897
6897
  showFooter: s = !0,
6898
6898
  ...a
6899
6899
  }) {
6900
- return /* @__PURE__ */ e(St, { FallbackComponent: Ja, children: /* @__PURE__ */ n(Gn, { dashboardProps: a, children: [
6900
+ return /* @__PURE__ */ e(St, { FallbackComponent: Ka, children: /* @__PURE__ */ n(Gn, { dashboardProps: a, children: [
6901
6901
  /* @__PURE__ */ e(Jn, {}),
6902
6902
  /* @__PURE__ */ n(Kn, { children: [
6903
- /* @__PURE__ */ e(ur, {}),
6903
+ /* @__PURE__ */ e(hr, {}),
6904
6904
  /* @__PURE__ */ n(Qn, { ...a, children: [
6905
6905
  t && /* @__PURE__ */ e(Zl, {}),
6906
- /* @__PURE__ */ e(rr, {}),
6907
- /* @__PURE__ */ e(hr, {})
6906
+ /* @__PURE__ */ e(ir, {}),
6907
+ /* @__PURE__ */ e(dr, {})
6908
6908
  ] })
6909
6909
  ] })
6910
6910
  ] }) });
6911
6911
  }
6912
6912
  export {
6913
- vr as Dashboard,
6914
- Nr as DashboardWC,
6913
+ xr as Dashboard,
6914
+ vr as DashboardWC,
6915
6915
  Ql as ScheduleDashboard,
6916
6916
  Ye as SelectComponent,
6917
- Cr as SemaphorDataProvider,
6918
- Sr as SemaphorQueryClient,
6919
- yr as Surfboard,
6917
+ Nr as SemaphorDataProvider,
6918
+ Cr as SemaphorQueryClient,
6919
+ gr as Surfboard,
6920
6920
  Hl as cleanCard,
6921
- Aa as createSqlGenConfig,
6921
+ Fa as createSqlGenConfig,
6922
6922
  Jl as downloadPdf,
6923
6923
  be as fmt,
6924
- wr as getColumnDataType,
6925
- cs as getDashbaordStateWithoutData,
6926
- kr as getFilterValueType,
6924
+ Sr as getColumnDataType,
6925
+ ds as getDashbaordStateWithoutData,
6926
+ wr as getFilterValueType,
6927
6927
  It as getFormattedTableNameForQuery,
6928
6928
  An as getQualifiedTableName,
6929
6929
  La as getSql,
6930
- Mr as invalidateToken,
6930
+ kr as invalidateToken,
6931
6931
  qs as isBooleanDataType,
6932
6932
  Rs as isColumnInSqlGen,
6933
6933
  Es as isDateDataType,
6934
- Fa as isNumberDataType,
6935
- Fs as isTextDataType,
6936
- Dr as resolveDataType,
6934
+ Ea as isNumberDataType,
6935
+ Ls as isTextDataType,
6936
+ Mr as resolveDataType,
6937
6937
  ut as resolveDatamodelName,
6938
- zr as useCard,
6938
+ Dr as useCard,
6939
6939
  Ke as useDashboardActions,
6940
6940
  I as useDashboardStore,
6941
- Ir as useDateFilterHook,
6941
+ zr as useDateFilterHook,
6942
6942
  ne as useEditorActions,
6943
6943
  Pe as useEditorAside,
6944
6944
  m as useEditorStore,
6945
- Or as useTextFilterHook
6945
+ Ir as useTextFilterHook
6946
6946
  };