react-semaphor 0.1.321 → 0.1.323

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 (35) hide show
  1. package/dist/brand-studio/index.js +4 -4
  2. package/dist/chunks/{braces-Cy5NEBa8.js → braces-ZjRH2Kl7.js} +1 -1
  3. package/dist/chunks/{calendar-preferences-dialog-D-0W76fR.js → calendar-preferences-dialog-B9Hz3pTH.js} +3 -3
  4. package/dist/chunks/{calendar-preferences-dialog-CzoSmQNw.js → calendar-preferences-dialog-CLXaVo3h.js} +1 -1
  5. package/dist/chunks/{chevrons-up-down-DZTs1oVD.js → chevrons-up-down-CA-XvN1o.js} +1 -1
  6. package/dist/chunks/{dashboard-briefing-launcher-Cqm8NnVb.js → dashboard-briefing-launcher-COLpvReF.js} +13 -13
  7. package/dist/chunks/{dashboard-briefing-launcher-D5z1kf6J.js → dashboard-briefing-launcher-CUEn7cr6.js} +6 -5
  8. package/dist/chunks/dashboard-controls-CLShFyUq.js +2258 -0
  9. package/dist/chunks/dashboard-controls-DH8gdpOc.js +52 -0
  10. package/dist/chunks/{dashboard-json-BRx9CbrK.js → dashboard-json-Db0DpTMw.js} +2 -2
  11. package/dist/chunks/{dashboard-json-ezFjz7Fc.js → dashboard-json-eGBWfSN1.js} +1 -1
  12. package/dist/chunks/{edit-dashboard-visual-Cw0KmT4i.js → edit-dashboard-visual-Cc3xpTNQ.js} +1 -1
  13. package/dist/chunks/{edit-dashboard-visual-sI6ds8MP.js → edit-dashboard-visual-DmMKWtln.js} +616 -616
  14. package/dist/chunks/{index-DX6Krdga.js → index-CMS4bp9G.js} +194 -194
  15. package/dist/chunks/{index-BZg7rVe-.js → index-PTx7430W.js} +21344 -21136
  16. package/dist/chunks/{palette-Bc-vOLSt.js → palette-D96DOM7E.js} +1 -1
  17. package/dist/chunks/{resource-management-panel-pN81x7Gw.js → resource-management-panel-C1mbF-2a.js} +18 -18
  18. package/dist/chunks/{resource-management-panel-CRRUcnVu.js → resource-management-panel-DR7Ku6sa.js} +1 -1
  19. package/dist/chunks/{save-CXa6cKaY.js → save-DxkSzUTZ.js} +1 -1
  20. package/dist/chunks/{switch-DdTUsWgd.js → switch-Deo2Ltmj.js} +6 -6
  21. package/dist/chunks/{use-create-flow-overlay-state-B9ujZUon.js → use-create-flow-overlay-state-B65gg2oB.js} +4 -4
  22. package/dist/chunks/{use-create-flow-overlay-state-BfV5187a.js → use-create-flow-overlay-state-CmxTpqeg.js} +1 -1
  23. package/dist/chunks/{use-visual-utils-D_uHFfTn.js → use-visual-utils-51Nsy8cj.js} +1 -1
  24. package/dist/chunks/{use-visual-utils-PxijRlpS.js → use-visual-utils-Diuguy3D.js} +20 -20
  25. package/dist/dashboard/index.cjs +1 -1
  26. package/dist/dashboard/index.js +1 -1
  27. package/dist/index.cjs +1 -1
  28. package/dist/index.js +131 -130
  29. package/dist/style.css +1 -1
  30. package/dist/surfboard/index.cjs +1 -1
  31. package/dist/surfboard/index.js +2 -2
  32. package/dist/types/main.d.ts +145 -0
  33. package/package.json +1 -1
  34. package/dist/chunks/dashboard-controls-CRIwHD59.js +0 -1999
  35. package/dist/chunks/dashboard-controls-DSt7iwFC.js +0 -52
@@ -1,14 +1,14 @@
1
1
  import { jsx as e, jsxs as a, Fragment as De } from "react/jsx-runtime";
2
2
  import * as lc from "react";
3
3
  import Jt, { useState as K, useEffect as Se, useRef as Ee, useCallback as Ie, useMemo as ce, useContext as pr, Suspense as ic } from "react";
4
- import { cL as gi, b as Ia, c as Da, d as Ea, e as Aa, f as Wa, n as ns, aq as nt, av as vt, cM as xi, cN as Xn, o as st, cO as bi, aG as yt, cP as fr, cQ as vi, cR as yi, cS as Ni, cT as gr, cU as xr, ax as us, ar as bt, cV as ss, b$ as br, cW as oc, c2 as rs, cX as Ci, cY as cc, ac as ms, cZ as dc, c_ as uc, c$ as sr, d0 as Zn, u as La, y as wi, d1 as mc, d2 as hc, d3 as Si, d4 as Ti, d5 as pc, d6 as fc, d7 as gc, ak as Pa, al as pa, am as fa, an as Vn, ao as Yt, ap as Ua, d8 as rr, bD as wn, d9 as ki, da as ea, db as pt, dc as xc, bY as ca, cC as Ii, dd as vr, de as Di, df as bc, dg as vc, dh as yc, di as Nc, dj as Cc, dk as wc, dl as Sc, dm as Ei, dn as Tc, dp as Rs, dq as kc, dr as kl, ds as Ic, dt as Il, du as Dc, dv as Ec, dw as Ac, dx as Ha, aB as Ut, aD as Ht, dy as Ai, dz as yr, b7 as Nr, bN as Cr, dA as wr, dB as Oc, dC as Oi, dD as Fi, dE as Kt, dF as Fc, dG as Mc, dH as Mi, T as Ri, dI as Li, dJ as Rc, dK as Lc, dL as Pc, dM as kn, dN as Vc, dO as Bc, dP as Dl, dQ as _c, E as hs, s as Sr, dR as zc, dS as Tr, bf as $c, dT as El, I as ft, dU as qc, dV as jc, dW as Pi, dX as Vi, bE as Kc, dY as kr, dZ as Ir, bc as ps, d_ as Bi, d$ as _i, e0 as Al, e1 as Bn, e2 as Gc, e3 as Uc, e4 as Hc, e5 as Qc, e6 as Wc, aY as Dr, e7 as Jc, e8 as Yc, e9 as zi, ea as $i, eb as Xc, ec as Zc, ed, ee as td, ef as qi, eg as ad, eh as nd, ei as fs, ej as gs, aL as tn, aM as an, aO as nn, bg as In, aT as Gt, ek as sa, el as Oa, em as Fa, en as da, eo as Ja, ep as sd, eq as rd, er as ld, es as id, et as od, eu as cd, ev as dd, ck as xs, ew as ud, ex as Ol, aC as Xt, aw as Zt, ey as md, ez as hd, eA as pd, eB as fd, eC as ji, eD as gd, eE as xd, eF as bd, eG as vd, eH as yd, eI as lr, eJ as Nd, eK as Cd, eL as ir, eM as or, eN as wd, eO as Sd, eP as Td, eQ as kd, eR as Fl, bO as cr, eS as ua, a_ as Id, eT as Dd, a$ as Ed, b0 as Ad, b1 as Od, b2 as Fd, b3 as Md, b4 as Rd, b5 as Ld, aP as ut, aK as Pd, eU as Vd, eV as Ya, eW as Xa, eX as Za, aN as Er, bH as Bd, aQ as _d, eY as zd, eZ as $d, e_ as qd, e$ as bs, f0 as lt, f1 as it, f2 as ot, cA as jd, cB as Kd, f3 as Ki, f4 as Gi, cx as Gd, bG as Ui, f5 as Ud, f6 as Hd, f7 as Qd, f8 as Wd, f9 as Jd, fa as Yd, fb as Xd, fc as Zd, fd as eu, fe as tu, ff as au, fg as nu, fh as Ca, fi as vn, fj as Qa, R as vs, g as Ma, fk as su, fl as Ml, fm as ru, fn as lu, fo as Ls, fp as Rl, fq as iu, fr as ou, fs as cu, ft as du, fu as uu, fv as Ps, fw as Hi, fx as mu, fy as ls, fz as hu, fA as Qi, fB as pu, fC as Wi, cg as fu, fD as gu, a1 as xu, fE as Qn, fF as bu, fG as Ll, fH as vu, fI as yu, fJ as Pl, fK as Nu, fL as Cu, fM as wu, fN as Su, fO as Tu, fP as ku, fQ as Iu, cw as Du, cy as Eu, fR as Ji, fS as Au, fT as Ou, fU as Fu, fV as Mu, fW as Ru, fX as Lu, fY as Pu, fZ as Vu, f_ as Bu, f$ as Yi, g0 as _u, g1 as ys, g2 as Ns, g3 as Xi, g4 as zu, g5 as $u, g6 as Zi, g7 as qu, g8 as ju, g9 as Cs, ga as Vs, gb as Ku, gc as Gu, gd as Uu, ge as Hu, gf as Qu, gg as Vl, gh as en, gi as eo, cz as Wu, gj as to, gk as ao, gl as es, gm as no, gn as so, go as Bl, gp as Ju, gq as Yu, gr as ts, gs as Xu, gt as Ar, cv as Zu, gu as em, gv as is, C as Dn, h as En, j as An, i as On, k as Fn, l as Mn, gw as tm, gx as Rn, gy as ra, gz as dr, gA as ur, gB as Ln, gC as ro, gD as am, gE as Bs, gF as _s, gG as nm, gH as zs, gI as sm, gJ as _l, gK as zl, cF as rm, gL as lm, cG as im, cI as om, cJ as cm, x as dm, gM as um, gN as mm, gO as hm, bI as pm, bJ as fm, bK as gm, aV as ws, ct as Ss, gP as $l, gQ as lo, c4 as $s, gR as xm, gS as bm, gT as vm, F as ym, at as Nm, gU as Cm, gV as wm, au as Sm } from "./index-BZg7rVe-.js";
5
- import { c as Ge, H as we, B as Z, W as os, M as sn, a as Q, G as M, aQ as Tm, L as $, a2 as te, a3 as ae, a4 as ne, a5 as se, a6 as j, aR as io, g as kt, X as tt, a0 as wt, Y as Lt, Z as St, _ as Tt, P as It, b as At, d as Dt, C as ma, aS as km, aI as Sn, aT as Or, aU as oo, aC as Fr, aA as Im, a1 as Me, aV as Dm, f as ha, u as Ae, e as ga, aW as Mr, aX as _n, E as co, T as Ts, J as ks, K as oa, N as Ta, $ as Qt, V as Is, S as Ra, k as Em, aJ as ka, aY as Am, aZ as Om, a_ as uo, ah as Fm, aL as Mm, a$ as Rm, b0 as Lm, b1 as ql, b2 as Pm, b3 as Vm, b4 as Bm, b5 as _m, aP as zm, b6 as jl, b7 as $m, b8 as Kl, R as mr, b9 as rn, ba as qm, a7 as Ze, bb as jm, bc as Pn, bd as cs, be as la, bf as Wn, bg as Gl, bh as Rt, bi as Km, Q as mo, bj as rt, v as Ul, bk as Gm, bl as Um, bm as Hm, bn as Qm, bo as Wm, bp as Jm, bq as Ym, br as Xm, bs as Zm, bt as eh, bu as th, bv as ah, ay as Hl, bw as nh, bx as sh, by as rh, O as Ds } from "./switch-DdTUsWgd.js";
6
- import { f as lh, g as xt, S as ih, h as ho, V as po, u as oh, e as ch, R as Es, C as Ql } from "./use-create-flow-overlay-state-B9ujZUon.js";
7
- import { r as fo, f as zn } from "./use-visual-utils-PxijRlpS.js";
8
- import { C as go } from "./chevrons-up-down-DZTs1oVD.js";
4
+ import { cN as gi, b as Ia, c as Da, d as Ea, e as Aa, f as Qa, n as ns, ar as nt, aw as vt, cO as xi, cP as Xn, o as st, cQ as bi, aH as yt, cR as fr, cS as vi, cT as yi, cU as Ni, cV as gr, cW as xr, ay as us, as as bt, cX as ss, c1 as br, cY as oc, c4 as rs, cZ as Ci, c_ as cc, ad as ms, c$ as dc, d0 as uc, d1 as sr, d2 as Zn, u as La, y as wi, d3 as mc, d4 as hc, d5 as Si, d6 as Ti, d7 as pc, d8 as fc, d9 as gc, al as Pa, am as pa, an as fa, ao as Vn, ap as Yt, aq as Ga, da as rr, bF as wn, db as ki, dc as ea, dd as pt, de as xc, b_ as ca, cE as Ii, df as vr, dg as Di, dh as bc, di as vc, dj as yc, dk as Nc, dl as Cc, dm as wc, dn as Sc, dp as Ei, dq as Tc, dr as Rs, ds as kc, dt as kl, du as Ic, dv as Il, dw as Dc, dx as Ec, dy as Ac, dz as Ha, aC as Gt, aE as Ht, dA as Ai, dB as yr, b8 as Nr, bP as Cr, dC as wr, dD as Oc, dE as Oi, dF as Fi, dG as Kt, dH as Fc, dI as Mc, dJ as Mi, V as Ri, dK as Li, dL as Rc, dM as Lc, dN as Pc, dO as kn, dP as Vc, dQ as Bc, dR as Dl, dS as _c, E as hs, s as Sr, dT as zc, dU as Tr, bg as $c, dV as El, I as ft, dW as qc, dX as jc, dY as Pi, dZ as Vi, bG as Kc, d_ as kr, d$ as Ir, bd as ps, e0 as Bi, e1 as _i, e2 as Al, e3 as Bn, e4 as Uc, e5 as Gc, e6 as Hc, e7 as Wc, e8 as Qc, aZ as Dr, e9 as Jc, ea as Yc, eb as zi, ec as $i, ed as Xc, ee as Zc, ef as ed, eg as td, eh as qi, ei as ad, ej as nd, ek as fs, el as gs, aM as tn, aN as an, aP as nn, bh as In, aU as Ut, em as sa, en as Oa, eo as Fa, ep as da, eq as Ja, er as sd, es as rd, et as ld, eu as id, ev as od, ew as cd, ex as dd, cm as xs, ey as ud, ez as Ol, aD as Xt, ax as Zt, eA as md, eB as hd, eC as pd, eD as fd, eE as ji, eF as gd, eG as xd, eH as bd, eI as vd, eJ as yd, eK as lr, eL as Nd, eM as Cd, eN as ir, eO as or, eP as wd, eQ as Sd, eR as Td, eS as kd, eT as Fl, bQ as cr, eU as ua, a$ as Id, eV as Dd, b0 as Ed, b1 as Ad, b2 as Od, b3 as Fd, b4 as Md, b5 as Rd, b6 as Ld, aQ as ut, aL as Pd, eW as Vd, eX as Ya, eY as Xa, eZ as Za, aO as Er, bJ as Bd, aR as _d, e_ as zd, e$ as $d, f0 as qd, f1 as bs, f2 as lt, f3 as it, f4 as ot, cC as jd, cD as Kd, f5 as Ki, f6 as Ui, cz as Ud, bI as Gi, f7 as Gd, f8 as Hd, f9 as Wd, fa as Qd, fb as Jd, fc as Yd, fd as Xd, fe as Zd, ff as eu, fg as tu, fh as au, fi as nu, fj as Ca, fk as vn, fl as Wa, R as vs, g as Ma, fm as su, fn as Ml, fo as ru, fp as lu, fq as Ls, fr as Rl, fs as iu, ft as ou, fu as cu, fv as du, fw as uu, fx as Ps, fy as Hi, fz as mu, fA as ls, fB as hu, fC as Wi, fD as pu, fE as Qi, ci as fu, fF as gu, a2 as xu, fG as Wn, fH as bu, fI as Ll, fJ as vu, fK as yu, fL as Pl, fM as Nu, fN as Cu, fO as wu, fP as Su, fQ as Tu, fR as ku, fS as Iu, cy as Du, cA as Eu, fT as Ji, fU as Au, fV as Ou, fW as Fu, fX as Mu, fY as Ru, fZ as Lu, f_ as Pu, f$ as Vu, g0 as Bu, g1 as Yi, g2 as _u, g3 as ys, g4 as Ns, g5 as Xi, g6 as zu, g7 as $u, g8 as Zi, g9 as qu, ga as ju, gb as Cs, gc as Vs, gd as Ku, ge as Uu, gf as Gu, gg as Hu, gh as Wu, gi as Vl, gj as en, gk as eo, cB as Qu, gl as to, gm as ao, gn as es, go as no, gp as so, gq as Bl, gr as Ju, gs as Yu, gt as ts, gu as Xu, gv as Ar, cx as Zu, gw as em, gx as is, C as Dn, h as En, j as An, i as On, k as Fn, l as Mn, gy as tm, gz as Rn, gA as ra, gB as dr, gC as ur, gD as Ln, gE as ro, gF as am, gG as Bs, gH as _s, gI as nm, gJ as zs, gK as sm, gL as _l, gM as zl, cH as rm, gN as lm, cI as im, cK as om, cL as cm, x as dm, gO as um, gP as mm, gQ as hm, bK as pm, bL as fm, bM as gm, aW as ws, cv as Ss, gR as $l, gS as lo, c6 as $s, gT as xm, gU as bm, gV as vm, F as ym, au as Nm, gW as Cm, gX as wm, av as Sm } from "./index-PTx7430W.js";
5
+ import { c as Ue, H as we, B as Z, W as os, M as sn, a as W, G as M, aQ as Tm, L as $, a2 as te, a3 as ae, a4 as ne, a5 as se, a6 as j, aR as io, g as kt, X as tt, a0 as wt, Y as Lt, Z as St, _ as Tt, P as It, b as At, d as Dt, C as ma, aS as km, aI as Sn, aT as Or, aU as oo, aF as Fr, aD as Im, a1 as Me, aV as Dm, f as ha, u as Ae, e as ga, aW as Mr, aX as _n, E as co, T as Ts, J as ks, K as oa, N as Ta, $ as Wt, V as Is, S as Ra, k as Em, aJ as ka, aY as Am, aZ as Om, a_ as uo, ah as Fm, aL as Mm, a$ as Rm, b0 as Lm, b1 as ql, b2 as Pm, b3 as Vm, b4 as Bm, b5 as _m, aP as zm, b6 as jl, b7 as $m, b8 as Kl, R as mr, b9 as rn, ba as qm, a7 as Ze, bb as jm, bc as Pn, bd as cs, be as la, bf as Qn, bg as Ul, bh as Rt, bi as Km, Q as mo, bj as rt, v as Gl, bk as Um, bl as Gm, bm as Hm, bn as Wm, bo as Qm, bp as Jm, bq as Ym, br as Xm, bs as Zm, bt as eh, bu as th, bv as ah, ay as Hl, bw as nh, bx as sh, by as rh, O as Ds } from "./switch-Deo2Ltmj.js";
6
+ import { f as lh, g as xt, S as ih, h as ho, V as po, u as oh, e as ch, R as Es, C as Wl } from "./use-create-flow-overlay-state-B65gg2oB.js";
7
+ import { r as fo, f as zn } from "./use-visual-utils-Diuguy3D.js";
8
+ import { C as go } from "./chevrons-up-down-CA-XvN1o.js";
9
9
  import { createPortal as dh } from "react-dom";
10
10
  import "./index-CJdxSyQq.js";
11
- import { P as uh } from "./palette-Bc-vOLSt.js";
11
+ import { P as uh } from "./palette-D96DOM7E.js";
12
12
  import { a as mh } from "./common-types-4bjoIgvm.js";
13
13
  /**
14
14
  * @license lucide-react v0.453.0 - ISC
@@ -16,7 +16,7 @@ import { a as mh } from "./common-types-4bjoIgvm.js";
16
16
  * This source code is licensed under the ISC license.
17
17
  * See the LICENSE file in the root directory of this source tree.
18
18
  */
19
- const hh = Ge("ArrowDownAZ", [
19
+ const hh = Ue("ArrowDownAZ", [
20
20
  ["path", { d: "m3 16 4 4 4-4", key: "1co6wj" }],
21
21
  ["path", { d: "M7 20V4", key: "1yoxec" }],
22
22
  ["path", { d: "M20 8h-5", key: "1vsyxs" }],
@@ -29,7 +29,7 @@ const hh = Ge("ArrowDownAZ", [
29
29
  * This source code is licensed under the ISC license.
30
30
  * See the LICENSE file in the root directory of this source tree.
31
31
  */
32
- const ph = Ge("ArrowUpAZ", [
32
+ const ph = Ue("ArrowUpAZ", [
33
33
  ["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
34
34
  ["path", { d: "M7 4v16", key: "1glfcx" }],
35
35
  ["path", { d: "M20 8h-5", key: "1vsyxs" }],
@@ -42,7 +42,7 @@ const ph = Ge("ArrowUpAZ", [
42
42
  * This source code is licensed under the ISC license.
43
43
  * See the LICENSE file in the root directory of this source tree.
44
44
  */
45
- const xo = Ge("ArrowUpDown", [
45
+ const xo = Ue("ArrowUpDown", [
46
46
  ["path", { d: "m21 16-4 4-4-4", key: "f6ql7i" }],
47
47
  ["path", { d: "M17 20V4", key: "1ejh1v" }],
48
48
  ["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
@@ -54,7 +54,7 @@ const xo = Ge("ArrowUpDown", [
54
54
  * This source code is licensed under the ISC license.
55
55
  * See the LICENSE file in the root directory of this source tree.
56
56
  */
57
- const bo = Ge("Blocks", [
57
+ const bo = Ue("Blocks", [
58
58
  ["rect", { width: "7", height: "7", x: "14", y: "3", rx: "1", key: "6d4xhi" }],
59
59
  [
60
60
  "path",
@@ -70,7 +70,7 @@ const bo = Ge("Blocks", [
70
70
  * This source code is licensed under the ISC license.
71
71
  * See the LICENSE file in the root directory of this source tree.
72
72
  */
73
- const Rr = Ge("Columns3", [
73
+ const Rr = Ue("Columns3", [
74
74
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
75
75
  ["path", { d: "M9 3v18", key: "fh3hqa" }],
76
76
  ["path", { d: "M15 3v18", key: "14nvp0" }]
@@ -81,7 +81,7 @@ const Rr = Ge("Columns3", [
81
81
  * This source code is licensed under the ISC license.
82
82
  * See the LICENSE file in the root directory of this source tree.
83
83
  */
84
- const fh = Ge("Component", [
84
+ const fh = Ue("Component", [
85
85
  [
86
86
  "path",
87
87
  {
@@ -117,7 +117,7 @@ const fh = Ge("Component", [
117
117
  * This source code is licensed under the ISC license.
118
118
  * See the LICENSE file in the root directory of this source tree.
119
119
  */
120
- const vo = Ge("FileCode2", [
120
+ const vo = Ue("FileCode2", [
121
121
  ["path", { d: "M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4", key: "1pf5j1" }],
122
122
  ["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
123
123
  ["path", { d: "m5 12-3 3 3 3", key: "oke12k" }],
@@ -129,7 +129,7 @@ const vo = Ge("FileCode2", [
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 gh = Ge("FileJson2", [
132
+ const gh = Ue("FileJson2", [
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
  [
@@ -147,7 +147,7 @@ const gh = Ge("FileJson2", [
147
147
  * This source code is licensed under the ISC license.
148
148
  * See the LICENSE file in the root directory of this source tree.
149
149
  */
150
- const xh = Ge("Fullscreen", [
150
+ const xh = Ue("Fullscreen", [
151
151
  ["path", { d: "M3 7V5a2 2 0 0 1 2-2h2", key: "aa7l1z" }],
152
152
  ["path", { d: "M17 3h2a2 2 0 0 1 2 2v2", key: "4qcy5o" }],
153
153
  ["path", { d: "M21 17v2a2 2 0 0 1-2 2h-2", key: "6vwrx8" }],
@@ -160,7 +160,7 @@ const xh = Ge("Fullscreen", [
160
160
  * This source code is licensed under the ISC license.
161
161
  * See the LICENSE file in the root directory of this source tree.
162
162
  */
163
- const bh = Ge("GitCompareArrows", [
163
+ const bh = Ue("GitCompareArrows", [
164
164
  ["circle", { cx: "5", cy: "6", r: "3", key: "1qnov2" }],
165
165
  ["path", { d: "M12 6h5a2 2 0 0 1 2 2v7", key: "1yj91y" }],
166
166
  ["path", { d: "m15 9-3-3 3-3", key: "1lwv8l" }],
@@ -174,7 +174,7 @@ const bh = Ge("GitCompareArrows", [
174
174
  * This source code is licensed under the ISC license.
175
175
  * See the LICENSE file in the root directory of this source tree.
176
176
  */
177
- const vh = Ge("Hammer", [
177
+ const vh = Ue("Hammer", [
178
178
  ["path", { d: "m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9", key: "eefl8a" }],
179
179
  ["path", { d: "m18 15 4-4", key: "16gjal" }],
180
180
  [
@@ -191,7 +191,7 @@ const vh = Ge("Hammer", [
191
191
  * This source code is licensed under the ISC license.
192
192
  * See the LICENSE file in the root directory of this source tree.
193
193
  */
194
- const yh = Ge("LayoutList", [
194
+ const yh = Ue("LayoutList", [
195
195
  ["rect", { width: "7", height: "7", x: "3", y: "3", rx: "1", key: "1g98yp" }],
196
196
  ["rect", { width: "7", height: "7", x: "3", y: "14", rx: "1", key: "1bb6yr" }],
197
197
  ["path", { d: "M14 4h7", key: "3xa0d5" }],
@@ -205,7 +205,7 @@ const yh = Ge("LayoutList", [
205
205
  * This source code is licensed under the ISC license.
206
206
  * See the LICENSE file in the root directory of this source tree.
207
207
  */
208
- const Nh = Ge("ListEnd", [
208
+ const Nh = Ue("ListEnd", [
209
209
  ["path", { d: "M16 12H3", key: "1a2rj7" }],
210
210
  ["path", { d: "M16 6H3", key: "1wxfjs" }],
211
211
  ["path", { d: "M10 18H3", key: "13769t" }],
@@ -218,7 +218,7 @@ const Nh = Ge("ListEnd", [
218
218
  * This source code is licensed under the ISC license.
219
219
  * See the LICENSE file in the root directory of this source tree.
220
220
  */
221
- const Wl = Ge("ListFilter", [
221
+ const Ql = Ue("ListFilter", [
222
222
  ["path", { d: "M3 6h18", key: "d0wm0j" }],
223
223
  ["path", { d: "M7 12h10", key: "b7w52i" }],
224
224
  ["path", { d: "M10 18h4", key: "1ulq68" }]
@@ -229,7 +229,7 @@ const Wl = Ge("ListFilter", [
229
229
  * This source code is licensed under the ISC license.
230
230
  * See the LICENSE file in the root directory of this source tree.
231
231
  */
232
- const Ch = Ge("ListStart", [
232
+ const Ch = Ue("ListStart", [
233
233
  ["path", { d: "M16 12H3", key: "1a2rj7" }],
234
234
  ["path", { d: "M16 18H3", key: "12xzn7" }],
235
235
  ["path", { d: "M10 6H3", key: "lf8lx7" }],
@@ -242,7 +242,7 @@ const Ch = Ge("ListStart", [
242
242
  * This source code is licensed under the ISC license.
243
243
  * See the LICENSE file in the root directory of this source tree.
244
244
  */
245
- const wh = Ge("ListX", [
245
+ const wh = Ue("ListX", [
246
246
  ["path", { d: "M11 12H3", key: "51ecnj" }],
247
247
  ["path", { d: "M16 6H3", key: "1wxfjs" }],
248
248
  ["path", { d: "M16 18H3", key: "12xzn7" }],
@@ -255,7 +255,7 @@ const wh = Ge("ListX", [
255
255
  * This source code is licensed under the ISC license.
256
256
  * See the LICENSE file in the root directory of this source tree.
257
257
  */
258
- const qs = Ge("MoveHorizontal", [
258
+ const qs = Ue("MoveHorizontal", [
259
259
  ["path", { d: "m18 8 4 4-4 4", key: "1ak13k" }],
260
260
  ["path", { d: "M2 12h20", key: "9i4pu4" }],
261
261
  ["path", { d: "m6 8-4 4 4 4", key: "15zrgr" }]
@@ -266,7 +266,7 @@ const qs = Ge("MoveHorizontal", [
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 js = Ge("MoveVertical", [
269
+ const js = Ue("MoveVertical", [
270
270
  ["path", { d: "M12 2v20", key: "t6zp3m" }],
271
271
  ["path", { d: "m8 18 4 4 4-4", key: "bh5tu3" }],
272
272
  ["path", { d: "m8 6 4-4 4 4", key: "ybng9g" }]
@@ -277,7 +277,7 @@ const js = Ge("MoveVertical", [
277
277
  * This source code is licensed under the ISC license.
278
278
  * See the LICENSE file in the root directory of this source tree.
279
279
  */
280
- const Sh = Ge("Paintbrush", [
280
+ const Sh = Ue("Paintbrush", [
281
281
  ["path", { d: "m14.622 17.897-10.68-2.913", key: "vj2p1u" }],
282
282
  [
283
283
  "path",
@@ -300,7 +300,7 @@ const Sh = Ge("Paintbrush", [
300
300
  * This source code is licensed under the ISC license.
301
301
  * See the LICENSE file in the root directory of this source tree.
302
302
  */
303
- const Th = Ge("PanelRightClose", [
303
+ const Th = Ue("PanelRightClose", [
304
304
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
305
305
  ["path", { d: "M15 3v18", key: "14nvp0" }],
306
306
  ["path", { d: "m8 9 3 3-3 3", key: "12hl5m" }]
@@ -311,7 +311,7 @@ const Th = Ge("PanelRightClose", [
311
311
  * This source code is licensed under the ISC license.
312
312
  * See the LICENSE file in the root directory of this source tree.
313
313
  */
314
- const kh = Ge("PanelRight", [
314
+ const kh = Ue("PanelRight", [
315
315
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
316
316
  ["path", { d: "M15 3v18", key: "14nvp0" }]
317
317
  ]);
@@ -321,7 +321,7 @@ const kh = Ge("PanelRight", [
321
321
  * This source code is licensed under the ISC license.
322
322
  * See the LICENSE file in the root directory of this source tree.
323
323
  */
324
- const yo = Ge("RefreshCcw", [
324
+ const yo = Ue("RefreshCcw", [
325
325
  ["path", { d: "M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "14sxne" }],
326
326
  ["path", { d: "M3 3v5h5", key: "1xhq8a" }],
327
327
  ["path", { d: "M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16", key: "1hlbsb" }],
@@ -333,7 +333,7 @@ const yo = Ge("RefreshCcw", [
333
333
  * This source code is licensed under the ISC license.
334
334
  * See the LICENSE file in the root directory of this source tree.
335
335
  */
336
- const Ih = Ge("Shapes", [
336
+ const Ih = Ue("Shapes", [
337
337
  [
338
338
  "path",
339
339
  {
@@ -350,7 +350,7 @@ const Ih = Ge("Shapes", [
350
350
  * This source code is licensed under the ISC license.
351
351
  * See the LICENSE file in the root directory of this source tree.
352
352
  */
353
- const Dh = Ge("Sigma", [
353
+ const Dh = Ue("Sigma", [
354
354
  [
355
355
  "path",
356
356
  {
@@ -365,7 +365,7 @@ const Dh = Ge("Sigma", [
365
365
  * This source code is licensed under the ISC license.
366
366
  * See the LICENSE file in the root directory of this source tree.
367
367
  */
368
- const Eh = Ge("Spline", [
368
+ const Eh = Ue("Spline", [
369
369
  ["circle", { cx: "19", cy: "5", r: "2", key: "mhkx31" }],
370
370
  ["circle", { cx: "5", cy: "19", r: "2", key: "v8kfzx" }],
371
371
  ["path", { d: "M5 17A12 12 0 0 1 17 5", key: "1okkup" }]
@@ -376,7 +376,7 @@ const Eh = Ge("Spline", [
376
376
  * This source code is licensed under the ISC license.
377
377
  * See the LICENSE file in the root directory of this source tree.
378
378
  */
379
- const Ah = Ge("SquareFunction", [
379
+ const Ah = Ue("SquareFunction", [
380
380
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
381
381
  ["path", { d: "M9 17c2 0 2.8-1 2.8-2.8V10c0-2 1-3.3 3.2-3", key: "m1af9g" }],
382
382
  ["path", { d: "M9 11.2h5.7", key: "3zgcl2" }]
@@ -387,7 +387,7 @@ const Ah = Ge("SquareFunction", [
387
387
  * This source code is licensed under the ISC license.
388
388
  * See the LICENSE file in the root directory of this source tree.
389
389
  */
390
- const Oh = Ge("SquareSplitVertical", [
390
+ const Oh = Ue("SquareSplitVertical", [
391
391
  ["path", { d: "M5 8V5c0-1 1-2 2-2h10c1 0 2 1 2 2v3", key: "1pi83i" }],
392
392
  ["path", { d: "M19 16v3c0 1-1 2-2 2H7c-1 0-2-1-2-2v-3", key: "ido5k7" }],
393
393
  ["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }]
@@ -398,7 +398,7 @@ const Oh = Ge("SquareSplitVertical", [
398
398
  * This source code is licensed under the ISC license.
399
399
  * See the LICENSE file in the root directory of this source tree.
400
400
  */
401
- const Fh = Ge("Tag", [
401
+ const Fh = Ue("Tag", [
402
402
  [
403
403
  "path",
404
404
  {
@@ -414,7 +414,7 @@ const Fh = Ge("Tag", [
414
414
  * This source code is licensed under the ISC license.
415
415
  * See the LICENSE file in the root directory of this source tree.
416
416
  */
417
- const Mh = Ge("Tags", [
417
+ const Mh = Ue("Tags", [
418
418
  ["path", { d: "m15 5 6.3 6.3a2.4 2.4 0 0 1 0 3.4L17 19", key: "1cbfv1" }],
419
419
  [
420
420
  "path",
@@ -459,13 +459,13 @@ function Rh({
459
459
  return i.length === 0 ? /* @__PURE__ */ e(Ia, { open: t, onOpenChange: n, children: /* @__PURE__ */ a(Da, { className: "max-w-md", children: [
460
460
  /* @__PURE__ */ a(Ea, { children: [
461
461
  /* @__PURE__ */ e(Aa, { children: "No Data Available" }),
462
- /* @__PURE__ */ e(Wa, { children: "No entities are currently available in the AI context. Please add some data sources to the dashboard first." })
462
+ /* @__PURE__ */ e(Qa, { children: "No entities are currently available in the AI context. Please add some data sources to the dashboard first." })
463
463
  ] }),
464
464
  /* @__PURE__ */ e(ns, { children: /* @__PURE__ */ e(Z, { onClick: () => n(!1), children: "Close" }) })
465
465
  ] }) }) : /* @__PURE__ */ e(Ia, { open: t, onOpenChange: n, children: /* @__PURE__ */ a(Da, { className: "flex max-w-2xl flex-col", children: [
466
466
  /* @__PURE__ */ a(Ea, { children: [
467
467
  /* @__PURE__ */ e(Aa, { children: "Select Data to Analyze" }),
468
- /* @__PURE__ */ e(Wa, { children: "Choose entities from the dashboard's context" })
468
+ /* @__PURE__ */ e(Qa, { children: "Choose entities from the dashboard's context" })
469
469
  ] }),
470
470
  /* @__PURE__ */ a("div", { className: "flex-1 space-y-4", children: [
471
471
  /* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
@@ -502,7 +502,7 @@ function Rh({
502
502
  /* @__PURE__ */ e(sn, { className: "h-64", children: /* @__PURE__ */ e("div", { className: "space-y-2", children: i.map((u, f) => /* @__PURE__ */ a(
503
503
  "div",
504
504
  {
505
- className: Q(
505
+ className: W(
506
506
  "flex items-center gap-3 rounded-lg border p-3 transition-colors hover:bg-muted/50",
507
507
  p(u) && "border-primary bg-primary/5"
508
508
  ),
@@ -1449,7 +1449,7 @@ function No({
1449
1449
  /* @__PURE__ */ a(Da, { className: "max-w-4xl", children: [
1450
1450
  /* @__PURE__ */ a(Ea, { children: [
1451
1451
  /* @__PURE__ */ e(Aa, { children: "Join Configuration" }),
1452
- /* @__PURE__ */ e(Wa, { children: "Configure the join between the two entities to combine the fields." })
1452
+ /* @__PURE__ */ e(Qa, { children: "Configure the join between the two entities to combine the fields." })
1453
1453
  ] }),
1454
1454
  /* @__PURE__ */ e(
1455
1455
  Ph,
@@ -1727,7 +1727,7 @@ function _h() {
1727
1727
  /* @__PURE__ */ e(
1728
1728
  kt,
1729
1729
  {
1730
- className: Q(
1730
+ className: W(
1731
1731
  "h-3 w-3 shrink-0 text-muted-foreground transition-transform",
1732
1732
  t && "rotate-180"
1733
1733
  )
@@ -1859,7 +1859,7 @@ function Co({ isVisible: t }) {
1859
1859
  return /* @__PURE__ */ a(
1860
1860
  "div",
1861
1861
  {
1862
- className: Q(
1862
+ className: W(
1863
1863
  "flex shrink-0 flex-col overflow-hidden border-r border-border bg-background transition-all duration-300 ease-in-out",
1864
1864
  {
1865
1865
  "w-[290px]": t,
@@ -1988,12 +1988,12 @@ function Kh() {
1988
1988
  }
1989
1989
  );
1990
1990
  }
1991
- const Gh = /\{\{-?\s*filters\s*\|\s*where\s*-?\}\}/i, Uh = /\{\{-?\s*filters\s*\|\s*and\s*-?\}\}/i, Hh = /\bwhere\b/i;
1992
- function Qh(t) {
1993
- return t != null && t.trim() ? Gh.test(t) || Uh.test(t) : !1;
1994
- }
1991
+ const Uh = /\{\{-?\s*filters\s*\|\s*where\s*-?\}\}/i, Gh = /\{\{-?\s*filters\s*\|\s*and\s*-?\}\}/i, Hh = /\bwhere\b/i;
1995
1992
  function Wh(t) {
1996
- return !(t != null && t.trim()) || Qh(t) ? null : Hh.test(t) ? {
1993
+ return t != null && t.trim() ? Uh.test(t) || Gh.test(t) : !1;
1994
+ }
1995
+ function Qh(t) {
1996
+ return !(t != null && t.trim()) || Wh(t) ? null : Hh.test(t) ? {
1997
1997
  helper: "{{ filters | and }}",
1998
1998
  description: "Use this inside your existing WHERE clause to append dashboard filters."
1999
1999
  } : {
@@ -2077,7 +2077,7 @@ function Xh(t, n) {
2077
2077
  })
2078
2078
  );
2079
2079
  }
2080
- const Gs = {
2080
+ const Us = {
2081
2081
  runId: 0,
2082
2082
  phase: "idle",
2083
2083
  attempt: 0,
@@ -2149,8 +2149,8 @@ function ap({
2149
2149
  onApplySql: i,
2150
2150
  onOpenFullAssistant: l
2151
2151
  }) {
2152
- var Un, Ft;
2153
- const { authToken: c, tokenProps: o } = La(), m = (Un = wi().data) == null ? void 0 : Un.assistantProfileId, h = M((X) => X.isDevMode), v = M(
2152
+ var Gn, Ft;
2153
+ const { authToken: c, tokenProps: o } = La(), m = (Gn = wi().data) == null ? void 0 : Gn.assistantProfileId, h = M((X) => X.isDevMode), v = M(
2154
2154
  (X) => X.selectedConnectionId
2155
2155
  ), p = M(
2156
2156
  (X) => {
@@ -2160,12 +2160,12 @@ function ap({
2160
2160
  ), u = Sn(
2161
2161
  (X) => X.currentAIContext.selectedEntities
2162
2162
  ), f = u.length, { setCurrentAIContext: C } = Or(), [g, w] = K(""), [E, V] = K(""), [N, T] = K(""), [I, k] = K("draft"), [y, O] = K("draft"), [x, R] = K(""), [D, F] = K(!1), [L, b] = K({ status: "idle" }), [S, A] = K(
2163
- Gs
2163
+ Us
2164
2164
  ), [B, z] = K(!1), [_, P] = K(
2165
2165
  () => Jn("inline-query-session")
2166
- ), q = Ee(null), H = Ee(null), Y = Ee(null), W = Ee(0), de = Ee(0), oe = Ee(
2166
+ ), q = Ee(null), H = Ee(null), Y = Ee(null), Q = Ee(0), de = Ee(0), oe = Ee(
2167
2167
  Jn("inline-run-token")
2168
- ), ue = Ee(_), Ce = Ee(/* @__PURE__ */ new Set()), me = Ee(/* @__PURE__ */ new Map()), xe = Ee(0), Le = Ee(""), et = Ee(!1), Je = Ee(!1), ie = Ee(Gs), Oe = Ee(!1), He = Ee(null), at = Ee(() => {
2168
+ ), ue = Ee(_), Ce = Ee(/* @__PURE__ */ new Set()), me = Ee(/* @__PURE__ */ new Map()), xe = Ee(0), Le = Ee(""), et = Ee(!1), Je = Ee(!1), ie = Ee(Us), Oe = Ee(!1), He = Ee(null), at = Ee(() => {
2169
2169
  }), mt = (Ft = o.apiServiceUrl) == null ? void 0 : Ft.replace(/\/$/, ""), ye = mt ? `${mt}/v1/sql/validate` : "/v1/sql/validate", Pe = Ie(
2170
2170
  (X) => {
2171
2171
  A((le) => {
@@ -2181,7 +2181,7 @@ function ap({
2181
2181
  );
2182
2182
  },
2183
2183
  [Pe]
2184
- ), fe = Ie((X) => de.current === X && !Ce.current.has(X), []), G = Ie(
2184
+ ), fe = Ie((X) => de.current === X && !Ce.current.has(X), []), U = Ie(
2185
2185
  (X, le, re) => {
2186
2186
  Ve(X, (Fe) => {
2187
2187
  const be = Fe.timelineSteps.includes(le) ? Fe.timelineSteps : [...Fe.timelineSteps, le];
@@ -2261,10 +2261,10 @@ function ap({
2261
2261
  const X = He.current;
2262
2262
  !X || X.sessionId !== _ || (He.current = null, qe(X.message, X.runToken));
2263
2263
  }, [_, qe]);
2264
- const Ue = _, pe = Ie(
2264
+ const Ge = _, pe = Ie(
2265
2265
  async ({ toolCall: X }) => {
2266
2266
  var Xe, Mt, qt, Na, ct, qa;
2267
- if (Ue !== ue.current)
2267
+ if (Ge !== ue.current)
2268
2268
  return;
2269
2269
  const le = String(X.toolName || "").trim();
2270
2270
  if (!le)
@@ -2282,7 +2282,7 @@ function ap({
2282
2282
  return;
2283
2283
  }
2284
2284
  if (le === "getUserSql") {
2285
- G(re, Yl(le), {
2285
+ U(re, Yl(le), {
2286
2286
  hasTools: !0
2287
2287
  }), Ne("inline_tool_step", re, { hasTools: !0 }), (Mt = H.current) == null || Mt.call(H, {
2288
2288
  tool: le,
@@ -2308,7 +2308,7 @@ function ap({
2308
2308
  return;
2309
2309
  }
2310
2310
  const Re = Yl(le);
2311
- G(re, Re, {
2311
+ U(re, Re, {
2312
2312
  phase: S.phase === "self-healing" ? "self-healing" : "drafting",
2313
2313
  hasTools: !0
2314
2314
  }), Ne("inline_tool_step", re, { hasTools: !0 });
@@ -2328,12 +2328,12 @@ function ap({
2328
2328
  Ne,
2329
2329
  S.phase,
2330
2330
  fe,
2331
- Ue,
2332
- G
2331
+ Ge,
2332
+ U
2333
2333
  ]
2334
2334
  ), je = Ie(
2335
2335
  ({ message: X, messages: le }) => {
2336
- if (Ue !== ue.current)
2336
+ if (Ge !== ue.current)
2337
2337
  return;
2338
2338
  const re = Xl(le);
2339
2339
  if (!re || re !== oe.current)
@@ -2348,22 +2348,22 @@ function ap({
2348
2348
  }
2349
2349
  Oe.current && ie.current.phase === "self-healing" && at.current(Fe);
2350
2350
  },
2351
- [fe, Ue]
2351
+ [fe, Ge]
2352
2352
  ), Ye = Ie(
2353
2353
  (X) => {
2354
- if (Ue !== ue.current)
2354
+ if (Ge !== ue.current)
2355
2355
  return;
2356
2356
  const le = de.current;
2357
2357
  fe(le) && Oe.current && ie.current.phase === "self-healing" && at.current(le);
2358
2358
  },
2359
- [fe, Ue]
2359
+ [fe, Ge]
2360
2360
  ), {
2361
2361
  setMessages: _e,
2362
2362
  sendMessage: ze,
2363
2363
  addToolResult: Nt,
2364
2364
  status: Ot,
2365
2365
  stop: ge,
2366
- error: We,
2366
+ error: Qe,
2367
2367
  clearError: gt
2368
2368
  } = Si({
2369
2369
  id: _,
@@ -2409,14 +2409,14 @@ function ap({
2409
2409
  H.current = Nt, Y.current = ze;
2410
2410
  const Be = !["ready", "error"].includes(
2411
2411
  Ot
2412
- ), _t = (We == null ? void 0 : We.message) || "Unable to generate a SQL draft right now. Try again.", Qe = Ie(
2412
+ ), _t = (Qe == null ? void 0 : Qe.message) || "Unable to generate a SQL draft right now. Try again.", We = Ie(
2413
2413
  (X) => {
2414
2414
  const le = de.current, re = ie.current.phase;
2415
2415
  if (!(re === "drafting" || re === "self-healing" || re === "validating")) {
2416
2416
  X === "stopped" && Be && ge();
2417
2417
  return;
2418
2418
  }
2419
- Ce.current.add(le), Oe.current = !1, W.current += 1, Le.current = "", b({ status: "idle" }), T(""), gt(), _e([]), Ve(le, (be) => ({
2419
+ Ce.current.add(le), Oe.current = !1, Q.current += 1, Le.current = "", b({ status: "idle" }), T(""), gt(), _e([]), Ve(le, (be) => ({
2420
2420
  ...be,
2421
2421
  phase: "idle",
2422
2422
  activeStep: "",
@@ -2438,8 +2438,8 @@ function ap({
2438
2438
  var Fe;
2439
2439
  if (!fe(le))
2440
2440
  return null;
2441
- const re = W.current + 1;
2442
- W.current = re, G(le, "Validating SQL", {
2441
+ const re = Q.current + 1;
2442
+ Q.current = re, U(le, "Validating SQL", {
2443
2443
  phase: "validating"
2444
2444
  }), b({ status: "validating" });
2445
2445
  try {
@@ -2451,7 +2451,7 @@ function ap({
2451
2451
  connectionId: v || void 0
2452
2452
  }
2453
2453
  );
2454
- if (W.current !== re || !fe(le))
2454
+ if (Q.current !== re || !fe(le))
2455
2455
  return null;
2456
2456
  if ((be == null ? void 0 : be.valid) === !0)
2457
2457
  return b({
@@ -2488,7 +2488,7 @@ function ap({
2488
2488
  errorCode: Re
2489
2489
  };
2490
2490
  } catch (be) {
2491
- if (W.current !== re || !fe(le))
2491
+ if (Q.current !== re || !fe(le))
2492
2492
  return null;
2493
2493
  const Re = Im(
2494
2494
  be,
@@ -2521,7 +2521,7 @@ function ap({
2521
2521
  v,
2522
2522
  ye,
2523
2523
  Ve,
2524
- G
2524
+ U
2525
2525
  ]
2526
2526
  ), xa = Ie(
2527
2527
  (X, le, re, Fe) => {
@@ -2530,7 +2530,7 @@ function ap({
2530
2530
  status: "invalid",
2531
2531
  message: be,
2532
2532
  errorCode: Fe
2533
- }), G(X, $e, {
2533
+ }), U(X, $e, {
2534
2534
  phase: "error",
2535
2535
  finalOutcome: Re
2536
2536
  }), Ve(X, (Xe) => ({
@@ -2547,7 +2547,7 @@ function ap({
2547
2547
  finalOutcome: Re
2548
2548
  }), Oe.current = !1;
2549
2549
  },
2550
- [Ne, Ve, G]
2550
+ [Ne, Ve, U]
2551
2551
  ), on = Ie(
2552
2552
  (X) => {
2553
2553
  const le = "Auto-fix stopped (no SQL returned). Open Full Assistant to continue.", re = "self_heal_no_draft";
@@ -2555,7 +2555,7 @@ function ap({
2555
2555
  status: "invalid",
2556
2556
  message: le,
2557
2557
  errorCode: "UNKNOWN"
2558
- }), G(X, "Auto-fix stopped (no SQL returned)", {
2558
+ }), U(X, "Auto-fix stopped (no SQL returned)", {
2559
2559
  phase: "error",
2560
2560
  finalOutcome: re
2561
2561
  }), Ve(X, (Fe) => ({
@@ -2572,12 +2572,12 @@ function ap({
2572
2572
  finalOutcome: re
2573
2573
  }), Oe.current = !1;
2574
2574
  },
2575
- [Ne, Ve, G]
2575
+ [Ne, Ve, U]
2576
2576
  );
2577
2577
  at.current = on, Se(() => {
2578
2578
  const X = N.trim(), le = de.current;
2579
2579
  if (!X) {
2580
- if (W.current += 1, Le.current = "", ie.current.phase === "error")
2580
+ if (Q.current += 1, Le.current = "", ie.current.phase === "error")
2581
2581
  return;
2582
2582
  b({ status: "idle" });
2583
2583
  return;
@@ -2607,7 +2607,7 @@ function ap({
2607
2607
  return;
2608
2608
  }
2609
2609
  const Mt = xe.current + 1;
2610
- xe.current = Mt, G(le, sr, {
2610
+ xe.current = Mt, U(le, sr, {
2611
2611
  phase: "self-healing",
2612
2612
  attempt: Mt
2613
2613
  }), Ne("inline_self_heal_attempt", le, {
@@ -2645,7 +2645,7 @@ function ap({
2645
2645
  qe,
2646
2646
  _e,
2647
2647
  xa,
2648
- G,
2648
+ U,
2649
2649
  $n
2650
2650
  ]);
2651
2651
  const zt = (t == null ? void 0 : t.trim()) || "", Et = Ie((X = "draft") => {
@@ -2659,7 +2659,7 @@ function ap({
2659
2659
  attemptCount: 0,
2660
2660
  hasTools: !1,
2661
2661
  finalOutcome: "drafting"
2662
- }), he(), gt(), V(le), T(""), k(re), R(Fe), F(!1), b({ status: "idle" }), W.current += 1, _e([]), z(!0);
2662
+ }), he(), gt(), V(le), T(""), k(re), R(Fe), F(!1), b({ status: "idle" }), Q.current += 1, _e([]), z(!0);
2663
2663
  const Mt = Jh({
2664
2664
  request: le,
2665
2665
  mode: re,
@@ -2712,25 +2712,25 @@ function ap({
2712
2712
  he(), z(!0);
2713
2713
  }, [he]), ya = Ie(
2714
2714
  (X) => {
2715
- Qe("cancelled"), w(X);
2715
+ We("cancelled"), w(X);
2716
2716
  },
2717
- [Qe]
2717
+ [We]
2718
2718
  ), Kn = Ie(() => {
2719
- Be || (Qe("cancelled"), Oe.current = !1, W.current += 1, Le.current = "", xe.current = 0, w(""), V(""), T(""), k("draft"), O("draft"), R(""), F(!1), b({ status: "idle" }), gt(), _e([]), Pe((X) => ({
2720
- ...Gs,
2719
+ Be || (We("cancelled"), Oe.current = !1, Q.current += 1, Le.current = "", xe.current = 0, w(""), V(""), T(""), k("draft"), O("draft"), R(""), F(!1), b({ status: "idle" }), gt(), _e([]), Pe((X) => ({
2720
+ ...Us,
2721
2721
  runId: X.runId
2722
2722
  })));
2723
2723
  }, [
2724
- Qe,
2724
+ We,
2725
2725
  gt,
2726
2726
  Be,
2727
2727
  _e,
2728
2728
  Pe
2729
- ]), Gn = Ie(
2729
+ ]), Un = Ie(
2730
2730
  (X) => {
2731
- X || Qe("cancelled"), z(X);
2731
+ X || We("cancelled"), z(X);
2732
2732
  },
2733
- [Qe]
2733
+ [We]
2734
2734
  ), za = S.timelineSteps.findIndex(
2735
2735
  (X) => X === S.activeStep
2736
2736
  ), Ms = S.phase === "self-healing" ? "Fixing validation issue" : S.phase === "validating" ? "Validating SQL" : S.activeStep || "Drafting SQL", $a = L.status === "valid" ? {
@@ -2776,7 +2776,7 @@ function ap({
2776
2776
  ].join(" ")
2777
2777
  }
2778
2778
  ),
2779
- /* @__PURE__ */ a(It, { open: B, onOpenChange: Gn, children: [
2779
+ /* @__PURE__ */ a(It, { open: B, onOpenChange: Un, children: [
2780
2780
  /* @__PURE__ */ e(Dm, { asChild: !0, children: /* @__PURE__ */ e("div", { className: "pointer-events-none absolute inset-0" }) }),
2781
2781
  /* @__PURE__ */ a("div", { className: "absolute right-1 flex items-center gap-1", children: [
2782
2782
  qn && /* @__PURE__ */ e(
@@ -2787,7 +2787,7 @@ function ap({
2787
2787
  size: "sm",
2788
2788
  className: "size-6 p-0",
2789
2789
  onClick: (X) => {
2790
- X.preventDefault(), Qe("cancelled"), w("");
2790
+ X.preventDefault(), We("cancelled"), w("");
2791
2791
  },
2792
2792
  disabled: Be,
2793
2793
  "aria-label": "Clear input",
@@ -2883,7 +2883,7 @@ function ap({
2883
2883
  variant: "ghost",
2884
2884
  size: "xs",
2885
2885
  onClick: () => {
2886
- Qe("stopped");
2886
+ We("stopped");
2887
2887
  },
2888
2888
  children: "Stop"
2889
2889
  }
@@ -2943,7 +2943,7 @@ function ap({
2943
2943
  /* @__PURE__ */ e(ha, { className: "size-3.5 animate-spin" }),
2944
2944
  Ms
2945
2945
  ] }),
2946
- We && /* @__PURE__ */ e("div", { className: "rounded-md border border-destructive/40 bg-destructive/5 px-3 py-2 text-xs text-destructive", children: _t }),
2946
+ Qe && /* @__PURE__ */ e("div", { className: "rounded-md border border-destructive/40 bg-destructive/5 px-3 py-2 text-xs text-destructive", children: _t }),
2947
2947
  I === "refine" && x && /* @__PURE__ */ a("div", { className: "space-y-1", children: [
2948
2948
  /* @__PURE__ */ a("div", { className: "flex items-center justify-between rounded-[5px] border border-border/60 bg-muted/20 px-2.5 py-1.5 text-[11px]", children: [
2949
2949
  /* @__PURE__ */ e("span", { className: "text-muted-foreground", children: "Refining editor SQL" }),
@@ -3081,11 +3081,11 @@ function np() {
3081
3081
  (Oe) => (Oe == null ? void 0 : Oe.id) === (d == null ? void 0 : d.id)
3082
3082
  );
3083
3083
  return ie < 0 ? -1 : Yt(d, ie);
3084
- }, [f, d]), g = ce(() => !h || u !== "multiple" || C < 0 ? d.type : Ua(
3084
+ }, [f, d]), g = ce(() => !h || u !== "multiple" || C < 0 ? d.type : Ga(
3085
3085
  d,
3086
3086
  C,
3087
3087
  p == null ? void 0 : p.slots
3088
- ) ?? d.type, [h, u, C, d, p == null ? void 0 : p.slots]), w = ce(() => g !== d.type ? { ...d, type: g } : d, [d, g]), E = ce(() => o === 0 ? null : Wh(d == null ? void 0 : d.sql), [d == null ? void 0 : d.sql, o]), V = Ee(!0), {
3088
+ ) ?? d.type, [h, u, C, d, p == null ? void 0 : p.slots]), w = ce(() => g !== d.type ? { ...d, type: g } : d, [d, g]), E = ce(() => o === 0 ? null : Qh(d == null ? void 0 : d.sql), [d == null ? void 0 : d.sql, o]), V = Ee(!0), {
3089
3089
  setCardCustomCfg: N,
3090
3090
  setQueryResultColumns: T,
3091
3091
  setCardSql: I,
@@ -3110,11 +3110,11 @@ function np() {
3110
3110
  isError: q,
3111
3111
  error: H,
3112
3112
  errorSql: Y,
3113
- queryKey: W,
3113
+ queryKey: Q,
3114
3114
  refetch: de,
3115
3115
  errorMessage: oe
3116
- } = bt(w), ue = Ee(W);
3117
- ue.current = W, Se(() => {
3116
+ } = bt(w), ue = Ee(Q);
3117
+ ue.current = Q, Se(() => {
3118
3118
  if (B)
3119
3119
  if (B.rowLimitExceeded && st.error("Row limit (10,000) exceeded. Refine your query.", {
3120
3120
  position: "top-center",
@@ -3138,8 +3138,8 @@ function np() {
3138
3138
  // setQueryError,
3139
3139
  H
3140
3140
  ]), Se(() => {
3141
- b && (t.getQueryData(W) || de(), S(!1));
3142
- }, [b, de, S, W, t]);
3141
+ b && (t.getQueryData(Q) || de(), S(!1));
3142
+ }, [b, de, S, Q, t]);
3143
3143
  const Ce = Ee(de);
3144
3144
  Ce.current = de, Se(() => {
3145
3145
  if (V.current) {
@@ -3454,7 +3454,7 @@ function lp({
3454
3454
  return /* @__PURE__ */ a(
3455
3455
  "div",
3456
3456
  {
3457
- className: Q(
3457
+ className: W(
3458
3458
  "flex min-w-0 select-none items-center gap-1.5 transition-colors",
3459
3459
  B.getCanSort() && "cursor-pointer hover:text-foreground",
3460
3460
  A && "justify-end"
@@ -3472,7 +3472,7 @@ function lp({
3472
3472
  return /* @__PURE__ */ e(
3473
3473
  "div",
3474
3474
  {
3475
- className: Q(
3475
+ className: W(
3476
3476
  "overflow-hidden truncate whitespace-nowrap leading-5",
3477
3477
  A && "text-right tabular-nums",
3478
3478
  z === null && "text-muted-foreground/50 italic"
@@ -3518,7 +3518,7 @@ function lp({
3518
3518
  return /* @__PURE__ */ e(
3519
3519
  kc,
3520
3520
  {
3521
- className: Q(
3521
+ className: W(
3522
3522
  "group/header relative h-auto border-b border-transparent bg-muted/95 px-4 py-2 align-middle text-[10px] font-medium tracking-[0.08em] text-muted-foreground after:absolute after:bottom-0 after:left-0 after:right-0 after:h-px after:bg-border/60",
3523
3523
  B && "text-right"
3524
3524
  ),
@@ -3543,7 +3543,7 @@ function lp({
3543
3543
  return /* @__PURE__ */ e(
3544
3544
  Il,
3545
3545
  {
3546
- className: Q(
3546
+ className: W(
3547
3547
  "overflow-hidden px-4 py-2 text-[13px] text-foreground/90",
3548
3548
  B && "text-right"
3549
3549
  ),
@@ -3631,7 +3631,7 @@ function ip({ className: t }) {
3631
3631
  "div",
3632
3632
  {
3633
3633
  "aria-hidden": "true",
3634
- className: Q("invisible flex items-center gap-5", t),
3634
+ className: W("invisible flex items-center gap-5", t),
3635
3635
  children: /* @__PURE__ */ e("span", { className: "-mb-px flex h-9 items-center border-b-2 border-transparent text-[12px]", children: "Placeholder" })
3636
3636
  }
3637
3637
  );
@@ -3728,7 +3728,7 @@ function ip({ className: t }) {
3728
3728
  "div",
3729
3729
  {
3730
3730
  role: "tablist",
3731
- className: Q("flex items-center gap-5", t),
3731
+ className: W("flex items-center gap-5", t),
3732
3732
  children: c.map((u) => {
3733
3733
  const f = d === u.value;
3734
3734
  return /* @__PURE__ */ e(
@@ -3738,7 +3738,7 @@ function ip({ className: t }) {
3738
3738
  role: "tab",
3739
3739
  "aria-selected": f,
3740
3740
  onClick: () => v(u.value),
3741
- className: Q(
3741
+ className: W(
3742
3742
  "-mb-px flex h-9 items-center border-b-2 text-[12px] transition-colors",
3743
3743
  f ? "border-foreground font-medium text-foreground" : "border-transparent text-muted-foreground hover:text-foreground"
3744
3744
  ),
@@ -3765,7 +3765,7 @@ function Lr({
3765
3765
  return /* @__PURE__ */ a(
3766
3766
  "div",
3767
3767
  {
3768
- className: Q(
3768
+ className: W(
3769
3769
  "w-full space-y-3 rounded-[6px] border border-border/60 bg-card p-4",
3770
3770
  c
3771
3771
  ),
@@ -3820,7 +3820,7 @@ function Lr({
3820
3820
  }
3821
3821
  )
3822
3822
  ] }),
3823
- n && /* @__PURE__ */ e(Ut, { open: o, onOpenChange: m, children: /* @__PURE__ */ a(Ht, { className: "space-y-1.5", children: [
3823
+ n && /* @__PURE__ */ e(Gt, { open: o, onOpenChange: m, children: /* @__PURE__ */ a(Ht, { className: "space-y-1.5", children: [
3824
3824
  /* @__PURE__ */ a("div", { className: "flex items-center justify-between pt-1", children: [
3825
3825
  /* @__PURE__ */ e("span", { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Query" }),
3826
3826
  /* @__PURE__ */ e(Ha, { text: n, className: "h-6 w-6" })
@@ -3865,7 +3865,7 @@ function To({
3865
3865
  style: n,
3866
3866
  ...s
3867
3867
  }) {
3868
- var he, ke, Ne, qe, Ue;
3868
+ var he, ke, Ne, qe, Ge;
3869
3869
  const r = M((pe) => pe.card), d = yr(), l = M((pe) => pe.isDevMode) ? !1 : ((he = r.customCardPreferences) == null ? void 0 : he.showCardHeader) ?? !0, c = ((Ne = (ke = r.preferences) == null ? void 0 : ke.displayOptions) == null ? void 0 : Ne.showInlineFilterBar) ?? !0, o = M((pe) => pe.frame), m = M(
3870
3870
  (pe) => pe.inlineFilterValuesMap[r.id]
3871
3871
  ), h = Ae((pe) => pe.dashboard.filters), v = Ae((pe) => pe.selectedSheetId), [p, u] = K(!1), { currentUser: f } = Nr(), { tokenProps: C } = pr(Cr), g = M((pe) => pe.actions.setRunSql), w = M(
@@ -3887,7 +3887,7 @@ function To({
3887
3887
  }
3888
3888
  );
3889
3889
  },
3890
- [I, (Ue = T == null ? void 0 : T.customCardPreferences) == null ? void 0 : Ue.componentName]
3890
+ [I, (Ge = T == null ? void 0 : T.customCardPreferences) == null ? void 0 : Ge.componentName]
3891
3891
  ), y = fa(T, k), O = ce(
3892
3892
  () => Vn({
3893
3893
  frame: o,
@@ -3900,14 +3900,14 @@ function To({
3900
3900
  (je) => (je == null ? void 0 : je.id) === (r == null ? void 0 : r.id)
3901
3901
  );
3902
3902
  return pe < 0 ? -1 : Yt(r, pe);
3903
- }, [O, r]), R = ce(() => !T || y !== "multiple" || x < 0 ? r.type : Ua(
3903
+ }, [O, r]), R = ce(() => !T || y !== "multiple" || x < 0 ? r.type : Ga(
3904
3904
  r,
3905
3905
  x,
3906
3906
  k == null ? void 0 : k.slots
3907
3907
  ) ?? r.type, [T, y, x, r, k == null ? void 0 : k.slots]), D = R ?? r.type, F = ce(
3908
3908
  () => D === r.type ? r : { ...r, type: D },
3909
3909
  [r, D]
3910
- ), L = F.type === "table" || F.type === "pivotTable" || F.type === "aggregateTable" || F.type === "detailTable", b = ce(() => R !== r.type ? { ...r, type: R } : r, [r, R]), { data: S, isLoading: A, isFetching: B, errorMessage: z, errorSql: _, pagination: P } = bt(b), { handleOpenInEditor: q, handleDebugWithAssistant: H } = So(z, _ || r.sql || r.python), Y = ce(() => (S == null ? void 0 : S.records) || [], [S == null ? void 0 : S.records]), { setCard: W, updateCardInFrame: de } = we(), { data: oe } = wr(F), ue = F.id, Ce = F.config, me = F.interactionConfig, xe = F.customCfg, Le = F.preferences, et = F.queryConfig, Je = !!F.sql, ie = S == null ? void 0 : S.records, Oe = ce(
3910
+ ), L = F.type === "table" || F.type === "pivotTable" || F.type === "aggregateTable" || F.type === "detailTable", b = ce(() => R !== r.type ? { ...r, type: R } : r, [r, R]), { data: S, isLoading: A, isFetching: B, errorMessage: z, errorSql: _, pagination: P } = bt(b), { handleOpenInEditor: q, handleDebugWithAssistant: H } = So(z, _ || r.sql || r.python), Y = ce(() => (S == null ? void 0 : S.records) || [], [S == null ? void 0 : S.records]), { setCard: Q, updateCardInFrame: de } = we(), { data: oe } = wr(F), ue = F.id, Ce = F.config, me = F.interactionConfig, xe = F.customCfg, Le = F.preferences, et = F.queryConfig, Je = !!F.sql, ie = S == null ? void 0 : S.records, Oe = ce(
3911
3911
  () => ({
3912
3912
  id: ue,
3913
3913
  type: D,
@@ -3975,7 +3975,7 @@ function To({
3975
3975
  pageSize: je
3976
3976
  }
3977
3977
  };
3978
- W(Ye), de(Ye), r.sql && ((ze = (_e = r.preferences) == null ? void 0 : _e.tablePrefs) != null && ze.enableDevModePagination) && g(!0);
3978
+ Q(Ye), de(Ye), r.sql && ((ze = (_e = r.preferences) == null ? void 0 : _e.tablePrefs) != null && ze.enableDevModePagination) && g(!0);
3979
3979
  }, Ve = (pe) => {
3980
3980
  var _e, ze, Nt, Ot, ge;
3981
3981
  const je = Tr(
@@ -3990,7 +3990,7 @@ function To({
3990
3990
  sortByColumns: je
3991
3991
  }
3992
3992
  };
3993
- W(Ye), de(Ye), r.sql && ((ge = (Ot = r.preferences) == null ? void 0 : Ot.tablePrefs) != null && ge.enableDevModePagination) && g(!0);
3993
+ Q(Ye), de(Ye), r.sql && ((ge = (Ot = r.preferences) == null ? void 0 : Ot.tablePrefs) != null && ge.enableDevModePagination) && g(!0);
3994
3994
  }, fe = ce(() => !ue || !ie ? null : Fi({
3995
3995
  card: Oe,
3996
3996
  data: ie,
@@ -4012,7 +4012,7 @@ function To({
4012
4012
  D,
4013
4013
  oe
4014
4014
  ]);
4015
- function G(pe) {
4015
+ function U(pe) {
4016
4016
  return /* @__PURE__ */ e(hs, { FallbackComponent: Sr, children: /* @__PURE__ */ e(zc, { card: pe }) });
4017
4017
  }
4018
4018
  function J() {
@@ -4036,7 +4036,7 @@ function To({
4036
4036
  return D === "table" || D === "detailTable" ? /* @__PURE__ */ e("div", { className: "relative mb-2 flex h-full min-h-0 w-full flex-1 grow basis-0", children: /* @__PURE__ */ e(Lc, {}) }) : /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(Kt, { size: "md", color: "muted", "aria-label": "Loading data" }) });
4037
4037
  if (!F.id) return null;
4038
4038
  if (D === "custom")
4039
- return G(r);
4039
+ return U(r);
4040
4040
  if (![
4041
4041
  "table",
4042
4042
  "pivotTable",
@@ -4076,14 +4076,14 @@ function To({
4076
4076
  je,
4077
4077
  r.config
4078
4078
  ), _e = { ...r, config: Ye };
4079
- W(_e), de(_e);
4079
+ Q(_e), de(_e);
4080
4080
  },
4081
4081
  onAggregationLabelChange: (je) => {
4082
4082
  const Ye = Bc(
4083
4083
  je,
4084
4084
  r.config
4085
4085
  ), _e = { ...r, config: Ye };
4086
- W(_e), de(_e);
4086
+ Q(_e), de(_e);
4087
4087
  }
4088
4088
  }
4089
4089
  ) });
@@ -4102,7 +4102,7 @@ function To({
4102
4102
  je,
4103
4103
  r.config
4104
4104
  ), _e = { ...r, config: Ye };
4105
- W(_e), de(_e);
4105
+ Q(_e), de(_e);
4106
4106
  },
4107
4107
  isLoading: A || B
4108
4108
  }
@@ -4112,7 +4112,7 @@ function To({
4112
4112
  fr,
4113
4113
  {
4114
4114
  role: "editor-visual-card",
4115
- className: Q(
4115
+ className: W(
4116
4116
  "relative flex h-full flex-col rounded-none bg-card text-card-foreground",
4117
4117
  t
4118
4118
  ),
@@ -4126,7 +4126,7 @@ function To({
4126
4126
  l && /* @__PURE__ */ a(
4127
4127
  vi,
4128
4128
  {
4129
- className: Q(
4129
+ className: W(
4130
4130
  "flex flex-row items-start justify-between gap-4 px-4 pb-3 pt-3"
4131
4131
  ),
4132
4132
  style: d.cardGutterStyle,
@@ -4137,7 +4137,7 @@ function To({
4137
4137
  wn,
4138
4138
  {
4139
4139
  value: r.title,
4140
- onSave: (pe) => W({ ...r, title: pe }),
4140
+ onSave: (pe) => Q({ ...r, title: pe }),
4141
4141
  isEditable: !0,
4142
4142
  placeholder: "Add title",
4143
4143
  displayClassName: "text-[17px] font-semibold leading-tight tracking-[-0.005em]",
@@ -4152,7 +4152,7 @@ function To({
4152
4152
  wn,
4153
4153
  {
4154
4154
  value: (r.description || "").trim(),
4155
- onSave: (pe) => W({ ...r, description: pe.trim() }),
4155
+ onSave: (pe) => Q({ ...r, description: pe.trim() }),
4156
4156
  isEditable: !0,
4157
4157
  placeholder: "Add description",
4158
4158
  displayClassName: "text-[12px] leading-snug text-muted-foreground",
@@ -4197,14 +4197,14 @@ function To({
4197
4197
  /* @__PURE__ */ a(
4198
4198
  xr,
4199
4199
  {
4200
- className: Q(
4200
+ className: W(
4201
4201
  "flex min-h-0 grow flex-col",
4202
4202
  L ? "p-0 [&_.data-table-scroll-container]:border-0 [&_.data-table-scroll-container]:bg-transparent" : "px-4"
4203
4203
  ),
4204
4204
  style: L ? void 0 : d.cardGutterStyle,
4205
4205
  children: [
4206
4206
  /* @__PURE__ */ e("div", { className: "min-h-0 flex-1 grow basis-0", children: J() }),
4207
- Mi(F) && /* @__PURE__ */ e("div", { className: Q("pt-3", L && "px-4"), children: /* @__PURE__ */ e(Ri, { card: F, mode: "editor" }) })
4207
+ Mi(F) && /* @__PURE__ */ e("div", { className: W("pt-3", L && "px-4"), children: /* @__PURE__ */ e(Ri, { card: F, mode: "editor" }) })
4208
4208
  ]
4209
4209
  }
4210
4210
  ),
@@ -4221,7 +4221,7 @@ function To({
4221
4221
  }
4222
4222
  );
4223
4223
  }
4224
- const Us = ({
4224
+ const Gs = ({
4225
4225
  language: t,
4226
4226
  value: n,
4227
4227
  onChange: s,
@@ -4238,7 +4238,7 @@ const Us = ({
4238
4238
  }
4239
4239
  ), op = () => /* @__PURE__ */ a(Ea, { children: [
4240
4240
  /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ e(Aa, { children: "Customize Card" }) }),
4241
- /* @__PURE__ */ a(Wa, { children: [
4241
+ /* @__PURE__ */ a(Qa, { children: [
4242
4242
  "See the configuration options and documentation",
4243
4243
  /* @__PURE__ */ e(
4244
4244
  "a",
@@ -4269,7 +4269,7 @@ const Us = ({
4269
4269
  value: "final-config",
4270
4270
  className: "mt-0 grow rounded-b border border-t-0",
4271
4271
  children: /* @__PURE__ */ e(
4272
- Us,
4272
+ Gs,
4273
4273
  {
4274
4274
  language: "json",
4275
4275
  value: s,
@@ -4284,7 +4284,7 @@ const Us = ({
4284
4284
  value: "custom-config",
4285
4285
  className: "mt-0 grow rounded-b border border-t-0",
4286
4286
  children: /* @__PURE__ */ e(
4287
- Us,
4287
+ Gs,
4288
4288
  {
4289
4289
  readonly: !0,
4290
4290
  language: "json",
@@ -4301,7 +4301,7 @@ const Us = ({
4301
4301
  value: "custom-code",
4302
4302
  className: "mt-0 grow rounded-b border border-t-0",
4303
4303
  children: /* @__PURE__ */ e(
4304
- Us,
4304
+ Gs,
4305
4305
  {
4306
4306
  language: "javascript",
4307
4307
  value: t,
@@ -4381,7 +4381,7 @@ function up({
4381
4381
  {
4382
4382
  variant: "ghost",
4383
4383
  onClick: k,
4384
- className: Q(
4384
+ className: W(
4385
4385
  "h-7 w-full justify-start gap-2 px-2 text-[13px] font-normal",
4386
4386
  O ? "" : "text-green-600 hover:text-green-700",
4387
4387
  n
@@ -4396,7 +4396,7 @@ function up({
4396
4396
  {
4397
4397
  tooltip: "Customize Visual",
4398
4398
  onClick: k,
4399
- className: Q(
4399
+ className: W(
4400
4400
  O ? "" : "text-green-600 hover:text-green-700",
4401
4401
  n
4402
4402
  ),
@@ -4458,7 +4458,7 @@ function Pr({
4458
4458
  return /* @__PURE__ */ e(
4459
4459
  "div",
4460
4460
  {
4461
- className: Q(
4461
+ className: W(
4462
4462
  "flex items-center justify-center rounded text-white font-semibold text-xs",
4463
4463
  r
4464
4464
  ),
@@ -4475,7 +4475,7 @@ function pp({ isStarred: t, onClick: n, className: s }) {
4475
4475
  onClick: (d) => {
4476
4476
  d.stopPropagation(), d.preventDefault(), n(d);
4477
4477
  },
4478
- className: Q(
4478
+ className: W(
4479
4479
  "flex items-center justify-center rounded-control p-0.5 transition-all",
4480
4480
  "hover:bg-muted/80",
4481
4481
  s
@@ -4484,7 +4484,7 @@ function pp({ isStarred: t, onClick: n, className: s }) {
4484
4484
  children: /* @__PURE__ */ e(
4485
4485
  Kc,
4486
4486
  {
4487
- className: Q(
4487
+ className: W(
4488
4488
  "h-3.5 w-3.5 transition-colors",
4489
4489
  t ? "fill-yellow-400 text-yellow-400" : "text-muted-foreground hover:text-foreground"
4490
4490
  )
@@ -4508,7 +4508,7 @@ function ai({
4508
4508
  i && /* @__PURE__ */ e(
4509
4509
  "div",
4510
4510
  {
4511
- className: Q(
4511
+ className: W(
4512
4512
  "absolute left-1 top-1 z-10 transition-opacity",
4513
4513
  d ? "opacity-100" : "opacity-0 group-focus-within:opacity-100 group-hover:opacity-100"
4514
4514
  ),
@@ -4516,7 +4516,7 @@ function ai({
4516
4516
  }
4517
4517
  ),
4518
4518
  s && r && /* @__PURE__ */ e("div", { className: "absolute right-1 top-1 z-10", children: /* @__PURE__ */ a(St, { children: [
4519
- /* @__PURE__ */ e(Tt, { asChild: !0, children: /* @__PURE__ */ e("span", { className: "flex items-center justify-center", children: /* @__PURE__ */ e(Qt, { className: "h-3 w-3 text-muted-foreground" }) }) }),
4519
+ /* @__PURE__ */ e(Tt, { asChild: !0, children: /* @__PURE__ */ e("span", { className: "flex items-center justify-center", children: /* @__PURE__ */ e(Wt, { className: "h-3 w-3 text-muted-foreground" }) }) }),
4520
4520
  /* @__PURE__ */ e(wt, { side: "top", children: r })
4521
4521
  ] }) }),
4522
4522
  /* @__PURE__ */ a(
@@ -4525,7 +4525,7 @@ function ai({
4525
4525
  type: "button",
4526
4526
  onClick: c,
4527
4527
  "aria-pressed": l,
4528
- className: Q(
4528
+ className: W(
4529
4529
  "flex w-full flex-col items-center justify-center gap-1.5 rounded-control border border-input bg-background px-2 py-2.5 transition-colors",
4530
4530
  "hover:border-foreground/30 hover:bg-muted/40",
4531
4531
  l && "border-foreground/50 bg-muted/50 hover:border-foreground/50"
@@ -4787,7 +4787,7 @@ function gp({
4787
4787
  handleChartSelect: h,
4788
4788
  handleClearCustomVisual: v
4789
4789
  } = fp({ selectedChart: t, onChartChange: n }), p = s === "header";
4790
- return /* @__PURE__ */ a("div", { className: Q("relative w-full", r), children: [
4790
+ return /* @__PURE__ */ a("div", { className: W("relative w-full", r), children: [
4791
4791
  /* @__PURE__ */ a(It, { open: d, onOpenChange: i, children: [
4792
4792
  /* @__PURE__ */ e(At, { asChild: !0, children: p ? /* @__PURE__ */ a(
4793
4793
  "button",
@@ -4804,7 +4804,7 @@ function gp({
4804
4804
  /* @__PURE__ */ e(
4805
4805
  kt,
4806
4806
  {
4807
- className: Q(
4807
+ className: W(
4808
4808
  "h-3 w-3 shrink-0 text-muted-foreground transition-transform",
4809
4809
  d && "rotate-180"
4810
4810
  )
@@ -4819,7 +4819,7 @@ function gp({
4819
4819
  variant: s,
4820
4820
  role: "combobox",
4821
4821
  "aria-expanded": d,
4822
- className: Q(
4822
+ className: W(
4823
4823
  "w-full justify-between gap-2",
4824
4824
  s === "ghost" && "border border-border/70 bg-background text-foreground/90",
4825
4825
  s === "outline" && "border-border/70 bg-background text-foreground/90",
@@ -4872,7 +4872,7 @@ function gp({
4872
4872
  )
4873
4873
  ] });
4874
4874
  }
4875
- const Ga = {
4875
+ const Ua = {
4876
4876
  table: Is,
4877
4877
  bar: gs,
4878
4878
  line: fs,
@@ -4888,11 +4888,11 @@ const Ga = {
4888
4888
  funnel: Yc,
4889
4889
  tornado: Jc,
4890
4890
  heatmap: Dr,
4891
- range: Wc,
4892
- radar: Qc,
4891
+ range: Qc,
4892
+ radar: Wc,
4893
4893
  polarArea: Hc,
4894
- text: Uc,
4895
- map: Gc
4894
+ text: Gc,
4895
+ map: Uc
4896
4896
  }, Tn = {
4897
4897
  table: "Table",
4898
4898
  bar: "Bar Chart",
@@ -4946,14 +4946,14 @@ function xp({
4946
4946
  ...N.map((y) => ({
4947
4947
  id: y.id,
4948
4948
  label: y.name,
4949
- icon: y.type === "default" ? Ga[y.id] : void 0,
4949
+ icon: y.type === "default" ? Ua[y.id] : void 0,
4950
4950
  isCustom: y.type === "custom",
4951
4951
  url: y.url
4952
4952
  })),
4953
4953
  ...I.map((y) => ({
4954
4954
  id: y.id,
4955
4955
  label: Tn[y.id] ?? y.id,
4956
- icon: Ga[y.id],
4956
+ icon: Ua[y.id],
4957
4957
  isCustom: !1
4958
4958
  }))
4959
4959
  ].slice(0, Do);
@@ -4999,14 +4999,14 @@ function Eo({
4999
4999
  ...y.map((F) => ({
5000
5000
  id: F.id,
5001
5001
  label: F.name,
5002
- icon: F.type === "default" ? Ga[F.id] : void 0,
5002
+ icon: F.type === "default" ? Ua[F.id] : void 0,
5003
5003
  isCustom: F.type === "custom",
5004
5004
  url: F.url
5005
5005
  })),
5006
5006
  ...x.map((F) => ({
5007
5007
  id: F.id,
5008
5008
  label: Tn[F.id] ?? F.id,
5009
- icon: Ga[F.id],
5009
+ icon: Ua[F.id],
5010
5010
  isCustom: !1
5011
5011
  }))
5012
5012
  ];
@@ -5024,10 +5024,10 @@ function Eo({
5024
5024
  isCustom: !0,
5025
5025
  url: F.url
5026
5026
  });
5027
- } else t && Ga[t] && R.unshift({
5027
+ } else t && Ua[t] && R.unshift({
5028
5028
  id: t,
5029
5029
  label: Tn[t] ?? t,
5030
- icon: Ga[t],
5030
+ icon: Ua[t],
5031
5031
  isCustom: !1
5032
5032
  });
5033
5033
  return R.slice(0, Do);
@@ -5081,7 +5081,7 @@ function Eo({
5081
5081
  onClick: () => V(y),
5082
5082
  "aria-label": y.label,
5083
5083
  "aria-pressed": !!x,
5084
- className: Q(
5084
+ className: W(
5085
5085
  "flex h-full w-7 items-center justify-center text-foreground/65 transition-colors hover:bg-muted/50 hover:text-foreground",
5086
5086
  x && "bg-foreground/[0.08] font-medium text-foreground"
5087
5087
  ),
@@ -5110,7 +5110,7 @@ function Eo({
5110
5110
  {
5111
5111
  type: "button",
5112
5112
  "aria-label": s ? "More chart types" : T,
5113
- className: Q(
5113
+ className: W(
5114
5114
  "inline-flex h-7 items-center gap-1 rounded-control transition-colors hover:bg-muted/50",
5115
5115
  s ? "w-7 justify-center" : "px-2 text-[12px]",
5116
5116
  !s && (N ? "text-muted-foreground" : "text-foreground")
@@ -5120,7 +5120,7 @@ function Eo({
5120
5120
  /* @__PURE__ */ e(
5121
5121
  kt,
5122
5122
  {
5123
- className: Q(
5123
+ className: W(
5124
5124
  "h-3 w-3 shrink-0 text-muted-foreground transition-transform",
5125
5125
  r && "rotate-180"
5126
5126
  ),
@@ -5232,7 +5232,7 @@ function Vr({
5232
5232
  const D = { ...r, preferences: R };
5233
5233
  l(D), i(D);
5234
5234
  };
5235
- return /* @__PURE__ */ e("div", { className: Q("flex items-center", t), children: /* @__PURE__ */ a(tn, { modal: !1, open: c, onOpenChange: o, children: [
5235
+ return /* @__PURE__ */ e("div", { className: W("flex items-center", t), children: /* @__PURE__ */ a(tn, { modal: !1, open: c, onOpenChange: o, children: [
5236
5236
  /* @__PURE__ */ e(an, { asChild: !0, children: n === "menu" ? /* @__PURE__ */ a(
5237
5237
  Z,
5238
5238
  {
@@ -5253,7 +5253,7 @@ function Vr({
5253
5253
  ) }),
5254
5254
  /* @__PURE__ */ a(nn, { align: "end", className: "w-64", children: [
5255
5255
  /* @__PURE__ */ e(In, { children: "Display Options" }),
5256
- /* @__PURE__ */ e(Gt, {}),
5256
+ /* @__PURE__ */ e(Ut, {}),
5257
5257
  /* @__PURE__ */ e("div", { className: "px-2 py-1.5", children: /* @__PURE__ */ e("p", { className: "mb-2 text-xs text-muted-foreground", children: "Changes apply to dashboard view only" }) }),
5258
5258
  /* @__PURE__ */ a(
5259
5259
  sa,
@@ -5349,7 +5349,7 @@ function Br({
5349
5349
  (y) => y.actions.setCardInlineFilterValue
5350
5350
  ), u = Ae((y) => y.isVisualEditing), f = (i == null ? void 0 : i.inlineFilters) || [], C = ((I = (T = c == null ? void 0 : c.params) == null ? void 0 : T.calendarContext) == null ? void 0 : I.tz) || ((k = c == null ? void 0 : c.params) == null ? void 0 : k.timezone) || Intl.DateTimeFormat().resolvedOptions().timeZone;
5351
5351
  function g(y) {
5352
- var _, P, q, H, Y, W, de;
5352
+ var _, P, q, H, Y, Q, de;
5353
5353
  const O = ((q = (P = (_ = i == null ? void 0 : i.dataSource) == null ? void 0 : _.selectedEntities) == null ? void 0 : P[0]) == null ? void 0 : q.database) || "", x = y.qualifiedFieldName || y.name;
5354
5354
  if (f.find(
5355
5355
  (oe) => rd(oe, y)
@@ -5358,7 +5358,7 @@ function Br({
5358
5358
  const D = y.qualifiedFieldName ? y.qualifiedFieldName.split(".").slice(0, -1).join(".") : y.qualifiedEntityName || y.entityName, L = Em(y.name), b = ld(y), S = id(i == null ? void 0 : i.dataSource, {
5359
5359
  connectionId: l || ((H = i == null ? void 0 : i.dataSource) == null ? void 0 : H.connectionId),
5360
5360
  connectionType: (Y = i == null ? void 0 : i.dataSource) == null ? void 0 : Y.connectionType
5361
- }), A = od(b), B = !!(((W = i == null ? void 0 : i.dataSource) == null ? void 0 : W.mode) === "semanticDomain" && ((de = S == null ? void 0 : S.selectedEntities) != null && de.length || S != null && S.semanticDomainId)), z = {
5361
+ }), A = od(b), B = !!(((Q = i == null ? void 0 : i.dataSource) == null ? void 0 : Q.mode) === "semanticDomain" && ((de = S == null ? void 0 : S.selectedEntities) != null && de.length || S != null && S.semanticDomainId)), z = {
5362
5362
  id: ka(),
5363
5363
  column: x,
5364
5364
  title: y.label || y.name,
@@ -5431,7 +5431,7 @@ function Br({
5431
5431
  return /* @__PURE__ */ e(
5432
5432
  "div",
5433
5433
  {
5434
- className: Q(
5434
+ className: W(
5435
5435
  "flex items-center gap-1",
5436
5436
  N && "w-full",
5437
5437
  t
@@ -5441,12 +5441,12 @@ function Br({
5441
5441
  Z,
5442
5442
  {
5443
5443
  variant: "ghost",
5444
- className: Q(
5444
+ className: W(
5445
5445
  "h-7 w-full justify-start gap-2 px-2 text-[13px]",
5446
5446
  f.length > 0 && "text-primary"
5447
5447
  ),
5448
5448
  children: [
5449
- /* @__PURE__ */ e(Wl, { className: "h-3.5 w-3.5" }),
5449
+ /* @__PURE__ */ e(Ql, { className: "h-3.5 w-3.5" }),
5450
5450
  /* @__PURE__ */ e("span", { children: s }),
5451
5451
  f.length > 0 && /* @__PURE__ */ e("span", { className: "ml-auto inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-[4px] bg-primary text-[10px] font-medium leading-none text-primary-foreground", children: f.length })
5452
5452
  ]
@@ -5455,11 +5455,11 @@ function Br({
5455
5455
  ft,
5456
5456
  {
5457
5457
  tooltip: "Add Inline Filter",
5458
- className: Q("relative h-7 w-7 px-0", {
5458
+ className: W("relative h-7 w-7 px-0", {
5459
5459
  "text-primary": f.length > 0
5460
5460
  }),
5461
5461
  children: [
5462
- /* @__PURE__ */ e(Wl, { className: "h-3.5 w-3.5" }),
5462
+ /* @__PURE__ */ e(Ql, { className: "h-3.5 w-3.5" }),
5463
5463
  f.length > 0 && /* @__PURE__ */ e("span", { className: "absolute -right-1 -top-1 flex h-4 w-4 items-center justify-center rounded-full bg-primary text-[10px] font-medium text-primary-foreground", children: f.length })
5464
5464
  ]
5465
5465
  }
@@ -5468,7 +5468,7 @@ function Br({
5468
5468
  Dt,
5469
5469
  {
5470
5470
  align: "end",
5471
- className: Q("w-80 p-0", N && "z-[60]"),
5471
+ className: W("w-80 p-0", N && "z-[60]"),
5472
5472
  children: /* @__PURE__ */ a("div", { className: "flex flex-col", children: [
5473
5473
  /* @__PURE__ */ a("div", { className: "border-b px-4 py-3", children: [
5474
5474
  /* @__PURE__ */ e("h4", { className: "text-sm font-medium", children: "Inline Filters" }),
@@ -5738,7 +5738,7 @@ function Sp({
5738
5738
  };
5739
5739
  }), R = `${V.controlId}-${V.target}-${N}`, D = o[R] ?? N === 0, F = Object.keys(V.mapping).length, L = I != null && I.type ? yp[I.type] || I.type : null;
5740
5740
  return /* @__PURE__ */ a(
5741
- Ut,
5741
+ Gt,
5742
5742
  {
5743
5743
  open: D,
5744
5744
  onOpenChange: (b) => m((S) => ({
@@ -5819,10 +5819,10 @@ function Sp({
5819
5819
  if (P === "__none__")
5820
5820
  delete Y[b.value];
5821
5821
  else {
5822
- const W = _.find(
5822
+ const Q = _.find(
5823
5823
  (de) => de.value === P
5824
5824
  );
5825
- W != null && W.target ? Y[b.value] = W.target : delete Y[b.value];
5825
+ Q != null && Q.target ? Y[b.value] = Q.target : delete Y[b.value];
5826
5826
  }
5827
5827
  return {
5828
5828
  ...q,
@@ -5834,10 +5834,10 @@ function Sp({
5834
5834
  if (P === "__none__")
5835
5835
  delete Y[b.value];
5836
5836
  else {
5837
- const W = _.find(
5837
+ const Q = _.find(
5838
5838
  (de) => de.value === P
5839
5839
  );
5840
- W != null && W.target ? Y[b.value] = W.target : delete Y[b.value];
5840
+ Q != null && Q.target ? Y[b.value] = Q.target : delete Y[b.value];
5841
5841
  }
5842
5842
  return {
5843
5843
  ...q,
@@ -5969,7 +5969,7 @@ function _r({
5969
5969
  return /* @__PURE__ */ e(
5970
5970
  "div",
5971
5971
  {
5972
- className: Q(
5972
+ className: W(
5973
5973
  "flex items-center gap-1",
5974
5974
  R && "w-full",
5975
5975
  t
@@ -5979,7 +5979,7 @@ function _r({
5979
5979
  Z,
5980
5980
  {
5981
5981
  variant: "ghost",
5982
- className: Q(
5982
+ className: W(
5983
5983
  "h-7 w-full justify-start gap-2 px-2 text-[13px]",
5984
5984
  (w.length > 0 || V.length > 0) && "text-primary"
5985
5985
  ),
@@ -5993,7 +5993,7 @@ function _r({
5993
5993
  ft,
5994
5994
  {
5995
5995
  tooltip: "Configure Controls",
5996
- className: Q("relative h-7 w-7 px-0", {
5996
+ className: W("relative h-7 w-7 px-0", {
5997
5997
  "text-primary": w.length > 0 || V.length > 0
5998
5998
  }),
5999
5999
  children: [
@@ -6005,7 +6005,7 @@ function _r({
6005
6005
  /* @__PURE__ */ a(
6006
6006
  Dt,
6007
6007
  {
6008
- className: Q(
6008
+ className: W(
6009
6009
  "flex max-h-[85vh] w-[560px] max-w-[95vw] flex-col",
6010
6010
  R && "z-[60]"
6011
6011
  ),
@@ -6150,21 +6150,21 @@ function kp({
6150
6150
  }, x = (P, q) => {
6151
6151
  const H = P.dataTransfer.getData("tabIndex");
6152
6152
  if (H === q.toString()) return;
6153
- const Y = Array.from(r.cards), [W] = Y.splice(parseInt(H), 1);
6154
- Y.splice(q, 0, W), c({ ...r, cards: Y });
6153
+ const Y = Array.from(r.cards), [Q] = Y.splice(parseInt(H), 1);
6154
+ Y.splice(q, 0, Q), c({ ...r, cards: Y });
6155
6155
  };
6156
6156
  function R(P) {
6157
6157
  const q = (s == null ? void 0 : s.id) === P;
6158
6158
  if (!(k && q ? r.cards.length > 1 : I)) return;
6159
6159
  let Y = r.cards.filter((ue) => ue.id !== P);
6160
6160
  g && !k && (Y = Td(Y));
6161
- const W = Y[0], de = {
6161
+ const Q = Y[0], de = {
6162
6162
  ...r,
6163
6163
  cards: Y,
6164
6164
  // update the active card to the first card in the frame
6165
- activeCardId: W.id
6165
+ activeCardId: Q.id
6166
6166
  }, oe = P === d.id;
6167
- oe && v(), c(de), o(W.id), m(W), oe && p(W);
6167
+ oe && v(), c(de), o(Q.id), m(Q), oe && p(Q);
6168
6168
  }
6169
6169
  function D(P, q) {
6170
6170
  if (!T) return;
@@ -6203,7 +6203,7 @@ function kp({
6203
6203
  var oe;
6204
6204
  if (l || !T) return;
6205
6205
  let q = g ? "table" : "bar", H = "Title", Y = "";
6206
- const W = g ? Math.max(
6206
+ const Q = g ? Math.max(
6207
6207
  -1,
6208
6208
  ...V.map(
6209
6209
  (ue, Ce) => Yt(ue, Ce)
@@ -6212,9 +6212,9 @@ function kp({
6212
6212
  if (g && ((oe = f == null ? void 0 : f.slots) != null && oe.length)) {
6213
6213
  const ue = lr(
6214
6214
  f.slots,
6215
- W
6215
+ Q
6216
6216
  );
6217
- ue && (q = kd(ue), H = ue.label || `Tab ${W + 1}`, Y = ue.description || "");
6217
+ ue && (q = kd(ue), H = ue.label || `Tab ${Q + 1}`, Y = ue.description || "");
6218
6218
  }
6219
6219
  const de = {
6220
6220
  dataSource: P.dataSource,
@@ -6242,7 +6242,7 @@ function kp({
6242
6242
  // Set default mode for new cards
6243
6243
  ...g && {
6244
6244
  customCardPreferences: {
6245
- slotIndex: W
6245
+ slotIndex: Q
6246
6246
  }
6247
6247
  }
6248
6248
  };
@@ -6271,7 +6271,7 @@ function kp({
6271
6271
  children: /* @__PURE__ */ a("div", { className: "flex items-center gap-1", children: [
6272
6272
  r.cards.map((P, q) => {
6273
6273
  var oe, ue;
6274
- const H = g ? Yt(P, q) : -1, Y = g && ((oe = f == null ? void 0 : f.slots) != null && oe.length) && H >= 0 ? lr(f.slots, H) : null, W = Y ? (Array.isArray(Y.expectedType) ? Y.expectedType[0] : Y.expectedType) || "table" : P.type, de = g && ((ue = f == null ? void 0 : f.slots) == null ? void 0 : ue.length) && f.slots.every(
6274
+ const H = g ? Yt(P, q) : -1, Y = g && ((oe = f == null ? void 0 : f.slots) != null && oe.length) && H >= 0 ? lr(f.slots, H) : null, Q = Y ? (Array.isArray(Y.expectedType) ? Y.expectedType[0] : Y.expectedType) || "table" : P.type, de = g && ((ue = f == null ? void 0 : f.slots) == null ? void 0 : ue.length) && f.slots.every(
6275
6275
  (Ce) => typeof Ce.position == "number" || typeof Ce.position == "string" && !Ce.position.includes("+")
6276
6276
  );
6277
6277
  return /* @__PURE__ */ a(
@@ -6281,7 +6281,7 @@ function kp({
6281
6281
  onDragStart: g || l ? void 0 : (Ce) => y(Ce, q),
6282
6282
  onDragOver: g || l ? void 0 : O,
6283
6283
  onDrop: g || l ? void 0 : (Ce) => x(Ce, q),
6284
- className: Q(
6284
+ className: W(
6285
6285
  "inline-flex h-6 shrink-0 items-center gap-1.5 rounded-[5px] border px-2 text-[12px] font-normal text-muted-foreground transition-colors",
6286
6286
  "mb-0 border-transparent pb-0",
6287
6287
  "hover:bg-muted/40 hover:text-foreground",
@@ -6293,7 +6293,7 @@ function kp({
6293
6293
  // Multi-input visual: Icon + Slot Label (non-editable, no eye icon)
6294
6294
  /* @__PURE__ */ e(Lt, { delayDuration: 0, children: /* @__PURE__ */ a(St, { children: [
6295
6295
  /* @__PURE__ */ e(Tt, { asChild: !0, children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
6296
- /* @__PURE__ */ e("span", { className: "text-muted-foreground", children: Pi(W, "size-3.5") }),
6296
+ /* @__PURE__ */ e("span", { className: "text-muted-foreground", children: Pi(Q, "size-3.5") }),
6297
6297
  /* @__PURE__ */ e("span", { children: Y.label || `Tab ${H + 1}` })
6298
6298
  ] }) }),
6299
6299
  /* @__PURE__ */ e(
@@ -6383,7 +6383,7 @@ function Sa({
6383
6383
  renderCardOverride: t,
6384
6384
  alwaysRenderOverride: n = !1
6385
6385
  } = {}) {
6386
- var Ve, fe, G;
6386
+ var Ve, fe, U;
6387
6387
  const s = M((J) => J.frame), r = M((J) => J.card), [d, i] = K(!1), l = ce(
6388
6388
  () => Pa(s, r),
6389
6389
  [s, r]
@@ -6406,7 +6406,7 @@ function Sa({
6406
6406
  getCard: k,
6407
6407
  manifest: y,
6408
6408
  isLoading: O
6409
- } = pa(((Ve = l == null ? void 0 : l.customCardPreferences) == null ? void 0 : Ve.url) || ""), x = (fe = l == null ? void 0 : l.customCardPreferences) == null ? void 0 : fe.componentName, R = x ? k(x) : null, D = (G = y == null ? void 0 : y.visuals) == null ? void 0 : G.find(
6409
+ } = pa(((Ve = l == null ? void 0 : l.customCardPreferences) == null ? void 0 : Ve.url) || ""), x = (fe = l == null ? void 0 : l.customCardPreferences) == null ? void 0 : fe.componentName, R = x ? k(x) : null, D = (U = y == null ? void 0 : y.visuals) == null ? void 0 : U.find(
6410
6410
  (J) => J.name === x
6411
6411
  ), F = fa(l, D), L = d && F === "multiple" && !!l, b = ce(() => Vn({
6412
6412
  frame: s,
@@ -6422,7 +6422,7 @@ function Sa({
6422
6422
  (he) => (he == null ? void 0 : he.id) === r.id
6423
6423
  );
6424
6424
  return J < 0 ? -1 : Yt(r, J);
6425
- }, [b, r]), B = ce(() => !l || F !== "multiple" || A < 0 ? r.type : Ua(
6425
+ }, [b, r]), B = ce(() => !l || F !== "multiple" || A < 0 ? r.type : Ga(
6426
6426
  r,
6427
6427
  A,
6428
6428
  D == null ? void 0 : D.slots
@@ -6443,7 +6443,7 @@ function Sa({
6443
6443
  }));
6444
6444
  },
6445
6445
  []
6446
- ), W = Ie(
6446
+ ), Q = Ie(
6447
6447
  (J, he) => {
6448
6448
  E((ke) => {
6449
6449
  const Ne = new Set(ke);
@@ -6502,11 +6502,11 @@ function Sa({
6502
6502
  function mt(J) {
6503
6503
  const he = M.getState().card, ke = M.getState().frame, Ne = {
6504
6504
  ...ke,
6505
- cards: ke.cards.map((Ue) => Ue.id === he.id ? he : Ue),
6505
+ cards: ke.cards.map((Ge) => Ge.id === he.id ? he : Ge),
6506
6506
  activeCardId: J
6507
6507
  };
6508
6508
  o(Ne);
6509
- const qe = Ne.cards.find((Ue) => Ue.id === J);
6509
+ const qe = Ne.cards.find((Ge) => Ge.id === J);
6510
6510
  qe.sql && v(!0), h(qe);
6511
6511
  }
6512
6512
  function ye() {
@@ -6515,7 +6515,7 @@ function Sa({
6515
6515
  if (!R)
6516
6516
  return /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center text-sm text-muted-foreground", children: "Select a component to preview the multi-input visual." });
6517
6517
  const he = S.map(
6518
- (ke, Ne) => Ua(
6518
+ (ke, Ne) => Ga(
6519
6519
  ke,
6520
6520
  Ne,
6521
6521
  D == null ? void 0 : D.slots
@@ -6524,7 +6524,7 @@ function Sa({
6524
6524
  return /* @__PURE__ */ a("div", { className: "relative flex h-full flex-col pl-2 pr-4", children: [
6525
6525
  b.map((ke, Ne) => {
6526
6526
  if (!ke) return null;
6527
- const qe = Yt(ke, Ne), Ue = Ua(
6527
+ const qe = Yt(ke, Ne), Ge = Ga(
6528
6528
  ke,
6529
6529
  qe,
6530
6530
  D == null ? void 0 : D.slots
@@ -6532,10 +6532,10 @@ function Sa({
6532
6532
  return /* @__PURE__ */ e(
6533
6533
  wd,
6534
6534
  {
6535
- onLoadingStatus: W,
6535
+ onLoadingStatus: Q,
6536
6536
  onDataChange: Y,
6537
6537
  card: ke,
6538
- effectiveCardType: Ue
6538
+ effectiveCardType: Ge
6539
6539
  },
6540
6540
  `${ke.id}-${qe}`
6541
6541
  );
@@ -6544,7 +6544,7 @@ function Sa({
6544
6544
  /* @__PURE__ */ e(
6545
6545
  "div",
6546
6546
  {
6547
- className: Q(
6547
+ className: W(
6548
6548
  "flex h-full min-h-0 flex-1 flex-col gap-2",
6549
6549
  de && "opacity-50"
6550
6550
  ),
@@ -6645,7 +6645,7 @@ function Ip({
6645
6645
  type: "button",
6646
6646
  size: "sm",
6647
6647
  variant: "outline",
6648
- className: Q("h-8 gap-1.5 px-3 text-xs", n),
6648
+ className: W("h-8 gap-1.5 px-3 text-xs", n),
6649
6649
  onClick: t,
6650
6650
  children: [
6651
6651
  /* @__PURE__ */ e(Ra, { className: "h-3.5 w-3.5 shrink-0" }),
@@ -6761,7 +6761,7 @@ function Oo({
6761
6761
  /* @__PURE__ */ e(Ea, { className: "border-b px-6 py-4 pr-20 text-left", children: /* @__PURE__ */ a("div", { className: "flex items-start justify-between gap-4 pr-4", children: [
6762
6762
  /* @__PURE__ */ a("div", { className: "flex min-w-0 flex-col gap-1", children: [
6763
6763
  /* @__PURE__ */ e(Aa, { children: "Dynamic Visual Editor" }),
6764
- /* @__PURE__ */ e(Wa, { children: "Adjust the preview and visual code here. Query editing stays in the normal editor controls." })
6764
+ /* @__PURE__ */ e(Qa, { children: "Adjust the preview and visual code here. Query editing stays in the normal editor controls." })
6765
6765
  ] }),
6766
6766
  N && /* @__PURE__ */ e(nt, { className: "mr-4 shrink-0", variant: I, children: T })
6767
6767
  ] }) }),
@@ -6853,7 +6853,7 @@ function Oo({
6853
6853
  k && /* @__PURE__ */ e(
6854
6854
  "p",
6855
6855
  {
6856
- className: Q(
6856
+ className: W(
6857
6857
  "text-xs",
6858
6858
  f.valid ? "text-muted-foreground" : "text-destructive"
6859
6859
  ),
@@ -6863,7 +6863,7 @@ function Oo({
6863
6863
  /* @__PURE__ */ e(
6864
6864
  "div",
6865
6865
  {
6866
- className: Q(
6866
+ className: W(
6867
6867
  "min-h-0 flex-1 overflow-hidden rounded-md border",
6868
6868
  !f.valid && u && "border-destructive"
6869
6869
  ),
@@ -6931,7 +6931,7 @@ function Fo({
6931
6931
  ), d(m), r(!0);
6932
6932
  };
6933
6933
  return /* @__PURE__ */ a(De, { children: [
6934
- /* @__PURE__ */ e(Gt, {}),
6934
+ /* @__PURE__ */ e(Ut, {}),
6935
6935
  /* @__PURE__ */ a(
6936
6936
  ut,
6937
6937
  {
@@ -7111,7 +7111,7 @@ function Mo({
7111
7111
  return /* @__PURE__ */ a(
7112
7112
  "div",
7113
7113
  {
7114
- className: Q(
7114
+ className: W(
7115
7115
  "flex max-h-full min-h-0 flex-1 flex-col overflow-hidden pt-3",
7116
7116
  r
7117
7117
  ),
@@ -7128,7 +7128,7 @@ function Mo({
7128
7128
  variant: "outline",
7129
7129
  size: "xs",
7130
7130
  children: [
7131
- /* @__PURE__ */ e(Qt, { className: "mr-1.5 h-3 w-3" }),
7131
+ /* @__PURE__ */ e(Wt, { className: "mr-1.5 h-3 w-3" }),
7132
7132
  "Card Details"
7133
7133
  ]
7134
7134
  }
@@ -7144,7 +7144,7 @@ function Mo({
7144
7144
  size: "sm",
7145
7145
  className: "h-6 w-6 rounded-[3px] p-0",
7146
7146
  onClick: () => i(!1),
7147
- children: /* @__PURE__ */ e(Ql, { className: "h-3.5 w-3.5" })
7147
+ children: /* @__PURE__ */ e(Wl, { className: "h-3.5 w-3.5" })
7148
7148
  }
7149
7149
  )
7150
7150
  ] }),
@@ -7191,7 +7191,7 @@ function Mo({
7191
7191
  {
7192
7192
  disabled: !N(x.target),
7193
7193
  onSelect: () => O(x.target),
7194
- className: Q(
7194
+ className: W(
7195
7195
  l === x.target && "bg-accent"
7196
7196
  ),
7197
7197
  children: x.label
@@ -7223,7 +7223,7 @@ function Mo({
7223
7223
  className: "h-6 px-2 text-xs",
7224
7224
  onClick: () => c(null),
7225
7225
  children: [
7226
- /* @__PURE__ */ e(Ql, { className: "mr-1 h-3.5 w-3.5" }),
7226
+ /* @__PURE__ */ e(Wl, { className: "mr-1 h-3.5 w-3.5" }),
7227
7227
  "Hide"
7228
7228
  ]
7229
7229
  }
@@ -7300,7 +7300,7 @@ function Hs({
7300
7300
  isLoading: q,
7301
7301
  isFetching: H,
7302
7302
  errorMessage: Y,
7303
- errorSql: W,
7303
+ errorSql: Q,
7304
7304
  refetch: de,
7305
7305
  queryKey: oe,
7306
7306
  pagination: ue
@@ -7308,7 +7308,7 @@ function Hs({
7308
7308
  Ce.current = oe;
7309
7309
  const { handleDebugWithAssistant: me } = So(
7310
7310
  Y,
7311
- W
7311
+ Q
7312
7312
  ), xe = ce(() => (P == null ? void 0 : P.records) || [], [P == null ? void 0 : P.records]), { cardFilterValues: Le } = Vd(
7313
7313
  (c == null ? void 0 : c.id) ?? ""
7314
7314
  ), [et, Je] = K(!1);
@@ -7323,14 +7323,14 @@ function Hs({
7323
7323
  v,
7324
7324
  p
7325
7325
  ]);
7326
- function ie(fe, G) {
7326
+ function ie(fe, U) {
7327
7327
  var ke, Ne;
7328
7328
  const J = {
7329
7329
  ...c,
7330
7330
  paginationConfig: {
7331
7331
  page: fe + 1,
7332
7332
  // Convert to 1-based
7333
- pageSize: G
7333
+ pageSize: U
7334
7334
  }
7335
7335
  };
7336
7336
  D(J);
@@ -7341,8 +7341,8 @@ function Hs({
7341
7341
  R(he), c.sql && ((Ne = (ke = c.preferences) == null ? void 0 : ke.tablePrefs) != null && Ne.enableDevModePagination) && g(!0);
7342
7342
  }
7343
7343
  function Oe(fe) {
7344
- var ke, Ne, qe, Ue, pe;
7345
- const G = Tr(
7344
+ var ke, Ne, qe, Ge, pe;
7345
+ const U = Tr(
7346
7346
  fe,
7347
7347
  (ke = c.config) == null ? void 0 : ke.metricColumns,
7348
7348
  (Ne = c.config) == null ? void 0 : Ne.groupByColumns,
@@ -7351,7 +7351,7 @@ function Hs({
7351
7351
  ...c,
7352
7352
  config: {
7353
7353
  ...c.config || {},
7354
- sortByColumns: G
7354
+ sortByColumns: U
7355
7355
  }
7356
7356
  };
7357
7357
  D(J);
@@ -7359,27 +7359,27 @@ function Hs({
7359
7359
  ...l,
7360
7360
  cards: l.cards.map((je) => je.id === c.id ? J : je)
7361
7361
  };
7362
- R(he), c.sql && ((pe = (Ue = c.preferences) == null ? void 0 : Ue.tablePrefs) != null && pe.enableDevModePagination) && g(!0);
7362
+ R(he), c.sql && ((pe = (Ge = c.preferences) == null ? void 0 : Ge.tablePrefs) != null && pe.enableDevModePagination) && g(!0);
7363
7363
  }
7364
7364
  function He() {
7365
- var G;
7365
+ var U;
7366
7366
  const fe = JSON.stringify(P == null ? void 0 : P.records, null, 2);
7367
- typeof navigator > "u" || !((G = navigator.clipboard) != null && G.writeText) || navigator.clipboard.writeText(fe).catch((J) => {
7367
+ typeof navigator > "u" || !((U = navigator.clipboard) != null && U.writeText) || navigator.clipboard.writeText(fe).catch((J) => {
7368
7368
  console.error("Failed to copy JSON", J);
7369
7369
  });
7370
7370
  }
7371
7371
  function at() {
7372
- const fe = JSON.stringify(P == null ? void 0 : P.records, null, 2), G = new Blob([fe], { type: "application/json" }), J = URL.createObjectURL(G), he = document.createElement("a");
7372
+ const fe = JSON.stringify(P == null ? void 0 : P.records, null, 2), U = new Blob([fe], { type: "application/json" }), J = URL.createObjectURL(U), he = document.createElement("a");
7373
7373
  he.href = J, he.download = `${c.title}.json`, he.click();
7374
7374
  }
7375
7375
  function mt() {
7376
- const G = [
7376
+ const U = [
7377
7377
  Object.keys(
7378
7378
  P == null ? void 0 : P.records.reduce((Ne, qe) => ({ ...Ne, ...qe }), {})
7379
7379
  ).join(","),
7380
7380
  ...((P == null ? void 0 : P.records) || []).map((Ne) => Object.values(Ne).join(","))
7381
7381
  ].join(`
7382
- `), J = new Blob([G], { type: "text/csv" }), he = URL.createObjectURL(J), ke = document.createElement("a");
7382
+ `), J = new Blob([U], { type: "text/csv" }), he = URL.createObjectURL(J), ke = document.createElement("a");
7383
7383
  ke.href = he, ke.download = `${c.title}.csv`, ke.click();
7384
7384
  }
7385
7385
  if (!c) return /* @__PURE__ */ e(De, { children: "No Active Card" });
@@ -7387,9 +7387,9 @@ function Hs({
7387
7387
  return /* @__PURE__ */ a(
7388
7388
  "div",
7389
7389
  {
7390
- className: Q(
7390
+ className: W(
7391
7391
  "relative isolate flex flex-col",
7392
- s === "toolbar" ? "h-auto pb-1" : Q("h-full", !E && "pt-2")
7392
+ s === "toolbar" ? "h-auto pb-1" : W("h-full", !E && "pt-2")
7393
7393
  ),
7394
7394
  children: [
7395
7395
  ye && /* @__PURE__ */ a(
@@ -7497,7 +7497,7 @@ function Hs({
7497
7497
  children: /* @__PURE__ */ e(
7498
7498
  yo,
7499
7499
  {
7500
- className: Q("h-3.5 w-3.5", {
7500
+ className: W("h-3.5 w-3.5", {
7501
7501
  "animate-spin": et
7502
7502
  })
7503
7503
  }
@@ -7520,7 +7520,7 @@ function Hs({
7520
7520
  size: "xs",
7521
7521
  "aria-pressed": n.isOpen,
7522
7522
  onClick: n.onToggle,
7523
- className: Q(
7523
+ className: W(
7524
7524
  "h-7 gap-1.5 px-2 text-[12px]",
7525
7525
  n.isOpen && "bg-muted/40 text-foreground"
7526
7526
  ),
@@ -7586,7 +7586,7 @@ function Hs({
7586
7586
  onCustomize: () => x(!0)
7587
7587
  }
7588
7588
  ),
7589
- /* @__PURE__ */ e(Gt, {}),
7589
+ /* @__PURE__ */ e(Ut, {}),
7590
7590
  /* @__PURE__ */ e(In, { children: "Export" }),
7591
7591
  /* @__PURE__ */ a(
7592
7592
  ut,
@@ -7645,7 +7645,7 @@ function Hs({
7645
7645
  ) : /* @__PURE__ */ e(Sa, {}) : /* @__PURE__ */ a(
7646
7646
  ea,
7647
7647
  {
7648
- className: Q(C && "py-2 pl-2 pr-6"),
7648
+ className: W(C && "py-2 pl-2 pr-6"),
7649
7649
  direction: "horizontal",
7650
7650
  children: [
7651
7651
  C && /* @__PURE__ */ a(De, { children: [
@@ -7668,7 +7668,7 @@ function Hs({
7668
7668
  id: "2",
7669
7669
  order: 2,
7670
7670
  minSize: 10,
7671
- className: Q(
7671
+ className: W(
7672
7672
  "relative flex h-full min-h-0 w-full flex-1 basis-0",
7673
7673
  {
7674
7674
  "py-2 pl-2 pr-6": C
@@ -7703,7 +7703,7 @@ function Hs({
7703
7703
  Lr,
7704
7704
  {
7705
7705
  error: Y,
7706
- errorSql: W || c.sql || c.python,
7706
+ errorSql: Q || c.sql || c.python,
7707
7707
  onDebugWithAssistant: me,
7708
7708
  showFeedbackButton: !1
7709
7709
  }
@@ -7871,7 +7871,7 @@ function ia({
7871
7871
  /* @__PURE__ */ e(
7872
7872
  ae,
7873
7873
  {
7874
- className: Q("w-full focus:ring-0 focus:ring-offset-0", i),
7874
+ className: W("w-full focus:ring-0 focus:ring-offset-0", i),
7875
7875
  children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
7876
7876
  l && /* @__PURE__ */ e("span", { children: l }),
7877
7877
  c && /* @__PURE__ */ e(ne, { placeholder: n })
@@ -7903,7 +7903,7 @@ function yn(t) {
7903
7903
  function Lp(t) {
7904
7904
  return t ? Array.isArray(t) ? t : [t] : [];
7905
7905
  }
7906
- function Qs(t) {
7906
+ function Ws(t) {
7907
7907
  var r, d;
7908
7908
  if (!t) return !1;
7909
7909
  if (t.type === "text")
@@ -7924,7 +7924,7 @@ function Pp({
7924
7924
  if (!i.required) return;
7925
7925
  if (typeof i.position == "number") {
7926
7926
  const o = n[i.position];
7927
- Qs(o) || r.push({
7927
+ Ws(o) || r.push({
7928
7928
  type: "missing-required",
7929
7929
  message: `${yn(i.position)} ("${i.label}") is required but has no data configured.`
7930
7930
  });
@@ -7935,7 +7935,7 @@ function Pp({
7935
7935
  const [, o, m] = l.map(Number);
7936
7936
  for (let h = o; h <= m; h += 1) {
7937
7937
  const v = n[h];
7938
- if (!Qs(v)) {
7938
+ if (!Ws(v)) {
7939
7939
  r.push({
7940
7940
  type: "missing-required",
7941
7941
  message: `${yn(h)} ("${i.label}") is required but has no data configured.`
@@ -7957,7 +7957,7 @@ function Pp({
7957
7957
  }
7958
7958
  for (let m = o; m < n.length; m += 1) {
7959
7959
  const h = n[m];
7960
- if (!Qs(h)) {
7960
+ if (!Ws(h)) {
7961
7961
  r.push({
7962
7962
  type: "missing-required",
7963
7963
  message: `${yn(m)} ("${i.label}") is required but has no data configured.`
@@ -8012,7 +8012,7 @@ function Ro() {
8012
8012
  ), E = ce(
8013
8013
  () => w.map((b, S) => {
8014
8014
  if (!b) return null;
8015
- const A = Yt(b, S), B = Ua(
8015
+ const A = Yt(b, S), B = Ga(
8016
8016
  b,
8017
8017
  A,
8018
8018
  h == null ? void 0 : h.slots
@@ -8134,7 +8134,7 @@ function Ro() {
8134
8134
  /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
8135
8135
  /* @__PURE__ */ e($, { children: q.title }),
8136
8136
  ((H = q.docs) == null ? void 0 : H.description) && /* @__PURE__ */ e(Lt, { delayDuration: 0, children: /* @__PURE__ */ a(St, { children: [
8137
- /* @__PURE__ */ e(Tt, { asChild: !0, children: /* @__PURE__ */ e(Qt, { className: "h-3.5 w-3.5 cursor-help text-muted-foreground" }) }),
8137
+ /* @__PURE__ */ e(Tt, { asChild: !0, children: /* @__PURE__ */ e(Wt, { className: "h-3.5 w-3.5 cursor-help text-muted-foreground" }) }),
8138
8138
  /* @__PURE__ */ e(wt, { side: "right", className: "max-w-xs", children: /* @__PURE__ */ e("p", { className: "text-xs", children: q.docs.description }) })
8139
8139
  ] }) })
8140
8140
  ] }),
@@ -8178,7 +8178,7 @@ function Ro() {
8178
8178
  ] })
8179
8179
  ] }) })
8180
8180
  ] }),
8181
- p && V.length > 0 && /* @__PURE__ */ e(Ki, { className: "mt-3 border-yellow-500/40 bg-yellow-500/10 text-yellow-900 dark:text-yellow-100", children: /* @__PURE__ */ e(Gi, { children: /* @__PURE__ */ e("ul", { className: "list-disc space-y-1 pl-4 text-xs", children: V.map((b, S) => /* @__PURE__ */ e("li", { children: b.message }, `${b.type}-${S}`)) }) }) }),
8181
+ p && V.length > 0 && /* @__PURE__ */ e(Ki, { className: "mt-3 border-yellow-500/40 bg-yellow-500/10 text-yellow-900 dark:text-yellow-100", children: /* @__PURE__ */ e(Ui, { children: /* @__PURE__ */ e("ul", { className: "list-disc space-y-1 pl-4 text-xs", children: V.map((b, S) => /* @__PURE__ */ e("li", { children: b.message }, `${b.type}-${S}`)) }) }) }),
8182
8182
  h && !p && h.settings && /* @__PURE__ */ e("div", { className: "space-y-3", children: /* @__PURE__ */ e("div", { className: "px-2", children: x({
8183
8183
  settingsSchema: h.settings,
8184
8184
  settingsField: "settings",
@@ -8276,7 +8276,7 @@ function Ro() {
8276
8276
  {
8277
8277
  asChild: !0,
8278
8278
  onClick: (b) => b.stopPropagation(),
8279
- children: /* @__PURE__ */ e(Qt, { className: "h-3.5 w-3.5 cursor-help text-muted-foreground transition-colors hover:text-foreground" })
8279
+ children: /* @__PURE__ */ e(Wt, { className: "h-3.5 w-3.5 cursor-help text-muted-foreground transition-colors hover:text-foreground" })
8280
8280
  }
8281
8281
  ),
8282
8282
  /* @__PURE__ */ e(
@@ -8369,7 +8369,7 @@ function Bp({
8369
8369
  {
8370
8370
  onChange: (o) => r(c, "start", o.target.value),
8371
8371
  value: l.start,
8372
- className: Q(`h-7 ${la}`)
8372
+ className: W(`h-7 ${la}`)
8373
8373
  }
8374
8374
  ),
8375
8375
  /* @__PURE__ */ e("span", { children: "-" }),
@@ -8378,7 +8378,7 @@ function Bp({
8378
8378
  {
8379
8379
  value: l.end,
8380
8380
  onChange: (o) => r(c, "end", o.target.value),
8381
- className: Q(`h-7 ${la}`)
8381
+ className: W(`h-7 ${la}`)
8382
8382
  }
8383
8383
  ),
8384
8384
  /* @__PURE__ */ e(
@@ -8386,16 +8386,16 @@ function Bp({
8386
8386
  {
8387
8387
  onChange: (o) => r(c, "color", o.target.value),
8388
8388
  value: l.color,
8389
- className: Q(`h-7 min-w-14 p-0 ${la}`),
8389
+ className: W(`h-7 min-w-14 p-0 ${la}`),
8390
8390
  type: "color",
8391
8391
  list: "presetColors"
8392
8392
  }
8393
8393
  ),
8394
8394
  /* @__PURE__ */ a("datalist", { id: "presetColors", children: [
8395
- /* @__PURE__ */ e("option", { children: Wn.green[600] }),
8396
- /* @__PURE__ */ e("option", { children: Wn.red[500] }),
8397
- /* @__PURE__ */ e("option", { children: Wn.yellow[400] }),
8398
- /* @__PURE__ */ e("option", { children: Wn.orange[500] })
8395
+ /* @__PURE__ */ e("option", { children: Qn.green[600] }),
8396
+ /* @__PURE__ */ e("option", { children: Qn.red[500] }),
8397
+ /* @__PURE__ */ e("option", { children: Qn.yellow[400] }),
8398
+ /* @__PURE__ */ e("option", { children: Qn.orange[500] })
8399
8399
  ] }),
8400
8400
  /* @__PURE__ */ e(
8401
8401
  Z,
@@ -8443,7 +8443,7 @@ function _p() {
8443
8443
  }
8444
8444
  ) || [], o = M(
8445
8445
  (C) => C.actions.setColorRanges
8446
- ), m = [...new Set(Gl.map((C) => C.currency))];
8446
+ ), m = [...new Set(Ul.map((C) => C.currency))];
8447
8447
  return /* @__PURE__ */ a("div", { children: [
8448
8448
  !r && /* @__PURE__ */ a("div", { className: "mb-3 flex items-center gap-2", children: [
8449
8449
  /* @__PURE__ */ e(
@@ -8486,7 +8486,7 @@ function _p() {
8486
8486
  /* @__PURE__ */ e(se, { children: /* @__PURE__ */ a(Pn, { children: [
8487
8487
  /* @__PURE__ */ e(cs, { children: "Format" }),
8488
8488
  /* @__PURE__ */ e(j, { value: "none", children: "Auto" }, "none"),
8489
- Gl.map((C) => /* @__PURE__ */ e(j, { value: C.locale, children: C.locale }, C.locale))
8489
+ Ul.map((C) => /* @__PURE__ */ e(j, { value: C.locale, children: C.locale }, C.locale))
8490
8490
  ] }) })
8491
8491
  ]
8492
8492
  }
@@ -8889,7 +8889,7 @@ function $p({
8889
8889
  className: "inline-flex items-center gap-1.5 text-xs font-medium text-primary hover:underline",
8890
8890
  children: [
8891
8891
  "View documentation",
8892
- /* @__PURE__ */ e(Gd, { className: "h-3 w-3" })
8892
+ /* @__PURE__ */ e(Ud, { className: "h-3 w-3" })
8893
8893
  ]
8894
8894
  }
8895
8895
  )
@@ -8944,7 +8944,7 @@ function ri({
8944
8944
  "details",
8945
8945
  {
8946
8946
  open: s,
8947
- className: Q("space-y-4 [&_summary>svg]:open:-rotate-180", r),
8947
+ className: W("space-y-4 [&_summary>svg]:open:-rotate-180", r),
8948
8948
  children: [
8949
8949
  /* @__PURE__ */ a("summary", { className: "flex cursor-pointer list-none items-center justify-between gap-4", children: [
8950
8950
  /* @__PURE__ */ e($, { children: n }),
@@ -9050,7 +9050,7 @@ function Kp() {
9050
9050
  /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: ((p = s == null ? void 0 : s.onClickFilter) == null ? void 0 : p.find(
9051
9051
  (u) => u.columnIndex === h
9052
9052
  )) && /* @__PURE__ */ e(
9053
- Ui,
9053
+ Gi,
9054
9054
  {
9055
9055
  onClick: () => {
9056
9056
  n((u) => {
@@ -9069,7 +9069,7 @@ function Kp() {
9069
9069
  );
9070
9070
  }) });
9071
9071
  }
9072
- const Gp = [
9072
+ const Up = [
9073
9073
  {
9074
9074
  label: "Mercator",
9075
9075
  value: "mercator"
@@ -9126,7 +9126,7 @@ const Gp = [
9126
9126
  label: "Natural Earth 1",
9127
9127
  value: "naturalEarth1"
9128
9128
  }
9129
- ], Up = [
9129
+ ], Gp = [
9130
9130
  "blues",
9131
9131
  "brBG",
9132
9132
  "buGn",
@@ -9165,11 +9165,11 @@ const Gp = [
9165
9165
  "ylGnBu",
9166
9166
  "ylOrBr",
9167
9167
  "ylOrRd"
9168
- ], Hp = Up.map((t) => ({
9168
+ ], Hp = Gp.map((t) => ({
9169
9169
  label: t,
9170
9170
  value: t
9171
9171
  }));
9172
- function Qp() {
9172
+ function Wp() {
9173
9173
  var o, m, h, v, p, u, f, C, g, w, E, V, N, T, I, k, y, O;
9174
9174
  const t = M((x) => x.card), n = (m = (o = t == null ? void 0 : t.preferences) == null ? void 0 : o.mapVisualOptions) == null ? void 0 : m.topoJsonUrl, [s, r] = K(
9175
9175
  ((v = (h = t == null ? void 0 : t.preferences) == null ? void 0 : h.mapVisualOptions) == null ? void 0 : v.customTopoJsonUrl) || ""
@@ -9261,7 +9261,7 @@ function Qp() {
9261
9261
  ia,
9262
9262
  {
9263
9263
  className: "h-9",
9264
- options: Gp,
9264
+ options: Up,
9265
9265
  value: ((C = (f = t.preferences) == null ? void 0 : f.mapVisualOptions) == null ? void 0 : C.projection) || "",
9266
9266
  label: "Projection",
9267
9267
  onValueChange: (x) => {
@@ -9400,7 +9400,7 @@ function hr(t, n) {
9400
9400
  maximumFractionDigits: n
9401
9401
  };
9402
9402
  }
9403
- const Wp = [
9403
+ const Qp = [
9404
9404
  "auto",
9405
9405
  "number",
9406
9406
  "currency",
@@ -9529,7 +9529,7 @@ function ln({
9529
9529
  children: /* @__PURE__ */ e(ne, {})
9530
9530
  }
9531
9531
  ),
9532
- /* @__PURE__ */ e(se, { children: Wp.map((u) => /* @__PURE__ */ e(j, { value: u, className: "text-xs", children: u === "auto" ? "Auto (Default)" : Xp(u) }, u)) })
9532
+ /* @__PURE__ */ e(se, { children: Qp.map((u) => /* @__PURE__ */ e(j, { value: u, className: "text-xs", children: u === "auto" ? "Auto (Default)" : Xp(u) }, u)) })
9533
9533
  ]
9534
9534
  }
9535
9535
  )
@@ -9748,7 +9748,7 @@ function Po({
9748
9748
  focusSection: s,
9749
9749
  focusRequestId: r
9750
9750
  }) {
9751
- var H, Y, W, de, oe, ue, Ce;
9751
+ var H, Y, Q, de, oe, ue, Ce;
9752
9752
  const d = M((me) => me.card), i = M(
9753
9753
  (me) => me.queryResultColumns
9754
9754
  ), l = M((me) => {
@@ -9758,15 +9758,15 @@ function Po({
9758
9758
  (me) => me.actions.setCardPreferences
9759
9759
  ), m = M(
9760
9760
  (me) => me.actions.updateTableConditionalFormatting
9761
- ), h = ((H = d.config) == null ? void 0 : H.metricColumns) || [], v = t ?? d.type, p = n ?? i, u = d.type === v ? d : { ...d, type: v }, f = Ud(
9761
+ ), h = ((H = d.config) == null ? void 0 : H.metricColumns) || [], v = t ?? d.type, p = n ?? i, u = d.type === v ? d : { ...d, type: v }, f = Gd(
9762
9762
  u,
9763
9763
  p
9764
9764
  ), C = Hd(
9765
9765
  u,
9766
9766
  p
9767
- ), g = Xd(v), w = v === "table", E = v === "table", V = ((Y = f[0]) == null ? void 0 : Y.value) || "", N = Qd(
9768
- (W = l == null ? void 0 : l.tablePrefs) == null ? void 0 : W.conditionalFormatting
9769
- ), T = Wd(c), I = Jd(u), k = Yd(u), [y, O] = K("style");
9767
+ ), g = Xd(v), w = v === "table", E = v === "table", V = ((Y = f[0]) == null ? void 0 : Y.value) || "", N = Wd(
9768
+ (Q = l == null ? void 0 : l.tablePrefs) == null ? void 0 : Q.conditionalFormatting
9769
+ ), T = Qd(c), I = Jd(u), k = Yd(u), [y, O] = K("style");
9770
9770
  Se(() => {
9771
9771
  if (s === "style") {
9772
9772
  O("style");
@@ -10010,7 +10010,7 @@ function tf({
10010
10010
  Js,
10011
10011
  {
10012
10012
  label: "Increase",
10013
- value: Ws(r.increase),
10013
+ value: Qs(r.increase),
10014
10014
  defaultValue: "#16a34a",
10015
10015
  onChange: (l) => i({
10016
10016
  colors: { ...r, increase: l ?? "#16a34a" }
@@ -10021,7 +10021,7 @@ function tf({
10021
10021
  Js,
10022
10022
  {
10023
10023
  label: "Decrease",
10024
- value: Ws(r.decrease),
10024
+ value: Qs(r.decrease),
10025
10025
  defaultValue: "#dc2626",
10026
10026
  onChange: (l) => i({
10027
10027
  colors: { ...r, decrease: l ?? "#dc2626" }
@@ -10032,7 +10032,7 @@ function tf({
10032
10032
  Js,
10033
10033
  {
10034
10034
  label: "No change",
10035
- value: Ws(r.neutral),
10035
+ value: Qs(r.neutral),
10036
10036
  defaultValue: "#6b7280",
10037
10037
  onChange: (l) => i({
10038
10038
  colors: { ...r, neutral: l ?? "#6b7280" }
@@ -10077,7 +10077,7 @@ const af = {
10077
10077
  red: "#dc2626",
10078
10078
  neutral: "#6b7280"
10079
10079
  };
10080
- function Ws(t) {
10080
+ function Qs(t) {
10081
10081
  return t && (af[t] ?? t);
10082
10082
  }
10083
10083
  function Js({
@@ -10088,7 +10088,7 @@ function Js({
10088
10088
  }) {
10089
10089
  return /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
10090
10090
  /* @__PURE__ */ e(
10091
- Qa,
10091
+ Wa,
10092
10092
  {
10093
10093
  value: n,
10094
10094
  onChange: s,
@@ -10364,13 +10364,13 @@ function df() {
10364
10364
  const b = s === "stackedBar" || s === "stackedLine", S = s === "bar" || s === "line" || s === "horizontalBar" || s === "bullet" || s === "combo" || s === "area" || s === "stackedArea", A = ((B = t == null ? void 0 : t.config) == null ? void 0 : B.pivotByColumns) && t.config.pivotByColumns.length > 0;
10365
10365
  if ((b || S) && A) {
10366
10366
  if (l.pivotSchema && Array.isArray(l.pivotSchema)) {
10367
- const W = /* @__PURE__ */ new Set();
10367
+ const Q = /* @__PURE__ */ new Set();
10368
10368
  return l.pivotSchema.forEach((de) => {
10369
- de.alias && W.add(de.alias);
10370
- }), Array.from(W);
10369
+ de.alias && Q.add(de.alias);
10370
+ }), Array.from(Q);
10371
10371
  }
10372
10372
  if (l.records.length > 0) {
10373
- const W = l.records[0], de = Object.keys(W), oe = /* @__PURE__ */ new Set();
10373
+ const Q = l.records[0], de = Object.keys(Q), oe = /* @__PURE__ */ new Set();
10374
10374
  (z = t == null ? void 0 : t.config) != null && z.groupByColumns && t.config.groupByColumns.forEach((me) => {
10375
10375
  oe.add(me.label || me.name), oe.add(me.alias || me.name);
10376
10376
  });
@@ -10387,10 +10387,10 @@ function df() {
10387
10387
  }
10388
10388
  if ((S || b) && !A && ((q = (P = t == null ? void 0 : t.config) == null ? void 0 : P.metricColumns) != null && q.length))
10389
10389
  return t.config.metricColumns.map(
10390
- (W) => W.alias || W.label || W.name
10390
+ (Q) => Q.alias || Q.label || Q.name
10391
10391
  );
10392
10392
  if ((Y = (H = t == null ? void 0 : t.config) == null ? void 0 : H.groupByColumns) != null && Y.length) {
10393
- const W = t.config.groupByColumns[0], de = W.label || W.name, oe = /* @__PURE__ */ new Set();
10393
+ const Q = t.config.groupByColumns[0], de = Q.label || Q.name, oe = /* @__PURE__ */ new Set();
10394
10394
  return l.records.forEach((ue) => {
10395
10395
  const Ce = ue[de];
10396
10396
  Ce != null && oe.add(String(Ce));
@@ -10509,7 +10509,7 @@ function df() {
10509
10509
  /* @__PURE__ */ e("div", { className: "grid grid-cols-5 gap-1.5", children: f.slice(0, 10).map((z, _) => /* @__PURE__ */ a(
10510
10510
  "button",
10511
10511
  {
10512
- className: Q(
10512
+ className: W(
10513
10513
  "relative h-5 w-5 rounded border-2 transition-all hover:scale-110",
10514
10514
  c[b] === z ? "border-gray-900" : "border-transparent"
10515
10515
  ),
@@ -10530,7 +10530,7 @@ function df() {
10530
10530
  /* @__PURE__ */ e("div", { className: "grid grid-cols-5 gap-1.5", children: cf.map((z, _) => /* @__PURE__ */ e(
10531
10531
  "button",
10532
10532
  {
10533
- className: Q(
10533
+ className: W(
10534
10534
  "h-5 w-5 rounded border transition-all hover:scale-110",
10535
10535
  c[b] === z ? "border-2 border-gray-900" : z === "#ffffff" ? "border border-gray-300" : "border border-transparent"
10536
10536
  ),
@@ -11094,14 +11094,14 @@ function hf() {
11094
11094
  [_]: P
11095
11095
  };
11096
11096
  _ === "enabled" && (Y.display = P, P && h && !Y.position && (Y.position = "bottom")), _ === "position" && h && (Y.position = "bottom"), _ === "formatMode" && P === "inherit" && (Y.format = void 0, Y.formatOptions = void 0);
11097
- const W = {
11097
+ const Q = {
11098
11098
  ...t.preferences || {},
11099
11099
  dataLabelsConfig: Y
11100
11100
  };
11101
- d(W);
11101
+ d(Q);
11102
11102
  const de = {
11103
11103
  ...t,
11104
- preferences: W
11104
+ preferences: Q
11105
11105
  };
11106
11106
  i(de);
11107
11107
  }, E = (_, P) => {
@@ -11112,14 +11112,14 @@ function hf() {
11112
11112
  ...q.font || {},
11113
11113
  [_]: P
11114
11114
  }
11115
- }, W = {
11115
+ }, Q = {
11116
11116
  ...t.preferences || {},
11117
11117
  dataLabelsConfig: Y
11118
11118
  };
11119
- d(W);
11119
+ d(Q);
11120
11120
  const de = {
11121
11121
  ...t,
11122
- preferences: W
11122
+ preferences: Q
11123
11123
  };
11124
11124
  i(de);
11125
11125
  }, V = () => {
@@ -11442,7 +11442,7 @@ function ff() {
11442
11442
  }
11443
11443
  ),
11444
11444
  /* @__PURE__ */ a(Ya, { openDelay: 120, closeDelay: 80, children: [
11445
- /* @__PURE__ */ e(Xa, { asChild: !0, children: /* @__PURE__ */ e(Qt, { className: "h-3 w-3 cursor-help text-muted-foreground" }) }),
11445
+ /* @__PURE__ */ e(Xa, { asChild: !0, children: /* @__PURE__ */ e(Wt, { className: "h-3 w-3 cursor-help text-muted-foreground" }) }),
11446
11446
  /* @__PURE__ */ e(
11447
11447
  Za,
11448
11448
  {
@@ -11555,7 +11555,7 @@ function ff() {
11555
11555
  ] }),
11556
11556
  o.showColor !== !1 && /* @__PURE__ */ a("div", { className: "space-y-1.5 pt-1", children: [
11557
11557
  /* @__PURE__ */ e(er, { label: "Increase", children: /* @__PURE__ */ e(
11558
- Qa,
11558
+ Wa,
11559
11559
  {
11560
11560
  value: Zs(
11561
11561
  ((g = o.colorConfig) == null ? void 0 : g.increase) || "green"
@@ -11572,7 +11572,7 @@ function ff() {
11572
11572
  }
11573
11573
  ) }),
11574
11574
  /* @__PURE__ */ e(er, { label: "Decrease", children: /* @__PURE__ */ e(
11575
- Qa,
11575
+ Wa,
11576
11576
  {
11577
11577
  value: Zs(
11578
11578
  ((w = o.colorConfig) == null ? void 0 : w.decrease) || "red"
@@ -11589,7 +11589,7 @@ function ff() {
11589
11589
  }
11590
11590
  ) }),
11591
11591
  /* @__PURE__ */ e(er, { label: "No change", children: /* @__PURE__ */ e(
11592
- Qa,
11592
+ Wa,
11593
11593
  {
11594
11594
  value: Zs(
11595
11595
  ((E = o.colorConfig) == null ? void 0 : E.noChange) || "neutral"
@@ -11890,7 +11890,7 @@ function bf() {
11890
11890
  i === "custom" && /* @__PURE__ */ a("div", { className: "flex flex-col gap-2 pl-6", children: [
11891
11891
  /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
11892
11892
  /* @__PURE__ */ e(
11893
- Qa,
11893
+ Wa,
11894
11894
  {
11895
11895
  value: c[0],
11896
11896
  onChange: (p) => h(0, p ?? "#000000"),
@@ -11902,7 +11902,7 @@ function bf() {
11902
11902
  ] }),
11903
11903
  /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
11904
11904
  /* @__PURE__ */ e(
11905
- Qa,
11905
+ Wa,
11906
11906
  {
11907
11907
  value: c[1],
11908
11908
  onChange: (p) => h(1, p ?? "#000000"),
@@ -11992,8 +11992,8 @@ function vf() {
11992
11992
  ...i.rangeKeys || {}
11993
11993
  };
11994
11994
  let P = !1;
11995
- if (di.forEach((Y, W) => {
11996
- !_[Y] && z[W] && (_[Y] = z[W].value, P = !0);
11995
+ if (di.forEach((Y, Q) => {
11996
+ !_[Y] && z[Q] && (_[Y] = z[Q].value, P = !0);
11997
11997
  }), P && (b.rangeKeys = _, S = !0, i.showRanges === void 0 && (b.showRanges = !0)), S) {
11998
11998
  const Y = ui({
11999
11999
  ...i,
@@ -12195,7 +12195,7 @@ function vf() {
12195
12195
  {
12196
12196
  type: "button",
12197
12197
  className: "text-muted-foreground transition-colors hover:text-foreground",
12198
- children: /* @__PURE__ */ e(Qt, { className: "h-3.5 w-3.5" })
12198
+ children: /* @__PURE__ */ e(Wt, { className: "h-3.5 w-3.5" })
12199
12199
  }
12200
12200
  ) }),
12201
12201
  /* @__PURE__ */ e(wt, { side: "top", children: "Use columns or static values for Poor / Average / Good." })
@@ -12399,7 +12399,7 @@ function yf() {
12399
12399
  /* @__PURE__ */ a("div", { className: "flex items-center gap-1 text-xs font-medium text-muted-foreground", children: [
12400
12400
  "Dimensions",
12401
12401
  /* @__PURE__ */ e(Lt, { children: /* @__PURE__ */ a(St, { children: [
12402
- /* @__PURE__ */ e(Tt, { children: /* @__PURE__ */ e(Qt, { className: "h-3 w-3" }) }),
12402
+ /* @__PURE__ */ e(Tt, { children: /* @__PURE__ */ e(Wt, { className: "h-3 w-3" }) }),
12403
12403
  /* @__PURE__ */ e(wt, { side: "right", className: "max-w-xs", children: /* @__PURE__ */ e("p", { children: "Label identifies each point. Group creates separate series in the legend." }) })
12404
12404
  ] }) })
12405
12405
  ] }),
@@ -13188,13 +13188,13 @@ function Mf({ metricKey: t, idx: n }) {
13188
13188
  dataLabels: E
13189
13189
  });
13190
13190
  }
13191
- return /* @__PURE__ */ e(Ut, { open: s, onOpenChange: r, children: /* @__PURE__ */ a("div", { className: "rounded-lg border border-border bg-muted/30", children: [
13191
+ return /* @__PURE__ */ e(Gt, { open: s, onOpenChange: r, children: /* @__PURE__ */ a("div", { className: "rounded-lg border border-border bg-muted/30", children: [
13192
13192
  /* @__PURE__ */ e(Xt, { asChild: !0, children: /* @__PURE__ */ a("button", { className: "flex w-full items-center justify-between gap-3 overflow-hidden px-3 py-2 text-left hover:bg-muted/50", children: [
13193
13193
  /* @__PURE__ */ a("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
13194
13194
  /* @__PURE__ */ e(
13195
13195
  Zt,
13196
13196
  {
13197
- className: Q(
13197
+ className: W(
13198
13198
  "h-4 w-4 shrink-0 text-muted-foreground transition-transform",
13199
13199
  s && "rotate-90"
13200
13200
  )
@@ -13206,7 +13206,7 @@ function Mf({ metricKey: t, idx: n }) {
13206
13206
  /* @__PURE__ */ a(
13207
13207
  "span",
13208
13208
  {
13209
- className: Q(
13209
+ className: W(
13210
13210
  "flex items-center gap-1 rounded px-1.5 py-0.5 text-xs",
13211
13211
  "border border-border bg-background text-muted-foreground"
13212
13212
  ),
@@ -13219,7 +13219,7 @@ function Mf({ metricKey: t, idx: n }) {
13219
13219
  /* @__PURE__ */ e(
13220
13220
  "span",
13221
13221
  {
13222
- className: Q(
13222
+ className: W(
13223
13223
  "rounded px-1.5 py-0.5 text-xs",
13224
13224
  "border border-border bg-background text-muted-foreground"
13225
13225
  ),
@@ -13236,7 +13236,7 @@ function Mf({ metricKey: t, idx: n }) {
13236
13236
  "button",
13237
13237
  {
13238
13238
  onClick: () => u(E),
13239
- className: Q(
13239
+ className: W(
13240
13240
  "flex items-center gap-2 rounded-md border px-3 py-1.5 text-xs transition-colors",
13241
13241
  o === E ? "border-primary bg-primary/10 text-primary" : "border-border bg-background text-muted-foreground hover:bg-muted"
13242
13242
  ),
@@ -13456,13 +13456,13 @@ function zf({ metricKey: t, idx: n }) {
13456
13456
  dataLabels: g
13457
13457
  });
13458
13458
  }
13459
- return /* @__PURE__ */ e(Ut, { open: s, onOpenChange: r, children: /* @__PURE__ */ a("div", { className: "rounded-lg border border-border bg-muted/30", children: [
13459
+ return /* @__PURE__ */ e(Gt, { open: s, onOpenChange: r, children: /* @__PURE__ */ a("div", { className: "rounded-lg border border-border bg-muted/30", children: [
13460
13460
  /* @__PURE__ */ e(Xt, { asChild: !0, children: /* @__PURE__ */ a("button", { className: "flex w-full items-center justify-between gap-3 overflow-hidden px-3 py-2 text-left hover:bg-muted/50", children: [
13461
13461
  /* @__PURE__ */ a("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
13462
13462
  /* @__PURE__ */ e(
13463
13463
  Zt,
13464
13464
  {
13465
- className: Q(
13465
+ className: W(
13466
13466
  "h-4 w-4 shrink-0 text-muted-foreground transition-transform",
13467
13467
  s && "rotate-90"
13468
13468
  )
@@ -13473,12 +13473,12 @@ function zf({ metricKey: t, idx: n }) {
13473
13473
  /* @__PURE__ */ e("div", { className: "flex shrink-0 items-center gap-1.5", children: /* @__PURE__ */ a(
13474
13474
  "span",
13475
13475
  {
13476
- className: Q(
13476
+ className: W(
13477
13477
  "flex items-center gap-1 rounded px-1.5 py-0.5 text-xs",
13478
13478
  "border border-border bg-background text-muted-foreground"
13479
13479
  ),
13480
13480
  children: [
13481
- /* @__PURE__ */ e(Qi, { className: "h-3 w-3" }),
13481
+ /* @__PURE__ */ e(Wi, { className: "h-3 w-3" }),
13482
13482
  h.label.split(" ")[0]
13483
13483
  ]
13484
13484
  }
@@ -13635,9 +13635,9 @@ function jf() {
13635
13635
  }
13636
13636
  function Kf() {
13637
13637
  const { transformedMetricKeys: t } = Os();
13638
- return t.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-lg border border-dashed border-border p-4 text-center text-xs text-muted-foreground", children: "Add metrics to configure series" }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: t.map((n, s) => /* @__PURE__ */ e(Gf, { metricKey: n, idx: s }, n)) });
13638
+ return t.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-lg border border-dashed border-border p-4 text-center text-xs text-muted-foreground", children: "Add metrics to configure series" }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: t.map((n, s) => /* @__PURE__ */ e(Uf, { metricKey: n, idx: s }, n)) });
13639
13639
  }
13640
- function Gf({ metricKey: t, idx: n }) {
13640
+ function Uf({ metricKey: t, idx: n }) {
13641
13641
  var g;
13642
13642
  const [s, r] = K(!1), d = M((w) => {
13643
13643
  var E;
@@ -13685,13 +13685,13 @@ function Gf({ metricKey: t, idx: n }) {
13685
13685
  dataLabels: w
13686
13686
  });
13687
13687
  }
13688
- return /* @__PURE__ */ e(Ut, { open: s, onOpenChange: r, children: /* @__PURE__ */ a("div", { className: "rounded-lg border border-border bg-muted/30", children: [
13688
+ return /* @__PURE__ */ e(Gt, { open: s, onOpenChange: r, children: /* @__PURE__ */ a("div", { className: "rounded-lg border border-border bg-muted/30", children: [
13689
13689
  /* @__PURE__ */ e(Xt, { asChild: !0, children: /* @__PURE__ */ a("button", { className: "flex w-full items-center justify-between gap-3 overflow-hidden px-3 py-2 text-left hover:bg-muted/50", children: [
13690
13690
  /* @__PURE__ */ a("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
13691
13691
  /* @__PURE__ */ e(
13692
13692
  Zt,
13693
13693
  {
13694
- className: Q(
13694
+ className: W(
13695
13695
  "h-4 w-4 shrink-0 text-muted-foreground transition-transform",
13696
13696
  s && "rotate-90"
13697
13697
  )
@@ -13702,7 +13702,7 @@ function Gf({ metricKey: t, idx: n }) {
13702
13702
  /* @__PURE__ */ e("div", { className: "flex shrink-0 items-center gap-1.5", children: /* @__PURE__ */ a(
13703
13703
  "span",
13704
13704
  {
13705
- className: Q(
13705
+ className: W(
13706
13706
  "flex items-center gap-1 rounded px-1.5 py-0.5 text-xs",
13707
13707
  "border border-border bg-background text-muted-foreground"
13708
13708
  ),
@@ -13811,7 +13811,7 @@ function Gf({ metricKey: t, idx: n }) {
13811
13811
  ] }) }) })
13812
13812
  ] }) });
13813
13813
  }
13814
- const Uf = [0, 2, 4, 6, 8, 10, 12, 16, 20];
13814
+ const Gf = [0, 2, 4, 6, 8, 10, 12, 16, 20];
13815
13815
  function Hf() {
13816
13816
  const t = M((n) => {
13817
13817
  var s;
@@ -13822,14 +13822,14 @@ function Hf() {
13822
13822
  /* @__PURE__ */ e(Bn, { className: "h-4 w-4 text-muted-foreground" }),
13823
13823
  /* @__PURE__ */ e("span", { children: "Series" })
13824
13824
  ] }) }),
13825
- /* @__PURE__ */ e(ot, { className: "pt-2", children: /* @__PURE__ */ e(Qf, {}) })
13825
+ /* @__PURE__ */ e(ot, { className: "pt-2", children: /* @__PURE__ */ e(Wf, {}) })
13826
13826
  ] });
13827
13827
  }
13828
- function Qf() {
13828
+ function Wf() {
13829
13829
  const { transformedMetricKeys: t } = Os();
13830
- return t.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-lg border border-dashed border-border p-4 text-center text-xs text-muted-foreground", children: "Add metrics to configure series" }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: t.map((n, s) => /* @__PURE__ */ e(Wf, { metricKey: n, idx: s }, n)) });
13830
+ return t.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-lg border border-dashed border-border p-4 text-center text-xs text-muted-foreground", children: "Add metrics to configure series" }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: t.map((n, s) => /* @__PURE__ */ e(Qf, { metricKey: n, idx: s }, n)) });
13831
13831
  }
13832
- function Wf({ metricKey: t, idx: n }) {
13832
+ function Qf({ metricKey: t, idx: n }) {
13833
13833
  var f;
13834
13834
  const [s, r] = K(!1), d = M((C) => {
13835
13835
  var g;
@@ -13879,13 +13879,13 @@ function Wf({ metricKey: t, idx: n }) {
13879
13879
  dataLabels: C
13880
13880
  });
13881
13881
  }
13882
- return /* @__PURE__ */ e(Ut, { open: s, onOpenChange: r, children: /* @__PURE__ */ a("div", { className: "rounded-lg border border-border bg-muted/30", children: [
13882
+ return /* @__PURE__ */ e(Gt, { open: s, onOpenChange: r, children: /* @__PURE__ */ a("div", { className: "rounded-lg border border-border bg-muted/30", children: [
13883
13883
  /* @__PURE__ */ e(Xt, { asChild: !0, children: /* @__PURE__ */ a("button", { className: "flex w-full items-center justify-between gap-3 overflow-hidden px-3 py-2 text-left hover:bg-muted/50", children: [
13884
13884
  /* @__PURE__ */ a("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
13885
13885
  /* @__PURE__ */ e(
13886
13886
  Zt,
13887
13887
  {
13888
- className: Q(
13888
+ className: W(
13889
13889
  "h-4 w-4 shrink-0 text-muted-foreground transition-transform",
13890
13890
  s && "rotate-90"
13891
13891
  )
@@ -13896,7 +13896,7 @@ function Wf({ metricKey: t, idx: n }) {
13896
13896
  /* @__PURE__ */ e("div", { className: "flex shrink-0 items-center gap-1.5", children: m > 0 && /* @__PURE__ */ a(
13897
13897
  "span",
13898
13898
  {
13899
- className: Q(
13899
+ className: W(
13900
13900
  "flex items-center gap-1 rounded px-1.5 py-0.5 text-xs",
13901
13901
  "border border-border bg-background text-muted-foreground"
13902
13902
  ),
@@ -13920,7 +13920,7 @@ function Wf({ metricKey: t, idx: n }) {
13920
13920
  onValueChange: (C) => v({ borderRadius: Number(C) }),
13921
13921
  children: [
13922
13922
  /* @__PURE__ */ e(ae, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(ne, {}) }),
13923
- /* @__PURE__ */ e(se, { children: Uf.map((C) => /* @__PURE__ */ e(
13923
+ /* @__PURE__ */ e(se, { children: Gf.map((C) => /* @__PURE__ */ e(
13924
13924
  j,
13925
13925
  {
13926
13926
  value: String(C),
@@ -14199,7 +14199,7 @@ function og() {
14199
14199
  var E, V;
14200
14200
  const t = M((N) => N.card), n = M(
14201
14201
  (N) => N.actions.updateCardConfig
14202
- ), s = xt(), { scopedFields: r } = Wi(), d = ((E = t.config) == null ? void 0 : E.metricColumns) || [], i = ((V = t.config) == null ? void 0 : V.summary) || {}, l = i.breakdownDimensions || [], c = l.length > 0, o = rg.includes(s), m = d.length > 0, h = i.enabled === !0, v = o && m, p = Array.from(
14202
+ ), s = xt(), { scopedFields: r } = Qi(), d = ((E = t.config) == null ? void 0 : E.metricColumns) || [], i = ((V = t.config) == null ? void 0 : V.summary) || {}, l = i.breakdownDimensions || [], c = l.length > 0, o = rg.includes(s), m = d.length > 0, h = i.enabled === !0, v = o && m, p = Array.from(
14203
14203
  new Map(
14204
14204
  r.filter(lg).map((N) => [wa(N), ig(N)])
14205
14205
  ).values()
@@ -14264,7 +14264,7 @@ function og() {
14264
14264
  /* @__PURE__ */ e(ot, { className: "pb-4 pt-2", children: /* @__PURE__ */ a(
14265
14265
  "div",
14266
14266
  {
14267
- className: Q(
14267
+ className: W(
14268
14268
  "space-y-3 transition-opacity",
14269
14269
  !h && "opacity-60"
14270
14270
  ),
@@ -14393,7 +14393,7 @@ function dg() {
14393
14393
  };
14394
14394
  return /* @__PURE__ */ a(lt, { value: "tooltip-format", className: "border-b-0", children: [
14395
14395
  /* @__PURE__ */ e(it, { className: "flex w-full items-center gap-2 py-2 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
14396
- /* @__PURE__ */ e(Qt, { className: "h-3.5 w-3.5 text-foreground/60" }),
14396
+ /* @__PURE__ */ e(Wt, { className: "h-3.5 w-3.5 text-foreground/60" }),
14397
14397
  /* @__PURE__ */ e("span", { children: "Tooltip Format" })
14398
14398
  ] }) }),
14399
14399
  /* @__PURE__ */ a(ot, { className: "space-y-4 pt-2", children: [
@@ -14470,9 +14470,9 @@ function mg({
14470
14470
  const s = M((l) => l.card), r = s.type;
14471
14471
  if (rn(s) === "dynamic")
14472
14472
  return /* @__PURE__ */ e("div", { className: "p-6", children: /* @__PURE__ */ a(Ki, { children: [
14473
- /* @__PURE__ */ e(Qt, { className: "h-4 w-4" }),
14473
+ /* @__PURE__ */ e(Wt, { className: "h-4 w-4" }),
14474
14474
  /* @__PURE__ */ e(gu, { children: "Dynamic mode manages presentation" }),
14475
- /* @__PURE__ */ e(Gi, { children: "Built-in chart settings are hidden while this card is in dynamic mode. Query and data edits still apply, and the dynamic visual editor in the main panel controls the rendered output." })
14475
+ /* @__PURE__ */ e(Ui, { children: "Built-in chart settings are hidden while this card is in dynamic mode. Query and data edits still apply, and the dynamic visual editor in the main panel controls the rendered output." })
14476
14476
  ] }) });
14477
14477
  function i() {
14478
14478
  switch (r) {
@@ -14491,7 +14491,7 @@ function mg({
14491
14491
  }
14492
14492
  );
14493
14493
  case "map":
14494
- return /* @__PURE__ */ e(Qp, {});
14494
+ return /* @__PURE__ */ e(Wp, {});
14495
14495
  case "custom":
14496
14496
  return /* @__PURE__ */ e("div", { className: "px-6 py-2", children: /* @__PURE__ */ e(Ro, {}) });
14497
14497
  case "text":
@@ -14593,38 +14593,38 @@ function hg() {
14593
14593
  function pg(t) {
14594
14594
  var fe;
14595
14595
  Sn(
14596
- (G) => G.currentAIContext
14596
+ (U) => U.currentAIContext
14597
14597
  );
14598
- const [n, s] = K(""), [r, d] = K(null), { authToken: i, tokenProps: l } = La(), c = M((G) => G.card.id), o = M((G) => {
14598
+ const [n, s] = K(""), [r, d] = K(null), { authToken: i, tokenProps: l } = La(), c = M((U) => U.card.id), o = M((U) => {
14599
14599
  var J;
14600
- return (J = G == null ? void 0 : G.card) == null ? void 0 : J.sql;
14601
- }), m = M((G) => G.isDevMode), h = M((G) => {
14600
+ return (J = U == null ? void 0 : U.card) == null ? void 0 : J.sql;
14601
+ }), m = M((U) => U.isDevMode), h = M((U) => {
14602
14602
  var J;
14603
- return (J = G == null ? void 0 : G.card) == null ? void 0 : J.python;
14603
+ return (J = U == null ? void 0 : U.card) == null ? void 0 : J.python;
14604
14604
  }), {
14605
14605
  setCardPython: v,
14606
14606
  setCardSql: p,
14607
14607
  setRunSql: u,
14608
14608
  switchCardType: f,
14609
14609
  setQueryConfig: C
14610
- } = we(), g = M((G) => G.currentAssitantScope) || [], w = M((G) => G.userInputForAI), E = M((G) => G.triggerAIRun), V = M((G) => G.card), N = M(
14611
- (G) => G.selectedDatabaseName
14612
- ), T = M((G) => G.selectedTableName), I = M(
14613
- (G) => G.selectedConnectionId
14610
+ } = we(), g = M((U) => U.currentAssitantScope) || [], w = M((U) => U.userInputForAI), E = M((U) => U.triggerAIRun), V = M((U) => U.card), N = M(
14611
+ (U) => U.selectedDatabaseName
14612
+ ), T = M((U) => U.selectedTableName), I = M(
14613
+ (U) => U.selectedConnectionId
14614
14614
  ), k = M(
14615
- (G) => G.selectedSchemaName
14615
+ (U) => U.selectedSchemaName
14616
14616
  ), y = Ae(
14617
- (G) => G.dashboard.aiScopeTables
14617
+ (U) => U.dashboard.aiScopeTables
14618
14618
  ), {
14619
14619
  errorMessage: O,
14620
14620
  refetch: x,
14621
14621
  data: R
14622
- } = bt(V), { setTriggerAIRun: D, setCurrentAssitantScope: F, setCardConfig: L } = we(), { selectedDatamodelName: b, connectionType: S, selectedDatamodelId: A } = xu(), B = (fe = wi().data) == null ? void 0 : fe.assistantProfileId, z = Ee(Qn()), _ = Ee(null), P = Ee(c), q = Ee(!1), H = () => {
14623
- const G = _.current;
14624
- G && (_.current = null, z.current = Qn(), G === "clear" && W([]));
14622
+ } = bt(V), { setTriggerAIRun: D, setCurrentAssitantScope: F, setCardConfig: L } = we(), { selectedDatamodelName: b, connectionType: S, selectedDatamodelId: A } = xu(), B = (fe = wi().data) == null ? void 0 : fe.assistantProfileId, z = Ee(Wn()), _ = Ee(null), P = Ee(c), q = Ee(!1), H = () => {
14623
+ const U = _.current;
14624
+ U && (_.current = null, z.current = Wn(), U === "clear" && Q([]));
14625
14625
  }, {
14626
14626
  messages: Y,
14627
- setMessages: W,
14627
+ setMessages: Q,
14628
14628
  regenerate: de,
14629
14629
  error: oe,
14630
14630
  sendMessage: ue,
@@ -14639,7 +14639,7 @@ function pg(t) {
14639
14639
  Authorization: `Bearer ${i == null ? void 0 : i.accessToken}`
14640
14640
  }),
14641
14641
  body: () => {
14642
- const G = Sn.getState();
14642
+ const U = Sn.getState();
14643
14643
  return {
14644
14644
  random: Math.random(),
14645
14645
  assistantId: "editor-assistant",
@@ -14647,38 +14647,38 @@ function pg(t) {
14647
14647
  conversationId: z.current,
14648
14648
  assistantRequestId: bu(),
14649
14649
  isDevMode: m,
14650
- aiContext: G.currentAIContext,
14651
- reasoningEffort: G.reasoningEffort,
14652
- showReasoning: G.showReasoning
14650
+ aiContext: U.currentAIContext,
14651
+ reasoningEffort: U.reasoningEffort,
14652
+ showReasoning: U.showReasoning
14653
14653
  };
14654
14654
  },
14655
14655
  // Keep omit to avoid CORS issue with wildcard ACAO
14656
14656
  credentials: "omit",
14657
14657
  // Ensure we never send incomplete tool-input parts after a stopped stream
14658
- prepareSendMessagesRequest: ({ messages: G, body: J }) => ({
14658
+ prepareSendMessagesRequest: ({ messages: U, body: J }) => ({
14659
14659
  body: {
14660
14660
  ...J,
14661
- messages: oo(G)
14661
+ messages: oo(U)
14662
14662
  }
14663
14663
  })
14664
14664
  }),
14665
- onError: (G) => {
14665
+ onError: (U) => {
14666
14666
  var J;
14667
- if (q.current = !1, G.name === "AbortError" || (J = G.message) != null && J.includes("aborted")) {
14667
+ if (q.current = !1, U.name === "AbortError" || (J = U.message) != null && J.includes("aborted")) {
14668
14668
  console.log("[Editor Assistant] Stream aborted (expected)"), H();
14669
14669
  return;
14670
14670
  }
14671
- console.error("[Editor Assistant] Stream error:", G), H();
14671
+ console.error("[Editor Assistant] Stream error:", U), H();
14672
14672
  },
14673
14673
  onToolCall: Oe,
14674
- onFinish({ isAbort: G, isDisconnect: J, isError: he }) {
14675
- q.current = !1, s(""), console.log(G ? "[Editor Assistant] Stream aborted by user" : J ? "[Editor Assistant] Stream disconnected (network error)" : he ? "[Editor Assistant] Stream error occurred" : "[Editor Assistant] Stream completed successfully"), H();
14674
+ onFinish({ isAbort: U, isDisconnect: J, isError: he }) {
14675
+ q.current = !1, s(""), console.log(U ? "[Editor Assistant] Stream aborted by user" : J ? "[Editor Assistant] Stream disconnected (network error)" : he ? "[Editor Assistant] Stream error occurred" : "[Editor Assistant] Stream completed successfully"), H();
14676
14676
  }
14677
14677
  }), et = Ie(
14678
- (G) => {
14678
+ (U) => {
14679
14679
  q.current = !0;
14680
14680
  try {
14681
- const J = ue(G);
14681
+ const J = ue(U);
14682
14682
  return Ll(J) ? J.catch((he) => {
14683
14683
  throw q.current = !1, he;
14684
14684
  }) : J;
@@ -14690,21 +14690,21 @@ function pg(t) {
14690
14690
  ), Je = Ie(() => {
14691
14691
  q.current = !0;
14692
14692
  try {
14693
- const G = de();
14694
- return Ll(G) ? G.catch((J) => {
14693
+ const U = de();
14694
+ return Ll(U) ? U.catch((J) => {
14695
14695
  throw q.current = !1, J;
14696
- }) : G;
14697
- } catch (G) {
14698
- throw q.current = !1, G;
14696
+ }) : U;
14697
+ } catch (U) {
14698
+ throw q.current = !1, U;
14699
14699
  }
14700
- }, [de]), ie = (G) => {
14700
+ }, [de]), ie = (U) => {
14701
14701
  let J = !1;
14702
- W((he) => {
14703
- const ke = typeof G == "function" ? G(he) : G;
14702
+ Q((he) => {
14703
+ const ke = typeof U == "function" ? U(he) : U;
14704
14704
  if (ke.length === 0) {
14705
14705
  if (q.current)
14706
14706
  return _.current = "clear", J = !0, he;
14707
- _.current = null, z.current = Qn();
14707
+ _.current = null, z.current = Wn();
14708
14708
  }
14709
14709
  return ke;
14710
14710
  }), J && xe();
@@ -14715,7 +14715,7 @@ function pg(t) {
14715
14715
  _.current !== "clear" && (_.current = "rotate"), xe();
14716
14716
  return;
14717
14717
  }
14718
- _.current = null, z.current = Qn();
14718
+ _.current = null, z.current = Wn();
14719
14719
  }
14720
14720
  }, [c, xe]), Se(() => {
14721
14721
  E && w && (et({
@@ -14723,23 +14723,23 @@ function pg(t) {
14723
14723
  parts: [{ type: "text", text: w }]
14724
14724
  }), D(!1));
14725
14725
  }, [E, w, et, D]);
14726
- async function Oe({ toolCall: G }) {
14727
- var J, he, ke, Ne, qe, Ue, pe, je, Ye, _e, ze, Nt, Ot, ge, We, gt;
14728
- if (["createChartFromSql", "createForecast"].includes(G.toolName)) {
14729
- const Be = ((J = G.input) == null ? void 0 : J.sql) ?? ((he = G.args) == null ? void 0 : he.sql), _t = ((ke = G.input) == null ? void 0 : ke.python) ?? ((Ne = G.args) == null ? void 0 : Ne.python), Qe = ((qe = G.input) == null ? void 0 : qe.chartType) ?? ((Ue = G.args) == null ? void 0 : Ue.chartType);
14730
- f(Qe), p(Be), v(_t), u(!0), me({
14731
- tool: G.toolName,
14732
- toolCallId: G.toolCallId,
14726
+ async function Oe({ toolCall: U }) {
14727
+ var J, he, ke, Ne, qe, Ge, pe, je, Ye, _e, ze, Nt, Ot, ge, Qe, gt;
14728
+ if (["createChartFromSql", "createForecast"].includes(U.toolName)) {
14729
+ const Be = ((J = U.input) == null ? void 0 : J.sql) ?? ((he = U.args) == null ? void 0 : he.sql), _t = ((ke = U.input) == null ? void 0 : ke.python) ?? ((Ne = U.args) == null ? void 0 : Ne.python), We = ((qe = U.input) == null ? void 0 : qe.chartType) ?? ((Ge = U.args) == null ? void 0 : Ge.chartType);
14730
+ f(We), p(Be), v(_t), u(!0), me({
14731
+ tool: U.toolName,
14732
+ toolCallId: U.toolCallId,
14733
14733
  output: {
14734
14734
  status: "success",
14735
14735
  message: "Let the user know that chart is created"
14736
14736
  }
14737
14737
  });
14738
- } else if (G.toolName === "getUserSql") {
14738
+ } else if (U.toolName === "getUserSql") {
14739
14739
  if (!o) {
14740
14740
  me({
14741
- tool: G.toolName,
14742
- toolCallId: G.toolCallId,
14741
+ tool: U.toolName,
14742
+ toolCallId: U.toolCallId,
14743
14743
  output: {
14744
14744
  status: "error",
14745
14745
  message: "No SQL found"
@@ -14748,35 +14748,35 @@ function pg(t) {
14748
14748
  return;
14749
14749
  }
14750
14750
  me({
14751
- tool: G.toolName,
14752
- toolCallId: G.toolCallId,
14751
+ tool: U.toolName,
14752
+ toolCallId: U.toolCallId,
14753
14753
  output: {
14754
14754
  status: "success",
14755
14755
  sql: o,
14756
14756
  python: h || ""
14757
14757
  }
14758
14758
  });
14759
- } else if (G.toolName === "generateQueryConfig") {
14759
+ } else if (U.toolName === "generateQueryConfig") {
14760
14760
  s("Generating query config...");
14761
- const Be = ((pe = G.input) == null ? void 0 : pe.chartType) ?? ((je = G.args) == null ? void 0 : je.chartType), _t = ((Ye = G.input) == null ? void 0 : Ye.queryConfig) ?? ((_e = G.args) == null ? void 0 : _e.queryConfig);
14762
- ((ze = G.input) == null ? void 0 : ze.cardConfig) ?? ((Nt = G.args) == null || Nt.cardConfig), f(Be), L(_t), p(void 0), v(void 0);
14763
- const Qe = await x();
14764
- if ((Ot = Qe == null ? void 0 : Qe.data) != null && Ot.error) {
14761
+ const Be = ((pe = U.input) == null ? void 0 : pe.chartType) ?? ((je = U.args) == null ? void 0 : je.chartType), _t = ((Ye = U.input) == null ? void 0 : Ye.queryConfig) ?? ((_e = U.args) == null ? void 0 : _e.queryConfig);
14762
+ ((ze = U.input) == null ? void 0 : ze.cardConfig) ?? ((Nt = U.args) == null || Nt.cardConfig), f(Be), L(_t), p(void 0), v(void 0);
14763
+ const We = await x();
14764
+ if ((Ot = We == null ? void 0 : We.data) != null && Ot.error) {
14765
14765
  me({
14766
- tool: G.toolName,
14767
- toolCallId: G.toolCallId,
14766
+ tool: U.toolName,
14767
+ toolCallId: U.toolCallId,
14768
14768
  output: {
14769
14769
  status: "error",
14770
14770
  queryConfig: _t,
14771
- message: (ge = Qe == null ? void 0 : Qe.data) == null ? void 0 : ge.error.message
14771
+ message: (ge = We == null ? void 0 : We.data) == null ? void 0 : ge.error.message
14772
14772
  }
14773
14773
  });
14774
14774
  return;
14775
14775
  }
14776
- if ((We = Qe == null ? void 0 : Qe.data) != null && We.records) {
14776
+ if ((Qe = We == null ? void 0 : We.data) != null && Qe.records) {
14777
14777
  me({
14778
- tool: G.toolName,
14779
- toolCallId: G.toolCallId,
14778
+ tool: U.toolName,
14779
+ toolCallId: U.toolCallId,
14780
14780
  output: {
14781
14781
  status: "success",
14782
14782
  queryConfig: _t,
@@ -14786,25 +14786,25 @@ function pg(t) {
14786
14786
  return;
14787
14787
  }
14788
14788
  me({
14789
- tool: G.toolName,
14790
- toolCallId: G.toolCallId,
14789
+ tool: U.toolName,
14790
+ toolCallId: U.toolCallId,
14791
14791
  output: {
14792
14792
  status: "success",
14793
14793
  queryConfig: _t,
14794
14794
  message: "The data has been visualized",
14795
- records: (gt = Qe == null ? void 0 : Qe.data) == null ? void 0 : gt.records
14795
+ records: (gt = We == null ? void 0 : We.data) == null ? void 0 : gt.records
14796
14796
  }
14797
14797
  });
14798
14798
  } else
14799
14799
  s("Analyzing...");
14800
14800
  }
14801
- function He(G) {
14802
- const J = yu(g, G);
14801
+ function He(U) {
14802
+ const J = yu(g, U);
14803
14803
  at(J);
14804
14804
  }
14805
- function at(G) {
14806
- const J = Cu(G);
14807
- F(J), W((he) => [
14805
+ function at(U) {
14806
+ const J = Cu(U);
14807
+ F(J), Q((he) => [
14808
14808
  ...he,
14809
14809
  {
14810
14810
  id: crypto.randomUUID(),
@@ -14821,37 +14821,37 @@ function pg(t) {
14821
14821
  ]);
14822
14822
  }
14823
14823
  function mt() {
14824
- const G = {
14824
+ const U = {
14825
14825
  databaseName: N || "",
14826
14826
  schemaName: k || "",
14827
14827
  tableName: T || "",
14828
14828
  datamodelId: A || "",
14829
- datamodelName: Ul(b),
14829
+ datamodelName: Gl(b),
14830
14830
  connectionId: I || "",
14831
14831
  connectionType: S || ""
14832
- }, J = Pl([...g, G]);
14832
+ }, J = Pl([...g, U]);
14833
14833
  at(J);
14834
14834
  }
14835
14835
  function ye() {
14836
- const G = {
14836
+ const U = {
14837
14837
  databaseName: N || "",
14838
14838
  schemaName: k || "",
14839
14839
  tableName: T || "",
14840
- datamodelName: Ul(b),
14840
+ datamodelName: Gl(b),
14841
14841
  connectionId: I || "",
14842
14842
  connectionType: S || "",
14843
14843
  datamodelId: A || ""
14844
14844
  };
14845
14845
  if (!Nu(
14846
14846
  [...y || [], ...g],
14847
- G
14847
+ U
14848
14848
  ) || g.length === 0) {
14849
14849
  const he = Pl([
14850
14850
  ...y || [],
14851
14851
  ...g,
14852
- G
14852
+ U
14853
14853
  ]).filter(
14854
- (ke) => ke.connectionId === G.connectionId
14854
+ (ke) => ke.connectionId === U.connectionId
14855
14855
  );
14856
14856
  at(he);
14857
14857
  }
@@ -14892,10 +14892,10 @@ function hi({
14892
14892
  onFullscreenChange: n,
14893
14893
  fullscreenContainer: s
14894
14894
  }) {
14895
- const r = Ee(null), d = Ee(!1), [i, l] = K(!1), [c, o] = K(Gm), [m, h] = K(!1), [v, p] = K(!1), [u, f] = K(!1), C = t ?? u, g = Um(), { setCurrentAIContext: w, setHasEditorEntitySelectionOverride: E } = Or(), { clearQueue: V } = Hm(), { clearFileAttachments: N } = Qm(), T = Wm("editor"), { selectedEntities: I } = gi("editor"), k = M((ge) => ge.card.id), y = M((ge) => ge.card.dataSource), O = M(
14895
+ const r = Ee(null), d = Ee(!1), [i, l] = K(!1), [c, o] = K(Um), [m, h] = K(!1), [v, p] = K(!1), [u, f] = K(!1), C = t ?? u, g = Gm(), { setCurrentAIContext: w, setHasEditorEntitySelectionOverride: E } = Or(), { clearQueue: V } = Hm(), { clearFileAttachments: N } = Wm(), T = Qm("editor"), { selectedEntities: I } = gi("editor"), k = M((ge) => ge.card.id), y = M((ge) => ge.card.dataSource), O = M(
14896
14896
  (ge) => {
14897
- var We;
14898
- return (We = ge.card.dataSource) == null ? void 0 : We.selectedEntities;
14897
+ var Qe;
14898
+ return (Qe = ge.card.dataSource) == null ? void 0 : Qe.selectedEntities;
14899
14899
  }
14900
14900
  ), x = M((ge) => ge.actions.setCardSql), R = M((ge) => ge.actions.setRunSql), D = M((ge) => ge.showAIDialog), F = Ae(
14901
14901
  (ge) => ge.handleOpenAssistantProfile
@@ -14907,16 +14907,16 @@ function hi({
14907
14907
  stop: q,
14908
14908
  status: H,
14909
14909
  llmUsage: Y,
14910
- errorMessage: W,
14910
+ errorMessage: Q,
14911
14911
  clearError: de
14912
14912
  } = pg(), [oe, ue] = K(""), Ce = (ge) => {
14913
14913
  ue(ge.target.value);
14914
14914
  }, me = (ge) => {
14915
14915
  ge.preventDefault();
14916
- const We = oe.trim();
14917
- if (!We && T.length === 0) return;
14916
+ const Qe = oe.trim();
14917
+ if (!Qe && T.length === 0) return;
14918
14918
  const gt = [];
14919
- We && gt.push({ type: "text", text: We }), T.forEach((Be) => {
14919
+ Qe && gt.push({ type: "text", text: Qe }), T.forEach((Be) => {
14920
14920
  Be.data && gt.push({
14921
14921
  type: "file",
14922
14922
  mediaType: Be.type,
@@ -14973,7 +14973,7 @@ function hi({
14973
14973
  isLoading: P,
14974
14974
  sendMessage: _
14975
14975
  });
14976
- const { hasActiveTools: G, activeToolText: J } = Iu(B), he = Ie(
14976
+ const { hasActiveTools: U, activeToolText: J } = Iu(B), he = Ie(
14977
14977
  (ge) => {
14978
14978
  n == null || n(ge), t === void 0 && f(ge);
14979
14979
  },
@@ -14981,8 +14981,8 @@ function hi({
14981
14981
  );
14982
14982
  Se(() => {
14983
14983
  if (!C) return;
14984
- function ge(We) {
14985
- We.key === "Escape" && he(!1);
14984
+ function ge(Qe) {
14985
+ Qe.key === "Escape" && he(!1);
14986
14986
  }
14987
14987
  return window.addEventListener("keydown", ge), () => {
14988
14988
  window.removeEventListener("keydown", ge);
@@ -15002,14 +15002,14 @@ function hi({
15002
15002
  if (typeof navigator > "u" || !navigator.clipboard)
15003
15003
  throw new Error("Clipboard API unavailable");
15004
15004
  await navigator.clipboard.writeText(ge), st.success("Conversation copied");
15005
- } catch (We) {
15006
- console.error("Failed to copy conversation", We), st.error("Unable to copy conversation");
15005
+ } catch (Qe) {
15006
+ console.error("Failed to copy conversation", Qe), st.error("Unable to copy conversation");
15007
15007
  }
15008
15008
  }, [B]), qe = Ie(() => {
15009
15009
  he(!C);
15010
15010
  }, [C, he]);
15011
- function Ue(ge, We) {
15012
- We === "sql" ? (x(ge), R(!0)) : We === "python" && (b(ge), R(!0));
15011
+ function Ge(ge, Qe) {
15012
+ Qe === "sql" ? (x(ge), R(!0)) : Qe === "python" && (b(ge), R(!0));
15013
15013
  }
15014
15014
  function pe() {
15015
15015
  g.selectedEntities.length === 0 && w({
@@ -15018,13 +15018,13 @@ function hi({
15018
15018
  }
15019
15019
  function je(ge) {
15020
15020
  pe();
15021
- const We = {
15021
+ const Qe = {
15022
15022
  role: "user",
15023
15023
  parts: [
15024
15024
  { type: "text", text: ge.title + " " + ge.subtitle }
15025
15025
  ]
15026
15026
  };
15027
- _(We);
15027
+ _(Qe);
15028
15028
  }
15029
15029
  function Ye(ge) {
15030
15030
  pe(), _({
@@ -15045,7 +15045,7 @@ function hi({
15045
15045
  ) }),
15046
15046
  /* @__PURE__ */ a(nn, { align: "end", children: [
15047
15047
  /* @__PURE__ */ e(In, { children: "Options" }),
15048
- /* @__PURE__ */ e(Gt, {}),
15048
+ /* @__PURE__ */ e(Ut, {}),
15049
15049
  /* @__PURE__ */ e(
15050
15050
  sa,
15051
15051
  {
@@ -15080,7 +15080,7 @@ function hi({
15080
15080
  "div",
15081
15081
  {
15082
15082
  "data-role": "editor-assistant",
15083
- className: Q(
15083
+ className: W(
15084
15084
  "flex h-full w-full flex-col justify-between px-6 py-4",
15085
15085
  C && "rounded-card border border-border/60 bg-background px-8 pb-6 pt-6 shadow-xl"
15086
15086
  ),
@@ -15186,7 +15186,7 @@ function hi({
15186
15186
  {
15187
15187
  messages: xe,
15188
15188
  showTools: c,
15189
- handleRun: Ue,
15189
+ handleRun: Ge,
15190
15190
  showSystemMessage: m,
15191
15191
  onQuickReply: ke,
15192
15192
  disableQuickReplies: P
@@ -15196,8 +15196,8 @@ function hi({
15196
15196
  Ou,
15197
15197
  {
15198
15198
  status: H,
15199
- errorMessage: W,
15200
- activeToolText: P && G ? J : void 0
15199
+ errorMessage: Q,
15200
+ activeToolText: P && U ? J : void 0
15201
15201
  }
15202
15202
  )
15203
15203
  ]
@@ -15546,7 +15546,7 @@ function vg({ idx: t }) {
15546
15546
  children: /* @__PURE__ */ e(
15547
15547
  Nh,
15548
15548
  {
15549
- className: Q("h-4 w-4", {
15549
+ className: W("h-4 w-4", {
15550
15550
  "rotate-90": d === "y"
15551
15551
  })
15552
15552
  }
@@ -15561,7 +15561,7 @@ function vg({ idx: t }) {
15561
15561
  children: /* @__PURE__ */ e(
15562
15562
  wh,
15563
15563
  {
15564
- className: Q("h-4 w-4", {
15564
+ className: W("h-4 w-4", {
15565
15565
  "rotate-90": d === "y"
15566
15566
  })
15567
15567
  }
@@ -15576,7 +15576,7 @@ function vg({ idx: t }) {
15576
15576
  children: /* @__PURE__ */ e(
15577
15577
  Ch,
15578
15578
  {
15579
- className: Q("h-4 w-4", {
15579
+ className: W("h-4 w-4", {
15580
15580
  "rotate-90": d === "y"
15581
15581
  })
15582
15582
  }
@@ -15595,7 +15595,7 @@ function zr({
15595
15595
  /* @__PURE__ */ e(Tt, { asChild: !0, children: /* @__PURE__ */ e(
15596
15596
  "span",
15597
15597
  {
15598
- className: Q(
15598
+ className: W(
15599
15599
  "overflow-hidden text-ellipsis whitespace-nowrap",
15600
15600
  n
15601
15601
  ),
@@ -15652,7 +15652,7 @@ function Ng({
15652
15652
  return /* @__PURE__ */ a(
15653
15653
  "div",
15654
15654
  {
15655
- className: Q(
15655
+ className: W(
15656
15656
  "group flex items-center justify-between gap-2 rounded-md",
15657
15657
  s
15658
15658
  ),
@@ -15663,7 +15663,7 @@ function Ng({
15663
15663
  gs,
15664
15664
  {
15665
15665
  onClick: () => m("bar"),
15666
- className: Q(
15666
+ className: W(
15667
15667
  "size-4 cursor-pointer text-muted-foreground hover:text-foreground",
15668
15668
  r
15669
15669
  )
@@ -15673,17 +15673,17 @@ function Ng({
15673
15673
  fs,
15674
15674
  {
15675
15675
  onClick: () => m("line"),
15676
- className: Q(
15676
+ className: W(
15677
15677
  "size-4 cursor-pointer text-muted-foreground hover:text-foreground",
15678
15678
  r
15679
15679
  )
15680
15680
  }
15681
15681
  ),
15682
15682
  /* @__PURE__ */ e(
15683
- Qi,
15683
+ Wi,
15684
15684
  {
15685
15685
  onClick: () => m("area"),
15686
- className: Q(
15686
+ className: W(
15687
15687
  "size-4 cursor-pointer text-muted-foreground hover:text-foreground",
15688
15688
  r
15689
15689
  )
@@ -16161,7 +16161,7 @@ function Dg({
16161
16161
  hasPivotColumns: i = !1,
16162
16162
  cardType: l
16163
16163
  }) {
16164
- var Qr, Wr, Jr, Yr, Xr, Zr, el, tl, al, nl, sl, rl, ll, il, ol, cl, dl, ul, ml, hl, pl, fl, gl, xl, bl, vl, yl, Nl, Cl, wl, Sl, Tl;
16164
+ var Wr, Qr, Jr, Yr, Xr, Zr, el, tl, al, nl, sl, rl, ll, il, ol, cl, dl, ul, ml, hl, pl, fl, gl, xl, bl, vl, yl, Nl, Cl, wl, Sl, Tl;
16165
16165
  const {
16166
16166
  attributes: c,
16167
16167
  listeners: o,
@@ -16169,14 +16169,14 @@ function Dg({
16169
16169
  transform: h,
16170
16170
  transition: v,
16171
16171
  isDragging: p
16172
- } = ys({ id: t.id }), u = M((U) => U.card), f = M((U) => U.frame), C = Ae((U) => U.isVisualEditing), g = Ae((U) => U.selectedSheetId), w = Ae(
16173
- (U) => U.actions.updateSheetCalculatedFields
16172
+ } = ys({ id: t.id }), u = M((G) => G.card), f = M((G) => G.frame), C = Ae((G) => G.isVisualEditing), g = Ae((G) => G.selectedSheetId), w = Ae(
16173
+ (G) => G.actions.updateSheetCalculatedFields
16174
16174
  ), E = Ae(
16175
- (U) => U.actions.updateDashboardCalculatedFields
16175
+ (G) => G.actions.updateDashboardCalculatedFields
16176
16176
  ), N = Ae(
16177
- (U) => {
16177
+ (G) => {
16178
16178
  var ee;
16179
- return U.visualEditPendingDashboardCalculatedFields ?? ((ee = U.dashboard) == null ? void 0 : ee.calculatedFields);
16179
+ return G.visualEditPendingDashboardCalculatedFields ?? ((ee = G.dashboard) == null ? void 0 : ee.calculatedFields);
16180
16180
  }
16181
16181
  ) ?? Ig, {
16182
16182
  scopedFields: T,
@@ -16198,7 +16198,7 @@ function Dg({
16198
16198
  handleMetricWindowPartitionToggle: q,
16199
16199
  handleMetricMovingAverageWindowSizeChange: H,
16200
16200
  handleMetricMovingAverageMinPeriodsChange: Y,
16201
- handleMetricPreviousPeriodDeltaModeChange: W,
16201
+ handleMetricPreviousPeriodDeltaModeChange: Q,
16202
16202
  handleMetricPercentOfTotalScopeChange: de,
16203
16203
  handleMetricPercentOfTotalOutputChange: oe,
16204
16204
  handleKpiShowTrendlineChange: ue,
@@ -16206,13 +16206,13 @@ function Dg({
16206
16206
  handleKpiTrendlineGranularityChange: me,
16207
16207
  handleMetricTargetValueChange: xe
16208
16208
  } = Xi(u), [Le, et] = K(!1), [Je, ie] = K(() => {
16209
- var U;
16210
- return !!((U = t.parameters) != null && U.windowTransform);
16209
+ var G;
16210
+ return !!((G = t.parameters) != null && G.windowTransform);
16211
16211
  }), [Oe, He] = K(!1), [at, mt] = K(!1), [ye, Pe] = K(null), Ve = ce(() => {
16212
- const U = (ve) => ve != null && ve.startsWith("card-source-") ? ve.replace("card-source-", "") : ve, ee = U(t.id), Te = T.find((ve) => {
16212
+ const G = (ve) => ve != null && ve.startsWith("card-source-") ? ve.replace("card-source-", "") : ve, ee = G(t.id), Te = T.find((ve) => {
16213
16213
  if (t.qualifiedFieldName && ve.qualifiedFieldName && ve.qualifiedFieldName === t.qualifiedFieldName || t.qualifiedEntityName && ve.qualifiedEntityName && ve.qualifiedEntityName === t.qualifiedEntityName && ve.name === t.name)
16214
16214
  return !0;
16215
- const Ke = U(ve.id);
16215
+ const Ke = G(ve.id);
16216
16216
  return !!(ee && Ke && ee === Ke);
16217
16217
  });
16218
16218
  return {
@@ -16228,38 +16228,38 @@ function Dg({
16228
16228
  T
16229
16229
  ]), fe = zu(
16230
16230
  Ve.dataType
16231
- ), [G, J] = K(
16231
+ ), [U, J] = K(
16232
16232
  t.dateFormat || "YYYY-MM-DD"
16233
- ), [he, ke] = K(t.customFormat || ""), [Ne, qe] = K(!!t.customFormat), Ue = Ee(null), [pe, je] = K(
16233
+ ), [he, ke] = K(t.customFormat || ""), [Ne, qe] = K(!!t.customFormat), Ge = Ee(null), [pe, je] = K(
16234
16234
  t.aliasTemplate || ""
16235
16235
  ), [Ye, _e] = K(
16236
16236
  t.valueAliases || {}
16237
- ), [ze, Nt] = K((Qr = t.parameters) == null ? void 0 : Qr.filters), Ot = (U) => {
16238
- U === "custom" ? qe(!0) : (qe(!1), J(U), (n === "groupBy" || jn) && D(s, U, "", n));
16239
- }, ge = (U) => {
16240
- ke(U), (n === "groupBy" || jn) && D(s, "custom", U, n);
16241
- }, We = (U) => {
16237
+ ), [ze, Nt] = K((Wr = t.parameters) == null ? void 0 : Wr.filters), Ot = (G) => {
16238
+ G === "custom" ? qe(!0) : (qe(!1), J(G), (n === "groupBy" || jn) && D(s, G, "", n));
16239
+ }, ge = (G) => {
16240
+ ke(G), (n === "groupBy" || jn) && D(s, "custom", G, n);
16241
+ }, Qe = (G) => {
16242
16242
  var ve;
16243
- const Te = (ve = Vs(U)[0]) == null ? void 0 : ve.value;
16244
- Te && !Ne && (J(Te), n === "groupBy" && D(s, Te, "", n)), n === "groupBy" && F(s, U);
16245
- }, gt = (U) => {
16246
- je(U), n === "metrics" && L(s, U);
16247
- }, Be = (U) => {
16248
- _e(U), n === "metrics" && b(s, U);
16249
- }, _t = (U) => {
16250
- x(n, s, U);
16251
- }, Qe = $u(t), $n = Zi(t), xa = qu(t), on = t.role === "metric" && xa, zt = xa && (Qe === "user_calculated" || Qe === "inline_expression" && t.fieldScope !== "domain"), Et = zt ? ah({
16243
+ const Te = (ve = Vs(G)[0]) == null ? void 0 : ve.value;
16244
+ Te && !Ne && (J(Te), n === "groupBy" && D(s, Te, "", n)), n === "groupBy" && F(s, G);
16245
+ }, gt = (G) => {
16246
+ je(G), n === "metrics" && L(s, G);
16247
+ }, Be = (G) => {
16248
+ _e(G), n === "metrics" && b(s, G);
16249
+ }, _t = (G) => {
16250
+ x(n, s, G);
16251
+ }, We = $u(t), $n = Zi(t), xa = qu(t), on = t.role === "metric" && xa, zt = xa && (We === "user_calculated" || We === "inline_expression" && t.fieldScope !== "domain"), Et = zt ? ah({
16252
16252
  field: t,
16253
16253
  sheetFields: (f == null ? void 0 : f.calculatedFields) || [],
16254
16254
  dashboardFields: N
16255
- }) : void 0, cn = zt && (Et == null ? void 0 : Et.scope) === "sheet", ba = zt && (Et == null ? void 0 : Et.scope) === "dashboard", Va = Qe === "domain_calculated" || t.fieldScope === "domain", dn = Va ? ju(t, T) : void 0, ta = Va ? "domain" : cn ? "sheet" : ba ? "dashboard" : "card", Ba = Va ? dn || t : (cn || ba) && (Et != null && Et.matchedField) ? Et.matchedField : t, un = (U) => {
16255
+ }) : void 0, cn = zt && (Et == null ? void 0 : Et.scope) === "sheet", ba = zt && (Et == null ? void 0 : Et.scope) === "dashboard", Va = We === "domain_calculated" || t.fieldScope === "domain", dn = Va ? ju(t, T) : void 0, ta = Va ? "domain" : cn ? "sheet" : ba ? "dashboard" : "card", Ba = Va ? dn || t : (cn || ba) && (Et != null && Et.matchedField) ? Et.matchedField : t, un = (G) => {
16256
16256
  var ee;
16257
- if (Nt(U), n === "metrics") {
16257
+ if (Nt(G), n === "metrics") {
16258
16258
  const Te = {
16259
16259
  ...t,
16260
16260
  parameters: {
16261
16261
  ...t.parameters,
16262
- filters: U
16262
+ filters: G
16263
16263
  }
16264
16264
  }, ve = [...((ee = u.config) == null ? void 0 : ee.metricColumns) || []];
16265
16265
  ve[s] = Te, M.getState().actions.updateCardConfig(u.id, {
@@ -16274,26 +16274,26 @@ function Dg({
16274
16274
  transition: v
16275
16275
  }, _a = rt(
16276
16276
  Ve.dataType || t.dataType
16277
- ), va = _a === "date", aa = l === "kpi", jn = n === "detailColumns", hn = (Wr = u.config) == null ? void 0 : Wr.metricColumns, $t = (Jr = u.config) == null ? void 0 : Jr.groupByColumns, pn = Ae(
16278
- (U) => {
16277
+ ), va = _a === "date", aa = l === "kpi", jn = n === "detailColumns", hn = (Qr = u.config) == null ? void 0 : Qr.metricColumns, $t = (Jr = u.config) == null ? void 0 : Jr.groupByColumns, pn = Ae(
16278
+ (G) => {
16279
16279
  var ee;
16280
- return (ee = U.dashboard) == null ? void 0 : ee.filters;
16280
+ return (ee = G.dashboard) == null ? void 0 : ee.filters;
16281
16281
  }
16282
16282
  ), fn = Ae(
16283
- (U) => U.filterValues
16283
+ (G) => G.filterValues
16284
16284
  ), ya = t.granularity || "day", Kn = fe.includes(
16285
16285
  ya
16286
- ) ? ya : "day", Gn = n === "groupBy" && !fe.includes(ya), za = Vs(Kn), Ms = Ne ? "custom" : za.some((U) => U.value === G) ? G : ((Yr = za[0]) == null ? void 0 : Yr.value) ?? "YYYY-MM-DD";
16286
+ ) ? ya : "day", Un = n === "groupBy" && !fe.includes(ya), za = Vs(Kn), Ms = Ne ? "custom" : za.some((G) => G.value === U) ? U : ((Yr = za[0]) == null ? void 0 : Yr.value) ?? "YYYY-MM-DD";
16287
16287
  Se(() => {
16288
16288
  var Te;
16289
- if (k || !Gn) {
16290
- Ue.current = null;
16289
+ if (k || !Un) {
16290
+ Ge.current = null;
16291
16291
  return;
16292
16292
  }
16293
- const U = `${t.id}:${ya}:${Ve.dataType || t.dataType || ""}:${s}`;
16294
- if (Ue.current === U)
16293
+ const G = `${t.id}:${ya}:${Ve.dataType || t.dataType || ""}:${s}`;
16294
+ if (Ge.current === G)
16295
16295
  return;
16296
- Ue.current = U;
16296
+ Ge.current = G;
16297
16297
  const ee = "day";
16298
16298
  if (F(s, ee), !Ne) {
16299
16299
  const ve = (Te = Vs(ee)[0]) == null ? void 0 : Te.value;
@@ -16304,7 +16304,7 @@ function Dg({
16304
16304
  t.id,
16305
16305
  D,
16306
16306
  F,
16307
- Gn,
16307
+ Un,
16308
16308
  s,
16309
16309
  Ne,
16310
16310
  k,
@@ -16312,24 +16312,24 @@ function Dg({
16312
16312
  Ve.dataType,
16313
16313
  n
16314
16314
  ]);
16315
- const $a = !!l && nh.includes(l), Un = l === "kpi" || l === "table", Ft = ce(
16316
- () => $t == null ? void 0 : $t.find((U) => rt(U.dataType || "") === "date"),
16315
+ const $a = !!l && nh.includes(l), Gn = l === "kpi" || l === "table", Ft = ce(
16316
+ () => $t == null ? void 0 : $t.find((G) => rt(G.dataType || "") === "date"),
16317
16317
  [$t]
16318
16318
  ), X = ce(
16319
16319
  () => ($t || []).some(
16320
- (U) => rt(U.dataType || "") === "date"
16320
+ (G) => rt(G.dataType || "") === "date"
16321
16321
  ),
16322
16322
  [$t]
16323
16323
  ), le = ce(() => {
16324
16324
  var ve;
16325
16325
  if (!Ft) return !1;
16326
- const U = (ve = u.config) == null ? void 0 : ve.filters;
16327
- if (!U) return !1;
16326
+ const G = (ve = u.config) == null ? void 0 : ve.filters;
16327
+ if (!G) return !1;
16328
16328
  const ee = (Ke) => {
16329
16329
  const dt = Ke.field;
16330
16330
  return dt ? Ft.id && dt.id === Ft.id || Ft.qualifiedFieldName && dt.qualifiedFieldName === Ft.qualifiedFieldName ? !0 : dt.name === Ft.name : !1;
16331
16331
  }, Te = (Ke) => Ke.conditions.some((ht) => rt(ht.field.dataType || "") === "date" && ee(ht)) ? !0 : Ke.groups.some((ht) => Te(ht));
16332
- return Te(U);
16332
+ return Te(G);
16333
16333
  }, [(Xr = u.config) == null ? void 0 : Xr.filters, Ft]), re = ce(
16334
16334
  () => gg(
16335
16335
  pn || [],
@@ -16337,40 +16337,40 @@ function Dg({
16337
16337
  fn
16338
16338
  ),
16339
16339
  [pn, fn, Ft]
16340
- ), Fe = le || re, be = t, Re = ((el = (Zr = be.parameters) == null ? void 0 : Zr.windowTransform) == null ? void 0 : el.function) || "none", $e = Ku(be), Xe = $e ? Re : null, Mt = Gu({
16340
+ ), Fe = le || re, be = t, Re = ((el = (Zr = be.parameters) == null ? void 0 : Zr.windowTransform) == null ? void 0 : el.function) || "none", $e = Ku(be), Xe = $e ? Re : null, Mt = Uu({
16341
16341
  cardType: l || "table",
16342
16342
  cardConfig: u.config || {},
16343
16343
  metric: be,
16344
16344
  transformMode: Xe || "running_total"
16345
- }), qt = !!be.comparisonType && be.comparisonType !== "none", Na = Uu(
16345
+ }), qt = !!be.comparisonType && be.comparisonType !== "none", Na = Gu(
16346
16346
  $t || []
16347
16347
  ), ct = ((nl = (al = (tl = be.parameters) == null ? void 0 : tl.windowTransform) == null ? void 0 : al.orderBy) == null ? void 0 : nl.fieldId) || "", qa = ((ll = (rl = (sl = be.parameters) == null ? void 0 : sl.windowTransform) == null ? void 0 : rl.orderBy) == null ? void 0 : ll.direction) || "asc", Hn = Na.find(
16348
- (U) => U.id === ct
16348
+ (G) => G.id === ct
16349
16349
  ), gn = Xe === "running_total" || Xe === "moving_average" || Xe === "previous_period_delta", zo = $e && gn && !!Hn && rt(Hn.dataType || "") !== "date", $o = Hu({
16350
16350
  cardType: l || "table",
16351
16351
  cardConfig: u.config || {},
16352
16352
  orderByFieldId: ct || void 0
16353
16353
  }), qo = new Set(
16354
16354
  ((ol = (il = be.parameters) == null ? void 0 : il.windowTransform) == null ? void 0 : ol.partitionByFieldIds) || $o
16355
- ), jo = l === "pivotTable" || Qu(
16355
+ ), jo = l === "pivotTable" || Wu(
16356
16356
  l || "table",
16357
16357
  u.config || {}
16358
16358
  ), jr = [
16359
16359
  ...($t || []).filter(
16360
- (U) => U.id && (!gn || U.id !== ct)
16360
+ (G) => G.id && (!gn || G.id !== ct)
16361
16361
  ),
16362
- ...jo ? (((cl = u.config) == null ? void 0 : cl.pivotByColumns) || []).filter((U) => U.id) : []
16363
- ], Kr = ((ml = (ul = (dl = be.parameters) == null ? void 0 : dl.windowTransform) == null ? void 0 : ul.movingAverage) == null ? void 0 : ml.windowSize) || 7, Ko = ((fl = (pl = (hl = be.parameters) == null ? void 0 : hl.windowTransform) == null ? void 0 : pl.movingAverage) == null ? void 0 : fl.minPeriods) || 1, Go = ((bl = (xl = (gl = be.parameters) == null ? void 0 : gl.windowTransform) == null ? void 0 : xl.previousPeriodDelta) == null ? void 0 : bl.mode) || "absolute", Gr = ((Nl = (yl = (vl = be.parameters) == null ? void 0 : vl.windowTransform) == null ? void 0 : yl.percentOfTotal) == null ? void 0 : Nl.scope) || "grand_total", Uo = ((Sl = (wl = (Cl = be.parameters) == null ? void 0 : Cl.windowTransform) == null ? void 0 : wl.percentOfTotal) == null ? void 0 : Sl.output) || "percent", Ho = ce(
16362
+ ...jo ? (((cl = u.config) == null ? void 0 : cl.pivotByColumns) || []).filter((G) => G.id) : []
16363
+ ], Kr = ((ml = (ul = (dl = be.parameters) == null ? void 0 : dl.windowTransform) == null ? void 0 : ul.movingAverage) == null ? void 0 : ml.windowSize) || 7, Ko = ((fl = (pl = (hl = be.parameters) == null ? void 0 : hl.windowTransform) == null ? void 0 : pl.movingAverage) == null ? void 0 : fl.minPeriods) || 1, Uo = ((bl = (xl = (gl = be.parameters) == null ? void 0 : gl.windowTransform) == null ? void 0 : xl.previousPeriodDelta) == null ? void 0 : bl.mode) || "absolute", Ur = ((Nl = (yl = (vl = be.parameters) == null ? void 0 : vl.windowTransform) == null ? void 0 : yl.percentOfTotal) == null ? void 0 : Nl.scope) || "grand_total", Go = ((Sl = (wl = (Cl = be.parameters) == null ? void 0 : Cl.windowTransform) == null ? void 0 : wl.percentOfTotal) == null ? void 0 : Sl.output) || "percent", Ho = ce(
16364
16364
  () => (hn || []).some(
16365
- (U) => U.comparisonType === "start_vs_end"
16365
+ (G) => G.comparisonType === "start_vs_end"
16366
16366
  ),
16367
16367
  [hn]
16368
16368
  );
16369
16369
  Se(() => {
16370
16370
  $e && ie(!0);
16371
16371
  }, [$e]);
16372
- const Qo = n !== "pivotBy" && n !== "sortBy", Wo = va && n === "groupBy" && (!aa || Ho), Jo = !aa && va && (n === "groupBy" || jn), Yo = l === "kpi" && va && n === "groupBy", Xo = n === "metrics", Ur = $a && n === "metrics", Zo = () => {
16373
- const U = t, ee = n === "metrics" && on;
16372
+ const Wo = n !== "pivotBy" && n !== "sortBy", Qo = va && n === "groupBy" && (!aa || Ho), Jo = !aa && va && (n === "groupBy" || jn), Yo = l === "kpi" && va && n === "groupBy", Xo = n === "metrics", Gr = $a && n === "metrics", Zo = () => {
16373
+ const G = t, ee = n === "metrics" && on;
16374
16374
  return /* @__PURE__ */ a("div", { className: "space-y-1", children: [
16375
16375
  !ee && /* @__PURE__ */ e(
16376
16376
  "div",
@@ -16383,22 +16383,22 @@ function Dg({
16383
16383
  children: `${t.entityName}.${t.name}`
16384
16384
  }
16385
16385
  ),
16386
- ee && U.calculatedFormula && /* @__PURE__ */ a(
16386
+ ee && G.calculatedFormula && /* @__PURE__ */ a(
16387
16387
  "div",
16388
16388
  {
16389
- title: Bl(U.calculatedFormula),
16389
+ title: Bl(G.calculatedFormula),
16390
16390
  onPointerDown: (Te) => {
16391
16391
  Te.stopPropagation();
16392
16392
  },
16393
16393
  className: "max-w-[270px] cursor-default overflow-hidden text-ellipsis whitespace-nowrap rounded bg-muted/50 px-1.5 py-0.5 font-mono text-xs text-primary",
16394
16394
  children: [
16395
16395
  "= ",
16396
- Bl(U.calculatedFormula)
16396
+ Bl(G.calculatedFormula)
16397
16397
  ]
16398
16398
  }
16399
16399
  )
16400
16400
  ] });
16401
- }, ec = () => Qo ? /* @__PURE__ */ a("div", { className: "space-y-1", children: [
16401
+ }, ec = () => Wo ? /* @__PURE__ */ a("div", { className: "space-y-1", children: [
16402
16402
  /* @__PURE__ */ e($, { className: "text-xs font-medium text-muted-foreground", children: "Label" }),
16403
16403
  /* @__PURE__ */ e(
16404
16404
  Bt,
@@ -16415,7 +16415,7 @@ function Dg({
16415
16415
  te,
16416
16416
  {
16417
16417
  value: r || "asc",
16418
- onValueChange: (U) => d(U),
16418
+ onValueChange: (G) => d(G),
16419
16419
  children: [
16420
16420
  /* @__PURE__ */ e(ae, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(ne, {}) }),
16421
16421
  /* @__PURE__ */ a(se, { children: [
@@ -16425,16 +16425,16 @@ function Dg({
16425
16425
  ]
16426
16426
  }
16427
16427
  )
16428
- ] }), Hr = () => Wo ? /* @__PURE__ */ a("div", { className: "space-y-1", children: [
16428
+ ] }), Hr = () => Qo ? /* @__PURE__ */ a("div", { className: "space-y-1", children: [
16429
16429
  /* @__PURE__ */ e($, { className: "text-xs font-medium text-muted-foreground", children: "Granularity" }),
16430
16430
  /* @__PURE__ */ a(
16431
16431
  te,
16432
16432
  {
16433
16433
  value: Kn,
16434
- onValueChange: We,
16434
+ onValueChange: Qe,
16435
16435
  children: [
16436
16436
  /* @__PURE__ */ e(ae, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(ne, { placeholder: "Select granularity..." }) }),
16437
- /* @__PURE__ */ e(se, { children: fe.map((U) => /* @__PURE__ */ e(j, { className: "text-xs", value: U, children: Hl(U) }, U)) })
16437
+ /* @__PURE__ */ e(se, { children: fe.map((G) => /* @__PURE__ */ e(j, { className: "text-xs", value: G, children: Hl(G) }, G)) })
16438
16438
  ]
16439
16439
  }
16440
16440
  )
@@ -16449,14 +16449,14 @@ function Dg({
16449
16449
  onValueChange: Ot,
16450
16450
  children: [
16451
16451
  /* @__PURE__ */ e(ae, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(ne, { placeholder: "Select date format..." }) }),
16452
- /* @__PURE__ */ e(se, { children: za.map((U) => /* @__PURE__ */ e(
16452
+ /* @__PURE__ */ e(se, { children: za.map((G) => /* @__PURE__ */ e(
16453
16453
  j,
16454
16454
  {
16455
16455
  className: "text-xs",
16456
- value: U.value,
16457
- children: U.label
16456
+ value: G.value,
16457
+ children: G.label
16458
16458
  },
16459
- U.value
16459
+ G.value
16460
16460
  )) })
16461
16461
  ]
16462
16462
  }
@@ -16467,10 +16467,10 @@ function Dg({
16467
16467
  {
16468
16468
  placeholder: "Enter custom format (e.g., YYYY-MM-DD HH:mm)",
16469
16469
  value: he,
16470
- onChange: (U) => {
16471
- U.stopPropagation(), ge(U.target.value);
16470
+ onChange: (G) => {
16471
+ G.stopPropagation(), ge(G.target.value);
16472
16472
  },
16473
- onClick: (U) => U.stopPropagation(),
16473
+ onClick: (G) => G.stopPropagation(),
16474
16474
  className: "h-8 text-xs"
16475
16475
  }
16476
16476
  ),
@@ -16479,8 +16479,8 @@ function Dg({
16479
16479
  ] })
16480
16480
  ] }) : null, nc = () => {
16481
16481
  var ee, Te, ve, Ke;
16482
- const U = Yo;
16483
- return U ? /* @__PURE__ */ e(De, { children: U && /* @__PURE__ */ a(De, { children: [
16482
+ const G = Yo;
16483
+ return G ? /* @__PURE__ */ e(De, { children: G && /* @__PURE__ */ a(De, { children: [
16484
16484
  /* @__PURE__ */ e("div", { className: "space-y-1", children: /* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
16485
16485
  /* @__PURE__ */ e($, { className: "text-xs font-medium text-muted-foreground", children: "Show Trendline" }),
16486
16486
  /* @__PURE__ */ e(
@@ -16533,9 +16533,9 @@ function Dg({
16533
16533
  ] }) }) : null;
16534
16534
  }, sc = () => {
16535
16535
  if (!Xo) return null;
16536
- const U = on;
16536
+ const G = on;
16537
16537
  return /* @__PURE__ */ a(De, { children: [
16538
- U && O && !Va && /* @__PURE__ */ a("div", { className: "space-y-1", children: [
16538
+ G && O && !Va && /* @__PURE__ */ a("div", { className: "space-y-1", children: [
16539
16539
  /* @__PURE__ */ e($, { className: "text-xs font-medium text-muted-foreground", children: "Formula" }),
16540
16540
  /* @__PURE__ */ a(
16541
16541
  Z,
@@ -16545,7 +16545,7 @@ function Dg({
16545
16545
  className: "h-8 w-full justify-start text-xs",
16546
16546
  onClick: () => mt(!0),
16547
16547
  children: [
16548
- /* @__PURE__ */ e(Ui, { className: "mr-2 h-3 w-3" }),
16548
+ /* @__PURE__ */ e(Gi, { className: "mr-2 h-3 w-3" }),
16549
16549
  "Edit Formula"
16550
16550
  ]
16551
16551
  }
@@ -16560,7 +16560,7 @@ function Dg({
16560
16560
  onValueChange: (ee) => {
16561
16561
  R(s, ee);
16562
16562
  },
16563
- disabled: U,
16563
+ disabled: G,
16564
16564
  children: [
16565
16565
  /* @__PURE__ */ e(ae, { className: "h-8 w-full text-xs", children: /* @__PURE__ */ e(ne, { placeholder: "Select function..." }) }),
16566
16566
  /* @__PURE__ */ a(se, { children: [
@@ -16590,7 +16590,7 @@ function Dg({
16590
16590
  )
16591
16591
  ] }),
16592
16592
  /* @__PURE__ */ e(
16593
- Ut,
16593
+ Gt,
16594
16594
  {
16595
16595
  open: Je,
16596
16596
  onOpenChange: ie,
@@ -16607,7 +16607,7 @@ function Dg({
16607
16607
  /* @__PURE__ */ e(
16608
16608
  kt,
16609
16609
  {
16610
- className: Q(
16610
+ className: W(
16611
16611
  "h-3 w-3 transition-transform",
16612
16612
  Je ? "rotate-180" : ""
16613
16613
  )
@@ -16756,8 +16756,8 @@ function Dg({
16756
16756
  /* @__PURE__ */ a(
16757
16757
  te,
16758
16758
  {
16759
- value: Go,
16760
- onValueChange: (ee) => W(
16759
+ value: Uo,
16760
+ onValueChange: (ee) => Q(
16761
16761
  s,
16762
16762
  ee
16763
16763
  ),
@@ -16777,7 +16777,7 @@ function Dg({
16777
16777
  /* @__PURE__ */ a(
16778
16778
  te,
16779
16779
  {
16780
- value: Gr,
16780
+ value: Ur,
16781
16781
  onValueChange: (ee) => de(
16782
16782
  s,
16783
16783
  ee
@@ -16797,7 +16797,7 @@ function Dg({
16797
16797
  /* @__PURE__ */ a(
16798
16798
  te,
16799
16799
  {
16800
- value: Uo,
16800
+ value: Go,
16801
16801
  onValueChange: (ee) => oe(
16802
16802
  s,
16803
16803
  ee
@@ -16813,7 +16813,7 @@ function Dg({
16813
16813
  )
16814
16814
  ] })
16815
16815
  ] }),
16816
- (Xe === "running_total" || Xe === "moving_average" || Xe === "previous_period_delta" || Xe === "percent_of_total" && Gr === "partition_total") && jr.length > 0 && /* @__PURE__ */ a("div", { className: "space-y-1", children: [
16816
+ (Xe === "running_total" || Xe === "moving_average" || Xe === "previous_period_delta" || Xe === "percent_of_total" && Ur === "partition_total") && jr.length > 0 && /* @__PURE__ */ a("div", { className: "space-y-1", children: [
16817
16817
  /* @__PURE__ */ e($, { className: "text-xs font-medium text-muted-foreground", children: "Reset By" }),
16818
16818
  /* @__PURE__ */ e("div", { className: "space-y-1", children: jr.map(
16819
16819
  (ee) => {
@@ -16826,7 +16826,7 @@ function Dg({
16826
16826
  s,
16827
16827
  ee.id
16828
16828
  ),
16829
- className: Q(
16829
+ className: W(
16830
16830
  "flex h-7 w-full items-center justify-between rounded border px-2 text-xs",
16831
16831
  Te ? "border-primary bg-primary/5 text-primary" : "border-border text-muted-foreground"
16832
16832
  ),
@@ -16845,7 +16845,7 @@ function Dg({
16845
16845
  ] })
16846
16846
  }
16847
16847
  ),
16848
- Ur && /* @__PURE__ */ a("div", { className: "space-y-1", children: [
16848
+ Gr && /* @__PURE__ */ a("div", { className: "space-y-1", children: [
16849
16849
  /* @__PURE__ */ e($, { className: "text-xs font-medium text-muted-foreground", children: "Comparison Type" }),
16850
16850
  /* @__PURE__ */ a(
16851
16851
  te,
@@ -16882,13 +16882,13 @@ function Dg({
16882
16882
  ve("start_vs_end", "Start vs End")
16883
16883
  ] });
16884
16884
  })(),
16885
- Un && /* @__PURE__ */ e(j, { value: "target", children: "Target" })
16885
+ Gn && /* @__PURE__ */ e(j, { value: "target", children: "Target" })
16886
16886
  ] })
16887
16887
  ]
16888
16888
  }
16889
16889
  )
16890
16890
  ] }),
16891
- Ur && be.comparisonType === "target" && /* @__PURE__ */ a("div", { className: "space-y-1", children: [
16891
+ Gr && be.comparisonType === "target" && /* @__PURE__ */ a("div", { className: "space-y-1", children: [
16892
16892
  /* @__PURE__ */ e($, { className: "text-xs font-medium text-muted-foreground", children: "Target Value" }),
16893
16893
  /* @__PURE__ */ e(
16894
16894
  Me,
@@ -17028,7 +17028,7 @@ function Dg({
17028
17028
  {
17029
17029
  ref: m,
17030
17030
  style: qn,
17031
- className: Q(
17031
+ className: W(
17032
17032
  "group flex h-7 w-full items-center gap-1.5 rounded-control border bg-background px-1.5 transition-colors",
17033
17033
  Le ? "border-foreground/30 bg-muted/40" : "border-border hover:bg-muted/40",
17034
17034
  p && "z-50 scale-95 opacity-50"
@@ -17042,8 +17042,8 @@ function Dg({
17042
17042
  ...o,
17043
17043
  className: "inline-flex shrink-0 cursor-grab items-center text-muted-foreground transition-colors hover:text-foreground active:cursor-grabbing",
17044
17044
  "aria-label": `Drag ${Vl(t)}`,
17045
- onClick: (U) => {
17046
- U.stopPropagation();
17045
+ onClick: (G) => {
17046
+ G.stopPropagation();
17047
17047
  },
17048
17048
  children: /* @__PURE__ */ e(en, { className: "h-3 w-3" })
17049
17049
  }
@@ -17061,12 +17061,12 @@ function Dg({
17061
17061
  /* @__PURE__ */ e(ca, { className: "h-2.5 w-2.5" }),
17062
17062
  /* @__PURE__ */ e("span", { children: ze.conditions.length })
17063
17063
  ] }) }),
17064
- /* @__PURE__ */ e(wt, { side: "top", children: /* @__PURE__ */ e("div", { className: "text-xs", children: ze.conditions.map((U) => /* @__PURE__ */ a("div", { children: [
17065
- U.field.label,
17064
+ /* @__PURE__ */ e(wt, { side: "top", children: /* @__PURE__ */ e("div", { className: "text-xs", children: ze.conditions.map((G) => /* @__PURE__ */ a("div", { children: [
17065
+ G.field.label,
17066
17066
  ":",
17067
17067
  " ",
17068
- Array.isArray(U.value) ? `${U.value.length} values` : String(U.value)
17069
- ] }, U.id)) }) })
17068
+ Array.isArray(G.value) ? `${G.value.length} values` : String(G.value)
17069
+ ] }, G.id)) }) })
17070
17070
  ] }) }),
17071
17071
  n === "sortBy" && /* @__PURE__ */ e(
17072
17072
  "button",
@@ -17074,8 +17074,8 @@ function Dg({
17074
17074
  type: "button",
17075
17075
  "aria-label": r === "asc" ? "Switch to descending" : "Switch to ascending",
17076
17076
  className: "inline-flex h-5 w-5 shrink-0 items-center justify-center rounded-[3px] text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",
17077
- onClick: (U) => {
17078
- U.stopPropagation(), d(r === "asc" ? "desc" : "asc");
17077
+ onClick: (G) => {
17078
+ G.stopPropagation(), d(r === "asc" ? "desc" : "asc");
17079
17079
  },
17080
17080
  children: r === "asc" ? /* @__PURE__ */ e(Ni, { className: "h-3 w-3" }) : /* @__PURE__ */ e(gr, { className: "h-3 w-3" })
17081
17081
  }
@@ -17086,8 +17086,8 @@ function Dg({
17086
17086
  type: "button",
17087
17087
  "aria-label": "Field configuration",
17088
17088
  className: "inline-flex h-5 w-5 shrink-0 items-center justify-center rounded-[3px] text-muted-foreground transition-colors hover:bg-muted hover:text-foreground data-[state=open]:bg-muted data-[state=open]:text-foreground",
17089
- onClick: (U) => U.stopPropagation(),
17090
- children: /* @__PURE__ */ e(Wu, { className: "h-3 w-3" })
17089
+ onClick: (G) => G.stopPropagation(),
17090
+ children: /* @__PURE__ */ e(Qu, { className: "h-3 w-3" })
17091
17091
  }
17092
17092
  ) }),
17093
17093
  /* @__PURE__ */ e(
@@ -17096,8 +17096,8 @@ function Dg({
17096
17096
  type: "button",
17097
17097
  "aria-label": "Remove",
17098
17098
  className: "inline-flex h-5 w-5 shrink-0 items-center justify-center rounded-[3px] text-muted-foreground opacity-0 transition-opacity hover:bg-muted hover:text-foreground group-focus-within:opacity-100 group-hover:opacity-100 [@media(hover:none)]:opacity-100",
17099
- onClick: (U) => {
17100
- U.stopPropagation(), mn();
17099
+ onClick: (G) => {
17100
+ G.stopPropagation(), mn();
17101
17101
  },
17102
17102
  children: /* @__PURE__ */ e(tt, { className: "h-3 w-3" })
17103
17103
  }
@@ -17119,16 +17119,16 @@ function Dg({
17119
17119
  Bo,
17120
17120
  {
17121
17121
  open: Oe,
17122
- onOpenChange: (U) => {
17123
- He(U), U || Pe(null);
17122
+ onOpenChange: (G) => {
17123
+ He(G), G || Pe(null);
17124
17124
  },
17125
17125
  availableFields: I,
17126
17126
  existingFilters: ze,
17127
17127
  editingCondition: ye,
17128
- onSave: (U) => {
17128
+ onSave: (G) => {
17129
17129
  var ee;
17130
- if (U)
17131
- un(U);
17130
+ if (G)
17131
+ un(G);
17132
17132
  else if (Nt(void 0), n === "metrics") {
17133
17133
  const Te = {
17134
17134
  ...t,
@@ -17155,9 +17155,9 @@ function Dg({
17155
17155
  existingFieldScope: ta,
17156
17156
  initialFieldType: "metric",
17157
17157
  allowedFieldTypes: ["metric"],
17158
- onSave: (U) => {
17158
+ onSave: (G) => {
17159
17159
  var ja, jt;
17160
- if (U.role !== "metric") return;
17160
+ if (G.role !== "metric") return;
17161
17161
  const {
17162
17162
  card: ee,
17163
17163
  frame: Te,
@@ -17165,14 +17165,14 @@ function Dg({
17165
17165
  } = M.getState(), Ke = ((ja = ee.config) == null ? void 0 : ja.metricColumns) || [], dt = ((jt = ee.config) == null ? void 0 : jt.sortByColumns) || [], ht = ta === "dashboard" ? N : Te.calculatedFields || [], {
17166
17166
  nextActiveFields: Pt,
17167
17167
  nextSortByFields: Vt,
17168
- nextStoredFields: Wt,
17168
+ nextStoredFields: Qt,
17169
17169
  nextSharedFields: na
17170
17170
  } = so({
17171
17171
  activeFields: Ke,
17172
17172
  sortByFields: dt,
17173
17173
  storedFields: ee.calculatedFields || [],
17174
17174
  sharedFields: ht,
17175
- updatedField: U,
17175
+ updatedField: G,
17176
17176
  editingField: Ba,
17177
17177
  previousScope: ta
17178
17178
  });
@@ -17180,7 +17180,7 @@ function Dg({
17180
17180
  ...Pt ? { metricColumns: Pt } : {},
17181
17181
  ...Vt ? { sortByColumns: Vt } : {}
17182
17182
  }), ve.updateCard(u.id, {
17183
- calculatedFields: Wt
17183
+ calculatedFields: Qt
17184
17184
  }), ta === "dashboard" && na !== ht ? E(na) : na !== ht && es({
17185
17185
  nextSharedFields: na,
17186
17186
  currentSharedFields: ht,
@@ -17190,16 +17190,16 @@ function Dg({
17190
17190
  updateSheetCalculatedFields: w
17191
17191
  });
17192
17192
  },
17193
- onSaveToSheet: (U) => {
17193
+ onSaveToSheet: (G) => {
17194
17194
  var xn, bn;
17195
- if (U.role !== "metric") return;
17195
+ if (G.role !== "metric") return;
17196
17196
  const {
17197
17197
  card: ee,
17198
17198
  frame: Te,
17199
17199
  actions: ve
17200
17200
  } = M.getState(), Ke = t, dt = ((xn = ee.config) == null ? void 0 : xn.metricColumns) || [], ht = ((bn = ee.config) == null ? void 0 : bn.sortByColumns) || [], Pt = Te.calculatedFields || [], {
17201
17201
  nextActiveFields: Vt,
17202
- nextSortByFields: Wt,
17202
+ nextSortByFields: Qt,
17203
17203
  nextStoredFields: na,
17204
17204
  nextSheetFields: ja,
17205
17205
  nextDashboardFields: jt
@@ -17210,7 +17210,7 @@ function Dg({
17210
17210
  sheetFields: Pt,
17211
17211
  dashboardFields: N,
17212
17212
  updatedField: {
17213
- ...U,
17213
+ ...G,
17214
17214
  id: Ke.id,
17215
17215
  aliasTemplate: Ke.aliasTemplate,
17216
17216
  valueAliases: Ke.valueAliases,
@@ -17227,23 +17227,23 @@ function Dg({
17227
17227
  selectedSheetId: g,
17228
17228
  updateFrame: ve.updateFrame,
17229
17229
  updateSheetCalculatedFields: w
17230
- }), jt && jt !== N && E(jt), (Vt || Wt) && ve.updateCardConfig(u.id, {
17230
+ }), jt && jt !== N && E(jt), (Vt || Qt) && ve.updateCardConfig(u.id, {
17231
17231
  ...Vt ? { metricColumns: Vt } : {},
17232
- ...Wt ? { sortByColumns: Wt } : {}
17232
+ ...Qt ? { sortByColumns: Qt } : {}
17233
17233
  }), ve.updateCard(u.id, {
17234
17234
  calculatedFields: na
17235
17235
  });
17236
17236
  },
17237
- onSaveToDashboard: (U) => {
17237
+ onSaveToDashboard: (G) => {
17238
17238
  var xn, bn;
17239
- if (U.role !== "metric") return;
17239
+ if (G.role !== "metric") return;
17240
17240
  const {
17241
17241
  card: ee,
17242
17242
  frame: Te,
17243
17243
  actions: ve
17244
17244
  } = M.getState(), Ke = t, dt = ((xn = ee.config) == null ? void 0 : xn.metricColumns) || [], ht = ((bn = ee.config) == null ? void 0 : bn.sortByColumns) || [], Pt = Te.calculatedFields || [], {
17245
17245
  nextActiveFields: Vt,
17246
- nextSortByFields: Wt,
17246
+ nextSortByFields: Qt,
17247
17247
  nextStoredFields: na,
17248
17248
  nextSharedFields: ja,
17249
17249
  nextSheetFields: jt
@@ -17254,7 +17254,7 @@ function Dg({
17254
17254
  sharedFields: N,
17255
17255
  sheetFields: Pt,
17256
17256
  updatedField: {
17257
- ...U,
17257
+ ...G,
17258
17258
  id: Ke.id,
17259
17259
  aliasTemplate: Ke.aliasTemplate,
17260
17260
  valueAliases: Ke.valueAliases,
@@ -17271,9 +17271,9 @@ function Dg({
17271
17271
  selectedSheetId: g,
17272
17272
  updateFrame: ve.updateFrame,
17273
17273
  updateSheetCalculatedFields: w
17274
- }), (Vt || Wt) && ve.updateCardConfig(u.id, {
17274
+ }), (Vt || Qt) && ve.updateCardConfig(u.id, {
17275
17275
  ...Vt ? { metricColumns: Vt } : {},
17276
- ...Wt ? { sortByColumns: Wt } : {}
17276
+ ...Qt ? { sortByColumns: Qt } : {}
17277
17277
  }), ve.updateCard(u.id, {
17278
17278
  calculatedFields: na
17279
17279
  });
@@ -17341,7 +17341,7 @@ function Og({
17341
17341
  ["North", "South", "East"].map((i) => /* @__PURE__ */ e(
17342
17342
  "th",
17343
17343
  {
17344
- className: Q(
17344
+ className: W(
17345
17345
  "px-1.5 py-1 text-center font-normal text-muted-foreground",
17346
17346
  n && d
17347
17347
  ),
@@ -17353,14 +17353,14 @@ function Og({
17353
17353
  /* @__PURE__ */ e("tbody", { children: pi.map((i, l) => /* @__PURE__ */ a(
17354
17354
  "tr",
17355
17355
  {
17356
- className: Q(
17356
+ className: W(
17357
17357
  l !== pi.length - 1 && "border-b border-border/60"
17358
17358
  ),
17359
17359
  children: [
17360
17360
  /* @__PURE__ */ e(
17361
17361
  "td",
17362
17362
  {
17363
- className: Q(
17363
+ className: W(
17364
17364
  "px-1.5 py-1 text-left text-muted-foreground",
17365
17365
  s && d
17366
17366
  ),
@@ -17370,7 +17370,7 @@ function Og({
17370
17370
  i.values.map((c, o) => /* @__PURE__ */ e(
17371
17371
  "td",
17372
17372
  {
17373
- className: Q(
17373
+ className: W(
17374
17374
  "px-1.5 py-1 text-right font-mono tabular-nums text-muted-foreground",
17375
17375
  r && d
17376
17376
  ),
@@ -17424,7 +17424,7 @@ function Cn({
17424
17424
  "div",
17425
17425
  {
17426
17426
  ref: o,
17427
- className: Q(
17427
+ className: W(
17428
17428
  "rounded-control transition-colors",
17429
17429
  // While drop-active we use border/bg feedback; otherwise the
17430
17430
  // empty state borrows hairline + dashed and the populated
@@ -17479,7 +17479,7 @@ function Rg({
17479
17479
  detailFields: d,
17480
17480
  activeField: i
17481
17481
  }) {
17482
- var Y, W, de;
17482
+ var Y, Q, de;
17483
17483
  const [l, c] = K(!1);
17484
17484
  M(
17485
17485
  (oe) => {
@@ -17489,7 +17489,7 @@ function Rg({
17489
17489
  );
17490
17490
  const o = M((oe) => oe.card), m = M((oe) => oe.frame), h = Pa(m, o), { manifest: v } = pa(
17491
17491
  ((Y = h == null ? void 0 : h.customCardPreferences) == null ? void 0 : Y.url) || ""
17492
- ), p = (W = v == null ? void 0 : v.visuals) == null ? void 0 : W.find(
17492
+ ), p = (Q = v == null ? void 0 : v.visuals) == null ? void 0 : Q.find(
17493
17493
  (oe) => {
17494
17494
  var ue;
17495
17495
  return oe.name === ((ue = h == null ? void 0 : h.customCardPreferences) == null ? void 0 : ue.componentName);
@@ -17507,7 +17507,7 @@ function Rg({
17507
17507
  var ue;
17508
17508
  return oe.visualEditPendingDashboardCalculatedFields ?? ((ue = oe.dashboard) == null ? void 0 : ue.calculatedFields);
17509
17509
  }
17510
- ) ?? Mg, { scopedFields: y } = Wi(), { userContext: O } = Nr(), x = u && (h == null ? void 0 : h.id) === o.id && f ? f : o == null ? void 0 : o.type, R = x === "detailTable", D = t.length > 0 || s.length > 0 || d.length > 0, F = !R && (x !== "kpi" || s.length <= 2), L = !R, b = !R && x !== "kpi", S = x !== "kpi" && D, A = R, B = "Drop sort fields here", z = (O == null ? void 0 : O.type) === "organization", _ = [
17510
+ ) ?? Mg, { scopedFields: y } = Qi(), { userContext: O } = Nr(), x = u && (h == null ? void 0 : h.id) === o.id && f ? f : o == null ? void 0 : o.type, R = x === "detailTable", D = t.length > 0 || s.length > 0 || d.length > 0, F = !R && (x !== "kpi" || s.length <= 2), L = !R, b = !R && x !== "kpi", S = x !== "kpi" && D, A = R, B = "Drop sort fields here", z = (O == null ? void 0 : O.type) === "organization", _ = [
17511
17511
  "pie",
17512
17512
  "doughnut",
17513
17513
  "polar",
@@ -17694,7 +17694,7 @@ function Lg() {
17694
17694
  f && s && /* @__PURE__ */ e(
17695
17695
  "div",
17696
17696
  {
17697
- className: Q(
17697
+ className: W(
17698
17698
  "overflow-y-auto border-b border-border px-4",
17699
17699
  n ? "max-h-[72vh]" : "max-h-[50vh]"
17700
17700
  ),
@@ -17723,7 +17723,7 @@ function Lg() {
17723
17723
  /* @__PURE__ */ e(
17724
17724
  kt,
17725
17725
  {
17726
- className: Q(
17726
+ className: W(
17727
17727
  "h-3 w-3 text-muted-foreground transition-transform",
17728
17728
  s && "rotate-180"
17729
17729
  ),
@@ -17739,7 +17739,7 @@ function Lg() {
17739
17739
  {
17740
17740
  type: "button",
17741
17741
  onClick: () => i((N) => !N),
17742
- className: Q(
17742
+ className: W(
17743
17743
  "flex w-full items-center justify-between px-4 py-2.5 text-left transition-colors hover:bg-muted/50",
17744
17744
  f && "border-t border-border"
17745
17745
  ),
@@ -17751,7 +17751,7 @@ function Lg() {
17751
17751
  /* @__PURE__ */ e(
17752
17752
  kt,
17753
17753
  {
17754
- className: Q(
17754
+ className: W(
17755
17755
  "h-3 w-3 text-muted-foreground transition-transform",
17756
17756
  d && "rotate-180"
17757
17757
  ),
@@ -18209,7 +18209,7 @@ function _g({
18209
18209
  /* @__PURE__ */ e(Tt, { asChild: !0, children: /* @__PURE__ */ e(
18210
18210
  "div",
18211
18211
  {
18212
- className: Q(
18212
+ className: W(
18213
18213
  "w-[200px] overflow-hidden text-ellipsis whitespace-nowrap text-sm",
18214
18214
  n
18215
18215
  ),
@@ -18247,7 +18247,7 @@ function $g({
18247
18247
  variant: "outline",
18248
18248
  role: "combobox",
18249
18249
  "aria-expanded": i,
18250
- className: Q(
18250
+ className: W(
18251
18251
  "justify-between",
18252
18252
  !t && "text-muted-foreground",
18253
18253
  d
@@ -18289,7 +18289,7 @@ function $g({
18289
18289
  /* @__PURE__ */ e(
18290
18290
  ga,
18291
18291
  {
18292
- className: Q(
18292
+ className: W(
18293
18293
  "mr-2 h-4 w-4",
18294
18294
  (t == null ? void 0 : t.id) === p.id ? "opacity-100" : "opacity-0"
18295
18295
  )
@@ -18381,7 +18381,7 @@ function qg({
18381
18381
  }, m = (h) => {
18382
18382
  n.includes(h) ? s(n.filter((v) => v !== h)) : s([...n, h]);
18383
18383
  };
18384
- return /* @__PURE__ */ e("div", { className: Q("w-full", d), children: /* @__PURE__ */ a(It, { open: i, onOpenChange: l, modal: !0, children: [
18384
+ return /* @__PURE__ */ e("div", { className: W("w-full", d), children: /* @__PURE__ */ a(It, { open: i, onOpenChange: l, modal: !0, children: [
18385
18385
  /* @__PURE__ */ e(At, { asChild: !0, children: /* @__PURE__ */ a(
18386
18386
  Z,
18387
18387
  {
@@ -18428,7 +18428,7 @@ function qg({
18428
18428
  /* @__PURE__ */ e(
18429
18429
  ga,
18430
18430
  {
18431
- className: Q(
18431
+ className: W(
18432
18432
  "mr-2 h-4 w-4",
18433
18433
  n.includes(h.value) ? "opacity-100" : "opacity-0"
18434
18434
  )
@@ -18529,7 +18529,7 @@ const qr = [
18529
18529
  "endsWith",
18530
18530
  "like",
18531
18531
  "not like"
18532
- ], Gg = [
18532
+ ], Ug = [
18533
18533
  "=",
18534
18534
  "!=",
18535
18535
  ">",
@@ -18541,7 +18541,7 @@ const qr = [
18541
18541
  "not in",
18542
18542
  "isNull",
18543
18543
  "isNotNull"
18544
- ], Ug = [
18544
+ ], Gg = [
18545
18545
  "=",
18546
18546
  "!=",
18547
18547
  ...qr,
@@ -18560,7 +18560,7 @@ const qr = [
18560
18560
  "not in",
18561
18561
  "isNull",
18562
18562
  "isNotNull"
18563
- ], Qg = ["=", "!=", "isNull", "isNotNull"], Wg = [
18563
+ ], Wg = ["=", "!=", "isNull", "isNotNull"], Qg = [
18564
18564
  "between",
18565
18565
  // Default operator for dates
18566
18566
  "=",
@@ -18596,15 +18596,15 @@ function fi(t) {
18596
18596
  function Yg(t) {
18597
18597
  switch (t) {
18598
18598
  case "string":
18599
- return Ug;
18599
+ return Gg;
18600
18600
  case "number":
18601
18601
  return Hg;
18602
18602
  case "boolean":
18603
- return Qg;
18604
- case "date":
18605
18603
  return Wg;
18604
+ case "date":
18605
+ return Qg;
18606
18606
  default:
18607
- return Gg;
18607
+ return Ug;
18608
18608
  }
18609
18609
  }
18610
18610
  function _o({
@@ -19215,7 +19215,7 @@ function ex({
19215
19215
  children: [
19216
19216
  /* @__PURE__ */ a(Ea, { children: [
19217
19217
  /* @__PURE__ */ e(Aa, { children: "Card Filters" }),
19218
- /* @__PURE__ */ e(Wa, { children: "Add filters to the card to limit the data that is displayed." })
19218
+ /* @__PURE__ */ e(Qa, { children: "Add filters to the card to limit the data that is displayed." })
19219
19219
  ] }),
19220
19220
  /* @__PURE__ */ e(
19221
19221
  Zg,
@@ -19504,7 +19504,7 @@ function ax({
19504
19504
  ), c = [
19505
19505
  { id: "chart", label: "Chart" }
19506
19506
  ];
19507
- return l() && c.push({ id: "table", label: "Results" }), r.type !== "kpi" && i && c.push({ id: "info", label: "Info", icon: Qt }), /* @__PURE__ */ e(
19507
+ return l() && c.push({ id: "table", label: "Results" }), r.type !== "kpi" && i && c.push({ id: "info", label: "Info", icon: Wt }), /* @__PURE__ */ e(
19508
19508
  Ts,
19509
19509
  {
19510
19510
  value: t,
@@ -19749,7 +19749,7 @@ function dx({
19749
19749
  visible: n
19750
19750
  }) {
19751
19751
  const s = Ae((c) => c.selectedFrameId), r = dm((c) => c.selectedVisual), d = M((c) => c.frame), l = !!!(d != null && d.visualId || r != null && r.id) && !!s;
19752
- return !n || l ? null : /* @__PURE__ */ e("div", { className: Q("flex", t), children: /* @__PURE__ */ e(
19752
+ return !n || l ? null : /* @__PURE__ */ e("div", { className: W("flex", t), children: /* @__PURE__ */ e(
19753
19753
  po,
19754
19754
  {
19755
19755
  showLabel: !0,
@@ -19791,7 +19791,7 @@ function ux({
19791
19791
  isFetching: q,
19792
19792
  errorSql: H,
19793
19793
  pagination: Y,
19794
- refetch: W,
19794
+ refetch: Q,
19795
19795
  comparisonMetadata: de,
19796
19796
  queryRequestPayload: oe,
19797
19797
  resolvedPrimaryDateField: ue
@@ -19837,7 +19837,7 @@ function ux({
19837
19837
  return /* @__PURE__ */ e(
19838
19838
  "div",
19839
19839
  {
19840
- className: Q("relative flex w-0 grow flex-col", {
19840
+ className: W("relative flex w-0 grow flex-col", {
19841
19841
  "border-l": C && w
19842
19842
  }),
19843
19843
  children: /* @__PURE__ */ a("div", { className: "group/visualization relative flex h-full max-w-full grow flex-col", children: [
@@ -19900,12 +19900,12 @@ function ux({
19900
19900
  className: "h-7 w-7 rounded-[5px] p-0",
19901
19901
  disabled: P || q,
19902
19902
  onClick: () => {
19903
- Le(!0), W();
19903
+ Le(!0), Q();
19904
19904
  },
19905
19905
  children: /* @__PURE__ */ e(
19906
19906
  yo,
19907
19907
  {
19908
- className: Q("h-3.5 w-3.5", {
19908
+ className: W("h-3.5 w-3.5", {
19909
19909
  "animate-spin": xe
19910
19910
  })
19911
19911
  }
@@ -19940,12 +19940,12 @@ function ux({
19940
19940
  ) }),
19941
19941
  /* @__PURE__ */ a(nn, { align: "end", className: "w-64", children: [
19942
19942
  /* @__PURE__ */ e(In, { children: "More Options" }),
19943
- /* @__PURE__ */ e(Gt, {}),
19943
+ /* @__PURE__ */ e(Ut, {}),
19944
19944
  /* @__PURE__ */ a(ut, { onClick: et, children: [
19945
19945
  F ? /* @__PURE__ */ e(xh, { className: "mr-2 h-4 w-4" }) : /* @__PURE__ */ e(Oh, { className: "mr-2 h-4 w-4" }),
19946
19946
  F ? "Hide Results Table" : "Show Results Table"
19947
19947
  ] }),
19948
- /* @__PURE__ */ e(Gt, {}),
19948
+ /* @__PURE__ */ e(Ut, {}),
19949
19949
  /* @__PURE__ */ a("div", { className: "px-1 py-1", children: [
19950
19950
  /* @__PURE__ */ e(
19951
19951
  Br,
@@ -20128,9 +20128,9 @@ function px({ column: t, isSelected: n, onSelect: s, availableFields: r, width:
20128
20128
  startX: q.clientX,
20129
20129
  startWidth: d || 150
20130
20130
  };
20131
- const H = (W) => {
20131
+ const H = (Q) => {
20132
20132
  if (!C.current) return;
20133
- const de = W.clientX - C.current.startX, oe = Math.max(80, C.current.startWidth + de);
20133
+ const de = Q.clientX - C.current.startX, oe = Math.max(80, C.current.startWidth + de);
20134
20134
  i == null || i(t.id, oe);
20135
20135
  }, Y = () => {
20136
20136
  f(!1), C.current = null, document.removeEventListener("mousemove", H), document.removeEventListener("mouseup", Y);
@@ -20152,10 +20152,10 @@ function px({ column: t, isSelected: n, onSelect: s, availableFields: r, width:
20152
20152
  transition: y
20153
20153
  }, R = rt(t.dataType), D = fx(R), F = () => {
20154
20154
  var Y;
20155
- const q = ((Y = l == null ? void 0 : l.config) == null ? void 0 : Y.sortByColumns) || [], H = q.findIndex((W) => W.name === t.name);
20155
+ const q = ((Y = l == null ? void 0 : l.config) == null ? void 0 : Y.sortByColumns) || [], H = q.findIndex((Q) => Q.name === t.name);
20156
20156
  if (H !== -1) {
20157
- const W = [...q];
20158
- W[H] = { ...W[H], direction: "asc" }, c(l.id, { sortByColumns: W });
20157
+ const Q = [...q];
20158
+ Q[H] = { ...Q[H], direction: "asc" }, c(l.id, { sortByColumns: Q });
20159
20159
  } else
20160
20160
  c(l.id, {
20161
20161
  sortByColumns: [
@@ -20170,10 +20170,10 @@ function px({ column: t, isSelected: n, onSelect: s, availableFields: r, width:
20170
20170
  });
20171
20171
  }, L = () => {
20172
20172
  var Y;
20173
- const q = ((Y = l == null ? void 0 : l.config) == null ? void 0 : Y.sortByColumns) || [], H = q.findIndex((W) => W.name === t.name);
20173
+ const q = ((Y = l == null ? void 0 : l.config) == null ? void 0 : Y.sortByColumns) || [], H = q.findIndex((Q) => Q.name === t.name);
20174
20174
  if (H !== -1) {
20175
- const W = [...q];
20176
- W[H] = { ...W[H], direction: "desc" }, c(l.id, { sortByColumns: W });
20175
+ const Q = [...q];
20176
+ Q[H] = { ...Q[H], direction: "desc" }, c(l.id, { sortByColumns: Q });
20177
20177
  } else
20178
20178
  c(l.id, {
20179
20179
  sortByColumns: [
@@ -20189,19 +20189,19 @@ function px({ column: t, isSelected: n, onSelect: s, availableFields: r, width:
20189
20189
  }, b = () => {
20190
20190
  var Y;
20191
20191
  const q = ((Y = l == null ? void 0 : l.config) == null ? void 0 : Y.groupByColumns) || [];
20192
- if (!q.some((W) => W.name === t.name)) {
20193
- const W = {
20192
+ if (!q.some((Q) => Q.name === t.name)) {
20193
+ const Q = {
20194
20194
  ...t,
20195
20195
  id: `groupby-${t.id}-${Date.now()}`,
20196
20196
  role: "groupby"
20197
20197
  };
20198
20198
  c(l.id, {
20199
- groupByColumns: [...q, W]
20199
+ groupByColumns: [...q, Q]
20200
20200
  });
20201
20201
  }
20202
20202
  }, S = (q) => {
20203
- var W;
20204
- const H = ((W = l == null ? void 0 : l.config) == null ? void 0 : W.metricColumns) || [];
20203
+ var Q;
20204
+ const H = ((Q = l == null ? void 0 : l.config) == null ? void 0 : Q.metricColumns) || [];
20205
20205
  if (!H.some(
20206
20206
  (de) => de.name === t.name && de.aggregate === q
20207
20207
  )) {
@@ -20228,7 +20228,7 @@ function px({ column: t, isSelected: n, onSelect: s, availableFields: r, width:
20228
20228
  {
20229
20229
  ref: I,
20230
20230
  style: B,
20231
- className: Q(
20231
+ className: W(
20232
20232
  "group relative border-r border-border bg-background px-1 py-0",
20233
20233
  O && "opacity-50",
20234
20234
  n && "bg-primary/10",
@@ -20250,7 +20250,7 @@ function px({ column: t, isSelected: n, onSelect: s, availableFields: r, width:
20250
20250
  "button",
20251
20251
  {
20252
20252
  onClick: s,
20253
- className: Q(
20253
+ className: W(
20254
20254
  "flex flex-1 items-center justify-between gap-1 rounded px-2 py-2 text-left text-sm font-medium transition-colors hover:bg-muted/50",
20255
20255
  n && "bg-primary/10"
20256
20256
  ),
@@ -20271,10 +20271,10 @@ function px({ column: t, isSelected: n, onSelect: s, availableFields: r, width:
20271
20271
  ) }),
20272
20272
  /* @__PURE__ */ a(nn, { align: "start", className: "w-48", children: [
20273
20273
  /* @__PURE__ */ a(ut, { onClick: () => p(!0), children: [
20274
- /* @__PURE__ */ e(ca, { className: Q("mr-2 h-4 w-4", E && "text-primary") }),
20274
+ /* @__PURE__ */ e(ca, { className: W("mr-2 h-4 w-4", E && "text-primary") }),
20275
20275
  E ? "Edit Filter" : "Filter"
20276
20276
  ] }),
20277
- /* @__PURE__ */ e(Gt, {}),
20277
+ /* @__PURE__ */ e(Ut, {}),
20278
20278
  /* @__PURE__ */ a(ut, { onClick: F, children: [
20279
20279
  /* @__PURE__ */ e(ph, { className: "mr-2 h-4 w-4" }),
20280
20280
  "Sort A → Z"
@@ -20283,7 +20283,7 @@ function px({ column: t, isSelected: n, onSelect: s, availableFields: r, width:
20283
20283
  /* @__PURE__ */ e(hh, { className: "mr-2 h-4 w-4" }),
20284
20284
  "Sort Z → A"
20285
20285
  ] }),
20286
- /* @__PURE__ */ e(Gt, {}),
20286
+ /* @__PURE__ */ e(Ut, {}),
20287
20287
  /* @__PURE__ */ a(pm, { children: [
20288
20288
  /* @__PURE__ */ a(fm, { children: [
20289
20289
  /* @__PURE__ */ e(Ar, { className: "mr-2 h-4 w-4" }),
@@ -20298,7 +20298,7 @@ function px({ column: t, isSelected: n, onSelect: s, availableFields: r, width:
20298
20298
  /* @__PURE__ */ e(ut, { onClick: () => S("MAX"), children: "Max" })
20299
20299
  ] })
20300
20300
  ] }),
20301
- /* @__PURE__ */ e(Gt, {}),
20301
+ /* @__PURE__ */ e(Ut, {}),
20302
20302
  /* @__PURE__ */ a(ut, { onClick: b, children: [
20303
20303
  /* @__PURE__ */ e(Es, { className: "mr-2 h-4 w-4" }),
20304
20304
  "Group by this column"
@@ -20307,7 +20307,7 @@ function px({ column: t, isSelected: n, onSelect: s, availableFields: r, width:
20307
20307
  /* @__PURE__ */ e(Rr, { className: "mr-2 h-4 w-4" }),
20308
20308
  "Pivot by this column"
20309
20309
  ] }),
20310
- /* @__PURE__ */ e(Gt, {}),
20310
+ /* @__PURE__ */ e(Ut, {}),
20311
20311
  /* @__PURE__ */ a(ut, { disabled: !0, children: [
20312
20312
  /* @__PURE__ */ e(ir, { className: "mr-2 h-4 w-4" }),
20313
20313
  "Hide column"
@@ -20330,7 +20330,7 @@ function px({ column: t, isSelected: n, onSelect: s, availableFields: r, width:
20330
20330
  "div",
20331
20331
  {
20332
20332
  onMouseDown: g,
20333
- className: Q(
20333
+ className: W(
20334
20334
  "absolute right-0 top-0 h-full w-1 cursor-col-resize bg-transparent hover:bg-primary/50",
20335
20335
  u && "bg-primary"
20336
20336
  )
@@ -20543,7 +20543,7 @@ function gx({
20543
20543
  ) }) : w.slice(0, 100).map((F, L) => /* @__PURE__ */ a(
20544
20544
  "tr",
20545
20545
  {
20546
- className: Q(
20546
+ className: W(
20547
20547
  "border-b border-border transition-colors hover:bg-muted/50",
20548
20548
  L % 2 === 0 ? "bg-background" : "bg-muted/20"
20549
20549
  ),
@@ -20558,7 +20558,7 @@ function gx({
20558
20558
  width: m[b.id] ? `${m[b.id]}px` : void 0,
20559
20559
  minWidth: m[b.id] ? `${m[b.id]}px` : "120px"
20560
20560
  },
20561
- className: Q(
20561
+ className: W(
20562
20562
  "border-r border-border px-3 py-2 text-sm",
20563
20563
  (t == null ? void 0 : t.id) === b.id && "bg-primary/5"
20564
20564
  ),
@@ -20693,7 +20693,7 @@ function bx({
20693
20693
  )
20694
20694
  ] }) }),
20695
20695
  (p.length > 0 || u.length > 0) && /* @__PURE__ */ a("div", { className: "border-b border-border", children: [
20696
- p.length > 0 && /* @__PURE__ */ a(Ut, { defaultOpen: !0, children: [
20696
+ p.length > 0 && /* @__PURE__ */ a(Gt, { defaultOpen: !0, children: [
20697
20697
  /* @__PURE__ */ a(Xt, { className: "flex w-full items-center gap-2 px-3 py-2 text-sm font-medium hover:bg-muted/50", children: [
20698
20698
  /* @__PURE__ */ e(Zt, { className: "h-3.5 w-3.5 transition-transform duration-200 [[data-state=open]>&]:rotate-90" }),
20699
20699
  /* @__PURE__ */ e(Es, { className: "h-3.5 w-3.5 text-blue-500" }),
@@ -20726,7 +20726,7 @@ function bx({
20726
20726
  );
20727
20727
  }) }) })
20728
20728
  ] }),
20729
- u.length > 0 && /* @__PURE__ */ a(Ut, { defaultOpen: !0, children: [
20729
+ u.length > 0 && /* @__PURE__ */ a(Gt, { defaultOpen: !0, children: [
20730
20730
  /* @__PURE__ */ a(Xt, { className: "flex w-full items-center gap-2 px-3 py-2 text-sm font-medium hover:bg-muted/50", children: [
20731
20731
  /* @__PURE__ */ e(Zt, { className: "h-3.5 w-3.5 transition-transform duration-200 [[data-state=open]>&]:rotate-90" }),
20732
20732
  /* @__PURE__ */ e(Ar, { className: "h-3.5 w-3.5 text-green-500" }),
@@ -20766,7 +20766,7 @@ function bx({
20766
20766
  if (I.length === 0) return null;
20767
20767
  const k = h.has(T.entityId) || o.length > 0;
20768
20768
  return /* @__PURE__ */ a(
20769
- Ut,
20769
+ Gt,
20770
20770
  {
20771
20771
  open: k,
20772
20772
  onOpenChange: () => f(T.entityId),
@@ -20775,7 +20775,7 @@ function bx({
20775
20775
  /* @__PURE__ */ e(
20776
20776
  Zt,
20777
20777
  {
20778
- className: Q(
20778
+ className: W(
20779
20779
  "h-3.5 w-3.5 transition-transform duration-200",
20780
20780
  k && "rotate-90"
20781
20781
  )
@@ -20790,7 +20790,7 @@ function bx({
20790
20790
  return /* @__PURE__ */ a(
20791
20791
  "label",
20792
20792
  {
20793
- className: Q(
20793
+ className: W(
20794
20794
  "flex cursor-pointer items-center gap-2 rounded px-2 py-1.5 text-sm transition-colors hover:bg-muted/50",
20795
20795
  x && "bg-primary/5"
20796
20796
  ),
@@ -21015,7 +21015,7 @@ function Nx({ className: t }) {
21015
21015
  }, p = () => {
21016
21016
  i(""), r(null);
21017
21017
  };
21018
- return /* @__PURE__ */ a("div", { className: Q("flex h-full w-full flex-col", t), children: [
21018
+ return /* @__PURE__ */ a("div", { className: W("flex h-full w-full flex-col", t), children: [
21019
21019
  /* @__PURE__ */ e(
21020
21020
  yx,
21021
21021
  {
@@ -21208,7 +21208,7 @@ function wx({ authToken: t, onSave: n, onClose: s }) {
21208
21208
  ea,
21209
21209
  {
21210
21210
  "data-content": "editor-main",
21211
- className: Q(
21211
+ className: W(
21212
21212
  "grow transition-opacity",
21213
21213
  p && "pointer-events-none opacity-0"
21214
21214
  ),
@@ -21241,7 +21241,7 @@ function wx({ authToken: t, onSave: n, onClose: s }) {
21241
21241
  "div",
21242
21242
  {
21243
21243
  ref: f,
21244
- className: Q(
21244
+ className: W(
21245
21245
  "absolute inset-0",
21246
21246
  !p && "pointer-events-none"
21247
21247
  )
@@ -21256,7 +21256,7 @@ function wx({ authToken: t, onSave: n, onClose: s }) {
21256
21256
  ea,
21257
21257
  {
21258
21258
  "data-content": "explorer",
21259
- className: Q(
21259
+ className: W(
21260
21260
  "flex grow transition-opacity",
21261
21261
  p && "pointer-events-none opacity-0"
21262
21262
  ),
@@ -21289,7 +21289,7 @@ function wx({ authToken: t, onSave: n, onClose: s }) {
21289
21289
  "div",
21290
21290
  {
21291
21291
  ref: f,
21292
- className: Q(
21292
+ className: W(
21293
21293
  "absolute inset-0",
21294
21294
  !p && "pointer-events-none"
21295
21295
  )
@@ -21380,7 +21380,7 @@ function Lx() {
21380
21380
  "div",
21381
21381
  {
21382
21382
  role: "editor-container",
21383
- className: Q("flex-1 grow basis-0 overflow-auto", {
21383
+ className: W("flex-1 grow basis-0 overflow-auto", {
21384
21384
  "max-h-0 overflow-hidden": !c
21385
21385
  }),
21386
21386
  style: l.dashboardContainerStyle,