react-semaphor 0.0.376 → 0.0.3771

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { c as P, x as ks, y as O, z as Ze, A as Ie, B as e, H as zs, J as Os, K as M, p as Xe, M as Is, N as Ts, Q as Ms, R as Ds, V as $, W as de, Y as ha, Z as Fs, _ as Ls, $ as Es, a0 as ma, a1 as xa, a2 as it, a3 as ea, a4 as Y, a5 as Je, i as ot, a6 as h, a7 as ct, a8 as dt, P as pa, F as fa, a9 as We, aa as Ke, ab as ga, ac as ut, ad as ja, ae as ge, af as je, ag as be, ah as ve, ai as ke, aj as ye, ak as se, al as Vs, am as As, an as qs, ao as ba, ap as va, aq as pe, ar as ht, as as mt, at as ya, au as xt, C as pt, av as ft, aw as Na, ax as Ne, ay as gt, az as _e, aA as Ns, aB as De, aC as Re, aD as ze, aE as jt, aF as bt, aG as sa, aH as vt, X as ds, aI as yt, aJ as Nt, aK as Ct, aL as St, aM as vs, l as wt, aN as kt, aO as zt, aP as Le, aQ as le, aR as Ca, aS as Ot, aT as us, aU as It, aV as Tt, aW as Cs, o as Mt, a as Dt, aX as ls, aY as we, aZ as rs, a_ as Ft, a$ as Lt, b0 as Et, b1 as Vt, b2 as ys, b3 as At, b4 as aa, b5 as qt, b6 as ta, b7 as Rt, b8 as _t, b9 as Ht, ba as Pt, bb as Sa, bc as $t, bd as Rs, be as wa, bf as Bt, bg as Ut, bh as as, bi as Gt, bj as Jt, bk as ka, bl as Wt, u as Kt, bm as Qt, bn as Zt, s as Xt, bo as hs, bp as za, bq as Oa, br as Ia, bs as ts, bt as ns, bu as Yt, bv as Se, bw as en, bx as sn, by as ms, bz as xs, bA as ps, bB as an, I as tn, bC as nn, bD as ln, bE as rn, bF as on, E as cn, bG as fs, bH as Fe, f as dn, bI as Be, bJ as _s, bK as Ta, bL as un, bM as hn, bN as is, bO as mn, bP as xn, bQ as pn, bR as fn, bS as na, bT as la, bU as Ma, bV as gn, bW as jn, bX as bn, bY as vn, bZ as yn, b_ as Nn, b$ as Cn, c0 as Sn, c1 as Ee, c2 as Q, c3 as Z, c4 as Hs, c5 as X, c6 as wn, c7 as Da, c8 as kn, c9 as zn, ca as On, cb as In, cc as Tn, cd as Mn, ce as Dn, cf as Fn, cg as Ln } from "./index-BOpp3w2L.js";
1
+ import { c as P, x as ks, y as O, z as Ze, A as Ie, B as e, H as zs, J as Os, K as M, p as Xe, M as Is, N as Ts, Q as Ms, R as Ds, V as B, W as de, Y as ha, Z as Fs, _ as Ls, $ as Es, a0 as ma, a1 as xa, a2 as it, a3 as ea, a4 as Y, a5 as Je, i as ot, a6 as h, a7 as ct, a8 as dt, P as pa, F as fa, a9 as We, aa as Ke, ab as ga, ac as ut, ad as ja, ae as ge, af as je, ag as be, ah as ve, ai as ke, aj as ye, ak as se, al as Vs, am as As, an as qs, ao as ba, ap as va, aq as pe, ar as ht, as as mt, at as ya, au as xt, C as pt, av as ft, aw as Na, ax as Ne, ay as gt, az as _e, aA as Ns, aB as De, aC as Re, aD as ze, aE as jt, aF as bt, aG as sa, aH as vt, X as ds, aI as yt, aJ as Nt, aK as Ct, aL as St, aM as vs, l as wt, aN as kt, aO as zt, aP as Le, aQ as le, aR as Ca, aS as Ot, aT as us, aU as It, aV as Tt, aW as Cs, o as Mt, a as Dt, aX as ls, aY as we, aZ as rs, a_ as Ft, a$ as Lt, b0 as Et, b1 as Vt, b2 as ys, b3 as At, b4 as aa, b5 as qt, b6 as ta, b7 as Rt, b8 as _t, b9 as Ht, ba as Pt, bb as Sa, bc as Bt, bd as Rs, be as wa, bf as $t, bg as Ut, bh as as, bi as Gt, bj as Jt, bk as ka, bl as Wt, u as Kt, bm as Qt, bn as Zt, s as Xt, bo as hs, bp as za, bq as Oa, br as Ia, bs as ts, bt as ns, bu as Yt, bv as Se, bw as en, bx as sn, by as ms, bz as xs, bA as ps, bB as an, I as tn, bC as nn, bD as ln, bE as rn, bF as on, E as cn, bG as fs, bH as Fe, f as dn, bI as $e, bJ as _s, bK as Ta, bL as un, bM as hn, bN as is, bO as mn, bP as xn, bQ as pn, bR as fn, bS as na, bT as la, bU as Ma, bV as gn, bW as jn, bX as bn, bY as vn, bZ as yn, b_ as Nn, b$ as Cn, c0 as Sn, c1 as Ee, c2 as Q, c3 as Z, c4 as Hs, c5 as X, c6 as wn, c7 as Da, c8 as kn, c9 as zn, ca as On, cb as In, cc as Tn, cd as Mn, ce as Dn, cf as Fn, cg as Ln } from "./index-BO95GMa_.js";
2
2
  import * as ra from "react";
3
3
  import Oe, { useState as H, useMemo as Ss, useEffect as te, useRef as Ue, useCallback as Fa, Suspense as En } from "react";
4
4
  import "react-dom";
@@ -72,7 +72,7 @@ const Ps = P("ChartColumnIncreasing", [
72
72
  * This source code is licensed under the ISC license.
73
73
  * See the LICENSE file in the root directory of this source tree.
74
74
  */
75
- const $s = P("ChartLine", [
75
+ const Bs = P("ChartLine", [
76
76
  ["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
77
77
  ["path", { d: "m19 9-5 5-4-4-3 3", key: "2osh9i" }]
78
78
  ]);
@@ -157,7 +157,7 @@ const Hn = P("Database", [
157
157
  * This source code is licensed under the ISC license.
158
158
  * See the LICENSE file in the root directory of this source tree.
159
159
  */
160
- const Bs = P("EllipsisVertical", [
160
+ const $s = P("EllipsisVertical", [
161
161
  ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
162
162
  ["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
163
163
  ["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
@@ -185,7 +185,7 @@ const Pn = P("Eraser", [
185
185
  * This source code is licensed under the ISC license.
186
186
  * See the LICENSE file in the root directory of this source tree.
187
187
  */
188
- const $n = P("EyeClosed", [
188
+ const Bn = P("EyeClosed", [
189
189
  ["path", { d: "m15 18-.722-3.25", key: "1j64jw" }],
190
190
  ["path", { d: "M2 8a10.645 10.645 0 0 0 20 0", key: "1e7gxb" }],
191
191
  ["path", { d: "m20 15-1.726-2.05", key: "1cnuld" }],
@@ -198,7 +198,7 @@ const $n = P("EyeClosed", [
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 Bn = P("FileJson2", [
201
+ const $n = P("FileJson2", [
202
202
  ["path", { d: "M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4", key: "1pf5j1" }],
203
203
  ["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
204
204
  [
@@ -649,7 +649,7 @@ function ml() {
649
649
  /* @__PURE__ */ e.jsx(Ds, { children: "Lenses are private by default and are only visible to you." })
650
650
  ] }),
651
651
  /* @__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: [
652
- /* @__PURE__ */ e.jsx($, { className: "text-right", children: "Name" }),
652
+ /* @__PURE__ */ e.jsx(B, { className: "text-right", children: "Name" }),
653
653
  /* @__PURE__ */ e.jsx(
654
654
  de,
655
655
  {
@@ -879,7 +879,7 @@ function gl() {
879
879
  className: "flex items-center justify-between gap-2 border-b bg-muted/50 py-2 pl-3 pr-2",
880
880
  role: "dashboard-controls",
881
881
  children: [
882
- !m && /* @__PURE__ */ e.jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ e.jsx($, { children: n == null ? void 0 : n.name }) }),
882
+ !m && /* @__PURE__ */ e.jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ e.jsx(B, { children: n == null ? void 0 : n.name }) }),
883
883
  /* @__PURE__ */ e.jsxs("div", { className: "flex gap-2", children: [
884
884
  /* @__PURE__ */ e.jsx("button", { onClick: dt, children: /* @__PURE__ */ e.jsx(il, { className: "h-4 w-4", strokeWidth: 1.5 }) }),
885
885
  /* @__PURE__ */ e.jsx(fl, {}),
@@ -950,7 +950,7 @@ function gl() {
950
950
  }
951
951
  );
952
952
  }
953
- function $e({
953
+ function Be({
954
954
  title: s,
955
955
  items: t,
956
956
  value: a,
@@ -1084,7 +1084,7 @@ function jl({ column: s }) {
1084
1084
  ] });
1085
1085
  }
1086
1086
  return /* @__PURE__ */ e.jsxs(Vs, { openDelay: 0, open: t, onOpenChange: a, children: [
1087
- /* @__PURE__ */ e.jsx(As, { asChild: !0, children: /* @__PURE__ */ e.jsx(Bs, { className: "invisible size-3.5 cursor-pointer text-foreground/40 group-hover:visible" }) }),
1087
+ /* @__PURE__ */ e.jsx(As, { asChild: !0, children: /* @__PURE__ */ e.jsx($s, { className: "invisible size-3.5 cursor-pointer text-foreground/40 group-hover:visible" }) }),
1088
1088
  /* @__PURE__ */ e.jsx(
1089
1089
  qs,
1090
1090
  {
@@ -1348,7 +1348,7 @@ function Ve(s, t) {
1348
1348
  data: T,
1349
1349
  isLoading: q,
1350
1350
  isFetching: J,
1351
- isError: B,
1351
+ isError: $,
1352
1352
  refetch: W
1353
1353
  } = De({
1354
1354
  queryKey: ["databases", l],
@@ -1465,7 +1465,7 @@ function Ve(s, t) {
1465
1465
  T && ((Ks = T == null ? void 0 : T.databases) == null ? void 0 : Ks.length) > 0, K && ((Qs = K == null ? void 0 : K.schemas) == null ? void 0 : Qs.length) > 0, ae && ((Zs = ae == null ? void 0 : ae.columns) == null ? void 0 : Zs.length) > 0 && (a = ae.columns.map((w) => ({
1466
1466
  ...w,
1467
1467
  data_type: w.data_type.toLowerCase()
1468
- }))), B && (a = []), (L || C) && (a = []);
1468
+ }))), $ && (a = []), (L || C) && (a = []);
1469
1469
  const me = D == null ? void 0 : D.connections.map(
1470
1470
  (w) => ({
1471
1471
  id: w.id,
@@ -1498,7 +1498,7 @@ function Ve(s, t) {
1498
1498
  isModelsError: y,
1499
1499
  databaseItems: js,
1500
1500
  isDatabasesLoadingOrFetching: q || J,
1501
- isDatabaseError: B,
1501
+ isDatabaseError: $,
1502
1502
  schemaItems: Ye,
1503
1503
  isSchemaLoadingOrFetching: ue || re,
1504
1504
  isSchemaError: U,
@@ -1564,7 +1564,7 @@ function Ha({
1564
1564
  refetchSchemas: T,
1565
1565
  refetchTables: q,
1566
1566
  refetchColumns: J,
1567
- refetchConnections: B,
1567
+ refetchConnections: $,
1568
1568
  handleConnectionChange: W,
1569
1569
  handleDatabaseChange: K,
1570
1570
  handleSchemaChange: ue,
@@ -1590,7 +1590,7 @@ function Ha({
1590
1590
  if (!t || y === "S3" || y === "API") return null;
1591
1591
  if (!a || a === "none")
1592
1592
  return /* @__PURE__ */ e.jsx(
1593
- $e,
1593
+ Be,
1594
1594
  {
1595
1595
  refetch: b,
1596
1596
  showNone: !0,
@@ -1607,7 +1607,7 @@ function Ha({
1607
1607
  if (t && !f && (!n || n === "none") && (!a || a === "none"))
1608
1608
  return /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-3", children: [
1609
1609
  /* @__PURE__ */ e.jsx("div", { className: "col-span-1 grid place-items-center", children: /* @__PURE__ */ e.jsx(ze, {}) }),
1610
- /* @__PURE__ */ e.jsx("div", { className: "col-span-1 grid place-items-center", children: /* @__PURE__ */ e.jsx($, { children: "OR" }) }),
1610
+ /* @__PURE__ */ e.jsx("div", { className: "col-span-1 grid place-items-center", children: /* @__PURE__ */ e.jsx(B, { children: "OR" }) }),
1611
1611
  /* @__PURE__ */ e.jsx("div", { className: "col-span-1 grid place-items-center", children: /* @__PURE__ */ e.jsx(ze, {}) })
1612
1612
  ] });
1613
1613
  }
@@ -1615,7 +1615,7 @@ function Ha({
1615
1615
  if (!t || y === "S3" || y === "API") return null;
1616
1616
  if (!n || n === "none")
1617
1617
  return /* @__PURE__ */ e.jsx(
1618
- $e,
1618
+ Be,
1619
1619
  {
1620
1620
  refetch: N,
1621
1621
  showNone: !0,
@@ -1630,7 +1630,7 @@ function Ha({
1630
1630
  }
1631
1631
  function ae() {
1632
1632
  return !t || y === "S3" || y === "API" || !n || n === "none" ? null : /* @__PURE__ */ e.jsx(
1633
- $e,
1633
+ Be,
1634
1634
  {
1635
1635
  refetch: T,
1636
1636
  onChange: ue,
@@ -1648,7 +1648,7 @@ function Ha({
1648
1648
  return y === "API" ? (G = !1, G) : ((y === "S3" || t && n && n !== "none" && l) && (G = !0), G);
1649
1649
  }
1650
1650
  return L() ? /* @__PURE__ */ e.jsx(
1651
- $e,
1651
+ Be,
1652
1652
  {
1653
1653
  refetch: q,
1654
1654
  onChange: i,
@@ -1663,9 +1663,9 @@ function Ha({
1663
1663
  return /* @__PURE__ */ e.jsxs("aside", { className: "flex grow flex-col justify-between", children: [
1664
1664
  /* @__PURE__ */ e.jsxs("section", { className: "space-y-3 px-6 py-4", children: [
1665
1665
  /* @__PURE__ */ e.jsx(
1666
- $e,
1666
+ Be,
1667
1667
  {
1668
- refetch: B,
1668
+ refetch: $,
1669
1669
  items: o,
1670
1670
  title: "Connection",
1671
1671
  value: t || "",
@@ -1779,7 +1779,7 @@ function Nl({
1779
1779
  append: T,
1780
1780
  input: q,
1781
1781
  status: J,
1782
- handleInputChange: B,
1782
+ handleInputChange: $,
1783
1783
  handleSubmit: W,
1784
1784
  addToolResult: K,
1785
1785
  stop: ue
@@ -1799,7 +1799,7 @@ function Nl({
1799
1799
  }
1800
1800
  });
1801
1801
  te(() => {
1802
- t && s && (B({
1802
+ t && s && ($({
1803
1803
  target: { value: s }
1804
1804
  }), setTimeout(() => {
1805
1805
  W(), a(!1);
@@ -1809,7 +1809,7 @@ function Nl({
1809
1809
  W,
1810
1810
  s,
1811
1811
  a,
1812
- B
1812
+ $
1813
1813
  ]);
1814
1814
  const re = Ue(n);
1815
1815
  te(() => {
@@ -1931,7 +1931,7 @@ function Nl({
1931
1931
  setCurrentScope: d,
1932
1932
  containerRef: i,
1933
1933
  inputRef: r,
1934
- handleInputChange: B,
1934
+ handleInputChange: $,
1935
1935
  handleSubmit: W,
1936
1936
  stop: ue,
1937
1937
  chatStatus: J,
@@ -1977,7 +1977,7 @@ function Sl({
1977
1977
  });
1978
1978
  function J() {
1979
1979
  return /* @__PURE__ */ e.jsxs(Fs, { children: [
1980
- /* @__PURE__ */ e.jsx(Ls, { children: /* @__PURE__ */ e.jsx(Bs, { className: "size-3.5 text-muted-foreground/70 hover:text-muted-foreground" }) }),
1980
+ /* @__PURE__ */ e.jsx(Ls, { children: /* @__PURE__ */ e.jsx($s, { className: "size-3.5 text-muted-foreground/70 hover:text-muted-foreground" }) }),
1981
1981
  /* @__PURE__ */ e.jsxs(Es, { align: "end", children: [
1982
1982
  /* @__PURE__ */ e.jsx(ma, { children: "Options" }),
1983
1983
  /* @__PURE__ */ e.jsx(xa, {}),
@@ -2026,22 +2026,22 @@ function Sl({
2026
2026
  /* @__PURE__ */ e.jsx(Ds, { children: "What can I help you with?" }),
2027
2027
  C && C.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "mt-2 flex flex-wrap items-center gap-2", children: [
2028
2028
  /* @__PURE__ */ e.jsx("span", { className: "text-xs text-muted-foreground", children: "Tables in scope:" }),
2029
- C == null ? void 0 : C.map((B, W) => /* @__PURE__ */ e.jsxs(
2029
+ C == null ? void 0 : C.map(($, W) => /* @__PURE__ */ e.jsxs(
2030
2030
  "div",
2031
2031
  {
2032
2032
  className: "flex items-center gap-2 rounded-md bg-muted px-2 py-1 text-xs",
2033
2033
  children: [
2034
2034
  Ns({
2035
- schemaName: B.schemaName || "",
2036
- tableName: B.tableName || "",
2037
- modelName: B.datamodelName || "",
2038
- connectionType: B.connectionType || ""
2035
+ schemaName: $.schemaName || "",
2036
+ tableName: $.tableName || "",
2037
+ modelName: $.datamodelName || "",
2038
+ connectionType: $.connectionType || ""
2039
2039
  }),
2040
2040
  /* @__PURE__ */ e.jsx(
2041
2041
  "button",
2042
2042
  {
2043
2043
  onClick: () => {
2044
- k(B);
2044
+ k($);
2045
2045
  },
2046
2046
  children: /* @__PURE__ */ e.jsx(ds, { className: "size-3 text-muted-foreground hover:text-foreground" })
2047
2047
  }
@@ -2209,15 +2209,15 @@ function Tl(s, t) {
2209
2209
  }
2210
2210
  return (t === "string" ? String : Number)(s);
2211
2211
  }
2212
- function $a(s) {
2212
+ function Ba(s) {
2213
2213
  return s && s.map((t, a) => /* @__PURE__ */ Oe.createElement(t.tag, cs({
2214
2214
  key: a
2215
- }, t.attr), $a(t.child)));
2215
+ }, t.attr), Ba(t.child)));
2216
2216
  }
2217
2217
  function xe(s) {
2218
2218
  return (t) => /* @__PURE__ */ Oe.createElement(Ml, os({
2219
2219
  attr: cs({}, s.attr)
2220
- }, t), $a(s.child));
2220
+ }, t), Ba(s.child));
2221
2221
  }
2222
2222
  function Ml(s) {
2223
2223
  var t = (a) => {
@@ -2254,14 +2254,14 @@ function Fl({ sql: s }) {
2254
2254
  align: "end",
2255
2255
  className: "w-full min-w-fit max-w-[700px] p-3 pt-2",
2256
2256
  children: /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
2257
- /* @__PURE__ */ e.jsx($, { className: "text-xs font-semibold", children: "Resolved Query" }),
2257
+ /* @__PURE__ */ e.jsx(B, { className: "text-xs font-semibold", children: "Resolved Query" }),
2258
2258
  /* @__PURE__ */ e.jsx("div", { className: "flex grow flex-col space-y-2", children: /* @__PURE__ */ e.jsx(Ne, { className: "max-h-[250px] min-h-0 overflow-scroll", children: /* @__PURE__ */ e.jsx("p", { className: "overflow-auto rounded-md bg-muted p-2 font-mono text-xs leading-relaxed", children: s }) }) })
2259
2259
  ] })
2260
2260
  }
2261
2261
  )
2262
2262
  ] });
2263
2263
  }
2264
- function Ba(s) {
2264
+ function $a(s) {
2265
2265
  const { theme: t } = kt(), a = O((p) => p.theme), n = h((p) => p.frame), l = h((p) => p.card), r = h((p) => p.activeTabCardId), i = zt(), { refetch: o } = Le(l), { updateCardTab: d, setRunSql: u } = le(), m = Ue(), g = Ue({}), v = n.cards.find((p) => p.id === r), c = Fa(() => {
2266
2266
  let p = "";
2267
2267
  return s === "python" && (p = (v == null ? void 0 : v.python) || Ca), s === "sql" && (p = (v == null ? void 0 : v.sql) || ""), p;
@@ -2323,7 +2323,7 @@ function Ba(s) {
2323
2323
  return { handleEditorDidMount: x };
2324
2324
  }
2325
2325
  function Ll() {
2326
- const s = h((i) => i.card.sql), t = h((i) => i.sqlGen), { setCardSql: a, setSqlGen: n } = le(), { handleEditorDidMount: l } = Ba("sql");
2326
+ const s = h((i) => i.card.sql), t = h((i) => i.sqlGen), { setCardSql: a, setSqlGen: n } = le(), { handleEditorDidMount: l } = $a("sql");
2327
2327
  function r(i) {
2328
2328
  a(i), It(t) || n({});
2329
2329
  }
@@ -2352,7 +2352,7 @@ function Ll() {
2352
2352
  );
2353
2353
  }
2354
2354
  function El() {
2355
- const s = h((l) => l.card.python), { setCardPython: t } = le(), { handleEditorDidMount: a } = Ba("python");
2355
+ const s = h((l) => l.card.python), { setCardPython: t } = le(), { handleEditorDidMount: a } = $a("python");
2356
2356
  function n(l) {
2357
2357
  t(l);
2358
2358
  }
@@ -2436,7 +2436,7 @@ function Al() {
2436
2436
  setCardPreferences: b,
2437
2437
  setCardType: N,
2438
2438
  setCardPython: T
2439
- } = le(), q = h((I) => I.onSave), J = h((I) => I.onClose), B = h((I) => I.actions.setSqlGen), W = h((I) => I.runSql), K = h((I) => I.actions.setRunSql), ue = h((I) => I.actions.setCardCfg), re = h(
2439
+ } = le(), q = h((I) => I.onSave), J = h((I) => I.onClose), $ = h((I) => I.actions.setSqlGen), W = h((I) => I.runSql), K = h((I) => I.actions.setRunSql), ue = h((I) => I.actions.setCardCfg), re = h(
2440
2440
  (I) => I.actions.setIsSqlRunning
2441
2441
  ), {
2442
2442
  data: U,
@@ -2477,7 +2477,7 @@ function Al() {
2477
2477
  s.queryData || t({
2478
2478
  queryKey: ne,
2479
2479
  queryData: I
2480
- }), a.setQueryData(ne, null), a.removeQueries({ queryKey: ne, exact: !0 }), y(""), B({}), T(""), ue(void 0), R(""), b({}), N("bar");
2480
+ }), a.setQueryData(ne, null), a.removeQueries({ queryKey: ne, exact: !0 }), y(""), $({}), T(""), ue(void 0), R(""), b({}), N("bar");
2481
2481
  }
2482
2482
  function z(I, ce) {
2483
2483
  if (I.length === 0)
@@ -2523,7 +2523,7 @@ function Al() {
2523
2523
  }
2524
2524
  function G() {
2525
2525
  const { queryKey: I, queryData: ce } = s;
2526
- I && ce && a.setQueryData(I, ce), B({}), J == null || J();
2526
+ I && ce && a.setQueryData(I, ce), $({}), J == null || J();
2527
2527
  }
2528
2528
  function Ce() {
2529
2529
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
@@ -2534,7 +2534,7 @@ function Al() {
2534
2534
  role: "editor-filter-container",
2535
2535
  children: /* @__PURE__ */ e.jsxs("div", { className: "w-[99%]", children: [
2536
2536
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 pt-3", children: [
2537
- /* @__PURE__ */ e.jsx($, { className: "ml-6 text-xs font-semibold", children: "Filters" }),
2537
+ /* @__PURE__ */ e.jsx(B, { className: "ml-6 text-xs font-semibold", children: "Filters" }),
2538
2538
  r && /* @__PURE__ */ e.jsx(
2539
2539
  Je,
2540
2540
  {
@@ -2813,8 +2813,8 @@ function Rl({ card: s }) {
2813
2813
  const S = Object.keys(
2814
2814
  ((V = s.customCardPreferences) == null ? void 0 : V.dataInputCardIds) || {}
2815
2815
  ).map((N) => {
2816
- var J, B, W;
2817
- const T = (B = (J = s.customCardPreferences) == null ? void 0 : J.dataInputCardIds) == null ? void 0 : B[N].cardId, q = (W = g == null ? void 0 : g.cards) == null ? void 0 : W.find((K) => K.id === T);
2816
+ var J, $, W;
2817
+ const T = ($ = (J = s.customCardPreferences) == null ? void 0 : J.dataInputCardIds) == null ? void 0 : $[N].cardId, q = (W = g == null ? void 0 : g.cards) == null ? void 0 : W.find((K) => K.id === T);
2818
2818
  return q || null;
2819
2819
  });
2820
2820
  return /* @__PURE__ */ e.jsx("div", { className: "semaphor-custom mb-3 flex grow basis-0 flex-col space-y-2 overflow-y-auto", children: /* @__PURE__ */ e.jsxs(
@@ -2836,13 +2836,13 @@ function Rl({ card: s }) {
2836
2836
  Object.keys(
2837
2837
  ((f = s.customCardPreferences) == null ? void 0 : f.dataInputCardIds) || {}
2838
2838
  ).map((N) => {
2839
- var J, B, W;
2840
- const T = (B = (J = s.customCardPreferences) == null ? void 0 : J.dataInputCardIds) == null ? void 0 : B[N].cardId, q = (W = g == null ? void 0 : g.cards) == null ? void 0 : W.find(
2839
+ var J, $, W;
2840
+ const T = ($ = (J = s.customCardPreferences) == null ? void 0 : J.dataInputCardIds) == null ? void 0 : $[N].cardId, q = (W = g == null ? void 0 : g.cards) == null ? void 0 : W.find(
2841
2841
  (K) => K.id === T
2842
2842
  );
2843
2843
  if (q)
2844
2844
  return /* @__PURE__ */ e.jsx(
2845
- $t,
2845
+ Bt,
2846
2846
  {
2847
2847
  onLoadingStatus: p,
2848
2848
  onDataChange: c,
@@ -2919,7 +2919,7 @@ function Ua({
2919
2919
  ] });
2920
2920
  }
2921
2921
  return /* @__PURE__ */ e.jsxs(
2922
- Bt,
2922
+ $t,
2923
2923
  {
2924
2924
  role: "editor-visual-card",
2925
2925
  className: Y("relative flex h-full flex-col rounded-none", s),
@@ -2953,7 +2953,7 @@ function Ua({
2953
2953
  className: "my-1",
2954
2954
  text: o.title || o.column,
2955
2955
  onSave: (j) => i({ ...o, title: j }),
2956
- children: /* @__PURE__ */ e.jsx($, { children: o.title })
2956
+ children: /* @__PURE__ */ e.jsx(B, { children: o.title })
2957
2957
  }
2958
2958
  ),
2959
2959
  /* @__PURE__ */ e.jsx(ka, { filter: o })
@@ -3062,12 +3062,12 @@ const ca = ({ language: s, value: t, onChange: a }) => /* @__PURE__ */ e.jsx(
3062
3062
  onApply: n,
3063
3063
  onClose: l
3064
3064
  }) => /* @__PURE__ */ e.jsxs(ha, { className: "flex items-center", children: [
3065
- /* @__PURE__ */ e.jsx($, { className: "mr-2 text-red-500", children: s }),
3065
+ /* @__PURE__ */ e.jsx(B, { className: "mr-2 text-red-500", children: s }),
3066
3066
  /* @__PURE__ */ e.jsx(M, { disabled: !t, onClick: a, variant: "outline", children: "Reset" }),
3067
3067
  /* @__PURE__ */ e.jsx(M, { onClick: n, variant: "outline", children: "Apply" }),
3068
3068
  /* @__PURE__ */ e.jsx(M, { onClick: l, variant: "outline", children: "Close" })
3069
3069
  ] });
3070
- function $l() {
3070
+ function Bl() {
3071
3071
  const [s, t] = H(!1), [a, n] = H(""), [l, r] = H(""), [i, o] = H(""), [d, u] = H(""), m = h((k) => k.card), g = h((k) => k.card.customCfg), { data: v } = Le(m), { data: c } = Rs(m), { setCardCustomCfg: x, setCustomVisualCode: p } = le(), S = (k, C) => Se.transform(k, (E, R, V) => {
3072
3072
  if (!Se.isEqual(R, C[V]))
3073
3073
  if (Se.isArray(R) && Se.isArray(C[V]))
@@ -3173,7 +3173,7 @@ function Ja(s) {
3173
3173
  function Wa(s) {
3174
3174
  return xe({ tag: "svg", 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: [] }] })(s);
3175
3175
  }
3176
- function Bl(s) {
3176
+ function $l(s) {
3177
3177
  return xe({ tag: "svg", 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: [] }] })(s);
3178
3178
  }
3179
3179
  function Ka(s) {
@@ -3195,7 +3195,7 @@ function et(s) {
3195
3195
  const [t, a] = H(null);
3196
3196
  return te(() => {
3197
3197
  s && (async () => {
3198
- const r = (await import("./lucide-react-BCNS53ze.js"))[s];
3198
+ const r = (await import("./lucide-react-CslBFmME.js"))[s];
3199
3199
  a(r);
3200
3200
  })();
3201
3201
  }, [s]), t;
@@ -3285,7 +3285,7 @@ function Jl() {
3285
3285
  {
3286
3286
  onClick: () => u("line"),
3287
3287
  variant: "ghost",
3288
- children: /* @__PURE__ */ e.jsx($s, { className: "size-5" })
3288
+ children: /* @__PURE__ */ e.jsx(Bs, { className: "size-5" })
3289
3289
  }
3290
3290
  ),
3291
3291
  /* @__PURE__ */ e.jsx(
@@ -3430,7 +3430,7 @@ function Wl({
3430
3430
  case "bar":
3431
3431
  return /* @__PURE__ */ e.jsx(Ps, { className: t });
3432
3432
  case "line":
3433
- return /* @__PURE__ */ e.jsx($s, { className: t });
3433
+ return /* @__PURE__ */ e.jsx(Bs, { className: t });
3434
3434
  case "pie":
3435
3435
  return /* @__PURE__ */ e.jsx(Ea, { className: t });
3436
3436
  case "radar":
@@ -3467,7 +3467,7 @@ function Kl() {
3467
3467
  var t;
3468
3468
  const s = h((a) => a.card);
3469
3469
  return (t = s.customCardPreferences) == null || t.showCardHeader, le(), /* @__PURE__ */ e.jsxs(Fs, { children: [
3470
- /* @__PURE__ */ e.jsx(Ls, { asChild: !0, children: /* @__PURE__ */ e.jsx(Bs, { className: "size-4 cursor-pointer text-muted-foreground/70 transition-colors hover:text-muted-foreground" }) }),
3470
+ /* @__PURE__ */ e.jsx(Ls, { asChild: !0, children: /* @__PURE__ */ e.jsx($s, { className: "size-4 cursor-pointer text-muted-foreground/70 transition-colors hover:text-muted-foreground" }) }),
3471
3471
  /* @__PURE__ */ e.jsx(Es, { align: "start", className: "w-40 text-muted-foreground", children: /* @__PURE__ */ e.jsxs(
3472
3472
  an,
3473
3473
  {
@@ -3559,7 +3559,7 @@ function da() {
3559
3559
  displayTab: T
3560
3560
  });
3561
3561
  },
3562
- children: N.displayTab === !0 || N.displayTab === void 0 ? /* @__PURE__ */ e.jsx(cn, { className: "mr-2 size-3.5 text-muted-foreground hover:text-foreground" }) : /* @__PURE__ */ e.jsx($n, { className: "mr-2 size-3.5 text-muted-foreground hover:text-foreground" })
3562
+ children: N.displayTab === !0 || N.displayTab === void 0 ? /* @__PURE__ */ e.jsx(cn, { className: "mr-2 size-3.5 text-muted-foreground hover:text-foreground" }) : /* @__PURE__ */ e.jsx(Bn, { className: "mr-2 size-3.5 text-muted-foreground hover:text-foreground" })
3563
3563
  }
3564
3564
  );
3565
3565
  }
@@ -3645,9 +3645,9 @@ function da() {
3645
3645
  function y() {
3646
3646
  const N = [
3647
3647
  Object.keys(
3648
- u == null ? void 0 : u.records.reduce((B, W) => ({ ...B, ...W }), {})
3648
+ u == null ? void 0 : u.records.reduce(($, W) => ({ ...$, ...W }), {})
3649
3649
  ).join(","),
3650
- ...((u == null ? void 0 : u.records) || []).map((B) => Object.values(B).join(","))
3650
+ ...((u == null ? void 0 : u.records) || []).map(($) => Object.values($).join(","))
3651
3651
  ].join(`
3652
3652
  `), T = new Blob([N], { type: "text/csv" }), q = URL.createObjectURL(T), J = document.createElement("a");
3653
3653
  J.href = q, J.download = `${t.title}.csv`, J.click();
@@ -3657,7 +3657,7 @@ function da() {
3657
3657
  /* @__PURE__ */ e.jsxs("div", { className: "mb-0 flex min-h-10 items-center justify-end gap-2 px-6", children: [
3658
3658
  a && /* @__PURE__ */ e.jsxs("div", { className: "flex grow items-center gap-2", children: [
3659
3659
  /* @__PURE__ */ e.jsx(Jl, {}),
3660
- !["table", "custom"].includes(t.type) && /* @__PURE__ */ e.jsx($l, {}),
3660
+ !["table", "custom"].includes(t.type) && /* @__PURE__ */ e.jsx(Bl, {}),
3661
3661
  /* @__PURE__ */ e.jsx(Kl, {})
3662
3662
  ] }),
3663
3663
  !a && /* @__PURE__ */ e.jsxs("div", { className: "flex grow items-center gap-1", children: [
@@ -3668,7 +3668,7 @@ function da() {
3668
3668
  variant: "ghost",
3669
3669
  size: "icon",
3670
3670
  onClick: y,
3671
- children: /* @__PURE__ */ e.jsx(Bl, { className: "size-4" })
3671
+ children: /* @__PURE__ */ e.jsx($l, { className: "size-4" })
3672
3672
  }
3673
3673
  ),
3674
3674
  /* @__PURE__ */ e.jsx(
@@ -3678,7 +3678,7 @@ function da() {
3678
3678
  variant: "ghost",
3679
3679
  size: "icon",
3680
3680
  onClick: V,
3681
- children: /* @__PURE__ */ e.jsx(Bn, { strokeWidth: 1.5, className: "size-4" })
3681
+ children: /* @__PURE__ */ e.jsx($n, { strokeWidth: 1.5, className: "size-4" })
3682
3682
  }
3683
3683
  ),
3684
3684
  /* @__PURE__ */ e.jsx(
@@ -3747,7 +3747,7 @@ function Zl() {
3747
3747
  (a) => a.actions.setIsShowingVisual
3748
3748
  );
3749
3749
  return /* @__PURE__ */ e.jsxs("div", { className: "flex items-center space-x-2", children: [
3750
- /* @__PURE__ */ e.jsx($, { htmlFor: "visualize", children: "Chart" }),
3750
+ /* @__PURE__ */ e.jsx(B, { htmlFor: "visualize", children: "Chart" }),
3751
3751
  /* @__PURE__ */ e.jsx(
3752
3752
  on,
3753
3753
  {
@@ -3812,7 +3812,7 @@ function Ge({
3812
3812
  className: Y("space-y-4 [&_summary>svg]:open:-rotate-180", n),
3813
3813
  children: [
3814
3814
  /* @__PURE__ */ e.jsxs("summary", { className: "flex cursor-pointer list-none items-center justify-between gap-4", children: [
3815
- /* @__PURE__ */ e.jsx($, { children: t }),
3815
+ /* @__PURE__ */ e.jsx(B, { children: t }),
3816
3816
  /* @__PURE__ */ e.jsx(dn, { className: "h-4 w-4" })
3817
3817
  ] }),
3818
3818
  /* @__PURE__ */ e.jsx("div", { className: "transition-all ease-in-out", children: s })
@@ -3881,7 +3881,7 @@ function Yl() {
3881
3881
  return s ? j === "input" ? /* @__PURE__ */ e.jsx(
3882
3882
  de,
3883
3883
  {
3884
- className: `h-8 w-full ${Be}`,
3884
+ className: `h-8 w-full ${$e}`,
3885
3885
  value: ((k = s == null ? void 0 : s.settings) == null ? void 0 : k[A]) || "",
3886
3886
  onChange: (E) => {
3887
3887
  i({
@@ -3913,7 +3913,7 @@ function Yl() {
3913
3913
  function c(j) {
3914
3914
  const A = Object.entries((j == null ? void 0 : j.settings) || {});
3915
3915
  return /* @__PURE__ */ e.jsx("div", { className: "space-y-3", children: A.map(([D, k]) => /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
3916
- /* @__PURE__ */ e.jsx($, { children: k.title }),
3916
+ /* @__PURE__ */ e.jsx(B, { children: k.title }),
3917
3917
  v(
3918
3918
  k.ui,
3919
3919
  D,
@@ -3962,7 +3962,7 @@ function Yl() {
3962
3962
  }
3963
3963
  ),
3964
3964
  ((s == null ? void 0 : s.type) === "component" || (s == null ? void 0 : s.type) === void 0) && s && /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
3965
- /* @__PURE__ */ e.jsx($, { children: "Component" }),
3965
+ /* @__PURE__ */ e.jsx(B, { children: "Component" }),
3966
3966
  /* @__PURE__ */ e.jsx("div", { className: "space-y-2 px-2", children: o && /* @__PURE__ */ e.jsx(
3967
3967
  fe,
3968
3968
  {
@@ -3988,7 +3988,7 @@ function Yl() {
3988
3988
  /* @__PURE__ */ e.jsx(ze, { className: "my-4" }),
3989
3989
  ((S = n == null ? void 0 : n.customCardPreferences) == null ? void 0 : S.componentName) && /* @__PURE__ */ e.jsxs(Ge, { summary: "Component Settings", children: [
3990
3990
  u && u.dataInputs && /* @__PURE__ */ e.jsxs("div", { className: "space-y-3", children: [
3991
- /* @__PURE__ */ e.jsx($, { children: "Input Mapping" }),
3991
+ /* @__PURE__ */ e.jsx(B, { children: "Input Mapping" }),
3992
3992
  /* @__PURE__ */ e.jsx("div", { className: "px-2", children: g(u) })
3993
3993
  ] }),
3994
3994
  u && u.settings && /* @__PURE__ */ e.jsx("div", { className: "space-y-3", children: /* @__PURE__ */ e.jsx("div", { className: "px-2", children: c(u) }) })
@@ -4068,7 +4068,7 @@ function Ae() {
4068
4068
  );
4069
4069
  }
4070
4070
  return /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
4071
- /* @__PURE__ */ e.jsx($, { children: "On Click" }),
4071
+ /* @__PURE__ */ e.jsx(B, { children: "On Click" }),
4072
4072
  i == null ? void 0 : i.map((m, g) => {
4073
4073
  var v, c;
4074
4074
  return /* @__PURE__ */ e.jsx(
@@ -4152,7 +4152,7 @@ function ua(s, t) {
4152
4152
  return ((r = (l = (n = s == null ? void 0 : s.chartOptions) == null ? void 0 : n.scales) == null ? void 0 : l[a]) == null ? void 0 : r.type) || "linear";
4153
4153
  }
4154
4154
  function at() {
4155
- var B, W, K, ue, re, U;
4155
+ var $, W, K, ue, re, U;
4156
4156
  const [s, t] = H(!1), a = h((_) => {
4157
4157
  var F;
4158
4158
  return (F = _.card) == null ? void 0 : F.preferences;
@@ -4162,7 +4162,7 @@ function at() {
4162
4162
  }), l = Ta(a, n), [r, i] = H(
4163
4163
  ua(a)
4164
4164
  ), [o, d] = H(
4165
- ((K = (W = (B = a == null ? void 0 : a.chartOptions) == null ? void 0 : B.scales) == null ? void 0 : W[l]) == null ? void 0 : K.min) || ""
4165
+ ((K = (W = ($ = a == null ? void 0 : a.chartOptions) == null ? void 0 : $.scales) == null ? void 0 : W[l]) == null ? void 0 : K.min) || ""
4166
4166
  ), [u, m] = H(
4167
4167
  ((U = (re = (ue = a == null ? void 0 : a.chartOptions) == null ? void 0 : ue.scales) == null ? void 0 : re[l]) == null ? void 0 : U.max) || ""
4168
4168
  ), [g, v] = H(o || u ? "custom" : "auto"), [c, x] = H(""), [p, S] = H(0), [j, A] = H(""), [D, k] = H(""), [C, E] = H(""), R = h(
@@ -4189,7 +4189,7 @@ function at() {
4189
4189
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
4190
4190
  /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-6 items-center gap-2", children: [
4191
4191
  /* @__PURE__ */ e.jsx(
4192
- $,
4192
+ B,
4193
4193
  {
4194
4194
  className: "col-span-2 hover:cursor-pointer hover:underline",
4195
4195
  htmlFor: "currency",
@@ -4233,7 +4233,7 @@ function at() {
4233
4233
  ] })
4234
4234
  ] }),
4235
4235
  /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-9 items-center gap-2", children: [
4236
- /* @__PURE__ */ e.jsx($, { className: "col-span-3", htmlFor: "format", children: "Decimals" }),
4236
+ /* @__PURE__ */ e.jsx(B, { className: "col-span-3", htmlFor: "format", children: "Decimals" }),
4237
4237
  /* @__PURE__ */ e.jsx(
4238
4238
  de,
4239
4239
  {
@@ -4249,7 +4249,7 @@ function at() {
4249
4249
  function q() {
4250
4250
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
4251
4251
  /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-3 items-center gap-2", children: [
4252
- /* @__PURE__ */ e.jsx($, { htmlFor: "range", children: "Range" }),
4252
+ /* @__PURE__ */ e.jsx(B, { htmlFor: "range", children: "Range" }),
4253
4253
  /* @__PURE__ */ e.jsx(
4254
4254
  de,
4255
4255
  {
@@ -4270,7 +4270,7 @@ function at() {
4270
4270
  )
4271
4271
  ] }),
4272
4272
  /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-3 items-center gap-2", children: [
4273
- /* @__PURE__ */ e.jsx($, { htmlFor: "step-size", children: "Step Size" }),
4273
+ /* @__PURE__ */ e.jsx(B, { htmlFor: "step-size", children: "Step Size" }),
4274
4274
  /* @__PURE__ */ e.jsx(
4275
4275
  de,
4276
4276
  {
@@ -4329,7 +4329,7 @@ function at() {
4329
4329
  ] }),
4330
4330
  /* @__PURE__ */ e.jsxs("div", { className: "grid gap-2", children: [
4331
4331
  /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-3 items-center gap-2", children: [
4332
- /* @__PURE__ */ e.jsx($, { htmlFor: "scale", children: "Type" }),
4332
+ /* @__PURE__ */ e.jsx(B, { htmlFor: "scale", children: "Type" }),
4333
4333
  /* @__PURE__ */ e.jsxs(
4334
4334
  ge,
4335
4335
  {
@@ -4348,7 +4348,7 @@ function at() {
4348
4348
  )
4349
4349
  ] }),
4350
4350
  r == "linear" && /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-3 items-center gap-2 py-1", children: [
4351
- /* @__PURE__ */ e.jsx($, { htmlFor: "scale-option", children: "Setup" }),
4351
+ /* @__PURE__ */ e.jsx(B, { htmlFor: "scale-option", children: "Setup" }),
4352
4352
  /* @__PURE__ */ e.jsxs(
4353
4353
  fs,
4354
4354
  {
@@ -4521,12 +4521,12 @@ function tt() {
4521
4521
  }
4522
4522
  return r.length === 0 ? null : /* @__PURE__ */ e.jsxs("div", { className: "space-y-4", children: [
4523
4523
  /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
4524
- /* @__PURE__ */ e.jsx($, { children: n }),
4524
+ /* @__PURE__ */ e.jsx(B, { children: n }),
4525
4525
  /* @__PURE__ */ e.jsx("div", { className: "my-1 space-y-1", children: /* @__PURE__ */ e.jsx("div", { className: "rounded-md bg-muted/70 px-3 py-2 hover:bg-muted", children: /* @__PURE__ */ e.jsx("p", { title: o[0], children: nt(o[0]) }) }) })
4526
4526
  ] }),
4527
4527
  /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
4528
4528
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between gap-5", children: [
4529
- /* @__PURE__ */ e.jsx($, { children: l }),
4529
+ /* @__PURE__ */ e.jsx(B, { children: l }),
4530
4530
  /* @__PURE__ */ e.jsx(at, {})
4531
4531
  ] }),
4532
4532
  /* @__PURE__ */ e.jsx("div", { className: "my-1 max-h-[125px] space-y-1 overflow-y-auto", children: d.map((u, m) => /* @__PURE__ */ e.jsx(sr, { col: u, idx: m }, u)) })
@@ -4582,7 +4582,7 @@ function sr({ col: s, idx: t }) {
4582
4582
  }
4583
4583
  ),
4584
4584
  /* @__PURE__ */ e.jsx(
4585
- $s,
4585
+ Bs,
4586
4586
  {
4587
4587
  onClick: () => i("line"),
4588
4588
  className: "invisible size-4 cursor-pointer text-muted-foreground hover:text-foreground group-hover:visible"
@@ -4671,7 +4671,7 @@ function He() {
4671
4671
  }
4672
4672
  const i = s == null ? void 0 : s.find((o) => o.id === t.filterId);
4673
4673
  return /* @__PURE__ */ e.jsxs("div", { className: "space-y-3", children: [
4674
- /* @__PURE__ */ e.jsx($, { children: "Card Filter" }),
4674
+ /* @__PURE__ */ e.jsx(B, { children: "Card Filter" }),
4675
4675
  /* @__PURE__ */ e.jsx(ar, { onSelect: r, columns: n }),
4676
4676
  i && /* @__PURE__ */ e.jsx(Ma, { filter: i })
4677
4677
  ] });
@@ -4749,7 +4749,7 @@ function tr({
4749
4749
  target: "_blank",
4750
4750
  onClick: (t) => t.stopPropagation(),
4751
4751
  className: "text-blue-700",
4752
- href: "https://docs.semaphor.cloud/concepts/visuals#line-chart",
4752
+ href: "https://docs.semaphor.cloud/docs/charts/bar-line-area",
4753
4753
  children: "example"
4754
4754
  }
4755
4755
  ),
@@ -4845,7 +4845,7 @@ function nr({
4845
4845
  target: "_blank",
4846
4846
  onClick: (r) => r.stopPropagation(),
4847
4847
  className: "text-blue-700",
4848
- href: "https://docs.semaphor.cloud/concepts/visuals#pie-chart",
4848
+ href: "https://docs.semaphor.cloud/docs/charts/bubble",
4849
4849
  children: "example"
4850
4850
  }
4851
4851
  ),
@@ -5063,13 +5063,13 @@ function cr() {
5063
5063
  }
5064
5064
  }
5065
5065
  ),
5066
- /* @__PURE__ */ e.jsx($, { children: "Format Number" })
5066
+ /* @__PURE__ */ e.jsx(B, { children: "Format Number" })
5067
5067
  ] }),
5068
5068
  ((u = s == null ? void 0 : s.formatNumber) == null ? void 0 : u.enabled) === !0 && /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
5069
5069
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 p-2", children: [
5070
5070
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
5071
5071
  /* @__PURE__ */ e.jsxs("div", { className: "w-full space-y-1", children: [
5072
- /* @__PURE__ */ e.jsx($, { children: "Locale" }),
5072
+ /* @__PURE__ */ e.jsx(B, { children: "Locale" }),
5073
5073
  /* @__PURE__ */ e.jsxs(
5074
5074
  ge,
5075
5075
  {
@@ -5095,7 +5095,7 @@ function cr() {
5095
5095
  )
5096
5096
  ] }),
5097
5097
  /* @__PURE__ */ e.jsxs("div", { className: "w-full space-y-1", children: [
5098
- /* @__PURE__ */ e.jsx($, { children: "Currency" }),
5098
+ /* @__PURE__ */ e.jsx(B, { children: "Currency" }),
5099
5099
  /* @__PURE__ */ e.jsxs(
5100
5100
  ge,
5101
5101
  {
@@ -5123,7 +5123,7 @@ function cr() {
5123
5123
  ] }),
5124
5124
  /* @__PURE__ */ e.jsxs("div", { className: "flex gap-2", children: [
5125
5125
  /* @__PURE__ */ e.jsxs("div", { className: "w-full space-y-1", children: [
5126
- /* @__PURE__ */ e.jsx($, { children: "Decimals" }),
5126
+ /* @__PURE__ */ e.jsx(B, { children: "Decimals" }),
5127
5127
  /* @__PURE__ */ e.jsxs(
5128
5128
  ge,
5129
5129
  {
@@ -5145,7 +5145,7 @@ function cr() {
5145
5145
  )
5146
5146
  ] }),
5147
5147
  /* @__PURE__ */ e.jsxs("div", { className: "w-full space-y-1", children: [
5148
- /* @__PURE__ */ e.jsx($, { children: "Suffix" }),
5148
+ /* @__PURE__ */ e.jsx(B, { children: "Suffix" }),
5149
5149
  /* @__PURE__ */ e.jsx(
5150
5150
  de,
5151
5151
  {
@@ -5195,7 +5195,7 @@ function dr() {
5195
5195
  target: "_blank",
5196
5196
  onClick: (s) => s.stopPropagation(),
5197
5197
  className: "text-blue-700",
5198
- href: "https://docs.semaphor.cloud/concepts/visuals#kpi",
5198
+ href: "https://docs.semaphor.cloud/docs/charts/kpi",
5199
5199
  children: "example"
5200
5200
  }
5201
5201
  ),
@@ -5368,13 +5368,13 @@ function xr() {
5368
5368
  });
5369
5369
  },
5370
5370
  value: a,
5371
- className: `h-9 w-full ${Be}`,
5371
+ className: `h-9 w-full ${$e}`,
5372
5372
  placeholder: "Custom URL"
5373
5373
  }
5374
5374
  ),
5375
5375
  r && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
5376
5376
  /* @__PURE__ */ e.jsxs("div", { className: "space-y-1", children: [
5377
- /* @__PURE__ */ e.jsx($, { children: "Map Object" }),
5377
+ /* @__PURE__ */ e.jsx(B, { children: "Map Object" }),
5378
5378
  /* @__PURE__ */ e.jsx(
5379
5379
  fe,
5380
5380
  {
@@ -5396,7 +5396,7 @@ function xr() {
5396
5396
  )
5397
5397
  ] }),
5398
5398
  /* @__PURE__ */ e.jsxs("div", { className: "space-y-1", children: [
5399
- /* @__PURE__ */ e.jsx($, { children: "Projection" }),
5399
+ /* @__PURE__ */ e.jsx(B, { children: "Projection" }),
5400
5400
  /* @__PURE__ */ e.jsx(
5401
5401
  fe,
5402
5402
  {
@@ -5418,7 +5418,7 @@ function xr() {
5418
5418
  )
5419
5419
  ] }),
5420
5420
  /* @__PURE__ */ e.jsxs("div", { className: "space-y-1", children: [
5421
- /* @__PURE__ */ e.jsx($, { children: "Colors" }),
5421
+ /* @__PURE__ */ e.jsx(B, { children: "Colors" }),
5422
5422
  /* @__PURE__ */ e.jsx(
5423
5423
  fe,
5424
5424
  {
@@ -5446,7 +5446,7 @@ function xr() {
5446
5446
  /* @__PURE__ */ e.jsx(
5447
5447
  de,
5448
5448
  {
5449
- className: `h-9 w-full ${Be}`,
5449
+ className: `h-9 w-full ${$e}`,
5450
5450
  type: "number",
5451
5451
  step: 0.1,
5452
5452
  value: ((D = (A = s.preferences) == null ? void 0 : A.mapVisualOptions) == null ? void 0 : D.projectionScale) || 1,
@@ -5462,11 +5462,11 @@ function xr() {
5462
5462
  }
5463
5463
  }
5464
5464
  ),
5465
- /* @__PURE__ */ e.jsx($, { children: "X" }),
5465
+ /* @__PURE__ */ e.jsx(B, { children: "X" }),
5466
5466
  /* @__PURE__ */ e.jsx(
5467
5467
  de,
5468
5468
  {
5469
- className: `h-9 w-full ${Be}`,
5469
+ className: `h-9 w-full ${$e}`,
5470
5470
  type: "number",
5471
5471
  step: 10,
5472
5472
  value: ((E = (C = (k = s.preferences) == null ? void 0 : k.mapVisualOptions) == null ? void 0 : C.projectionOffset) == null ? void 0 : E[0]) || 0,
@@ -5485,11 +5485,11 @@ function xr() {
5485
5485
  }
5486
5486
  }
5487
5487
  ),
5488
- /* @__PURE__ */ e.jsx($, { children: "Y" }),
5488
+ /* @__PURE__ */ e.jsx(B, { children: "Y" }),
5489
5489
  /* @__PURE__ */ e.jsx(
5490
5490
  de,
5491
5491
  {
5492
- className: `h-9 w-full ${Be}`,
5492
+ className: `h-9 w-full ${$e}`,
5493
5493
  type: "number",
5494
5494
  step: 10,
5495
5495
  value: ((y = (V = (R = s.preferences) == null ? void 0 : R.mapVisualOptions) == null ? void 0 : V.projectionOffset) == null ? void 0 : y[1]) || 0,
@@ -5550,8 +5550,7 @@ function ss({
5550
5550
  docContent: t,
5551
5551
  suffix: a = "Chart"
5552
5552
  }) {
5553
- let n = "pie-chart";
5554
- return s === "radar" && (n = "radar-chart"), /* @__PURE__ */ e.jsx("div", { className: "space-y-6 px-6 py-2", children: /* @__PURE__ */ e.jsxs(Ee, { defaultValue: ["item-2"], type: "multiple", children: [
5553
+ return /* @__PURE__ */ e.jsx("div", { className: "space-y-6 px-6 py-2", children: /* @__PURE__ */ e.jsxs(Ee, { defaultValue: ["item-2"], type: "multiple", children: [
5555
5554
  /* @__PURE__ */ e.jsxs(Q, { value: "item-1", children: [
5556
5555
  /* @__PURE__ */ e.jsx(Z, { children: `${Hs(s)} ${a}` }),
5557
5556
  /* @__PURE__ */ e.jsx(X, { children: t || /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 font-mono text-xs", children: [
@@ -5566,9 +5565,9 @@ function ss({
5566
5565
  "a",
5567
5566
  {
5568
5567
  target: "_blank",
5569
- onClick: (l) => l.stopPropagation(),
5568
+ onClick: (n) => n.stopPropagation(),
5570
5569
  className: "text-blue-700",
5571
- href: `https://docs.semaphor.cloud/concepts/visuals#${n}`,
5570
+ href: "https://docs.semaphor.cloud/docs/charts/pie-donut-polar",
5572
5571
  children: "example"
5573
5572
  }
5574
5573
  ),
@@ -5602,7 +5601,7 @@ function fr() {
5602
5601
  ), { setSortChart: t } = le();
5603
5602
  function a() {
5604
5603
  return /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
5605
- /* @__PURE__ */ e.jsx($, { children: "Sort" }),
5604
+ /* @__PURE__ */ e.jsx(B, { children: "Sort" }),
5606
5605
  /* @__PURE__ */ e.jsx(
5607
5606
  fe,
5608
5607
  {
@@ -5648,7 +5647,7 @@ function fr() {
5648
5647
  target: "_blank",
5649
5648
  onClick: (n) => n.stopPropagation(),
5650
5649
  className: "text-blue-700",
5651
- href: "https://docs.semaphor.cloud/concepts/visuals#stacked-chart",
5650
+ href: "https://docs.semaphor.cloud/docs/charts/stacked",
5652
5651
  children: "example"
5653
5652
  }
5654
5653
  ),
@@ -5716,7 +5715,7 @@ const jr = /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 font-mono text-
5716
5715
  target: "_blank",
5717
5716
  onClick: (s) => s.stopPropagation(),
5718
5717
  className: "text-blue-700",
5719
- href: "https://docs.semaphor.cloud/concepts/visuals#pyramid-chart",
5718
+ href: "https://docs.semaphor.cloud/docs/charts/tornado",
5720
5719
  children: "example"
5721
5720
  }
5722
5721
  ),
@@ -5732,7 +5731,7 @@ const jr = /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 font-mono text-
5732
5731
  target: "_blank",
5733
5732
  onClick: (s) => s.stopPropagation(),
5734
5733
  className: "text-blue-700",
5735
- href: "https://docs.semaphor.cloud/concepts/visuals#range-charts",
5734
+ href: "https://docs.semaphor.cloud/docs/charts/range",
5736
5735
  children: "example"
5737
5736
  }
5738
5737
  ),
@@ -5748,7 +5747,7 @@ const jr = /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 font-mono text-
5748
5747
  target: "_blank",
5749
5748
  onClick: (s) => s.stopPropagation(),
5750
5749
  className: "text-blue-700",
5751
- href: "https://docs.semaphor.cloud/concepts/visuals#text-visual",
5750
+ href: "https://docs.semaphor.cloud/docs/charts/text",
5752
5751
  children: "example"
5753
5752
  }
5754
5753
  ),
@@ -5924,7 +5923,7 @@ function kr() {
5924
5923
  );
5925
5924
  return /* @__PURE__ */ e.jsxs("section", { className: "relative flex min-w-[320px] grow flex-col border-l px-1", children: [
5926
5925
  /* @__PURE__ */ e.jsxs("div", { className: "mt-4 flex items-center justify-between gap-2 px-3", children: [
5927
- /* @__PURE__ */ e.jsx($, { className: "px-2 text-lg", children: "Filters" }),
5926
+ /* @__PURE__ */ e.jsx(B, { className: "px-2 text-lg", children: "Filters" }),
5928
5927
  /* @__PURE__ */ e.jsx(
5929
5928
  M,
5930
5929
  {
@@ -6077,11 +6076,11 @@ export {
6077
6076
  Vn as B,
6078
6077
  qn as C,
6079
6078
  Fr as D,
6080
- Bs as E,
6081
- Bn as F,
6079
+ $s as E,
6080
+ $n as F,
6082
6081
  Un as G,
6083
6082
  Gn as H,
6084
- $e as I,
6083
+ Be as I,
6085
6084
  Ra as J,
6086
6085
  cl as K,
6087
6086
  Kn as L,
@@ -6093,7 +6092,7 @@ export {
6093
6092
  Us as T,
6094
6093
  An as a,
6095
6094
  Ps as b,
6096
- $s as c,
6095
+ Bs as c,
6097
6096
  La as d,
6098
6097
  Ea as e,
6099
6098
  Va as f,
@@ -6101,7 +6100,7 @@ export {
6101
6100
  _n as h,
6102
6101
  Hn as i,
6103
6102
  Pn as j,
6104
- $n as k,
6103
+ Bn as k,
6105
6104
  Jn as l,
6106
6105
  Wn as m,
6107
6106
  Qn as n,