semaphor 0.0.50 → 0.0.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { P as E, b as k, j as e, Q as xs, R as ps, U as w, V as Ks, W as fs, X as gs, Y as js, Z as bs, _ as B, $ as ae, a0 as Us, J as Gs, O as Ee, a1 as qa, a2 as Va, a3 as Ra, a4 as _a, a5 as Ha, a6 as Ba, a7 as As, a8 as _e, a9 as Pe, aa as We, T as ys, e as Js, g as vs, ab as Oe, ac as Me, f as Y, ad as Te, ae as Ae, af as He, ag as Le, ah as X, ai as Ns, G as i, aj as Ke, ak as Ue, al as $a, am as Ge, w as Qs, v as Ws, t as he, an as Pa, r as Ka, N as Ys, s as Ua, ao as Ga, B as Ja, ap as Xs, aq as Qa, L as Be, S as Cs, z as Wa, n as Es, ar as cs, A as ds, u as es, as as Ce, at as ze, au as Zs, av as ea, aw as sa, ax as aa, ay as ta, az as Ya, aA as Xa, aB as na, aC as Za, aD as et, aE as st, aF as at, aG as tt, aH as hs, aI as nt, aJ as Re, aK as ms, aL as Fe, aM as us, aN as Ls, aO as rt, aP as lt, aQ as it, aR as ot, aS as ct, aT as rs, aU as dt, aV as Ds, aW as ht, aX as Is, aY as mt, aZ as ut, a_ as xt, a$ as ra, l as pt, C as ft, E as qs, d as gt, h as jt, i as bt, o as yt, b0 as vt, m as Nt, H as Ct, b1 as St, b2 as kt, b3 as wt, b4 as ls, b5 as zt, b6 as is, b7 as Vs, K as Ft, b8 as Ss, b9 as Ot, ba as la, bb as Ye, bc as ia, bd as Mt, be as Tt, bf as At, bg as Et, bh as Lt, bi as Dt, bj as Se, bk as V, bl as R, bm as ks, bn as _, bo as Rs, bp as It, bq as qt, br as Vt, bs as Rt, bt as _s, bu as _t, bv as Ht, bw as Bt, bx as $t, by as Pt, bz as Kt } from "./index-bnMt0Nkv.js";
1
+ import { P as E, b as k, j as e, Q as ps, R as fs, U as w, V as Ks, W as gs, X as js, Y as bs, Z as ys, _ as B, $ as ae, a0 as Us, J as Gs, O as Ee, a1 as qa, a2 as Va, a3 as Ra, a4 as _a, a5 as Ha, a6 as Ba, a7 as As, a8 as _e, a9 as Pe, aa as We, T as vs, e as Js, g as Ns, ab as Oe, ac as Me, f as Y, ad as Te, ae as Ae, af as He, ag as Le, ah as X, ai as Cs, G as i, aj as Ke, ak as Ue, al as $a, am as Ge, w as Qs, v as Ws, t as he, an as Pa, r as Ka, N as Ys, s as Ua, ao as Ga, B as Ja, ap as Xs, aq as Qa, L as Be, S as Ss, z as Wa, n as Es, ar as ds, A as hs, u as es, as as Ce, at as ze, au as Zs, av as ea, aw as sa, ax as aa, ay as ta, az as Ya, aA as Xa, aB as na, aC as Za, aD as et, aE as st, aF as at, aG as tt, aH as ms, aI as nt, aJ as Re, aK as us, aL as Fe, aM as xs, aN as Ls, aO as rt, aP as lt, aQ as it, aR as ot, aS as ct, aT as ls, aU as dt, aV as Ds, aW as ht, aX as Is, aY as mt, aZ as ut, a_ as xt, a$ as ra, l as pt, C as ft, E as qs, d as gt, h as jt, i as bt, o as yt, b0 as vt, m as Nt, H as Ct, b1 as St, b2 as kt, b3 as wt, b4 as is, b5 as zt, b6 as os, b7 as Vs, K as Ft, b8 as ks, b9 as Ot, ba as la, bb as Ye, bc as ia, bd as Mt, be as Tt, bf as At, bg as Et, bh as Lt, bi as Dt, bj as Se, bk as V, bl as R, bm as ws, bn as _, bo as Rs, bp as It, bq as qt, br as Vt, bs as Rt, bt as _s, bu as _t, bv as Ht, bw as Bt, bx as $t, by as Pt, bz as Kt } from "./index-MYxGboTj.js";
2
2
  import me, { useState as T, useEffect as P, useMemo as Ut, useRef as $e } from "react";
3
3
  /**
4
4
  * @license lucide-react v0.379.0 - ISC
@@ -31,7 +31,7 @@ const Jt = E("AreaChart", [
31
31
  * This source code is licensed under the ISC license.
32
32
  * See the LICENSE file in the root directory of this source tree.
33
33
  */
34
- const ws = E("BarChart4", [
34
+ const zs = E("BarChart4", [
35
35
  ["path", { d: "M3 3v18h18", key: "1s2lah" }],
36
36
  ["path", { d: "M13 17V9", key: "1fwyjl" }],
37
37
  ["path", { d: "M18 17V5", key: "sfb6ij" }],
@@ -155,7 +155,7 @@ const sn = E("Key", [
155
155
  * This source code is licensed under the ISC license.
156
156
  * See the LICENSE file in the root directory of this source tree.
157
157
  */
158
- const zs = E("LineChart", [
158
+ const Fs = E("LineChart", [
159
159
  ["path", { d: "M3 3v18h18", key: "1s2lah" }],
160
160
  ["path", { d: "m19 9-5 5-4-4-3 3", key: "2osh9i" }]
161
161
  ]);
@@ -402,8 +402,8 @@ function jn() {
402
402
  template: d
403
403
  }), localStorage.setItem(f, JSON.stringify(m)), c(!1);
404
404
  }
405
- return /* @__PURE__ */ e.jsxs(xs, { open: o, onOpenChange: c, children: [
406
- /* @__PURE__ */ e.jsx(ps, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
405
+ return /* @__PURE__ */ e.jsxs(ps, { open: o, onOpenChange: c, children: [
406
+ /* @__PURE__ */ e.jsx(fs, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
407
407
  w,
408
408
  {
409
409
  variant: "outline",
@@ -415,10 +415,10 @@ function jn() {
415
415
  ]
416
416
  }
417
417
  ) }),
418
- /* @__PURE__ */ e.jsxs(fs, { className: "sm:max-w-[425px]", children: [
419
- /* @__PURE__ */ e.jsxs(gs, { children: [
420
- /* @__PURE__ */ e.jsx(js, { children: "Add a Lens" }),
421
- /* @__PURE__ */ e.jsx(bs, { children: "Lenses are private by default and are only visible to you." })
418
+ /* @__PURE__ */ e.jsxs(gs, { className: "sm:max-w-[425px]", children: [
419
+ /* @__PURE__ */ e.jsxs(js, { children: [
420
+ /* @__PURE__ */ e.jsx(bs, { children: "Add a Lens" }),
421
+ /* @__PURE__ */ e.jsx(ys, { children: "Lenses are private by default and are only visible to you." })
422
422
  ] }),
423
423
  /* @__PURE__ */ e.jsx("div", { className: "grid gap-4 py-4", children: /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-8 items-center gap-4", children: [
424
424
  /* @__PURE__ */ e.jsx(B, { className: "text-right", children: "Name" }),
@@ -713,12 +713,12 @@ function Qe({
713
713
  if (s === "Schema")
714
714
  return /* @__PURE__ */ e.jsx(ln, { className: "size-4" });
715
715
  if (s === "Table")
716
- return /* @__PURE__ */ e.jsx(Ns, { className: "size-4" });
716
+ return /* @__PURE__ */ e.jsx(Cs, { className: "size-4" });
717
717
  }
718
718
  return /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
719
- d && /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: c ? /* @__PURE__ */ e.jsxs(ys, { children: [
719
+ d && /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: c ? /* @__PURE__ */ e.jsxs(vs, { children: [
720
720
  /* @__PURE__ */ e.jsx(Js, { children: u() }),
721
- /* @__PURE__ */ e.jsx(vs, { className: "text-xs", align: "start", children: c })
721
+ /* @__PURE__ */ e.jsx(Ns, { className: "text-xs", align: "start", children: c })
722
722
  ] }) : u() }),
723
723
  /* @__PURE__ */ e.jsxs(Oe, { disabled: f, value: m, onValueChange: r, children: [
724
724
  /* @__PURE__ */ e.jsx(
@@ -812,7 +812,7 @@ function Nn({ column: s }) {
812
812
  ] });
813
813
  }
814
814
  function ua({ column: s }) {
815
- return /* @__PURE__ */ e.jsxs(ys, { children: [
815
+ return /* @__PURE__ */ e.jsxs(vs, { children: [
816
816
  /* @__PURE__ */ e.jsx(Pa, { asChild: !0, children: Ka.includes(s.data_type.toLowerCase()) ? (
817
817
  // <span className=" font-thin">T</span>
818
818
  /* @__PURE__ */ e.jsx(fn, { className: "size-3" })
@@ -820,7 +820,7 @@ function ua({ column: s }) {
820
820
  //
821
821
  /* @__PURE__ */ e.jsx(en, { className: "size-3" })
822
822
  ) : Ua.includes(s.data_type.toLowerCase()) ? /* @__PURE__ */ e.jsx(Ga, { className: "size-3" }) : Ja.includes(s.data_type.toLowerCase()) ? /* @__PURE__ */ e.jsx(pn, { className: "size-3" }) : /* @__PURE__ */ e.jsx(hn, { className: "size-3" }) }),
823
- /* @__PURE__ */ e.jsx(vs, { children: /* @__PURE__ */ e.jsx("p", { className: "font-mono text-xs", children: s.data_type }) })
823
+ /* @__PURE__ */ e.jsx(Ns, { children: /* @__PURE__ */ e.jsx("p", { className: "font-mono text-xs", children: s.data_type }) })
824
824
  ] });
825
825
  }
826
826
  function Cn({
@@ -864,7 +864,7 @@ function Cn({
864
864
  (D) => D.connectinonId === K.connectinonId && D.tableName === K.tableName
865
865
  ) === $
866
866
  );
867
- m(q), cs.success(`Added '${d}' to AI Scope`, {
867
+ m(q), ds.success(`Added '${d}' to AI Scope`, {
868
868
  position: "top-right",
869
869
  duration: 2500,
870
870
  richColors: !0
@@ -873,7 +873,7 @@ function Cn({
873
873
  const F = (f || []).filter(
874
874
  (A) => A.connectinonId !== c && A.tableName !== d
875
875
  );
876
- m(F), cs(`Removed '${d}' from AI Scope`, {
876
+ m(F), ds(`Removed '${d}' from AI Scope`, {
877
877
  position: "top-right",
878
878
  duration: 2e3,
879
879
  richColors: !0
@@ -881,13 +881,13 @@ function Cn({
881
881
  }
882
882
  }
883
883
  function N() {
884
- let F = ds(s, n);
884
+ let F = hs(s, n);
885
885
  ((K) => K.charAt(0) === K.charAt(0).toUpperCase())(n) && (F = `"${n}"`), h(!1);
886
886
  const q = g === "MSSQL" ? `SELECT top 10 * FROM ${F}` : `SELECT * FROM ${F} LIMIT 10`;
887
887
  x(q), u(!0);
888
888
  }
889
889
  function O() {
890
- let F = ds(s, n);
890
+ let F = hs(s, n);
891
891
  ((q) => q.charAt(0) === q.charAt(0).toUpperCase())(n) && (F = `"${n}"`), h(!1), x(`SELECT COUNT(*) as count FROM ${F}`), u(!0);
892
892
  }
893
893
  return /* @__PURE__ */ e.jsxs("div", { className: "flex grow flex-col space-y-4 px-4", children: [
@@ -941,7 +941,7 @@ function Cn({
941
941
  )
942
942
  ] }),
943
943
  /* @__PURE__ */ e.jsxs(
944
- Cs,
944
+ Ss,
945
945
  {
946
946
  className: "flex-1 basis-0 overflow-y-auto border-b border-t border-muted py-3",
947
947
  children: [
@@ -980,7 +980,7 @@ function Cn({
980
980
  ] });
981
981
  }
982
982
  function xa(s, n) {
983
- var ss, ve, Je, qe;
983
+ var as, ve, Je, qe;
984
984
  let a = Ut(() => [], []);
985
985
  const t = es().authToken || s, o = i(
986
986
  (C) => C.selectedConnectionId
@@ -1123,7 +1123,7 @@ function xa(s, n) {
1123
1123
  m,
1124
1124
  O
1125
1125
  ]);
1126
- const je = (O == null ? void 0 : O.type) === "API" ? (ss = O == null ? void 0 : O.type) == null ? void 0 : ss.toLowerCase() : l || "", be = F ? "" : r || "";
1126
+ const je = (O == null ? void 0 : O.type) === "API" ? (as = O == null ? void 0 : O.type) == null ? void 0 : as.toLowerCase() : l || "", be = F ? "" : r || "";
1127
1127
  function xe(C) {
1128
1128
  u(C), S("");
1129
1129
  }
@@ -1342,7 +1342,7 @@ function kn({
1342
1342
  ]
1343
1343
  }
1344
1344
  ),
1345
- /* @__PURE__ */ e.jsx(Cs, { className: " min-h-0 max-h-[250px] overflow-scroll ", children: /* @__PURE__ */ e.jsx("p", { className: " overflow-auto text-sm leading-relaxed font-mono ", children: s }) })
1345
+ /* @__PURE__ */ e.jsx(Ss, { className: " min-h-0 max-h-[250px] overflow-scroll ", children: /* @__PURE__ */ e.jsx("p", { className: " overflow-auto text-sm leading-relaxed font-mono ", children: s }) })
1346
1346
  ] }) }) })
1347
1347
  ] });
1348
1348
  }
@@ -1590,8 +1590,8 @@ function On({
1590
1590
  v
1591
1591
  ) : /* @__PURE__ */ e.jsx("div", {}, v));
1592
1592
  }
1593
- return /* @__PURE__ */ e.jsxs(xs, { open: s, onOpenChange: n, children: [
1594
- /* @__PURE__ */ e.jsx(ps, { asChild: !0, children: /* @__PURE__ */ e.jsx(
1593
+ return /* @__PURE__ */ e.jsxs(ps, { open: s, onOpenChange: n, children: [
1594
+ /* @__PURE__ */ e.jsx(fs, { asChild: !0, children: /* @__PURE__ */ e.jsx(
1595
1595
  w,
1596
1596
  {
1597
1597
  size: "sm",
@@ -1601,13 +1601,13 @@ function On({
1601
1601
  }
1602
1602
  ) }),
1603
1603
  /* @__PURE__ */ e.jsxs(
1604
- fs,
1604
+ gs,
1605
1605
  {
1606
1606
  className: "flex flex-col justify-between overflow-auto sm:max-w-[425px] md:max-h-[625px] md:min-w-[625px]",
1607
1607
  children: [
1608
- /* @__PURE__ */ e.jsxs(gs, { children: [
1609
- /* @__PURE__ */ e.jsx(js, { children: "Assistant" }),
1610
- /* @__PURE__ */ e.jsx(bs, { children: "What can I help you with?" })
1608
+ /* @__PURE__ */ e.jsxs(js, { children: [
1609
+ /* @__PURE__ */ e.jsx(bs, { children: "Assistant" }),
1610
+ /* @__PURE__ */ e.jsx(ys, { children: "What can I help you with?" })
1611
1611
  ] }),
1612
1612
  /* @__PURE__ */ e.jsx(
1613
1613
  "div",
@@ -1806,7 +1806,7 @@ function Vn() {
1806
1806
  isSuccess: ye,
1807
1807
  isError: le,
1808
1808
  error: Ie,
1809
- status: ss,
1809
+ status: as,
1810
1810
  refetch: ve
1811
1811
  } = Ce({
1812
1812
  queryKey: [q, A],
@@ -1824,11 +1824,11 @@ function Vn() {
1824
1824
  retry: !1
1825
1825
  });
1826
1826
  P(() => {
1827
- if (U && (se(U.records), U.rowLimitExceeded && cs.error("Row limit (10,000) exceeded. Refine your query.", {
1827
+ if (U && (se(U.records), U.rowLimitExceeded && ds.error("Row limit (10,000) exceeded. Refine your query.", {
1828
1828
  position: "top-center",
1829
1829
  richColors: !0
1830
1830
  }), y((U == null ? void 0 : U.output) || ""), U.records.length > 0)) {
1831
- const { dimensionKeys: p } = hs(U.records);
1831
+ const { dimensionKeys: p } = ms(U.records);
1832
1832
  Q(p);
1833
1833
  }
1834
1834
  }, [U, se, Q, y]), P(() => {
@@ -1884,14 +1884,14 @@ function Vn() {
1884
1884
  return Ma(ie);
1885
1885
  }
1886
1886
  function Ma(p) {
1887
- const [ie, Ve, Ne] = p.split(" "), W = parseFloat(ie), Ea = parseFloat(Ve), La = parseFloat(Ne), Da = Ea / 100, Ts = La / 100, pe = (1 - Math.abs(2 * Ts - 1)) * Da, ke = pe * (1 - Math.abs(W / 60 % 2 - 1)), as = Ts - pe / 2;
1887
+ const [ie, Ve, Ne] = p.split(" "), W = parseFloat(ie), Ea = parseFloat(Ve), La = parseFloat(Ne), Da = Ea / 100, Ts = La / 100, pe = (1 - Math.abs(2 * Ts - 1)) * Da, ke = pe * (1 - Math.abs(W / 60 % 2 - 1)), ts = Ts - pe / 2;
1888
1888
  let oe = 0, ce = 0, de = 0;
1889
- 0 <= W && W < 60 ? (oe = pe, ce = ke, de = 0) : 60 <= W && W < 120 ? (oe = ke, ce = pe, de = 0) : 120 <= W && W < 180 ? (oe = 0, ce = pe, de = ke) : 180 <= W && W < 240 ? (oe = 0, ce = ke, de = pe) : 240 <= W && W < 300 ? (oe = ke, ce = 0, de = pe) : 300 <= W && W < 360 && (oe = pe, ce = 0, de = ke), oe = Math.round((oe + as) * 255), ce = Math.round((ce + as) * 255), de = Math.round((de + as) * 255);
1890
- const ts = (Ia) => {
1891
- const ns = Ia.toString(16);
1892
- return ns.length == 1 ? "0" + ns : ns;
1889
+ 0 <= W && W < 60 ? (oe = pe, ce = ke, de = 0) : 60 <= W && W < 120 ? (oe = ke, ce = pe, de = 0) : 120 <= W && W < 180 ? (oe = 0, ce = pe, de = ke) : 180 <= W && W < 240 ? (oe = 0, ce = ke, de = pe) : 240 <= W && W < 300 ? (oe = ke, ce = 0, de = pe) : 300 <= W && W < 360 && (oe = pe, ce = 0, de = ke), oe = Math.round((oe + ts) * 255), ce = Math.round((ce + ts) * 255), de = Math.round((de + ts) * 255);
1890
+ const ns = (Ia) => {
1891
+ const rs = Ia.toString(16);
1892
+ return rs.length == 1 ? "0" + rs : rs;
1893
1893
  };
1894
- return `#${ts(oe)}${ts(ce)}${ts(de)}`;
1894
+ return `#${ns(oe)}${ns(ce)}${ns(de)}`;
1895
1895
  }
1896
1896
  P(() => {
1897
1897
  const p = n.current, ie = a.current;
@@ -1995,7 +1995,7 @@ function Vn() {
1995
1995
  }
1996
1996
  function Aa() {
1997
1997
  return /* @__PURE__ */ e.jsxs(
1998
- ms,
1998
+ us,
1999
1999
  {
2000
2000
  className: "flex grow pb-1",
2001
2001
  direction: "vertical",
@@ -2048,7 +2048,7 @@ function Vn() {
2048
2048
  }
2049
2049
  ),
2050
2050
  t && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
2051
- /* @__PURE__ */ e.jsx(us, { withHandle: !0, className: "border" }),
2051
+ /* @__PURE__ */ e.jsx(xs, { withHandle: !0, className: "border" }),
2052
2052
  /* @__PURE__ */ e.jsxs(
2053
2053
  Fe,
2054
2054
  {
@@ -2254,19 +2254,19 @@ function Rn({ data: s }) {
2254
2254
  }
2255
2255
  });
2256
2256
  return /* @__PURE__ */ e.jsxs(ot, { children: [
2257
- /* @__PURE__ */ e.jsx(ct, { children: c.getHeaderGroups().map((l) => /* @__PURE__ */ e.jsx(rs, { children: l.headers.map((d) => /* @__PURE__ */ e.jsx(dt, { className: "sticky top-0 bg-muted", children: d.isPlaceholder ? null : Ds(
2257
+ /* @__PURE__ */ e.jsx(ct, { children: c.getHeaderGroups().map((l) => /* @__PURE__ */ e.jsx(ls, { children: l.headers.map((d) => /* @__PURE__ */ e.jsx(dt, { className: "sticky top-0 bg-muted", children: d.isPlaceholder ? null : Ds(
2258
2258
  d.column.columnDef.header,
2259
2259
  d.getContext()
2260
2260
  ) }, d.id)) }, l.id)) }),
2261
2261
  /* @__PURE__ */ e.jsx(ht, { children: (r = c.getRowModel().rows) != null && r.length ? c.getRowModel().rows.map((l) => /* @__PURE__ */ e.jsx(
2262
- rs,
2262
+ ls,
2263
2263
  {
2264
2264
  className: "whitespace-nowrap py-2",
2265
2265
  "data-state": l.getIsSelected() && "selected",
2266
2266
  children: l.getVisibleCells().map((d) => /* @__PURE__ */ e.jsx(Is, { children: Ds(d.column.columnDef.cell, d.getContext()) }, d.id))
2267
2267
  },
2268
2268
  l.id
2269
- )) : /* @__PURE__ */ e.jsx(rs, { children: /* @__PURE__ */ e.jsx(Is, { colSpan: o.length, className: "h-24 text-center", children: "No results." }) }) })
2269
+ )) : /* @__PURE__ */ e.jsx(ls, { children: /* @__PURE__ */ e.jsx(Is, { colSpan: o.length, className: "h-24 text-center", children: "No results." }) }) })
2270
2270
  ] });
2271
2271
  }
2272
2272
  function ja({
@@ -2390,8 +2390,8 @@ function _n() {
2390
2390
  }
2391
2391
  return a ? (N = x(JSON.parse(a)), N) : "";
2392
2392
  }
2393
- return /* @__PURE__ */ e.jsxs(xs, { open: s, onOpenChange: n, children: [
2394
- /* @__PURE__ */ e.jsx(ps, { asChild: !0, children: /* @__PURE__ */ e.jsx(
2393
+ return /* @__PURE__ */ e.jsxs(ps, { open: s, onOpenChange: n, children: [
2394
+ /* @__PURE__ */ e.jsx(fs, { asChild: !0, children: /* @__PURE__ */ e.jsx(
2395
2395
  w,
2396
2396
  {
2397
2397
  onClick: g,
@@ -2402,14 +2402,14 @@ function _n() {
2402
2402
  }
2403
2403
  ) }),
2404
2404
  /* @__PURE__ */ e.jsxs(
2405
- fs,
2405
+ gs,
2406
2406
  {
2407
2407
  className: "max-h-[70vh] min-h-[70vh] overflow-auto sm:min-w-[900px] lg:min-w-[1200px]",
2408
2408
  children: [
2409
- /* @__PURE__ */ e.jsxs(gs, { className: "", children: [
2409
+ /* @__PURE__ */ e.jsxs(js, { className: "", children: [
2410
2410
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
2411
- /* @__PURE__ */ e.jsx(js, { children: "Customize Card" }),
2412
- /* @__PURE__ */ e.jsxs(ys, { children: [
2411
+ /* @__PURE__ */ e.jsx(bs, { children: "Customize Card" }),
2412
+ /* @__PURE__ */ e.jsxs(vs, { children: [
2413
2413
  /* @__PURE__ */ e.jsx(Js, { children: /* @__PURE__ */ e.jsx(
2414
2414
  sn,
2415
2415
  {
@@ -2419,10 +2419,10 @@ function _n() {
2419
2419
  className: "size-3 cursor-pointer text-muted-foreground/70 transition-colors hover:text-muted-foreground"
2420
2420
  }
2421
2421
  ) }),
2422
- /* @__PURE__ */ e.jsx(vs, { side: "right", align: "center", children: /* @__PURE__ */ e.jsx("p", { className: "text-xs", children: "Copy Card ID" }) })
2422
+ /* @__PURE__ */ e.jsx(Ns, { side: "right", align: "center", children: /* @__PURE__ */ e.jsx("p", { className: "text-xs", children: "Copy Card ID" }) })
2423
2423
  ] })
2424
2424
  ] }),
2425
- /* @__PURE__ */ e.jsxs(bs, { children: [
2425
+ /* @__PURE__ */ e.jsxs(ys, { children: [
2426
2426
  "See the configuration options and documentation",
2427
2427
  /* @__PURE__ */ e.jsx(
2428
2428
  "a",
@@ -2439,15 +2439,15 @@ function _n() {
2439
2439
  /* @__PURE__ */ e.jsx(ja, { className: "w-1/2 rounded shadow-none" }),
2440
2440
  /* @__PURE__ */ e.jsxs(kt, { defaultValue: "custom-config", className: "flex w-1/2 flex-col", children: [
2441
2441
  /* @__PURE__ */ e.jsxs(wt, { className: "justify-start rounded-sm rounded-b-none border border-b-0", children: [
2442
- /* @__PURE__ */ e.jsxs(ls, { value: "custom-config", children: [
2442
+ /* @__PURE__ */ e.jsxs(is, { value: "custom-config", children: [
2443
2443
  u && /* @__PURE__ */ e.jsx(zt, { className: "mr-1 h-5 w-5 text-green-600" }),
2444
2444
  u ? "Custom Config" : "Default Config"
2445
2445
  ] }),
2446
- /* @__PURE__ */ e.jsx(ls, { className: "", value: "output", children: "Output" }),
2447
- /* @__PURE__ */ e.jsx(ls, { className: "", value: "custom-code", children: "Custom Code" })
2446
+ /* @__PURE__ */ e.jsx(is, { className: "", value: "output", children: "Output" }),
2447
+ /* @__PURE__ */ e.jsx(is, { className: "", value: "custom-code", children: "Custom Code" })
2448
2448
  ] }),
2449
2449
  /* @__PURE__ */ e.jsx(
2450
- is,
2450
+ os,
2451
2451
  {
2452
2452
  className: "bg-red-x mt-0 grow rounded-b border border-t-0 p-2",
2453
2453
  value: "output",
@@ -2462,7 +2462,7 @@ function _n() {
2462
2462
  }
2463
2463
  ),
2464
2464
  /* @__PURE__ */ e.jsx(
2465
- is,
2465
+ os,
2466
2466
  {
2467
2467
  className: "mt-0 grow rounded-b border border-t-0",
2468
2468
  value: "custom-config",
@@ -2491,7 +2491,7 @@ function _n() {
2491
2491
  }
2492
2492
  ),
2493
2493
  /* @__PURE__ */ e.jsx(
2494
- is,
2494
+ os,
2495
2495
  {
2496
2496
  className: "mt-0 grow rounded-b border border-t-0",
2497
2497
  value: "custom-code",
@@ -2577,7 +2577,7 @@ function Hn() {
2577
2577
  onClick: () => l("bar"),
2578
2578
  className: "font-normal",
2579
2579
  variant: "ghost",
2580
- children: /* @__PURE__ */ e.jsx(ws, { className: "size-5" })
2580
+ children: /* @__PURE__ */ e.jsx(zs, { className: "size-5" })
2581
2581
  }
2582
2582
  ),
2583
2583
  /* @__PURE__ */ e.jsx(
@@ -2585,7 +2585,7 @@ function Hn() {
2585
2585
  {
2586
2586
  onClick: () => l("line"),
2587
2587
  variant: "ghost",
2588
- children: /* @__PURE__ */ e.jsx(zs, { className: "size-5" })
2588
+ children: /* @__PURE__ */ e.jsx(Fs, { className: "size-5" })
2589
2589
  }
2590
2590
  ),
2591
2591
  /* @__PURE__ */ e.jsx(
@@ -2671,7 +2671,7 @@ function Hn() {
2671
2671
  {
2672
2672
  onClick: () => l("table"),
2673
2673
  variant: "ghost",
2674
- children: /* @__PURE__ */ e.jsx(Ns, { className: "size-5" })
2674
+ children: /* @__PURE__ */ e.jsx(Cs, { className: "size-5" })
2675
2675
  }
2676
2676
  ),
2677
2677
  /* @__PURE__ */ e.jsx(
@@ -2688,9 +2688,9 @@ function Hn() {
2688
2688
  function Bn({ chartType: s, className: n }) {
2689
2689
  switch (s) {
2690
2690
  case "bar":
2691
- return /* @__PURE__ */ e.jsx(ws, { className: n });
2692
- case "line":
2693
2691
  return /* @__PURE__ */ e.jsx(zs, { className: n });
2692
+ case "line":
2693
+ return /* @__PURE__ */ e.jsx(Fs, { className: n });
2694
2694
  case "pie":
2695
2695
  return /* @__PURE__ */ e.jsx(ha, { className: n });
2696
2696
  case "radar":
@@ -2712,7 +2712,7 @@ function Bn({ chartType: s, className: n }) {
2712
2712
  case "kpi":
2713
2713
  return /* @__PURE__ */ e.jsx(Sa, { className: n });
2714
2714
  default:
2715
- return /* @__PURE__ */ e.jsx(Ns, { className: n });
2715
+ return /* @__PURE__ */ e.jsx(Cs, { className: n });
2716
2716
  }
2717
2717
  }
2718
2718
  function $n() {
@@ -2772,7 +2772,7 @@ function Pn() {
2772
2772
  className: "bg-muted p-2 font-mono text-sm"
2773
2773
  }
2774
2774
  ),
2775
- /* @__PURE__ */ e.jsx(Ss, { className: "mb-2" })
2775
+ /* @__PURE__ */ e.jsx(ks, { className: "mb-2" })
2776
2776
  ] });
2777
2777
  }
2778
2778
  function Kn() {
@@ -2908,7 +2908,7 @@ function De() {
2908
2908
  );
2909
2909
  }) });
2910
2910
  }
2911
- function Fs() {
2911
+ function ss() {
2912
2912
  var r, l, d;
2913
2913
  const s = i((f) => f.card.preferences), n = i(
2914
2914
  (f) => f.card.cfg
@@ -3284,7 +3284,7 @@ function za() {
3284
3284
  keys: o,
3285
3285
  metricKeys: c,
3286
3286
  dimensionKeys: r
3287
- } = hs(s.data || []);
3287
+ } = ms(s.data || []);
3288
3288
  let l = c;
3289
3289
  if (s.type === "stackedBar") {
3290
3290
  const d = Dt({
@@ -3292,7 +3292,7 @@ function za() {
3292
3292
  groupKey: r[0],
3293
3293
  pivotKey: r[1],
3294
3294
  valueKey: l[0]
3295
- }), { metricKeys: f } = hs(d);
3295
+ }), { metricKeys: f } = ms(d);
3296
3296
  l = f;
3297
3297
  }
3298
3298
  return o.length === 0 ? null : /* @__PURE__ */ e.jsxs("div", { className: "space-y-4", children: [
@@ -3348,14 +3348,14 @@ function Gn({ col: s, idx: n }) {
3348
3348
  /* @__PURE__ */ e.jsx("p", { children: s }),
3349
3349
  /* @__PURE__ */ e.jsxs("div", { className: "flex gap-2", children: [
3350
3350
  /* @__PURE__ */ e.jsx(
3351
- ws,
3351
+ zs,
3352
3352
  {
3353
3353
  onClick: () => r("bar"),
3354
3354
  className: "invisible size-4 cursor-pointer text-muted-foreground hover:text-foreground group-hover:visible"
3355
3355
  }
3356
3356
  ),
3357
3357
  /* @__PURE__ */ e.jsx(
3358
- zs,
3358
+ Fs,
3359
3359
  {
3360
3360
  onClick: () => r("line"),
3361
3361
  className: "invisible size-4 cursor-pointer text-muted-foreground hover:text-foreground group-hover:visible"
@@ -3369,7 +3369,7 @@ function Gn({ col: s, idx: n }) {
3369
3369
  }
3370
3370
  ),
3371
3371
  /* @__PURE__ */ e.jsx(
3372
- Ss,
3372
+ ks,
3373
3373
  {
3374
3374
  orientation: "vertical",
3375
3375
  className: "invisible size-4 cursor-pointer py-2 text-muted-foreground hover:text-foreground group-hover:visible"
@@ -3384,7 +3384,7 @@ function Jn({
3384
3384
  }) {
3385
3385
  return /* @__PURE__ */ e.jsx("div", { className: "space-y-6 px-6 py-2", children: /* @__PURE__ */ e.jsxs(Se, { defaultValue: ["item-2"], type: "multiple", children: [
3386
3386
  /* @__PURE__ */ e.jsxs(V, { value: "item-1", children: [
3387
- /* @__PURE__ */ e.jsx(R, { children: `${ks(s)} Chart` }),
3387
+ /* @__PURE__ */ e.jsx(R, { children: `${ws(s)} Chart` }),
3388
3388
  /* @__PURE__ */ e.jsxs(_, { className: "space-y-4 font-mono text-xs", children: [
3389
3389
  /* @__PURE__ */ e.jsx("div", { className: "rounded bg-muted px-2 py-1 text-xs", children: "SELECT x-axis, y-axis-1, y-axis-2,... FROM table" }),
3390
3390
  /* @__PURE__ */ e.jsxs("ul", { className: "ml-6 list-disc text-xs [&>li]:mt-2", children: [
@@ -3411,7 +3411,7 @@ function Jn({
3411
3411
  /* @__PURE__ */ e.jsxs(V, { value: "item-2", children: [
3412
3412
  /* @__PURE__ */ e.jsx(R, { children: "Settings" }),
3413
3413
  /* @__PURE__ */ e.jsxs(_, { className: "space-y-4 px-2", children: [
3414
- /* @__PURE__ */ e.jsx(Fs, {}),
3414
+ /* @__PURE__ */ e.jsx(ss, {}),
3415
3415
  /* @__PURE__ */ e.jsx(za, {})
3416
3416
  ] })
3417
3417
  ] }),
@@ -3504,7 +3504,7 @@ function Qn({
3504
3504
  }
3505
3505
  return /* @__PURE__ */ e.jsx("div", { className: "px-6 py-2 space-y-6", children: /* @__PURE__ */ e.jsxs(Se, { defaultValue: ["item-2"], type: "multiple", children: [
3506
3506
  /* @__PURE__ */ e.jsxs(V, { value: "item-1", children: [
3507
- /* @__PURE__ */ e.jsx(R, { children: `${ks(s)} Chart` }),
3507
+ /* @__PURE__ */ e.jsx(R, { children: `${ws(s)} Chart` }),
3508
3508
  /* @__PURE__ */ e.jsx(_, { className: " space-y-4 font-mono text-xs ", children: n(s) })
3509
3509
  ] }),
3510
3510
  /* @__PURE__ */ e.jsxs(V, { value: "item-2", children: [
@@ -3552,7 +3552,7 @@ function Xn() {
3552
3552
  children: Zn(s)
3553
3553
  }
3554
3554
  ),
3555
- /* @__PURE__ */ e.jsx("section", { className: "", children: ["line", "bar"].includes(s) && /* @__PURE__ */ e.jsx(Fs, {}) }),
3555
+ /* @__PURE__ */ e.jsx("section", { className: "", children: ["line", "bar"].includes(s) && /* @__PURE__ */ e.jsx(ss, {}) }),
3556
3556
  /* @__PURE__ */ e.jsx("div", { children: !["kpi"].includes(s) && /* @__PURE__ */ e.jsx(Os, {}) }),
3557
3557
  /* @__PURE__ */ e.jsx("div", { children: !["kpi"].includes(s) && /* @__PURE__ */ e.jsx(De, {}) })
3558
3558
  ] });
@@ -3808,7 +3808,7 @@ function er() {
3808
3808
  ] })
3809
3809
  ] })
3810
3810
  ] }) }),
3811
- /* @__PURE__ */ e.jsx(Ss, { className: "my-3" }),
3811
+ /* @__PURE__ */ e.jsx(ks, { className: "my-3" }),
3812
3812
  /* @__PURE__ */ e.jsx(
3813
3813
  It,
3814
3814
  {
@@ -3850,13 +3850,13 @@ function sr() {
3850
3850
  /* @__PURE__ */ e.jsx("div", {})
3851
3851
  ] });
3852
3852
  }
3853
- function os({
3853
+ function cs({
3854
3854
  cardType: s,
3855
3855
  docContent: n
3856
3856
  }) {
3857
3857
  return /* @__PURE__ */ e.jsx("div", { className: "space-y-6 px-6 py-2", children: /* @__PURE__ */ e.jsxs(Se, { defaultValue: ["item-2"], type: "multiple", children: [
3858
3858
  /* @__PURE__ */ e.jsxs(V, { value: "item-1", children: [
3859
- /* @__PURE__ */ e.jsx(R, { children: `${ks(s)} Chart` }),
3859
+ /* @__PURE__ */ e.jsx(R, { children: `${ws(s)} Chart` }),
3860
3860
  /* @__PURE__ */ e.jsx(_, { children: n || /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 font-mono text-xs", children: [
3861
3861
  /* @__PURE__ */ e.jsx("div", { className: "rounded bg-muted px-2 py-1 text-xs", children: "SELECT label, measure FROM table" }),
3862
3862
  /* @__PURE__ */ e.jsxs("ul", { className: "ml-6 list-disc text-xs [&>li]:mt-2", children: [
@@ -3881,7 +3881,10 @@ function os({
3881
3881
  ] }),
3882
3882
  /* @__PURE__ */ e.jsxs(V, { value: "item-2", children: [
3883
3883
  /* @__PURE__ */ e.jsx(R, { children: "Settings" }),
3884
- /* @__PURE__ */ e.jsx(_, { className: "px-2", children: /* @__PURE__ */ e.jsx(Os, {}) })
3884
+ /* @__PURE__ */ e.jsxs(_, { className: "space-y-4 px-2", children: [
3885
+ s === "range" && /* @__PURE__ */ e.jsx(ss, {}),
3886
+ /* @__PURE__ */ e.jsx(Os, {})
3887
+ ] })
3885
3888
  ] }),
3886
3889
  s !== "range" && /* @__PURE__ */ e.jsxs(V, { value: "item-3", children: [
3887
3890
  /* @__PURE__ */ e.jsx(R, { children: "Filter on click" }),
@@ -3919,7 +3922,7 @@ function ar() {
3919
3922
  /* @__PURE__ */ e.jsxs(V, { value: "item-2", children: [
3920
3923
  /* @__PURE__ */ e.jsx(R, { children: "Settings" }),
3921
3924
  /* @__PURE__ */ e.jsxs(_, { className: "space-y-4 px-2", children: [
3922
- /* @__PURE__ */ e.jsx(Fs, {}),
3925
+ /* @__PURE__ */ e.jsx(ss, {}),
3923
3926
  /* @__PURE__ */ e.jsx(za, {})
3924
3927
  ] })
3925
3928
  ] }),
@@ -3999,19 +4002,19 @@ function lr() {
3999
4002
  case "stackedBar":
4000
4003
  return /* @__PURE__ */ e.jsx(ar, {});
4001
4004
  case "pyramid":
4002
- return /* @__PURE__ */ e.jsx(os, { docContent: nr, cardType: a });
4005
+ return /* @__PURE__ */ e.jsx(cs, { docContent: nr, cardType: a });
4003
4006
  case "kpi":
4004
4007
  return /* @__PURE__ */ e.jsx(sr, {});
4005
4008
  case "line":
4006
4009
  case "bar":
4007
4010
  return /* @__PURE__ */ e.jsx(Jn, { cardType: a });
4008
4011
  case "range":
4009
- return /* @__PURE__ */ e.jsx(os, { docContent: rr, cardType: a });
4012
+ return /* @__PURE__ */ e.jsx(cs, { docContent: rr, cardType: a });
4010
4013
  case "pie":
4011
4014
  case "doughnut":
4012
4015
  case "polarArea":
4013
4016
  case "radar":
4014
- return /* @__PURE__ */ e.jsx(os, { cardType: a });
4017
+ return /* @__PURE__ */ e.jsx(cs, { cardType: a });
4015
4018
  case "bubble":
4016
4019
  case "scatter":
4017
4020
  return /* @__PURE__ */ e.jsx(Qn, { cardType: a });
@@ -4021,12 +4024,12 @@ function lr() {
4021
4024
  return /* @__PURE__ */ e.jsx(Xn, {});
4022
4025
  }
4023
4026
  }
4024
- return /* @__PURE__ */ e.jsx(Cs, { className: "h-full w-full text-sm", children: n(s) });
4027
+ return /* @__PURE__ */ e.jsx(Ss, { className: "h-full w-full text-sm", children: n(s) });
4025
4028
  }
4026
4029
  function ir() {
4027
4030
  const s = i((n) => n.isShowingVisual);
4028
4031
  return /* @__PURE__ */ e.jsxs(
4029
- ms,
4032
+ us,
4030
4033
  {
4031
4034
  direction: "vertical",
4032
4035
  className: "min-h-[250px] min-w-full max-w-lg",
@@ -4041,7 +4044,7 @@ function ir() {
4041
4044
  children: /* @__PURE__ */ e.jsx(Vn, {})
4042
4045
  }
4043
4046
  ),
4044
- /* @__PURE__ */ e.jsx(us, { withHandle: !0, className: "border" }),
4047
+ /* @__PURE__ */ e.jsx(xs, { withHandle: !0, className: "border" }),
4045
4048
  /* @__PURE__ */ e.jsx(
4046
4049
  Fe,
4047
4050
  {
@@ -4049,7 +4052,7 @@ function ir() {
4049
4052
  role: "visual-section",
4050
4053
  minSize: 0,
4051
4054
  defaultSize: 60,
4052
- children: s ? /* @__PURE__ */ e.jsxs(ms, { direction: "horizontal", children: [
4055
+ children: s ? /* @__PURE__ */ e.jsxs(us, { direction: "horizontal", children: [
4053
4056
  /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsx(
4054
4057
  Fe,
4055
4058
  {
@@ -4060,7 +4063,7 @@ function ir() {
4060
4063
  children: /* @__PURE__ */ e.jsx(lr, {})
4061
4064
  }
4062
4065
  ) }),
4063
- /* @__PURE__ */ e.jsx(us, { className: "border" }),
4066
+ /* @__PURE__ */ e.jsx(xs, { className: "border" }),
4064
4067
  /* @__PURE__ */ e.jsx(Fe, { minSize: 40, defaultSize: 75, maxSize: 100, children: /* @__PURE__ */ e.jsx($s, {}) })
4065
4068
  ] }) : /* @__PURE__ */ e.jsx($s, {})
4066
4069
  }
@@ -4109,7 +4112,7 @@ function dr({
4109
4112
  (u) => u.actions.removeFilterValue
4110
4113
  );
4111
4114
  function m(u) {
4112
- const S = he(u.column_name), h = he(t || ""), x = he(o || ""), g = he(n), z = ds(
4115
+ const S = he(u.column_name), h = he(t || ""), x = he(o || ""), g = he(n), z = hs(
4113
4116
  x,
4114
4117
  g
4115
4118
  ), b = `${z}.${S}`;