react-semaphor 0.0.385 → 0.0.386

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 j, p as Dt, u as D, a as Ze, b as Me, d as Mt, e as zt, B as F, P as Xe, f as Ft, g as Lt, h as Et, i as da, L as U, I as me, j as ua, k as At, l as Vt, m as qt, n as ha, o as ma, q as dn, r as Zt, s as ee, C as pt, t as un, v as p, w as hn, x as mn, y as pa, F as fa, z as We, A as Ke, T as ga, E as pn, G as ba, S as xe, H as ve, J as Ne, K as Ce, M as Ie, N as Se, O as ae, Q as ya, R as xa, U as va, V as Na, W as Ca, X as be, Y as fn, Z as gn, _ as Sa, $ as bn, a0 as yn, a1 as xn, a2 as wa, a3 as De, a4 as vn, a5 as _e, a6 as kt, a7 as Fe, a8 as Re, a9 as Oe, aa as Nn, ab as Cn, ac as Xt, ad as Sn, ae as Yt, af as wn, ag as Ye, ah as kn, ai as In, aj as On, ak as Tn, al as Dn, am as St, an as Mn, ao as zn, ap as Ee, aq as ce, ar as ka, as as Fn, at as ft, au as Ln, av as En, aw as An, ax as It, ay as Vn, az as qn, aA as ct, aB as ke, aC as dt, aD as jn, aE as Rn, aF as _n, aG as Hn, aH as wt, aI as Pn, aJ as ea, aK as $n, aL as ta, aM as Un, aN as Bn, aO as Gn, aP as Jn, aQ as Ia, aR as Wn, aS as jt, aT as Oa, aU as Kn, aV as Qn, aW as rt, aX as Zn, aY as Xn, aZ as Ta, a_ as Yn, a$ as es, b0 as ts, b1 as as, b2 as ns, b3 as gt, b4 as Da, b5 as ss, b6 as Ma, b7 as za, b8 as it, b9 as ot, ba as ls, bb as rs, bc as is, bd as os, be as bt, bf as yt, bg as xt, bh as cs, bi as ds, bj as us, bk as hs, bl as ms, bm as ps, bn as fs, bo as vt, bp as Le, bq as gs, br as Be, bs as Rt, bt as Fa, bu as bs, bv as ys, bw as ut, bx as xs, by as vs, bz as Ns, bA as Cs, bB as aa, bC as na, bD as La, bE as Ss, bF as ws, bG as ks, bH as Is, bI as Os, bJ as Ts, bK as Ds, bL as Ms, bM as Ae, bN as Z, bO as X, bP as _t, bQ as Y, bR as zs, bS as Ea, bT as Fs, bU as Ls, bV as Es, bW as As, bX as Vs, bY as qs, bZ as js, b_ as Rs, b$ as _s } from "./chunks/index-pusA885l.js";
2
- import { D as $r, c4 as Ur, c2 as Br, c2 as Gr, c6 as Jr, c5 as Wr, c7 as Kr, c3 as Qr, c0 as Zr, c1 as Xr } from "./chunks/index-pusA885l.js";
1
+ import { c as j, p as Mt, u as D, a as Ze, b as Me, d as zt, e as Ft, B as F, P as Xe, f as Lt, g as Et, h as At, i as da, L as U, I as me, j as ua, k as Vt, l as qt, m as jt, n as ha, o as ma, q as dn, r as Xt, s as ee, C as ft, t as un, v as p, w as hn, x as mn, y as pa, F as fa, z as We, A as Ke, T as ga, E as pn, G as ba, S as xe, H as ve, J as Ne, K as Ce, M as Ie, N as Se, O as ae, Q as ya, R as xa, U as va, V as Na, W as Ca, X as be, Y as fn, Z as gn, _ as Sa, $ as bn, a0 as yn, a1 as xn, a2 as wa, a3 as De, a4 as vn, a5 as _e, a6 as ct, a7 as It, a8 as Fe, a9 as Re, aa as Oe, ab as Nn, ac as Cn, ad as Sn, ae as Yt, af as wn, ag as Ye, ah as kn, ai as In, aj as On, ak as Tn, al as Dn, am as wt, an as Mn, ao as zn, ap as Ee, aq as ce, ar as ka, as as Fn, at as gt, au as Ln, av as En, aw as An, ax as Ot, ay as Vn, az as qn, aA as dt, aB as ke, aC as ut, aD as jn, aE as Rn, aF as _n, aG as Hn, aH as kt, aI as Pn, aJ as ea, aK as $n, aL as ta, aM as Un, aN as Bn, aO as Gn, aP as Jn, aQ as Ia, aR as Wn, aS as Rt, aT as Oa, aU as Kn, aV as Qn, aW as rt, aX as Zn, aY as Xn, aZ as Ta, a_ as Yn, a$ as es, b0 as ts, b1 as as, b2 as ns, b3 as bt, b4 as Da, b5 as ss, b6 as Ma, b7 as za, b8 as it, b9 as ot, ba as ls, bb as rs, bc as is, bd as os, be as yt, bf as xt, bg as vt, bh as cs, bi as ds, bj as us, bk as hs, bl as ms, bm as ps, bn as fs, bo as Nt, bp as Le, bq as gs, br as Be, bs as _t, bt as Fa, bu as bs, bv as ys, bw as ht, bx as xs, by as vs, bz as Ns, bA as Cs, bB as aa, bC as na, bD as La, bE as Ss, bF as ws, bG as ks, bH as Is, bI as Os, bJ as Ts, bK as Ds, bL as Ms, bM as Ae, bN as Z, bO as X, bP as Ht, bQ as Y, bR as zs, bS as Ea, bT as Fs, bU as Ls, bV as Es, bW as As, bX as Vs, bY as qs, bZ as js, b_ as Rs, b$ as _s } from "./chunks/index-nAg7m3C0.js";
2
+ import { D as $r, c4 as Ur, c2 as Br, c2 as Gr, c6 as Jr, c5 as Wr, c7 as Kr, c3 as Qr, c0 as Zr, c1 as Xr } from "./chunks/index-nAg7m3C0.js";
3
3
  import { jsxs as n, jsx as e, Fragment as ne } from "react/jsx-runtime";
4
4
  import * as sa from "react";
5
- import Te, { useState as H, useMemo as Ot, useEffect as oe, useRef as Ge, useCallback as Aa, Suspense as Hs } from "react";
5
+ import Te, { useState as H, useMemo as Tt, useEffect as oe, useRef as Ge, useCallback as Aa, Suspense as Hs } from "react";
6
6
  import "react-dom";
7
7
  /**
8
8
  * @license lucide-react v0.453.0 - ISC
@@ -80,7 +80,7 @@ const Bs = j("ChartArea", [
80
80
  * This source code is licensed under the ISC license.
81
81
  * See the LICENSE file in the root directory of this source tree.
82
82
  */
83
- const Ht = j("ChartColumnIncreasing", [
83
+ const Pt = j("ChartColumnIncreasing", [
84
84
  ["path", { d: "M13 17V9", key: "1fwyjl" }],
85
85
  ["path", { d: "M18 17V5", key: "sfb6ij" }],
86
86
  ["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
@@ -105,7 +105,7 @@ const Va = j("ChartColumnStacked", [
105
105
  * This source code is licensed under the ISC license.
106
106
  * See the LICENSE file in the root directory of this source tree.
107
107
  */
108
- const Pt = j("ChartLine", [
108
+ const $t = j("ChartLine", [
109
109
  ["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
110
110
  ["path", { d: "m19 9-5 5-4-4-3 3", key: "2osh9i" }]
111
111
  ]);
@@ -206,7 +206,7 @@ const _a = j("Donut", [
206
206
  * This source code is licensed under the ISC license.
207
207
  * See the LICENSE file in the root directory of this source tree.
208
208
  */
209
- const $t = j("EllipsisVertical", [
209
+ const Ut = j("EllipsisVertical", [
210
210
  ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
211
211
  ["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
212
212
  ["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
@@ -537,7 +537,7 @@ const hl = j("Sigma", [
537
537
  * This source code is licensed under the ISC license.
538
538
  * See the LICENSE file in the root directory of this source tree.
539
539
  */
540
- const Ut = j("Table", [
540
+ const Bt = j("Table", [
541
541
  ["path", { d: "M12 3v18", key: "108xh3" }],
542
542
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
543
543
  ["path", { d: "M3 9h18", key: "1pudct" }],
@@ -667,18 +667,18 @@ async function yl(t, s, a, l) {
667
667
  if (!l)
668
668
  return null;
669
669
  const r = JSON.stringify(s);
670
- return await Dt("https://semaphor.cloud/api/v1/lens", l, {
670
+ return await Mt("https://semaphor.cloud/api/v1/lens", l, {
671
671
  name: t,
672
672
  template: r,
673
673
  filterValues: a,
674
674
  operation: "create"
675
675
  });
676
676
  }
677
- async function Tt(t, s) {
677
+ async function Dt(t, s) {
678
678
  if (!s)
679
679
  return null;
680
680
  const { id: a, template: l, filterValues: r, isDefault: i, shared: o } = t;
681
- return await Dt("https://semaphor.cloud/api/v1/lens", s, {
681
+ return await Mt("https://semaphor.cloud/api/v1/lens", s, {
682
682
  lensId: a,
683
683
  template: l,
684
684
  filterValues: r,
@@ -688,7 +688,7 @@ async function Tt(t, s) {
688
688
  });
689
689
  }
690
690
  async function xl(t, s) {
691
- return s ? await Dt("https://semaphor.cloud/api/v1/lens", s, {
691
+ return s ? await Mt("https://semaphor.cloud/api/v1/lens", s, {
692
692
  operation: "delete",
693
693
  lensId: t
694
694
  }) : null;
@@ -707,8 +707,8 @@ function vl() {
707
707
  );
708
708
  I && (i([...r || [], I]), o(I.id), f(!1)), d(!1);
709
709
  }
710
- return /* @__PURE__ */ n(Mt, { open: u, onOpenChange: f, children: [
711
- /* @__PURE__ */ e(zt, { asChild: !0, children: /* @__PURE__ */ n(
710
+ return /* @__PURE__ */ n(zt, { open: u, onOpenChange: f, children: [
711
+ /* @__PURE__ */ e(Ft, { asChild: !0, children: /* @__PURE__ */ n(
712
712
  F,
713
713
  {
714
714
  variant: "secondary",
@@ -720,9 +720,9 @@ function vl() {
720
720
  ]
721
721
  }
722
722
  ) }),
723
- /* @__PURE__ */ n(Ft, { className: "sm:max-w-[425px]", children: [
724
- /* @__PURE__ */ n(Lt, { children: [
725
- /* @__PURE__ */ e(Et, { children: "Create Lens" }),
723
+ /* @__PURE__ */ n(Lt, { className: "sm:max-w-[425px]", children: [
724
+ /* @__PURE__ */ n(Et, { children: [
725
+ /* @__PURE__ */ e(At, { children: "Create Lens" }),
726
726
  /* @__PURE__ */ e(da, { children: "Lenses are private by default and are only visible to you." })
727
727
  ] }),
728
728
  /* @__PURE__ */ e("div", { className: "grid gap-4 py-4", children: /* @__PURE__ */ n("div", { className: "grid grid-cols-8 items-center gap-4", children: [
@@ -778,19 +778,19 @@ function Nl() {
778
778
  ...f,
779
779
  isDefault: !f.isDefault
780
780
  };
781
- await Tt(v, o == null ? void 0 : o.accessToken);
781
+ await Dt(v, o == null ? void 0 : o.accessToken);
782
782
  const h = a == null ? void 0 : a.find((g) => g.isDefault);
783
783
  if (h && h.id !== f.id) {
784
784
  const g = {
785
785
  ...h,
786
786
  isDefault: !1
787
787
  };
788
- await Tt(g, o == null ? void 0 : o.accessToken);
788
+ await Dt(g, o == null ? void 0 : o.accessToken);
789
789
  }
790
790
  }
791
- return /* @__PURE__ */ n(At, { open: t, onOpenChange: s, children: [
792
- /* @__PURE__ */ e(Vt, { asChild: !0, children: /* @__PURE__ */ e(F, { variant: "ghost", className: "h-7 p-2", children: /* @__PURE__ */ e(Xs, { className: "h-4 w-4", strokeWidth: 1.5 }) }) }),
793
- /* @__PURE__ */ n(qt, { align: "end", className: "w-60", children: [
791
+ return /* @__PURE__ */ n(Vt, { open: t, onOpenChange: s, children: [
792
+ /* @__PURE__ */ e(qt, { asChild: !0, children: /* @__PURE__ */ e(F, { variant: "ghost", className: "h-7 p-2", children: /* @__PURE__ */ e(Xs, { className: "h-4 w-4", strokeWidth: 1.5 }) }) }),
793
+ /* @__PURE__ */ n(jt, { align: "end", className: "w-60", children: [
794
794
  /* @__PURE__ */ e(ha, { className: "px-3", children: "Lenses" }),
795
795
  /* @__PURE__ */ e(ma, {}),
796
796
  /* @__PURE__ */ n(
@@ -799,9 +799,9 @@ function Nl() {
799
799
  value: l,
800
800
  onValueChange: c,
801
801
  children: [
802
- /* @__PURE__ */ e(Zt, { value: "original", children: "Original" }),
802
+ /* @__PURE__ */ e(Xt, { value: "original", children: "Original" }),
803
803
  a == null ? void 0 : a.map((f) => /* @__PURE__ */ n(
804
- Zt,
804
+ Xt,
805
805
  {
806
806
  className: "group flex justify-between gap-2",
807
807
  value: f.id,
@@ -825,7 +825,7 @@ function Nl() {
825
825
  }
826
826
  ),
827
827
  /* @__PURE__ */ e(
828
- pt,
828
+ ft,
829
829
  {
830
830
  onClick: (x) => {
831
831
  x.preventDefault(), d(f.id);
@@ -910,10 +910,10 @@ function wl() {
910
910
  (m) => m.actions.setShowFilters
911
911
  ), { addFrame: g, setSelectedFrameId: b } = D(
912
912
  (m) => m.actions
913
- ), { getSelectedSheet: I, setIsDashboardEditing: N, setShowDashboardJSON: E } = D((m) => m.actions), k = I(), { tenantId: z, endUserId: O } = Ot(
913
+ ), { getSelectedSheet: I, setIsDashboardEditing: N, setShowDashboardJSON: E } = D((m) => m.actions), k = I(), { tenantId: z, endUserId: O } = Tt(
914
914
  () => hn(t == null ? void 0 : t.accessToken),
915
915
  [t == null ? void 0 : t.accessToken]
916
- ), A = Ot(() => z || O, [z, O]), P = () => {
916
+ ), A = Tt(() => z || O, [z, O]), P = () => {
917
917
  if (!i || !k) return;
918
918
  const m = {
919
919
  connectionId: o,
@@ -949,7 +949,7 @@ function wl() {
949
949
  template: y,
950
950
  filterValues: u
951
951
  };
952
- await Tt(M, t == null ? void 0 : t.accessToken), Ke.success("Lens saved"), v == null || v(m), d(!1);
952
+ await Dt(M, t == null ? void 0 : t.accessToken), Ke.success("Lens saved"), v == null || v(m), d(!1);
953
953
  }
954
954
  return f ? null : /* @__PURE__ */ n(
955
955
  "div",
@@ -997,7 +997,7 @@ function wl() {
997
997
  N(!1), E(!1);
998
998
  },
999
999
  size: "sm",
1000
- children: /* @__PURE__ */ e(pt, { className: "h-4 w-4", strokeWidth: 1.5 })
1000
+ children: /* @__PURE__ */ e(ft, { className: "h-4 w-4", strokeWidth: 1.5 })
1001
1001
  }
1002
1002
  ),
1003
1003
  i && !f && A && /* @__PURE__ */ e(
@@ -1051,7 +1051,7 @@ function Ue({
1051
1051
  if (t === "Schema")
1052
1052
  return /* @__PURE__ */ e(il, { className: "size-4" });
1053
1053
  if (t === "Table")
1054
- return /* @__PURE__ */ e(Ut, { className: "size-4" });
1054
+ return /* @__PURE__ */ e(Bt, { className: "size-4" });
1055
1055
  if (t === "Model")
1056
1056
  return /* @__PURE__ */ e($s, { className: "size-4" });
1057
1057
  }
@@ -1162,7 +1162,7 @@ function kl({ column: t }) {
1162
1162
  ] });
1163
1163
  }
1164
1164
  return /* @__PURE__ */ n(ya, { openDelay: 0, open: s, onOpenChange: a, children: [
1165
- /* @__PURE__ */ e(xa, { asChild: !0, children: /* @__PURE__ */ e($t, { className: "invisible size-3.5 cursor-pointer text-foreground/40 group-hover:visible" }) }),
1165
+ /* @__PURE__ */ e(xa, { asChild: !0, children: /* @__PURE__ */ e(Ut, { className: "invisible size-3.5 cursor-pointer text-foreground/40 group-hover:visible" }) }),
1166
1166
  /* @__PURE__ */ e(
1167
1167
  va,
1168
1168
  {
@@ -1225,7 +1225,7 @@ function Il({
1225
1225
  databaseName: o || "",
1226
1226
  schemaName: c || "",
1227
1227
  tableName: d || "",
1228
- datamodelName: z || "",
1228
+ datamodelName: ct(z),
1229
1229
  datamodelId: u || ""
1230
1230
  }), Ke.success("Added to Assistant Scope", {
1231
1231
  position: "top-right",
@@ -1235,7 +1235,7 @@ function Il({
1235
1235
  connectionId: i || "",
1236
1236
  connectionType: E || "",
1237
1237
  tableName: d || "",
1238
- datamodelName: z || "",
1238
+ datamodelName: ct(z),
1239
1239
  datamodelId: u || "",
1240
1240
  databaseName: o || "",
1241
1241
  schemaName: c || ""
@@ -1246,7 +1246,7 @@ function Il({
1246
1246
  }));
1247
1247
  }
1248
1248
  function R() {
1249
- const m = kt({
1249
+ const m = It({
1250
1250
  schemaName: t,
1251
1251
  tableName: s,
1252
1252
  modelName: z,
@@ -1257,7 +1257,7 @@ function Il({
1257
1257
  N(y), g(!0);
1258
1258
  }
1259
1259
  function $() {
1260
- const m = kt({
1260
+ const m = It({
1261
1261
  schemaName: t,
1262
1262
  tableName: s,
1263
1263
  modelName: z,
@@ -1360,8 +1360,8 @@ function Il({
1360
1360
  ] });
1361
1361
  }
1362
1362
  function Ve(t, s) {
1363
- var nt, Gt, Jt, Wt, Kt, Qt;
1364
- let a = Ot(() => [], []);
1363
+ var nt, Jt, Wt, Kt, Qt, Zt;
1364
+ let a = Tt(() => [], []);
1365
1365
  const l = Me().authToken || t, r = p(
1366
1366
  (w) => w.selectedConnectionId
1367
1367
  ), i = p(
@@ -1542,7 +1542,7 @@ function Ve(t, s) {
1542
1542
  function T(w) {
1543
1543
  x(w === "none" ? "" : w), w !== "none" && w !== "" && v("");
1544
1544
  }
1545
- S && ((Gt = S == null ? void 0 : S.databases) == null ? void 0 : Gt.length) > 0, W && ((Jt = W == null ? void 0 : W.schemas) == null ? void 0 : Jt.length) > 0, te && ((Wt = te == null ? void 0 : te.columns) == null ? void 0 : Wt.length) > 0 && (a = te.columns.map((w) => ({
1545
+ S && ((Jt = S == null ? void 0 : S.databases) == null ? void 0 : Jt.length) > 0, W && ((Wt = W == null ? void 0 : W.schemas) == null ? void 0 : Wt.length) > 0, te && ((Kt = te == null ? void 0 : te.columns) == null ? void 0 : Kt.length) > 0 && (a = te.columns.map((w) => ({
1546
1546
  ...w,
1547
1547
  data_type: w.data_type.toLowerCase()
1548
1548
  }))), G && (a = []), (C || O) && (a = []);
@@ -1552,7 +1552,7 @@ function Ve(t, s) {
1552
1552
  name: w.name,
1553
1553
  type: w.type
1554
1554
  })
1555
- ), ze = (Kt = P == null ? void 0 : P.datamodels) == null ? void 0 : Kt.map((w) => ({
1555
+ ), ze = (Qt = P == null ? void 0 : P.datamodels) == null ? void 0 : Qt.map((w) => ({
1556
1556
  id: w.id,
1557
1557
  name: w.name
1558
1558
  })), ge = S == null ? void 0 : S.databases.map((w) => ({
@@ -1561,12 +1561,12 @@ function Ve(t, s) {
1561
1561
  })), $e = W == null ? void 0 : W.schemas.map((w) => ({
1562
1562
  id: w.schema_name,
1563
1563
  name: w.schema_name
1564
- })), Ct = L == null ? void 0 : L.tables.map((w) => ({
1564
+ })), St = L == null ? void 0 : L.tables.map((w) => ({
1565
1565
  id: w.table_name,
1566
1566
  name: w.table_name
1567
- })), at = (Qt = P == null ? void 0 : P.datamodels.find(
1567
+ })), at = (Zt = P == null ? void 0 : P.datamodels.find(
1568
1568
  (w) => w.id === i
1569
- )) == null ? void 0 : Qt.name;
1569
+ )) == null ? void 0 : Zt.name;
1570
1570
  return {
1571
1571
  connectionItems: ue,
1572
1572
  isConnectionsLoading: z,
@@ -1582,7 +1582,7 @@ function Ve(t, s) {
1582
1582
  schemaItems: $e,
1583
1583
  isSchemaLoadingOrFetching: se || he,
1584
1584
  isSchemaError: J,
1585
- tableItems: Ct,
1585
+ tableItems: St,
1586
1586
  isTableLoadingOrFetching: de || le,
1587
1587
  isTableError: re,
1588
1588
  columns: a,
@@ -1960,7 +1960,7 @@ function Dl({
1960
1960
  schemaName: A || "",
1961
1961
  tableName: z || "",
1962
1962
  datamodelId: m || "",
1963
- datamodelName: Xt(R),
1963
+ datamodelName: ct(R),
1964
1964
  connectionId: O || "",
1965
1965
  connectionType: $ || ""
1966
1966
  }, _ = Yt([...c, C]);
@@ -1971,7 +1971,7 @@ function Dl({
1971
1971
  databaseName: k || "",
1972
1972
  schemaName: A || "",
1973
1973
  tableName: z || "",
1974
- datamodelName: Xt(R),
1974
+ datamodelName: ct(R),
1975
1975
  connectionId: O || "",
1976
1976
  connectionType: $ || "",
1977
1977
  datamodelId: m || ""
@@ -2055,13 +2055,13 @@ function zl({
2055
2055
  setOpen: s
2056
2056
  });
2057
2057
  function B() {
2058
- return /* @__PURE__ */ n(At, { children: [
2059
- /* @__PURE__ */ e(Vt, { children: /* @__PURE__ */ e(F, { className: "h-7 p-2", size: "sm", variant: "ghost", children: /* @__PURE__ */ e($t, { className: "size-3.5 text-muted-foreground/70 hover:text-muted-foreground" }) }) }),
2060
- /* @__PURE__ */ n(qt, { align: "end", children: [
2058
+ return /* @__PURE__ */ n(Vt, { children: [
2059
+ /* @__PURE__ */ e(qt, { children: /* @__PURE__ */ e(F, { className: "h-7 p-2", size: "sm", variant: "ghost", children: /* @__PURE__ */ e(Ut, { className: "size-3.5 text-muted-foreground/70 hover:text-muted-foreground" }) }) }),
2060
+ /* @__PURE__ */ n(jt, { align: "end", children: [
2061
2061
  /* @__PURE__ */ e(ha, { children: "Options" }),
2062
2062
  /* @__PURE__ */ e(ma, {}),
2063
2063
  /* @__PURE__ */ e(
2064
- St,
2064
+ wt,
2065
2065
  {
2066
2066
  checked: i,
2067
2067
  onCheckedChange: o,
@@ -2069,7 +2069,7 @@ function zl({
2069
2069
  }
2070
2070
  ),
2071
2071
  /* @__PURE__ */ e(
2072
- St,
2072
+ wt,
2073
2073
  {
2074
2074
  checked: c,
2075
2075
  onCheckedChange: d,
@@ -2077,7 +2077,7 @@ function zl({
2077
2077
  }
2078
2078
  ),
2079
2079
  /* @__PURE__ */ e(
2080
- St,
2080
+ wt,
2081
2081
  {
2082
2082
  checked: u,
2083
2083
  onCheckedChange: f,
@@ -2087,8 +2087,8 @@ function zl({
2087
2087
  ] })
2088
2088
  ] });
2089
2089
  }
2090
- return /* @__PURE__ */ n(Mt, { open: t, onOpenChange: s, children: [
2091
- /* @__PURE__ */ e(zt, { asChild: !0, children: /* @__PURE__ */ e(
2090
+ return /* @__PURE__ */ n(zt, { open: t, onOpenChange: s, children: [
2091
+ /* @__PURE__ */ e(Ft, { asChild: !0, children: /* @__PURE__ */ e(
2092
2092
  F,
2093
2093
  {
2094
2094
  onClick: E,
@@ -2098,10 +2098,10 @@ function zl({
2098
2098
  children: "Type your question..."
2099
2099
  }
2100
2100
  ) }),
2101
- /* @__PURE__ */ n(Ft, { className: "flex flex-col justify-between overflow-auto sm:max-w-[425px] md:max-h-[700px] md:min-w-[625px] [&>button]:hidden", children: [
2102
- /* @__PURE__ */ e(Lt, { children: /* @__PURE__ */ n("div", { className: "flex items-start justify-between gap-2", children: [
2101
+ /* @__PURE__ */ n(Lt, { className: "flex flex-col justify-between overflow-auto sm:max-w-[425px] md:max-h-[700px] md:min-w-[625px] [&>button]:hidden", children: [
2102
+ /* @__PURE__ */ e(Et, { children: /* @__PURE__ */ n("div", { className: "flex items-start justify-between gap-2", children: [
2103
2103
  /* @__PURE__ */ n("div", { children: [
2104
- /* @__PURE__ */ e(Et, { children: "Assistant" }),
2104
+ /* @__PURE__ */ e(At, { children: "Assistant" }),
2105
2105
  O && O.length > 0 && /* @__PURE__ */ n("div", { className: "mt-2 flex flex-wrap items-center gap-2", children: [
2106
2106
  /* @__PURE__ */ e("span", { className: "text-xs text-muted-foreground", children: "Context:" }),
2107
2107
  O == null ? void 0 : O.map((G, K) => /* @__PURE__ */ n(
@@ -2109,7 +2109,7 @@ function zl({
2109
2109
  {
2110
2110
  className: "flex items-center gap-2 rounded-md border border-border bg-muted px-2 py-1 text-xs",
2111
2111
  children: [
2112
- kt({
2112
+ It({
2113
2113
  schemaName: G.schemaName || "",
2114
2114
  tableName: G.tableName || "",
2115
2115
  modelName: G.datamodelName || "",
@@ -2233,15 +2233,15 @@ function El(t, s) {
2233
2233
  }
2234
2234
  return a;
2235
2235
  }
2236
- function ht() {
2237
- return ht = Object.assign ? Object.assign.bind() : function(t) {
2236
+ function mt() {
2237
+ return mt = Object.assign ? Object.assign.bind() : function(t) {
2238
2238
  for (var s = 1; s < arguments.length; s++) {
2239
2239
  var a = arguments[s];
2240
2240
  for (var l in a)
2241
2241
  Object.prototype.hasOwnProperty.call(a, l) && (t[l] = a[l]);
2242
2242
  }
2243
2243
  return t;
2244
- }, ht.apply(this, arguments);
2244
+ }, mt.apply(this, arguments);
2245
2245
  }
2246
2246
  function ra(t, s) {
2247
2247
  var a = Object.keys(t);
@@ -2253,7 +2253,7 @@ function ra(t, s) {
2253
2253
  }
2254
2254
  return a;
2255
2255
  }
2256
- function mt(t) {
2256
+ function pt(t) {
2257
2257
  for (var s = 1; s < arguments.length; s++) {
2258
2258
  var a = arguments[s] != null ? arguments[s] : {};
2259
2259
  s % 2 ? ra(Object(a), !0).forEach(function(l) {
@@ -2282,13 +2282,13 @@ function ql(t, s) {
2282
2282
  return (s === "string" ? String : Number)(t);
2283
2283
  }
2284
2284
  function Qa(t) {
2285
- return t && t.map((s, a) => /* @__PURE__ */ Te.createElement(s.tag, mt({
2285
+ return t && t.map((s, a) => /* @__PURE__ */ Te.createElement(s.tag, pt({
2286
2286
  key: a
2287
2287
  }, s.attr), Qa(s.child)));
2288
2288
  }
2289
2289
  function He(t) {
2290
- return (s) => /* @__PURE__ */ Te.createElement(jl, ht({
2291
- attr: mt({}, t.attr)
2290
+ return (s) => /* @__PURE__ */ Te.createElement(jl, mt({
2291
+ attr: pt({}, t.attr)
2292
2292
  }, s), Qa(t.child));
2293
2293
  }
2294
2294
  function jl(t) {
@@ -2298,13 +2298,13 @@ function jl(t) {
2298
2298
  size: r,
2299
2299
  title: i
2300
2300
  } = t, o = Ll(t, Fl), c = r || a.size || "1em", d;
2301
- return a.className && (d = a.className), t.className && (d = (d ? d + " " : "") + t.className), /* @__PURE__ */ Te.createElement("svg", ht({
2301
+ return a.className && (d = a.className), t.className && (d = (d ? d + " " : "") + t.className), /* @__PURE__ */ Te.createElement("svg", mt({
2302
2302
  stroke: "currentColor",
2303
2303
  fill: "currentColor",
2304
2304
  strokeWidth: "0"
2305
2305
  }, a.attr, l, o, {
2306
2306
  className: d,
2307
- style: mt(mt({
2307
+ style: pt(pt({
2308
2308
  color: t.color || a.color
2309
2309
  }, a.style), t.style),
2310
2310
  height: c,
@@ -2384,7 +2384,7 @@ function _l() {
2384
2384
  a(o), Ln(s) || l({});
2385
2385
  }
2386
2386
  return /* @__PURE__ */ e(
2387
- ft,
2387
+ gt,
2388
2388
  {
2389
2389
  theme: "default",
2390
2390
  className: "pt-3",
@@ -2413,7 +2413,7 @@ function Hl() {
2413
2413
  s(r);
2414
2414
  }
2415
2415
  return /* @__PURE__ */ e(
2416
- ft,
2416
+ gt,
2417
2417
  {
2418
2418
  className: "pt-3",
2419
2419
  theme: "default",
@@ -2438,7 +2438,7 @@ function Hl() {
2438
2438
  }
2439
2439
  function Pl({ jsonString: t }) {
2440
2440
  return /* @__PURE__ */ e(
2441
- ft,
2441
+ gt,
2442
2442
  {
2443
2443
  theme: "default",
2444
2444
  defaultLanguage: "json",
@@ -2506,7 +2506,7 @@ function $l() {
2506
2506
  position: "top-center",
2507
2507
  richColors: !0
2508
2508
  }), m((J == null ? void 0 : J.output) || ""), J.records.length > 0)) {
2509
- const { dimensionKeys: T } = It(J.records);
2509
+ const { dimensionKeys: T } = Ot(J.records);
2510
2510
  R(T);
2511
2511
  }
2512
2512
  }, [J, R, m]), oe(() => {
@@ -2542,8 +2542,8 @@ function $l() {
2542
2542
  if (ge == "All__Header")
2543
2543
  return T[0].id;
2544
2544
  if (ge && ge.endsWith("__Header")) {
2545
- const Ct = ge.split("__")[0], at = T.find(
2546
- (nt) => nt.tabTitle === Ct
2545
+ const St = ge.split("__")[0], at = T.find(
2546
+ (nt) => nt.tabTitle === St
2547
2547
  );
2548
2548
  return at ? at.id : T[0].id;
2549
2549
  }
@@ -2620,7 +2620,7 @@ function $l() {
2620
2620
  }
2621
2621
  function je() {
2622
2622
  return /* @__PURE__ */ n(
2623
- ct,
2623
+ dt,
2624
2624
  {
2625
2625
  className: "flex grow pb-1",
2626
2626
  direction: "vertical",
@@ -2647,7 +2647,7 @@ function $l() {
2647
2647
  }
2648
2648
  ),
2649
2649
  l && /* @__PURE__ */ n(ne, { children: [
2650
- /* @__PURE__ */ e(dt, { withHandle: !0, className: "border" }),
2650
+ /* @__PURE__ */ e(ut, { withHandle: !0, className: "border" }),
2651
2651
  /* @__PURE__ */ n(
2652
2652
  ke,
2653
2653
  {
@@ -2760,7 +2760,7 @@ function $l() {
2760
2760
  size: "sm",
2761
2761
  variant: "secondary",
2762
2762
  children: [
2763
- /* @__PURE__ */ e(pt, { className: "mr-2 size-4" }),
2763
+ /* @__PURE__ */ e(ft, { className: "mr-2 size-4" }),
2764
2764
  "Close"
2765
2765
  ]
2766
2766
  }
@@ -2818,7 +2818,7 @@ function Ul({ data: t }) {
2818
2818
  }
2819
2819
  });
2820
2820
  return /* @__PURE__ */ e("div", { className: "font-mono text-xs text-foreground/95", children: /* @__PURE__ */ n("table", { className: "w-full", children: [
2821
- /* @__PURE__ */ e(Hn, { children: i.getHeaderGroups().map((c) => /* @__PURE__ */ e(wt, { children: c.headers.map((d) => /* @__PURE__ */ e(
2821
+ /* @__PURE__ */ e(Hn, { children: i.getHeaderGroups().map((c) => /* @__PURE__ */ e(kt, { children: c.headers.map((d) => /* @__PURE__ */ e(
2822
2822
  Pn,
2823
2823
  {
2824
2824
  className: "sticky top-0 h-11 bg-muted font-semibold",
@@ -2830,14 +2830,14 @@ function Ul({ data: t }) {
2830
2830
  d.id
2831
2831
  )) }, c.id)) }),
2832
2832
  /* @__PURE__ */ e($n, { children: (o = i.getRowModel().rows) != null && o.length ? i.getRowModel().rows.map((c) => /* @__PURE__ */ e(
2833
- wt,
2833
+ kt,
2834
2834
  {
2835
2835
  className: "whitespace-nowrap py-2",
2836
2836
  "data-state": c.getIsSelected() && "selected",
2837
2837
  children: c.getVisibleCells().map((d) => /* @__PURE__ */ e(ta, { className: "py-3", children: ea(d.column.columnDef.cell, d.getContext()) }, d.id))
2838
2838
  },
2839
2839
  c.id
2840
- )) : /* @__PURE__ */ e(wt, { children: /* @__PURE__ */ e(ta, { colSpan: r.length, className: "h-24 text-center", children: "No results." }) }) })
2840
+ )) : /* @__PURE__ */ e(kt, { children: /* @__PURE__ */ e(ta, { colSpan: r.length, className: "h-24 text-center", children: "No results." }) }) })
2841
2841
  ] }) });
2842
2842
  }
2843
2843
  function Bl({ card: t }) {
@@ -2933,7 +2933,7 @@ function Xa({
2933
2933
  var I;
2934
2934
  const a = p((N) => N.card), l = ((I = a.customCardPreferences) == null ? void 0 : I.showCardHeader) ?? !0, r = p((N) => N.frame), i = D((N) => N.dashboard.filters);
2935
2935
  p((N) => N.actions.setRunSql);
2936
- const { updateFilter: o } = Ze(), c = i == null ? void 0 : i.find((N) => N.id === r.filterId), { data: d, isLoading: u, isFetching: f } = Ee(a), { setCard: x } = ce(), { data: v } = jt(a);
2936
+ const { updateFilter: o } = Ze(), c = i == null ? void 0 : i.find((N) => N.id === r.filterId), { data: d, isLoading: u, isFetching: f } = Ee(a), { setCard: x } = ce(), { data: v } = Rt(a);
2937
2937
  if (!a.id) return null;
2938
2938
  let h;
2939
2939
  d != null && d.records && (d == null ? void 0 : d.records.length) > 0 && (h = Oa({
@@ -3017,7 +3017,7 @@ function Xa({
3017
3017
  );
3018
3018
  }
3019
3019
  const ia = ({ language: t, value: s, onChange: a }) => /* @__PURE__ */ e(
3020
- ft,
3020
+ gt,
3021
3021
  {
3022
3022
  className: "h-full w-full overflow-hidden text-xs",
3023
3023
  theme: "default",
@@ -3036,8 +3036,8 @@ const ia = ({ language: t, value: s, onChange: a }) => /* @__PURE__ */ e(
3036
3036
  value: s,
3037
3037
  onChange: a
3038
3038
  }
3039
- ), Gl = () => /* @__PURE__ */ n(Lt, { children: [
3040
- /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ e(Et, { children: "Customize Card" }) }),
3039
+ ), Gl = () => /* @__PURE__ */ n(Et, { children: [
3040
+ /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ e(At, { children: "Customize Card" }) }),
3041
3041
  /* @__PURE__ */ n(da, { children: [
3042
3042
  "See the configuration options and documentation",
3043
3043
  /* @__PURE__ */ e(
@@ -3120,7 +3120,7 @@ const ia = ({ language: t, value: s, onChange: a }) => /* @__PURE__ */ e(
3120
3120
  /* @__PURE__ */ e(F, { onClick: r, variant: "outline", children: "Close" })
3121
3121
  ] });
3122
3122
  function Kl() {
3123
- const [t, s] = H(!1), [a, l] = H(""), [r, i] = H(""), [o, c] = H(""), [d, u] = H(""), f = p((k) => k.card), x = p((k) => k.card.customCfg), { data: v } = Ee(f), { data: h } = jt(f), { setCardCustomCfg: g, setCustomVisualCode: b } = ce(), I = (k) => {
3123
+ const [t, s] = H(!1), [a, l] = H(""), [r, i] = H(""), [o, c] = H(""), [d, u] = H(""), f = p((k) => k.card), x = p((k) => k.card.customCfg), { data: v } = Ee(f), { data: h } = Rt(f), { setCardCustomCfg: g, setCustomVisualCode: b } = ce(), I = (k) => {
3124
3124
  var z, O;
3125
3125
  return JSON.stringify(
3126
3126
  {
@@ -3137,8 +3137,8 @@ function Kl() {
3137
3137
  2
3138
3138
  );
3139
3139
  };
3140
- return /* @__PURE__ */ n(Mt, { open: t, onOpenChange: s, children: [
3141
- /* @__PURE__ */ e(zt, { asChild: !0, children: /* @__PURE__ */ e(
3140
+ return /* @__PURE__ */ n(zt, { open: t, onOpenChange: s, children: [
3141
+ /* @__PURE__ */ e(Ft, { asChild: !0, children: /* @__PURE__ */ e(
3142
3142
  F,
3143
3143
  {
3144
3144
  onClick: () => {
@@ -3163,10 +3163,10 @@ function Kl() {
3163
3163
  children: /* @__PURE__ */ e(ns, { className: "h-4 w-4" })
3164
3164
  }
3165
3165
  ) }),
3166
- /* @__PURE__ */ n(Ft, { className: "max-h-[70vh] min-h-[70vh] overflow-auto sm:min-w-[900px] lg:min-w-[1200px]", children: [
3166
+ /* @__PURE__ */ n(Lt, { className: "max-h-[70vh] min-h-[70vh] overflow-auto sm:min-w-[900px] lg:min-w-[1200px]", children: [
3167
3167
  /* @__PURE__ */ e(Gl, {}),
3168
3168
  /* @__PURE__ */ n("div", { className: "flex grow gap-2", children: [
3169
- /* @__PURE__ */ e(gt, { FallbackComponent: Da, children: /* @__PURE__ */ e(Xa, { className: "w-1/2 rounded shadow-none" }) }),
3169
+ /* @__PURE__ */ e(bt, { FallbackComponent: Da, children: /* @__PURE__ */ e(Xa, { className: "w-1/2 rounded shadow-none" }) }),
3170
3170
  /* @__PURE__ */ e(
3171
3171
  Jl,
3172
3172
  {
@@ -3285,8 +3285,8 @@ function Yl() {
3285
3285
  icon: h.icon
3286
3286
  }), s(!1);
3287
3287
  }
3288
- return /* @__PURE__ */ n(bt, { open: t, onOpenChange: s, children: [
3289
- /* @__PURE__ */ e(yt, { asChild: !0, children: /* @__PURE__ */ e(F, { size: "sm", variant: "outline", children: /* @__PURE__ */ e(
3288
+ return /* @__PURE__ */ n(yt, { open: t, onOpenChange: s, children: [
3289
+ /* @__PURE__ */ e(xt, { asChild: !0, children: /* @__PURE__ */ e(F, { size: "sm", variant: "outline", children: /* @__PURE__ */ e(
3290
3290
  er,
3291
3291
  {
3292
3292
  className: "h-4 w-4",
@@ -3295,7 +3295,7 @@ function Yl() {
3295
3295
  componentName: (x = a.customCardPreferences) == null ? void 0 : x.componentName
3296
3296
  }
3297
3297
  ) }) }),
3298
- /* @__PURE__ */ n(xt, { className: "w-50", children: [
3298
+ /* @__PURE__ */ n(vt, { className: "w-50", children: [
3299
3299
  /* @__PURE__ */ n("div", { className: "grid grid-cols-4 place-items-center", children: [
3300
3300
  /* @__PURE__ */ e(
3301
3301
  F,
@@ -3303,7 +3303,7 @@ function Yl() {
3303
3303
  onClick: () => u("bar"),
3304
3304
  className: "font-normal",
3305
3305
  variant: "ghost",
3306
- children: /* @__PURE__ */ e(Ht, { className: "size-5" })
3306
+ children: /* @__PURE__ */ e(Pt, { className: "size-5" })
3307
3307
  }
3308
3308
  ),
3309
3309
  /* @__PURE__ */ e(
@@ -3311,7 +3311,7 @@ function Yl() {
3311
3311
  {
3312
3312
  onClick: () => u("line"),
3313
3313
  variant: "ghost",
3314
- children: /* @__PURE__ */ e(Pt, { className: "size-5" })
3314
+ children: /* @__PURE__ */ e($t, { className: "size-5" })
3315
3315
  }
3316
3316
  ),
3317
3317
  /* @__PURE__ */ e(
@@ -3399,7 +3399,7 @@ function Yl() {
3399
3399
  {
3400
3400
  onClick: () => u("table"),
3401
3401
  variant: "ghost",
3402
- children: /* @__PURE__ */ e(Ut, { className: "size-5" })
3402
+ children: /* @__PURE__ */ e(Bt, { className: "size-5" })
3403
3403
  }
3404
3404
  ),
3405
3405
  /* @__PURE__ */ e(
@@ -3448,9 +3448,9 @@ function er({
3448
3448
  const r = nn();
3449
3449
  switch (t) {
3450
3450
  case "bar":
3451
- return /* @__PURE__ */ e(Ht, { className: s });
3452
- case "line":
3453
3451
  return /* @__PURE__ */ e(Pt, { className: s });
3452
+ case "line":
3453
+ return /* @__PURE__ */ e($t, { className: s });
3454
3454
  case "pie":
3455
3455
  return /* @__PURE__ */ e(ja, { className: s });
3456
3456
  case "radar":
@@ -3480,7 +3480,7 @@ function er({
3480
3480
  case "custom":
3481
3481
  return a && r ? /* @__PURE__ */ e(r, { className: s }) : l ? l == null ? void 0 : l.charAt(0).toUpperCase() : /* @__PURE__ */ e($a, { className: s });
3482
3482
  default:
3483
- return /* @__PURE__ */ e(Ut, { className: s });
3483
+ return /* @__PURE__ */ e(Bt, { className: s });
3484
3484
  }
3485
3485
  }
3486
3486
  function tr() {
@@ -3488,9 +3488,9 @@ function tr() {
3488
3488
  const t = p((l) => l.card);
3489
3489
  (a = t.customCardPreferences) == null || a.showCardHeader;
3490
3490
  const { setCustomCardPreferences: s } = ce();
3491
- return /* @__PURE__ */ n(At, { children: [
3492
- /* @__PURE__ */ e(Vt, { asChild: !0, children: /* @__PURE__ */ e($t, { className: "size-4 cursor-pointer text-muted-foreground/70 transition-colors hover:text-muted-foreground" }) }),
3493
- /* @__PURE__ */ e(qt, { align: "start", className: "w-40 text-muted-foreground", children: /* @__PURE__ */ n(
3491
+ return /* @__PURE__ */ n(Vt, { children: [
3492
+ /* @__PURE__ */ e(qt, { asChild: !0, children: /* @__PURE__ */ e(Ut, { className: "size-4 cursor-pointer text-muted-foreground/70 transition-colors hover:text-muted-foreground" }) }),
3493
+ /* @__PURE__ */ e(jt, { align: "start", className: "w-40 text-muted-foreground", children: /* @__PURE__ */ n(
3494
3494
  cs,
3495
3495
  {
3496
3496
  onClick: () => {
@@ -3658,7 +3658,7 @@ function oa() {
3658
3658
  card: s,
3659
3659
  data: u == null ? void 0 : u.records
3660
3660
  }
3661
- ) }) }) }) : /* @__PURE__ */ e(gt, { FallbackComponent: Da, children: /* @__PURE__ */ e(Xa, { className: "grow border-none shadow-none" }) });
3661
+ ) }) }) }) : /* @__PURE__ */ e(bt, { FallbackComponent: Da, children: /* @__PURE__ */ e(Xa, { className: "grow border-none shadow-none" }) });
3662
3662
  }
3663
3663
  function R() {
3664
3664
  const y = JSON.stringify(u == null ? void 0 : u.records, null, 2), M = new Blob([y], { type: "application/json" }), S = URL.createObjectURL(M), V = document.createElement("a");
@@ -3714,7 +3714,7 @@ function oa() {
3714
3714
  /* @__PURE__ */ e(nr, {})
3715
3715
  ] }),
3716
3716
  a ? A() : /* @__PURE__ */ n(
3717
- ct,
3717
+ dt,
3718
3718
  {
3719
3719
  className: "px-6",
3720
3720
  direction: "horizontal",
@@ -3731,7 +3731,7 @@ function oa() {
3731
3731
  children: r && /* @__PURE__ */ e(ar, {})
3732
3732
  }
3733
3733
  ),
3734
- /* @__PURE__ */ e(dt, {})
3734
+ /* @__PURE__ */ e(ut, {})
3735
3735
  ] }),
3736
3736
  /* @__PURE__ */ e(
3737
3737
  ke,
@@ -3787,7 +3787,7 @@ function sr({
3787
3787
  onValueChange: a
3788
3788
  }) {
3789
3789
  return /* @__PURE__ */ e(
3790
- vt,
3790
+ Nt,
3791
3791
  {
3792
3792
  value: s,
3793
3793
  onValueChange: a,
@@ -4100,7 +4100,7 @@ function qe() {
4100
4100
  children: /* @__PURE__ */ n("div", { className: "grow", children: [
4101
4101
  /* @__PURE__ */ n("div", { className: "flex items-center space-x-2 py-2", children: [
4102
4102
  /* @__PURE__ */ e(
4103
- Rt,
4103
+ _t,
4104
4104
  {
4105
4105
  checked: !!((v = a == null ? void 0 : a.onClickFilter) != null && v.find(
4106
4106
  (g) => g.columnIndex === x
@@ -4138,7 +4138,7 @@ function qe() {
4138
4138
  })
4139
4139
  ] });
4140
4140
  }
4141
- function Nt() {
4141
+ function Ct() {
4142
4142
  var o, c, d;
4143
4143
  const t = p((u) => u.card.preferences), s = p(
4144
4144
  (u) => u.card.cfg
@@ -4148,7 +4148,7 @@ function Nt() {
4148
4148
  r(u);
4149
4149
  }
4150
4150
  return /* @__PURE__ */ n(
4151
- vt,
4151
+ Nt,
4152
4152
  {
4153
4153
  value: ((c = t == null ? void 0 : t.chartOptions) == null ? void 0 : c.indexAxis) || ((d = s == null ? void 0 : s.options) == null ? void 0 : d.indexAxis) || "x",
4154
4154
  onValueChange: i,
@@ -4206,7 +4206,7 @@ function ln() {
4206
4206
  }
4207
4207
  function S() {
4208
4208
  const q = [
4209
- ...new Set(ut.map((L) => L.currency))
4209
+ ...new Set(ht.map((L) => L.currency))
4210
4210
  ];
4211
4211
  return /* @__PURE__ */ n(ne, { children: [
4212
4212
  /* @__PURE__ */ n("div", { className: "grid grid-cols-6 items-center gap-2", children: [
@@ -4250,7 +4250,7 @@ function ln() {
4250
4250
  ),
4251
4251
  /* @__PURE__ */ e(Ce, { children: /* @__PURE__ */ n(Ie, { children: [
4252
4252
  /* @__PURE__ */ e(Se, { children: "Locale" }),
4253
- ut.map((L) => /* @__PURE__ */ e(ae, { value: L.locale, children: L.locale }, L.locale))
4253
+ ht.map((L) => /* @__PURE__ */ e(ae, { value: L.locale, children: L.locale }, L.locale))
4254
4254
  ] }) })
4255
4255
  ] })
4256
4256
  ] }),
@@ -4342,9 +4342,9 @@ function ln() {
4342
4342
  };
4343
4343
  R(de);
4344
4344
  }
4345
- return /* @__PURE__ */ n(bt, { onOpenChange: (q) => s(q), children: [
4346
- /* @__PURE__ */ e(yt, { asChild: !0, children: /* @__PURE__ */ e(bs, { className: "size-4 cursor-pointer text-muted-foreground hover:text-foreground" }) }),
4347
- /* @__PURE__ */ e(xt, { align: "center", className: "max-w-65", children: /* @__PURE__ */ n("div", { className: "grid gap-4", children: [
4345
+ return /* @__PURE__ */ n(yt, { onOpenChange: (q) => s(q), children: [
4346
+ /* @__PURE__ */ e(xt, { asChild: !0, children: /* @__PURE__ */ e(bs, { className: "size-4 cursor-pointer text-muted-foreground hover:text-foreground" }) }),
4347
+ /* @__PURE__ */ e(vt, { align: "center", className: "max-w-65", children: /* @__PURE__ */ n("div", { className: "grid gap-4", children: [
4348
4348
  /* @__PURE__ */ n("div", { className: "space-y-2", children: [
4349
4349
  /* @__PURE__ */ e("h4", { className: "font-medium leading-none", children: "Scale Options" }),
4350
4350
  /* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: "Set the scale for the number axis" })
@@ -4372,7 +4372,7 @@ function ln() {
4372
4372
  i == "linear" && /* @__PURE__ */ n("div", { className: "grid grid-cols-3 items-center gap-2 py-1", children: [
4373
4373
  /* @__PURE__ */ e(U, { htmlFor: "scale-option", children: "Setup" }),
4374
4374
  /* @__PURE__ */ n(
4375
- vt,
4375
+ Nt,
4376
4376
  {
4377
4377
  disabled: y,
4378
4378
  id: "scale-option",
@@ -4453,9 +4453,9 @@ function rr({ idx: t }) {
4453
4453
  });
4454
4454
  }
4455
4455
  }
4456
- return /* @__PURE__ */ n(bt, { children: [
4457
- /* @__PURE__ */ e(yt, { children: /* @__PURE__ */ e(ml, { className: "invisible size-4 rotate-[135deg] cursor-pointer text-muted-foreground hover:text-foreground group-hover:visible" }) }),
4458
- /* @__PURE__ */ e(xt, { className: "w-fit p-1", children: /* @__PURE__ */ n("div", { className: "flex gap-1", children: [
4456
+ return /* @__PURE__ */ n(yt, { children: [
4457
+ /* @__PURE__ */ e(xt, { children: /* @__PURE__ */ e(ml, { className: "invisible size-4 rotate-[135deg] cursor-pointer text-muted-foreground hover:text-foreground group-hover:visible" }) }),
4458
+ /* @__PURE__ */ e(vt, { className: "w-fit p-1", children: /* @__PURE__ */ n("div", { className: "flex gap-1", children: [
4459
4459
  /* @__PURE__ */ e(
4460
4460
  F,
4461
4461
  {
@@ -4530,7 +4530,7 @@ function rn() {
4530
4530
  keys: i,
4531
4531
  metricKeys: o,
4532
4532
  dimensionKeys: c
4533
- } = It((a == null ? void 0 : a.records) || []);
4533
+ } = Ot((a == null ? void 0 : a.records) || []);
4534
4534
  let d = o;
4535
4535
  if (["stackedBar", "stackedLine"].includes(t.type)) {
4536
4536
  const u = Ns({
@@ -4538,7 +4538,7 @@ function rn() {
4538
4538
  groupKey: c[0],
4539
4539
  pivotKey: c[1],
4540
4540
  valueKey: d[0]
4541
- }), { metricKeys: f } = It(u);
4541
+ }), { metricKeys: f } = Ot(u);
4542
4542
  d = f;
4543
4543
  }
4544
4544
  return i.length === 0 ? null : /* @__PURE__ */ n("div", { className: "space-y-4", children: [
@@ -4597,14 +4597,14 @@ function ir({ col: t, idx: s }) {
4597
4597
  /* @__PURE__ */ e("p", { title: t, children: on(t) }),
4598
4598
  /* @__PURE__ */ n("div", { className: "flex gap-2", children: [
4599
4599
  /* @__PURE__ */ e(
4600
- Ht,
4600
+ Pt,
4601
4601
  {
4602
4602
  onClick: () => o("bar"),
4603
4603
  className: "invisible size-4 cursor-pointer text-muted-foreground hover:text-foreground group-hover:visible"
4604
4604
  }
4605
4605
  ),
4606
4606
  /* @__PURE__ */ e(
4607
- Pt,
4607
+ $t,
4608
4608
  {
4609
4609
  onClick: () => o("line"),
4610
4610
  className: "invisible size-4 cursor-pointer text-muted-foreground hover:text-foreground group-hover:visible"
@@ -4704,8 +4704,8 @@ function or({
4704
4704
  }) {
4705
4705
  var o;
4706
4706
  const [a, l] = sa.useState(!1), [r, i] = sa.useState("");
4707
- return /* @__PURE__ */ n(bt, { open: a, onOpenChange: l, children: [
4708
- /* @__PURE__ */ e(yt, { asChild: !0, children: /* @__PURE__ */ n(
4707
+ return /* @__PURE__ */ n(yt, { open: a, onOpenChange: l, children: [
4708
+ /* @__PURE__ */ e(xt, { asChild: !0, children: /* @__PURE__ */ n(
4709
4709
  F,
4710
4710
  {
4711
4711
  size: "sm",
@@ -4719,7 +4719,7 @@ function or({
4719
4719
  ]
4720
4720
  }
4721
4721
  ) }),
4722
- /* @__PURE__ */ e(xt, { className: "w-[200px] p-0", children: /* @__PURE__ */ n(ws, { children: [
4722
+ /* @__PURE__ */ e(vt, { className: "w-[200px] p-0", children: /* @__PURE__ */ n(ws, { children: [
4723
4723
  /* @__PURE__ */ e(ks, { placeholder: "Search column", className: "h-9" }),
4724
4724
  /* @__PURE__ */ n(Is, { children: [
4725
4725
  /* @__PURE__ */ e(Os, { children: "No framework found." }),
@@ -4755,7 +4755,7 @@ function cr({
4755
4755
  }) {
4756
4756
  return /* @__PURE__ */ e("div", { className: "space-y-6 px-6 py-2", children: /* @__PURE__ */ n(Ae, { defaultValue: ["item-2"], type: "multiple", children: [
4757
4757
  /* @__PURE__ */ n(Z, { value: "item-1", children: [
4758
- /* @__PURE__ */ e(X, { children: `${_t(t)} Chart` }),
4758
+ /* @__PURE__ */ e(X, { children: `${Ht(t)} Chart` }),
4759
4759
  /* @__PURE__ */ n(Y, { className: "space-y-4 font-mono text-xs", children: [
4760
4760
  /* @__PURE__ */ e("div", { className: "rounded bg-muted px-2 py-1 text-xs", children: "SELECT x-axis, y-axis-1, y-axis-2,... FROM table" }),
4761
4761
  /* @__PURE__ */ n("ul", { className: "ml-6 list-disc text-xs [&>li]:mt-2", children: [
@@ -4782,7 +4782,7 @@ function cr({
4782
4782
  /* @__PURE__ */ n(Z, { value: "item-2", children: [
4783
4783
  /* @__PURE__ */ e(X, { children: "Settings" }),
4784
4784
  /* @__PURE__ */ n(Y, { className: "space-y-4 px-2", children: [
4785
- /* @__PURE__ */ e(Nt, {}),
4785
+ /* @__PURE__ */ e(Ct, {}),
4786
4786
  /* @__PURE__ */ e(rn, {})
4787
4787
  ] })
4788
4788
  ] }),
@@ -4795,7 +4795,7 @@ function cr({
4795
4795
  ] })
4796
4796
  ] }) });
4797
4797
  }
4798
- function Bt() {
4798
+ function Gt() {
4799
4799
  var r, i, o;
4800
4800
  const t = p(
4801
4801
  (c) => c.card.cfg
@@ -4877,12 +4877,12 @@ function dr({
4877
4877
  }
4878
4878
  return /* @__PURE__ */ e("div", { className: "space-y-6 px-6 py-2", children: /* @__PURE__ */ n(Ae, { defaultValue: ["item-2"], type: "multiple", children: [
4879
4879
  /* @__PURE__ */ n(Z, { value: "item-1", children: [
4880
- /* @__PURE__ */ e(X, { children: `${_t(t)} Chart` }),
4880
+ /* @__PURE__ */ e(X, { children: `${Ht(t)} Chart` }),
4881
4881
  /* @__PURE__ */ e(Y, { className: "space-y-4 font-mono text-xs", children: s(t) })
4882
4882
  ] }),
4883
4883
  /* @__PURE__ */ n(Z, { value: "item-2", children: [
4884
4884
  /* @__PURE__ */ e(X, { children: "Settings" }),
4885
- /* @__PURE__ */ e(Y, { className: "px-2", children: /* @__PURE__ */ e(Bt, {}) })
4885
+ /* @__PURE__ */ e(Y, { className: "px-2", children: /* @__PURE__ */ e(Gt, {}) })
4886
4886
  ] }),
4887
4887
  /* @__PURE__ */ n(Z, { value: "item-3", children: [
4888
4888
  /* @__PURE__ */ e(X, { children: "Filters" }),
@@ -4928,9 +4928,9 @@ function mr() {
4928
4928
  children: pr(t)
4929
4929
  }
4930
4930
  ),
4931
- /* @__PURE__ */ e("section", { className: "", children: ["line", "bar"].includes(t) && /* @__PURE__ */ e(Nt, {}) }),
4931
+ /* @__PURE__ */ e("section", { className: "", children: ["line", "bar"].includes(t) && /* @__PURE__ */ e(Ct, {}) }),
4932
4932
  !["kpi"].includes(t) && /* @__PURE__ */ n("div", { className: "space-y-4", children: [
4933
- /* @__PURE__ */ e(Bt, {}),
4933
+ /* @__PURE__ */ e(Gt, {}),
4934
4934
  /* @__PURE__ */ e(qe, {}),
4935
4935
  /* @__PURE__ */ e(Pe, {})
4936
4936
  ] })
@@ -5067,11 +5067,11 @@ function fr() {
5067
5067
  }
5068
5068
  ) || [], o = p(
5069
5069
  (h) => h.actions.setColorRanges
5070
- ), c = [...new Set(ut.map((h) => h.currency))];
5070
+ ), c = [...new Set(ht.map((h) => h.currency))];
5071
5071
  return /* @__PURE__ */ n("div", { children: [
5072
5072
  /* @__PURE__ */ n("div", { className: "mb-3 flex items-center gap-2", children: [
5073
5073
  /* @__PURE__ */ e(
5074
- Rt,
5074
+ _t,
5075
5075
  {
5076
5076
  checked: !!((d = t == null ? void 0 : t.formatNumber) != null && d.enabled),
5077
5077
  onCheckedChange: (h) => {
@@ -5110,7 +5110,7 @@ function fr() {
5110
5110
  /* @__PURE__ */ e(Ce, { children: /* @__PURE__ */ n(Ie, { children: [
5111
5111
  /* @__PURE__ */ e(Se, { children: "Format" }),
5112
5112
  /* @__PURE__ */ e(ae, { value: "none", children: "None" }, "none"),
5113
- ut.map((h) => /* @__PURE__ */ e(ae, { value: h.locale, children: h.locale }, h.locale))
5113
+ ht.map((h) => /* @__PURE__ */ e(ae, { value: h.locale, children: h.locale }, h.locale))
5114
5114
  ] }) })
5115
5115
  ]
5116
5116
  }
@@ -5334,7 +5334,7 @@ function vr() {
5334
5334
  var d, u, f, x, v, h, g, b, I, N, E, k, z, O, A, P, R, $;
5335
5335
  const t = p((m) => m.card), s = (u = (d = t == null ? void 0 : t.preferences) == null ? void 0 : d.mapVisualOptions) == null ? void 0 : u.topoJsonUrl, [a, l] = H(
5336
5336
  ((x = (f = t == null ? void 0 : t.preferences) == null ? void 0 : f.mapVisualOptions) == null ? void 0 : x.customTopoJsonUrl) || ""
5337
- ), { setCardPreferences: r } = ce(), { data: i } = jt(t), o = Object.keys((i == null ? void 0 : i.objects) || {}).map((m) => ({
5337
+ ), { setCardPreferences: r } = ce(), { data: i } = Rt(t), o = Object.keys((i == null ? void 0 : i.objects) || {}).map((m) => ({
5338
5338
  label: m,
5339
5339
  value: m
5340
5340
  })) || [];
@@ -5548,7 +5548,7 @@ function Nr() {
5548
5548
  });
5549
5549
  }
5550
5550
  return /* @__PURE__ */ n(
5551
- vt,
5551
+ Nt,
5552
5552
  {
5553
5553
  value: (l = t == null ? void 0 : t.textVisualOptions) != null && l.isDynamicText ? "dynamic" : "static",
5554
5554
  onValueChange: a,
@@ -5574,7 +5574,7 @@ function lt({
5574
5574
  }) {
5575
5575
  return /* @__PURE__ */ e("div", { className: "space-y-6 px-6 py-2", children: /* @__PURE__ */ n(Ae, { defaultValue: ["item-2"], type: "multiple", children: [
5576
5576
  /* @__PURE__ */ n(Z, { value: "item-1", children: [
5577
- /* @__PURE__ */ e(X, { children: `${_t(t)} ${a}` }),
5577
+ /* @__PURE__ */ e(X, { children: `${Ht(t)} ${a}` }),
5578
5578
  /* @__PURE__ */ e(Y, { children: s || /* @__PURE__ */ n("div", { className: "space-y-4 font-mono text-xs", children: [
5579
5579
  /* @__PURE__ */ e("div", { className: "rounded bg-muted px-2 py-1 text-xs", children: "SELECT label, measure FROM table" }),
5580
5580
  /* @__PURE__ */ n("ul", { className: "ml-6 list-disc text-xs [&>li]:mt-2", children: [
@@ -5600,8 +5600,8 @@ function lt({
5600
5600
  /* @__PURE__ */ n(Z, { value: "item-2", children: [
5601
5601
  /* @__PURE__ */ e(X, { children: "Settings" }),
5602
5602
  /* @__PURE__ */ n(Y, { className: "space-y-4 px-2", children: [
5603
- t === "range" && /* @__PURE__ */ e(Nt, {}),
5604
- t !== "text" && /* @__PURE__ */ e(Bt, {}),
5603
+ t === "range" && /* @__PURE__ */ e(Ct, {}),
5604
+ t !== "text" && /* @__PURE__ */ e(Gt, {}),
5605
5605
  t === "text" && /* @__PURE__ */ e(Nr, {})
5606
5606
  ] })
5607
5607
  ] }),
@@ -5680,7 +5680,7 @@ function Cr() {
5680
5680
  /* @__PURE__ */ n(Z, { value: "item-2", children: [
5681
5681
  /* @__PURE__ */ e(X, { children: "Settings" }),
5682
5682
  /* @__PURE__ */ n(Y, { className: "space-y-4 px-2", children: [
5683
- /* @__PURE__ */ e(Nt, {}),
5683
+ /* @__PURE__ */ e(Ct, {}),
5684
5684
  a(),
5685
5685
  /* @__PURE__ */ e(rn, {})
5686
5686
  ] })
@@ -5710,7 +5710,7 @@ function Sr({}) {
5710
5710
  ] })
5711
5711
  ] }) }),
5712
5712
  /* @__PURE__ */ n("div", { className: "flex items-center space-x-2", children: [
5713
- /* @__PURE__ */ e(Rt, { onCheckedChange: (l) => {
5713
+ /* @__PURE__ */ e(_t, { onCheckedChange: (l) => {
5714
5714
  s({
5715
5715
  ...t,
5716
5716
  allowDownload: l
@@ -5827,7 +5827,7 @@ function Or() {
5827
5827
  function Tr() {
5828
5828
  const t = p((s) => s.isShowingVisual);
5829
5829
  return /* @__PURE__ */ n(
5830
- ct,
5830
+ dt,
5831
5831
  {
5832
5832
  direction: "vertical",
5833
5833
  className: "min-h-[250px] min-w-full max-w-lg",
@@ -5842,7 +5842,7 @@ function Tr() {
5842
5842
  children: /* @__PURE__ */ e($l, {})
5843
5843
  }
5844
5844
  ),
5845
- /* @__PURE__ */ e(dt, { withHandle: !0, className: "border" }),
5845
+ /* @__PURE__ */ e(ut, { withHandle: !0, className: "border" }),
5846
5846
  /* @__PURE__ */ e(
5847
5847
  ke,
5848
5848
  {
@@ -5850,7 +5850,7 @@ function Tr() {
5850
5850
  role: "visual-section",
5851
5851
  minSize: 0,
5852
5852
  defaultSize: 60,
5853
- children: t ? /* @__PURE__ */ n(ct, { direction: "horizontal", children: [
5853
+ children: t ? /* @__PURE__ */ n(dt, { direction: "horizontal", children: [
5854
5854
  /* @__PURE__ */ e(ne, { children: /* @__PURE__ */ e(
5855
5855
  ke,
5856
5856
  {
@@ -5861,7 +5861,7 @@ function Tr() {
5861
5861
  children: /* @__PURE__ */ e(Or, {})
5862
5862
  }
5863
5863
  ) }),
5864
- /* @__PURE__ */ e(dt, { className: "border" }),
5864
+ /* @__PURE__ */ e(ut, { className: "border" }),
5865
5865
  /* @__PURE__ */ e(ke, { minSize: 40, defaultSize: 75, maxSize: 100, children: /* @__PURE__ */ e(oa, {}) })
5866
5866
  ] }) : /* @__PURE__ */ e(oa, {})
5867
5867
  }
@@ -5877,7 +5877,7 @@ function Dr({ authToken: t, onSave: s, onClose: a }) {
5877
5877
  s && l(s), a && r(a);
5878
5878
  }, [s, l, a, r]), oe(() => {
5879
5879
  t && t.accessToken && i(t);
5880
- }, [t, i]), /* @__PURE__ */ e(gt, { FallbackComponent: Ea, children: /* @__PURE__ */ n(
5880
+ }, [t, i]), /* @__PURE__ */ e(bt, { FallbackComponent: Ea, children: /* @__PURE__ */ n(
5881
5881
  Fs,
5882
5882
  {
5883
5883
  style: {
@@ -5952,7 +5952,7 @@ function Fr() {
5952
5952
  onClick: () => t(!1),
5953
5953
  className: "h-7 w-7 p-0",
5954
5954
  variant: "ghost",
5955
- children: /* @__PURE__ */ e(pt, {})
5955
+ children: /* @__PURE__ */ e(ft, {})
5956
5956
  }
5957
5957
  )
5958
5958
  ] }),
@@ -6081,7 +6081,7 @@ function _r({
6081
6081
  showFooter: s = !0,
6082
6082
  ...a
6083
6083
  }) {
6084
- return /* @__PURE__ */ e(gt, { FallbackComponent: Ea, children: /* @__PURE__ */ n(qs, { dashboardProps: a, children: [
6084
+ return /* @__PURE__ */ e(bt, { FallbackComponent: Ea, children: /* @__PURE__ */ n(qs, { dashboardProps: a, children: [
6085
6085
  /* @__PURE__ */ e(js, {}),
6086
6086
  /* @__PURE__ */ n(Rs, { children: [
6087
6087
  /* @__PURE__ */ e(Ar, {}),
@@ -6107,7 +6107,7 @@ export {
6107
6107
  Jr as getColumnDataType,
6108
6108
  Ga as getDashbaordStateWithoutData,
6109
6109
  Wr as getFilterValueType,
6110
- kt as getFormattedTableNameForQuery,
6110
+ It as getFormattedTableNameForQuery,
6111
6111
  Cs as getQualifiedTableName,
6112
6112
  Ca as getSql,
6113
6113
  mn as invalidateToken,
@@ -6117,7 +6117,7 @@ export {
6117
6117
  Sa as isNumberDataType,
6118
6118
  gn as isTextDataType,
6119
6119
  Kr as resolveDataType,
6120
- Xt as resolveDatamodelName,
6120
+ ct as resolveDatamodelName,
6121
6121
  Qr as useCard,
6122
6122
  Ze as useDashboardActions,
6123
6123
  D as useDashboardStore,