react-semaphor 0.1.98 → 0.1.100

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 (24) hide show
  1. package/dist/chunks/{dashboard-controls-SfIULlwq.js → dashboard-controls-DKci3my0.js} +1 -1
  2. package/dist/chunks/{dashboard-controls-B7wa2KRe.js → dashboard-controls-DW1JJWP7.js} +28 -28
  3. package/dist/chunks/{dashboard-json-BJtvpPq-.js → dashboard-json-BDAEIUep.js} +1 -1
  4. package/dist/chunks/{dashboard-json-CmSkMcC5.js → dashboard-json-C0CKQW3d.js} +1 -1
  5. package/dist/chunks/{edit-dashboard-visual-Dx85J19h.js → edit-dashboard-visual-BtV3RWgf.js} +1 -1
  6. package/dist/chunks/{edit-dashboard-visual-BFFO7nug.js → edit-dashboard-visual-DQzy1fUR.js} +165 -165
  7. package/dist/chunks/{editor-action-buttons-B_i5UaKQ.js → editor-action-buttons-BJRrkj_n.js} +2 -2
  8. package/dist/chunks/{editor-action-buttons-DljIU0p-.js → editor-action-buttons-CReBF7FV.js} +1 -1
  9. package/dist/chunks/{index-C37s4iSV.js → index-BDtdPUUE.js} +155 -155
  10. package/dist/chunks/{index-DNQRM5V-.js → index-f2IZ7tlh.js} +7590 -7575
  11. package/dist/chunks/{resource-management-panel-h3nqEz3m.js → resource-management-panel-BQVERuRi.js} +1 -1
  12. package/dist/chunks/{resource-management-panel-CMoCDvGf.js → resource-management-panel-DNpbhYNu.js} +51 -51
  13. package/dist/chunks/{schedule-dashboard-CGKeVpPU.js → schedule-dashboard-CfeYnMXp.js} +149 -141
  14. package/dist/chunks/schedule-dashboard-D8ctQToc.js +6 -0
  15. package/dist/chunks/{use-visual-utils-not8LVVZ.js → use-visual-utils-BN4h1-xa.js} +1 -1
  16. package/dist/chunks/{use-visual-utils-B1-TK4CN.js → use-visual-utils-CRA2-3Z2.js} +14 -15
  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/package.json +1 -1
  24. package/dist/chunks/schedule-dashboard-D1TDsh3L.js +0 -6
@@ -1,11 +1,11 @@
1
1
  import { jsxs as a, jsx as e, Fragment as ae } from "react/jsx-runtime";
2
- import { b as xe, ah as at, ab as ne, aa as A, c1 as ua, at as V, c2 as Y, c3 as W, c4 as Z, c5 as X, c6 as B, aP as ve, B as q, aR as qe, aO as ma, c7 as cs, c8 as ds, c9 as us, ca as ms, cb as Ut, i as st, X as Ae, cc as Wa, aW as hs, ao as gt, ap as xt, aq as vt, ar as bt, as as Mt, ag as Ie, bj as je, bk as ke, bl as Te, cd as Ln, c as Q, bm as Ee, ce as Za, u as we, ax as la, cf as nt, aL as _t, aw as Ke, cg as ps, ch as fs, ci as Xa, cj as Al, a$ as gs, ck as en, cl as El, cm as xs, bJ as vs, cn as Je, co as Vn, cp as Dl, cq as Il, cr as Ol, cs as tn, ct as bs, cu as Ns, cv as Ft, cw as ys, cx as Ml, bt as Rl, cy as Pl, cz as Cs, cA as Fl, cB as an, cC as Ll, ad as Vl, aN as zl, cD as jl, cE as Ba, cF as Nt, cG as Re, cH as yt, ac as ha, cI as Bl, cJ as ws, b_ as $a, aA as nn, cK as pa, cL as Jt, cM as $l, aZ as fa, cN as Ct, az as ql, cO as qa, aG as sn, a8 as Ss, cP as ln, cQ as Kl, cR as ks, cS as Ts, cT as ra, bY as Ea, cU as Gl, cV as As, cW as Ul, cX as _l, cY as Jl, cZ as ga, c_ as Hl, c$ as Ql, d0 as zn, d1 as Yl, E as xa, f as rn, d2 as Wl, d3 as on, bv as Zl, I as De, d4 as Xl, d5 as er, bo as va, bp as ba, bq as Ye, br as na, d6 as tr, aj as Ht, d7 as cn, d8 as ar, d9 as nr, da as sr, db as Es, dc as lr, dd as dn, de as un, df as mn, dg as hn, dh as Qt, di as Na, dj as Ds, dk as Ka, dl as pn, dm as fn, dn as Is, dp as Os, dq as Ms, dr as gn, ds as ya, dt as Ca, du as rr, P as lt, h as rt, j as it, bN as xn, au as Fe, aB as Rs, aC as Ps, aE as Fs, bx as Ls, aV as Vs, dv as pt, dw as ir, dx as or, dy as cr, dz as dr, dA as ur, bG as mr, am as zt, dB as hr, dC as zs, dD as vn, dE as Rt, dF as Bt, dG as js, dH as ze, dI as ue, dJ as me, dK as he, bw as Ne, dL as tt, b$ as Bs, dM as pr, dN as fr, dO as gr, dP as xr, dQ as vr, dR as br, a4 as $s, dS as Nr, dT as yr, dU as Cr, k as wa, l as Sa, m as ka, n as Ta, o as Ot, p as Yt, dV as wr, dW as Ve, dX as Xt, dY as jn, dZ as Sr, d_ as Bn, d$ as kr, q as Wt, e0 as Pe, e1 as Tr, e2 as $n, e3 as qn, e4 as Ar, e5 as Er, e6 as Dr, e7 as Ir, e8 as Da, e9 as qs, ea as Kn, bT as Or, eb as Mr, ec as Rr, ed as Pr, ee as Fr, ef as Lr, a0 as Gn, eg as Un, eh as Vr, ei as zr, ej as Ks, ek as jr, el as Gs, em as Br, en as $r, eo as qr, ep as Kr, eq as Gr, er as Ur, es as _r, et as Jr, eu as Hr, ev as Qr, ew as Us, ex as Yr, ey as Wr, ez as Zr, eA as Xr, eB as ei, eC as ti, eD as ai, eE as _s, aD as ni, eF as Ia, eG as Oa, eH as bn, G as si, eI as li, eJ as ri, bI as Js, eK as Be, av as ii, J as ia, eL as oi, eM as ci, eN as Nn, eO as Hs, eP as yn, eQ as di, bn as ui, eR as _n, eS as mi, eT as hi, eU as pi, eV as sa, eW as $t, eX as qt, eY as fi, eZ as gi, e_ as xi, e$ as Qs, f0 as vi, f1 as Ga, f2 as bi, f3 as Ni, f4 as oa, f5 as ft, f6 as Ua, f7 as _a, f8 as ca, f9 as Ys, fa as Kt, fb as Gt, fc as Cn, fd as yi, fe as Ma, ff as Ra, fg as Ci, fh as Pa, fi as wi, fj as Jn, fk as Si, fl as ki, fm as Ti, fn as Ai, fo as Ei, fp as Fa, fq as Di, fr as Ii, fs as Oi, F as Mi } from "./index-DNQRM5V-.js";
2
+ import { b as xe, ah as at, ab as ne, aa as A, c2 as ua, at as V, c3 as Y, c4 as W, c5 as X, c6 as Z, c7 as B, aQ as ve, B as q, aS as qe, aP as ma, c8 as cs, c9 as ds, ca as us, cb as ms, cc as Ut, i as st, X as Ae, cd as Wa, aX as hs, ao as gt, ap as xt, aq as vt, ar as bt, as as Mt, ag as Ie, bk as je, bl as ke, bm as Te, ce as Ln, c as Q, bn as Ee, cf as Xa, u as we, ax as la, cg as nt, aM as _t, aw as Ke, ch as ps, ci as fs, cj as Za, ck as Al, b0 as gs, cl as en, cm as El, cn as xs, bK as vs, co as Je, cp as Vn, cq as Dl, cr as Il, cs as Ol, ct as tn, cu as bs, cv as Ns, cw as Ft, cx as ys, cy as Ml, bu as Rl, cz as Pl, cA as Cs, cB as Fl, cC as an, cD as Ll, ad as Vl, aO as zl, cE as jl, cF as Ba, cG as Nt, cH as Re, cI as yt, ac as ha, cJ as Bl, cK as ws, b$ as $a, aB as nn, cL as pa, cM as Jt, cN as $l, a_ as fa, cO as Ct, aA as ql, cP as qa, aH as sn, a8 as Ss, cQ as ln, cR as Kl, cS as ks, cT as Ts, cU as ra, bZ as Ea, cV as Gl, cW as As, cX as Ul, cY as _l, cZ as Jl, c_ as ga, c$ as Hl, d0 as Ql, d1 as zn, d2 as Yl, E as xa, f as rn, d3 as Wl, d4 as on, bw as Xl, I as De, d5 as Zl, d6 as er, bp as va, bq as ba, br as Ye, bs as na, d7 as tr, aj as Ht, d8 as cn, d9 as ar, da as nr, db as sr, dc as Es, dd as lr, de as dn, df as un, dg as mn, dh as hn, di as Qt, dj as Na, dk as Ds, dl as Ka, dm as pn, dn as fn, dp as Is, dq as Os, dr as Ms, ds as gn, dt as ya, du as Ca, dv as rr, P as lt, h as rt, j as it, bO as xn, au as Fe, aC as Rs, aD as Ps, aF as Fs, by as Ls, aW as Vs, dw as pt, dx as ir, dy as or, dz as cr, dA as dr, dB as ur, bH as mr, az as zt, dC as hr, dD as zs, dE as vn, dF as Rt, dG as Bt, dH as js, dI as ze, dJ as ue, dK as me, dL as he, bx as Ne, dM as tt, c0 as Bs, dN as pr, dO as fr, dP as gr, dQ as xr, dR as vr, dS as br, a4 as $s, dT as Nr, dU as yr, dV as Cr, k as wa, l as Sa, m as ka, n as Ta, o as Ot, p as Yt, dW as wr, dX as Ve, dY as Zt, dZ as jn, d_ as Sr, d$ as Bn, e0 as kr, q as Wt, e1 as Pe, e2 as Tr, e3 as $n, e4 as qn, e5 as Ar, e6 as Er, e7 as Dr, e8 as Ir, e9 as Da, ea as qs, eb as Kn, bU as Or, ec as Mr, ed as Rr, ee as Pr, ef as Fr, eg as Lr, a0 as Gn, eh as Un, ei as Vr, ej as zr, ek as Ks, el as jr, em as Gs, en as Br, eo as $r, ep as qr, eq as Kr, er as Gr, es as Ur, et as _r, eu as Jr, ev as Hr, ew as Qr, ex as Us, ey as Yr, ez as Wr, eA as Xr, eB as Zr, eC as ei, eD as ti, eE as ai, eF as _s, aE as ni, eG as Ia, eH as Oa, eI as bn, G as si, eJ as li, eK as ri, bJ as Js, eL as Be, av as ii, J as ia, eM as oi, eN as ci, eO as Nn, eP as Hs, eQ as yn, eR as di, bo as ui, eS as _n, eT as mi, eU as hi, eV as pi, eW as sa, eX as $t, eY as qt, eZ as fi, e_ as gi, e$ as xi, f0 as Qs, f1 as vi, f2 as Ga, f3 as bi, f4 as Ni, f5 as oa, f6 as ft, f7 as Ua, f8 as _a, f9 as ca, fa as Ys, fb as Kt, fc as Gt, fd as Cn, fe as yi, ff as Ma, fg as Ra, fh as Ci, fi as Pa, fj as wi, fk as Jn, fl as Si, fm as ki, fn as Ti, fo as Ai, fp as Ei, fq as Fa, fr as Di, fs as Ii, ft as Oi, F as Mi } from "./index-f2IZ7tlh.js";
3
3
  import * as Ja from "react";
4
4
  import Ha, { useState as $, useEffect as ge, useRef as We, useCallback as $e, useContext as wn, useMemo as Se, Suspense as Ri } from "react";
5
- import { d as Sn } from "./editor-action-buttons-B_i5UaKQ.js";
5
+ import { d as Sn } from "./editor-action-buttons-BJRrkj_n.js";
6
6
  import { createPortal as Pi } from "react-dom";
7
7
  import { u as kn, a as Fi } from "./use-local-storage-state-CWjTT77L.js";
8
- import { u as Li } from "./use-visual-utils-B1-TK4CN.js";
8
+ import { u as Li } from "./use-visual-utils-CRA2-3Z2.js";
9
9
  /**
10
10
  * @license lucide-react v0.453.0 - ISC
11
11
  *
@@ -129,7 +129,7 @@ const qi = xe("EyeClosed", [
129
129
  * This source code is licensed under the ISC license.
130
130
  * See the LICENSE file in the root directory of this source tree.
131
131
  */
132
- const Zs = xe("FileCode2", [
132
+ const Xs = xe("FileCode2", [
133
133
  ["path", { d: "M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4", key: "1pf5j1" }],
134
134
  ["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
135
135
  ["path", { d: "m5 12-3 3 3 3", key: "oke12k" }],
@@ -266,7 +266,7 @@ const Wi = xe("ListStart", [
266
266
  * This source code is licensed under the ISC license.
267
267
  * See the LICENSE file in the root directory of this source tree.
268
268
  */
269
- const Zi = xe("ListX", [
269
+ const Xi = xe("ListX", [
270
270
  ["path", { d: "M11 12H3", key: "51ecnj" }],
271
271
  ["path", { d: "M16 6H3", key: "1wxfjs" }],
272
272
  ["path", { d: "M16 18H3", key: "12xzn7" }],
@@ -301,7 +301,7 @@ const Va = xe("MoveVertical", [
301
301
  * This source code is licensed under the ISC license.
302
302
  * See the LICENSE file in the root directory of this source tree.
303
303
  */
304
- const Xi = xe("Palette", [
304
+ const Zi = xe("Palette", [
305
305
  ["circle", { cx: "13.5", cy: "6.5", r: ".5", fill: "currentColor", key: "1okk4w" }],
306
306
  ["circle", { cx: "17.5", cy: "10.5", r: ".5", fill: "currentColor", key: "f64h9f" }],
307
307
  ["circle", { cx: "8.5", cy: "7.5", r: ".5", fill: "currentColor", key: "fotxhn" }],
@@ -358,7 +358,7 @@ const Pt = xe("Shapes", [
358
358
  * This source code is licensed under the ISC license.
359
359
  * See the LICENSE file in the root directory of this source tree.
360
360
  */
361
- const Xs = xe("SlidersHorizontal", [
361
+ const Zs = xe("SlidersHorizontal", [
362
362
  ["line", { x1: "21", x2: "14", y1: "4", y2: "4", key: "obuewd" }],
363
363
  ["line", { x1: "10", x2: "3", y1: "4", y2: "4", key: "1q6298" }],
364
364
  ["line", { x1: "21", x2: "12", y1: "12", y2: "12", key: "1iu8h1" }],
@@ -780,8 +780,8 @@ function ro({
780
780
  });
781
781
  },
782
782
  children: [
783
- /* @__PURE__ */ e(W, { children: /* @__PURE__ */ e(Z, { placeholder: "Select base entity..." }) }),
784
- /* @__PURE__ */ e(X, { children: s.map((y) => /* @__PURE__ */ e(
783
+ /* @__PURE__ */ e(W, { children: /* @__PURE__ */ e(X, { placeholder: "Select base entity..." }) }),
784
+ /* @__PURE__ */ e(Z, { children: s.map((y) => /* @__PURE__ */ e(
785
785
  B,
786
786
  {
787
787
  className: "hover:bg-muted",
@@ -902,8 +902,8 @@ function ro({
902
902
  });
903
903
  },
904
904
  children: [
905
- /* @__PURE__ */ e(W, { children: /* @__PURE__ */ e(Z, { placeholder: "Select source..." }) }),
906
- /* @__PURE__ */ e(X, { children: b(y.id).map(
905
+ /* @__PURE__ */ e(W, { children: /* @__PURE__ */ e(X, { placeholder: "Select source..." }) }),
906
+ /* @__PURE__ */ e(Z, { children: b(y.id).map(
907
907
  (k) => /* @__PURE__ */ e(
908
908
  B,
909
909
  {
@@ -938,8 +938,8 @@ function ro({
938
938
  joinType: k
939
939
  }),
940
940
  children: [
941
- /* @__PURE__ */ e(W, { children: /* @__PURE__ */ e(Z, {}) }),
942
- /* @__PURE__ */ a(X, { children: [
941
+ /* @__PURE__ */ e(W, { children: /* @__PURE__ */ e(X, {}) }),
942
+ /* @__PURE__ */ a(Z, { children: [
943
943
  /* @__PURE__ */ e(
944
944
  B,
945
945
  {
@@ -1000,8 +1000,8 @@ function ro({
1000
1000
  },
1001
1001
  disabled: !y.source.name,
1002
1002
  children: [
1003
- /* @__PURE__ */ e(W, { children: /* @__PURE__ */ e(Z, { placeholder: "Select target..." }) }),
1004
- /* @__PURE__ */ e(X, { children: y.source.name ? T(
1003
+ /* @__PURE__ */ e(W, { children: /* @__PURE__ */ e(X, { placeholder: "Select target..." }) }),
1004
+ /* @__PURE__ */ e(Z, { children: y.source.name ? T(
1005
1005
  y.source.name
1006
1006
  ).map((k) => /* @__PURE__ */ e(
1007
1007
  B,
@@ -1079,8 +1079,8 @@ function ro({
1079
1079
  F
1080
1080
  ),
1081
1081
  children: [
1082
- /* @__PURE__ */ e(W, { className: "w-[100px]", children: /* @__PURE__ */ e(Z, {}) }),
1083
- /* @__PURE__ */ a(X, { children: [
1082
+ /* @__PURE__ */ e(W, { className: "w-[100px]", children: /* @__PURE__ */ e(X, {}) }),
1083
+ /* @__PURE__ */ a(Z, { children: [
1084
1084
  /* @__PURE__ */ e(
1085
1085
  B,
1086
1086
  {
@@ -1128,8 +1128,8 @@ function ro({
1128
1128
  J
1129
1129
  ),
1130
1130
  children: [
1131
- /* @__PURE__ */ e(W, { children: /* @__PURE__ */ e(Z, { placeholder: "Source column" }) }),
1132
- /* @__PURE__ */ e(X, { children: I(
1131
+ /* @__PURE__ */ e(W, { children: /* @__PURE__ */ e(X, { placeholder: "Source column" }) }),
1132
+ /* @__PURE__ */ e(Z, { children: I(
1133
1133
  y.source.name
1134
1134
  ).map((J) => /* @__PURE__ */ e(
1135
1135
  B,
@@ -1165,8 +1165,8 @@ function ro({
1165
1165
  J
1166
1166
  ),
1167
1167
  children: [
1168
- /* @__PURE__ */ e(W, { children: /* @__PURE__ */ e(Z, {}) }),
1169
- /* @__PURE__ */ a(X, { children: [
1168
+ /* @__PURE__ */ e(W, { children: /* @__PURE__ */ e(X, {}) }),
1169
+ /* @__PURE__ */ a(Z, { children: [
1170
1170
  /* @__PURE__ */ e(
1171
1171
  B,
1172
1172
  {
@@ -1223,8 +1223,8 @@ function ro({
1223
1223
  J
1224
1224
  ),
1225
1225
  children: [
1226
- /* @__PURE__ */ e(W, { children: /* @__PURE__ */ e(Z, { placeholder: "Target column" }) }),
1227
- /* @__PURE__ */ e(X, { children: I(
1226
+ /* @__PURE__ */ e(W, { children: /* @__PURE__ */ e(X, { placeholder: "Target column" }) }),
1227
+ /* @__PURE__ */ e(Z, { children: I(
1228
1228
  y.target.name
1229
1229
  ).map((J) => /* @__PURE__ */ e(
1230
1230
  B,
@@ -1539,7 +1539,7 @@ ${b.joinType} JOIN ${T.name}
1539
1539
  variant: "secondary",
1540
1540
  className: "h-6 gap-1 bg-blue-50 text-blue-700 dark:bg-blue-950 dark:text-blue-300",
1541
1541
  children: [
1542
- /* @__PURE__ */ e(Za, { className: "h-3 w-3" }),
1542
+ /* @__PURE__ */ e(Xa, { className: "h-3 w-3" }),
1543
1543
  "Auto"
1544
1544
  ]
1545
1545
  }
@@ -1732,7 +1732,7 @@ function uo({
1732
1732
  (i) => i.label === "Description"
1733
1733
  ), d = r.filter((i) => i.label === "Description" ? !1 : !["Connection", "Database", "Schema"].includes(i.label));
1734
1734
  return /* @__PURE__ */ e(Ee, { side: "top", className: "ml-5 max-w-xs", children: /* @__PURE__ */ a("div", { className: "space-y-2", children: [
1735
- /* @__PURE__ */ e("div", { className: "text-sm font-medium", children: s || Xa(t) }),
1735
+ /* @__PURE__ */ e("div", { className: "text-sm font-medium", children: s || Za(t) }),
1736
1736
  c && /* @__PURE__ */ a("div", { className: "border-t border-border pt-2", children: [
1737
1737
  /* @__PURE__ */ e("div", { className: "mb-1 text-xs text-muted-foreground", children: "Description:" }),
1738
1738
  /* @__PURE__ */ e("div", { className: "text-xs leading-relaxed", children: c.value })
@@ -1763,7 +1763,7 @@ function mo({
1763
1763
  {
1764
1764
  className: "border-b border-border pb-1 last:border-b-0",
1765
1765
  children: [
1766
- /* @__PURE__ */ e("div", { className: "text-xs font-medium", children: Xa(s) }),
1766
+ /* @__PURE__ */ e("div", { className: "text-xs font-medium", children: Za(s) }),
1767
1767
  r && /* @__PURE__ */ a("div", { className: "mb-1 mt-1", children: [
1768
1768
  /* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground", children: "Description:" }),
1769
1769
  /* @__PURE__ */ e("div", { className: "text-xs leading-relaxed", children: r.value })
@@ -1860,7 +1860,7 @@ function el({
1860
1860
  variant: "secondary",
1861
1861
  className: "group relative cursor-pointer pr-6 text-xs transition-colors hover:border-red-200 hover:bg-red-50 dark:hover:border-red-800 dark:hover:bg-red-950",
1862
1862
  children: [
1863
- Xa(g),
1863
+ Za(g),
1864
1864
  /* @__PURE__ */ e(
1865
1865
  "button",
1866
1866
  {
@@ -1991,7 +1991,7 @@ function Tn({
1991
1991
  className: "h-8",
1992
1992
  onClick: l,
1993
1993
  children: [
1994
- /* @__PURE__ */ e(Zs, { className: "mr-1.5 h-3.5 w-3.5" }),
1994
+ /* @__PURE__ */ e(Xs, { className: "mr-1.5 h-3.5 w-3.5" }),
1995
1995
  "Open in Editor"
1996
1996
  ]
1997
1997
  }
@@ -2046,7 +2046,7 @@ function tl({
2046
2046
  variant: "secondary",
2047
2047
  size: "sm",
2048
2048
  children: [
2049
- /* @__PURE__ */ e(Zs, { className: "mr-2 h-4 w-4" }),
2049
+ /* @__PURE__ */ e(Xs, { className: "mr-2 h-4 w-4" }),
2050
2050
  "View in SQL Editor"
2051
2051
  ]
2052
2052
  }
@@ -2491,7 +2491,7 @@ ${i}` : ""}
2491
2491
  },
2492
2492
  className: "flex h-8 w-full cursor-text items-center justify-start rounded-md bg-muted/50 px-3 text-left text-sm text-muted-foreground",
2493
2493
  children: [
2494
- /* @__PURE__ */ e(Za, { className: "mr-3 size-4 text-foreground/70" }),
2494
+ /* @__PURE__ */ e(Xa, { className: "mr-3 size-4 text-foreground/70" }),
2495
2495
  "Type your question..."
2496
2496
  ]
2497
2497
  }
@@ -2540,8 +2540,8 @@ ${i}` : ""}
2540
2540
  z(pe), R(pe), r.sql && ((Oe = (oe = r.preferences) == null ? void 0 : oe.tablePrefs) != null && Oe.enableDevModePagination) && S(!0);
2541
2541
  },
2542
2542
  children: [
2543
- /* @__PURE__ */ e(W, { className: "h-8 w-20", children: /* @__PURE__ */ e(Z, {}) }),
2544
- /* @__PURE__ */ a(X, { children: [
2543
+ /* @__PURE__ */ e(W, { className: "h-8 w-20", children: /* @__PURE__ */ e(X, {}) }),
2544
+ /* @__PURE__ */ a(Z, { children: [
2545
2545
  /* @__PURE__ */ e(B, { value: "10", children: "10" }),
2546
2546
  /* @__PURE__ */ e(B, { value: "25", children: "25" }),
2547
2547
  /* @__PURE__ */ e(B, { value: "50", children: "50" }),
@@ -3125,13 +3125,13 @@ function So() {
3125
3125
  }
3126
3126
  }, R = Object.keys(f || {}).length === 0;
3127
3127
  return /* @__PURE__ */ a(gt, { open: t, onOpenChange: s, children: [
3128
- /* @__PURE__ */ e(Zl, { asChild: !0, children: /* @__PURE__ */ e(
3128
+ /* @__PURE__ */ e(Xl, { asChild: !0, children: /* @__PURE__ */ e(
3129
3129
  De,
3130
3130
  {
3131
3131
  tooltip: "Customize Visual",
3132
3132
  onClick: E,
3133
3133
  className: R ? "" : "text-green-600 hover:text-green-700",
3134
- children: /* @__PURE__ */ e(Xl, { className: "h-4 w-4" })
3134
+ children: /* @__PURE__ */ e(Zl, { className: "h-4 w-4" })
3135
3135
  }
3136
3136
  ) }),
3137
3137
  /* @__PURE__ */ a(xt, { className: "flex h-[600px] grow flex-col overflow-auto sm:min-w-[900px] lg:min-w-[1200px]", children: [
@@ -3578,7 +3578,7 @@ function Oo({
3578
3578
  {
3579
3579
  className: "h-8 w-8 p-0",
3580
3580
  tooltip: "Display Options",
3581
- children: /* @__PURE__ */ e(Xs, { className: "h-4 w-4" })
3581
+ children: /* @__PURE__ */ e(Zs, { className: "h-4 w-4" })
3582
3582
  }
3583
3583
  ) }),
3584
3584
  /* @__PURE__ */ a(Fs, { align: "end", className: "w-64", children: [
@@ -4130,11 +4130,11 @@ function He({
4130
4130
  className: Q("w-full focus:ring-0 focus:ring-offset-0", c),
4131
4131
  children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
4132
4132
  d && /* @__PURE__ */ e("span", { children: d }),
4133
- i && /* @__PURE__ */ e(Z, { placeholder: s })
4133
+ i && /* @__PURE__ */ e(X, { placeholder: s })
4134
4134
  ] })
4135
4135
  }
4136
4136
  ),
4137
- /* @__PURE__ */ e(X, { children: /* @__PURE__ */ a(Rt, { children: [
4137
+ /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ a(Rt, { children: [
4138
4138
  /* @__PURE__ */ e(Bt, { children: s }),
4139
4139
  n.map((o) => /* @__PURE__ */ e(B, { value: o.value, children: o.label }, o.value))
4140
4140
  ] }) })
@@ -4516,7 +4516,7 @@ function Lo({ idx: t }) {
4516
4516
  onClick: () => d("center", t),
4517
4517
  className: "h-7 p-1 text-xs font-normal",
4518
4518
  children: /* @__PURE__ */ e(
4519
- Zi,
4519
+ Xi,
4520
4520
  {
4521
4521
  className: Q("h-4 w-4", {
4522
4522
  "rotate-90": r === "y"
@@ -4892,8 +4892,8 @@ function ul() {
4892
4892
  onValueChange: r,
4893
4893
  defaultValue: "none",
4894
4894
  children: [
4895
- /* @__PURE__ */ e(W, { className: "h-8 w-full focus:ring-1 focus:ring-offset-0", children: /* @__PURE__ */ e(Z, { placeholder: "Select position" }) }),
4896
- /* @__PURE__ */ e(X, { children: /* @__PURE__ */ a(Rt, { children: [
4895
+ /* @__PURE__ */ e(W, { className: "h-8 w-full focus:ring-1 focus:ring-offset-0", children: /* @__PURE__ */ e(X, { placeholder: "Select position" }) }),
4896
+ /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ a(Rt, { children: [
4897
4897
  /* @__PURE__ */ e(Bt, { children: "Data Labels" }),
4898
4898
  /* @__PURE__ */ e(B, { value: "none", children: "None" }),
4899
4899
  !["pyramid", "funnel"].includes(t) && /* @__PURE__ */ e(B, { value: "start", children: "Start" }),
@@ -4914,8 +4914,8 @@ function ul() {
4914
4914
  onValueChange: r,
4915
4915
  defaultValue: "none",
4916
4916
  children: [
4917
- /* @__PURE__ */ e(W, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, { placeholder: "Select position" }) }),
4918
- /* @__PURE__ */ e(X, { children: /* @__PURE__ */ a(Rt, { children: [
4917
+ /* @__PURE__ */ e(W, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(X, { placeholder: "Select position" }) }),
4918
+ /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ a(Rt, { children: [
4919
4919
  /* @__PURE__ */ e(B, { className: "text-xs", value: "none", children: "None" }),
4920
4920
  !["pyramid", "funnel"].includes(t) && /* @__PURE__ */ e(B, { className: "text-xs", value: "start", children: "Start" }),
4921
4921
  /* @__PURE__ */ e(B, { className: "text-xs", value: "center", children: "Center" }),
@@ -5131,10 +5131,10 @@ function Uo({
5131
5131
  }
5132
5132
  ),
5133
5133
  /* @__PURE__ */ a("datalist", { id: "presetColors", children: [
5134
- /* @__PURE__ */ e("option", { children: Xt.green[600] }),
5135
- /* @__PURE__ */ e("option", { children: Xt.red[500] }),
5136
- /* @__PURE__ */ e("option", { children: Xt.yellow[400] }),
5137
- /* @__PURE__ */ e("option", { children: Xt.orange[500] })
5134
+ /* @__PURE__ */ e("option", { children: Zt.green[600] }),
5135
+ /* @__PURE__ */ e("option", { children: Zt.red[500] }),
5136
+ /* @__PURE__ */ e("option", { children: Zt.yellow[400] }),
5137
+ /* @__PURE__ */ e("option", { children: Zt.orange[500] })
5138
5138
  ] }),
5139
5139
  /* @__PURE__ */ e(
5140
5140
  q,
@@ -5221,8 +5221,8 @@ function _o() {
5221
5221
  );
5222
5222
  },
5223
5223
  children: [
5224
- /* @__PURE__ */ e(W, { className: "col-span-6 h-8 w-full focus:ring-1 focus:ring-offset-0", children: /* @__PURE__ */ e(Z, {}) }),
5225
- /* @__PURE__ */ e(X, { children: /* @__PURE__ */ a(Rt, { children: [
5224
+ /* @__PURE__ */ e(W, { className: "col-span-6 h-8 w-full focus:ring-1 focus:ring-offset-0", children: /* @__PURE__ */ e(X, {}) }),
5225
+ /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ a(Rt, { children: [
5226
5226
  /* @__PURE__ */ e(Bt, { children: "Format" }),
5227
5227
  /* @__PURE__ */ e(B, { value: "none", children: "Auto" }, "none"),
5228
5228
  jn.map((N) => /* @__PURE__ */ e(B, { value: N.locale, children: N.locale }, N.locale))
@@ -5247,8 +5247,8 @@ function _o() {
5247
5247
  );
5248
5248
  },
5249
5249
  children: [
5250
- /* @__PURE__ */ e(W, { className: "col-span-6 h-8 w-full focus:ring-1 focus:ring-offset-0", children: /* @__PURE__ */ e(Z, {}) }),
5251
- /* @__PURE__ */ e(X, { children: /* @__PURE__ */ a(Rt, { children: [
5250
+ /* @__PURE__ */ e(W, { className: "col-span-6 h-8 w-full focus:ring-1 focus:ring-offset-0", children: /* @__PURE__ */ e(X, {}) }),
5251
+ /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ a(Rt, { children: [
5252
5252
  /* @__PURE__ */ e(Bt, { children: "Currency" }),
5253
5253
  /* @__PURE__ */ e(B, { value: "none", children: "None" }, "none"),
5254
5254
  m.map((N) => /* @__PURE__ */ e(B, { value: N, children: N }, N))
@@ -5275,8 +5275,8 @@ function _o() {
5275
5275
  );
5276
5276
  },
5277
5277
  children: [
5278
- /* @__PURE__ */ e(W, { className: "col-span-3 h-8 w-full focus:ring-1 focus:ring-offset-0", children: /* @__PURE__ */ e(Z, {}) }),
5279
- /* @__PURE__ */ e(X, { children: ["0", "1", "2", "3", "4"].map((N) => /* @__PURE__ */ e(B, { value: N, children: N }, N)) })
5278
+ /* @__PURE__ */ e(W, { className: "col-span-3 h-8 w-full focus:ring-1 focus:ring-offset-0", children: /* @__PURE__ */ e(X, {}) }),
5279
+ /* @__PURE__ */ e(Z, { children: ["0", "1", "2", "3", "4"].map((N) => /* @__PURE__ */ e(B, { value: N, children: N }, N)) })
5280
5280
  ]
5281
5281
  }
5282
5282
  )
@@ -5671,7 +5671,7 @@ function Wo() {
5671
5671
  /* @__PURE__ */ e(wt, {})
5672
5672
  ] });
5673
5673
  }
5674
- function Zo() {
5674
+ function Xo() {
5675
5675
  var l;
5676
5676
  const t = A((r) => r.card.preferences), { setCardPreferences: s } = A((r) => r.actions);
5677
5677
  function n(r) {
@@ -5736,7 +5736,7 @@ function ea({
5736
5736
  ] }),
5737
5737
  t === "text" && /* @__PURE__ */ a(ue, { value: "item-2", children: [
5738
5738
  /* @__PURE__ */ e(me, { children: "Settings" }),
5739
- /* @__PURE__ */ e(he, { className: "space-y-4 px-2 py-4", children: /* @__PURE__ */ e(Zo, {}) })
5739
+ /* @__PURE__ */ e(he, { className: "space-y-4 px-2 py-4", children: /* @__PURE__ */ e(Xo, {}) })
5740
5740
  ] }),
5741
5741
  !["range", "text"].includes(t) && /* @__PURE__ */ a(ue, { value: "item-3", children: [
5742
5742
  /* @__PURE__ */ e(me, { children: "Click Filters" }),
@@ -5747,7 +5747,7 @@ function ea({
5747
5747
  ] })
5748
5748
  ] }) });
5749
5749
  }
5750
- function Xo() {
5750
+ function Zo() {
5751
5751
  const t = A(
5752
5752
  (l) => {
5753
5753
  var r, c;
@@ -6193,7 +6193,7 @@ function hl() {
6193
6193
  }, E = Object.keys(((w = s == null ? void 0 : s.colorConfig) == null ? void 0 : w.segments) || {}).length > 0;
6194
6194
  return /* @__PURE__ */ a(ue, { value: "colors", className: "border-b-0", children: [
6195
6195
  /* @__PURE__ */ e(me, { className: "flex w-full items-center gap-2 py-2 text-sm font-medium hover:no-underline", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
6196
- /* @__PURE__ */ e(Xi, { className: "h-4 w-4 text-muted-foreground" }),
6196
+ /* @__PURE__ */ e(Zi, { className: "h-4 w-4 text-muted-foreground" }),
6197
6197
  /* @__PURE__ */ e("span", { children: "Colors" })
6198
6198
  ] }) }),
6199
6199
  /* @__PURE__ */ e(he, { className: "", children: /* @__PURE__ */ a("div", { className: "space-y-3", children: [
@@ -6483,8 +6483,8 @@ function En({
6483
6483
  value: r,
6484
6484
  onValueChange: (i) => c("type", i),
6485
6485
  children: [
6486
- /* @__PURE__ */ e(W, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
6487
- /* @__PURE__ */ e(X, { children: sc.map((i) => /* @__PURE__ */ e(B, { value: i, className: "text-xs", children: i === "auto" ? "Auto (Default)" : ic(i) }, i)) })
6486
+ /* @__PURE__ */ e(W, { className: "h-8 text-xs", children: /* @__PURE__ */ e(X, {}) }),
6487
+ /* @__PURE__ */ e(Z, { children: sc.map((i) => /* @__PURE__ */ e(B, { value: i, className: "text-xs", children: i === "auto" ? "Auto (Default)" : ic(i) }, i)) })
6488
6488
  ]
6489
6489
  }
6490
6490
  )
@@ -6516,8 +6516,8 @@ function En({
6516
6516
  value: t.currency || "USD",
6517
6517
  onValueChange: (i) => c("currency", i),
6518
6518
  children: [
6519
- /* @__PURE__ */ e(W, { className: "h-8 flex-1 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
6520
- /* @__PURE__ */ e(X, { children: lc.map((i) => /* @__PURE__ */ e(
6519
+ /* @__PURE__ */ e(W, { className: "h-8 flex-1 text-xs", children: /* @__PURE__ */ e(X, {}) }),
6520
+ /* @__PURE__ */ e(Z, { children: lc.map((i) => /* @__PURE__ */ e(
6521
6521
  B,
6522
6522
  {
6523
6523
  value: i.value,
@@ -6548,8 +6548,8 @@ function En({
6548
6548
  value: t.locale || "en-US",
6549
6549
  onValueChange: (i) => c("locale", i),
6550
6550
  children: [
6551
- /* @__PURE__ */ e(W, { className: "h-8 flex-1 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
6552
- /* @__PURE__ */ e(X, { children: rc.map((i) => /* @__PURE__ */ e(
6551
+ /* @__PURE__ */ e(W, { className: "h-8 flex-1 text-xs", children: /* @__PURE__ */ e(X, {}) }),
6552
+ /* @__PURE__ */ e(Z, { children: rc.map((i) => /* @__PURE__ */ e(
6553
6553
  B,
6554
6554
  {
6555
6555
  value: i.value,
@@ -6628,7 +6628,7 @@ function En({
6628
6628
  ] })
6629
6629
  ] });
6630
6630
  }
6631
- function Zn({ axis: t, label: s, type: n, config: l, onChange: r }) {
6631
+ function Xn({ axis: t, label: s, type: n, config: l, onChange: r }) {
6632
6632
  var f, g, h, v, N, b, T, E, z, R, D, S;
6633
6633
  const c = (p, x) => {
6634
6634
  r({
@@ -6704,8 +6704,8 @@ function Zn({ axis: t, label: s, type: n, config: l, onChange: r }) {
6704
6704
  value: (l == null ? void 0 : l.position) || "auto",
6705
6705
  onValueChange: (p) => c("position", p),
6706
6706
  children: [
6707
- /* @__PURE__ */ e(W, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
6708
- /* @__PURE__ */ e(X, { children: m.map((p) => /* @__PURE__ */ e(B, { value: p, className: "text-xs", children: p === "auto" ? "Auto (Default)" : Ve(p) }, p)) })
6707
+ /* @__PURE__ */ e(W, { className: "h-8 text-xs", children: /* @__PURE__ */ e(X, {}) }),
6708
+ /* @__PURE__ */ e(Z, { children: m.map((p) => /* @__PURE__ */ e(B, { value: p, className: "text-xs", children: p === "auto" ? "Auto (Default)" : Ve(p) }, p)) })
6709
6709
  ]
6710
6710
  }
6711
6711
  )
@@ -6732,8 +6732,8 @@ function Zn({ axis: t, label: s, type: n, config: l, onChange: r }) {
6732
6732
  p === "auto" ? "auto" : Number(p)
6733
6733
  ),
6734
6734
  children: [
6735
- /* @__PURE__ */ e(W, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
6736
- /* @__PURE__ */ e(X, { children: u.map((p) => /* @__PURE__ */ e(B, { value: p, className: "text-xs", children: p === "auto" ? "Auto (Default)" : `${p}°` }, p)) })
6735
+ /* @__PURE__ */ e(W, { className: "h-8 text-xs", children: /* @__PURE__ */ e(X, {}) }),
6736
+ /* @__PURE__ */ e(Z, { children: u.map((p) => /* @__PURE__ */ e(B, { value: p, className: "text-xs", children: p === "auto" ? "Auto (Default)" : `${p}°` }, p)) })
6737
6737
  ]
6738
6738
  }
6739
6739
  )
@@ -6822,12 +6822,12 @@ function pl() {
6822
6822
  };
6823
6823
  return /* @__PURE__ */ a(ue, { value: "axes", className: "border-b-0", children: [
6824
6824
  /* @__PURE__ */ e(me, { className: "flex w-full items-center gap-2 py-2 text-sm font-medium hover:no-underline", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
6825
- /* @__PURE__ */ e(Xs, { className: "h-4 w-4 text-muted-foreground" }),
6825
+ /* @__PURE__ */ e(Zs, { className: "h-4 w-4 text-muted-foreground" }),
6826
6826
  /* @__PURE__ */ e("span", { children: "Axes" })
6827
6827
  ] }) }),
6828
6828
  /* @__PURE__ */ e(he, { className: "pt-2", children: /* @__PURE__ */ a(ze, { type: "single", collapsible: !0, className: "w-full", children: [
6829
6829
  r.hasXAxis && /* @__PURE__ */ e(
6830
- Zn,
6830
+ Xn,
6831
6831
  {
6832
6832
  axis: "x",
6833
6833
  label: "X-Axis",
@@ -6840,7 +6840,7 @@ function pl() {
6840
6840
  }
6841
6841
  ),
6842
6842
  r.hasYAxis && /* @__PURE__ */ e(
6843
- Zn,
6843
+ Xn,
6844
6844
  {
6845
6845
  axis: "y",
6846
6846
  label: "Y-Axis",
@@ -6896,8 +6896,8 @@ function fl() {
6896
6896
  value: (s == null ? void 0 : s.position) || c,
6897
6897
  onValueChange: (u) => i("position", u),
6898
6898
  children: [
6899
- /* @__PURE__ */ e(W, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
6900
- /* @__PURE__ */ e(X, { children: o.map((u) => /* @__PURE__ */ e(B, { value: u, className: "text-xs", children: Ve(u) }, u)) })
6899
+ /* @__PURE__ */ e(W, { className: "h-8 text-xs", children: /* @__PURE__ */ e(X, {}) }),
6900
+ /* @__PURE__ */ e(Z, { children: o.map((u) => /* @__PURE__ */ e(B, { value: u, className: "text-xs", children: Ve(u) }, u)) })
6901
6901
  ]
6902
6902
  }
6903
6903
  )
@@ -6910,8 +6910,8 @@ function fl() {
6910
6910
  value: (s == null ? void 0 : s.align) || d,
6911
6911
  onValueChange: (u) => i("align", u),
6912
6912
  children: [
6913
- /* @__PURE__ */ e(W, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
6914
- /* @__PURE__ */ e(X, { children: m.map((u) => /* @__PURE__ */ e(B, { value: u, className: "text-xs", children: Ve(u) }, u)) })
6913
+ /* @__PURE__ */ e(W, { className: "h-8 text-xs", children: /* @__PURE__ */ e(X, {}) }),
6914
+ /* @__PURE__ */ e(Z, { children: m.map((u) => /* @__PURE__ */ e(B, { value: u, className: "text-xs", children: Ve(u) }, u)) })
6915
6915
  ]
6916
6916
  }
6917
6917
  )
@@ -7040,8 +7040,8 @@ function gl() {
7040
7040
  value: (h == null ? void 0 : h.position) || "auto",
7041
7041
  onValueChange: (j) => b("position", j),
7042
7042
  children: [
7043
- /* @__PURE__ */ e(W, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
7044
- /* @__PURE__ */ e(X, { children: p.map((j) => /* @__PURE__ */ e(B, { value: j, className: "text-xs", children: j === "auto" ? x() : j === "custom" ? "Custom (Advanced)" : Ve(j) }, j)) })
7043
+ /* @__PURE__ */ e(W, { className: "h-8 text-xs", children: /* @__PURE__ */ e(X, {}) }),
7044
+ /* @__PURE__ */ e(Z, { children: p.map((j) => /* @__PURE__ */ e(B, { value: j, className: "text-xs", children: j === "auto" ? x() : j === "custom" ? "Custom (Advanced)" : Ve(j) }, j)) })
7045
7045
  ]
7046
7046
  }
7047
7047
  )
@@ -7065,8 +7065,8 @@ function gl() {
7065
7065
  value: (h == null ? void 0 : h.anchor) || "center",
7066
7066
  onValueChange: (j) => b("anchor", j),
7067
7067
  children: [
7068
- /* @__PURE__ */ e(W, { className: "h-8 text-xs flex-1", children: /* @__PURE__ */ e(Z, {}) }),
7069
- /* @__PURE__ */ e(X, { children: C.map((j) => /* @__PURE__ */ e(B, { value: j, className: "text-xs", children: Ve(j) }, j)) })
7068
+ /* @__PURE__ */ e(W, { className: "h-8 text-xs flex-1", children: /* @__PURE__ */ e(X, {}) }),
7069
+ /* @__PURE__ */ e(Z, { children: C.map((j) => /* @__PURE__ */ e(B, { value: j, className: "text-xs", children: Ve(j) }, j)) })
7070
7070
  ]
7071
7071
  }
7072
7072
  )
@@ -7079,8 +7079,8 @@ function gl() {
7079
7079
  value: String((h == null ? void 0 : h.align) || "center"),
7080
7080
  onValueChange: (j) => b("align", j),
7081
7081
  children: [
7082
- /* @__PURE__ */ e(W, { className: "h-8 text-xs flex-1", children: /* @__PURE__ */ e(Z, {}) }),
7083
- /* @__PURE__ */ e(X, { children: I.map((j) => /* @__PURE__ */ e(B, { value: j, className: "text-xs", children: Ve(j) }, j)) })
7082
+ /* @__PURE__ */ e(W, { className: "h-8 text-xs flex-1", children: /* @__PURE__ */ e(X, {}) }),
7083
+ /* @__PURE__ */ e(Z, { children: I.map((j) => /* @__PURE__ */ e(B, { value: j, className: "text-xs", children: Ve(j) }, j)) })
7084
7084
  ]
7085
7085
  }
7086
7086
  )
@@ -7094,8 +7094,8 @@ function gl() {
7094
7094
  value: (h == null ? void 0 : h.format) || (m ? "auto" : "none"),
7095
7095
  onValueChange: (j) => b("format", j),
7096
7096
  children: [
7097
- /* @__PURE__ */ e(W, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
7098
- /* @__PURE__ */ e(X, { children: y.map((j) => /* @__PURE__ */ e(B, { value: j, className: "text-xs", children: j === "auto" && m ? "Auto (Use Axis)" : j === "none" ? "None (Raw Value)" : Ve(j) }, j)) })
7097
+ /* @__PURE__ */ e(W, { className: "h-8 text-xs", children: /* @__PURE__ */ e(X, {}) }),
7098
+ /* @__PURE__ */ e(Z, { children: y.map((j) => /* @__PURE__ */ e(B, { value: j, className: "text-xs", children: j === "auto" && m ? "Auto (Use Axis)" : j === "none" ? "None (Raw Value)" : Ve(j) }, j)) })
7099
7099
  ]
7100
7100
  }
7101
7101
  )
@@ -7126,8 +7126,8 @@ function gl() {
7126
7126
  value: ((U = h == null ? void 0 : h.formatOptions) == null ? void 0 : U.currency) || "USD",
7127
7127
  onValueChange: (j) => E("currency", j),
7128
7128
  children: [
7129
- /* @__PURE__ */ e(W, { className: "h-8 text-xs flex-1", children: /* @__PURE__ */ e(Z, {}) }),
7130
- /* @__PURE__ */ e(X, { children: w.map((j) => /* @__PURE__ */ e(B, { value: j.value, className: "text-xs", children: j.label }, j.value)) })
7129
+ /* @__PURE__ */ e(W, { className: "h-8 text-xs flex-1", children: /* @__PURE__ */ e(X, {}) }),
7130
+ /* @__PURE__ */ e(Z, { children: w.map((j) => /* @__PURE__ */ e(B, { value: j.value, className: "text-xs", children: j.label }, j.value)) })
7131
7131
  ]
7132
7132
  }
7133
7133
  )
@@ -7152,8 +7152,8 @@ function gl() {
7152
7152
  value: ((H = h == null ? void 0 : h.formatOptions) == null ? void 0 : H.locale) || "en-US",
7153
7153
  onValueChange: (j) => E("locale", j),
7154
7154
  children: [
7155
- /* @__PURE__ */ e(W, { className: "h-8 text-xs flex-1", children: /* @__PURE__ */ e(Z, {}) }),
7156
- /* @__PURE__ */ e(X, { children: O.map((j) => /* @__PURE__ */ e(B, { value: j.value, className: "text-xs", children: j.label }, j.value)) })
7155
+ /* @__PURE__ */ e(W, { className: "h-8 text-xs flex-1", children: /* @__PURE__ */ e(X, {}) }),
7156
+ /* @__PURE__ */ e(Z, { children: O.map((j) => /* @__PURE__ */ e(B, { value: j.value, className: "text-xs", children: j.label }, j.value)) })
7157
7157
  ]
7158
7158
  }
7159
7159
  )
@@ -7182,8 +7182,8 @@ function gl() {
7182
7182
  value: ((se = h == null ? void 0 : h.font) == null ? void 0 : se.weight) || "normal",
7183
7183
  onValueChange: (j) => T("weight", j),
7184
7184
  children: [
7185
- /* @__PURE__ */ e(W, { className: "h-8 text-xs flex-1", children: /* @__PURE__ */ e(Z, {}) }),
7186
- /* @__PURE__ */ a(X, { children: [
7185
+ /* @__PURE__ */ e(W, { className: "h-8 text-xs flex-1", children: /* @__PURE__ */ e(X, {}) }),
7186
+ /* @__PURE__ */ a(Z, { children: [
7187
7187
  /* @__PURE__ */ e(B, { value: "normal", className: "text-xs", children: "Normal" }),
7188
7188
  /* @__PURE__ */ e(B, { value: "bold", className: "text-xs", children: "Bold" })
7189
7189
  ] })
@@ -7201,8 +7201,8 @@ function gl() {
7201
7201
  j === "auto" && b("color", "auto");
7202
7202
  },
7203
7203
  children: [
7204
- /* @__PURE__ */ e(W, { className: "h-8 text-xs flex-1", children: /* @__PURE__ */ e(Z, {}) }),
7205
- /* @__PURE__ */ a(X, { children: [
7204
+ /* @__PURE__ */ e(W, { className: "h-8 text-xs flex-1", children: /* @__PURE__ */ e(X, {}) }),
7205
+ /* @__PURE__ */ a(Z, { children: [
7206
7206
  /* @__PURE__ */ e(B, { value: "auto", className: "text-xs", children: "Auto (Smart Contrast)" }),
7207
7207
  /* @__PURE__ */ e(B, { value: "custom", disabled: !0, className: "text-xs", children: "Custom (Coming Soon)" })
7208
7208
  ] })
@@ -7264,7 +7264,7 @@ function ta({
7264
7264
  }
7265
7265
  );
7266
7266
  }
7267
- const Xn = ["poor", "satisfactory", "good"];
7267
+ const Zn = ["poor", "satisfactory", "good"];
7268
7268
  function es(t) {
7269
7269
  if (!t) return;
7270
7270
  const s = { ...t };
@@ -7320,7 +7320,7 @@ function xl() {
7320
7320
  ...c.rangeKeys || {}
7321
7321
  };
7322
7322
  let L = !1;
7323
- if (Xn.forEach((se, j) => {
7323
+ if (Zn.forEach((se, j) => {
7324
7324
  !U[se] && J[j] && (U[se] = J[j].value, L = !0);
7325
7325
  }), L && (k.rangeKeys = U, M = !0, c.showRanges === void 0 && (k.showRanges = !0)), M) {
7326
7326
  const se = es({
@@ -7424,8 +7424,8 @@ function xl() {
7424
7424
  value: x,
7425
7425
  onValueChange: (k) => C(k),
7426
7426
  children: [
7427
- /* @__PURE__ */ e(W, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
7428
- /* @__PURE__ */ a(X, { children: [
7427
+ /* @__PURE__ */ e(W, { className: "h-8 text-xs", children: /* @__PURE__ */ e(X, {}) }),
7428
+ /* @__PURE__ */ a(Z, { children: [
7429
7429
  /* @__PURE__ */ e(B, { value: "horizontal", className: "text-xs", children: "Horizontal" }),
7430
7430
  /* @__PURE__ */ e(B, { value: "vertical", className: "text-xs", children: "Vertical" })
7431
7431
  ] })
@@ -7443,8 +7443,8 @@ function xl() {
7443
7443
  targetMetricKey: k === "__none" ? void 0 : k
7444
7444
  }),
7445
7445
  children: [
7446
- /* @__PURE__ */ e(W, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, { placeholder: "Select metric" }) }),
7447
- /* @__PURE__ */ a(X, { children: [
7446
+ /* @__PURE__ */ e(W, { className: "h-8 text-xs", children: /* @__PURE__ */ e(X, { placeholder: "Select metric" }) }),
7447
+ /* @__PURE__ */ a(Z, { children: [
7448
7448
  /* @__PURE__ */ e(B, { value: "__none", className: "text-xs", children: "None" }),
7449
7449
  b.map((k) => /* @__PURE__ */ e(
7450
7450
  B,
@@ -7471,8 +7471,8 @@ function xl() {
7471
7471
  disableAutoComparative: k === "__none"
7472
7472
  }),
7473
7473
  children: [
7474
- /* @__PURE__ */ e(W, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, { placeholder: "Select metric" }) }),
7475
- /* @__PURE__ */ e(X, { children: I.map((k) => /* @__PURE__ */ e(
7474
+ /* @__PURE__ */ e(W, { className: "h-8 text-xs", children: /* @__PURE__ */ e(X, { placeholder: "Select metric" }) }),
7475
+ /* @__PURE__ */ e(Z, { children: I.map((k) => /* @__PURE__ */ e(
7476
7476
  B,
7477
7477
  {
7478
7478
  value: k.value,
@@ -7550,7 +7550,7 @@ function xl() {
7550
7550
  /* @__PURE__ */ e("span", { children: "Use % of value" })
7551
7551
  ] })
7552
7552
  ] }),
7553
- o && /* @__PURE__ */ e("div", { className: "space-y-3", children: Xn.map((k) => {
7553
+ o && /* @__PURE__ */ e("div", { className: "space-y-3", children: Zn.map((k) => {
7554
7554
  var M, F, G, J, U;
7555
7555
  return /* @__PURE__ */ a(
7556
7556
  "div",
@@ -7585,8 +7585,8 @@ function xl() {
7585
7585
  L === "__none" ? E(k, "") : E(k, L);
7586
7586
  },
7587
7587
  children: [
7588
- /* @__PURE__ */ e(W, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, { placeholder: "Select column" }) }),
7589
- /* @__PURE__ */ e(X, { children: y.map((L) => /* @__PURE__ */ e(
7588
+ /* @__PURE__ */ e(W, { className: "h-8 text-xs", children: /* @__PURE__ */ e(X, { placeholder: "Select column" }) }),
7589
+ /* @__PURE__ */ e(Z, { children: y.map((L) => /* @__PURE__ */ e(
7590
7590
  B,
7591
7591
  {
7592
7592
  value: L.value,
@@ -7843,8 +7843,8 @@ function vl() {
7843
7843
  g ?? "bottom"
7844
7844
  ),
7845
7845
  children: [
7846
- /* @__PURE__ */ e(W, { className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
7847
- /* @__PURE__ */ e(X, { children: ["top", "bottom", "left", "right"].map((g) => /* @__PURE__ */ e(B, { value: g, className: "text-xs", children: g[0].toUpperCase() + g.slice(1) }, g)) })
7846
+ /* @__PURE__ */ e(W, { className: "h-8 text-xs", children: /* @__PURE__ */ e(X, {}) }),
7847
+ /* @__PURE__ */ e(Z, { children: ["top", "bottom", "left", "right"].map((g) => /* @__PURE__ */ e(B, { value: g, className: "text-xs", children: g[0].toUpperCase() + g.slice(1) }, g)) })
7848
7848
  ]
7849
7849
  }
7850
7850
  )
@@ -7931,7 +7931,7 @@ function pc() {
7931
7931
  switch (n) {
7932
7932
  case "stackedBar":
7933
7933
  case "stackedLine":
7934
- return r(/* @__PURE__ */ e(Xo, {}));
7934
+ return r(/* @__PURE__ */ e(Zo, {}));
7935
7935
  case "tornado":
7936
7936
  case "pyramid":
7937
7937
  return r(
@@ -8123,7 +8123,7 @@ function gc(t) {
8123
8123
  }), y(!1));
8124
8124
  }, [T, b, H, y]);
8125
8125
  async function ce({ toolCall: K }) {
8126
- var fe, Le, Ge, kt, Ue, ot, _e, ct, Tt, Xe, At, Et, Dt, It, dt, ut;
8126
+ var fe, Le, Ge, kt, Ue, ot, _e, ct, Tt, Ze, At, Et, Dt, It, dt, ut;
8127
8127
  if (["createChartFromSql", "createForecast"].includes(K.toolName)) {
8128
8128
  const ee = ((fe = K.input) == null ? void 0 : fe.sql) ?? ((Le = K.args) == null ? void 0 : Le.sql), ye = ((Ge = K.input) == null ? void 0 : Ge.python) ?? ((kt = K.args) == null ? void 0 : kt.python), Ce = ((Ue = K.input) == null ? void 0 : Ue.chartType) ?? ((ot = K.args) == null ? void 0 : ot.chartType);
8129
8129
  h(Ce), f(ee), u(ye), g(!0), se({
@@ -8157,7 +8157,7 @@ function gc(t) {
8157
8157
  });
8158
8158
  } else if (K.toolName === "generateQueryConfig") {
8159
8159
  n("Generating query config...");
8160
- const ee = ((_e = K.input) == null ? void 0 : _e.chartType) ?? ((ct = K.args) == null ? void 0 : ct.chartType), ye = ((Tt = K.input) == null ? void 0 : Tt.queryConfig) ?? ((Xe = K.args) == null ? void 0 : Xe.queryConfig);
8160
+ const ee = ((_e = K.input) == null ? void 0 : _e.chartType) ?? ((ct = K.args) == null ? void 0 : ct.chartType), ye = ((Tt = K.input) == null ? void 0 : Tt.queryConfig) ?? ((Ze = K.args) == null ? void 0 : Ze.queryConfig);
8161
8161
  ((At = K.input) == null ? void 0 : At.cardConfig) ?? ((Et = K.args) == null || Et.cardConfig), h(ee), O(ye), f(void 0), u(void 0);
8162
8162
  const Ce = await C();
8163
8163
  if ((Dt = Ce == null ? void 0 : Ce.data) != null && Dt.error) {
@@ -8255,7 +8255,7 @@ function gc(t) {
8255
8255
  pe(Le);
8256
8256
  }
8257
8257
  }
8258
- const Oe = !["ready", "error"].includes(te), Ze = Fr(L);
8258
+ const Oe = !["ready", "error"].includes(te), Xe = Fr(L);
8259
8259
  return {
8260
8260
  messages: G,
8261
8261
  setMessages: J,
@@ -8272,7 +8272,7 @@ function gc(t) {
8272
8272
  toolStatus: s,
8273
8273
  llmUsage: l,
8274
8274
  onFinish: t,
8275
- errorMessage: Ze,
8275
+ errorMessage: Xe,
8276
8276
  clearError: re
8277
8277
  };
8278
8278
  }
@@ -8334,7 +8334,7 @@ function as({
8334
8334
  // Load 5 more each time
8335
8335
  }), {
8336
8336
  scrollRef: Oe,
8337
- isAtBottom: Ze,
8337
+ isAtBottom: Xe,
8338
8338
  hasNewMessages: St,
8339
8339
  newMessageCount: K,
8340
8340
  scrollToBottom: fe,
@@ -8396,13 +8396,13 @@ function as({
8396
8396
  function Tt(ee, ye) {
8397
8397
  ye === "sql" ? (S(ee), p(!0)) : ye === "python" && (y(ee), p(!0));
8398
8398
  }
8399
- function Xe() {
8399
+ function Ze() {
8400
8400
  N.selectedEntities.length === 0 && b({
8401
8401
  selectedEntities: (R == null ? void 0 : R.selectedEntities) || []
8402
8402
  });
8403
8403
  }
8404
8404
  function At(ee) {
8405
- Xe();
8405
+ Ze();
8406
8406
  const ye = {
8407
8407
  role: "user",
8408
8408
  parts: [
@@ -8412,7 +8412,7 @@ function as({
8412
8412
  M(ye);
8413
8413
  }
8414
8414
  function Et(ee) {
8415
- Xe(), M({
8415
+ Ze(), M({
8416
8416
  role: "user",
8417
8417
  parts: [{ type: "text", text: ee }]
8418
8418
  });
@@ -8571,11 +8571,11 @@ function as({
8571
8571
  disableQuickReplies: F
8572
8572
  }
8573
8573
  ),
8574
- !kt && /* @__PURE__ */ e(Zr, { status: J, errorMessage: L })
8574
+ !kt && /* @__PURE__ */ e(Xr, { status: J, errorMessage: L })
8575
8575
  ] })
8576
8576
  }
8577
8577
  ),
8578
- x && !Ze && /* @__PURE__ */ e("div", { className: "absolute bottom-24 right-8 z-10", children: /* @__PURE__ */ a(
8578
+ x && !Xe && /* @__PURE__ */ e("div", { className: "absolute bottom-24 right-8 z-10", children: /* @__PURE__ */ a(
8579
8579
  q,
8580
8580
  {
8581
8581
  onClick: () => {
@@ -8594,7 +8594,7 @@ function as({
8594
8594
  /* @__PURE__ */ a("div", { className: "space-y-3", children: [
8595
8595
  /* @__PURE__ */ a("div", { children: [
8596
8596
  dt && !O && /* @__PURE__ */ e(
8597
- Xr,
8597
+ Zr,
8598
8598
  {
8599
8599
  onClick: At,
8600
8600
  placeholders: xc
@@ -8618,7 +8618,7 @@ function as({
8618
8618
  input: te,
8619
8619
  handleInputChange: j,
8620
8620
  handleSubmit: (ee) => {
8621
- Xe(), re(ee), fe({ force: !0 });
8621
+ Ze(), re(ee), fe({ force: !0 });
8622
8622
  },
8623
8623
  isLoading: F,
8624
8624
  status: J,
@@ -9785,8 +9785,8 @@ function bl({
9785
9785
  m(w), w === "custom" ? (f(null), h(null)) : o === "custom" && T("");
9786
9786
  },
9787
9787
  children: [
9788
- /* @__PURE__ */ e(W, { id: "operation", children: /* @__PURE__ */ e(Z, {}) }),
9789
- /* @__PURE__ */ e(X, { children: /* @__PURE__ */ a(Rt, { children: [
9788
+ /* @__PURE__ */ e(W, { id: "operation", children: /* @__PURE__ */ e(X, {}) }),
9789
+ /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ a(Rt, { children: [
9790
9790
  /* @__PURE__ */ e(Bt, { children: "CALCULATED" }),
9791
9791
  da.map((w) => /* @__PURE__ */ e(B, { value: w.id, children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
9792
9792
  /* @__PURE__ */ e("span", { className: "font-mono text-sm", children: w.symbol }),
@@ -9834,10 +9834,10 @@ function bl({
9834
9834
  {
9835
9835
  id: "inputA",
9836
9836
  className: R.inputA ? "border-red-500" : "",
9837
- children: /* @__PURE__ */ e(Z, { placeholder: "+ Choose metric" })
9837
+ children: /* @__PURE__ */ e(X, { placeholder: "+ Choose metric" })
9838
9838
  }
9839
9839
  ),
9840
- /* @__PURE__ */ e(X, { children: n.filter(
9840
+ /* @__PURE__ */ e(Z, { children: n.filter(
9841
9841
  (w) => !ia(w) || w.id !== (l == null ? void 0 : l.id)
9842
9842
  ).map((w) => /* @__PURE__ */ a(B, { value: w.id, children: [
9843
9843
  w.label || w.name,
@@ -9856,10 +9856,10 @@ function bl({
9856
9856
  {
9857
9857
  id: "inputB",
9858
9858
  className: R.inputB ? "border-red-500" : "",
9859
- children: /* @__PURE__ */ e(Z, { placeholder: "+ Choose metric" })
9859
+ children: /* @__PURE__ */ e(X, { placeholder: "+ Choose metric" })
9860
9860
  }
9861
9861
  ),
9862
- /* @__PURE__ */ e(X, { children: n.filter(
9862
+ /* @__PURE__ */ e(Z, { children: n.filter(
9863
9863
  (w) => !ia(w) || w.id !== (l == null ? void 0 : l.id)
9864
9864
  ).map((w) => /* @__PURE__ */ a(B, { value: w.id, children: [
9865
9865
  w.label || w.name,
@@ -9894,8 +9894,8 @@ function bl({
9894
9894
  value: E.format,
9895
9895
  onValueChange: (w) => z({ ...E, format: w }),
9896
9896
  children: [
9897
- /* @__PURE__ */ e(W, { id: "format", children: /* @__PURE__ */ e(Z, {}) }),
9898
- /* @__PURE__ */ a(X, { children: [
9897
+ /* @__PURE__ */ e(W, { id: "format", children: /* @__PURE__ */ e(X, {}) }),
9898
+ /* @__PURE__ */ a(Z, { children: [
9899
9899
  /* @__PURE__ */ a(B, { value: "number", children: [
9900
9900
  "Decimal (",
9901
9901
  E.decimalPlaces,
@@ -9965,7 +9965,7 @@ function Mc({
9965
9965
  t.valueAliases || {}
9966
9966
  ), [ie, oe] = $((On = t.parameters) == null ? void 0 : On.filters), Oe = (_) => {
9967
9967
  _ === "custom" ? te(!0) : (te(!1), J(_), s === "groupBy" && b(n, _, ""));
9968
- }, Ze = (_) => {
9968
+ }, Xe = (_) => {
9969
9969
  L(_), s === "groupBy" && b(n, "custom", _);
9970
9970
  }, St = (_) => {
9971
9971
  var Me;
@@ -9998,7 +9998,7 @@ function Mc({
9998
9998
  }, Ue = {
9999
9999
  transform: yn.Transform.toString(u),
10000
10000
  transition: f
10001
- }, ot = Be(t.dataType), _e = ot === "date", ct = d === "kpi", Tt = _n(se), Xe = s !== "pivotBy", At = _e && s === "groupBy" && (!ct || ((Mn = h.config) == null ? void 0 : Mn.comparisonType) === "start_vs_end"), Et = !ct && _e && s === "groupBy", Dt = d && mi.includes(d) && _e && s === "groupBy", It = d === "kpi" && _e && s === "groupBy", dt = d && d !== "pivotTable" && s === "metrics" && ((Rn = h.config) == null ? void 0 : Rn.comparisonType) === "target", ut = s === "metrics", ee = () => {
10001
+ }, ot = Be(t.dataType), _e = ot === "date", ct = d === "kpi", Tt = _n(se), Ze = s !== "pivotBy", At = _e && s === "groupBy" && (!ct || ((Mn = h.config) == null ? void 0 : Mn.comparisonType) === "start_vs_end"), Et = !ct && _e && s === "groupBy", Dt = d && mi.includes(d) && _e && s === "groupBy", It = d === "kpi" && _e && s === "groupBy", dt = d && d !== "pivotTable" && s === "metrics" && ((Rn = h.config) == null ? void 0 : Rn.comparisonType) === "target", ut = s === "metrics", ee = () => {
10002
10002
  const _ = t, be = s === "metrics" && ia(_);
10003
10003
  return /* @__PURE__ */ a("div", { className: "space-y-1", children: [
10004
10004
  !be && /* @__PURE__ */ e(
@@ -10027,7 +10027,7 @@ function Mc({
10027
10027
  }
10028
10028
  )
10029
10029
  ] });
10030
- }, ye = () => Xe ? /* @__PURE__ */ a("div", { className: "space-y-1", children: [
10030
+ }, ye = () => Ze ? /* @__PURE__ */ a("div", { className: "space-y-1", children: [
10031
10031
  /* @__PURE__ */ e(V, { className: "text-xs font-medium text-muted-foreground", children: "Label" }),
10032
10032
  /* @__PURE__ */ e(
10033
10033
  Qe,
@@ -10046,8 +10046,8 @@ function Mc({
10046
10046
  value: se,
10047
10047
  onValueChange: St,
10048
10048
  children: [
10049
- /* @__PURE__ */ e(W, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, { placeholder: "Select granularity..." }) }),
10050
- /* @__PURE__ */ e(X, { children: ["day", "week", "month", "quarter", "year"].map((_) => /* @__PURE__ */ e(B, { className: "text-xs", value: _, children: ui(_) }, _)) })
10049
+ /* @__PURE__ */ e(W, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(X, { placeholder: "Select granularity..." }) }),
10050
+ /* @__PURE__ */ e(Z, { children: ["day", "week", "month", "quarter", "year"].map((_) => /* @__PURE__ */ e(B, { className: "text-xs", value: _, children: ui(_) }, _)) })
10051
10051
  ]
10052
10052
  }
10053
10053
  )
@@ -10061,8 +10061,8 @@ function Mc({
10061
10061
  value: H ? "custom" : G,
10062
10062
  onValueChange: Oe,
10063
10063
  children: [
10064
- /* @__PURE__ */ e(W, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, { placeholder: "Select date format..." }) }),
10065
- /* @__PURE__ */ e(X, { children: Tt.map((_) => /* @__PURE__ */ e(
10064
+ /* @__PURE__ */ e(W, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(X, { placeholder: "Select date format..." }) }),
10065
+ /* @__PURE__ */ e(Z, { children: Tt.map((_) => /* @__PURE__ */ e(
10066
10066
  B,
10067
10067
  {
10068
10068
  className: "text-xs",
@@ -10081,7 +10081,7 @@ function Mc({
10081
10081
  placeholder: "Enter custom format (e.g., YYYY-MM-DD HH:mm)",
10082
10082
  value: U,
10083
10083
  onChange: (_) => {
10084
- _.stopPropagation(), Ze(_.target.value);
10084
+ _.stopPropagation(), Xe(_.target.value);
10085
10085
  },
10086
10086
  onClick: (_) => _.stopPropagation(),
10087
10087
  className: "h-8 text-xs"
@@ -10102,8 +10102,8 @@ function Mc({
10102
10102
  value: ((le = h.config) == null ? void 0 : le.comparisonType) || "none",
10103
10103
  onValueChange: D,
10104
10104
  children: [
10105
- /* @__PURE__ */ e(W, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, { placeholder: "Select comparison type..." }) }),
10106
- /* @__PURE__ */ a(X, { children: [
10105
+ /* @__PURE__ */ e(W, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(X, { placeholder: "Select comparison type..." }) }),
10106
+ /* @__PURE__ */ a(Z, { children: [
10107
10107
  /* @__PURE__ */ e(B, { value: "none", children: "No Comparison" }),
10108
10108
  /* @__PURE__ */ e(B, { value: "previous_period", children: "Previous Period" }),
10109
10109
  /* @__PURE__ */ e(B, { value: "same_period_last_year", children: "Same Period Last Year" }),
@@ -10134,8 +10134,8 @@ function Mc({
10134
10134
  min: "1",
10135
10135
  max: "365",
10136
10136
  value: ((Vt = h.config) == null ? void 0 : Vt.trendlineWindow) || 30,
10137
- onChange: (Zt) => {
10138
- const Tl = parseInt(Zt.target.value) || 30;
10137
+ onChange: (Xt) => {
10138
+ const Tl = parseInt(Xt.target.value) || 30;
10139
10139
  p(Tl);
10140
10140
  },
10141
10141
  className: "h-8 text-xs",
@@ -10151,8 +10151,8 @@ function Mc({
10151
10151
  value: ((et = h.config) == null ? void 0 : et.trendlineGranularity) || "day",
10152
10152
  onValueChange: x,
10153
10153
  children: [
10154
- /* @__PURE__ */ e(W, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, { placeholder: "Select granularity..." }) }),
10155
- /* @__PURE__ */ a(X, { children: [
10154
+ /* @__PURE__ */ e(W, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(X, { placeholder: "Select granularity..." }) }),
10155
+ /* @__PURE__ */ a(Z, { children: [
10156
10156
  /* @__PURE__ */ e(B, { value: "day", children: "Day" }),
10157
10157
  /* @__PURE__ */ e(B, { value: "week", children: "Week" }),
10158
10158
  /* @__PURE__ */ e(B, { value: "month", children: "Month" })
@@ -10211,8 +10211,8 @@ function Mc({
10211
10211
  },
10212
10212
  disabled: be,
10213
10213
  children: [
10214
- /* @__PURE__ */ e(W, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(Z, { placeholder: "Select function..." }) }),
10215
- /* @__PURE__ */ a(X, { children: [
10214
+ /* @__PURE__ */ e(W, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(X, { placeholder: "Select function..." }) }),
10215
+ /* @__PURE__ */ a(Z, { children: [
10216
10216
  /* @__PURE__ */ e(B, { className: "text-xs", value: "COUNT", children: "Count" }),
10217
10217
  /* @__PURE__ */ e(B, { className: "text-xs", value: "DISTINCT", children: "Count Distinct" }),
10218
10218
  Be(t.dataType) === "number" && /* @__PURE__ */ a(ae, { children: [
@@ -10284,11 +10284,11 @@ function Mc({
10284
10284
  ...t.parameters,
10285
10285
  filters: void 0
10286
10286
  }
10287
- }, Zt = [
10287
+ }, Xt = [
10288
10288
  ...((Vt = h.config) == null ? void 0 : Vt.metricColumns) || []
10289
10289
  ];
10290
- Zt[n] = et, A.getState().actions.updateCardConfig(h.id, {
10291
- metricColumns: Zt
10290
+ Xt[n] = et, A.getState().actions.updateCardConfig(h.id, {
10291
+ metricColumns: Xt
10292
10292
  });
10293
10293
  }
10294
10294
  },
@@ -10763,8 +10763,8 @@ function Pc() {
10763
10763
  calculationType: p
10764
10764
  }),
10765
10765
  children: [
10766
- /* @__PURE__ */ e(W, { id: "calculation-type", className: "h-7 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
10767
- /* @__PURE__ */ e(X, { children: Object.entries(rs).map(([p, x]) => /* @__PURE__ */ e(B, { value: p, className: "text-xs", children: x.label }, p)) })
10766
+ /* @__PURE__ */ e(W, { id: "calculation-type", className: "h-7 text-xs", children: /* @__PURE__ */ e(X, {}) }),
10767
+ /* @__PURE__ */ e(Z, { children: Object.entries(rs).map(([p, x]) => /* @__PURE__ */ e(B, { value: p, className: "text-xs", children: x.label }, p)) })
10768
10768
  ]
10769
10769
  }
10770
10770
  )
@@ -10790,8 +10790,8 @@ function Pc() {
10790
10790
  position: p
10791
10791
  }),
10792
10792
  children: [
10793
- /* @__PURE__ */ e(W, { className: "h-7 w-20 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
10794
- /* @__PURE__ */ a(X, { children: [
10793
+ /* @__PURE__ */ e(W, { className: "h-7 w-20 text-xs", children: /* @__PURE__ */ e(X, {}) }),
10794
+ /* @__PURE__ */ a(Z, { children: [
10795
10795
  /* @__PURE__ */ e(B, { value: "right", className: "text-xs", children: "Right" }),
10796
10796
  /* @__PURE__ */ e(B, { value: "left", className: "text-xs", children: "Left" }),
10797
10797
  /* @__PURE__ */ e(B, { value: "top", className: "text-xs", children: "Top" })
@@ -11992,8 +11992,8 @@ function Uc({
11992
11992
  /* @__PURE__ */ e(ha, { className: "mr-2 size-3.5 animate-spin" }),
11993
11993
  " Loading values..."
11994
11994
  ] }) : i ? /* @__PURE__ */ e("div", { className: "flex-1 p-2 text-xs text-red-500", children: "Error loading values" }) : /* @__PURE__ */ a(Y, { value: s, onValueChange: n, children: [
11995
- /* @__PURE__ */ e(W, { className: r || "flex-1", children: /* @__PURE__ */ e(Z, { placeholder: l, children: s }) }),
11996
- /* @__PURE__ */ e(X, { children: c.map((o, m) => /* @__PURE__ */ e(
11995
+ /* @__PURE__ */ e(W, { className: r || "flex-1", children: /* @__PURE__ */ e(X, { placeholder: l, children: s }) }),
11996
+ /* @__PURE__ */ e(Z, { children: c.map((o, m) => /* @__PURE__ */ e(
11997
11997
  B,
11998
11998
  {
11999
11999
  className: "hover:bg-muted",
@@ -12110,7 +12110,7 @@ const Jc = [
12110
12110
  // Default operator for dates
12111
12111
  "isNull",
12112
12112
  "isNotNull"
12113
- ], Zc = {
12113
+ ], Xc = {
12114
12114
  "=": "Equals",
12115
12115
  "!=": "Not Equals",
12116
12116
  ">": "Greater Than",
@@ -12128,9 +12128,9 @@ const Jc = [
12128
12128
  "not between": "Not Between"
12129
12129
  };
12130
12130
  function os(t) {
12131
- return Zc[t] || Ve(t);
12131
+ return Xc[t] || Ve(t);
12132
12132
  }
12133
- function Xc(t) {
12133
+ function Zc(t) {
12134
12134
  switch (t) {
12135
12135
  case "string":
12136
12136
  return Hc;
@@ -12190,8 +12190,8 @@ function Nl({
12190
12190
  value: l,
12191
12191
  onValueChange: (E) => d(n, E),
12192
12192
  children: [
12193
- /* @__PURE__ */ e(W, { className: "w-24", children: /* @__PURE__ */ e(Z, {}) }),
12194
- /* @__PURE__ */ a(X, { children: [
12193
+ /* @__PURE__ */ e(W, { className: "w-24", children: /* @__PURE__ */ e(X, {}) }),
12194
+ /* @__PURE__ */ a(Z, { children: [
12195
12195
  /* @__PURE__ */ e(B, { value: "AND", children: "AND" }),
12196
12196
  /* @__PURE__ */ e(B, { value: "OR", children: "OR" })
12197
12197
  ] })
@@ -12234,8 +12234,8 @@ function Nl({
12234
12234
  });
12235
12235
  },
12236
12236
  children: [
12237
- /* @__PURE__ */ e(W, { className: "w-32", children: /* @__PURE__ */ e(Z, { children: t.operator ? os(t.operator) : "" }) }),
12238
- /* @__PURE__ */ e(X, { children: Xc(Be(t.field.dataType)).map(
12237
+ /* @__PURE__ */ e(W, { className: "w-32", children: /* @__PURE__ */ e(X, { children: t.operator ? os(t.operator) : "" }) }),
12238
+ /* @__PURE__ */ e(Z, { children: Zc(Be(t.field.dataType)).map(
12239
12239
  (E) => /* @__PURE__ */ e(B, { className: "hover:bg-muted", value: E, children: os(E) }, E)
12240
12240
  ) })
12241
12241
  ]
@@ -12284,8 +12284,8 @@ function Nl({
12284
12284
  value: E === "true"
12285
12285
  }),
12286
12286
  children: [
12287
- /* @__PURE__ */ e(W, { className: "flex-1", children: /* @__PURE__ */ e(Z, { placeholder: "Select value..." }) }),
12288
- /* @__PURE__ */ a(X, { children: [
12287
+ /* @__PURE__ */ e(W, { className: "flex-1", children: /* @__PURE__ */ e(X, { placeholder: "Select value..." }) }),
12288
+ /* @__PURE__ */ a(Z, { children: [
12289
12289
  /* @__PURE__ */ e(B, { value: "true", children: "True" }),
12290
12290
  /* @__PURE__ */ e(B, { value: "false", children: "False" })
12291
12291
  ] })
@@ -12407,8 +12407,8 @@ function ed({
12407
12407
  value: t.logicalOperator,
12408
12408
  onValueChange: (C) => l(t.id, C),
12409
12409
  children: [
12410
- /* @__PURE__ */ e(W, { className: "h-7 w-20", children: /* @__PURE__ */ e(Z, {}) }),
12411
- /* @__PURE__ */ a(X, { children: [
12410
+ /* @__PURE__ */ e(W, { className: "h-7 w-20", children: /* @__PURE__ */ e(X, {}) }),
12411
+ /* @__PURE__ */ a(Z, { children: [
12412
12412
  /* @__PURE__ */ e(B, { className: "hover:bg-muted", value: "AND", children: "AND" }),
12413
12413
  /* @__PURE__ */ e(B, { className: "hover:bg-muted", value: "OR", children: "OR" })
12414
12414
  ] })
@@ -13084,8 +13084,8 @@ function rd() {
13084
13084
  value: ((m = (o = t.config) == null ? void 0 : o.rowLimit) == null ? void 0 : m.toString()) || "100",
13085
13085
  onValueChange: d,
13086
13086
  children: [
13087
- /* @__PURE__ */ e(W, { className: "h-8 w-24 border-none px-1 [&>svg]:hidden", children: /* @__PURE__ */ e(Z, { placeholder: "Select limit" }) }),
13088
- /* @__PURE__ */ e(X, { children: ld.map((u) => /* @__PURE__ */ e(B, { value: u.value, children: u.label }, u.value)) })
13087
+ /* @__PURE__ */ e(W, { className: "h-8 w-24 border-none px-1 [&>svg]:hidden", children: /* @__PURE__ */ e(X, { placeholder: "Select limit" }) }),
13088
+ /* @__PURE__ */ e(Z, { children: ld.map((u) => /* @__PURE__ */ e(B, { value: u.value, children: u.label }, u.value)) })
13089
13089
  ]
13090
13090
  }
13091
13091
  ) });
@@ -13242,7 +13242,7 @@ function ud({
13242
13242
  const oe = !C;
13243
13243
  oe && t === "table" && s("chart"), I(oe);
13244
13244
  }, se = (oe, Oe) => {
13245
- const Ze = {
13245
+ const Xe = {
13246
13246
  ...c,
13247
13247
  paginationConfig: {
13248
13248
  page: oe + 1,
@@ -13250,7 +13250,7 @@ function ud({
13250
13250
  pageSize: Oe
13251
13251
  }
13252
13252
  };
13253
- g(Ze), h(Ze);
13253
+ g(Xe), h(Xe);
13254
13254
  };
13255
13255
  function j() {
13256
13256
  return /* @__PURE__ */ a("div", { className: "relative border-b border-border bg-background p-4", children: [
@@ -13378,7 +13378,7 @@ function ud({
13378
13378
  tooltip: "AI",
13379
13379
  className: "h-8",
13380
13380
  "aria-label": "AI",
13381
- children: /* @__PURE__ */ e(Za, { className: "size-4" })
13381
+ children: /* @__PURE__ */ e(Xa, { className: "size-4" })
13382
13382
  }
13383
13383
  ),
13384
13384
  l && Ks