react-semaphor 0.0.308 → 0.0.309

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,7 +1,7 @@
1
- import { c as j, p as pa, u as T, n as Fa, o as Se, q as La, r as Ea, s as D, j as Aa, t as Va, v as qa, w as Ra, x as ja, L as $, y as oe, z as dt, A as ut, E as ht, H as mt, J as os, K as cs, M as ds, N as Za, O as X, Q as Ye, R as h, V as us, F as pt, W as Xe, Y as Ze, Z as _a, _ as ft, $ as Ha, a0 as ye, a1 as ve, a2 as xe, a3 as Ce, a4 as Te, a5 as Ne, a6 as J, T as $a, a7 as Pa, a8 as Ba, a9 as Ua, aa as gt, ab as bt, ac as ge, ad as hs, ae as ms, af as yt, ag as ps, C as fs, ah as gs, ai as vt, B as bs, aj as fa, ak as ys, al as et, am as xt, an as Oa, ao as fe, ap as Ie, aq as he, ar as ga, as as Ct, at as vs, au as xs, av as Nt, aw as Cs, ax as Ns, ay as Ss, az as ws, aA as ks, aB as _e, aC as za, aD as Os, a as zs, aE as Je, aF as Ia, aG as je, aH as Ta, aI as Is, aJ as Ts, aK as Ds, aL as Ms, aM as Fs, aN as Ls, aO as ka, aP as Es, aQ as at, aR as As, aS as tt, aT as Vs, aU as qs, aV as Rs, aW as js, aX as St, aY as ue, aZ as Ga, a_ as wt, a$ as _s, b0 as Hs, b1 as oa, b2 as $s, b3 as Ps, b4 as Bs, b5 as Us, b6 as Gs, b7 as Ks, b8 as Qs, l as Js, b9 as ba, ba as kt, bb as Ot, bc as zt, bd as ca, be as It, bf as da, bg as st, bh as Ws, bi as Ys, bj as ya, bk as va, bl as xa, bm as Xs, bn as Zs, X as Tt, bo as en, bp as an, bq as tn, br as Ca, bs as Le, f as sn, bt as Qe, bu as Dt, bv as nn, bw as ln, bx as ua, by as rn, bz as on, bA as cn, bB as nt, bC as dn, bD as un, bE as hn, bF as mn, bG as pn, bH as fn, bI as gn, bJ as bn, bK as Ee, bL as G, bM as K, bN as Ka, bO as Q, bP as yn, bQ as Mt, bR as vn, bS as xn, bT as Cn, bU as Nn, bV as Sn, bW as wn, bX as kn, bY as On, bZ as zn } from "./index-QE3P67zM.js";
1
+ import { c as j, p as pa, u as I, n as Fa, o as Se, q as La, r as Ea, s as D, j as Aa, t as Va, v as qa, w as Ra, x as ja, L as $, y as oe, z as dt, A as ut, E as ht, H as mt, J as os, K as cs, M as ds, N as Za, O as X, Q as Ye, R as h, V as us, F as pt, W as Xe, Y as Ze, Z as _a, _ as ft, $ as Ha, a0 as ye, a1 as ve, a2 as xe, a3 as Ce, a4 as Ie, a5 as Ne, a6 as J, T as $a, a7 as Pa, a8 as Ba, a9 as Ua, aa as gt, ab as bt, ac as ge, ad as hs, ae as ms, af as yt, ag as ps, C as fs, ah as gs, ai as vt, B as bs, aj as fa, ak as ys, al as et, am as xt, an as Oa, ao as fe, ap as Te, aq as he, ar as ga, as as Ct, at as vs, au as xs, av as Nt, aw as Cs, ax as Ns, ay as Ss, az as ws, aA as ks, aB as _e, aC as za, aD as Os, a as zs, aE as Je, aF as Ta, aG as je, aH as Ia, aI as Ts, aJ as Is, aK as Ds, aL as Ms, aM as Fs, aN as Ls, aO as ka, aP as Es, aQ as at, aR as As, aS as tt, aT as Vs, aU as qs, aV as Rs, aW as js, aX as St, aY as ue, aZ as Ga, a_ as wt, a$ as _s, b0 as Hs, b1 as oa, b2 as $s, b3 as Ps, b4 as Bs, b5 as Us, b6 as Gs, b7 as Ks, b8 as Qs, l as Js, b9 as ba, ba as kt, bb as Ot, bc as zt, bd as ca, be as Tt, bf as da, bg as st, bh as Ws, bi as Ys, bj as ya, bk as va, bl as xa, bm as Xs, bn as Zs, X as It, bo as en, bp as an, bq as tn, br as Ca, bs as Le, f as sn, bt as Qe, bu as Dt, bv as nn, bw as ln, bx as ua, by as rn, bz as on, bA as cn, bB as nt, bC as dn, bD as un, bE as hn, bF as mn, bG as pn, bH as fn, bI as gn, bJ as bn, bK as Ee, bL as G, bM as K, bN as Ka, bO as Q, bP as yn, bQ as Mt, bR as vn, bS as xn, bT as Cn, bU as Nn, bV as Sn, bW as wn, bX as kn, bY as On, bZ as zn } from "./index-T9SJNSdH.js";
2
2
  import { jsxs as s, jsx as e, Fragment as Y } from "react/jsx-runtime";
3
3
  import * as lt from "react";
4
- import De, { useState as _, useMemo as Da, useEffect as ae, useRef as ea, Suspense as In } from "react";
4
+ import De, { useState as _, useMemo as Da, useEffect as ae, useRef as ea, Suspense as Tn } from "react";
5
5
  import "react-dom";
6
6
  /**
7
7
  * @license lucide-react v0.453.0 - ISC
@@ -9,7 +9,7 @@ import "react-dom";
9
9
  * This source code is licensed under the ISC license.
10
10
  * See the LICENSE file in the root directory of this source tree.
11
11
  */
12
- const Tn = j("Box", [
12
+ const In = j("Box", [
13
13
  [
14
14
  "path",
15
15
  {
@@ -602,7 +602,7 @@ async function nl(a, n) {
602
602
  }) : null;
603
603
  }
604
604
  function ll() {
605
- const [a, n] = _(""), [t, l] = _(!1), r = T((v) => v.lenses), { setLenses: o, setSelectedLensId: i } = Fa(), [d, c] = _(!1), [f, u] = _(!1), C = T((v) => v.dashboard), b = T((v) => v.filterValues), { authToken: p } = Se();
605
+ const [a, n] = _(""), [t, l] = _(!1), r = I((v) => v.lenses), { setLenses: o, setSelectedLensId: i } = Fa(), [d, c] = _(!1), [f, u] = _(!1), C = I((v) => v.dashboard), b = I((v) => v.filterValues), { authToken: p } = Se();
606
606
  async function y() {
607
607
  c(!0);
608
608
  const v = _t(
@@ -663,7 +663,7 @@ function ll() {
663
663
  ] });
664
664
  }
665
665
  function rl() {
666
- const [a, n] = _(!1), t = T((u) => u.lenses), l = T((u) => u.selectedLensId), { setLenses: r, setSelectedLensId: o } = Fa(), { authToken: i } = Se();
666
+ const [a, n] = _(!1), t = I((u) => u.lenses), l = I((u) => u.selectedLensId), { setLenses: r, setSelectedLensId: o } = Fa(), { authToken: i } = Se();
667
667
  async function d(u) {
668
668
  o(u);
669
669
  }
@@ -754,21 +754,21 @@ function rl() {
754
754
  ] });
755
755
  }
756
756
  function il() {
757
- const { authToken: a } = Se(), n = T((g) => g.lenses), t = T((g) => g.selectedLensId), l = n == null ? void 0 : n.find((g) => g.id === t), r = T((g) => g.dashboard);
758
- T((g) => g.selectedSheetId);
759
- const o = T(
757
+ const { authToken: a } = Se(), n = I((g) => g.lenses), t = I((g) => g.selectedLensId), l = n == null ? void 0 : n.find((g) => g.id === t), r = I((g) => g.dashboard);
758
+ I((g) => g.selectedSheetId);
759
+ const o = I(
760
760
  (g) => g.isDashboardEditing
761
761
  ), i = h(
762
762
  (g) => g.selectedConnectionId
763
- ), [d, c] = _(!1), f = T((g) => g.filterValues), u = T((g) => g.isVisualEditing), C = T((g) => g.showFilters);
764
- T(
763
+ ), [d, c] = _(!1), f = I((g) => g.filterValues), u = I((g) => g.isVisualEditing), C = I((g) => g.showFilters);
764
+ I(
765
765
  (g) => g.showDashboardJSON
766
766
  );
767
- const b = T((g) => g.onSaveFunction), p = T(
767
+ const b = I((g) => g.onSaveFunction), p = I(
768
768
  (g) => g.actions.setShowFilters
769
- ), { addFrame: y, setSelectedFrameId: v } = T(
769
+ ), { addFrame: y, setSelectedFrameId: v } = I(
770
770
  (g) => g.actions
771
- ), { getSelectedSheet: F, setIsDashboardEditing: S, setShowDashboardJSON: E } = T((g) => g.actions), M = F(), { tenantId: R, endUserId: w } = Da(
771
+ ), { getSelectedSheet: F, setIsDashboardEditing: S, setShowDashboardJSON: E } = I((g) => g.actions), M = F(), { tenantId: R, endUserId: w } = Da(
772
772
  () => us(a == null ? void 0 : a.accessToken),
773
773
  [a == null ? void 0 : a.accessToken]
774
774
  ), O = Da(() => R || w, [R, w]), A = () => {
@@ -790,12 +790,12 @@ function il() {
790
790
  type: "bar",
791
791
  sql: "select COUNT(*) from YOUR_TABLE",
792
792
  data: []
793
- }, I = {
793
+ }, T = {
794
794
  id: Xe(),
795
795
  cards: [g],
796
796
  activeCardId: g.id
797
797
  };
798
- y(M.id, I), v(I.id);
798
+ y(M.id, T), v(T.id);
799
799
  }, m = () => {
800
800
  S(!0);
801
801
  };
@@ -804,9 +804,9 @@ function il() {
804
804
  return;
805
805
  const g = _t(
806
806
  r
807
- ), I = JSON.stringify(g), V = {
807
+ ), T = JSON.stringify(g), V = {
808
808
  ...l,
809
- template: I,
809
+ template: T,
810
810
  filterValues: f
811
811
  };
812
812
  await Ma(V, a == null ? void 0 : a.accessToken), Ze.success("Lens saved"), b == null || b(g), c(!1);
@@ -910,7 +910,7 @@ function Ke({
910
910
  if (a === "Table")
911
911
  return /* @__PURE__ */ e($a, { className: "size-4" });
912
912
  if (a === "Model")
913
- return /* @__PURE__ */ e(Tn, { className: "size-4" });
913
+ return /* @__PURE__ */ e(In, { className: "size-4" });
914
914
  }
915
915
  return /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
916
916
  f && /* @__PURE__ */ e("div", { className: "shrink-0", children: o ? /* @__PURE__ */ s(_a, { children: [
@@ -933,7 +933,7 @@ function Ke({
933
933
  )
934
934
  }
935
935
  ),
936
- /* @__PURE__ */ e(Ce, { children: /* @__PURE__ */ s(Te, { children: [
936
+ /* @__PURE__ */ e(Ce, { children: /* @__PURE__ */ s(Ie, { children: [
937
937
  l ? /* @__PURE__ */ e(Ne, { children: "Loading..." }) : /* @__PURE__ */ e(Ne, { children: a }),
938
938
  /* @__PURE__ */ s(Y, { children: [
939
939
  d && /* @__PURE__ */ e(J, { value: "none", children: "None" }, "none"),
@@ -1046,9 +1046,9 @@ function cl({
1046
1046
  (m) => m.selectedSchemaName
1047
1047
  ), c = h((m) => m.selectedTableName), f = h(
1048
1048
  (m) => m.selectedDatamodelId
1049
- ), u = T(
1049
+ ), u = I(
1050
1050
  (m) => m.dashboard.aiScopeTables
1051
- ), { setAIScopeTables: C } = T((m) => m.actions), b = h((m) => m.actions.setRunSql), p = h((m) => m.actions.setSqlGen), y = h(
1051
+ ), { setAIScopeTables: C } = I((m) => m.actions), b = h((m) => m.actions.setRunSql), p = h((m) => m.actions.setSqlGen), y = h(
1052
1052
  (m) => m.actions.setIsShowingVisual
1053
1053
  ), v = h((m) => m.actions.setCardSql), { connectionType: F, modelItems: S } = He();
1054
1054
  function E(m) {
@@ -1057,8 +1057,8 @@ function cl({
1057
1057
  p(N);
1058
1058
  const g = (V = S == null ? void 0 : S.find(
1059
1059
  (P) => P.id === f
1060
- )) == null ? void 0 : V.name, I = bt(N, ge(a), ge(n), g);
1061
- I && (v(I), b(!0));
1060
+ )) == null ? void 0 : V.name, T = bt(N, ge(a), ge(n), g);
1061
+ T && (v(T), b(!0));
1062
1062
  }
1063
1063
  function M() {
1064
1064
  return (u == null ? void 0 : u.find(
@@ -1073,12 +1073,12 @@ function cl({
1073
1073
  databaseName: i,
1074
1074
  schemaName: d,
1075
1075
  tableName: c
1076
- }, I = [...u || [], N].filter(
1076
+ }, T = [...u || [], N].filter(
1077
1077
  (V, P, U) => U.findIndex(
1078
1078
  (Z) => Z.connectinonId === V.connectinonId && Z.tableName === V.tableName
1079
1079
  ) === P
1080
1080
  );
1081
- C(I), Ze.success(`Added '${c}' to AI Scope`, {
1081
+ C(T), Ze.success(`Added '${c}' to AI Scope`, {
1082
1082
  position: "top-right",
1083
1083
  duration: 2500,
1084
1084
  richColors: !0
@@ -1242,7 +1242,7 @@ function He(a, n) {
1242
1242
  isError: w
1243
1243
  } = fe({
1244
1244
  queryKey: ["connections"],
1245
- queryFn: () => Ie(
1245
+ queryFn: () => Te(
1246
1246
  "https://semaphor.cloud/api/v1/connections",
1247
1247
  (l == null ? void 0 : l.accessToken) || ""
1248
1248
  ),
@@ -1254,7 +1254,7 @@ function He(a, n) {
1254
1254
  isError: m
1255
1255
  } = fe({
1256
1256
  queryKey: ["models", r],
1257
- queryFn: () => Ie(
1257
+ queryFn: () => Te(
1258
1258
  "https://semaphor.cloud/api/v1/datamodels",
1259
1259
  (l == null ? void 0 : l.accessToken) || "",
1260
1260
  {
@@ -1265,7 +1265,7 @@ function He(a, n) {
1265
1265
  // Only fetch if authToken is present
1266
1266
  }), N = M == null ? void 0 : M.connections.find(
1267
1267
  (k) => k.id === r
1268
- ), g = N == null ? void 0 : N.type, I = (N == null ? void 0 : N.type) === "API" || (N == null ? void 0 : N.type) === "S3", {
1268
+ ), g = N == null ? void 0 : N.type, T = (N == null ? void 0 : N.type) === "API" || (N == null ? void 0 : N.type) === "S3", {
1269
1269
  data: V,
1270
1270
  isLoading: P,
1271
1271
  isFetching: U,
@@ -1273,7 +1273,7 @@ function He(a, n) {
1273
1273
  refetch: ie
1274
1274
  } = fe({
1275
1275
  queryKey: ["databases", r],
1276
- queryFn: () => Ie(
1276
+ queryFn: () => Te(
1277
1277
  "https://semaphor.cloud/api/v1/databases",
1278
1278
  (l == null ? void 0 : l.accessToken) || "",
1279
1279
  {
@@ -1290,7 +1290,7 @@ function He(a, n) {
1290
1290
  refetch: te
1291
1291
  } = fe({
1292
1292
  queryKey: ["schemas", r, i],
1293
- queryFn: () => Ie(
1293
+ queryFn: () => Te(
1294
1294
  "https://semaphor.cloud/api/v1/schemas",
1295
1295
  (l == null ? void 0 : l.accessToken) || "",
1296
1296
  {
@@ -1298,7 +1298,7 @@ function He(a, n) {
1298
1298
  database_name: i
1299
1299
  }
1300
1300
  ),
1301
- enabled: !!r && !!i && !I && i !== "NA"
1301
+ enabled: !!r && !!i && !T && i !== "NA"
1302
1302
  //currentConnection?.type !== 'API', // Only fetch if connectionId and database is present
1303
1303
  }), {
1304
1304
  data: q,
@@ -1313,7 +1313,7 @@ function He(a, n) {
1313
1313
  i,
1314
1314
  d
1315
1315
  ],
1316
- queryFn: () => Ie(
1316
+ queryFn: () => Te(
1317
1317
  "https://semaphor.cloud/api/v1/tables",
1318
1318
  (l == null ? void 0 : l.accessToken) || "",
1319
1319
  {
@@ -1337,7 +1337,7 @@ function He(a, n) {
1337
1337
  d,
1338
1338
  c
1339
1339
  ],
1340
- queryFn: () => Ie(
1340
+ queryFn: () => Te(
1341
1341
  "https://semaphor.cloud/api/v1/columns",
1342
1342
  (l == null ? void 0 : l.accessToken) || "",
1343
1343
  {
@@ -1362,14 +1362,14 @@ function He(a, n) {
1362
1362
  f(t);
1363
1363
  }, [ce, f, t]), ae(() => {
1364
1364
  }, [
1365
- I,
1365
+ T,
1366
1366
  v,
1367
1367
  y,
1368
1368
  p,
1369
1369
  b,
1370
1370
  N
1371
1371
  ]);
1372
- const Me = (N == null ? void 0 : N.type) === "API" ? (Ue = N == null ? void 0 : N.type) == null ? void 0 : Ue.toLowerCase() : c || "", ze = I ? "" : d || "";
1372
+ const Me = (N == null ? void 0 : N.type) === "API" ? (Ue = N == null ? void 0 : N.type) == null ? void 0 : Ue.toLowerCase() : c || "", ze = T ? "" : d || "";
1373
1373
  function ne(k) {
1374
1374
  p(k), y("");
1375
1375
  }
@@ -1424,7 +1424,7 @@ function He(a, n) {
1424
1424
  columns: t,
1425
1425
  isColumnsLoadingOrFetching: ke || Ve,
1426
1426
  isColumnsError: Oe,
1427
- isNonDbConnection: I,
1427
+ isNonDbConnection: T,
1428
1428
  connectionType: g,
1429
1429
  tableName: Me,
1430
1430
  schemaName: ze,
@@ -1469,7 +1469,7 @@ function $t({
1469
1469
  isTableError: m,
1470
1470
  connectionType: N,
1471
1471
  isNonDbConnection: g,
1472
- handleConnectionChange: I,
1472
+ handleConnectionChange: T,
1473
1473
  handleDatabaseChange: V,
1474
1474
  handleSchemaChange: P,
1475
1475
  handleDatamodelChange: U,
@@ -1570,7 +1570,7 @@ function $t({
1570
1570
  items: d,
1571
1571
  title: "Connection",
1572
1572
  value: n || "",
1573
- onChange: I,
1573
+ onChange: T,
1574
1574
  isLoading: p,
1575
1575
  isError: v,
1576
1576
  connectionTooltip: ((se = d == null ? void 0 : d.find(
@@ -1658,7 +1658,7 @@ function ml() {
1658
1658
  (o) => o.selectedConnectionId
1659
1659
  ), { data: t } = fe({
1660
1660
  queryKey: ["connections"],
1661
- queryFn: () => Ie(
1661
+ queryFn: () => Te(
1662
1662
  "https://semaphor.cloud/api/v1/connections",
1663
1663
  (a == null ? void 0 : a.accessToken) || ""
1664
1664
  ),
@@ -1767,7 +1767,7 @@ function gl({
1767
1767
  triggerAIRun: r,
1768
1768
  setTriggerAIRun: o
1769
1769
  }) {
1770
- const i = ea(null), d = ea(null), { authToken: c } = Se(), [f, u] = _(!1), C = h((z) => z.actions.setCardSql), b = T((z) => z.dashboard.baseQueries), p = h((z) => z.actions.setRunSql), y = h((z) => z.actions.setCardType), [v, F] = _([]), S = h((z) => z.currentColumns), E = h((z) => z.card.sql), M = h((z) => z.selectedTableName), R = `
1770
+ const i = ea(null), d = ea(null), { authToken: c } = Se(), [f, u] = _(!1), C = h((z) => z.actions.setCardSql), b = I((z) => z.dashboard.baseQueries), p = h((z) => z.actions.setRunSql), y = h((z) => z.actions.setCardType), [v, F] = _([]), S = h((z) => z.currentColumns), E = h((z) => z.card.sql), M = h((z) => z.selectedTableName), R = `
1771
1771
  ${t}
1772
1772
 
1773
1773
  Database Query Dialect: ${M === "api" || M === "s3" ? "DuckDb" : ""}
@@ -1777,7 +1777,7 @@ function gl({
1777
1777
  ${b && `Base Queries: ${JSON.stringify(b)} `}`, w = ` When the user asks for a specific chart please use the following query structure to generate the chart query. Do not make up the column names. Use only the table columns provided above for the query. Replace x-axis, y-axis, and lables with the appropriate column names.
1778
1778
  Visual Query Syntax: ${fl}`, { data: O, isLoading: A, isFetching: m, isError: N, refetch: g } = fe({
1779
1779
  queryKey: ["ai-query"],
1780
- queryFn: () => Ie(
1780
+ queryFn: () => Te(
1781
1781
  "https://semaphor.cloud/api/v1/ai",
1782
1782
  (c == null ? void 0 : c.accessToken) || "",
1783
1783
  {
@@ -1787,7 +1787,7 @@ function gl({
1787
1787
  enabled: !1
1788
1788
  // Do not run by default.
1789
1789
  });
1790
- function I(z) {
1790
+ function T(z) {
1791
1791
  if (z.toLowerCase().includes("bar"))
1792
1792
  y("bar");
1793
1793
  else if (z.toLowerCase().includes("line"))
@@ -1821,7 +1821,7 @@ function gl({
1821
1821
  return () => clearTimeout(z);
1822
1822
  }, [v]);
1823
1823
  function V() {
1824
- t && (F((z) => [...z, { role: "user", content: t }]), I(t) && u(!0), l(""), g());
1824
+ t && (F((z) => [...z, { role: "user", content: t }]), T(t) && u(!0), l(""), g());
1825
1825
  }
1826
1826
  ae(() => {
1827
1827
  r && (V(), o(!1));
@@ -2091,10 +2091,10 @@ function kl() {
2091
2091
  const [a, n] = _({
2092
2092
  queryKey: [],
2093
2093
  queryData: null
2094
- }), { theme: t } = ws(), l = ks(), r = ea(), o = ea(), [i, d] = _(!1), [c, f] = _(!1), [u, C] = _(!1), [b, p] = _(""), [y, v] = _(!1), F = T((x) => x.selectedSheetId);
2095
- T((x) => x.dashboard.baseQueries);
2096
- const S = h((x) => x.card), E = T((x) => x.theme), M = h((x) => x.isShowingVisual);
2097
- T((x) => x.onAcceptChanges);
2094
+ }), { theme: t } = ws(), l = ks(), r = ea(), o = ea(), [i, d] = _(!1), [c, f] = _(!1), [u, C] = _(!1), [b, p] = _(""), [y, v] = _(!1), F = I((x) => x.selectedSheetId);
2095
+ I((x) => x.dashboard.baseQueries);
2096
+ const S = h((x) => x.card), E = I((x) => x.theme), M = h((x) => x.isShowingVisual);
2097
+ I((x) => x.onAcceptChanges);
2098
2098
  const R = h(
2099
2099
  (x) => x.selectedConnectionId
2100
2100
  ), w = h(
@@ -2104,10 +2104,10 @@ function kl() {
2104
2104
  ), A = h(
2105
2105
  (x) => x.selectedSchemaName
2106
2106
  );
2107
- T(
2107
+ I(
2108
2108
  (x) => x.actions.updateFrameCard
2109
2109
  );
2110
- const m = h((x) => x.selectedTableName), N = h((x) => x.card.sql), g = h((x) => x.card.python), I = h((x) => x.frame), V = T((x) => x.dashboard.filters), P = T((x) => x.filterValues), U = V == null ? void 0 : V.filter(
2110
+ const m = h((x) => x.selectedTableName), N = h((x) => x.card.sql), g = h((x) => x.card.python), T = h((x) => x.frame), V = I((x) => x.dashboard.filters), P = I((x) => x.filterValues), U = V == null ? void 0 : V.filter(
2111
2111
  (x) => x.sheetId === F || !x.sheetId
2112
2112
  ), Z = P == null ? void 0 : P.filter(
2113
2113
  (x) => (U == null ? void 0 : U.some((le) => le.id === x.filterId)) || x.filterId.endsWith(F)
@@ -2209,12 +2209,12 @@ function kl() {
2209
2209
  type: M ? S.type : "table",
2210
2210
  sql: x,
2211
2211
  customCfg: M ? S.customCfg : null
2212
- }, Fe = I.cards.map(
2212
+ }, Fe = T.cards.map(
2213
2213
  (wa) => wa.id === S.id ? le : wa
2214
2214
  ), de = {
2215
- ...I,
2215
+ ...T,
2216
2216
  cards: Fe,
2217
- activeCardId: sa(Fe, I.activeCardId)
2217
+ activeCardId: sa(Fe, T.activeCardId)
2218
2218
  };
2219
2219
  ee == null || ee(de);
2220
2220
  }
@@ -2324,7 +2324,7 @@ function kl() {
2324
2324
  }
2325
2325
  function ls() {
2326
2326
  return /* @__PURE__ */ s(
2327
- Ia,
2327
+ Ta,
2328
2328
  {
2329
2329
  className: "flex grow pb-1",
2330
2330
  direction: "vertical",
@@ -2376,7 +2376,7 @@ function kl() {
2376
2376
  }
2377
2377
  ),
2378
2378
  i && /* @__PURE__ */ s(Y, { children: [
2379
- /* @__PURE__ */ e(Ta, { withHandle: !0, className: "border" }),
2379
+ /* @__PURE__ */ e(Ia, { withHandle: !0, className: "border" }),
2380
2380
  /* @__PURE__ */ s(
2381
2381
  je,
2382
2382
  {
@@ -2398,7 +2398,7 @@ function kl() {
2398
2398
  onChange: (x) => {
2399
2399
  q(x && x.trim() || "");
2400
2400
  },
2401
- value: g || Is,
2401
+ value: g || Ts,
2402
2402
  options: {
2403
2403
  minimap: {
2404
2404
  enabled: !1
@@ -2564,7 +2564,7 @@ function Ol({ data: a }) {
2564
2564
  onClick: () => c.toggleSorting(c.getIsSorted() === "asc"),
2565
2565
  children: [
2566
2566
  d,
2567
- f === "asc" ? /* @__PURE__ */ e(Ts, { className: "ml-2 h-5 w-5" }) : f === "desc" ? /* @__PURE__ */ e(Ds, { className: "ml-2 h-5 w-5" }) : null
2567
+ f === "asc" ? /* @__PURE__ */ e(Is, { className: "ml-2 h-5 w-5" }) : f === "desc" ? /* @__PURE__ */ e(Ds, { className: "ml-2 h-5 w-5" }) : null
2568
2568
  ]
2569
2569
  }
2570
2570
  ) });
@@ -2599,7 +2599,7 @@ function Ol({ data: a }) {
2599
2599
  }
2600
2600
  function zl({ card: a }) {
2601
2601
  var b, p, y, v, F, S, E, M, R, w;
2602
- const { authToken: n } = Se(), t = js(n == null ? void 0 : n.accessToken), l = T((O) => O.themeStyle), r = {
2602
+ const { authToken: n } = Se(), t = js(n == null ? void 0 : n.accessToken), l = I((O) => O.themeStyle), r = {
2603
2603
  colors: ((p = (b = l == null ? void 0 : l.chart) == null ? void 0 : b.dataset) == null ? void 0 : p.backgroundColor) || []
2604
2604
  };
2605
2605
  (y = a.customCardPreferences) != null && y.inputData;
@@ -2615,12 +2615,12 @@ function zl({ card: a }) {
2615
2615
  }, C = Object.keys(
2616
2616
  ((M = a.customCardPreferences) == null ? void 0 : M.dataInputCardIds) || {}
2617
2617
  ).map((O) => {
2618
- var N, g, I;
2619
- const A = (g = (N = a.customCardPreferences) == null ? void 0 : N.dataInputCardIds) == null ? void 0 : g[O].cardId, m = (I = d == null ? void 0 : d.cards) == null ? void 0 : I.find((V) => V.id === A);
2618
+ var N, g, T;
2619
+ const A = (g = (N = a.customCardPreferences) == null ? void 0 : N.dataInputCardIds) == null ? void 0 : g[O].cardId, m = (T = d == null ? void 0 : d.cards) == null ? void 0 : T.find((V) => V.id === A);
2620
2620
  return m || null;
2621
2621
  });
2622
2622
  return /* @__PURE__ */ e("div", { className: "semaphor-custom mb-3 flex grow basis-0 flex-col space-y-2 overflow-y-auto", children: /* @__PURE__ */ s(
2623
- In,
2623
+ Tn,
2624
2624
  {
2625
2625
  fallback: /* @__PURE__ */ e(Y, {}),
2626
2626
  children: [
@@ -2660,7 +2660,7 @@ function Ut({
2660
2660
  ...n
2661
2661
  }) {
2662
2662
  var p, y;
2663
- const t = h((v) => v.card), l = ((p = t.customCardPreferences) == null ? void 0 : p.showCardHeader) ?? !0, r = h((v) => v.frame), o = T((v) => v.dashboard.filters);
2663
+ const t = h((v) => v.card), l = ((p = t.customCardPreferences) == null ? void 0 : p.showCardHeader) ?? !0, r = h((v) => v.frame), o = I((v) => v.dashboard.filters);
2664
2664
  h((v) => v.actions.setRunSql);
2665
2665
  const { updateFilter: i } = Fa(), d = o == null ? void 0 : o.find((v) => v.id === r.filterId), { data: c } = _e(t), { setCard: f } = ue(), { data: u } = Ga(t);
2666
2666
  if (!t.id)
@@ -2735,7 +2735,7 @@ function Ut({
2735
2735
  }
2736
2736
  );
2737
2737
  }
2738
- function Il() {
2738
+ function Tl() {
2739
2739
  const [a, n] = _(!1), [t, l] = _(""), [r, o] = _(""), [i, d] = _(""), [c, f] = _(""), u = h((w) => w.card), C = h(
2740
2740
  (w) => w.card.customCfg
2741
2741
  ), { data: b } = _e(u), { data: p } = Ga(u), { setCardCustomCfg: y, setCustomVisualCode: v } = ue();
@@ -2836,7 +2836,7 @@ function Il() {
2836
2836
  /* @__PURE__ */ s(Ot, { defaultValue: "custom-config", className: "flex w-1/2 flex-col", children: [
2837
2837
  /* @__PURE__ */ s(zt, { className: "justify-start rounded-sm rounded-b-none border border-b-0", children: [
2838
2838
  /* @__PURE__ */ s(ca, { value: "custom-config", children: [
2839
- C && /* @__PURE__ */ e(It, { className: "mr-1 h-5 w-5 text-green-600" }),
2839
+ C && /* @__PURE__ */ e(Tt, { className: "mr-1 h-5 w-5 text-green-600" }),
2840
2840
  C ? "Custom Config" : "Default Config"
2841
2841
  ] }),
2842
2842
  /* @__PURE__ */ e(ca, { className: "", value: "output", children: "Output" }),
@@ -2964,7 +2964,7 @@ function es(a) {
2964
2964
  const [n, t] = _(null);
2965
2965
  return ae(() => {
2966
2966
  a && (async () => {
2967
- const o = (await import("./lucide-react-fZHfTd31.js"))[a];
2967
+ const o = (await import("./lucide-react-_4tvF6no.js"))[a];
2968
2968
  t(o);
2969
2969
  })();
2970
2970
  }, [a]), n;
@@ -2977,7 +2977,7 @@ function as() {
2977
2977
  });
2978
2978
  return { data: n, isLoading: t, isFetching: l, isError: r };
2979
2979
  }
2980
- function Tl({
2980
+ function Il({
2981
2981
  onChartTypeChange: a
2982
2982
  }) {
2983
2983
  const [n, t] = _([]), { data: l } = as();
@@ -3184,7 +3184,7 @@ function Ml() {
3184
3184
  }
3185
3185
  )
3186
3186
  ] }),
3187
- /* @__PURE__ */ e(Tl, { onChartTypeChange: f })
3187
+ /* @__PURE__ */ e(Il, { onChartTypeChange: f })
3188
3188
  ] })
3189
3189
  ] });
3190
3190
  }
@@ -3311,22 +3311,22 @@ function ot() {
3311
3311
  y(m);
3312
3312
  }
3313
3313
  function F(m) {
3314
- const N = a.cards.filter((V) => V.id !== m), g = N[0], I = {
3314
+ const N = a.cards.filter((V) => V.id !== m), g = N[0], T = {
3315
3315
  ...a,
3316
3316
  cards: N,
3317
3317
  // update the active card to the first card in the frame
3318
3318
  activeCardId: g.id
3319
3319
  };
3320
- d(I), c(g);
3320
+ d(T), c(g);
3321
3321
  }
3322
3322
  function S(m) {
3323
3323
  const N = {
3324
3324
  ...a,
3325
- cards: a.cards.map((I) => I.id === n.id ? n : I),
3325
+ cards: a.cards.map((T) => T.id === n.id ? n : T),
3326
3326
  activeCardId: m
3327
3327
  };
3328
3328
  d(N);
3329
- const g = N.cards.find((I) => I.id === m);
3329
+ const g = N.cards.find((T) => T.id === m);
3330
3330
  g.sql && i(!0), c(g);
3331
3331
  }
3332
3332
  const E = (m, N) => {
@@ -3337,8 +3337,8 @@ function ot() {
3337
3337
  const g = m.dataTransfer.getData("tabIndex");
3338
3338
  if (g === N.toString())
3339
3339
  return;
3340
- const I = Array.from(a.cards), [V] = I.splice(parseInt(g), 1);
3341
- I.splice(N, 0, V), d({ ...a, cards: I });
3340
+ const T = Array.from(a.cards), [V] = T.splice(parseInt(g), 1);
3341
+ T.splice(N, 0, V), d({ ...a, cards: T });
3342
3342
  };
3343
3343
  function w(m, N) {
3344
3344
  return m.cards.length === 1 && (N.displayTab === !0 || N.displayTab === void 0) || m.activeCardId !== N.id && (N.displayTab === !0 || N.displayTab === void 0) ? null : /* @__PURE__ */ e(
@@ -3385,7 +3385,7 @@ function ot() {
3385
3385
  w(a, m),
3386
3386
  m.tabTitle || m.title,
3387
3387
  a.activeCardId === m.id && a.cards.length > 1 && /* @__PURE__ */ e(
3388
- Tt,
3388
+ It,
3389
3389
  {
3390
3390
  className: "ml-2 size-3.5 text-muted-foreground hover:text-foreground",
3391
3391
  onClick: () => F(m.id)
@@ -3435,7 +3435,7 @@ function ot() {
3435
3435
  /* @__PURE__ */ s("div", { className: "mb-0 flex min-h-10 items-center justify-end gap-2 px-6", children: [
3436
3436
  t && /* @__PURE__ */ s("div", { className: "flex grow items-center gap-2", children: [
3437
3437
  /* @__PURE__ */ e(Ml, {}),
3438
- !["table", "custom"].includes(n.type) && /* @__PURE__ */ e(Il, {}),
3438
+ !["table", "custom"].includes(n.type) && /* @__PURE__ */ e(Tl, {}),
3439
3439
  /* @__PURE__ */ e(Ll, {})
3440
3440
  ] }),
3441
3441
  /* @__PURE__ */ e(Al, {})
@@ -3515,7 +3515,7 @@ function be({
3515
3515
  children: /* @__PURE__ */ e(xe, { placeholder: a })
3516
3516
  }
3517
3517
  ),
3518
- /* @__PURE__ */ e(Ce, { children: /* @__PURE__ */ s(Te, { children: [
3518
+ /* @__PURE__ */ e(Ce, { children: /* @__PURE__ */ s(Ie, { children: [
3519
3519
  /* @__PURE__ */ e(Ne, { children: a }),
3520
3520
  n.map((o) => /* @__PURE__ */ e(J, { value: o.value, children: o.label }, o.value))
3521
3521
  ] }) })
@@ -3893,7 +3893,7 @@ function ts() {
3893
3893
  ), { updateCardInFrame: m } = ue(), N = h((q) => q.card), g = h((q) => {
3894
3894
  var L;
3895
3895
  return (L = q.card) == null ? void 0 : L.type;
3896
- }), I = ["pie", "doughnut", "polarArea"].includes(g);
3896
+ }), T = ["pie", "doughnut", "polarArea"].includes(g);
3897
3897
  ae(() => {
3898
3898
  var q, L, se, B, ee, ce, ke, Ve, Oe, Me, ze, ne, me, pe;
3899
3899
  i(ct(t)), c(
@@ -3933,7 +3933,7 @@ function ts() {
3933
3933
  onValueChange: (L) => R(L === "none" ? "" : L),
3934
3934
  children: [
3935
3935
  /* @__PURE__ */ e(ve, { className: "col-span-2 h-8 w-full focus:ring-1 focus:ring-offset-0", children: /* @__PURE__ */ e(xe, {}) }),
3936
- /* @__PURE__ */ e(Ce, { children: /* @__PURE__ */ s(Te, { children: [
3936
+ /* @__PURE__ */ e(Ce, { children: /* @__PURE__ */ s(Ie, { children: [
3937
3937
  /* @__PURE__ */ e(Ne, { children: "Currency" }),
3938
3938
  /* @__PURE__ */ e(J, { value: "none", children: "None" }),
3939
3939
  q.map((L) => /* @__PURE__ */ e(J, { value: L, children: L }, L))
@@ -3949,7 +3949,7 @@ function ts() {
3949
3949
  children: /* @__PURE__ */ e(xe, {})
3950
3950
  }
3951
3951
  ),
3952
- /* @__PURE__ */ e(Ce, { children: /* @__PURE__ */ s(Te, { children: [
3952
+ /* @__PURE__ */ e(Ce, { children: /* @__PURE__ */ s(Ie, { children: [
3953
3953
  /* @__PURE__ */ e(Ne, { children: "Locale" }),
3954
3954
  ua.map((L) => /* @__PURE__ */ e(J, { value: L.locale, children: L.locale }, L.locale))
3955
3955
  ] }) })
@@ -4056,12 +4056,12 @@ function ts() {
4056
4056
  /* @__PURE__ */ s(
4057
4057
  ye,
4058
4058
  {
4059
- disabled: I,
4059
+ disabled: T,
4060
4060
  value: o,
4061
4061
  onValueChange: (q) => i(q),
4062
4062
  children: [
4063
4063
  /* @__PURE__ */ e(ve, { className: "col-span-2 h-8 w-full focus:ring-1 focus:ring-offset-0", children: /* @__PURE__ */ e(xe, {}) }),
4064
- /* @__PURE__ */ e(Ce, { id: "type", children: /* @__PURE__ */ s(Te, { children: [
4064
+ /* @__PURE__ */ e(Ce, { id: "type", children: /* @__PURE__ */ s(Ie, { children: [
4065
4065
  /* @__PURE__ */ e(Ne, { children: "Option" }),
4066
4066
  /* @__PURE__ */ e(J, { value: "linear", children: "Linear" }),
4067
4067
  /* @__PURE__ */ e(J, { value: "logarithmic", children: "Logarithmic" })
@@ -4075,7 +4075,7 @@ function ts() {
4075
4075
  /* @__PURE__ */ s(
4076
4076
  Ca,
4077
4077
  {
4078
- disabled: I,
4078
+ disabled: T,
4079
4079
  id: "scale-option",
4080
4080
  value: C,
4081
4081
  onValueChange: (q) => b(q),
@@ -4164,7 +4164,7 @@ function Rl({ idx: a }) {
4164
4164
  size: "sm",
4165
4165
  variant: "secondary",
4166
4166
  className: "h-7 p-1 text-xs font-normal",
4167
- children: /* @__PURE__ */ e(Tt, { className: "size-4" })
4167
+ children: /* @__PURE__ */ e(It, { className: "size-4" })
4168
4168
  }
4169
4169
  ),
4170
4170
  /* @__PURE__ */ e(
@@ -4327,7 +4327,7 @@ function jl({ col: a, idx: n }) {
4327
4327
  ] });
4328
4328
  }
4329
4329
  function ns() {
4330
- const a = h((b) => b.selectedConnectionId), n = h((b) => b.selectedDatamodelId), t = h((b) => b.selectedDatabaseName), l = h((b) => b.selectedSchemaName), r = h((b) => b.selectedTableName), o = T((b) => b.dashboard.filters) || [], i = T((b) => b.actions.addFilter), d = T((b) => b.actions.removeFilter), c = T(
4330
+ const a = h((b) => b.selectedConnectionId), n = h((b) => b.selectedDatamodelId), t = h((b) => b.selectedDatabaseName), l = h((b) => b.selectedSchemaName), r = h((b) => b.selectedTableName), o = I((b) => b.dashboard.filters) || [], i = I((b) => b.actions.addFilter), d = I((b) => b.actions.removeFilter), c = I(
4331
4331
  (b) => b.actions.removeFilterValue
4332
4332
  ), { modelItems: f, tableName: u } = He();
4333
4333
  function C(b, p = "dashboard") {
@@ -4390,7 +4390,7 @@ function ns() {
4390
4390
  return { assignFilter: C };
4391
4391
  }
4392
4392
  function $e() {
4393
- const a = T(
4393
+ const a = I(
4394
4394
  (d) => d.dashboard.filters
4395
4395
  ), n = h((d) => d.frame), { setFrame: t } = ue(), { columns: l } = He(), { assignFilter: r } = ns();
4396
4396
  function o(d) {
@@ -4440,7 +4440,7 @@ function _l({
4440
4440
  children: [
4441
4441
  d.column_name,
4442
4442
  /* @__PURE__ */ e(
4443
- It,
4443
+ Tt,
4444
4444
  {
4445
4445
  className: X(
4446
4446
  "ml-auto h-4 w-4",
@@ -4540,7 +4540,7 @@ function Ya() {
4540
4540
  defaultValue: "none",
4541
4541
  children: [
4542
4542
  /* @__PURE__ */ e(ve, { className: "h-8 w-full focus:ring-1 focus:ring-offset-0", children: /* @__PURE__ */ e(xe, { placeholder: "Select position" }) }),
4543
- /* @__PURE__ */ e(Ce, { children: /* @__PURE__ */ s(Te, { children: [
4543
+ /* @__PURE__ */ e(Ce, { children: /* @__PURE__ */ s(Ie, { children: [
4544
4544
  /* @__PURE__ */ e(Ne, { children: "Data Labels" }),
4545
4545
  /* @__PURE__ */ e(J, { value: "none", children: "None" }),
4546
4546
  t !== "pyramid" && /* @__PURE__ */ e(J, { value: "start", children: "Start" }),
@@ -4813,7 +4813,7 @@ function Kl() {
4813
4813
  },
4814
4814
  children: [
4815
4815
  /* @__PURE__ */ e(ve, { className: "col-span-6 h-8 w-full focus:ring-1 focus:ring-offset-0", children: /* @__PURE__ */ e(xe, {}) }),
4816
- /* @__PURE__ */ e(Ce, { children: /* @__PURE__ */ s(Te, { children: [
4816
+ /* @__PURE__ */ e(Ce, { children: /* @__PURE__ */ s(Ie, { children: [
4817
4817
  /* @__PURE__ */ e(Ne, { children: "Format" }),
4818
4818
  /* @__PURE__ */ e(J, { value: "none", children: "None" }, "none"),
4819
4819
  ua.map((p) => /* @__PURE__ */ e(J, { value: p.locale, children: p.locale }, p.locale))
@@ -4839,7 +4839,7 @@ function Kl() {
4839
4839
  },
4840
4840
  children: [
4841
4841
  /* @__PURE__ */ e(ve, { className: "col-span-6 h-8 w-full focus:ring-1 focus:ring-offset-0", children: /* @__PURE__ */ e(xe, {}) }),
4842
- /* @__PURE__ */ e(Ce, { children: /* @__PURE__ */ s(Te, { children: [
4842
+ /* @__PURE__ */ e(Ce, { children: /* @__PURE__ */ s(Ie, { children: [
4843
4843
  /* @__PURE__ */ e(Ne, { children: "Currency" }),
4844
4844
  /* @__PURE__ */ e(J, { value: "none", children: "None" }, "none"),
4845
4845
  d.map((p) => /* @__PURE__ */ e(J, { value: p, children: p }, p))
@@ -5111,11 +5111,11 @@ function Xl() {
5111
5111
  value: ((p = (b = a.preferences) == null ? void 0 : b.mapVisualOptions) == null ? void 0 : p.objectKey) || "",
5112
5112
  label: "Map Object",
5113
5113
  onValueChange: (g) => {
5114
- var I;
5114
+ var T;
5115
5115
  r({
5116
5116
  ...a.preferences,
5117
5117
  mapVisualOptions: {
5118
- ...(I = a.preferences) == null ? void 0 : I.mapVisualOptions,
5118
+ ...(T = a.preferences) == null ? void 0 : T.mapVisualOptions,
5119
5119
  objectKey: g
5120
5120
  }
5121
5121
  });
@@ -5133,11 +5133,11 @@ function Xl() {
5133
5133
  value: ((v = (y = a.preferences) == null ? void 0 : y.mapVisualOptions) == null ? void 0 : v.projection) || "",
5134
5134
  label: "Projection",
5135
5135
  onValueChange: (g) => {
5136
- var I;
5136
+ var T;
5137
5137
  r({
5138
5138
  ...a.preferences,
5139
5139
  mapVisualOptions: {
5140
- ...(I = a.preferences) == null ? void 0 : I.mapVisualOptions,
5140
+ ...(T = a.preferences) == null ? void 0 : T.mapVisualOptions,
5141
5141
  projection: g
5142
5142
  }
5143
5143
  });
@@ -5155,11 +5155,11 @@ function Xl() {
5155
5155
  value: ((S = (F = a.preferences) == null ? void 0 : F.mapVisualOptions) == null ? void 0 : S.colorScale) || "",
5156
5156
  label: "Select Color Scale",
5157
5157
  onValueChange: (g) => {
5158
- var I;
5158
+ var T;
5159
5159
  r({
5160
5160
  ...a.preferences,
5161
5161
  mapVisualOptions: {
5162
- ...(I = a.preferences) == null ? void 0 : I.mapVisualOptions,
5162
+ ...(T = a.preferences) == null ? void 0 : T.mapVisualOptions,
5163
5163
  colorScale: g
5164
5164
  }
5165
5165
  });
@@ -5179,11 +5179,11 @@ function Xl() {
5179
5179
  step: 0.1,
5180
5180
  value: ((M = (E = a.preferences) == null ? void 0 : E.mapVisualOptions) == null ? void 0 : M.projectionScale) || 1,
5181
5181
  onChange: (g) => {
5182
- var I;
5182
+ var T;
5183
5183
  r({
5184
5184
  ...a.preferences,
5185
5185
  mapVisualOptions: {
5186
- ...(I = a.preferences) == null ? void 0 : I.mapVisualOptions,
5186
+ ...(T = a.preferences) == null ? void 0 : T.mapVisualOptions,
5187
5187
  projectionScale: Number(g.target.value)
5188
5188
  }
5189
5189
  });
@@ -5199,11 +5199,11 @@ function Xl() {
5199
5199
  step: 10,
5200
5200
  value: ((O = (w = (R = a.preferences) == null ? void 0 : R.mapVisualOptions) == null ? void 0 : w.projectionOffset) == null ? void 0 : O[0]) || 0,
5201
5201
  onChange: (g) => {
5202
- var I, V, P, U;
5202
+ var T, V, P, U;
5203
5203
  r({
5204
5204
  ...a.preferences,
5205
5205
  mapVisualOptions: {
5206
- ...(I = a.preferences) == null ? void 0 : I.mapVisualOptions,
5206
+ ...(T = a.preferences) == null ? void 0 : T.mapVisualOptions,
5207
5207
  projectionOffset: [
5208
5208
  Number(g.target.value),
5209
5209
  ((U = (P = (V = a.preferences) == null ? void 0 : V.mapVisualOptions) == null ? void 0 : P.projectionOffset) == null ? void 0 : U[1]) || 0
@@ -5222,11 +5222,11 @@ function Xl() {
5222
5222
  step: 10,
5223
5223
  value: ((N = (m = (A = a.preferences) == null ? void 0 : A.mapVisualOptions) == null ? void 0 : m.projectionOffset) == null ? void 0 : N[1]) || 0,
5224
5224
  onChange: (g) => {
5225
- var I, V, P, U;
5225
+ var T, V, P, U;
5226
5226
  r({
5227
5227
  ...a.preferences,
5228
5228
  mapVisualOptions: {
5229
- ...(I = a.preferences) == null ? void 0 : I.mapVisualOptions,
5229
+ ...(T = a.preferences) == null ? void 0 : T.mapVisualOptions,
5230
5230
  projectionOffset: [
5231
5231
  ((U = (P = (V = a.preferences) == null ? void 0 : V.mapVisualOptions) == null ? void 0 : P.projectionOffset) == null ? void 0 : U[0]) || 0,
5232
5232
  Number(g.target.value)
@@ -5530,7 +5530,7 @@ function lr() {
5530
5530
  function rr() {
5531
5531
  const a = h((n) => n.isShowingVisual);
5532
5532
  return /* @__PURE__ */ s(
5533
- Ia,
5533
+ Ta,
5534
5534
  {
5535
5535
  direction: "vertical",
5536
5536
  className: "min-h-[250px] min-w-full max-w-lg",
@@ -5545,7 +5545,7 @@ function rr() {
5545
5545
  children: /* @__PURE__ */ e(kl, {})
5546
5546
  }
5547
5547
  ),
5548
- /* @__PURE__ */ e(Ta, { withHandle: !0, className: "border" }),
5548
+ /* @__PURE__ */ e(Ia, { withHandle: !0, className: "border" }),
5549
5549
  /* @__PURE__ */ e(
5550
5550
  je,
5551
5551
  {
@@ -5553,7 +5553,7 @@ function rr() {
5553
5553
  role: "visual-section",
5554
5554
  minSize: 0,
5555
5555
  defaultSize: 60,
5556
- children: a ? /* @__PURE__ */ s(Ia, { direction: "horizontal", children: [
5556
+ children: a ? /* @__PURE__ */ s(Ta, { direction: "horizontal", children: [
5557
5557
  /* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e(
5558
5558
  je,
5559
5559
  {
@@ -5564,7 +5564,7 @@ function rr() {
5564
5564
  children: /* @__PURE__ */ e(lr, {})
5565
5565
  }
5566
5566
  ) }),
5567
- /* @__PURE__ */ e(Ta, { className: "border" }),
5567
+ /* @__PURE__ */ e(Ia, { className: "border" }),
5568
5568
  /* @__PURE__ */ e(je, { minSize: 40, defaultSize: 75, maxSize: 100, children: /* @__PURE__ */ e(ot, {}) })
5569
5569
  ] }) : /* @__PURE__ */ e(ot, {})
5570
5570
  }
@@ -5574,8 +5574,8 @@ function rr() {
5574
5574
  );
5575
5575
  }
5576
5576
  function ir({ authToken: a, onSave: n, onClose: t }) {
5577
- T((i) => i.themeStyle);
5578
- const l = h((i) => i.actions.setOnSave), r = h((i) => i.actions.setOnClose), o = T((i) => i.actions.setAuthToken);
5577
+ I((i) => i.themeStyle);
5578
+ const l = h((i) => i.actions.setOnSave), r = h((i) => i.actions.setOnClose), o = I((i) => i.actions.setAuthToken);
5579
5579
  return ae(() => {
5580
5580
  n && l(n), t && r(t);
5581
5581
  }, [n, l, t, r]), ae(() => {
@@ -5597,8 +5597,8 @@ function ir({ authToken: a, onSave: n, onClose: t }) {
5597
5597
  ) });
5598
5598
  }
5599
5599
  function or() {
5600
- T((i) => i.selectedCardId);
5601
- const a = T((i) => i.selectedSheetId), { setIsVisualEditing: n } = T((i) => i.actions), t = T((i) => i.isVisualEditing), l = T((i) => i.actions.updateFrame);
5600
+ I((i) => i.selectedCardId);
5601
+ const a = I((i) => i.selectedSheetId), { setIsVisualEditing: n } = I((i) => i.actions), t = I((i) => i.isVisualEditing), l = I((i) => i.actions.updateFrame);
5602
5602
  function r(i) {
5603
5603
  a && (l(a, i), n(!1));
5604
5604
  }
@@ -5620,8 +5620,8 @@ function cr() {
5620
5620
  h((i) => i.selectedConnectionId), h((i) => i.selectedDatamodelId);
5621
5621
  const a = h((i) => i.selectedDatabaseName);
5622
5622
  h((i) => i.selectedSchemaName);
5623
- const n = h((i) => i.selectedTableName), t = T((i) => i.dashboard.filters) || [];
5624
- T((i) => i.actions.addFilter), T((i) => i.actions.removeFilter), T(
5623
+ const n = h((i) => i.selectedTableName), t = I((i) => i.dashboard.filters) || [];
5624
+ I((i) => i.actions.addFilter), I((i) => i.actions.removeFilter), I(
5625
5625
  (i) => i.actions.removeFilterValue
5626
5626
  );
5627
5627
  const { modelItems: l, columns: r } = He(), { assignFilter: o } = ns();
@@ -5649,8 +5649,8 @@ function cr() {
5649
5649
  }) });
5650
5650
  }
5651
5651
  function dr() {
5652
- T((n) => n.showFilters);
5653
- const a = T(
5652
+ I((n) => n.showFilters);
5653
+ const a = I(
5654
5654
  (n) => n.actions.setShowFilters
5655
5655
  );
5656
5656
  return /* @__PURE__ */ s("section", { className: "relative flex grow flex-col border-l px-4", children: [
@@ -5681,7 +5681,7 @@ function dr() {
5681
5681
  ] });
5682
5682
  }
5683
5683
  function ur() {
5684
- const a = T((t) => t.showFilters), n = T((t) => t.isVisualEditing);
5684
+ const a = I((t) => t.showFilters), n = I((t) => t.isVisualEditing);
5685
5685
  return /* @__PURE__ */ s(
5686
5686
  "div",
5687
5687
  {
@@ -5698,10 +5698,10 @@ function ur() {
5698
5698
  );
5699
5699
  }
5700
5700
  function hr() {
5701
- const a = T((l) => l.dashboard), n = T((l) => l.actions.setDashboard), t = T(
5701
+ const a = I((l) => l.dashboard), n = I((l) => l.actions.setDashboard), t = I(
5702
5702
  (l) => l.showDashboardJSON
5703
5703
  );
5704
- return T(
5704
+ return I(
5705
5705
  (l) => l.actions.setShowDashboardJSON
5706
5706
  ), /* @__PURE__ */ e(
5707
5707
  "div",
@@ -5760,7 +5760,7 @@ function br({
5760
5760
  }
5761
5761
  export {
5762
5762
  Ke as A,
5763
- Tn as B,
5763
+ In as B,
5764
5764
  Dn as C,
5765
5765
  br as D,
5766
5766
  At as E,