react-semaphor 0.1.150 → 0.1.152

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.
Files changed (26) hide show
  1. package/dist/chunks/dashboard-controls-B1NaD9-0.js +26 -0
  2. package/dist/chunks/{dashboard-controls-CrWp_eW0.js → dashboard-controls-D5-Gvqxv.js} +295 -303
  3. package/dist/chunks/{dashboard-export-dialog-Bdt-TnlL.js → dashboard-export-dialog-DO1S0OC6.js} +1 -1
  4. package/dist/chunks/{dashboard-export-dialog-CTDWnL2v.js → dashboard-export-dialog-zg4nHWb1.js} +3 -3
  5. package/dist/chunks/{dashboard-json-BvV_dByo.js → dashboard-json-B3nbAdX_.js} +1 -1
  6. package/dist/chunks/{dashboard-json-CKQPyk-T.js → dashboard-json-CSw6MLJx.js} +1 -1
  7. package/dist/chunks/{edit-dashboard-visual-JmSJtVAb.js → edit-dashboard-visual-Bgg70XCK.js} +304 -304
  8. package/dist/chunks/{edit-dashboard-visual-DKx_Fd1g.js → edit-dashboard-visual-rWMERjeo.js} +1 -1
  9. package/dist/chunks/{editor-action-buttons-BrlrQ2Xg.js → editor-action-buttons-BoZhsC0f.js} +2 -2
  10. package/dist/chunks/{editor-action-buttons-D98KnvrV.js → editor-action-buttons-SmPDO28X.js} +1 -1
  11. package/dist/chunks/{index-DHIYxVk4.js → index-CwRSeOKZ.js} +60358 -89613
  12. package/dist/chunks/index-DQz6FBS5.js +1098 -0
  13. package/dist/chunks/{resource-management-panel-B5efhyg2.js → resource-management-panel-BK2lxhja.js} +1 -1
  14. package/dist/chunks/{resource-management-panel-QHQGFqsL.js → resource-management-panel-dAVa6T7t.js} +2 -2
  15. package/dist/chunks/{use-visual-utils-B8vSKgmQ.js → use-visual-utils-D19rZuzJ.js} +1 -1
  16. package/dist/chunks/{use-visual-utils-CuQz3wl2.js → use-visual-utils-Dcw4d_Do.js} +1 -1
  17. package/dist/dashboard/index.cjs +1 -1
  18. package/dist/dashboard/index.js +1 -1
  19. package/dist/index.cjs +1 -1
  20. package/dist/index.js +4 -4
  21. package/dist/surfboard/index.cjs +1 -1
  22. package/dist/surfboard/index.js +1 -1
  23. package/dist/types/main.d.ts +18 -28
  24. package/package.json +9 -5
  25. package/dist/chunks/dashboard-controls-Hw3sWZQd.js +0 -26
  26. package/dist/chunks/index-zUMoYWue.js +0 -1339
@@ -1,8 +1,8 @@
1
1
  import { jsxs as a, jsx as e, Fragment as ie } from "react/jsx-runtime";
2
- import { b as fe, l as ut, e as le, f as I, c7 as ia, ay as L, c8 as Z, c9 as ee, ca as te, cb as ae, cc as K, cd as ve, B as q, b8 as Ye, ce as Sa, cf as us, cg as ms, ch as hs, ci as ps, cj as ka, r as lt, X as Ae, ck as en, bd as tn, at as Ct, au as wt, av as St, aw as kt, ax as zt, k as De, bs as ze, bo as je, bp as Fe, bq as Re, cl as Fn, cm as an, u as Ce, aC as ba, a$ as yt, bj as Wt, c as Q, aB as We, cn as fs, b6 as gs, co as Sl, cp as kl, cq as Al, cr as ta, cs as Tl, ct as xs, bN as bs, cu as tt, cv as aa, cw as pa, cx as El, cy as fa, cz as nn, cA as sn, cB as ln, cC as mt, cD as rn, cE as Dl, bD as Ml, cF as Il, cG as vs, cH as Ol, cI as on, cJ as Fl, h as Rl, cK as Ll, cL as Ha, cM as At, cN as Ve, cO as Tt, L as jt, cP as Vl, cQ as Ns, c4 as $t, aF as Aa, aZ as oa, cR as cn, cS as Pl, bk as dn, a_ as ht, A as Bl, cT as zl, bh as jl, aL as un, g as ys, cU as mn, cV as $l, cW as Cs, cX as ws, cY as va, c2 as Pa, cZ as Kl, c_ as ql, c$ as Ss, d0 as Gl, d1 as Ul, d2 as Jl, d3 as Ta, d4 as _l, d5 as Hl, d6 as Rn, d7 as Ql, E as Ea, o as hn, d8 as Yl, d9 as pn, bF as Wl, I as Oe, da as Xl, db as Zl, bR as Da, bS as Ma, bT as st, bU as ga, dc as er, br as tr, dd as ks, de as ar, df as nr, bz as Ia, az as Be, P as Je, q as _e, dg as sr, s as He, aG as fn, aH as gn, aJ as xn, bG as As, bc as Pt, dh as ot, di as Et, dj as Dt, dk as pt, dl as Kt, dm as lr, a4 as rr, dn as ir, aE as Bt, dp as or, dq as Ts, dr as cr, ds as dr, dt as ur, du as mr, dv as hr, b3 as pr, dw as fr, dx as Es, dy as bn, b1 as Ne, dz as qt, dA as sa, dB as gr, dC as xr, dD as Qe, dE as ue, dF as me, dG as he, dH as br, dI as vr, dJ as ct, c5 as Ds, dK as Nr, dL as yr, dM as Cr, dN as wr, dO as Sr, dP as kr, b7 as Ar, dQ as Tr, ai as Ms, dR as Er, dS as Dr, dT as Mr, t as Gt, v as Ut, w as Jt, x as _t, y as Ht, z as Qt, dU as Ir, dV as Ge, dW as ua, dX as Ln, dY as Or, dZ as Vn, d_ as Fr, C as Xt, d$ as Ee, e0 as Rr, e1 as Pn, e2 as Bn, e3 as Lr, e4 as Vr, e5 as Pr, e6 as Br, e7 as zr, e8 as Ba, e9 as Is, ea as jr, eb as $r, ec as Na, ed as zn, ao as Oa, G as Kr, ee as qr, ef as Gr, eg as Ur, eh as Jr, ei as _r, ae as jn, ej as $n, ek as Hr, el as Qr, em as Os, en as Yr, eo as Fs, ep as Wr, eq as Xr, er as Zr, es as ei, et as ti, eu as ai, ev as ni, ew as si, ex as li, ey as ri, ez as Rs, eA as ii, eB as oi, eC as ci, eD as di, eE as ui, eF as mi, eG as hi, eH as Ls, aI as pi, eI as fi, eJ as Kn, eK as qn, _ as gi, eL as xi, eM as Vs, eN as bi, bM as Ps, eO as Te, aA as vi, a0 as ya, eP as Ni, eQ as yi, eR as Fa, eS as Bs, eT as Ra, eU as Ci, bA as wi, eV as Gn, eW as Si, eX as ki, eY as Ai, eZ as xa, e_ as ca, e$ as Ti, f0 as Ei, f1 as vn, f2 as Di, f3 as Mi, f4 as Ca, f5 as Ii, f6 as Oi, f7 as la, f8 as dt, f9 as Qa, fa as Ya, fb as ra, fc as zs, fd as Yt, fe as Fi, ff as za, fg as ja, fh as Ri, fi as $a, fj as Li, fk as Un, fl as Vi, fm as Pi, fn as Bi, fo as zi, aK as Pe, fp as ji, fq as $i, fr as Ki, b2 as qi, fs as La, bf as Va, ft as Jn, fu as js, fv as Ka, fw as qa, fx as Gi, fy as Ui, fz as Ji, F as _i } from "./index-DHIYxVk4.js";
2
+ import { b as fe, l as ut, e as le, f as I, c9 as ia, ay as V, ca as Z, cb as ee, cc as te, cd as ae, ce as K, cf as ve, B as q, b8 as Ye, cg as Sa, ch as us, ci as ms, cj as hs, ck as ps, cl as ka, r as lt, X as Ae, cm as en, bd as tn, at as Ct, au as wt, av as St, aw as kt, ax as zt, k as De, bs as ze, bo as je, bp as Fe, bq as Re, cn as Fn, co as an, u as Ce, aC as ba, a$ as yt, bj as Wt, c as Q, aB as We, cp as fs, b6 as gs, cq as Sl, cr as kl, cs as Al, ct as ta, cu as Tl, cv as xs, bN as bs, cw as tt, cx as aa, cy as pa, cz as El, cA as fa, cB as nn, cC as sn, cD as ln, cE as mt, cF as rn, cG as Dl, bD as Ml, cH as Il, cI as vs, cJ as Ol, cK as on, cL as Fl, h as Rl, cM as Vl, cN as Ha, cO as At, cP as Le, cQ as Tt, L as jt, cR as Ll, cS as Ns, c6 as $t, aF as Aa, aZ as oa, cT as cn, cU as Pl, bk as dn, a_ as ht, A as Bl, cV as zl, bh as jl, aL as un, g as ys, cW as mn, cX as $l, cY as Cs, cZ as ws, c_ as va, c4 as Pa, c$ as Kl, d0 as ql, d1 as Ss, d2 as Gl, d3 as Ul, d4 as Jl, d5 as Ta, d6 as _l, d7 as Hl, d8 as Rn, d9 as Ql, E as Ea, o as hn, da as Yl, db as pn, bF as Wl, I as Oe, dc as Xl, dd as Zl, bT as Da, bU as Ma, bV as st, bW as ga, de as er, br as tr, df as ks, dg as ar, dh as nr, bz as Ia, az as Be, P as Je, q as _e, di as sr, s as He, aG as fn, aH as gn, aJ as xn, bG as As, bc as Pt, dj as ot, dk as Et, dl as Dt, dm as pt, dn as Kt, dp as lr, a4 as rr, dq as ir, aE as Bt, dr as or, ds as Ts, dt as cr, du as dr, dv as ur, dw as mr, dx as hr, b3 as pr, dy as fr, dz as Es, dA as bn, b1 as Ne, dB as qt, dC as sa, dD as gr, dE as xr, dF as Qe, dG as ue, dH as me, dI as he, dJ as br, dK as vr, dL as ct, c7 as Ds, dM as Nr, dN as yr, dO as Cr, dP as wr, dQ as Sr, dR as kr, b7 as Ar, dS as Tr, ai as Ms, dT as Er, dU as Dr, dV as Mr, t as Gt, v as Ut, w as Jt, x as _t, y as Ht, z as Qt, dW as Ir, dX as Ge, dY as ua, dZ as Vn, d_ as Or, d$ as Ln, e0 as Fr, C as Xt, e1 as Ee, e2 as Rr, e3 as Pn, e4 as Bn, e5 as Vr, e6 as Lr, e7 as Pr, e8 as Br, e9 as zr, ea as Ba, eb as Is, ec as jr, ed as $r, ee as Na, ef as zn, ao as Oa, G as Kr, eg as qr, eh as Gr, ei as Ur, ej as Jr, ek as _r, ae as jn, el as $n, em as Hr, en as Qr, eo as Os, ep as Yr, eq as Fs, er as Wr, es as Xr, et as Zr, eu as ei, ev as ti, ew as ai, ex as ni, ey as si, ez as li, eA as ri, eB as Rs, eC as ii, eD as oi, eE as ci, eF as di, eG as ui, eH as mi, eI as hi, eJ as Vs, aI as pi, eK as fi, eL as Kn, eM as qn, _ as gi, eN as xi, eO as Ls, eP as bi, bM as Ps, eQ as Te, aA as vi, a0 as ya, eR as Ni, eS as yi, eT as Fa, eU as Bs, eV as Ra, eW as Ci, bA as wi, eX as Gn, eY as Si, eZ as ki, e_ as Ai, e$ as xa, f0 as ca, f1 as Ti, f2 as Ei, f3 as vn, f4 as Di, f5 as Mi, f6 as Ca, f7 as Ii, f8 as Oi, f9 as la, fa as dt, fb as Qa, fc as Ya, fd as ra, fe as zs, ff as Yt, fg as Fi, fh as za, fi as ja, fj as Ri, fk as $a, fl as Vi, fm as Un, fn as Li, fo as Pi, fp as Bi, fq as zi, aK as Pe, fr as ji, fs as $i, ft as Ki, b2 as qi, fu as Va, bf as La, fv as Jn, fw as js, fx as Ka, fy as qa, fz as Gi, fA as Ui, fB as Ji, F as _i } from "./index-CwRSeOKZ.js";
3
3
  import * as Wa from "react";
4
4
  import Xa, { useState as $, useEffect as pe, useRef as $e, useCallback as Ue, useContext as Nn, useMemo as we } from "react";
5
- import { d as yn } from "./editor-action-buttons-BrlrQ2Xg.js";
5
+ import { d as yn } from "./editor-action-buttons-BoZhsC0f.js";
6
6
  import { createPortal as Hi } from "react-dom";
7
7
  /**
8
8
  * @license lucide-react v0.453.0 - ISC
@@ -792,7 +792,7 @@ function Co({
792
792
  getAvailableSourceEntities: b,
793
793
  getAvailableTargetEntities: w,
794
794
  addJoinKeyGroup: M,
795
- updateGroupOperator: V,
795
+ updateGroupOperator: L,
796
796
  removeJoinKeyGroup: P,
797
797
  addJoinKey: N,
798
798
  updateJoinKey: k,
@@ -808,7 +808,7 @@ function Co({
808
808
  };
809
809
  return /* @__PURE__ */ a("div", { className: "space-y-6", children: [
810
810
  /* @__PURE__ */ a("div", { className: "space-y-2", children: [
811
- /* @__PURE__ */ e(L, { children: "Base Entity (FROM clause)" }),
811
+ /* @__PURE__ */ e(V, { children: "Base Entity (FROM clause)" }),
812
812
  /* @__PURE__ */ a(
813
813
  Z,
814
814
  {
@@ -855,7 +855,7 @@ function Co({
855
855
  ] }),
856
856
  /* @__PURE__ */ a("div", { className: "space-y-4", children: [
857
857
  /* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
858
- /* @__PURE__ */ a(L, { children: [
858
+ /* @__PURE__ */ a(V, { children: [
859
859
  "Joins Configuration (",
860
860
  c.joins.length,
861
861
  ")"
@@ -931,7 +931,7 @@ function Co({
931
931
  R && /* @__PURE__ */ a(en, { className: "space-y-4 pb-6", children: [
932
932
  /* @__PURE__ */ a("div", { className: "grid grid-cols-1 gap-4 md:grid-cols-3", children: [
933
933
  /* @__PURE__ */ a("div", { className: "space-y-2", children: [
934
- /* @__PURE__ */ e(L, { children: "Source" }),
934
+ /* @__PURE__ */ e(V, { children: "Source" }),
935
935
  /* @__PURE__ */ a(
936
936
  Z,
937
937
  {
@@ -979,7 +979,7 @@ function Co({
979
979
  )
980
980
  ] }),
981
981
  /* @__PURE__ */ a("div", { className: "space-y-2", children: [
982
- /* @__PURE__ */ e(L, { children: "Join Type" }),
982
+ /* @__PURE__ */ e(V, { children: "Join Type" }),
983
983
  /* @__PURE__ */ a(
984
984
  Z,
985
985
  {
@@ -1028,7 +1028,7 @@ function Co({
1028
1028
  )
1029
1029
  ] }),
1030
1030
  /* @__PURE__ */ a("div", { className: "space-y-2", children: [
1031
- /* @__PURE__ */ e(L, { children: "Target" }),
1031
+ /* @__PURE__ */ e(V, { children: "Target" }),
1032
1032
  /* @__PURE__ */ a(
1033
1033
  Z,
1034
1034
  {
@@ -1087,7 +1087,7 @@ function Co({
1087
1087
  ] }),
1088
1088
  C.source.name && C.target.name && v && D && /* @__PURE__ */ a("div", { className: "space-y-4", children: [
1089
1089
  /* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
1090
- /* @__PURE__ */ e(L, { children: "Join Conditions" }),
1090
+ /* @__PURE__ */ e(V, { children: "Join Conditions" }),
1091
1091
  /* @__PURE__ */ a(
1092
1092
  q,
1093
1093
  {
@@ -1109,12 +1109,12 @@ function Co({
1109
1109
  children: [
1110
1110
  /* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
1111
1111
  /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
1112
- /* @__PURE__ */ a(L, { children: [
1112
+ /* @__PURE__ */ a(V, { children: [
1113
1113
  "Group ",
1114
1114
  F + 1
1115
1115
  ] }),
1116
1116
  F > 0 && /* @__PURE__ */ a("div", { className: "flex items-center gap-2 rounded-md bg-gray-100 px-2 py-1", children: [
1117
- /* @__PURE__ */ e(L, { className: "text-xs font-normal", children: "Join with:" }),
1117
+ /* @__PURE__ */ e(V, { className: "text-xs font-normal", children: "Join with:" }),
1118
1118
  /* @__PURE__ */ e("span", { className: "text-sm font-medium", children: "OR" })
1119
1119
  ] })
1120
1120
  ] }),
@@ -1123,7 +1123,7 @@ function Co({
1123
1123
  Z,
1124
1124
  {
1125
1125
  value: E.operator,
1126
- onValueChange: (S) => V(
1126
+ onValueChange: (S) => L(
1127
1127
  C.id,
1128
1128
  F,
1129
1129
  S
@@ -1484,7 +1484,7 @@ function Hn({
1484
1484
  onOpenChange: s,
1485
1485
  variant: n = "button"
1486
1486
  } = {}) {
1487
- var M, V;
1487
+ var M, L;
1488
1488
  const l = I((P) => P.card), { autoJoinMetadata: r } = De(l), d = I(
1489
1489
  (P) => P.actions.updateCardConfig
1490
1490
  ), o = ((M = l == null ? void 0 : l.config) == null ? void 0 : M.joinPlan) || {
@@ -1498,7 +1498,7 @@ function Hn({
1498
1498
  dialect: "none"
1499
1499
  },
1500
1500
  joins: []
1501
- }, [c, i] = $(!1), u = t !== void 0, h = u ? t : c, p = u ? s : i, f = ((V = l == null ? void 0 : l.dataSource) == null ? void 0 : V.selectedEntities) || [], A = (P) => {
1501
+ }, [c, i] = $(!1), u = t !== void 0, h = u ? t : c, p = u ? s : i, f = ((L = l == null ? void 0 : l.dataSource) == null ? void 0 : L.selectedEntities) || [], A = (P) => {
1502
1502
  d(l.id, {
1503
1503
  ...l == null ? void 0 : l.config,
1504
1504
  joinPlan: P
@@ -1795,8 +1795,8 @@ function Hs({
1795
1795
  const s = I((w) => w.isDevMode);
1796
1796
  Al();
1797
1797
  const [n, l] = $(!1), [r, d] = $(!1), [o, c] = _s("semaphor:data-source-collapsed", !1), i = I((w) => w.card.dataSource), u = I((w) => {
1798
- var M, V;
1799
- return (V = (M = w.card) == null ? void 0 : M.config) == null ? void 0 : V.joinPlan;
1798
+ var M, L;
1799
+ return (L = (M = w.card) == null ? void 0 : M.config) == null ? void 0 : L.joinPlan;
1800
1800
  }), { updateDataSource: h } = le(), p = ((g = i == null ? void 0 : i.selectedEntities) == null ? void 0 : g.length) || 0, f = ((b = u == null ? void 0 : u.joins) == null ? void 0 : b.length) || 0, m = {
1801
1801
  ...{
1802
1802
  connectionId: "",
@@ -2321,7 +2321,7 @@ function Do() {
2321
2321
  }), c = I((B) => {
2322
2322
  var Y;
2323
2323
  return (Y = B == null ? void 0 : B.card) == null ? void 0 : Y.python;
2324
- }), { cardFilterValues: i } = Ll(
2324
+ }), { cardFilterValues: i } = Vl(
2325
2325
  (r == null ? void 0 : r.id) ?? ""
2326
2326
  ), u = Ce(
2327
2327
  (B) => B.inlineFilterValuesMap[(r == null ? void 0 : r.id) ?? ""]
@@ -2335,7 +2335,7 @@ function Do() {
2335
2335
  setCardPreferences: b,
2336
2336
  setCardType: w,
2337
2337
  setCardPython: M,
2338
- runAssistant: V,
2338
+ runAssistant: L,
2339
2339
  setShowAIDialog: P,
2340
2340
  setCard: N,
2341
2341
  updateCardInFrame: k
@@ -2405,7 +2405,7 @@ function Do() {
2405
2405
  ${c ? `Python:
2406
2406
  ${c}` : ""}
2407
2407
  `;
2408
- V(B);
2408
+ L(B);
2409
2409
  }
2410
2410
  function _() {
2411
2411
  return /* @__PURE__ */ a(
@@ -2416,7 +2416,7 @@ ${c}` : ""}
2416
2416
  role: "editor-resizable-group",
2417
2417
  children: [
2418
2418
  /* @__PURE__ */ a(
2419
- Ve,
2419
+ Le,
2420
2420
  {
2421
2421
  id: "1",
2422
2422
  order: 1,
@@ -2438,7 +2438,7 @@ ${c}` : ""}
2438
2438
  n && /* @__PURE__ */ a(ie, { children: [
2439
2439
  /* @__PURE__ */ e(Tt, { withHandle: !0, className: "border" }),
2440
2440
  /* @__PURE__ */ a(
2441
- Ve,
2441
+ Le,
2442
2442
  {
2443
2443
  id: "2",
2444
2444
  order: 2,
@@ -2481,7 +2481,7 @@ ${c}` : ""}
2481
2481
  className: "h-8 shrink-0",
2482
2482
  size: "sm",
2483
2483
  children: [
2484
- C || v ? /* @__PURE__ */ e(jt, { className: "mr-2 h-4 w-4 animate-spin" }) : /* @__PURE__ */ e(Vl, { className: "mr-2 h-4 w-4" }),
2484
+ C || v ? /* @__PURE__ */ e(jt, { className: "mr-2 h-4 w-4 animate-spin" }) : /* @__PURE__ */ e(Ll, { className: "mr-2 h-4 w-4" }),
2485
2485
  "Run"
2486
2486
  ]
2487
2487
  }
@@ -2543,7 +2543,7 @@ ${c}` : ""}
2543
2543
  }
2544
2544
  }
2545
2545
  ),
2546
- /* @__PURE__ */ e(L, { htmlFor: "pagination", className: "cursor-pointer text-sm", children: "Paginate" }),
2546
+ /* @__PURE__ */ e(V, { htmlFor: "pagination", className: "cursor-pointer text-sm", children: "Paginate" }),
2547
2547
  ((oe = (z = r.preferences) == null ? void 0 : z.tablePrefs) == null ? void 0 : oe.enableDevModePagination) && /* @__PURE__ */ a(
2548
2548
  Z,
2549
2549
  {
@@ -2665,7 +2665,7 @@ function Io({ className: t }) {
2665
2665
  }
2666
2666
  ),
2667
2667
  /* @__PURE__ */ a(
2668
- L,
2668
+ V,
2669
2669
  {
2670
2670
  htmlFor: `table-type-${i.value}`,
2671
2671
  className: Q(
@@ -2751,7 +2751,7 @@ function Ws({
2751
2751
  ...s
2752
2752
  }) {
2753
2753
  var J, _, W;
2754
- const n = I((B) => B.card), l = ((J = n.customCardPreferences) == null ? void 0 : J.showCardHeader) ?? !0, r = ((W = (_ = n.preferences) == null ? void 0 : _.displayOptions) == null ? void 0 : W.showInlineFilterBar) ?? !0, d = I((B) => B.frame), o = Ce((B) => B.dashboard.filters), c = Ce((B) => B.selectedSheetId), [i, u] = $(!1), { currentUser: h } = jl(), { tokenProps: p } = Nn(un), f = I((B) => B.actions.setRunSql), { updateFilter: A } = ys(), m = o == null ? void 0 : o.find((B) => B.id === d.filterId), { data: g, isLoading: b, isFetching: w, errorMessage: M, errorSql: V, pagination: P } = De(n), N = we(() => (g == null ? void 0 : g.records) || [], [g == null ? void 0 : g.records]), { setCard: k, updateCardInFrame: x, setIsDevMode: y, setCardSql: T } = le(), { data: O } = mn(n), C = we(() => {
2754
+ const n = I((B) => B.card), l = ((J = n.customCardPreferences) == null ? void 0 : J.showCardHeader) ?? !0, r = ((W = (_ = n.preferences) == null ? void 0 : _.displayOptions) == null ? void 0 : W.showInlineFilterBar) ?? !0, d = I((B) => B.frame), o = Ce((B) => B.dashboard.filters), c = Ce((B) => B.selectedSheetId), [i, u] = $(!1), { currentUser: h } = jl(), { tokenProps: p } = Nn(un), f = I((B) => B.actions.setRunSql), { updateFilter: A } = ys(), m = o == null ? void 0 : o.find((B) => B.id === d.filterId), { data: g, isLoading: b, isFetching: w, errorMessage: M, errorSql: L, pagination: P } = De(n), N = we(() => (g == null ? void 0 : g.records) || [], [g == null ? void 0 : g.records]), { setCard: k, updateCardInFrame: x, setIsDevMode: y, setCardSql: T } = le(), { data: O } = mn(n), C = we(() => {
2755
2755
  var B;
2756
2756
  return n.type !== "pivotTable" || !((B = g == null ? void 0 : g.records) != null && B.length) ? null : {
2757
2757
  records: g.records,
@@ -2768,7 +2768,7 @@ function Ws({
2768
2768
  g == null ? void 0 : g.pivotSchema,
2769
2769
  g == null ? void 0 : g.groupByColumns
2770
2770
  ]), v = $l(n, C), D = (B) => {
2771
- y(!0), T(B || V || n.sql || n.python || ""), setTimeout(() => {
2771
+ y(!0), T(B || L || n.sql || n.python || ""), setTimeout(() => {
2772
2772
  f(!0);
2773
2773
  }, 100);
2774
2774
  }, R = () => {
@@ -2784,8 +2784,8 @@ function Ws({
2784
2784
  dataSource: n.dataSource,
2785
2785
  dashboardFilters: o,
2786
2786
  errorMessage: M || void 0,
2787
- errorSql: V || n.sql || n.python,
2788
- generatedSql: V || n.sql
2787
+ errorSql: L || n.sql || n.python,
2788
+ generatedSql: L || n.sql
2789
2789
  },
2790
2790
  metadata: {
2791
2791
  url: B,
@@ -2794,7 +2794,7 @@ function Ws({
2794
2794
  viewport: z
2795
2795
  }
2796
2796
  };
2797
- }, [h, p, n, o, M, V]), F = (B, Y) => {
2797
+ }, [h, p, n, o, M, L]), F = (B, Y) => {
2798
2798
  var oe, ce;
2799
2799
  const z = {
2800
2800
  ...n,
@@ -2845,7 +2845,7 @@ function Ws({
2845
2845
  wn,
2846
2846
  {
2847
2847
  error: M,
2848
- errorSql: V || n.sql || n.python,
2848
+ errorSql: L || n.sql || n.python,
2849
2849
  onOpenInEditor: D,
2850
2850
  onSendFeedback: R,
2851
2851
  showFeedbackButton: !0,
@@ -2963,7 +2963,7 @@ function Ws({
2963
2963
  ) })
2964
2964
  ] }),
2965
2965
  m && /* @__PURE__ */ a("div", { className: "flex items-center gap-3", children: [
2966
- /* @__PURE__ */ e(L, { className: "my-1", children: /* @__PURE__ */ e(
2966
+ /* @__PURE__ */ e(V, { className: "my-1", children: /* @__PURE__ */ e(
2967
2967
  Pa,
2968
2968
  {
2969
2969
  value: m.title || m.column,
@@ -3092,19 +3092,19 @@ const Ja = ({
3092
3092
  )
3093
3093
  }
3094
3094
  )
3095
- ] }), Lo = ({
3095
+ ] }), Vo = ({
3096
3096
  error: t,
3097
3097
  hasCardCustomConfig: s,
3098
3098
  onReset: n,
3099
3099
  onApply: l,
3100
3100
  onClose: r
3101
3101
  }) => /* @__PURE__ */ a(ba, { className: "flex items-center", children: [
3102
- /* @__PURE__ */ e(L, { className: "mr-2 text-red-500", children: t }),
3102
+ /* @__PURE__ */ e(V, { className: "mr-2 text-red-500", children: t }),
3103
3103
  /* @__PURE__ */ e(q, { disabled: !s, onClick: n, variant: "outline", children: "Reset" }),
3104
3104
  /* @__PURE__ */ e(q, { onClick: l, variant: "outline", children: "Apply" }),
3105
3105
  /* @__PURE__ */ e(q, { onClick: r, variant: "outline", children: "Close" })
3106
3106
  ] });
3107
- function Vo() {
3107
+ function Lo() {
3108
3108
  const [t, s] = $(!1), [n, l] = $(""), [r, d] = $(""), [o, c] = $(""), [i, u] = $(""), h = I((N) => N.card), p = I((N) => N.card.customCfg), f = p ? JSON.stringify(p, null, 2) : "", { data: A } = De(h), { data: m } = mn(h), { setCardCustomCfg: g, setCustomVisualCode: b } = le(), w = (N) => {
3109
3109
  var k, x;
3110
3110
  return JSON.stringify(
@@ -3138,7 +3138,7 @@ function Vo() {
3138
3138
  const y = Zl(N, p);
3139
3139
  d(w(y));
3140
3140
  }
3141
- }, V = () => {
3141
+ }, L = () => {
3142
3142
  try {
3143
3143
  if (o && b(o), r) {
3144
3144
  const N = JSON.parse(
@@ -3179,14 +3179,14 @@ function Vo() {
3179
3179
  )
3180
3180
  ] }),
3181
3181
  /* @__PURE__ */ e(
3182
- Lo,
3182
+ Vo,
3183
3183
  {
3184
3184
  error: i,
3185
3185
  hasCardCustomConfig: !!p,
3186
3186
  onReset: () => {
3187
3187
  d(n), g(null);
3188
3188
  },
3189
- onApply: V,
3189
+ onApply: L,
3190
3190
  onClose: () => s(!1)
3191
3191
  }
3192
3192
  )
@@ -3322,7 +3322,7 @@ function Xs({ onChartSelect: t, onClose: s }) {
3322
3322
  icon: N.icon,
3323
3323
  pluginChartType: N.chartType
3324
3324
  }), m(void 0), t == null || t("custom", N), s == null || s();
3325
- }, V = (N) => {
3325
+ }, L = (N) => {
3326
3326
  const k = {
3327
3327
  type: "default",
3328
3328
  id: N.id,
@@ -3363,7 +3363,7 @@ function Xs({ onChartSelect: t, onClose: s }) {
3363
3363
  isCustom: !1,
3364
3364
  isStarred: d("default", N.id),
3365
3365
  onSelect: () => w(N.id),
3366
- onToggleStar: () => V(N)
3366
+ onToggleStar: () => L(N)
3367
3367
  },
3368
3368
  N.id
3369
3369
  )) })
@@ -3534,8 +3534,8 @@ function zo() {
3534
3534
  function jo({
3535
3535
  className: t
3536
3536
  }) {
3537
- var A, m, g, b, w, M, V, P, N, k;
3538
- const s = I((x) => x.card), { setCardPreferences: n, updateCardInFrame: l, setCard: r } = le(), [d, o] = $(!1), c = ((m = (A = s.preferences) == null ? void 0 : A.displayOptions) == null ? void 0 : m.showFilterInfo) ?? !0, i = ((b = (g = s.preferences) == null ? void 0 : g.displayOptions) == null ? void 0 : b.showCardToolbar) ?? !0, u = ((M = (w = s.preferences) == null ? void 0 : w.displayOptions) == null ? void 0 : M.showChrome) ?? !0, h = ((P = (V = s.preferences) == null ? void 0 : V.displayOptions) == null ? void 0 : P.allowScroll) ?? !0, p = ((k = (N = s.preferences) == null ? void 0 : N.displayOptions) == null ? void 0 : k.showInlineFilterBar) ?? !0, f = (x, y) => {
3537
+ var A, m, g, b, w, M, L, P, N, k;
3538
+ const s = I((x) => x.card), { setCardPreferences: n, updateCardInFrame: l, setCard: r } = le(), [d, o] = $(!1), c = ((m = (A = s.preferences) == null ? void 0 : A.displayOptions) == null ? void 0 : m.showFilterInfo) ?? !0, i = ((b = (g = s.preferences) == null ? void 0 : g.displayOptions) == null ? void 0 : b.showCardToolbar) ?? !0, u = ((M = (w = s.preferences) == null ? void 0 : w.displayOptions) == null ? void 0 : M.showChrome) ?? !0, h = ((P = (L = s.preferences) == null ? void 0 : L.displayOptions) == null ? void 0 : P.allowScroll) ?? !0, p = ((k = (N = s.preferences) == null ? void 0 : N.displayOptions) == null ? void 0 : k.showInlineFilterBar) ?? !0, f = (x, y) => {
3539
3539
  var C;
3540
3540
  const T = {
3541
3541
  ...s.preferences,
@@ -3988,11 +3988,11 @@ function Za() {
3988
3988
  function m(b) {
3989
3989
  const w = {
3990
3990
  ...t,
3991
- cards: t.cards.map((V) => V.id === s.id ? s : V),
3991
+ cards: t.cards.map((L) => L.id === s.id ? s : L),
3992
3992
  activeCardId: b
3993
3993
  };
3994
3994
  r(w);
3995
- const M = w.cards.find((V) => V.id === b);
3995
+ const M = w.cards.find((L) => L.id === b);
3996
3996
  M.sql && i(!0), o(M);
3997
3997
  }
3998
3998
  function g() {
@@ -4036,7 +4036,7 @@ function Xn({
4036
4036
  runAssistant: p,
4037
4037
  setIsDevMode: f,
4038
4038
  setCardPreferences: A
4039
- } = le(), { data: m, isLoading: g, isFetching: b, errorMessage: w, refetch: M, pagination: V } = De(n), P = we(() => (m == null ? void 0 : m.records) || [], [m == null ? void 0 : m.records]), [N, k] = $(!1);
4039
+ } = le(), { data: m, isLoading: g, isFetching: b, errorMessage: w, refetch: M, pagination: L } = De(n), P = we(() => (m == null ? void 0 : m.records) || [], [m == null ? void 0 : m.records]), [N, k] = $(!1);
4040
4040
  pe(() => {
4041
4041
  b || k(!1);
4042
4042
  }, [b]);
@@ -4108,7 +4108,7 @@ function Xn({
4108
4108
  r && /* @__PURE__ */ a("div", { className: "flex grow items-center", children: [
4109
4109
  /* @__PURE__ */ e(Zs, {}),
4110
4110
  d && /* @__PURE__ */ e(Oe, { tooltip: "Visual Docs", onClick: C, children: /* @__PURE__ */ e(Wi, { className: "size-4" }) }),
4111
- !["table", "custom"].includes(n.type) && d && /* @__PURE__ */ e(Vo, {})
4111
+ !["table", "custom"].includes(n.type) && d && /* @__PURE__ */ e(Lo, {})
4112
4112
  ] }),
4113
4113
  !r && /* @__PURE__ */ a("div", { className: "flex grow items-center gap-1", children: [
4114
4114
  /* @__PURE__ */ e(
@@ -4173,7 +4173,7 @@ function Xn({
4173
4173
  children: [
4174
4174
  o && /* @__PURE__ */ a(ie, { children: [
4175
4175
  /* @__PURE__ */ e(
4176
- Ve,
4176
+ Le,
4177
4177
  {
4178
4178
  id: "1",
4179
4179
  order: 1,
@@ -4186,7 +4186,7 @@ function Xn({
4186
4186
  /* @__PURE__ */ e(Tt, {})
4187
4187
  ] }),
4188
4188
  /* @__PURE__ */ a(
4189
- Ve,
4189
+ Le,
4190
4190
  {
4191
4191
  id: "2",
4192
4192
  order: 2,
@@ -4204,7 +4204,7 @@ function Xn({
4204
4204
  {
4205
4205
  card: n,
4206
4206
  data: P,
4207
- paginationMetadata: V,
4207
+ paginationMetadata: L,
4208
4208
  onPaginationChange: x,
4209
4209
  onSortChange: y,
4210
4210
  isLoading: g || b
@@ -4252,7 +4252,7 @@ function Uo() {
4252
4252
  }
4253
4253
  );
4254
4254
  }
4255
- function Le({
4255
+ function Ve({
4256
4256
  value: t,
4257
4257
  onCommit: s,
4258
4258
  type: n = "text",
@@ -4354,8 +4354,8 @@ function tl() {
4354
4354
  });
4355
4355
  }
4356
4356
  function p(w) {
4357
- var V, P;
4358
- const M = (V = r == null ? void 0 : r.cards) == null ? void 0 : V.filter((N) => {
4357
+ var L, P;
4358
+ const M = (L = r == null ? void 0 : r.cards) == null ? void 0 : L.filter((N) => {
4359
4359
  var k;
4360
4360
  return ((k = N == null ? void 0 : N.customCardPreferences) == null ? void 0 : k.visualType) !== "multiple";
4361
4361
  }).map((N) => ({
@@ -4386,10 +4386,10 @@ function tl() {
4386
4386
  );
4387
4387
  }) });
4388
4388
  }
4389
- function f(w, M, V = [], P = "") {
4389
+ function f(w, M, L = [], P = "") {
4390
4390
  var N, k;
4391
4391
  return t ? w === "input" ? /* @__PURE__ */ e(
4392
- Le,
4392
+ Ve,
4393
4393
  {
4394
4394
  className: `h-8 w-full ${ct}`,
4395
4395
  value: String(
@@ -4411,7 +4411,7 @@ function tl() {
4411
4411
  {
4412
4412
  className: "h-8 w-full",
4413
4413
  label: "",
4414
- options: V,
4414
+ options: L,
4415
4415
  value: ((k = t == null ? void 0 : t.settings) == null ? void 0 : k[M]) || P,
4416
4416
  onValueChange: (x) => {
4417
4417
  o({
@@ -4424,11 +4424,11 @@ function tl() {
4424
4424
  }
4425
4425
  function A(w) {
4426
4426
  const M = Object.entries((w == null ? void 0 : w.settings) || {});
4427
- return /* @__PURE__ */ e("div", { className: "space-y-3", children: M.map(([V, P]) => {
4427
+ return /* @__PURE__ */ e("div", { className: "space-y-3", children: M.map(([L, P]) => {
4428
4428
  var N;
4429
4429
  return /* @__PURE__ */ a("div", { className: "space-y-2", children: [
4430
4430
  /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
4431
- /* @__PURE__ */ e(L, { children: P.title }),
4431
+ /* @__PURE__ */ e(V, { children: P.title }),
4432
4432
  ((N = P.docs) == null ? void 0 : N.description) && /* @__PURE__ */ e(je, { delayDuration: 0, children: /* @__PURE__ */ a(Fe, { children: [
4433
4433
  /* @__PURE__ */ e(Re, { asChild: !0, children: /* @__PURE__ */ e(mt, { className: "h-3.5 w-3.5 cursor-help text-muted-foreground" }) }),
4434
4434
  /* @__PURE__ */ e(ze, { side: "right", className: "max-w-xs", children: /* @__PURE__ */ e("p", { className: "text-xs", children: P.docs.description }) })
@@ -4436,11 +4436,11 @@ function tl() {
4436
4436
  ] }),
4437
4437
  f(
4438
4438
  P.ui,
4439
- V,
4439
+ L,
4440
4440
  P.options,
4441
4441
  P.defaultValue
4442
4442
  )
4443
- ] }, V);
4443
+ ] }, L);
4444
4444
  }) });
4445
4445
  }
4446
4446
  function m(w) {
@@ -4565,7 +4565,7 @@ function tl() {
4565
4565
  ] }) }),
4566
4566
  /* @__PURE__ */ a(he, { children: [
4567
4567
  u && u.dataInputs && /* @__PURE__ */ a("div", { className: "space-y-3", children: [
4568
- /* @__PURE__ */ e(L, { children: "Input Mapping" }),
4568
+ /* @__PURE__ */ e(V, { children: "Input Mapping" }),
4569
4569
  /* @__PURE__ */ e("div", { className: "px-2", children: p(u) })
4570
4570
  ] }),
4571
4571
  u && u.settings && /* @__PURE__ */ e("div", { className: "space-y-3", children: /* @__PURE__ */ e("div", { className: "px-2", children: A(u) }) })
@@ -4839,7 +4839,7 @@ function al() {
4839
4839
  ), { data: n } = De(t), l = s === "y" ? "Metric" : "Dimension", r = s === "y" ? "Dimension" : "Metric", { dimensionKeys: d, transformedMetricKeys: o, keys: c } = Ho();
4840
4840
  return c.length === 0 ? null : /* @__PURE__ */ a("div", { className: "space-y-4", children: [
4841
4841
  /* @__PURE__ */ a("div", { className: "space-y-2", children: [
4842
- /* @__PURE__ */ e(L, { children: l }),
4842
+ /* @__PURE__ */ e(V, { children: l }),
4843
4843
  /* @__PURE__ */ e("div", { className: "max-h-[125px] space-y-1 overflow-y-auto", children: d.map((i) => /* @__PURE__ */ e(
4844
4844
  "p",
4845
4845
  {
@@ -4851,7 +4851,7 @@ function al() {
4851
4851
  )) })
4852
4852
  ] }),
4853
4853
  /* @__PURE__ */ a("div", { className: "space-y-2", children: [
4854
- /* @__PURE__ */ e(L, { children: r }),
4854
+ /* @__PURE__ */ e(V, { children: r }),
4855
4855
  /* @__PURE__ */ e("div", { className: "my-1 max-h-[125px] space-y-1 overflow-y-auto", children: o.map((i, u) => /* @__PURE__ */ e(
4856
4856
  sl,
4857
4857
  {
@@ -4965,7 +4965,7 @@ function Zt() {
4965
4965
  }
4966
4966
  const o = t == null ? void 0 : t.find((c) => c.id === s.filterId);
4967
4967
  return /* @__PURE__ */ a("div", { className: "space-y-3", children: [
4968
- /* @__PURE__ */ e(L, { children: "Card Filter" }),
4968
+ /* @__PURE__ */ e(V, { children: "Card Filter" }),
4969
4969
  /* @__PURE__ */ e(Qo, { onSelect: d, columns: l }),
4970
4970
  o && /* @__PURE__ */ e(Dr, { filter: o })
4971
4971
  ] });
@@ -5340,7 +5340,7 @@ function ac({
5340
5340
  }
5341
5341
  return /* @__PURE__ */ a("div", { className: "space-y-3", children: [
5342
5342
  /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
5343
- /* @__PURE__ */ e(L, { children: "Color Range" }),
5343
+ /* @__PURE__ */ e(V, { children: "Color Range" }),
5344
5344
  /* @__PURE__ */ e(
5345
5345
  q,
5346
5346
  {
@@ -5431,7 +5431,7 @@ function nc() {
5431
5431
  }
5432
5432
  ) || [], i = I(
5433
5433
  (g) => g.actions.setColorRanges
5434
- ), u = [...new Set(Ln.map((g) => g.currency))];
5434
+ ), u = [...new Set(Vn.map((g) => g.currency))];
5435
5435
  return /* @__PURE__ */ a("div", { children: [
5436
5436
  !l && /* @__PURE__ */ a("div", { className: "mb-3 flex items-center gap-2", children: [
5437
5437
  /* @__PURE__ */ e(
@@ -5449,13 +5449,13 @@ function nc() {
5449
5449
  }
5450
5450
  }
5451
5451
  ),
5452
- /* @__PURE__ */ e(L, { children: "Format Number" })
5452
+ /* @__PURE__ */ e(V, { children: "Format Number" })
5453
5453
  ] }),
5454
5454
  (((p = t == null ? void 0 : t.formatNumber) == null ? void 0 : p.enabled) === !0 || l) && /* @__PURE__ */ a("div", { className: "flex flex-col gap-2", children: [
5455
5455
  /* @__PURE__ */ e("div", { children: /* @__PURE__ */ a("div", { className: "space-y-4", children: [
5456
5456
  /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
5457
5457
  /* @__PURE__ */ a("div", { className: "w-full space-y-1", children: [
5458
- /* @__PURE__ */ e(L, { children: "Locale" }),
5458
+ /* @__PURE__ */ e(V, { children: "Locale" }),
5459
5459
  /* @__PURE__ */ a(
5460
5460
  Z,
5461
5461
  {
@@ -5474,14 +5474,14 @@ function nc() {
5474
5474
  /* @__PURE__ */ e(ae, { children: /* @__PURE__ */ a(qt, { children: [
5475
5475
  /* @__PURE__ */ e(sa, { children: "Format" }),
5476
5476
  /* @__PURE__ */ e(K, { value: "none", children: "Auto" }, "none"),
5477
- Ln.map((g) => /* @__PURE__ */ e(K, { value: g.locale, children: g.locale }, g.locale))
5477
+ Vn.map((g) => /* @__PURE__ */ e(K, { value: g.locale, children: g.locale }, g.locale))
5478
5478
  ] }) })
5479
5479
  ]
5480
5480
  }
5481
5481
  )
5482
5482
  ] }),
5483
5483
  /* @__PURE__ */ a("div", { className: "w-full space-y-1", children: [
5484
- /* @__PURE__ */ e(L, { children: "Currency" }),
5484
+ /* @__PURE__ */ e(V, { children: "Currency" }),
5485
5485
  /* @__PURE__ */ a(
5486
5486
  Z,
5487
5487
  {
@@ -5509,7 +5509,7 @@ function nc() {
5509
5509
  ] }),
5510
5510
  /* @__PURE__ */ a("div", { className: "flex gap-2", children: [
5511
5511
  /* @__PURE__ */ a("div", { className: "w-full space-y-1", children: [
5512
- /* @__PURE__ */ e(L, { children: "Decimals" }),
5512
+ /* @__PURE__ */ e(V, { children: "Decimals" }),
5513
5513
  /* @__PURE__ */ a(
5514
5514
  Z,
5515
5515
  {
@@ -5531,7 +5531,7 @@ function nc() {
5531
5531
  )
5532
5532
  ] }),
5533
5533
  /* @__PURE__ */ a("div", { className: "w-full space-y-1", children: [
5534
- /* @__PURE__ */ e(L, { children: "Suffix" }),
5534
+ /* @__PURE__ */ e(V, { children: "Suffix" }),
5535
5535
  /* @__PURE__ */ e(
5536
5536
  Ne,
5537
5537
  {
@@ -5607,7 +5607,7 @@ function _a({
5607
5607
  className: Q("space-y-4 [&_summary>svg]:open:-rotate-180", l),
5608
5608
  children: [
5609
5609
  /* @__PURE__ */ a("summary", { className: "flex cursor-pointer list-none items-center justify-between gap-4", children: [
5610
- /* @__PURE__ */ e(L, { children: s }),
5610
+ /* @__PURE__ */ e(V, { children: s }),
5611
5611
  /* @__PURE__ */ e(ka, { className: "h-4 w-4" })
5612
5612
  ] }),
5613
5613
  /* @__PURE__ */ e("div", { className: "transition-all ease-in-out", children: t })
@@ -5716,7 +5716,7 @@ const lc = [
5716
5716
  value: t
5717
5717
  }));
5718
5718
  function oc() {
5719
- var i, u, h, p, f, A, m, g, b, w, M, V, P, N, k, x, y, T;
5719
+ var i, u, h, p, f, A, m, g, b, w, M, L, P, N, k, x, y, T;
5720
5720
  const t = I((O) => O.card), s = (u = (i = t == null ? void 0 : t.preferences) == null ? void 0 : i.mapVisualOptions) == null ? void 0 : u.topoJsonUrl, [n, l] = $(
5721
5721
  ((p = (h = t == null ? void 0 : t.preferences) == null ? void 0 : h.mapVisualOptions) == null ? void 0 : p.customTopoJsonUrl) || ""
5722
5722
  ), { setCardPreferences: r } = le(), { data: d } = mn(t), o = Object.keys((d == null ? void 0 : d.objects) || {}).map((O) => ({
@@ -5781,7 +5781,7 @@ function oc() {
5781
5781
  ),
5782
5782
  d && /* @__PURE__ */ a(ie, { children: [
5783
5783
  /* @__PURE__ */ a("div", { className: "space-y-1", children: [
5784
- /* @__PURE__ */ e(L, { children: "Map Object" }),
5784
+ /* @__PURE__ */ e(V, { children: "Map Object" }),
5785
5785
  /* @__PURE__ */ e(
5786
5786
  at,
5787
5787
  {
@@ -5803,7 +5803,7 @@ function oc() {
5803
5803
  )
5804
5804
  ] }),
5805
5805
  /* @__PURE__ */ a("div", { className: "space-y-1", children: [
5806
- /* @__PURE__ */ e(L, { children: "Projection" }),
5806
+ /* @__PURE__ */ e(V, { children: "Projection" }),
5807
5807
  /* @__PURE__ */ e(
5808
5808
  at,
5809
5809
  {
@@ -5825,7 +5825,7 @@ function oc() {
5825
5825
  )
5826
5826
  ] }),
5827
5827
  /* @__PURE__ */ a("div", { className: "space-y-1", children: [
5828
- /* @__PURE__ */ e(L, { children: "Colors" }),
5828
+ /* @__PURE__ */ e(V, { children: "Colors" }),
5829
5829
  /* @__PURE__ */ e(
5830
5830
  at,
5831
5831
  {
@@ -5856,7 +5856,7 @@ function oc() {
5856
5856
  className: `h-9 w-full ${ct}`,
5857
5857
  type: "number",
5858
5858
  step: 0.1,
5859
- value: ((V = (M = t.preferences) == null ? void 0 : M.mapVisualOptions) == null ? void 0 : V.projectionScale) || 1,
5859
+ value: ((L = (M = t.preferences) == null ? void 0 : M.mapVisualOptions) == null ? void 0 : L.projectionScale) || 1,
5860
5860
  onChange: (O) => {
5861
5861
  var C;
5862
5862
  r({
@@ -5869,7 +5869,7 @@ function oc() {
5869
5869
  }
5870
5870
  }
5871
5871
  ),
5872
- /* @__PURE__ */ e(L, { children: "X" }),
5872
+ /* @__PURE__ */ e(V, { children: "X" }),
5873
5873
  /* @__PURE__ */ e(
5874
5874
  Ne,
5875
5875
  {
@@ -5892,7 +5892,7 @@ function oc() {
5892
5892
  }
5893
5893
  }
5894
5894
  ),
5895
- /* @__PURE__ */ e(L, { children: "Y" }),
5895
+ /* @__PURE__ */ e(V, { children: "Y" }),
5896
5896
  /* @__PURE__ */ e(
5897
5897
  Ne,
5898
5898
  {
@@ -6005,7 +6005,7 @@ function dc() {
6005
6005
  ), { setSortChart: s } = le();
6006
6006
  function n() {
6007
6007
  return /* @__PURE__ */ a("div", { className: "space-y-2", children: [
6008
- /* @__PURE__ */ e(L, { children: "Sort" }),
6008
+ /* @__PURE__ */ e(V, { children: "Sort" }),
6009
6009
  /* @__PURE__ */ e(
6010
6010
  at,
6011
6011
  {
@@ -6123,10 +6123,10 @@ function rl({ color: t, onColorChange: s, onClose: n }) {
6123
6123
  const p = (b) => {
6124
6124
  r(b), A(b, d, c);
6125
6125
  }, f = (b) => {
6126
- const w = b.currentTarget.getBoundingClientRect(), M = Math.max(0, Math.min(1, (b.clientX - w.left) / w.width)), V = Math.max(0, Math.min(1, (b.clientY - w.top) / w.height)), P = M * 100, N = (1 - V) * 100;
6126
+ const w = b.currentTarget.getBoundingClientRect(), M = Math.max(0, Math.min(1, (b.clientX - w.left) / w.width)), L = Math.max(0, Math.min(1, (b.clientY - w.top) / w.height)), P = M * 100, N = (1 - L) * 100;
6127
6127
  o(P), i(N), A(l, P, N);
6128
6128
  }, A = (b, w, M) => {
6129
- const V = hc(b, w, M), P = mc(V.r, V.g, V.b);
6129
+ const L = hc(b, w, M), P = mc(L.r, L.g, L.b);
6130
6130
  h(P);
6131
6131
  }, m = (b) => {
6132
6132
  if (h(b), /^#[0-9A-Fa-f]{6}$/.test(b)) {
@@ -6199,7 +6199,7 @@ function rl({ color: t, onColorChange: s, onClose: n }) {
6199
6199
  }
6200
6200
  ) }),
6201
6201
  /* @__PURE__ */ a("div", { className: "space-y-2", children: [
6202
- /* @__PURE__ */ e(L, { children: "HEX" }),
6202
+ /* @__PURE__ */ e(V, { children: "HEX" }),
6203
6203
  /* @__PURE__ */ e(
6204
6204
  Ne,
6205
6205
  {
@@ -6322,7 +6322,7 @@ const pc = [
6322
6322
  // yellow-400
6323
6323
  ];
6324
6324
  function il() {
6325
- var V, P, N, k, x, y, T, O, C, v;
6325
+ var L, P, N, k, x, y, T, O, C, v;
6326
6326
  const t = I((D) => D.card), s = I((D) => {
6327
6327
  var R;
6328
6328
  return (R = D.card) == null ? void 0 : R.preferences;
@@ -6369,7 +6369,7 @@ function il() {
6369
6369
  return [];
6370
6370
  }, [
6371
6371
  r,
6372
- (V = t == null ? void 0 : t.config) == null ? void 0 : V.groupByColumns,
6372
+ (L = t == null ? void 0 : t.config) == null ? void 0 : L.groupByColumns,
6373
6373
  (P = t == null ? void 0 : t.config) == null ? void 0 : P.pivotByColumns,
6374
6374
  (N = t == null ? void 0 : t.config) == null ? void 0 : N.metricColumns,
6375
6375
  t == null ? void 0 : t.type
@@ -6377,7 +6377,7 @@ function il() {
6377
6377
  pe(() => {
6378
6378
  const D = {};
6379
6379
  p.forEach((R, E) => {
6380
- D[R] = Vn(
6380
+ D[R] = Ln(
6381
6381
  R,
6382
6382
  E,
6383
6383
  s == null ? void 0 : s.colorConfig
@@ -6437,7 +6437,7 @@ function il() {
6437
6437
  l(R);
6438
6438
  const E = {};
6439
6439
  p.forEach((F, S) => {
6440
- E[F] = Vn(F, S, void 0);
6440
+ E[F] = Ln(F, S, void 0);
6441
6441
  }), o(E);
6442
6442
  }, M = Object.keys(((v = s == null ? void 0 : s.colorConfig) == null ? void 0 : v.segments) || {}).length > 0;
6443
6443
  return /* @__PURE__ */ a(ue, { value: "colors", className: "border-b-0", children: [
@@ -6725,7 +6725,7 @@ function kn({
6725
6725
  }, o = () => r === "currency" ? 2 : r === "percent" ? 1 : 0;
6726
6726
  return /* @__PURE__ */ a(ie, { children: [
6727
6727
  /* @__PURE__ */ a("div", { className: "space-y-2", children: [
6728
- n && /* @__PURE__ */ e(L, { className: "text-xs font-medium text-muted-foreground", children: l }),
6728
+ n && /* @__PURE__ */ e(V, { className: "text-xs font-medium text-muted-foreground", children: l }),
6729
6729
  /* @__PURE__ */ a(
6730
6730
  Z,
6731
6731
  {
@@ -6740,7 +6740,7 @@ function kn({
6740
6740
  ] }),
6741
6741
  r !== "auto" && /* @__PURE__ */ a("div", { className: "space-y-2 border-l-2 border-muted pl-4", children: [
6742
6742
  ["number", "currency", "percent"].includes(r) && /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
6743
- /* @__PURE__ */ e(L, { className: "w-20 text-xs text-muted-foreground", children: "Decimals" }),
6743
+ /* @__PURE__ */ e(V, { className: "w-20 text-xs text-muted-foreground", children: "Decimals" }),
6744
6744
  /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
6745
6745
  Ne,
6746
6746
  {
@@ -6758,7 +6758,7 @@ function kn({
6758
6758
  ) })
6759
6759
  ] }),
6760
6760
  r === "currency" && /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
6761
- /* @__PURE__ */ e(L, { className: "w-20 text-xs text-muted-foreground", children: "Currency" }),
6761
+ /* @__PURE__ */ e(V, { className: "w-20 text-xs text-muted-foreground", children: "Currency" }),
6762
6762
  /* @__PURE__ */ a(
6763
6763
  Z,
6764
6764
  {
@@ -6780,7 +6780,7 @@ function kn({
6780
6780
  )
6781
6781
  ] }),
6782
6782
  ["number", "currency"].includes(r) && /* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
6783
- /* @__PURE__ */ e(L, { className: "text-xs text-muted-foreground", children: "Abbreviate (K, M, B)" }),
6783
+ /* @__PURE__ */ e(V, { className: "text-xs text-muted-foreground", children: "Abbreviate (K, M, B)" }),
6784
6784
  /* @__PURE__ */ e(
6785
6785
  Ee,
6786
6786
  {
@@ -6790,7 +6790,7 @@ function kn({
6790
6790
  )
6791
6791
  ] }),
6792
6792
  /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
6793
- /* @__PURE__ */ e(L, { className: "w-20 text-xs text-muted-foreground", children: "Locale" }),
6793
+ /* @__PURE__ */ e(V, { className: "w-20 text-xs text-muted-foreground", children: "Locale" }),
6794
6794
  /* @__PURE__ */ a(
6795
6795
  Z,
6796
6796
  {
@@ -6812,7 +6812,7 @@ function kn({
6812
6812
  )
6813
6813
  ] }),
6814
6814
  r === "number" && /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
6815
- /* @__PURE__ */ e(L, { className: "w-20 text-xs text-muted-foreground", children: "Prefix" }),
6815
+ /* @__PURE__ */ e(V, { className: "w-20 text-xs text-muted-foreground", children: "Prefix" }),
6816
6816
  /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
6817
6817
  Ne,
6818
6818
  {
@@ -6824,7 +6824,7 @@ function kn({
6824
6824
  ) })
6825
6825
  ] }),
6826
6826
  r === "number" && /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
6827
- /* @__PURE__ */ e(L, { className: "w-20 text-xs text-muted-foreground", children: "Suffix" }),
6827
+ /* @__PURE__ */ e(V, { className: "w-20 text-xs text-muted-foreground", children: "Suffix" }),
6828
6828
  /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
6829
6829
  Ne,
6830
6830
  {
@@ -6836,7 +6836,7 @@ function kn({
6836
6836
  ) })
6837
6837
  ] }),
6838
6838
  ["number", "currency"].includes(r) && /* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
6839
- /* @__PURE__ */ e(L, { className: "text-xs text-muted-foreground", children: "Negative in ()" }),
6839
+ /* @__PURE__ */ e(V, { className: "text-xs text-muted-foreground", children: "Negative in ()" }),
6840
6840
  /* @__PURE__ */ e(
6841
6841
  Ee,
6842
6842
  {
@@ -6846,7 +6846,7 @@ function kn({
6846
6846
  )
6847
6847
  ] }),
6848
6848
  r === "percent" && /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
6849
- /* @__PURE__ */ e(L, { className: "w-20 text-xs text-muted-foreground", children: "Multiply By" }),
6849
+ /* @__PURE__ */ e(V, { className: "w-20 text-xs text-muted-foreground", children: "Multiply By" }),
6850
6850
  /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
6851
6851
  Ne,
6852
6852
  {
@@ -6862,7 +6862,7 @@ function kn({
6862
6862
  ) })
6863
6863
  ] }),
6864
6864
  r === "date" && /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
6865
- /* @__PURE__ */ e(L, { className: "w-20 text-xs text-muted-foreground", children: "Format" }),
6865
+ /* @__PURE__ */ e(V, { className: "w-20 text-xs text-muted-foreground", children: "Format" }),
6866
6866
  /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
6867
6867
  Ne,
6868
6868
  {
@@ -6878,7 +6878,7 @@ function kn({
6878
6878
  ] });
6879
6879
  }
6880
6880
  function ts({ axis: t, label: s, type: n, config: l, onChange: r }) {
6881
- var p, f, A, m, g, b, w, M, V, P, N, k;
6881
+ var p, f, A, m, g, b, w, M, L, P, N, k;
6882
6882
  const d = (x, y) => {
6883
6883
  r({
6884
6884
  ...l,
@@ -6926,7 +6926,7 @@ function ts({ axis: t, label: s, type: n, config: l, onChange: r }) {
6926
6926
  /* @__PURE__ */ a(he, { className: "space-y-4 pt-2", children: [
6927
6927
  /* @__PURE__ */ a("div", { className: "space-y-2", children: [
6928
6928
  /* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
6929
- /* @__PURE__ */ e(L, { className: "text-xs font-medium", children: "TITLE" }),
6929
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium", children: "TITLE" }),
6930
6930
  /* @__PURE__ */ e(
6931
6931
  Ee,
6932
6932
  {
@@ -6946,7 +6946,7 @@ function ts({ axis: t, label: s, type: n, config: l, onChange: r }) {
6946
6946
  )
6947
6947
  ] }),
6948
6948
  /* @__PURE__ */ a("div", { className: "space-y-2", children: [
6949
- /* @__PURE__ */ e(L, { className: "text-xs font-medium", children: "POSITION" }),
6949
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium", children: "POSITION" }),
6950
6950
  /* @__PURE__ */ a(
6951
6951
  Z,
6952
6952
  {
@@ -6961,7 +6961,7 @@ function ts({ axis: t, label: s, type: n, config: l, onChange: r }) {
6961
6961
  ] }),
6962
6962
  /* @__PURE__ */ a("div", { className: "space-y-2", children: [
6963
6963
  /* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
6964
- /* @__PURE__ */ e(L, { className: "text-xs font-medium", children: "LABELS" }),
6964
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium", children: "LABELS" }),
6965
6965
  /* @__PURE__ */ e(
6966
6966
  Ee,
6967
6967
  {
@@ -6971,7 +6971,7 @@ function ts({ axis: t, label: s, type: n, config: l, onChange: r }) {
6971
6971
  )
6972
6972
  ] }),
6973
6973
  ((g = l == null ? void 0 : l.labels) == null ? void 0 : g.enabled) !== !1 && /* @__PURE__ */ a("div", { className: "space-y-2", children: [
6974
- /* @__PURE__ */ e(L, { className: "text-xs text-muted-foreground", children: "Rotation" }),
6974
+ /* @__PURE__ */ e(V, { className: "text-xs text-muted-foreground", children: "Rotation" }),
6975
6975
  /* @__PURE__ */ a(
6976
6976
  Z,
6977
6977
  {
@@ -7001,10 +7001,10 @@ function ts({ axis: t, label: s, type: n, config: l, onChange: r }) {
7001
7001
  }
7002
7002
  ),
7003
7003
  n === "value" && /* @__PURE__ */ a("div", { className: "space-y-2", children: [
7004
- /* @__PURE__ */ e(L, { className: "text-xs font-medium", children: "SCALE" }),
7004
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium", children: "SCALE" }),
7005
7005
  /* @__PURE__ */ a("div", { className: "space-y-2", children: [
7006
7006
  /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
7007
- /* @__PURE__ */ e(L, { className: "w-8 text-xs text-muted-foreground", children: "Min" }),
7007
+ /* @__PURE__ */ e(V, { className: "w-8 text-xs text-muted-foreground", children: "Min" }),
7008
7008
  /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
7009
7009
  nt,
7010
7010
  {
@@ -7017,20 +7017,20 @@ function ts({ axis: t, label: s, type: n, config: l, onChange: r }) {
7017
7017
  ) })
7018
7018
  ] }),
7019
7019
  /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
7020
- /* @__PURE__ */ e(L, { className: "w-8 text-xs text-muted-foreground", children: "Max" }),
7020
+ /* @__PURE__ */ e(V, { className: "w-8 text-xs text-muted-foreground", children: "Max" }),
7021
7021
  /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
7022
7022
  nt,
7023
7023
  {
7024
7024
  type: "number",
7025
7025
  placeholder: "auto",
7026
- value: ((V = l == null ? void 0 : l.scale) == null ? void 0 : V.max) === "auto" || ((P = l == null ? void 0 : l.scale) == null ? void 0 : P.max) === void 0 ? "" : String(l.scale.max),
7026
+ value: ((L = l == null ? void 0 : l.scale) == null ? void 0 : L.max) === "auto" || ((P = l == null ? void 0 : l.scale) == null ? void 0 : P.max) === void 0 ? "" : String(l.scale.max),
7027
7027
  onSave: (x) => i("max", x),
7028
7028
  className: ""
7029
7029
  }
7030
7030
  ) })
7031
7031
  ] }),
7032
7032
  /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
7033
- /* @__PURE__ */ e(L, { className: "w-8 text-xs text-muted-foreground", children: "Step" }),
7033
+ /* @__PURE__ */ e(V, { className: "w-8 text-xs text-muted-foreground", children: "Step" }),
7034
7034
  /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
7035
7035
  nt,
7036
7036
  {
@@ -7111,9 +7111,9 @@ function cl() {
7111
7111
  return (m = (A = (f = (p = h.card) == null ? void 0 : p.preferences) == null ? void 0 : f.chartOptions) == null ? void 0 : A.plugins) == null ? void 0 : m.legend;
7112
7112
  }
7113
7113
  ), { setLegendOptions: n } = le();
7114
- if (!t || !Lr(t.type))
7114
+ if (!t || !Vr(t.type))
7115
7115
  return null;
7116
- const l = Vr(t.type), r = (l == null ? void 0 : l.display) ?? !0, d = (l == null ? void 0 : l.position) ?? "top", o = (l == null ? void 0 : l.align) ?? "center", c = (h, p) => {
7116
+ const l = Lr(t.type), r = (l == null ? void 0 : l.display) ?? !0, d = (l == null ? void 0 : l.position) ?? "top", o = (l == null ? void 0 : l.align) ?? "center", c = (h, p) => {
7117
7117
  const f = {
7118
7118
  ...s,
7119
7119
  [h]: p
@@ -7127,7 +7127,7 @@ function cl() {
7127
7127
  ] }) }),
7128
7128
  /* @__PURE__ */ e(he, { className: "pt-2", children: /* @__PURE__ */ a("div", { className: "space-y-3", children: [
7129
7129
  /* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
7130
- /* @__PURE__ */ e(L, { className: "text-xs font-medium", children: "Display" }),
7130
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium", children: "Display" }),
7131
7131
  /* @__PURE__ */ e(
7132
7132
  Ee,
7133
7133
  {
@@ -7138,7 +7138,7 @@ function cl() {
7138
7138
  ] }),
7139
7139
  ((s == null ? void 0 : s.display) ?? r) && /* @__PURE__ */ a(ie, { children: [
7140
7140
  /* @__PURE__ */ a("div", { className: "space-y-2", children: [
7141
- /* @__PURE__ */ e(L, { className: "text-xs font-medium", children: "Position" }),
7141
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium", children: "Position" }),
7142
7142
  /* @__PURE__ */ a(
7143
7143
  Z,
7144
7144
  {
@@ -7152,7 +7152,7 @@ function cl() {
7152
7152
  )
7153
7153
  ] }),
7154
7154
  /* @__PURE__ */ a("div", { className: "space-y-2", children: [
7155
- /* @__PURE__ */ e(L, { className: "text-xs font-medium", children: "Alignment" }),
7155
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium", children: "Alignment" }),
7156
7156
  /* @__PURE__ */ a(
7157
7157
  Z,
7158
7158
  {
@@ -7220,7 +7220,7 @@ function dl() {
7220
7220
  preferences: be
7221
7221
  };
7222
7222
  r(re);
7223
- }, V = (z, oe) => {
7223
+ }, L = (z, oe) => {
7224
7224
  const ce = s ?? {}, ne = {
7225
7225
  ...A ?? {},
7226
7226
  ...ce,
@@ -7278,7 +7278,7 @@ function dl() {
7278
7278
  ] }) }),
7279
7279
  /* @__PURE__ */ e(he, { className: "pt-2", children: /* @__PURE__ */ a("div", { className: "space-y-3", children: [
7280
7280
  /* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
7281
- /* @__PURE__ */ e(L, { className: "text-xs font-medium", children: "Display" }),
7281
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium", children: "Display" }),
7282
7282
  /* @__PURE__ */ e(
7283
7283
  Ee,
7284
7284
  {
@@ -7289,7 +7289,7 @@ function dl() {
7289
7289
  ] }),
7290
7290
  b && /* @__PURE__ */ a(ie, { children: [
7291
7291
  N && !c && !i && /* @__PURE__ */ a("div", { className: "space-y-2", children: [
7292
- /* @__PURE__ */ e(L, { className: "text-xs font-medium", children: "Position" }),
7292
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium", children: "Position" }),
7293
7293
  /* @__PURE__ */ a(
7294
7294
  Z,
7295
7295
  {
@@ -7303,7 +7303,7 @@ function dl() {
7303
7303
  )
7304
7304
  ] }),
7305
7305
  c && /* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
7306
- /* @__PURE__ */ e(L, { className: "text-xs font-medium", children: "Show Total" }),
7306
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium", children: "Show Total" }),
7307
7307
  /* @__PURE__ */ e(
7308
7308
  Ee,
7309
7309
  {
@@ -7314,7 +7314,7 @@ function dl() {
7314
7314
  ] }),
7315
7315
  (m == null ? void 0 : m.position) === "custom" && /* @__PURE__ */ a("div", { className: "space-y-2 pl-4 border-l-2 border-muted", children: [
7316
7316
  /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
7317
- /* @__PURE__ */ e(L, { className: "text-xs text-muted-foreground w-16", children: "Anchor" }),
7317
+ /* @__PURE__ */ e(V, { className: "text-xs text-muted-foreground w-16", children: "Anchor" }),
7318
7318
  /* @__PURE__ */ a(
7319
7319
  Z,
7320
7320
  {
@@ -7328,7 +7328,7 @@ function dl() {
7328
7328
  )
7329
7329
  ] }),
7330
7330
  /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
7331
- /* @__PURE__ */ e(L, { className: "text-xs text-muted-foreground w-16", children: "Align" }),
7331
+ /* @__PURE__ */ e(V, { className: "text-xs text-muted-foreground w-16", children: "Align" }),
7332
7332
  /* @__PURE__ */ a(
7333
7333
  Z,
7334
7334
  {
@@ -7343,7 +7343,7 @@ function dl() {
7343
7343
  ] })
7344
7344
  ] }),
7345
7345
  /* @__PURE__ */ a("div", { className: "space-y-2", children: [
7346
- /* @__PURE__ */ e(L, { className: "text-xs font-medium", children: "Format" }),
7346
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium", children: "Format" }),
7347
7347
  /* @__PURE__ */ a(
7348
7348
  Z,
7349
7349
  {
@@ -7360,7 +7360,7 @@ function dl() {
7360
7360
  ["number", "currency", "percent"].includes(
7361
7361
  m.format
7362
7362
  ) && /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
7363
- /* @__PURE__ */ e(L, { className: "text-xs text-muted-foreground w-20", children: "Decimals" }),
7363
+ /* @__PURE__ */ e(V, { className: "text-xs text-muted-foreground w-20", children: "Decimals" }),
7364
7364
  /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
7365
7365
  nt,
7366
7366
  {
@@ -7369,18 +7369,18 @@ function dl() {
7369
7369
  value: String(
7370
7370
  ((X = m == null ? void 0 : m.formatOptions) == null ? void 0 : X.decimalPlaces) ?? (m.format === "currency" ? 2 : m.format === "percent" ? 1 : 0)
7371
7371
  ),
7372
- onSave: (z) => V("decimalPlaces", Number(z)),
7372
+ onSave: (z) => L("decimalPlaces", Number(z)),
7373
7373
  className: ""
7374
7374
  }
7375
7375
  ) })
7376
7376
  ] }),
7377
7377
  m.format === "currency" && /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
7378
- /* @__PURE__ */ e(L, { className: "text-xs text-muted-foreground w-20", children: "Currency" }),
7378
+ /* @__PURE__ */ e(V, { className: "text-xs text-muted-foreground w-20", children: "Currency" }),
7379
7379
  /* @__PURE__ */ a(
7380
7380
  Z,
7381
7381
  {
7382
7382
  value: ((J = m == null ? void 0 : m.formatOptions) == null ? void 0 : J.currency) || "USD",
7383
- onValueChange: (z) => V("currency", z),
7383
+ onValueChange: (z) => L("currency", z),
7384
7384
  children: [
7385
7385
  /* @__PURE__ */ e(ee, { className: "h-8 text-xs flex-1", children: /* @__PURE__ */ e(te, {}) }),
7386
7386
  /* @__PURE__ */ e(ae, { children: D.map((z) => /* @__PURE__ */ e(K, { value: z.value, className: "text-xs", children: z.label }, z.value)) })
@@ -7391,22 +7391,22 @@ function dl() {
7391
7391
  ["number", "currency"].includes(
7392
7392
  m.format
7393
7393
  ) && /* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
7394
- /* @__PURE__ */ e(L, { className: "text-xs text-muted-foreground", children: "Abbreviate (K, M, B)" }),
7394
+ /* @__PURE__ */ e(V, { className: "text-xs text-muted-foreground", children: "Abbreviate (K, M, B)" }),
7395
7395
  /* @__PURE__ */ e(
7396
7396
  Ee,
7397
7397
  {
7398
7398
  checked: ((_ = m == null ? void 0 : m.formatOptions) == null ? void 0 : _.useSuffix) ?? !1,
7399
- onCheckedChange: (z) => V("useSuffix", z)
7399
+ onCheckedChange: (z) => L("useSuffix", z)
7400
7400
  }
7401
7401
  )
7402
7402
  ] }),
7403
7403
  /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
7404
- /* @__PURE__ */ e(L, { className: "text-xs text-muted-foreground w-20", children: "Locale" }),
7404
+ /* @__PURE__ */ e(V, { className: "text-xs text-muted-foreground w-20", children: "Locale" }),
7405
7405
  /* @__PURE__ */ a(
7406
7406
  Z,
7407
7407
  {
7408
7408
  value: ((W = m == null ? void 0 : m.formatOptions) == null ? void 0 : W.locale) || "en-US",
7409
- onValueChange: (z) => V("locale", z),
7409
+ onValueChange: (z) => L("locale", z),
7410
7410
  children: [
7411
7411
  /* @__PURE__ */ e(ee, { className: "h-8 text-xs flex-1", children: /* @__PURE__ */ e(te, {}) }),
7412
7412
  /* @__PURE__ */ e(ae, { children: R.map((z) => /* @__PURE__ */ e(K, { value: z.value, className: "text-xs", children: z.label }, z.value)) })
@@ -7416,9 +7416,9 @@ function dl() {
7416
7416
  ] })
7417
7417
  ] }),
7418
7418
  k && /* @__PURE__ */ a("div", { className: "space-y-2", children: [
7419
- /* @__PURE__ */ e(L, { className: "text-xs font-medium", children: "Appearance" }),
7419
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium", children: "Appearance" }),
7420
7420
  /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
7421
- /* @__PURE__ */ e(L, { className: "text-xs text-muted-foreground w-20", children: "Size" }),
7421
+ /* @__PURE__ */ e(V, { className: "text-xs text-muted-foreground w-20", children: "Size" }),
7422
7422
  /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
7423
7423
  nt,
7424
7424
  {
@@ -7431,7 +7431,7 @@ function dl() {
7431
7431
  ) })
7432
7432
  ] }),
7433
7433
  /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
7434
- /* @__PURE__ */ e(L, { className: "text-xs text-muted-foreground w-20", children: "Weight" }),
7434
+ /* @__PURE__ */ e(V, { className: "text-xs text-muted-foreground w-20", children: "Weight" }),
7435
7435
  /* @__PURE__ */ a(
7436
7436
  Z,
7437
7437
  {
@@ -7448,7 +7448,7 @@ function dl() {
7448
7448
  )
7449
7449
  ] }),
7450
7450
  /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
7451
- /* @__PURE__ */ e(L, { className: "text-xs text-muted-foreground w-20", children: "Color" }),
7451
+ /* @__PURE__ */ e(V, { className: "text-xs text-muted-foreground w-20", children: "Color" }),
7452
7452
  /* @__PURE__ */ a(
7453
7453
  Z,
7454
7454
  {
@@ -7467,7 +7467,7 @@ function dl() {
7467
7467
  )
7468
7468
  ] }),
7469
7469
  /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
7470
- /* @__PURE__ */ e(L, { className: "text-xs text-muted-foreground w-20", children: "Rotation" }),
7470
+ /* @__PURE__ */ e(V, { className: "text-xs text-muted-foreground w-20", children: "Rotation" }),
7471
7471
  /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
7472
7472
  nt,
7473
7473
  {
@@ -7571,7 +7571,7 @@ function ul() {
7571
7571
  F.trim() || delete S[E], w({
7572
7572
  rangeKeys: Object.keys(S).length > 0 ? S : void 0
7573
7573
  });
7574
- }, V = (E, F) => {
7574
+ }, L = (E, F) => {
7575
7575
  const S = F === "" ? void 0 : Number(F), j = {
7576
7576
  ...d.ranges || {}
7577
7577
  };
@@ -7638,7 +7638,7 @@ function ul() {
7638
7638
  /* @__PURE__ */ a(he, { className: "space-y-6 border-t border-border/50 py-4", children: [
7639
7639
  /* @__PURE__ */ a("section", { className: "space-y-4", children: [
7640
7640
  /* @__PURE__ */ a("div", { className: "space-y-1.5", children: [
7641
- /* @__PURE__ */ e(L, { className: "text-xs font-medium", children: "ORIENTATION" }),
7641
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium", children: "ORIENTATION" }),
7642
7642
  /* @__PURE__ */ a(
7643
7643
  Z,
7644
7644
  {
@@ -7655,7 +7655,7 @@ function ul() {
7655
7655
  )
7656
7656
  ] }),
7657
7657
  c && /* @__PURE__ */ a("div", { className: "space-y-1.5", children: [
7658
- /* @__PURE__ */ e(L, { className: "text-xs font-medium", children: "TARGET METRIC" }),
7658
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium", children: "TARGET METRIC" }),
7659
7659
  /* @__PURE__ */ a(
7660
7660
  Z,
7661
7661
  {
@@ -7682,7 +7682,7 @@ function ul() {
7682
7682
  )
7683
7683
  ] }),
7684
7684
  /* @__PURE__ */ a("div", { className: "space-y-1.5", children: [
7685
- /* @__PURE__ */ e(L, { className: "text-xs font-medium", children: "COMPARATIVE METRIC" }),
7685
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium", children: "COMPARATIVE METRIC" }),
7686
7686
  c ? /* @__PURE__ */ a(
7687
7687
  Z,
7688
7688
  {
@@ -7719,9 +7719,9 @@ function ul() {
7719
7719
  ] })
7720
7720
  ] }),
7721
7721
  /* @__PURE__ */ a("div", { className: "space-y-1.5", children: [
7722
- /* @__PURE__ */ e(L, { className: "text-xs font-medium", children: "TARGET VALUE (FALLBACK)" }),
7722
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium", children: "TARGET VALUE (FALLBACK)" }),
7723
7723
  /* @__PURE__ */ e(
7724
- Le,
7724
+ Ve,
7725
7725
  {
7726
7726
  type: "number",
7727
7727
  className: "h-8 text-xs",
@@ -7736,7 +7736,7 @@ function ul() {
7736
7736
  /* @__PURE__ */ a("div", { className: "space-y-3", children: [
7737
7737
  /* @__PURE__ */ a("div", { className: "flex items-center justify-between gap-2", children: [
7738
7738
  /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
7739
- /* @__PURE__ */ e(L, { className: "text-xs font-medium", children: "QUALITATIVE RANGES" }),
7739
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium", children: "QUALITATIVE RANGES" }),
7740
7740
  /* @__PURE__ */ e(je, { children: /* @__PURE__ */ a(Fe, { delayDuration: 200, children: [
7741
7741
  /* @__PURE__ */ e(Re, { asChild: !0, children: /* @__PURE__ */ e(
7742
7742
  "button",
@@ -7779,12 +7779,12 @@ function ul() {
7779
7779
  className: "space-y-2 rounded-md border border-border/60 bg-muted/40 p-3",
7780
7780
  children: [
7781
7781
  /* @__PURE__ */ a("div", { className: "space-y-1.5", children: [
7782
- /* @__PURE__ */ a(L, { className: "text-[11px] font-medium uppercase tracking-wide", children: [
7782
+ /* @__PURE__ */ a(V, { className: "text-[11px] font-medium uppercase tracking-wide", children: [
7783
7783
  E,
7784
7784
  " LABEL"
7785
7785
  ] }),
7786
7786
  /* @__PURE__ */ e(
7787
- Le,
7787
+ Ve,
7788
7788
  {
7789
7789
  placeholder: `Display label (${E})`,
7790
7790
  value: ((F = d.rangeLabels) == null ? void 0 : F[E]) || "",
@@ -7794,7 +7794,7 @@ function ul() {
7794
7794
  )
7795
7795
  ] }),
7796
7796
  c ? /* @__PURE__ */ a("div", { className: "space-y-1.5", children: [
7797
- /* @__PURE__ */ a(L, { className: "text-[11px] font-medium uppercase tracking-wide", children: [
7797
+ /* @__PURE__ */ a(V, { className: "text-[11px] font-medium uppercase tracking-wide", children: [
7798
7798
  E,
7799
7799
  " COLUMN"
7800
7800
  ] }),
@@ -7820,12 +7820,12 @@ function ul() {
7820
7820
  }
7821
7821
  )
7822
7822
  ] }) : /* @__PURE__ */ a("div", { className: "space-y-1.5", children: [
7823
- /* @__PURE__ */ a(L, { className: "text-[11px] font-medium uppercase tracking-wide", children: [
7823
+ /* @__PURE__ */ a(V, { className: "text-[11px] font-medium uppercase tracking-wide", children: [
7824
7824
  E,
7825
7825
  " COLUMN KEY"
7826
7826
  ] }),
7827
7827
  /* @__PURE__ */ e(
7828
- Le,
7828
+ Ve,
7829
7829
  {
7830
7830
  placeholder: "Column key",
7831
7831
  value: ((j = d.rangeKeys) == null ? void 0 : j[E]) || "",
@@ -7835,17 +7835,17 @@ function ul() {
7835
7835
  )
7836
7836
  ] }),
7837
7837
  /* @__PURE__ */ a("div", { className: "space-y-1.5", children: [
7838
- /* @__PURE__ */ a(L, { className: "text-[11px] font-medium uppercase tracking-wide", children: [
7838
+ /* @__PURE__ */ a(V, { className: "text-[11px] font-medium uppercase tracking-wide", children: [
7839
7839
  E,
7840
7840
  " VALUE"
7841
7841
  ] }),
7842
7842
  /* @__PURE__ */ e(
7843
- Le,
7843
+ Ve,
7844
7844
  {
7845
7845
  type: "number",
7846
7846
  placeholder: h ? "0.80" : "Static value",
7847
7847
  value: ((U = d.ranges) == null ? void 0 : U[E]) === void 0 ? "" : String((X = d.ranges) == null ? void 0 : X[E]),
7848
- onCommit: (J) => V(E, J),
7848
+ onCommit: (J) => L(E, J),
7849
7849
  className: "h-8 text-xs"
7850
7850
  }
7851
7851
  )
@@ -8004,7 +8004,7 @@ function ml() {
8004
8004
  children: [
8005
8005
  /* @__PURE__ */ e(ht, { id: `heatmap-${f}`, value: f }),
8006
8006
  /* @__PURE__ */ a(
8007
- L,
8007
+ V,
8008
8008
  {
8009
8009
  htmlFor: `heatmap-${f}`,
8010
8010
  className: "flex w-full flex-col gap-1 text-sm font-normal",
@@ -8030,7 +8030,7 @@ function ml() {
8030
8030
  /* @__PURE__ */ a("div", { className: "flex flex-col gap-2 rounded-md border border-border px-3 py-2", children: [
8031
8031
  /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
8032
8032
  /* @__PURE__ */ e(ht, { id: "heatmap-custom", value: "custom" }),
8033
- /* @__PURE__ */ e(L, { htmlFor: "heatmap-custom", className: "text-sm font-medium", children: "Custom colors" })
8033
+ /* @__PURE__ */ e(V, { htmlFor: "heatmap-custom", className: "text-sm font-medium", children: "Custom colors" })
8034
8034
  ] }),
8035
8035
  d === "custom" && /* @__PURE__ */ a("div", { className: "flex flex-col gap-3 pl-6", children: [
8036
8036
  /* @__PURE__ */ e(
@@ -8055,7 +8055,7 @@ function ml() {
8055
8055
  }
8056
8056
  ),
8057
8057
  /* @__PURE__ */ a("div", { className: "space-y-2", children: [
8058
- /* @__PURE__ */ e(L, { className: "text-xs font-medium", children: "Color scale position" }),
8058
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium", children: "Color scale position" }),
8059
8059
  /* @__PURE__ */ a(
8060
8060
  Z,
8061
8061
  {
@@ -8141,7 +8141,7 @@ function hl() {
8141
8141
  ...S
8142
8142
  });
8143
8143
  b(j);
8144
- }, V = (S) => {
8144
+ }, L = (S) => {
8145
8145
  g(S), M({
8146
8146
  enableGrouping: S,
8147
8147
  groupKey: S ? i.groupKey : void 0
@@ -8165,7 +8165,7 @@ function hl() {
8165
8165
  ] }) })
8166
8166
  ] }),
8167
8167
  /* @__PURE__ */ a("div", { className: "space-y-1", children: [
8168
- /* @__PURE__ */ e(L, { className: "text-xs", children: "Label Column" }),
8168
+ /* @__PURE__ */ e(V, { className: "text-xs", children: "Label Column" }),
8169
8169
  h ? /* @__PURE__ */ a(
8170
8170
  Z,
8171
8171
  {
@@ -8177,7 +8177,7 @@ function hl() {
8177
8177
  ]
8178
8178
  }
8179
8179
  ) : /* @__PURE__ */ e(
8180
- Le,
8180
+ Ve,
8181
8181
  {
8182
8182
  className: "h-8 text-xs",
8183
8183
  placeholder: "Column name for labels",
@@ -8187,17 +8187,17 @@ function hl() {
8187
8187
  )
8188
8188
  ] }),
8189
8189
  /* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
8190
- /* @__PURE__ */ e(L, { className: "text-xs", children: "Group points into series" }),
8190
+ /* @__PURE__ */ e(V, { className: "text-xs", children: "Group points into series" }),
8191
8191
  /* @__PURE__ */ e(
8192
8192
  Ee,
8193
8193
  {
8194
8194
  checked: m,
8195
- onCheckedChange: V
8195
+ onCheckedChange: L
8196
8196
  }
8197
8197
  )
8198
8198
  ] }),
8199
8199
  m && /* @__PURE__ */ a("div", { className: "space-y-1", children: [
8200
- /* @__PURE__ */ e(L, { className: "text-xs", children: "Group By" }),
8200
+ /* @__PURE__ */ e(V, { className: "text-xs", children: "Group By" }),
8201
8201
  h ? /* @__PURE__ */ a(
8202
8202
  Z,
8203
8203
  {
@@ -8209,7 +8209,7 @@ function hl() {
8209
8209
  ]
8210
8210
  }
8211
8211
  ) : /* @__PURE__ */ e(
8212
- Le,
8212
+ Ve,
8213
8213
  {
8214
8214
  className: "h-8 text-xs",
8215
8215
  placeholder: "Column name for grouping",
@@ -8222,7 +8222,7 @@ function hl() {
8222
8222
  /* @__PURE__ */ a("div", { className: "space-y-3", children: [
8223
8223
  /* @__PURE__ */ e("div", { className: "text-xs font-medium text-muted-foreground", children: "Metrics" }),
8224
8224
  /* @__PURE__ */ a("div", { className: "space-y-1", children: [
8225
- /* @__PURE__ */ e(L, { className: "text-xs", children: "X Axis" }),
8225
+ /* @__PURE__ */ e(V, { className: "text-xs", children: "X Axis" }),
8226
8226
  h ? /* @__PURE__ */ a(
8227
8227
  Z,
8228
8228
  {
@@ -8234,7 +8234,7 @@ function hl() {
8234
8234
  ]
8235
8235
  }
8236
8236
  ) : /* @__PURE__ */ e(
8237
- Le,
8237
+ Ve,
8238
8238
  {
8239
8239
  className: "h-8 text-xs",
8240
8240
  placeholder: "Column name for X axis",
@@ -8244,7 +8244,7 @@ function hl() {
8244
8244
  )
8245
8245
  ] }),
8246
8246
  /* @__PURE__ */ a("div", { className: "space-y-1", children: [
8247
- /* @__PURE__ */ e(L, { className: "text-xs", children: "Y Axis" }),
8247
+ /* @__PURE__ */ e(V, { className: "text-xs", children: "Y Axis" }),
8248
8248
  h ? /* @__PURE__ */ a(
8249
8249
  Z,
8250
8250
  {
@@ -8256,7 +8256,7 @@ function hl() {
8256
8256
  ]
8257
8257
  }
8258
8258
  ) : /* @__PURE__ */ e(
8259
- Le,
8259
+ Ve,
8260
8260
  {
8261
8261
  className: "h-8 text-xs",
8262
8262
  placeholder: "Column name for Y axis",
@@ -8266,7 +8266,7 @@ function hl() {
8266
8266
  )
8267
8267
  ] }),
8268
8268
  o && /* @__PURE__ */ a("div", { className: "space-y-1", children: [
8269
- /* @__PURE__ */ e(L, { className: "text-xs", children: "Radius" }),
8269
+ /* @__PURE__ */ e(V, { className: "text-xs", children: "Radius" }),
8270
8270
  h ? /* @__PURE__ */ a(
8271
8271
  Z,
8272
8272
  {
@@ -8278,7 +8278,7 @@ function hl() {
8278
8278
  ]
8279
8279
  }
8280
8280
  ) : /* @__PURE__ */ e(
8281
- Le,
8281
+ Ve,
8282
8282
  {
8283
8283
  className: "h-8 text-xs",
8284
8284
  placeholder: "Column name for radius",
@@ -8291,7 +8291,7 @@ function hl() {
8291
8291
  o && /* @__PURE__ */ a("div", { className: "space-y-3", children: [
8292
8292
  /* @__PURE__ */ e("div", { className: "text-xs font-medium text-muted-foreground", children: "Radius Settings" }),
8293
8293
  /* @__PURE__ */ a("div", { className: "space-y-1", children: [
8294
- /* @__PURE__ */ e(L, { className: "text-xs", children: "Scale Mode" }),
8294
+ /* @__PURE__ */ e(V, { className: "text-xs", children: "Scale Mode" }),
8295
8295
  /* @__PURE__ */ a(
8296
8296
  Z,
8297
8297
  {
@@ -8310,9 +8310,9 @@ function hl() {
8310
8310
  ] }),
8311
8311
  i.radiusScale !== "fixed" && /* @__PURE__ */ a("div", { className: "grid grid-cols-2 gap-2", children: [
8312
8312
  /* @__PURE__ */ a("div", { className: "space-y-1", children: [
8313
- /* @__PURE__ */ e(L, { className: "text-xs", children: "Min Radius" }),
8313
+ /* @__PURE__ */ e(V, { className: "text-xs", children: "Min Radius" }),
8314
8314
  /* @__PURE__ */ e(
8315
- Le,
8315
+ Ve,
8316
8316
  {
8317
8317
  className: "h-8 text-xs",
8318
8318
  type: "number",
@@ -8323,9 +8323,9 @@ function hl() {
8323
8323
  )
8324
8324
  ] }),
8325
8325
  /* @__PURE__ */ a("div", { className: "space-y-1", children: [
8326
- /* @__PURE__ */ e(L, { className: "text-xs", children: "Max Radius" }),
8326
+ /* @__PURE__ */ e(V, { className: "text-xs", children: "Max Radius" }),
8327
8327
  /* @__PURE__ */ e(
8328
- Le,
8328
+ Ve,
8329
8329
  {
8330
8330
  className: "h-8 text-xs",
8331
8331
  type: "number",
@@ -8337,7 +8337,7 @@ function hl() {
8337
8337
  ] })
8338
8338
  ] }),
8339
8339
  i.radiusScale === "fixed" && /* @__PURE__ */ a("div", { className: "space-y-1", children: [
8340
- /* @__PURE__ */ a(L, { className: "text-xs", children: [
8340
+ /* @__PURE__ */ a(V, { className: "text-xs", children: [
8341
8341
  "Fixed Radius: ",
8342
8342
  i.fixedRadius || 10
8343
8343
  ] }),
@@ -8357,7 +8357,7 @@ function hl() {
8357
8357
  c && /* @__PURE__ */ a("div", { className: "space-y-3", children: [
8358
8358
  /* @__PURE__ */ e("div", { className: "text-xs font-medium text-muted-foreground", children: "Point Settings" }),
8359
8359
  /* @__PURE__ */ a("div", { className: "space-y-1", children: [
8360
- /* @__PURE__ */ a(L, { className: "text-xs", children: [
8360
+ /* @__PURE__ */ a(V, { className: "text-xs", children: [
8361
8361
  "Point Size: ",
8362
8362
  i.fixedRadius || 5
8363
8363
  ] }),
@@ -8407,9 +8407,9 @@ function hl() {
8407
8407
  ] }),
8408
8408
  ((v = (C = t == null ? void 0 : t.xAxisConfig) == null ? void 0 : C.name) == null ? void 0 : v.enabled) && /* @__PURE__ */ a("div", { className: "grid grid-cols-2 gap-2", children: [
8409
8409
  /* @__PURE__ */ a("div", { className: "space-y-1", children: [
8410
- /* @__PURE__ */ e(L, { className: "text-xs", children: "X Title" }),
8410
+ /* @__PURE__ */ e(V, { className: "text-xs", children: "X Title" }),
8411
8411
  /* @__PURE__ */ e(
8412
- Le,
8412
+ Ve,
8413
8413
  {
8414
8414
  className: "h-8 text-xs",
8415
8415
  placeholder: i.xMetricKey || "X Axis",
@@ -8432,9 +8432,9 @@ function hl() {
8432
8432
  )
8433
8433
  ] }),
8434
8434
  /* @__PURE__ */ a("div", { className: "space-y-1", children: [
8435
- /* @__PURE__ */ e(L, { className: "text-xs", children: "Y Title" }),
8435
+ /* @__PURE__ */ e(V, { className: "text-xs", children: "Y Title" }),
8436
8436
  /* @__PURE__ */ e(
8437
- Le,
8437
+ Ve,
8438
8438
  {
8439
8439
  className: "h-8 text-xs",
8440
8440
  placeholder: i.yMetricKey || "Y Axis",
@@ -8500,7 +8500,7 @@ function pl() {
8500
8500
  ] }) }),
8501
8501
  /* @__PURE__ */ a(he, { className: "space-y-4 border-t border-border bg-background/50 px-3 py-4 text-sm", children: [
8502
8502
  /* @__PURE__ */ a("div", { className: "space-y-2", children: [
8503
- /* @__PURE__ */ e(L, { className: "text-xs font-medium", children: "PERCENTAGE MODE" }),
8503
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium", children: "PERCENTAGE MODE" }),
8504
8504
  /* @__PURE__ */ e(
8505
8505
  oa,
8506
8506
  {
@@ -8521,7 +8521,7 @@ function pl() {
8521
8521
  }
8522
8522
  ),
8523
8523
  /* @__PURE__ */ a(
8524
- L,
8524
+ V,
8525
8525
  {
8526
8526
  htmlFor: `funnel-${f.value}`,
8527
8527
  className: "flex flex-col gap-0.5 text-sm font-normal",
@@ -8539,7 +8539,7 @@ function pl() {
8539
8539
  )
8540
8540
  ] }),
8541
8541
  /* @__PURE__ */ a("div", { className: "space-y-2", children: [
8542
- /* @__PURE__ */ e(L, { className: "text-xs font-medium", children: "SEGMENT SHRINK" }),
8542
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium", children: "SEGMENT SHRINK" }),
8543
8543
  /* @__PURE__ */ a("div", { className: "flex items-center gap-3 pt-1", children: [
8544
8544
  /* @__PURE__ */ e("span", { className: "whitespace-nowrap text-xs text-muted-foreground", children: "Same Width" }),
8545
8545
  /* @__PURE__ */ e(
@@ -8562,7 +8562,7 @@ function pl() {
8562
8562
  ] })
8563
8563
  ] }),
8564
8564
  /* @__PURE__ */ a("div", { className: "space-y-2", children: [
8565
- /* @__PURE__ */ e(L, { className: "text-xs font-medium", children: "LABEL VISIBILITY THRESHOLD" }),
8565
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium", children: "LABEL VISIBILITY THRESHOLD" }),
8566
8566
  /* @__PURE__ */ a("div", { className: "flex items-center gap-3 pt-1", children: [
8567
8567
  /* @__PURE__ */ e("span", { className: "whitespace-nowrap text-xs text-muted-foreground", children: "Show All" }),
8568
8568
  /* @__PURE__ */ e(
@@ -8732,7 +8732,7 @@ function Tc() {
8732
8732
  className: "min-h-[250px] min-w-full max-w-lg",
8733
8733
  children: [
8734
8734
  /* @__PURE__ */ e(
8735
- Ve,
8735
+ Le,
8736
8736
  {
8737
8737
  role: "query-section",
8738
8738
  className: "flex",
@@ -8743,7 +8743,7 @@ function Tc() {
8743
8743
  ),
8744
8744
  /* @__PURE__ */ e(Tt, { withHandle: !0 }),
8745
8745
  /* @__PURE__ */ e(
8746
- Ve,
8746
+ Le,
8747
8747
  {
8748
8748
  className: "pb-1",
8749
8749
  role: "visual-section",
@@ -8751,7 +8751,7 @@ function Tc() {
8751
8751
  defaultSize: 60,
8752
8752
  children: n && !l ? /* @__PURE__ */ a(At, { direction: "horizontal", children: [
8753
8753
  /* @__PURE__ */ e(ie, { children: /* @__PURE__ */ e(
8754
- Ve,
8754
+ Le,
8755
8755
  {
8756
8756
  ref: t,
8757
8757
  className: "flex",
@@ -8761,7 +8761,7 @@ function Tc() {
8761
8761
  }
8762
8762
  ) }),
8763
8763
  !l && /* @__PURE__ */ e(Tt, {}),
8764
- /* @__PURE__ */ e(Ve, { minSize: 40, defaultSize: 75, maxSize: 100, children: /* @__PURE__ */ e(Xn, {}) })
8764
+ /* @__PURE__ */ e(Le, { minSize: 40, defaultSize: 75, maxSize: 100, children: /* @__PURE__ */ e(Xn, {}) })
8765
8765
  ] }) : /* @__PURE__ */ e(Xn, {})
8766
8766
  }
8767
8767
  )
@@ -8786,7 +8786,7 @@ function Ec(t) {
8786
8786
  setRunSql: f,
8787
8787
  switchCardType: A,
8788
8788
  setQueryConfig: m
8789
- } = le(), g = I((G) => G.currentAssitantScope) || [], b = I((G) => G.userInputForAI), w = I((G) => G.triggerAIRun), M = I((G) => G.card), V = I(
8789
+ } = le(), g = I((G) => G.currentAssitantScope) || [], b = I((G) => G.userInputForAI), w = I((G) => G.triggerAIRun), M = I((G) => G.card), L = I(
8790
8790
  (G) => G.selectedDatabaseName
8791
8791
  ), P = I((G) => G.selectedTableName), N = I(
8792
8792
  (G) => G.selectedConnectionId
@@ -8856,7 +8856,7 @@ function Ec(t) {
8856
8856
  }), C(!1));
8857
8857
  }, [w, b, _, C]);
8858
8858
  async function oe({ toolCall: G }) {
8859
- var ge, qe, Xe, It, Ze, ft, et, gt, Ot, rt, Ft, Rt, Lt, Vt, xt, bt;
8859
+ var ge, qe, Xe, It, Ze, ft, et, gt, Ot, rt, Ft, Rt, Vt, Lt, xt, bt;
8860
8860
  if (["createChartFromSql", "createForecast"].includes(G.toolName)) {
8861
8861
  const se = ((ge = G.input) == null ? void 0 : ge.sql) ?? ((qe = G.args) == null ? void 0 : qe.sql), Se = ((Xe = G.input) == null ? void 0 : Xe.python) ?? ((It = G.args) == null ? void 0 : It.python), ke = ((Ze = G.input) == null ? void 0 : Ze.chartType) ?? ((ft = G.args) == null ? void 0 : ft.chartType);
8862
8862
  A(ke), p(se), h(Se), f(!0), B({
@@ -8893,14 +8893,14 @@ function Ec(t) {
8893
8893
  const se = ((et = G.input) == null ? void 0 : et.chartType) ?? ((gt = G.args) == null ? void 0 : gt.chartType), Se = ((Ot = G.input) == null ? void 0 : Ot.queryConfig) ?? ((rt = G.args) == null ? void 0 : rt.queryConfig);
8894
8894
  ((Ft = G.input) == null ? void 0 : Ft.cardConfig) ?? ((Rt = G.args) == null || Rt.cardConfig), A(se), D(Se), p(void 0), h(void 0);
8895
8895
  const ke = await T();
8896
- if ((Lt = ke == null ? void 0 : ke.data) != null && Lt.error) {
8896
+ if ((Vt = ke == null ? void 0 : ke.data) != null && Vt.error) {
8897
8897
  B({
8898
8898
  tool: G.toolName,
8899
8899
  toolCallId: G.toolCallId,
8900
8900
  output: {
8901
8901
  status: "error",
8902
8902
  queryConfig: Se,
8903
- message: (Vt = ke == null ? void 0 : ke.data) == null ? void 0 : Vt.error.message
8903
+ message: (Lt = ke == null ? void 0 : ke.data) == null ? void 0 : Lt.error.message
8904
8904
  }
8905
8905
  });
8906
8906
  return;
@@ -8954,7 +8954,7 @@ function Ec(t) {
8954
8954
  }
8955
8955
  function ne() {
8956
8956
  const G = {
8957
- databaseName: V || "",
8957
+ databaseName: L || "",
8958
8958
  schemaName: k || "",
8959
8959
  tableName: P || "",
8960
8960
  datamodelId: F || "",
@@ -8966,7 +8966,7 @@ function Ec(t) {
8966
8966
  }
8967
8967
  function be() {
8968
8968
  const G = {
8969
- databaseName: V || "",
8969
+ databaseName: L || "",
8970
8970
  schemaName: k || "",
8971
8971
  tableName: P || "",
8972
8972
  datamodelName: jn(R),
@@ -9024,7 +9024,7 @@ function rs({
9024
9024
  onFullscreenChange: s,
9025
9025
  fullscreenContainer: n
9026
9026
  }) {
9027
- const l = $e(null), [r, d] = $(!1), [o, c] = $(Os), [i, u] = $(!1), [h, p] = $(!1), [f, A] = $(!1), m = t ?? f, g = Yr(), { setCurrentAIContext: b } = Fs(), { clearQueue: w } = Wr(), { clearFileAttachments: M } = Xr(), V = Zr("editor"), P = Ce((se) => se.dashboard.aiContext), N = I((se) => se.card.dataSource), k = I((se) => se.actions.setCardSql), x = I((se) => se.actions.setRunSql), y = I((se) => se.showAIDialog), T = Ce(
9027
+ const l = $e(null), [r, d] = $(!1), [o, c] = $(Os), [i, u] = $(!1), [h, p] = $(!1), [f, A] = $(!1), m = t ?? f, g = Yr(), { setCurrentAIContext: b } = Fs(), { clearQueue: w } = Wr(), { clearFileAttachments: M } = Xr(), L = Zr("editor"), P = Ce((se) => se.dashboard.aiContext), N = I((se) => se.card.dataSource), k = I((se) => se.actions.setCardSql), x = I((se) => se.actions.setRunSql), y = I((se) => se.showAIDialog), T = Ce(
9028
9028
  (se) => se.handleOpenAssistantProfile
9029
9029
  ), { setShowAIDialog: O, setCardPython: C } = le(), { setDataSource: v } = le(), { assistantProfile: D } = ei(), {
9030
9030
  messages: R,
@@ -9041,9 +9041,9 @@ function rs({
9041
9041
  }, z = (se) => {
9042
9042
  se.preventDefault();
9043
9043
  const Se = W.trim();
9044
- if (!Se && V.length === 0) return;
9044
+ if (!Se && L.length === 0) return;
9045
9045
  const ke = [];
9046
- Se && ke.push({ type: "text", text: Se }), V.forEach((vt) => {
9046
+ Se && ke.push({ type: "text", text: Se }), L.forEach((vt) => {
9047
9047
  vt.data && ke.push({
9048
9048
  type: "file",
9049
9049
  mediaType: vt.type,
@@ -9150,7 +9150,7 @@ function rs({
9150
9150
  parts: [{ type: "text", text: se }]
9151
9151
  });
9152
9152
  }
9153
- function Lt() {
9153
+ function Vt() {
9154
9154
  return /* @__PURE__ */ a(fn, { children: [
9155
9155
  /* @__PURE__ */ e(gn, { asChild: !0, children: /* @__PURE__ */ e(
9156
9156
  q,
@@ -9191,7 +9191,7 @@ function rs({
9191
9191
  ] })
9192
9192
  ] });
9193
9193
  }
9194
- function Vt() {
9194
+ function Lt() {
9195
9195
  return /* @__PURE__ */ e("div", { "data-role": "header", children: /* @__PURE__ */ e("div", { className: "text-lg font-semibold", children: "Assistant" }) });
9196
9196
  }
9197
9197
  const xt = (W == null ? void 0 : W.length) === 0 && (R == null ? void 0 : R.filter((se) => se.role === "user").length) === 0, bt = /* @__PURE__ */ a(
@@ -9209,7 +9209,7 @@ function rs({
9209
9209
  "data-role": "header-section",
9210
9210
  className: "flex items-start justify-between gap-2",
9211
9211
  children: [
9212
- Vt(),
9212
+ Lt(),
9213
9213
  T && /* @__PURE__ */ e(
9214
9214
  q,
9215
9215
  {
@@ -9221,7 +9221,7 @@ function rs({
9221
9221
  }
9222
9222
  ),
9223
9223
  /* @__PURE__ */ a("div", { "data-role": "header-actions", className: "flex items-center", children: [
9224
- Lt(),
9224
+ Vt(),
9225
9225
  o && /* @__PURE__ */ e(
9226
9226
  q,
9227
9227
  {
@@ -9377,7 +9377,7 @@ function rs({
9377
9377
  incomingSelectedEntities: (N == null ? void 0 : N.selectedEntities) || [],
9378
9378
  open: h,
9379
9379
  onOpenChange: p,
9380
- dataSource: N || Ls,
9380
+ dataSource: N || Vs,
9381
9381
  dialogMode: "aiContext"
9382
9382
  }
9383
9383
  )
@@ -9601,7 +9601,7 @@ function Fc({
9601
9601
  return (h = u.card.config) == null ? void 0 : h.pivotByColumns;
9602
9602
  })) == null ? void 0 : i[0], c = o ? `e.g. Min Sales in {{${o.name}}}` : "e.g. Min Sales in {{region}}";
9603
9603
  return /* @__PURE__ */ a("div", { className: "space-y-1", children: [
9604
- /* @__PURE__ */ e(L, { className: "text-xs font-medium text-gray-600", children: "Pivot Alias Template" }),
9604
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium text-gray-600", children: "Pivot Alias Template" }),
9605
9605
  /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
9606
9606
  /* @__PURE__ */ e(
9607
9607
  Be,
@@ -9665,7 +9665,7 @@ function Rc({
9665
9665
  delete f[p], f[r] = o, s(f), l(null);
9666
9666
  };
9667
9667
  return /* @__PURE__ */ a("div", { className: "space-y-1", children: [
9668
- /* @__PURE__ */ e(L, { className: "text-xs font-medium text-muted-foreground", children: "Pivot Value Aliases" }),
9668
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium text-muted-foreground", children: "Pivot Value Aliases" }),
9669
9669
  /* @__PURE__ */ a("div", { className: "space-y-2", children: [
9670
9670
  Object.entries(t).map(([p, f], A) => /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: n === p ? /* @__PURE__ */ a(ie, { children: [
9671
9671
  /* @__PURE__ */ e(
@@ -9773,7 +9773,7 @@ function Rc({
9773
9773
  ] })
9774
9774
  ] });
9775
9775
  }
9776
- function Lc({
9776
+ function Vc({
9777
9777
  column: t
9778
9778
  }) {
9779
9779
  const s = I((i) => i.card.type), n = I(
@@ -9789,7 +9789,7 @@ function Lc({
9789
9789
  }
9790
9790
  function c() {
9791
9791
  return /* @__PURE__ */ a("div", { className: "space-y-1", children: [
9792
- /* @__PURE__ */ e(L, { className: "text-xs font-medium text-muted-foreground", children: "Data Labels" }),
9792
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium text-muted-foreground", children: "Data Labels" }),
9793
9793
  /* @__PURE__ */ e(ll, {})
9794
9794
  ] });
9795
9795
  }
@@ -9798,7 +9798,7 @@ function Lc({
9798
9798
  ["pie", "doughnut"].includes(s) && c()
9799
9799
  ] });
9800
9800
  }
9801
- function Vc({
9801
+ function Lc({
9802
9802
  field: t,
9803
9803
  searchQuery: s = "",
9804
9804
  limit: n = 500
@@ -9809,7 +9809,7 @@ function Vc({
9809
9809
  t.name,
9810
9810
  s,
9811
9811
  n
9812
- ], i = Vs({
9812
+ ], i = Ls({
9813
9813
  queryKey: c,
9814
9814
  queryFn: async () => {
9815
9815
  if (!(o != null && o.connectionId))
@@ -9891,7 +9891,7 @@ function fl({
9891
9891
  editingCondition: r,
9892
9892
  onSave: d
9893
9893
  }) {
9894
- var V, P;
9894
+ var L, P;
9895
9895
  const o = !!r, [c, i] = $(o ? "values" : "fields"), [u, h] = $(""), [p, f] = $({
9896
9896
  id: (r == null ? void 0 : r.id) || Bt(),
9897
9897
  field: (r == null ? void 0 : r.field) || null,
@@ -9968,10 +9968,10 @@ function fl({
9968
9968
  return pe(() => {
9969
9969
  t && M();
9970
9970
  }, [t, o, r]), /* @__PURE__ */ e(Ct, { open: t, onOpenChange: s, children: /* @__PURE__ */ a(wt, { className: "max-w-2xl", children: [
9971
- /* @__PURE__ */ e(St, { children: /* @__PURE__ */ e(kt, { children: o ? `Edit Filter: ${(V = p.field) == null ? void 0 : V.label}` : c === "fields" ? "Select Field to Filter" : `Select Values for ${(P = p.field) == null ? void 0 : P.label}` }) }),
9971
+ /* @__PURE__ */ e(St, { children: /* @__PURE__ */ e(kt, { children: o ? `Edit Filter: ${(L = p.field) == null ? void 0 : L.label}` : c === "fields" ? "Select Field to Filter" : `Select Values for ${(P = p.field) == null ? void 0 : P.label}` }) }),
9972
9972
  /* @__PURE__ */ a("div", { className: "space-y-4", children: [
9973
9973
  !o && (l == null ? void 0 : l.conditions) && l.conditions.length > 0 && c === "fields" && /* @__PURE__ */ a("div", { className: "space-y-2", children: [
9974
- /* @__PURE__ */ e(L, { className: "text-xs font-medium text-muted-foreground", children: "Current Filters:" }),
9974
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium text-muted-foreground", children: "Current Filters:" }),
9975
9975
  /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2", children: l.conditions.map((N) => /* @__PURE__ */ a(
9976
9976
  "div",
9977
9977
  {
@@ -10062,7 +10062,7 @@ function Pc({
10062
10062
  values: o,
10063
10063
  isLoading: c,
10064
10064
  isFetching: i
10065
- } = Vc({
10065
+ } = Lc({
10066
10066
  field: t,
10067
10067
  searchQuery: r,
10068
10068
  limit: 500
@@ -10077,7 +10077,7 @@ function Pc({
10077
10077
  return /* @__PURE__ */ a("div", { className: "space-y-4", children: [
10078
10078
  l && /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
10079
10079
  /* @__PURE__ */ e(q, { variant: "ghost", size: "sm", onClick: l, children: "← Back" }),
10080
- /* @__PURE__ */ a(L, { className: "text-sm font-medium", children: [
10080
+ /* @__PURE__ */ a(V, { className: "text-sm font-medium", children: [
10081
10081
  "Select values for ",
10082
10082
  t.label
10083
10083
  ] })
@@ -10103,7 +10103,7 @@ function Pc({
10103
10103
  onCheckedChange: p
10104
10104
  }
10105
10105
  ),
10106
- /* @__PURE__ */ a(L, { className: "text-sm", children: [
10106
+ /* @__PURE__ */ a(V, { className: "text-sm", children: [
10107
10107
  "Select All (",
10108
10108
  u.length,
10109
10109
  ")"
@@ -10138,7 +10138,7 @@ function gl({
10138
10138
  onSave: r,
10139
10139
  cardId: d
10140
10140
  }) {
10141
- const [o, c] = $(""), [i, u] = $("ratio"), [h, p] = $(null), [f, A] = $(null), [m, g] = $(1), [b, w] = $(""), [M, V] = $({
10141
+ const [o, c] = $(""), [i, u] = $("ratio"), [h, p] = $(null), [f, A] = $(null), [m, g] = $(1), [b, w] = $(""), [M, L] = $({
10142
10142
  format: "number",
10143
10143
  decimalPlaces: 2
10144
10144
  }), [P, N] = $({}), k = wa.find((v) => v.id === i), x = n.find((v) => v.id === h), y = n.find((v) => v.id === f);
@@ -10209,7 +10209,7 @@ function gl({
10209
10209
  ] }),
10210
10210
  /* @__PURE__ */ a("div", { className: "space-y-4 py-4", children: [
10211
10211
  /* @__PURE__ */ a("div", { className: "space-y-2", children: [
10212
- /* @__PURE__ */ e(L, { htmlFor: "name", children: "Name" }),
10212
+ /* @__PURE__ */ e(V, { htmlFor: "name", children: "Name" }),
10213
10213
  /* @__PURE__ */ e(
10214
10214
  Ne,
10215
10215
  {
@@ -10223,7 +10223,7 @@ function gl({
10223
10223
  P.name && /* @__PURE__ */ e("p", { className: "text-xs text-red-500", children: P.name })
10224
10224
  ] }),
10225
10225
  /* @__PURE__ */ a("div", { className: "space-y-2", children: [
10226
- /* @__PURE__ */ e(L, { htmlFor: "operation", children: "Outcome is" }),
10226
+ /* @__PURE__ */ e(V, { htmlFor: "operation", children: "Outcome is" }),
10227
10227
  /* @__PURE__ */ a(
10228
10228
  Z,
10229
10229
  {
@@ -10246,7 +10246,7 @@ function gl({
10246
10246
  k && /* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground", children: k.description })
10247
10247
  ] }),
10248
10248
  i === "custom" ? /* @__PURE__ */ a("div", { className: "space-y-2", children: [
10249
- /* @__PURE__ */ e(L, { htmlFor: "customExpression", children: "SQL Expression" }),
10249
+ /* @__PURE__ */ e(V, { htmlFor: "customExpression", children: "SQL Expression" }),
10250
10250
  /* @__PURE__ */ e(
10251
10251
  vi,
10252
10252
  {
@@ -10272,7 +10272,7 @@ function gl({
10272
10272
  f && y ? y.label : "B"
10273
10273
  ] }),
10274
10274
  i !== "custom" && /* @__PURE__ */ a("div", { className: "space-y-2", children: [
10275
- /* @__PURE__ */ e(L, { htmlFor: "inputA", children: "Where" }),
10275
+ /* @__PURE__ */ e(V, { htmlFor: "inputA", children: "Where" }),
10276
10276
  /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
10277
10277
  /* @__PURE__ */ e("div", { className: "flex h-8 w-8 items-center justify-center rounded bg-muted font-mono text-sm font-medium", children: "A" }),
10278
10278
  /* @__PURE__ */ a(Z, { value: h || "", onValueChange: p, children: [
@@ -10317,7 +10317,7 @@ function gl({
10317
10317
  P.inputB && /* @__PURE__ */ e("p", { className: "text-xs text-red-500", children: P.inputB })
10318
10318
  ] }),
10319
10319
  i === "scale" && /* @__PURE__ */ a("div", { className: "space-y-2", children: [
10320
- /* @__PURE__ */ e(L, { htmlFor: "constantFactor", children: "Multiplication Factor" }),
10320
+ /* @__PURE__ */ e(V, { htmlFor: "constantFactor", children: "Multiplication Factor" }),
10321
10321
  /* @__PURE__ */ e(
10322
10322
  Ne,
10323
10323
  {
@@ -10334,12 +10334,12 @@ function gl({
10334
10334
  /* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground", children: "Enter the constant value to multiply the metric by (e.g., 0.15 for 15%)" })
10335
10335
  ] }),
10336
10336
  /* @__PURE__ */ a("div", { className: "space-y-2", children: [
10337
- /* @__PURE__ */ e(L, { htmlFor: "format", children: "Format" }),
10337
+ /* @__PURE__ */ e(V, { htmlFor: "format", children: "Format" }),
10338
10338
  /* @__PURE__ */ a(
10339
10339
  Z,
10340
10340
  {
10341
10341
  value: M.format,
10342
- onValueChange: (v) => V({ ...M, format: v }),
10342
+ onValueChange: (v) => L({ ...M, format: v }),
10343
10343
  children: [
10344
10344
  /* @__PURE__ */ e(ee, { id: "format", children: /* @__PURE__ */ e(te, {}) }),
10345
10345
  /* @__PURE__ */ a(ae, { children: [
@@ -10395,7 +10395,7 @@ function Bc({
10395
10395
  handleDateFormatChange: b,
10396
10396
  handleGranularityChange: w,
10397
10397
  handleAliasTemplateChange: M,
10398
- handleValueAliasesChange: V,
10398
+ handleValueAliasesChange: L,
10399
10399
  removeField: P,
10400
10400
  handleKpiComparisonTypeChange: N,
10401
10401
  handleKpiShowTrendlineChange: k,
@@ -10422,7 +10422,7 @@ function Bc({
10422
10422
  }, G = (H) => {
10423
10423
  oe(H), s === "metrics" && M(n, H);
10424
10424
  }, ge = (H) => {
10425
- xe(H), s === "metrics" && V(n, H);
10425
+ xe(H), s === "metrics" && L(n, H);
10426
10426
  }, qe = (H) => {
10427
10427
  m(s, n, H);
10428
10428
  }, Xe = (H) => {
@@ -10445,7 +10445,7 @@ function Bc({
10445
10445
  }, Ze = {
10446
10446
  transform: Ra.Transform.toString(h),
10447
10447
  transition: p
10448
- }, ft = Te(t.dataType), et = ft === "date", gt = o === "kpi", Ot = Gn(B), rt = s !== "pivotBy", Ft = et && s === "groupBy" && (!gt || ((Dn = A.config) == null ? void 0 : Dn.comparisonType) === "start_vs_end"), Rt = !gt && et && s === "groupBy", Lt = o && Si.includes(o) && et && s === "groupBy", Vt = o === "kpi" && et && s === "groupBy", xt = o && o !== "pivotTable" && s === "metrics" && ((Mn = A.config) == null ? void 0 : Mn.comparisonType) === "target", bt = s === "metrics", se = () => {
10448
+ }, ft = Te(t.dataType), et = ft === "date", gt = o === "kpi", Ot = Gn(B), rt = s !== "pivotBy", Ft = et && s === "groupBy" && (!gt || ((Dn = A.config) == null ? void 0 : Dn.comparisonType) === "start_vs_end"), Rt = !gt && et && s === "groupBy", Vt = o && Si.includes(o) && et && s === "groupBy", Lt = o === "kpi" && et && s === "groupBy", xt = o && o !== "pivotTable" && s === "metrics" && ((Mn = A.config) == null ? void 0 : Mn.comparisonType) === "target", bt = s === "metrics", se = () => {
10449
10449
  const H = t, ye = s === "metrics" && ya(H);
10450
10450
  return /* @__PURE__ */ a("div", { className: "space-y-1", children: [
10451
10451
  !ye && /* @__PURE__ */ e(
@@ -10475,7 +10475,7 @@ function Bc({
10475
10475
  )
10476
10476
  ] });
10477
10477
  }, Se = () => rt ? /* @__PURE__ */ a("div", { className: "space-y-1", children: [
10478
- /* @__PURE__ */ e(L, { className: "text-xs font-medium text-muted-foreground", children: "Label" }),
10478
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium text-muted-foreground", children: "Label" }),
10479
10479
  /* @__PURE__ */ e(
10480
10480
  nt,
10481
10481
  {
@@ -10486,7 +10486,7 @@ function Bc({
10486
10486
  }
10487
10487
  )
10488
10488
  ] }) : null, ke = () => Ft ? /* @__PURE__ */ a("div", { className: "space-y-1", children: [
10489
- /* @__PURE__ */ e(L, { className: "text-xs font-medium text-muted-foreground", children: "Granularity" }),
10489
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium text-muted-foreground", children: "Granularity" }),
10490
10490
  /* @__PURE__ */ a(
10491
10491
  Z,
10492
10492
  {
@@ -10501,7 +10501,7 @@ function Bc({
10501
10501
  ] }) : null, vt = () => Rt ? /* @__PURE__ */ a(ie, { children: [
10502
10502
  ke(),
10503
10503
  /* @__PURE__ */ a("div", { className: "space-y-1", children: [
10504
- /* @__PURE__ */ e(L, { className: "text-xs font-medium text-muted-foreground", children: "Date Format" }),
10504
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium text-muted-foreground", children: "Date Format" }),
10505
10505
  /* @__PURE__ */ a(
10506
10506
  Z,
10507
10507
  {
@@ -10539,10 +10539,10 @@ function Bc({
10539
10539
  ] })
10540
10540
  ] }) : null, bl = () => {
10541
10541
  var de, Ie, Nt, ea, it;
10542
- const H = Lt, ye = Vt;
10542
+ const H = Vt, ye = Lt;
10543
10543
  return !H && !ye ? null : /* @__PURE__ */ a(ie, { children: [
10544
10544
  H && /* @__PURE__ */ a("div", { className: "space-y-1", children: [
10545
- /* @__PURE__ */ e(L, { className: "text-xs font-medium text-muted-foreground", children: "Comparison Type" }),
10545
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium text-muted-foreground", children: "Comparison Type" }),
10546
10546
  /* @__PURE__ */ a(
10547
10547
  Z,
10548
10548
  {
@@ -10562,7 +10562,7 @@ function Bc({
10562
10562
  ] }),
10563
10563
  ye && /* @__PURE__ */ a(ie, { children: [
10564
10564
  /* @__PURE__ */ e("div", { className: "space-y-1", children: /* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
10565
- /* @__PURE__ */ e(L, { className: "text-xs font-medium text-muted-foreground", children: "Show Trendline" }),
10565
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium text-muted-foreground", children: "Show Trendline" }),
10566
10566
  /* @__PURE__ */ e(
10567
10567
  Ee,
10568
10568
  {
@@ -10573,7 +10573,7 @@ function Bc({
10573
10573
  ] }) }),
10574
10574
  ((Nt = A.config) == null ? void 0 : Nt.showTrendline) && /* @__PURE__ */ a(ie, { children: [
10575
10575
  /* @__PURE__ */ a("div", { className: "space-y-1", children: [
10576
- /* @__PURE__ */ e(L, { className: "text-xs font-medium text-muted-foreground", children: "Trendline Window" }),
10576
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium text-muted-foreground", children: "Trendline Window" }),
10577
10577
  /* @__PURE__ */ e(
10578
10578
  Be,
10579
10579
  {
@@ -10591,7 +10591,7 @@ function Bc({
10591
10591
  )
10592
10592
  ] }),
10593
10593
  /* @__PURE__ */ a("div", { className: "space-y-1", children: [
10594
- /* @__PURE__ */ e(L, { className: "text-xs font-medium text-muted-foreground", children: "Trendline Granularity" }),
10594
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium text-muted-foreground", children: "Trendline Granularity" }),
10595
10595
  /* @__PURE__ */ a(
10596
10596
  Z,
10597
10597
  {
@@ -10614,7 +10614,7 @@ function Bc({
10614
10614
  }, vl = () => {
10615
10615
  var H, ye;
10616
10616
  return xt ? /* @__PURE__ */ a("div", { className: "space-y-1", children: [
10617
- /* @__PURE__ */ e(L, { className: "text-xs font-medium text-muted-foreground", children: "Target Value" }),
10617
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium text-muted-foreground", children: "Target Value" }),
10618
10618
  /* @__PURE__ */ e(
10619
10619
  nt,
10620
10620
  {
@@ -10632,7 +10632,7 @@ function Bc({
10632
10632
  const ye = ya(t);
10633
10633
  return /* @__PURE__ */ a(ie, { children: [
10634
10634
  ye && /* @__PURE__ */ a("div", { className: "space-y-1", children: [
10635
- /* @__PURE__ */ e(L, { className: "text-xs font-medium text-muted-foreground", children: "Formula" }),
10635
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium text-muted-foreground", children: "Formula" }),
10636
10636
  /* @__PURE__ */ a(
10637
10637
  q,
10638
10638
  {
@@ -10648,7 +10648,7 @@ function Bc({
10648
10648
  )
10649
10649
  ] }),
10650
10650
  /* @__PURE__ */ a("div", { className: "space-y-1", children: [
10651
- /* @__PURE__ */ e(L, { className: "text-xs font-medium text-muted-foreground", children: "Aggregation" }),
10651
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium text-muted-foreground", children: "Aggregation" }),
10652
10652
  /* @__PURE__ */ a(
10653
10653
  Z,
10654
10654
  {
@@ -10675,7 +10675,7 @@ function Bc({
10675
10675
  )
10676
10676
  ] }),
10677
10677
  /* @__PURE__ */ a("div", { className: "space-y-1", children: [
10678
- /* @__PURE__ */ e(L, { className: "text-xs font-medium text-muted-foreground", children: "Attribute Filters" }),
10678
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium text-muted-foreground", children: "Attribute Filters" }),
10679
10679
  (ne == null ? void 0 : ne.conditions) && ne.conditions.length > 0 && /* @__PURE__ */ e("div", { className: "mb-2 space-y-1", children: ne.conditions.map((de) => /* @__PURE__ */ a(
10680
10680
  "div",
10681
10681
  {
@@ -10762,7 +10762,7 @@ function Bc({
10762
10762
  }
10763
10763
  )
10764
10764
  ] }),
10765
- /* @__PURE__ */ e(Lc, { column: t }),
10765
+ /* @__PURE__ */ e(Vc, { column: t }),
10766
10766
  d && /* @__PURE__ */ a(ie, { children: [
10767
10767
  /* @__PURE__ */ e(
10768
10768
  Fc,
@@ -11030,8 +11030,8 @@ function ha({
11030
11030
  t,
11031
11031
  p
11032
11032
  ).isValid, [o, c, t, p]), m = (b, w) => {
11033
- var V;
11034
- !((V = h.config) != null && V.sortByColumns) || h.config.sortByColumns.findIndex(
11033
+ var L;
11034
+ !((L = h.config) != null && L.sortByColumns) || h.config.sortByColumns.findIndex(
11035
11035
  (P) => P.id === b
11036
11036
  ) === -1 || u(h.id, b, { direction: w });
11037
11037
  };
@@ -11041,7 +11041,7 @@ function ha({
11041
11041
  return /* @__PURE__ */ a("div", { className: "mb-4 w-full", children: [
11042
11042
  /* @__PURE__ */ a("div", { className: "mb-2 flex items-center gap-2", children: [
11043
11043
  /* @__PURE__ */ e(
11044
- L,
11044
+ V,
11045
11045
  {
11046
11046
  className: Q("block text-sm font-medium", {
11047
11047
  // 'text-green-600': zone === 'metrics',
@@ -11076,7 +11076,7 @@ function ha({
11076
11076
  items: s.map((b) => b.id),
11077
11077
  strategy: Kt,
11078
11078
  children: /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-1", children: s.map((b, w) => {
11079
- const V = b.direction;
11079
+ const L = b.direction;
11080
11080
  return /* @__PURE__ */ e(
11081
11081
  "div",
11082
11082
  {
@@ -11087,7 +11087,7 @@ function ha({
11087
11087
  field: b,
11088
11088
  zone: t,
11089
11089
  index: w,
11090
- sortDirection: V,
11090
+ sortDirection: L,
11091
11091
  onSortDirectionChange: (P) => m(b.id, P),
11092
11092
  hasPivotColumns: d,
11093
11093
  cardType: p
@@ -11131,7 +11131,7 @@ Difference: Primary - Secondary`,
11131
11131
  }
11132
11132
  };
11133
11133
  function jc() {
11134
- var f, A, m, g, b, w, M, V, P, N, k;
11134
+ var f, A, m, g, b, w, M, L, P, N, k;
11135
11135
  const t = I((x) => x.card), { setCardPreferences: s } = le(), n = ((f = t.config) == null ? void 0 : f.metricColumns) || [], l = ((A = t.config) == null ? void 0 : A.groupByColumns) || [], r = n.length === 2 && l.length === 0, d = n.length >= 1 && l.length > 0;
11136
11136
  if (!(t.type === "kpi" && (r || d)))
11137
11137
  return null;
@@ -11156,7 +11156,7 @@ function jc() {
11156
11156
  ] }) }),
11157
11157
  /* @__PURE__ */ a(he, { className: "space-y-4 pb-4 pt-2", children: [
11158
11158
  r && n.length === 2 && /* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
11159
- /* @__PURE__ */ e(L, { htmlFor: "enable-comparison", className: "text-xs", children: "Enable Metric Comparison" }),
11159
+ /* @__PURE__ */ e(V, { htmlFor: "enable-comparison", className: "text-xs", children: "Enable Metric Comparison" }),
11160
11160
  /* @__PURE__ */ e(
11161
11161
  Ee,
11162
11162
  {
@@ -11174,7 +11174,7 @@ function jc() {
11174
11174
  /* @__PURE__ */ a("div", { className: "space-y-2", children: [
11175
11175
  /* @__PURE__ */ a("div", { className: "flex items-center gap-1", children: [
11176
11176
  /* @__PURE__ */ e(
11177
- L,
11177
+ V,
11178
11178
  {
11179
11179
  htmlFor: "calculation-type",
11180
11180
  className: "text-xs font-medium uppercase text-muted-foreground",
@@ -11226,9 +11226,9 @@ function jc() {
11226
11226
  }
11227
11227
  ),
11228
11228
  (p || r) && /* @__PURE__ */ a("div", { className: "space-y-3 border-t pt-3", children: [
11229
- /* @__PURE__ */ e(L, { className: "text-xs font-medium uppercase text-muted-foreground", children: "Indicator" }),
11229
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium uppercase text-muted-foreground", children: "Indicator" }),
11230
11230
  r && /* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
11231
- /* @__PURE__ */ e(L, { className: "text-xs text-muted-foreground", children: "Position" }),
11231
+ /* @__PURE__ */ e(V, { className: "text-xs text-muted-foreground", children: "Position" }),
11232
11232
  /* @__PURE__ */ a(
11233
11233
  Z,
11234
11234
  {
@@ -11257,7 +11257,7 @@ function jc() {
11257
11257
  }
11258
11258
  ),
11259
11259
  /* @__PURE__ */ e(
11260
- L,
11260
+ V,
11261
11261
  {
11262
11262
  htmlFor: "show-arrow",
11263
11263
  className: "cursor-pointer text-xs text-muted-foreground",
@@ -11275,7 +11275,7 @@ function jc() {
11275
11275
  }
11276
11276
  ),
11277
11277
  /* @__PURE__ */ e(
11278
- L,
11278
+ V,
11279
11279
  {
11280
11280
  htmlFor: "show-color",
11281
11281
  className: "cursor-pointer text-xs text-muted-foreground",
@@ -11313,7 +11313,7 @@ function jc() {
11313
11313
  /* @__PURE__ */ e(
11314
11314
  na,
11315
11315
  {
11316
- value: ((V = c.colorConfig) == null ? void 0 : V.noChange) || "neutral",
11316
+ value: ((L = c.colorConfig) == null ? void 0 : L.noChange) || "neutral",
11317
11317
  onChange: (x) => i({
11318
11318
  colorConfig: {
11319
11319
  ...c.colorConfig,
@@ -11326,7 +11326,7 @@ function jc() {
11326
11326
  ] })
11327
11327
  ] }),
11328
11328
  /* @__PURE__ */ a("div", { className: "space-y-3 border-t pt-3", children: [
11329
- /* @__PURE__ */ e(L, { className: "text-xs font-medium uppercase text-muted-foreground", children: "Label" }),
11329
+ /* @__PURE__ */ e(V, { className: "text-xs font-medium uppercase text-muted-foreground", children: "Label" }),
11330
11330
  /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
11331
11331
  /* @__PURE__ */ e(
11332
11332
  We,
@@ -11339,7 +11339,7 @@ function jc() {
11339
11339
  }
11340
11340
  ),
11341
11341
  /* @__PURE__ */ e(
11342
- L,
11342
+ V,
11343
11343
  {
11344
11344
  htmlFor: "conditional-label",
11345
11345
  className: "cursor-pointer text-xs text-muted-foreground",
@@ -11352,7 +11352,7 @@ function jc() {
11352
11352
  /* @__PURE__ */ a("div", { className: "space-y-3 border-l-2 border-muted pl-3", children: [
11353
11353
  /* @__PURE__ */ a("div", { className: "space-y-2", children: [
11354
11354
  /* @__PURE__ */ a(
11355
- L,
11355
+ V,
11356
11356
  {
11357
11357
  htmlFor: "label-increase",
11358
11358
  className: "text-xs text-muted-foreground",
@@ -11382,7 +11382,7 @@ function jc() {
11382
11382
  ] }),
11383
11383
  /* @__PURE__ */ a("div", { className: "space-y-2", children: [
11384
11384
  /* @__PURE__ */ a(
11385
- L,
11385
+ V,
11386
11386
  {
11387
11387
  htmlFor: "label-decrease",
11388
11388
  className: "text-xs text-muted-foreground",
@@ -11412,7 +11412,7 @@ function jc() {
11412
11412
  ] }),
11413
11413
  /* @__PURE__ */ a("div", { className: "space-y-2", children: [
11414
11414
  /* @__PURE__ */ e(
11415
- L,
11415
+ V,
11416
11416
  {
11417
11417
  htmlFor: "label-no-change",
11418
11418
  className: "text-xs text-muted-foreground",
@@ -11441,7 +11441,7 @@ function jc() {
11441
11441
  // Single label when not conditional
11442
11442
  /* @__PURE__ */ a("div", { className: "space-y-2", children: [
11443
11443
  /* @__PURE__ */ e(
11444
- L,
11444
+ V,
11445
11445
  {
11446
11446
  htmlFor: "label-name",
11447
11447
  className: "text-xs text-muted-foreground",
@@ -11533,7 +11533,7 @@ function Kc() {
11533
11533
  /* @__PURE__ */ a("div", { className: "flex items-start gap-2 rounded-md border border-border px-3 py-2", children: [
11534
11534
  /* @__PURE__ */ e(ht, { id: "treemap-color-branch", value: "branch" }),
11535
11535
  /* @__PURE__ */ a(
11536
- L,
11536
+ V,
11537
11537
  {
11538
11538
  htmlFor: "treemap-color-branch",
11539
11539
  className: "flex flex-col text-sm font-normal leading-tight",
@@ -11547,7 +11547,7 @@ function Kc() {
11547
11547
  /* @__PURE__ */ a("div", { className: "flex items-start gap-2 rounded-md border border-border px-3 py-2", children: [
11548
11548
  /* @__PURE__ */ e(ht, { id: "treemap-color-category", value: "category" }),
11549
11549
  /* @__PURE__ */ a(
11550
- L,
11550
+ V,
11551
11551
  {
11552
11552
  htmlFor: "treemap-color-category",
11553
11553
  className: "flex flex-col text-sm font-normal leading-tight",
@@ -11571,12 +11571,12 @@ function qc({
11571
11571
  activeField: r
11572
11572
  }) {
11573
11573
  const [d, o] = $(!1), c = I(
11574
- (V) => {
11574
+ (L) => {
11575
11575
  var P;
11576
- return ((P = V.card.customCardPreferences) == null ? void 0 : P.url) && V.card.type === "custom";
11576
+ return ((P = L.card.customCardPreferences) == null ? void 0 : P.url) && L.card.type === "custom";
11577
11577
  }
11578
- ), i = I((V) => V.card), u = I(
11579
- (V) => V.actions.updateCardConfig
11578
+ ), i = I((L) => L.card), u = I(
11579
+ (L) => L.actions.updateCardConfig
11580
11580
  ), h = i == null ? void 0 : i.type, p = t.length > 0 || n.length > 0, f = h !== "kpi" || n.length <= 2, A = h !== "kpi", m = h !== "kpi" && p, g = [
11581
11581
  "pie",
11582
11582
  "doughnut",
@@ -11704,9 +11704,9 @@ function qc({
11704
11704
  open: d,
11705
11705
  onOpenChange: o,
11706
11706
  availableMetrics: n,
11707
- onSave: (V) => {
11707
+ onSave: (L) => {
11708
11708
  u(i.id, {
11709
- metricColumns: [...n, V]
11709
+ metricColumns: [...n, L]
11710
11710
  });
11711
11711
  },
11712
11712
  cardId: i.id
@@ -11859,7 +11859,7 @@ function Uc({
11859
11859
  ...p == null ? void 0 : p.config,
11860
11860
  joinPlan: T
11861
11861
  }), h(!1);
11862
- }, V = () => {
11862
+ }, L = () => {
11863
11863
  f(p.id, {
11864
11864
  ...p == null ? void 0 : p.config,
11865
11865
  joinPlan: void 0
@@ -11958,7 +11958,7 @@ function Uc({
11958
11958
  availableDataSources: w,
11959
11959
  onSave: M,
11960
11960
  onCancel: P,
11961
- onRemove: V,
11961
+ onRemove: L,
11962
11962
  children: /* @__PURE__ */ e("div", {})
11963
11963
  }
11964
11964
  )
@@ -12122,7 +12122,7 @@ function Jc({
12122
12122
  groups: T.groups.map(y)
12123
12123
  };
12124
12124
  l(y(n));
12125
- }, V = (N) => {
12125
+ }, L = (N) => {
12126
12126
  if (!N || N.conditions.length === 0 && N.groups.length === 0)
12127
12127
  return "-- No filters defined";
12128
12128
  const k = (y) => {
@@ -12188,7 +12188,7 @@ function Jc({
12188
12188
  updateGroupNegate: b,
12189
12189
  reorderConditions: w,
12190
12190
  reorderGroups: M,
12191
- generateSQLPreview: V,
12191
+ generateSQLPreview: L,
12192
12192
  hasAnyFilters: P
12193
12193
  };
12194
12194
  }
@@ -12325,7 +12325,7 @@ function Tn(t) {
12325
12325
  groupByColumns: [o],
12326
12326
  metricColumns: [c],
12327
12327
  sortByColumns: [i]
12328
- }, h = ((g = s.dataSource) == null ? void 0 : g.connectionId) || s.connectionId, { data: p, isPending: f, error: A } = Vs({
12328
+ }, h = ((g = s.dataSource) == null ? void 0 : g.connectionId) || s.connectionId, { data: p, isPending: f, error: A } = Ls({
12329
12329
  queryKey: [
12330
12330
  "filterValues",
12331
12331
  t.entityId,
@@ -12662,9 +12662,9 @@ function xl({
12662
12662
  {
12663
12663
  value: t.field,
12664
12664
  onValueChange: (M) => {
12665
- const V = M, P = Te(V.dataType) === "date";
12665
+ const L = M, P = Te(L.dataType) === "date";
12666
12666
  i(n, t.id, {
12667
- field: V,
12667
+ field: L,
12668
12668
  value: "",
12669
12669
  // For date fields, default to 'between' operator
12670
12670
  operator: P ? "between" : "="
@@ -12808,11 +12808,11 @@ function rd({
12808
12808
  attributes: b,
12809
12809
  listeners: w,
12810
12810
  setNodeRef: M,
12811
- transform: V,
12811
+ transform: L,
12812
12812
  transition: P,
12813
12813
  isDragging: N
12814
12814
  } = Fa({ id: t.id }), k = {
12815
- transform: Ra.Transform.toString(V),
12815
+ transform: Ra.Transform.toString(L),
12816
12816
  transition: P
12817
12817
  }, x = (T) => {
12818
12818
  const { active: O, over: C } = T;
@@ -13001,7 +13001,7 @@ function id({
13001
13001
  reorderConditions: b,
13002
13002
  reorderGroups: w,
13003
13003
  generateSQLPreview: M,
13004
- hasAnyFilters: V,
13004
+ hasAnyFilters: L,
13005
13005
  setCurrentFilters: P
13006
13006
  } = Jc({
13007
13007
  initialFilters: t,
@@ -13160,7 +13160,7 @@ function id({
13160
13160
  }
13161
13161
  ),
13162
13162
  /* @__PURE__ */ e(
13163
- L,
13163
+ V,
13164
13164
  {
13165
13165
  htmlFor: "advanced-mode",
13166
13166
  className: "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
@@ -13168,7 +13168,7 @@ function id({
13168
13168
  }
13169
13169
  )
13170
13170
  ] }) }),
13171
- V && /* @__PURE__ */ a("div", { className: "mt-4 border-t border-border pt-4", children: [
13171
+ L && /* @__PURE__ */ a("div", { className: "mt-4 border-t border-border pt-4", children: [
13172
13172
  /* @__PURE__ */ e("div", { className: "mb-2 text-xs font-medium text-muted-foreground", children: "SQL WHERE Clause Preview" }),
13173
13173
  /* @__PURE__ */ e("div", { className: "overflow-x-auto rounded-md border bg-muted p-3", children: /* @__PURE__ */ e("pre", { className: "whitespace-pre-wrap font-mono text-xs text-muted-foreground", children: M(d) }) })
13174
13174
  ] })
@@ -13180,7 +13180,7 @@ function id({
13180
13180
  q,
13181
13181
  {
13182
13182
  size: "sm",
13183
- onClick: () => n(V ? d : null),
13183
+ onClick: () => n(L ? d : null),
13184
13184
  children: "Apply Filters"
13185
13185
  }
13186
13186
  )
@@ -13245,19 +13245,19 @@ function cd({
13245
13245
  ...n("metrics"),
13246
13246
  ...n("sortBy")
13247
13247
  ], f = Ue(
13248
- (M) => M.startsWith("card-") ? null : M.startsWith("source-") || s.find((V) => V.id === M) ? "source" : n("groupBy").find((V) => V.id === M) ? "groupBy" : n("metrics").find((V) => V.id === M) ? "metrics" : n("pivotBy").find((V) => V.id === M) ? "pivotBy" : n("sortBy").find((V) => V.id === M) ? "sortBy" : null,
13248
+ (M) => M.startsWith("card-") ? null : M.startsWith("source-") || s.find((L) => L.id === M) ? "source" : n("groupBy").find((L) => L.id === M) ? "groupBy" : n("metrics").find((L) => L.id === M) ? "metrics" : n("pivotBy").find((L) => L.id === M) ? "pivotBy" : n("sortBy").find((L) => L.id === M) ? "sortBy" : null,
13249
13249
  [s, n]
13250
13250
  ), A = Ue((M) => {
13251
13251
  d(M.active.id);
13252
13252
  }, []), m = Ue(
13253
13253
  (M) => {
13254
13254
  var T;
13255
- const { active: V, over: P } = M;
13255
+ const { active: L, over: P } = M;
13256
13256
  if (!P || !t) {
13257
13257
  d(null);
13258
13258
  return;
13259
13259
  }
13260
- const N = V.id, k = P.id, x = f(N), y = f(k) || k;
13260
+ const N = L.id, k = P.id, x = f(N), y = f(k) || k;
13261
13261
  if (y === "sortBy") {
13262
13262
  if (x === "source") {
13263
13263
  const O = s.find((v) => v.id === N);
@@ -13347,7 +13347,7 @@ function cd({
13347
13347
  $a(), d(null);
13348
13348
  return;
13349
13349
  }
13350
- if (!Li(
13350
+ if (!Vi(
13351
13351
  F,
13352
13352
  O.qualifiedEntityName,
13353
13353
  i
@@ -13562,7 +13562,7 @@ function hd({
13562
13562
  const u = we(() => (s == null ? void 0 : s.records) || [], [s == null ? void 0 : s.records]);
13563
13563
  return !i || ["table", "pivotTable", "aggregateTable"].includes(t.type) ? /* @__PURE__ */ e(Za, {}) : /* @__PURE__ */ a(At, { direction: "vertical", className: "h-full min-h-0 w-full", children: [
13564
13564
  /* @__PURE__ */ e(
13565
- Ve,
13565
+ Le,
13566
13566
  {
13567
13567
  defaultSize: 60,
13568
13568
  minSize: 30,
@@ -13573,7 +13573,7 @@ function hd({
13573
13573
  ),
13574
13574
  /* @__PURE__ */ e(Tt, { withHandle: !0 }),
13575
13575
  /* @__PURE__ */ e(
13576
- Ve,
13576
+ Le,
13577
13577
  {
13578
13578
  defaultSize: 40,
13579
13579
  minSize: 20,
@@ -13619,7 +13619,7 @@ function gd({
13619
13619
  var xe, ne, be;
13620
13620
  const u = I((re) => re.card), h = Ce((re) => re.filterValues), p = Ce((re) => re.selectedSheetId), f = Ce(
13621
13621
  (re) => re.inlineFilterValuesMap[(d == null ? void 0 : d.id) || ""]
13622
- ), { updateCardConfig: A, setCard: m, updateCardInFrame: g, setShowAIDialog: b } = le(), w = I((re) => re.showAIDialog), M = Ce((re) => re.isVisualEditing), [V, P] = $(!1), [N, k] = $(!1), [x, y] = $(
13622
+ ), { updateCardConfig: A, setCard: m, updateCardInFrame: g, setShowAIDialog: b } = le(), w = I((re) => re.showAIDialog), M = Ce((re) => re.isVisualEditing), [L, P] = $(!1), [N, k] = $(!1), [x, y] = $(
13623
13623
  null
13624
13624
  ), { config: T } = Nn(un).tokenProps, O = (T == null ? void 0 : T.showInfoTab) !== !1, [C, v] = fd();
13625
13625
  I(
@@ -13706,7 +13706,7 @@ function gd({
13706
13706
  });
13707
13707
  }, ce = we(() => {
13708
13708
  var re;
13709
- return Vi((re = u.config) == null ? void 0 : re.sortByColumns);
13709
+ return Li((re = u.config) == null ? void 0 : re.sortByColumns);
13710
13710
  }, [(xe = u.config) == null ? void 0 : xe.sortByColumns]);
13711
13711
  return /* @__PURE__ */ a(
13712
13712
  "div",
@@ -13943,7 +13943,7 @@ function vd({ column: t, isSelected: s, onSelect: n, availableFields: l, width:
13943
13943
  document.addEventListener("mousemove", W), document.addEventListener("mouseup", B);
13944
13944
  }, [r, t.id, d]), w = (U = o == null ? void 0 : o.config) == null ? void 0 : U.filters, M = (X = w == null ? void 0 : w.conditions) == null ? void 0 : X.some(
13945
13945
  (_) => _.field.name === t.name && _.field.qualifiedEntityName === t.qualifiedEntityName
13946
- ), V = (_) => {
13946
+ ), L = (_) => {
13947
13947
  _ ? h(o.id, _) : c(o.id, { filters: void 0 });
13948
13948
  }, {
13949
13949
  attributes: P,
@@ -14151,7 +14151,7 @@ function vd({ column: t, isSelected: s, onSelect: n, availableFields: l, width:
14151
14151
  editingCondition: M ? (J = w == null ? void 0 : w.conditions) == null ? void 0 : J.find(
14152
14152
  (_) => _.field.name === t.name && _.field.qualifiedEntityName === t.qualifiedEntityName
14153
14153
  ) : void 0,
14154
- onSave: V
14154
+ onSave: L
14155
14155
  }
14156
14156
  )
14157
14157
  ]
@@ -14163,10 +14163,10 @@ function Nd(t) {
14163
14163
  case "number":
14164
14164
  return ca;
14165
14165
  case "date":
14166
- return Va;
14166
+ return La;
14167
14167
  case "string":
14168
14168
  default:
14169
- return La;
14169
+ return Va;
14170
14170
  }
14171
14171
  }
14172
14172
  function yd({
@@ -14209,7 +14209,7 @@ function yd({
14209
14209
  });
14210
14210
  }
14211
14211
  p(!1);
14212
- }, [(O = r == null ? void 0 : r.config) == null ? void 0 : O.groupByColumns, (C = r == null ? void 0 : r.config) == null ? void 0 : C.metricColumns, r.id, d]), V = la(
14212
+ }, [(O = r == null ? void 0 : r.config) == null ? void 0 : O.groupByColumns, (C = r == null ? void 0 : r.config) == null ? void 0 : C.metricColumns, r.id, d]), L = la(
14213
14213
  dt(ra, {
14214
14214
  activationConstraint: {
14215
14215
  distance: 8
@@ -14241,7 +14241,7 @@ function yd({
14241
14241
  /* @__PURE__ */ e("div", { className: "flex-1 overflow-auto", children: /* @__PURE__ */ a(
14242
14242
  Et,
14243
14243
  {
14244
- sensors: V,
14244
+ sensors: L,
14245
14245
  collisionDetection: Dt,
14246
14246
  onDragStart: P,
14247
14247
  onDragEnd: N,
@@ -14308,7 +14308,7 @@ function yd({
14308
14308
  /* @__PURE__ */ a(Jt, { children: [
14309
14309
  /* @__PURE__ */ e(_t, { children: "No columns available." }),
14310
14310
  /* @__PURE__ */ e(Ht, { heading: "Available Columns", children: A.map((v) => {
14311
- const D = Te(v.dataType), R = D === "number" ? ca : D === "date" ? Va : La;
14311
+ const D = Te(v.dataType), R = D === "number" ? ca : D === "date" ? La : Va;
14312
14312
  return /* @__PURE__ */ a(
14313
14313
  Qt,
14314
14314
  {
@@ -14419,8 +14419,8 @@ function wd({
14419
14419
  entityGroups: t,
14420
14420
  isLoading: s = !1
14421
14421
  }) {
14422
- var V, P;
14423
- const n = I((N) => N.card), { updateCardConfig: l, removeGroupByColumn: r, removeMetricColumn: d } = le(), [o, c] = $(!0), [i, u] = $(""), [h, p] = $(/* @__PURE__ */ new Set()), f = ((V = n == null ? void 0 : n.config) == null ? void 0 : V.groupByColumns) || [], A = ((P = n == null ? void 0 : n.config) == null ? void 0 : P.metricColumns) || [], m = (N) => {
14422
+ var L, P;
14423
+ const n = I((N) => N.card), { updateCardConfig: l, removeGroupByColumn: r, removeMetricColumn: d } = le(), [o, c] = $(!0), [i, u] = $(""), [h, p] = $(/* @__PURE__ */ new Set()), f = ((L = n == null ? void 0 : n.config) == null ? void 0 : L.groupByColumns) || [], A = ((P = n == null ? void 0 : n.config) == null ? void 0 : P.metricColumns) || [], m = (N) => {
14424
14424
  const k = new Set(h);
14425
14425
  k.has(N) ? k.delete(N) : k.add(N), p(k);
14426
14426
  }, g = (N) => f.some((k) => k.name === N.name && k.qualifiedEntityName === N.qualifiedEntityName) || A.some((k) => k.name === N.name && k.qualifiedEntityName === N.qualifiedEntityName), b = (N, k) => {
@@ -14464,9 +14464,9 @@ function wd({
14464
14464
  case "number":
14465
14465
  return ca;
14466
14466
  case "date":
14467
- return Va;
14468
- default:
14469
14467
  return La;
14468
+ default:
14469
+ return Va;
14470
14470
  }
14471
14471
  };
14472
14472
  return o ? /* @__PURE__ */ a("div", { className: "flex h-full w-72 flex-col border-l border-border bg-background", children: [
@@ -14666,8 +14666,8 @@ function kd({
14666
14666
  const p = (m) => {
14667
14667
  const g = `[${m.label || m.name}]`, b = h.current;
14668
14668
  if (b) {
14669
- const w = b.selectionStart || 0, M = b.selectionEnd || 0, V = t.slice(0, w) + g + t.slice(M);
14670
- s(V), setTimeout(() => {
14669
+ const w = b.selectionStart || 0, M = b.selectionEnd || 0, L = t.slice(0, w) + g + t.slice(M);
14670
+ s(L), setTimeout(() => {
14671
14671
  b.setSelectionRange(w + g.length, w + g.length), b.focus();
14672
14672
  }, 0);
14673
14673
  } else
@@ -14688,9 +14688,9 @@ function kd({
14688
14688
  case "number":
14689
14689
  return ca;
14690
14690
  case "date":
14691
- return Va;
14692
- default:
14693
14691
  return La;
14692
+ default:
14693
+ return Va;
14694
14694
  }
14695
14695
  };
14696
14696
  return /* @__PURE__ */ a("div", { className: "flex items-center gap-2 border-b border-border bg-muted/30 px-3 py-1.5", children: [
@@ -14863,7 +14863,7 @@ function Td() {
14863
14863
  I((J) => J.activeTabCardId), I(
14864
14864
  (J) => J.actions.getAvailableFields
14865
14865
  );
14866
- const { addCard: g, removeCard: b, updateCard: w, setActiveCard: M, updateFilters: V } = le(), {
14866
+ const { addCard: g, removeCard: b, updateCard: w, setActiveCard: M, updateFilters: L } = le(), {
14867
14867
  columns: P = [],
14868
14868
  isLoading: N,
14869
14869
  error: k
@@ -14882,7 +14882,7 @@ function Td() {
14882
14882
  getFieldsForContainer: T,
14883
14883
  setFieldsForContainer: O
14884
14884
  }), R = (J, _) => {
14885
- _ && V(J, _);
14885
+ _ && L(J, _);
14886
14886
  }, E = (J) => {
14887
14887
  var _;
14888
14888
  w(J, {
@@ -14938,7 +14938,7 @@ function Td() {
14938
14938
  onFiltersClick: () => d(!0),
14939
14939
  filterCount: j,
14940
14940
  activeCard: y,
14941
- dataSourceState: m.dataSource || Ls,
14941
+ dataSourceState: m.dataSource || Vs,
14942
14942
  columns: P,
14943
14943
  columnsLoading: N,
14944
14944
  columnsError: k,
@@ -15000,7 +15000,7 @@ function Ed({ authToken: t, onSave: s, onClose: n }) {
15000
15000
  o,
15001
15001
  h
15002
15002
  ]);
15003
- function V(k) {
15003
+ function L(k) {
15004
15004
  k < 1 ? (g(!1), c("editor", !1), h === "editor" && o(null), M(null)) : (r || (g(!0), M("editor")), u.isOpen || c("editor", !0));
15005
15005
  }
15006
15006
  function P() {
@@ -15018,14 +15018,14 @@ function Ed({ authToken: t, onSave: s, onClose: n }) {
15018
15018
  ),
15019
15019
  direction: "horizontal",
15020
15020
  children: [
15021
- /* @__PURE__ */ e(Ve, { className: "min-w-[510px] rounded-none", children: /* @__PURE__ */ e(Tc, {}) }),
15021
+ /* @__PURE__ */ e(Le, { className: "min-w-[510px] rounded-none", children: /* @__PURE__ */ e(Tc, {}) }),
15022
15022
  /* @__PURE__ */ e(Tt, {}),
15023
15023
  /* @__PURE__ */ e(
15024
- Ve,
15024
+ Le,
15025
15025
  {
15026
15026
  "data-role": "editor-assistant-panel",
15027
15027
  ref: l,
15028
- onResize: V,
15028
+ onResize: L,
15029
15029
  defaultSize: u.isOpen ? 40 : 0,
15030
15030
  className: "flex",
15031
15031
  children: /* @__PURE__ */ e("div", { className: "grow overflow-y-auto", children: /* @__PURE__ */ e(
@@ -15066,14 +15066,14 @@ function Ed({ authToken: t, onSave: s, onClose: n }) {
15066
15066
  ),
15067
15067
  direction: "horizontal",
15068
15068
  children: [
15069
- /* @__PURE__ */ e(Ve, { className: "min-w-[510px] grow rounded-none", children: /* @__PURE__ */ e(Td, {}) }),
15069
+ /* @__PURE__ */ e(Le, { className: "min-w-[510px] grow rounded-none", children: /* @__PURE__ */ e(Td, {}) }),
15070
15070
  /* @__PURE__ */ e(Tt, {}),
15071
15071
  /* @__PURE__ */ e(
15072
- Ve,
15072
+ Le,
15073
15073
  {
15074
15074
  "data-role": "editor-assistant-panel",
15075
15075
  ref: l,
15076
- onResize: V,
15076
+ onResize: L,
15077
15077
  defaultSize: u.isOpen ? 40 : 0,
15078
15078
  className: "flex",
15079
15079
  children: /* @__PURE__ */ e("div", { className: "grow overflow-y-auto", children: /* @__PURE__ */ e(