react-semaphor 0.1.565 → 0.1.567

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 (39) hide show
  1. package/dist/assistant-context/index.js +1 -1
  2. package/dist/briefings/index.js +50 -46
  3. package/dist/chunks/{assistant-chat-DNfb5fbF.js → assistant-chat-D-IuHHwh.js} +6 -6
  4. package/dist/chunks/{bookmark-impact-CHr7b1J2.js → bookmark-impact-B0estCHn.js} +9 -9
  5. package/dist/chunks/{bookmark-state-ByODVqee.js → bookmark-state-Du3s13_V.js} +333 -321
  6. package/dist/chunks/{card-filter-builder-CcEcfaYz.js → card-filter-builder-DbSmzvem.js} +46 -46
  7. package/dist/chunks/{dashboard-briefing-launcher-D3mc6peE.js → dashboard-briefing-launcher-DunvZYsU.js} +333 -333
  8. package/dist/chunks/{dashboard-controls-BFv0zdws.js → dashboard-controls-B09cN2Dz.js} +57 -57
  9. package/dist/chunks/{dashboard-CtIfxycc.js → dashboard-f8J9DHh5.js} +1 -1
  10. package/dist/chunks/{dashboard-json-CXn_3OYb.js → dashboard-json-BNNCaKEc.js} +1 -1
  11. package/dist/chunks/{dates-DcRxw17S.js → dates-BsJcyoC_.js} +5 -5
  12. package/dist/chunks/{edit-dashboard-visual-Y6HatqBd.js → edit-dashboard-visual-Cwzbpty8.js} +213 -197
  13. package/dist/chunks/{filter-reach-copy-DbggA5B7.js → filter-reach-copy-P-kDwUpY.js} +852 -858
  14. package/dist/chunks/{index-DDa_rklN.js → index-BcXw0CpM.js} +648 -574
  15. package/dist/chunks/{report-preferences-dialog-Db-b04B4.js → report-preferences-dialog-CbgmdWeZ.js} +8 -8
  16. package/dist/chunks/{resolve-dashboard-input-context-C18J-YZC.js → resolve-dashboard-input-context-DPKSF3qj.js} +3403 -3378
  17. package/dist/chunks/{saved-dashboard-context-DhC_EVus.js → saved-dashboard-context-CNudmm9U.js} +13 -13
  18. package/dist/chunks/{semaphor-ready-indicator-T6TsiBMT.js → semaphor-ready-indicator-CQd-PCCZ.js} +32568 -32581
  19. package/dist/chunks/{shelf-drop-preview-context-CNWL_b0S.js → shelf-drop-preview-context-CWS3e20y.js} +2 -2
  20. package/dist/chunks/{stored-dashboard-IdmtrNkA.js → stored-dashboard-CrQFT27O.js} +1074 -1055
  21. package/dist/chunks/{variable-draft-3xseULxR.js → variable-draft-BDxlD0dM.js} +2 -2
  22. package/dist/dashboard/index.js +2 -2
  23. package/dist/dashboard-authoring/index.js +1669 -1642
  24. package/dist/index.js +12 -12
  25. package/dist/style.css +1 -1
  26. package/dist/surfboard/index.js +2 -2
  27. package/dist/types/briefings/delivery-outcome.d.ts +37 -0
  28. package/dist/types/briefings/index.d.ts +2 -0
  29. package/dist/types/briefings/run-outcomes.d.ts +6 -0
  30. package/dist/types/components/briefings/briefing-author/run-model.d.ts +9 -0
  31. package/dist/types/index.js +33 -32
  32. package/dist/types/lib/dashboard-viewer/table-view.d.ts +24 -2
  33. package/dist/types/lib/dashboard-viewer/use-table-view.d.ts +15 -0
  34. package/dist/types/lib/query-context/dashboard-filter-mapping-resolution.d.ts +15 -3
  35. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +2 -0
  36. package/dist/types/shared/dashboard-authoring/dashboard-filter-sql-subscription.d.ts +24 -0
  37. package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +20 -4
  38. package/dist/types/shared/dashboard-viewer/table-settings.d.ts +9 -0
  39. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { jsx as e, jsxs as n, Fragment as ue } from "react/jsx-runtime";
2
2
  import rl, { useState as U, useEffect as we, useMemo as se, useRef as Ve, useCallback as xt, useId as Ma, useContext as ir, Suspense as Ri } from "react";
3
- import { F as Oi, P as Li, a as Yi, b as sl, u as lt, S as xs, c as bs, r as ll, E as _i, T as Vi, A as Bi, d as Ki, e as Ga, f as qi, g as ji, h as $i } from "./shelf-drop-preview-context-CNWL_b0S.js";
3
+ import { F as Oi, P as Li, a as Yi, b as sl, u as lt, S as xs, c as bs, r as ll, E as _i, T as Vi, A as Bi, d as Ki, e as Ga, f as qi, g as ji, h as $i } from "./shelf-drop-preview-context-CWS3e20y.js";
4
4
  import "./index-CuHybtft.js";
5
5
  import { H as ol, a3 as zi, R as vs, t as Qa } from "./validators-wtjw0aw6.js";
6
6
  import "./matrix-operation-contract-Eb6elidS.js";
@@ -8,24 +8,24 @@ import { y as Hi } from "./analytics-base-schemas-BaIQrEzX.js";
8
8
  import "zod";
9
9
  import { DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as ha } from "../value-format-preferences/index.js";
10
10
  import { c as J } from "./_commonjsHelpers-DimLPMtv.js";
11
- import { cx as Ui, eq as Da, dO as Ea, cw as il, dS as Pa, er as Fa, es as Gi, a7 as be, et as Qi, bu as qt, bv as jt, bw as Wt, bx as $t, by as zt, bs as Ia, cz as gt, cu as Bt, cs as qa, bt as it, eu as cl, ev as ja, bN as Ft, bT as Yt, dQ as dl, ew as xa, bM as rn, a6 as F, aQ as ct, ex as ul, ey as Ji, ez as Wi, eA as Xi, bY as ml, eB as Zi, d9 as hl, aU as Zt, em as pl, eC as ec, d$ as fl, eD as tc, ci as cr, ek as ac, ck as nc, cl as rc, cm as sc, cn as lc, co as oc, cp as ic, cq as cc, cr as dc, aR as dr, u as fe, aO as ea, eE as gl, c4 as Ja, eF as xl, aP as Mn, bo as ur, aY as bl, eG as mr, bC as sn, bJ as uc, dq as mc, eH as Qn, cE as ta, cF as aa, cG as na, cJ as hc, dt as hr, eI as pr, eJ as ln, eK as vl, e9 as yl, eL as pc, eM as fc, eN as Ot, eO as gc, eP as xc, eQ as bc, eR as vc, eS as Nl, L as Cl, M as yc, dI as Nc, eT as Cc, ee as wc, eU as fr, E as on, e as gr, eV as wl, eW as Sc, eX as ys, eY as kc, eZ as Sl, e_ as Tc, e$ as Mc, bn as kl, f0 as Dc, f1 as Ec, f2 as Fc, f3 as Ic, f4 as Wa, f5 as Ac, f6 as Pc, f7 as Tl, f8 as Ml, f9 as Rc, fa as Oc, dl as Lc, fb as Yc, fc as Dl, fd as _c, eb as Vc, dm as cn, fe as dn, c6 as xr, c7 as br, c8 as vr, ff as Bc, fg as Kc, d3 as El, d4 as qc, d5 as jc, d6 as $c, aN as zc, fh as Hc, fi as Uc, fj as Gc, fk as Qc, fl as Ns, fm as Jc, fn as Fl, fo as Il, aT as Al, aV as Wc, a_ as Xc, a$ as Zc, aW as ed, aX as td, fp as ad, fq as nd, fr as rd, fs as sd, ft as Cs, b1 as ld, b2 as od, fu as Pl, fv as ca, fw as da, fx as ua, dN as pa, cb as Rl, bV as Dt, cd as ws, ce as Ss, cf as Jn, fy as Ol, fz as id, fA as cd, fB as dd, fC as ud, fD as un, fE as Be, fF as Ke, fG as qe, eh as md, ei as hd, fH as Ll, fI as Yl, fJ as pd, fK as yr, fL as Nr, fM as fd, fN as _l, fO as gd, fP as xd, fQ as Wn, fR as bd, fS as vd, fT as yd, fU as Nd, fV as Cd, fW as wd, fX as Qt, fY as Na, fZ as Sd, f_ as ks, f$ as kd, g0 as Td, g1 as Dn, g2 as Ts, g3 as Md, g4 as Dd, bp as Cr, bq as Aa, g5 as En, g6 as Vl, g7 as Ed, g8 as Fd, g9 as Id, ga as Ad, gb as Bl, gc as Kl, gd as Pd, ge as Rd, gf as ql, gg as Od, gh as Ld, gi as jl, ec as Yd, ed as _d, dn as Vd, ef as Bd, bX as Kd, gj as qd, cO as jd, cK as $l, gk as zl, gl as $d, cT as zd, gm as Hl, gn as Hd, go as Ud, gp as Gd, gq as Qd, gr as Jd, gs as wr, dT as Ul, gt as Gl, gu as $a, gv as Ql, gw as Jl, gx as Ms, gy as Wd, gz as Xd, gA as Zd, eo as eu, gB as tu, b3 as au, gC as Ds, e1 as nu, gD as ru, e2 as su, e4 as lu, e5 as ou, i as iu, gE as cu, d2 as du, gF as uu, gG as mu, gH as hu, gI as pu, cZ as fu, c_ as gu, gJ as xu, gK as bu, d1 as vu, a4 as yu, en as Nu, F as Cu, gL as wu, be as Su } from "./semaphor-ready-indicator-T6TsiBMT.js";
12
- import { c as je, B as ne, m as Wl, h as mn, n as O, t as X, u as Z, v as ee, w as te, x as z, z as _t, X as st, r as ut, o as bt, p as mt, q as ht, P as It, a as Vt, d as At, s as Pe, a5 as ku, L as Ra, C as Xt, T as Ht, f as Ut, g as tt, i as wt, e as ra, I as fa, a7 as Tu, a8 as Mu, l as Xl, S as Xa, a9 as Xn, aa as Zl, y as ke, R as Es, k as eo, ab as Du } from "./code-editor-DJNOsgJH.js";
13
- import { U as Eu } from "./upload-Cf3wXZT8.js";
14
- import { hj as Fu, d1 as Iu, hk as Au, hl as Sr, hm as ga, hn as Pu, ho as Fs, hp as Ru, hq as Ou, hr as Is, Q as sa, cf as to, R as la, T as Oa, U as Lt, V as ma, br as Lu, ej as Yu, hf as _u, fw as La, i as Vu, b7 as Bu, gA as kr, eV as ao, n as Ku, hs as qu, ht as ju, hu as $u, hv as zu, g1 as Kt, gb as Hu, ga as Uu, hw as Gu, hx as no, f7 as Qu, cv as Ju, hy as ro, gB as Wu, cS as Xu, cQ as Fn, hz as Zu, hA as em, hB as tm, hC as am, X as nm, S as so, Y as rm, hD as Zn, hE as sm, hF as lm, hG as om, hH as Tr, eX as im, e5 as Mr, at as cm, a6 as er, ep as dm, fB as um, bF as lo, bI as mm, bc as hm, bH as tr, bJ as za, b as oo, hI as pm, bb as fm, bj as gm, hJ as xm, hK as bm, es as vm, hL as ym, er as io, hM as Nm, hN as Cm, hO as wm, fv as Ct, hP as Sm, hQ as km, hR as Tm, hS as Mm, hT as Dm, hU as Em, hV as As, hW as Ps, hX as Fm, a as co, hY as Im, hZ as Am, gq as Pm, h_ as Rs, h$ as Rm, i0 as Om, b5 as Lm, eA as Ym, eG as _m, a8 as Vm, fF as Bm, i1 as uo, gs as Km, bK as qm, i2 as jm, i3 as $m, i4 as mo, i5 as Dr, e as Za, gz as zm } from "./resolve-dashboard-input-context-C18J-YZC.js";
15
- import { d as Hm, A as Um, g as Er, i as Gm, b as Qm, F as Jm, V as ho, I as rt, e as Wm, u as Xm, C as Zm, c as eh } from "./card-filter-builder-CcEcfaYz.js";
11
+ import { cx as Ui, eq as Da, dO as Ea, cw as il, dS as Pa, er as Fa, es as Gi, a7 as be, et as Qi, bu as qt, bv as jt, bw as Wt, bx as $t, by as zt, bs as Ia, cz as gt, cu as Bt, cs as qa, bt as it, eu as cl, ev as ja, bN as Ft, bT as Yt, dQ as dl, ew as xa, bM as rn, a6 as F, aQ as ct, ex as ul, ey as Ji, ez as Wi, eA as Xi, bY as ml, eB as Zi, d9 as hl, aU as Zt, em as pl, d$ as fl, eC as ec, ci as cr, ek as tc, ck as ac, cl as nc, cm as rc, cn as sc, co as lc, cp as oc, cq as ic, cr as cc, aR as dr, u as fe, aO as ea, eD as gl, c4 as Ja, eE as xl, aP as Mn, bo as ur, aY as bl, eF as mr, bC as sn, bJ as dc, dq as uc, eG as Qn, cE as ta, cF as aa, cG as na, cJ as mc, dt as hr, eH as pr, eI as ln, eJ as vl, e9 as yl, eK as hc, eL as pc, eM as Ot, eN as fc, eO as gc, eP as xc, eQ as bc, eR as Nl, L as Cl, M as vc, dI as yc, eS as Nc, ee as Cc, eT as fr, E as on, e as gr, eU as wl, eV as wc, eW as ys, eX as Sc, eY as Sl, eZ as kc, e_ as Tc, bn as kl, e$ as Mc, f0 as Dc, f1 as Ec, f2 as Fc, f3 as Wa, f4 as Ic, f5 as Ac, f6 as Tl, f7 as Ml, f8 as Pc, f9 as Rc, dl as Oc, fa as Lc, fb as Dl, fc as Yc, eb as _c, dm as cn, fd as dn, c6 as xr, c7 as br, c8 as vr, fe as Vc, ff as Bc, d3 as El, d4 as Kc, d5 as qc, d6 as jc, aN as $c, fg as zc, fh as Hc, fi as Uc, fj as Gc, fk as Ns, fl as Qc, fm as Fl, fn as Il, aT as Al, aV as Jc, a_ as Wc, a$ as Xc, aW as Zc, aX as ed, fo as td, fp as ad, fq as nd, fr as rd, fs as Cs, b1 as sd, b2 as ld, ft as Pl, fu as ca, fv as da, fw as ua, dN as pa, cb as Rl, bV as Dt, cd as ws, ce as Ss, cf as Jn, fx as Ol, fy as od, fz as id, fA as cd, fB as dd, fC as un, fD as Be, fE as Ke, fF as qe, eh as ud, ei as md, fG as Ll, fH as Yl, fI as hd, fJ as yr, fK as Nr, fL as pd, fM as _l, fN as fd, fO as gd, fP as Wn, fQ as xd, fR as bd, fS as vd, fT as yd, fU as Nd, fV as Cd, fW as Qt, fX as Na, fY as wd, fZ as ks, f_ as Sd, f$ as kd, g0 as Dn, g1 as Ts, g2 as Td, g3 as Md, bp as Cr, bq as Aa, g4 as En, g5 as Vl, g6 as Dd, g7 as Ed, g8 as Fd, g9 as Id, ga as Bl, gb as Kl, gc as Ad, gd as Pd, ge as ql, gf as Rd, gg as Od, gh as jl, ec as Ld, ed as Yd, dn as _d, ef as Vd, bX as Bd, gi as Kd, cO as qd, cK as $l, gj as zl, gk as jd, cT as $d, gl as Hl, gm as zd, gn as Hd, go as Ud, gp as Gd, gq as Qd, gr as wr, dT as Ul, gs as Gl, gt as $a, gu as Ql, gv as Jl, gw as Ms, gx as Jd, gy as Wd, gz as Xd, eo as Zd, gA as eu, b3 as tu, gB as Ds, e1 as au, gC as nu, e2 as ru, e4 as su, e5 as lu, i as ou, gD as iu, d2 as cu, gE as du, gF as uu, gG as mu, gH as hu, cZ as pu, c_ as fu, gI as gu, gJ as xu, d1 as bu, a4 as vu, en as yu, F as Nu, gK as Cu, be as wu } from "./semaphor-ready-indicator-CQd-PCCZ.js";
12
+ import { c as je, B as ne, m as Wl, h as mn, n as O, t as X, u as Z, v as ee, w as te, x as z, z as _t, X as st, r as ut, o as bt, p as mt, q as ht, P as It, a as Vt, d as At, s as Pe, a5 as Su, L as Ra, C as Xt, T as Ht, f as Ut, g as tt, i as wt, e as ra, I as fa, a7 as ku, a8 as Tu, l as Xl, S as Xa, a9 as Xn, aa as Zl, y as ke, R as Es, k as eo, ab as Mu } from "./code-editor-DJNOsgJH.js";
13
+ import { U as Du } from "./upload-Cf3wXZT8.js";
14
+ import { hm as Eu, d4 as Fu, hn as Iu, ho as Sr, hp as ga, hq as Au, hr as Fs, hs as Pu, ht as Ru, hu as Is, Q as sa, ci as to, R as la, T as Oa, U as Lt, V as ma, b_ as Ou, br as Lu, em as Yu, hi as _u, fz as La, i as Vu, b7 as Bu, gD as kr, eY as ao, n as Ku, hv as qu, hw as ju, hx as $u, hy as zu, g4 as Kt, ge as Hu, gd as Uu, hz as Gu, hA as no, fa as Qu, cy as Ju, hB as ro, gE as Wu, cV as Xu, cT as Fn, hC as Zu, hD as em, hE as tm, hF as am, X as nm, S as so, Y as rm, hG as Zn, hH as sm, hI as lm, hJ as om, hK as Tr, e_ as im, e8 as Mr, at as cm, a6 as er, es as dm, fE as um, bF as lo, bI as mm, bc as hm, bH as tr, bJ as za, b as oo, hL as pm, bb as fm, bj as gm, hM as xm, hN as bm, ev as vm, hO as ym, eu as io, hP as Nm, hQ as Cm, hR as wm, fy as Ct, hS as Sm, hT as km, hU as Tm, hV as Mm, hW as Dm, hX as Em, hY as As, hZ as Ps, h_ as Fm, a as co, h$ as Im, i0 as Am, gt as Pm, i1 as Rs, i2 as Rm, i3 as Om, b5 as Lm, eD as Ym, eJ as _m, a8 as Vm, fI as Bm, i4 as uo, gv as Km, bK as qm, i5 as jm, i6 as $m, i7 as mo, i8 as Dr, e as Za, gC as zm } from "./resolve-dashboard-input-context-DPKSF3qj.js";
15
+ import { d as Hm, A as Um, g as Er, i as Gm, b as Qm, F as Jm, V as ho, I as rt, e as Wm, u as Xm, C as Zm, c as eh } from "./card-filter-builder-DbSmzvem.js";
16
16
  import { aE as th, aD as hn, az as Fr, j as ah, P as nh, av as po } from "./temporal-input-presentation--2r9BLr0.js";
17
- import { N as Ir, p as rh, T as sh, U as fo, V as go, W as Ar, X as Pr, S as Ha, Y as lh } from "./filter-reach-copy-DbggA5B7.js";
18
- import { aJ as oh } from "./bookmark-state-ByODVqee.js";
19
- import { i as xo } from "./index-RNaTnE3m.js";
17
+ import { aK as rh } from "./bookmark-state-Du3s13_V.js";
18
+ import { i as fo } from "./index-RNaTnE3m.js";
20
19
  import "./context-R31TSL5V.js";
21
- import { E as ih, a1 as ch, e as dh, a2 as uh, W as bo, a3 as mh, X as vo, a4 as hh, R as ph, s as fh, a5 as gh, a6 as xh, a7 as bh, a8 as vh, a9 as yh, B as Nh } from "./stored-dashboard-IdmtrNkA.js";
20
+ import { N as Ir, Q as sh, S as go, T as xo, U as Ar, V as Pr, P as Ha, W as lh } from "./filter-reach-copy-P-kDwUpY.js";
21
+ import { E as oh, a1 as ih, e as ch, a2 as dh, W as bo, a3 as uh, X as vo, a4 as mh, R as hh, s as ph, a5 as fh, a6 as gh, a7 as xh, a8 as bh, a9 as vh, B as yh } from "./stored-dashboard-CrQFT27O.js";
22
22
  import "react-dom";
23
23
  import { L as Os } from "./list-filter-DkgoCeBm.js";
24
- import { r as Ch } from "./export-file-format-C-tJsxsf.js";
25
- import { u as wh } from "./appearance-context-DEYtWinQ.js";
26
- import { D as Sh } from "./metric-comparison-ChXUFaZu.js";
27
- import { P as kh } from "./palette-4vf2BEEg.js";
28
- import { r as Th } from "./dates-DcRxw17S.js";
24
+ import { r as Nh } from "./export-file-format-C-tJsxsf.js";
25
+ import { u as Ch } from "./appearance-context-DEYtWinQ.js";
26
+ import { D as wh } from "./metric-comparison-ChXUFaZu.js";
27
+ import { P as Sh } from "./palette-4vf2BEEg.js";
28
+ import { r as kh } from "./dates-BsJcyoC_.js";
29
29
  /**
30
30
  * @license lucide-react v0.453.0 - ISC
31
31
  *
@@ -60,7 +60,7 @@ const No = je("Blocks", [
60
60
  * This source code is licensed under the ISC license.
61
61
  * See the LICENSE file in the root directory of this source tree.
62
62
  */
63
- const Mh = je("CircleHelp", [
63
+ const Th = je("CircleHelp", [
64
64
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
65
65
  ["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
66
66
  ["path", { d: "M12 17h.01", key: "p32p05" }]
@@ -71,7 +71,7 @@ const Mh = je("CircleHelp", [
71
71
  * This source code is licensed under the ISC license.
72
72
  * See the LICENSE file in the root directory of this source tree.
73
73
  */
74
- const Dh = je("Component", [
74
+ const Mh = je("Component", [
75
75
  [
76
76
  "path",
77
77
  {
@@ -107,7 +107,7 @@ const Dh = je("Component", [
107
107
  * This source code is licensed under the ISC license.
108
108
  * See the LICENSE file in the root directory of this source tree.
109
109
  */
110
- const Eh = je("DatabaseZap", [
110
+ const Dh = je("DatabaseZap", [
111
111
  ["ellipse", { cx: "12", cy: "5", rx: "9", ry: "3", key: "msslwz" }],
112
112
  ["path", { d: "M3 5V19A9 3 0 0 0 15 21.84", key: "14ibmq" }],
113
113
  ["path", { d: "M21 5V8", key: "1marbg" }],
@@ -120,7 +120,7 @@ const Eh = je("DatabaseZap", [
120
120
  * This source code is licensed under the ISC license.
121
121
  * See the LICENSE file in the root directory of this source tree.
122
122
  */
123
- const Fh = je("FileJson2", [
123
+ const Eh = je("FileJson2", [
124
124
  ["path", { d: "M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4", key: "1pf5j1" }],
125
125
  ["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
126
126
  [
@@ -138,7 +138,7 @@ const Fh = je("FileJson2", [
138
138
  * This source code is licensed under the ISC license.
139
139
  * See the LICENSE file in the root directory of this source tree.
140
140
  */
141
- const Ih = je("Fullscreen", [
141
+ const Fh = je("Fullscreen", [
142
142
  ["path", { d: "M3 7V5a2 2 0 0 1 2-2h2", key: "aa7l1z" }],
143
143
  ["path", { d: "M17 3h2a2 2 0 0 1 2 2v2", key: "4qcy5o" }],
144
144
  ["path", { d: "M21 17v2a2 2 0 0 1-2 2h-2", key: "6vwrx8" }],
@@ -151,7 +151,7 @@ const Ih = je("Fullscreen", [
151
151
  * This source code is licensed under the ISC license.
152
152
  * See the LICENSE file in the root directory of this source tree.
153
153
  */
154
- const Ah = je("GitCompareArrows", [
154
+ const Ih = je("GitCompareArrows", [
155
155
  ["circle", { cx: "5", cy: "6", r: "3", key: "1qnov2" }],
156
156
  ["path", { d: "M12 6h5a2 2 0 0 1 2 2v7", key: "1yj91y" }],
157
157
  ["path", { d: "m15 9-3-3 3-3", key: "1lwv8l" }],
@@ -165,7 +165,7 @@ const Ah = je("GitCompareArrows", [
165
165
  * This source code is licensed under the ISC license.
166
166
  * See the LICENSE file in the root directory of this source tree.
167
167
  */
168
- const Ph = je("LayoutList", [
168
+ const Ah = je("LayoutList", [
169
169
  ["rect", { width: "7", height: "7", x: "3", y: "3", rx: "1", key: "1g98yp" }],
170
170
  ["rect", { width: "7", height: "7", x: "3", y: "14", rx: "1", key: "1bb6yr" }],
171
171
  ["path", { d: "M14 4h7", key: "3xa0d5" }],
@@ -179,7 +179,7 @@ const Ph = je("LayoutList", [
179
179
  * This source code is licensed under the ISC license.
180
180
  * See the LICENSE file in the root directory of this source tree.
181
181
  */
182
- const Rh = je("ListEnd", [
182
+ const Ph = je("ListEnd", [
183
183
  ["path", { d: "M16 12H3", key: "1a2rj7" }],
184
184
  ["path", { d: "M16 6H3", key: "1wxfjs" }],
185
185
  ["path", { d: "M10 18H3", key: "13769t" }],
@@ -192,7 +192,7 @@ const Rh = je("ListEnd", [
192
192
  * This source code is licensed under the ISC license.
193
193
  * See the LICENSE file in the root directory of this source tree.
194
194
  */
195
- const Oh = je("ListStart", [
195
+ const Rh = je("ListStart", [
196
196
  ["path", { d: "M16 12H3", key: "1a2rj7" }],
197
197
  ["path", { d: "M16 18H3", key: "12xzn7" }],
198
198
  ["path", { d: "M10 6H3", key: "lf8lx7" }],
@@ -205,7 +205,7 @@ const Oh = je("ListStart", [
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 Lh = je("ListX", [
208
+ const Oh = je("ListX", [
209
209
  ["path", { d: "M11 12H3", key: "51ecnj" }],
210
210
  ["path", { d: "M16 6H3", key: "1wxfjs" }],
211
211
  ["path", { d: "M16 18H3", key: "12xzn7" }],
@@ -240,7 +240,7 @@ const An = je("MoveVertical", [
240
240
  * This source code is licensed under the ISC license.
241
241
  * See the LICENSE file in the root directory of this source tree.
242
242
  */
243
- const Yh = je("Paintbrush", [
243
+ const Lh = je("Paintbrush", [
244
244
  ["path", { d: "m14.622 17.897-10.68-2.913", key: "vj2p1u" }],
245
245
  [
246
246
  "path",
@@ -269,6 +269,22 @@ const ar = je("RefreshCcw", [
269
269
  ["path", { d: "M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16", key: "1hlbsb" }],
270
270
  ["path", { d: "M16 16h5v5", key: "ccwih5" }]
271
271
  ]);
272
+ /**
273
+ * @license lucide-react v0.453.0 - ISC
274
+ *
275
+ * This source code is licensed under the ISC license.
276
+ * See the LICENSE file in the root directory of this source tree.
277
+ */
278
+ const Yh = je("SendHorizontal", [
279
+ [
280
+ "path",
281
+ {
282
+ d: "M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",
283
+ key: "117uat"
284
+ }
285
+ ],
286
+ ["path", { d: "M6 12h16", key: "s4cdu5" }]
287
+ ]);
272
288
  /**
273
289
  * @license lucide-react v0.453.0 - ISC
274
290
  *
@@ -341,7 +357,7 @@ function jh(t, a = {}) {
341
357
  case "view":
342
358
  return /* @__PURE__ */ e(Fa, { className: s });
343
359
  case "materialized view":
344
- return /* @__PURE__ */ e(Eh, { className: s });
360
+ return /* @__PURE__ */ e(Dh, { className: s });
345
361
  case "model":
346
362
  return /* @__PURE__ */ e(Pa, { className: s });
347
363
  case "file":
@@ -349,7 +365,7 @@ function jh(t, a = {}) {
349
365
  case "dataset":
350
366
  return /* @__PURE__ */ e(Ea, { className: s });
351
367
  case "upload":
352
- return /* @__PURE__ */ e(Eu, { className: s });
368
+ return /* @__PURE__ */ e(Du, { className: s });
353
369
  case "url":
354
370
  return /* @__PURE__ */ e(Da, { className: s });
355
371
  default:
@@ -485,7 +501,7 @@ function zh({
485
501
  availableDataSources: a
486
502
  }) {
487
503
  const [r, s] = U(
488
- () => Fu(t, a)
504
+ () => Eu(t, a)
489
505
  ), [l, c] = U(/* @__PURE__ */ new Set()), d = () => {
490
506
  const I = r.joins.length > 0 ? Math.max(...r.joins.map((_) => _.sequence)) + 1 : 1, P = {
491
507
  autoResolved: !1,
@@ -809,7 +825,7 @@ function Jh({
809
825
  onCancel: l
810
826
  }) {
811
827
  const { columnGroups: c, columns: d } = cl(), o = c.filter(
812
- (M) => M.entityName !== Iu
828
+ (M) => M.entityName !== Fu
813
829
  ), {
814
830
  joinPlan: i,
815
831
  expandedJoins: f,
@@ -1259,7 +1275,7 @@ function Jh({
1259
1275
  {
1260
1276
  size: "xs",
1261
1277
  className: "gap-1.5",
1262
- onClick: () => r(Au(i, d)),
1278
+ onClick: () => r(Iu(i, d)),
1263
1279
  disabled: !C(),
1264
1280
  children: [
1265
1281
  "Save joins",
@@ -1775,7 +1791,7 @@ function ap() {
1775
1791
  ...d,
1776
1792
  selectedEntities: (d == null ? void 0 : d.selectedEntities) || []
1777
1793
  }, x = Ji(S.selectedEntities), v = x.length, T = Wi(o), N = se(() => Xi(o), [o]), g = se(
1778
- () => Pu({
1794
+ () => Au({
1779
1795
  ...T,
1780
1796
  selectedFields: N,
1781
1797
  dataSourceEntities: x
@@ -1853,7 +1869,7 @@ function ap() {
1853
1869
  /* @__PURE__ */ e("span", { className: "font-mono text-[10px] tabular-nums text-muted-foreground/70", children: v })
1854
1870
  ] }),
1855
1871
  v === 0 ? /* @__PURE__ */ e("div", { className: "px-3 pb-2 text-[12px] text-muted-foreground", children: "No datasets selected." }) : /* @__PURE__ */ e("ul", { className: "mb-1", children: x.map((A, B) => {
1856
- const j = g[B], le = (j ? Ru(j.state) : !1) ? Ou(j == null ? void 0 : j.state).tag : null;
1872
+ const j = g[B], le = (j ? Pu(j.state) : !1) ? Ru(j == null ? void 0 : j.state).tag : null;
1857
1873
  return /* @__PURE__ */ n(
1858
1874
  "li",
1859
1875
  {
@@ -2366,7 +2382,7 @@ function mp({
2366
2382
  }
2367
2383
  ),
2368
2384
  /* @__PURE__ */ n(It, { open: v, onOpenChange: Le, children: [
2369
- /* @__PURE__ */ e(ku, { asChild: !0, children: /* @__PURE__ */ e("div", { className: "pointer-events-none absolute inset-0" }) }),
2385
+ /* @__PURE__ */ e(Su, { asChild: !0, children: /* @__PURE__ */ e("div", { className: "pointer-events-none absolute inset-0" }) }),
2370
2386
  /* @__PURE__ */ n("div", { className: "absolute right-1 flex items-center gap-1", children: [
2371
2387
  (q || d) && /* @__PURE__ */ e(
2372
2388
  ne,
@@ -2400,7 +2416,7 @@ function mp({
2400
2416
  },
2401
2417
  "aria-label": $ ? "Stop AI generation" : Ne,
2402
2418
  title: $ ? "Stop AI generation" : Ne,
2403
- children: $ ? /* @__PURE__ */ e(pl, { className: "size-3 fill-current" }) : /* @__PURE__ */ e(ec, { className: "size-3.5" })
2419
+ children: $ ? /* @__PURE__ */ e(pl, { className: "size-3 fill-current" }) : /* @__PURE__ */ e(Yh, { className: "size-3.5" })
2404
2420
  }
2405
2421
  )
2406
2422
  ] }),
@@ -2651,7 +2667,7 @@ function hp({
2651
2667
  onClick: () => c(!1),
2652
2668
  "aria-label": "Collapse query editor",
2653
2669
  title: "Collapse editor",
2654
- children: /* @__PURE__ */ e(tc, { className: "h-3.5 w-3.5" })
2670
+ children: /* @__PURE__ */ e(ec, { className: "h-3.5 w-3.5" })
2655
2671
  }
2656
2672
  )
2657
2673
  ] })
@@ -2882,7 +2898,7 @@ function xp({
2882
2898
  onClick: a,
2883
2899
  "aria-label": s,
2884
2900
  title: s,
2885
- children: /* @__PURE__ */ e(ac, { className: "h-3.5 w-3.5", strokeWidth: 1.75 })
2901
+ children: /* @__PURE__ */ e(tc, { className: "h-3.5 w-3.5", strokeWidth: 1.75 })
2886
2902
  }
2887
2903
  )
2888
2904
  ] })
@@ -2988,17 +3004,17 @@ function yp({
2988
3004
  onOpenChange: a,
2989
3005
  onConfirm: r
2990
3006
  }) {
2991
- return /* @__PURE__ */ e(nc, { open: t, onOpenChange: a, children: /* @__PURE__ */ n(rc, { children: [
2992
- /* @__PURE__ */ n(sc, { children: [
2993
- /* @__PURE__ */ e(lc, { children: "Clear the editor?" }),
2994
- /* @__PURE__ */ e(oc, { children: "This clears the SQL, the Python step and the chart settings in this editor. Nothing changes on the dashboard until you click Done." })
3007
+ return /* @__PURE__ */ e(ac, { open: t, onOpenChange: a, children: /* @__PURE__ */ n(nc, { children: [
3008
+ /* @__PURE__ */ n(rc, { children: [
3009
+ /* @__PURE__ */ e(sc, { children: "Clear the editor?" }),
3010
+ /* @__PURE__ */ e(lc, { children: "This clears the SQL, the Python step and the chart settings in this editor. Nothing changes on the dashboard until you click Done." })
2995
3011
  ] }),
2996
- /* @__PURE__ */ n(ic, { children: [
2997
- /* @__PURE__ */ e(cc, { children: "Cancel" }),
3012
+ /* @__PURE__ */ n(oc, { children: [
3013
+ /* @__PURE__ */ e(ic, { children: "Cancel" }),
2998
3014
  /* @__PURE__ */ e(
2999
- dc,
3015
+ cc,
3000
3016
  {
3001
- className: J(Tu({ variant: "destructive", size: "xs" })),
3017
+ className: J(ku({ variant: "destructive", size: "xs" })),
3002
3018
  onClick: r,
3003
3019
  children: "Clear"
3004
3020
  }
@@ -3111,7 +3127,7 @@ function wp() {
3111
3127
  S,
3112
3128
  b,
3113
3129
  V == null ? void 0 : V.slots
3114
- ) ?? S.type, [C, $, b, S, V == null ? void 0 : V.slots]), k = se(() => Y !== S.type ? { ...S, type: Y } : S, [S, Y]), D = se(() => _ === 0 ? null : rh(S == null ? void 0 : S.sql), [S == null ? void 0 : S.sql, _]), M = Ve(!0), {
3130
+ ) ?? S.type, [C, $, b, S, V == null ? void 0 : V.slots]), k = se(() => Y !== S.type ? { ...S, type: Y } : S, [S, Y]), D = se(() => _ === 0 ? null : Ou(S == null ? void 0 : S.sql), [S == null ? void 0 : S.sql, _]), M = Ve(!0), {
3115
3131
  setCardCustomCfg: A,
3116
3132
  setQueryResultColumns: B,
3117
3133
  setCardSql: j,
@@ -3434,7 +3450,7 @@ function Sp(t) {
3434
3450
  cardFilterValues: u.documentFilterValues || []
3435
3451
  } : {
3436
3452
  cardFilters: [],
3437
- cardFilterValues: ih(
3453
+ cardFilterValues: oh(
3438
3454
  r,
3439
3455
  s
3440
3456
  )
@@ -4007,7 +4023,7 @@ function Lo(t) {
4007
4023
  };
4008
4024
  }
4009
4025
  function Pp() {
4010
- const { authToken: t, tokenProps: a } = Zt(), { currentUser: r } = sn(), s = uc({
4026
+ const { authToken: t, tokenProps: a } = Zt(), { currentUser: r } = sn(), s = dc({
4011
4027
  mutationFn: async (l) => {
4012
4028
  if (!(t != null && t.accessToken))
4013
4029
  throw new Error("No authentication token available");
@@ -4067,7 +4083,7 @@ function Op({
4067
4083
  className: s,
4068
4084
  ariaLabel: l
4069
4085
  }) {
4070
- const c = se(() => Mu(t, a), [t, a]);
4086
+ const c = se(() => Tu(t, a), [t, a]);
4071
4087
  return (
4072
4088
  // `.code-editor` scopes the token colors — see code-editor.css.
4073
4089
  /* @__PURE__ */ e("div", { className: J("code-editor", s), children: /* @__PURE__ */ e(
@@ -4161,7 +4177,7 @@ function Yr({
4161
4177
  }
4162
4178
  ),
4163
4179
  /* @__PURE__ */ e(
4164
- mc,
4180
+ uc,
4165
4181
  {
4166
4182
  id: "feedback-message",
4167
4183
  name: "feedback-message",
@@ -4281,7 +4297,7 @@ function Yr({
4281
4297
  className: "flex items-start gap-3 px-3 py-4",
4282
4298
  children: [
4283
4299
  /* @__PURE__ */ e(
4284
- hc,
4300
+ mc,
4285
4301
  {
4286
4302
  "aria-hidden": "true",
4287
4303
  className: "mt-0.5 h-5 w-5 shrink-0 text-emerald-500"
@@ -4496,7 +4512,7 @@ function _o({
4496
4512
  }
4497
4513
  function yt() {
4498
4514
  var ie;
4499
- if (b.type === "matrixTable") return /* @__PURE__ */ e(yc, { card: b, frame: i, mode: "editor" });
4515
+ if (b.type === "matrixTable") return /* @__PURE__ */ e(vc, { card: b, frame: i, mode: "editor" });
4500
4516
  if (y != null && y.records && (y == null ? void 0 : y.records.length) === 0 && !C && !R)
4501
4517
  return V ? /* @__PURE__ */ e("div", { className: "flex h-full flex-col items-start justify-start overflow-auto", children: /* @__PURE__ */ e(
4502
4518
  Lr,
@@ -4508,11 +4524,11 @@ function _o({
4508
4524
  showFeedbackButton: !0
4509
4525
  }
4510
4526
  ) }) : /* @__PURE__ */ n("div", { className: "flex h-full flex-col items-center justify-center gap-2", children: [
4511
- /* @__PURE__ */ e(Nc, { className: "h-8 w-8 text-muted-foreground/40" }),
4527
+ /* @__PURE__ */ e(yc, { className: "h-8 w-8 text-muted-foreground/40" }),
4512
4528
  /* @__PURE__ */ e("p", { className: "text-[12px] text-muted-foreground", children: "No results to display" })
4513
4529
  ] });
4514
4530
  if ((C || R) && (!(y != null && y.records) || y.records.length === 0))
4515
- return E === "table" || E === "detailTable" ? /* @__PURE__ */ e("div", { className: "relative mb-2 flex h-full min-h-0 w-full flex-1 grow basis-0", children: /* @__PURE__ */ e(Cc, {}) }) : /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(Ot, { size: "md", color: "muted", "aria-label": "Loading data" }) });
4531
+ return E === "table" || E === "detailTable" ? /* @__PURE__ */ e("div", { className: "relative mb-2 flex h-full min-h-0 w-full flex-1 grow basis-0", children: /* @__PURE__ */ e(Nc, {}) }) : /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(Ot, { size: "md", color: "muted", "aria-label": "Loading data" }) });
4516
4532
  if (!b.id) return null;
4517
4533
  if (E === "custom")
4518
4534
  return Xe(s);
@@ -4520,7 +4536,7 @@ function _o({
4520
4536
  E
4521
4537
  ) && vt)
4522
4538
  return /* @__PURE__ */ e("div", { className: "relative h-full min-h-0 w-full flex-1 grow basis-0", children: C || R ? /* @__PURE__ */ e(ue, {}) : /* @__PURE__ */ e(
4523
- wc,
4539
+ Cc,
4524
4540
  {
4525
4541
  cfg: vt
4526
4542
  }
@@ -4543,7 +4559,7 @@ function _o({
4543
4559
  ) });
4544
4560
  }
4545
4561
  return /* @__PURE__ */ n(
4546
- pc,
4562
+ hc,
4547
4563
  {
4548
4564
  role: "editor-visual-card",
4549
4565
  className: J(
@@ -4556,9 +4572,9 @@ function _o({
4556
4572
  },
4557
4573
  ...r,
4558
4574
  children: [
4559
- (C || R) && !fc({ type: E }) && (y == null ? void 0 : y.records) && y.records.length > 0 && /* @__PURE__ */ e("div", { className: "absolute inset-0 z-50 flex items-center justify-center bg-background/50", children: /* @__PURE__ */ e(Ot, { size: "md", color: "muted", "aria-label": "Loading data" }) }),
4575
+ (C || R) && !pc({ type: E }) && (y == null ? void 0 : y.records) && y.records.length > 0 && /* @__PURE__ */ e("div", { className: "absolute inset-0 z-50 flex items-center justify-center bg-background/50", children: /* @__PURE__ */ e(Ot, { size: "md", color: "muted", "aria-label": "Loading data" }) }),
4560
4576
  d && /* @__PURE__ */ e(
4561
- gc,
4577
+ fc,
4562
4578
  {
4563
4579
  className: J(
4564
4580
  "flex flex-row items-start justify-between gap-4 px-4 pb-3 pt-3"
@@ -4566,7 +4582,7 @@ function _o({
4566
4582
  style: l.cardGutterStyle,
4567
4583
  children: /* @__PURE__ */ n("div", { className: "min-w-0 flex-1 space-y-1", children: [
4568
4584
  /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
4569
- /* @__PURE__ */ e(xc, { className: "min-w-0 text-[17px] font-semibold leading-tight tracking-[-0.005em]", children: /* @__PURE__ */ e(
4585
+ /* @__PURE__ */ e(gc, { className: "min-w-0 text-[17px] font-semibold leading-tight tracking-[-0.005em]", children: /* @__PURE__ */ e(
4570
4586
  Ja,
4571
4587
  {
4572
4588
  value: s.title,
@@ -4601,7 +4617,7 @@ function _o({
4601
4617
  className: "px-4 pb-2",
4602
4618
  style: l.cardGutterStyle,
4603
4619
  children: /* @__PURE__ */ e(
4604
- bc,
4620
+ xc,
4605
4621
  {
4606
4622
  card: s,
4607
4623
  sheetId: u || "",
@@ -4613,7 +4629,7 @@ function _o({
4613
4629
  }
4614
4630
  ),
4615
4631
  /* @__PURE__ */ n(
4616
- vc,
4632
+ bc,
4617
4633
  {
4618
4634
  className: J(
4619
4635
  "flex min-h-0 grow flex-col",
@@ -4791,7 +4807,7 @@ function qp({
4791
4807
  });
4792
4808
  if (y) {
4793
4809
  d(Ks(y)), u(((V = h.preferences) == null ? void 0 : V.customVisualCode) || "");
4794
- const $ = kc(y, S);
4810
+ const $ = Sc(y, S);
4795
4811
  i(Ks($));
4796
4812
  }
4797
4813
  }, P = () => {
@@ -4799,7 +4815,7 @@ function qp({
4799
4815
  if (f && E(f), o) {
4800
4816
  const y = JSON.parse(
4801
4817
  o
4802
- ), C = ch(
4818
+ ), C = ih(
4803
4819
  JSON.parse(c),
4804
4820
  y
4805
4821
  );
@@ -4810,7 +4826,7 @@ function qp({
4810
4826
  }
4811
4827
  }, _ = Object.keys(S || {}).length === 0;
4812
4828
  return /* @__PURE__ */ n(qt, { open: s, onOpenChange: l, children: [
4813
- /* @__PURE__ */ e(Sc, { asChild: !0, children: t === "menu" ? /* @__PURE__ */ n(
4829
+ /* @__PURE__ */ e(wc, { asChild: !0, children: t === "menu" ? /* @__PURE__ */ n(
4814
4830
  ne,
4815
4831
  {
4816
4832
  variant: "ghost",
@@ -4885,7 +4901,7 @@ function Vo({
4885
4901
  }) {
4886
4902
  if (!r && t)
4887
4903
  return Sl(t, s);
4888
- const l = Tc(a);
4904
+ const l = kc(a);
4889
4905
  if (l)
4890
4906
  return rl.cloneElement(l, { className: s });
4891
4907
  const c = $p(a), d = jp(a);
@@ -4996,7 +5012,7 @@ function Hp({
4996
5012
  onClose: r
4997
5013
  }) {
4998
5014
  var Y;
4999
- const [s, l] = U(""), [c, d] = U(0), o = Ve(null), { data: i = [], isLoading: f } = Mc(), u = Or(), { setCardPreferences: m } = F((k) => k.actions), p = F((k) => k.card), h = F((k) => k.isDevMode), w = t ?? p.type, S = w === "custom" ? (Y = p.customCardPreferences) == null ? void 0 : Y.componentName : void 0, {
5015
+ const [s, l] = U(""), [c, d] = U(0), o = Ve(null), { data: i = [], isLoading: f } = Tc(), u = Or(), { setCardPreferences: m } = F((k) => k.actions), p = F((k) => k.card), h = F((k) => k.isDevMode), w = t ?? p.type, S = w === "custom" ? (Y = p.customCardPreferences) == null ? void 0 : Y.componentName : void 0, {
5000
5016
  setCardCustomCfg: x,
5001
5017
  setQueryConfig: v,
5002
5018
  replaceFrameCards: T,
@@ -5159,22 +5175,22 @@ const Yn = {
5159
5175
  matrixTable: Wa,
5160
5176
  bar: dn,
5161
5177
  line: cn,
5162
- stackedBar: Vc,
5163
- stackedLine: _c,
5178
+ stackedBar: _c,
5179
+ stackedLine: Yc,
5164
5180
  scatter: Dl,
5165
- bubble: Yc,
5166
- pie: Lc,
5167
- doughnut: Oc,
5168
- kpi: Rc,
5181
+ bubble: Lc,
5182
+ pie: Oc,
5183
+ doughnut: Rc,
5184
+ kpi: Pc,
5169
5185
  treemap: Ml,
5170
5186
  bullet: Tl,
5171
- funnel: Pc,
5172
- tornado: Ac,
5187
+ funnel: Ac,
5188
+ tornado: Ic,
5173
5189
  heatmap: Wa,
5174
- range: Ic,
5175
- radar: Fc,
5176
- polarArea: Ec,
5177
- text: Dc
5190
+ range: Fc,
5191
+ radar: Ec,
5192
+ polarArea: Dc,
5193
+ text: Mc
5178
5194
  }, _n = {
5179
5195
  table: "Table",
5180
5196
  matrixTable: "Matrix Table",
@@ -5468,7 +5484,7 @@ function Vr({
5468
5484
  /* @__PURE__ */ n(vr, { align: "end", className: "w-64", children: [
5469
5485
  /* @__PURE__ */ e("p", { className: "px-2 pb-1.5 pt-1 text-[11px] text-muted-foreground", children: "Changes apply to dashboard view only" }),
5470
5486
  S.map((C) => /* @__PURE__ */ n(
5471
- Bc,
5487
+ Vc,
5472
5488
  {
5473
5489
  checked: C.checked,
5474
5490
  onCheckedChange: (R) => w(C.option, R),
@@ -5497,7 +5513,7 @@ function Br({
5497
5513
  (E) => E.actions.removeCardInlineFilterValue
5498
5514
  ), p = F(
5499
5515
  (E) => E.actions.setCardInlineFilterValue
5500
- ), h = Kc(), w = (c == null ? void 0 : c.inlineFilters) || [], S = ur() ?? void 0;
5516
+ ), h = Bc(), w = (c == null ? void 0 : c.inlineFilters) || [], S = ur() ?? void 0;
5501
5517
  function x(E) {
5502
5518
  if (w.find(
5503
5519
  (_) => zu(_, E)
@@ -5603,13 +5619,13 @@ function Br({
5603
5619
  /* @__PURE__ */ e("h4", { className: "text-sm font-medium", children: "Inline Filters" }),
5604
5620
  /* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground", children: "On-card filters for fast, focused exploration." })
5605
5621
  ] }),
5606
- /* @__PURE__ */ e("div", { className: "flex h-[320px] min-h-0 flex-col overflow-hidden", children: /* @__PURE__ */ e(El, { collisionDetection: qc, children: /* @__PURE__ */ e(
5607
- jc,
5622
+ /* @__PURE__ */ e("div", { className: "flex h-[320px] min-h-0 flex-col overflow-hidden", children: /* @__PURE__ */ e(El, { collisionDetection: Kc, children: /* @__PURE__ */ e(
5623
+ qc,
5608
5624
  {
5609
5625
  items: [],
5610
- strategy: $c,
5626
+ strategy: jc,
5611
5627
  children: /* @__PURE__ */ e(
5612
- zc,
5628
+ $c,
5613
5629
  {
5614
5630
  context: "inline-filter",
5615
5631
  onFieldSelect: x,
@@ -5646,7 +5662,7 @@ function Wp({
5646
5662
  /* @__PURE__ */ e("span", { className: "truncate", title: t.column, children: t.title }),
5647
5663
  /* @__PURE__ */ n("div", { className: "flex items-center gap-0.5", children: [
5648
5664
  /* @__PURE__ */ e(
5649
- Hc,
5665
+ zc,
5650
5666
  {
5651
5667
  filter: t,
5652
5668
  variant: "inline",
@@ -5749,7 +5765,7 @@ function af({
5749
5765
  ...t.controls || []
5750
5766
  ], [h, w] = U(
5751
5767
  {}
5752
- ), S = dh({
5768
+ ), S = ch({
5753
5769
  sql: t.sql,
5754
5770
  controlBindings: t.controlBindings
5755
5771
  });
@@ -6077,10 +6093,10 @@ function nf(t, a, r) {
6077
6093
  t,
6078
6094
  a,
6079
6095
  r
6080
- ), l = hh(t), c = new Map(
6096
+ ), l = mh(t), c = new Map(
6081
6097
  l.map((o) => [o.id, o])
6082
6098
  ), d = new Map(
6083
- ph(t, r).map((o) => [
6099
+ hh(t, r).map((o) => [
6084
6100
  o.measureId,
6085
6101
  o.label
6086
6102
  ])
@@ -6105,17 +6121,17 @@ function sf({
6105
6121
  bindings: l,
6106
6122
  onChange: c
6107
6123
  }) {
6108
- const d = [...r, ...a.controls || []], o = d.filter(uh), i = se(
6124
+ const d = [...r, ...a.controls || []], o = d.filter(dh), i = se(
6109
6125
  () => nf(a, s, t),
6110
6126
  [a, s, t]
6111
6127
  ), f = se(
6112
6128
  () => bo(a, s, t),
6113
6129
  [a, s, t]
6114
- ), u = mh({
6130
+ ), u = uh({
6115
6131
  bindings: l,
6116
6132
  controls: d,
6117
6133
  ...f
6118
- }), { preferences: m, resolveBoundCurrency: p } = Uc(a, s, t), [h, w] = U(""), [S, x] = U(""), v = i.find((g) => g.key === S), T = !!(h && v) && !l.some(
6134
+ }), { preferences: m, resolveBoundCurrency: p } = Hc(a, s, t), [h, w] = U(""), [S, x] = U(""), v = i.find((g) => g.key === S), T = !!(h && v) && !l.some(
6119
6135
  (g) => g.presentationTarget && v && vo(g.presentationTarget) === v.key
6120
6136
  ), N = (g) => {
6121
6137
  if (!m)
@@ -6219,16 +6235,16 @@ function Kr({
6219
6235
  !c && S !== null && x(null);
6220
6236
  }, [c, S]);
6221
6237
  const v = se(() => S ? (i == null ? void 0 : i.cards.find((j) => j.id === S)) || ((o == null ? void 0 : o.id) === S ? o : void 0) : o, [o, i == null ? void 0 : i.cards, S]), T = (v == null ? void 0 : v.type) === "matrixTable" ? (M = v.config) == null ? void 0 : M.matrix : void 0, N = se(
6222
- () => c && T ? fh(T.spec, v == null ? void 0 : v.controlBindings) : [],
6238
+ () => c && T ? ph(T.spec, v == null ? void 0 : v.controlBindings) : [],
6223
6239
  [c, T, v == null ? void 0 : v.controlBindings]
6224
- ), g = Gc(N), E = se(() => g.catalog.map((j) => ({
6240
+ ), g = Uc(N), E = se(() => g.catalog.map((j) => ({
6225
6241
  ...j.field,
6226
6242
  dataType: ol(j.resolvedField.dataType)
6227
6243
  })), [g.catalog]), I = (v == null ? void 0 : v.controls) || [], P = v ? Wu(u, { excludeCardId: v.id }) : p.map((j) => j.id), _ = ((v == null ? void 0 : v.controlBindings) || []).filter(
6228
6244
  Xu
6229
6245
  ), y = ((v == null ? void 0 : v.controlBindings) || []).filter(
6230
6246
  Fn
6231
- ), C = Qc({
6247
+ ), C = Gc({
6232
6248
  card: v,
6233
6249
  controls: I
6234
6250
  }), R = {
@@ -6418,7 +6434,7 @@ function Ko({
6418
6434
  var w, S;
6419
6435
  return (S = (w = h.card) == null ? void 0 : w.preferences) == null ? void 0 : S.chartOptions;
6420
6436
  }
6421
- ), o = Jc(d), { setChartGrid: i } = be();
6437
+ ), o = Qc(d), { setChartGrid: i } = be();
6422
6438
  function f() {
6423
6439
  const h = ["xy", "none", "x", "y"], S = (h.indexOf(o) + 1) % h.length;
6424
6440
  i(h[S]);
@@ -6695,7 +6711,7 @@ function cf({
6695
6711
  /* @__PURE__ */ n(ue, { children: [
6696
6712
  L(s, A),
6697
6713
  /* @__PURE__ */ e(
6698
- rd,
6714
+ nd,
6699
6715
  {
6700
6716
  enabled: s.activeCardId === A.id,
6701
6717
  text: A.tabTitle || A.title,
@@ -6709,7 +6725,7 @@ function cf({
6709
6725
  ] })
6710
6726
  ),
6711
6727
  !d && s.activeCardId === A.id && !ae && /* @__PURE__ */ e(
6712
- sd,
6728
+ rd,
6713
6729
  {
6714
6730
  className: "h-3 w-3 text-muted-foreground hover:text-foreground",
6715
6731
  onClick: (G) => {
@@ -6769,8 +6785,8 @@ function lr({
6769
6785
  F((ce) => ce.isDevMode);
6770
6786
  const { switchCardTab: f, resetAllColumnSettings: u } = be(), m = Object.keys(((De = (ie = l.preferences) == null ? void 0 : ie.tablePrefs) == null ? void 0 : De.columnSettingsMap) ?? {}).length > 0 || Object.keys(((Ue = l.preferences) == null ? void 0 : Ue.sqlColumns) ?? {}).length > 0, [p, h] = U({}), [w, S] = U(
6771
6787
  () => /* @__PURE__ */ new Set()
6772
- ), { authToken: x } = Zt(), v = nm(x == null ? void 0 : x.accessToken), { compiledAppearance: T } = wh(), N = se(
6773
- () => Wc(T),
6788
+ ), { authToken: x } = Zt(), v = nm(x == null ? void 0 : x.accessToken), { compiledAppearance: T } = Ch(), N = se(
6789
+ () => Jc(T),
6774
6790
  [T]
6775
6791
  ), {
6776
6792
  getCard: g,
@@ -6842,15 +6858,15 @@ function lr({
6842
6858
  ),
6843
6859
  [$, y == null ? void 0 : y.slots]
6844
6860
  ), Ne = se(
6845
- () => Xc(
6846
- Zc({
6861
+ () => Wc(
6862
+ Xc({
6847
6863
  slotOrderedCards: $,
6848
6864
  multiInputData: p,
6849
6865
  valueFormatPreferences: r
6850
6866
  })
6851
6867
  ),
6852
6868
  [p, $, r]
6853
- ), Te = ed(), Oe = fe((ce) => ce.dashboard), ze = fe(
6869
+ ), Te = Zc(), Oe = fe((ce) => ce.dashboard), ze = fe(
6854
6870
  (ce) => ce.dashboardInputValues
6855
6871
  ), me = fe(
6856
6872
  (ce) => ce.adHocFilterValues
@@ -6866,7 +6882,7 @@ function lr({
6866
6882
  ), Xe = F(
6867
6883
  (ce) => ce.actions.removeCardInlineFilterValue
6868
6884
  ), yt = se(
6869
- () => o ? td({
6885
+ () => o ? ed({
6870
6886
  card: o,
6871
6887
  sheetId: Le || "",
6872
6888
  inlineFilterValues: He,
@@ -6917,7 +6933,7 @@ function lr({
6917
6933
  y == null ? void 0 : y.slots
6918
6934
  );
6919
6935
  return /* @__PURE__ */ e(
6920
- ld,
6936
+ sd,
6921
6937
  {
6922
6938
  onLoadingStatus: pe,
6923
6939
  onDataChange: he,
@@ -6943,7 +6959,7 @@ function lr({
6943
6959
  _,
6944
6960
  {
6945
6961
  editing: !0,
6946
- ...od({
6962
+ ...ld({
6947
6963
  configCard: o,
6948
6964
  slotOrderedCards: $,
6949
6965
  slotTypes: de,
@@ -6983,7 +6999,7 @@ function lr({
6983
6999
  }
6984
7000
  ) : /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ n("div", { className: "w-1/2 space-y-3", children: [
6985
7001
  /* @__PURE__ */ e("div", { className: "rounded-md border border-border", children: /* @__PURE__ */ e(
6986
- ad,
7002
+ td,
6987
7003
  {
6988
7004
  card: ae,
6989
7005
  data: k == null ? void 0 : k.records,
@@ -7001,7 +7017,7 @@ function lr({
7001
7017
  onOpenInEditor: q,
7002
7018
  showFeedbackButton: !1
7003
7019
  }
7004
- ) }) : /* @__PURE__ */ e("div", { className: "flex h-full min-h-0 flex-col px-4 py-4", children: /* @__PURE__ */ e(nd, { isLoading: i, card: l, data: k == null ? void 0 : k.records }) }) : /* @__PURE__ */ e(
7020
+ ) }) : /* @__PURE__ */ e("div", { className: "flex h-full min-h-0 flex-col px-4 py-4", children: /* @__PURE__ */ e(ad, { isLoading: i, card: l, data: k == null ? void 0 : k.records }) }) : /* @__PURE__ */ e(
7005
7021
  on,
7006
7022
  {
7007
7023
  fallbackRender: (ce) => /* @__PURE__ */ e(
@@ -7172,11 +7188,11 @@ function Vn({
7172
7188
  Oe.href = Te, Oe.download = `${c.title}.json`, Oe.click();
7173
7189
  }
7174
7190
  function K() {
7175
- A && id(
7176
- cd(
7177
- dd({
7191
+ A && od(
7192
+ id(
7193
+ cd({
7178
7194
  records: M,
7179
- encoding: Ch({
7195
+ encoding: Nh({
7180
7196
  dashboardDefault: u
7181
7197
  })
7182
7198
  }),
@@ -7443,7 +7459,7 @@ function Vn({
7443
7459
  onSelect: j,
7444
7460
  className: "gap-2 text-[13px]",
7445
7461
  children: [
7446
- /* @__PURE__ */ e(Fh, { className: "h-3.5 w-3.5" }),
7462
+ /* @__PURE__ */ e(Eh, { className: "h-3.5 w-3.5" }),
7447
7463
  "Download JSON"
7448
7464
  ]
7449
7465
  }
@@ -7494,7 +7510,7 @@ function Vn({
7494
7510
  },
7495
7511
  className: "gap-2 text-[13px]",
7496
7512
  children: [
7497
- /* @__PURE__ */ e(Yh, { className: "h-3.5 w-3.5" }),
7513
+ /* @__PURE__ */ e(Lh, { className: "h-3.5 w-3.5" }),
7498
7514
  "Table settings"
7499
7515
  ]
7500
7516
  }
@@ -7717,7 +7733,7 @@ function jo() {
7717
7733
  var V, $, L;
7718
7734
  const t = F(
7719
7735
  (b) => b.card.customCardPreferences
7720
- ), { data: a } = ud(), r = (a == null ? void 0 : a.plugins) || [], s = F((b) => b.card), l = F((b) => b.frame), { setCustomCardPreferences: c } = be(), d = se(
7736
+ ), { data: a } = dd(), r = (a == null ? void 0 : a.plugins) || [], s = F((b) => b.card), l = F((b) => b.frame), { setCustomCardPreferences: c } = be(), d = se(
7721
7737
  () => sa(l, s),
7722
7738
  [l, s]
7723
7739
  ), o = d == null ? void 0 : d.customCardPreferences, { components: i, manifest: f } = ea(
@@ -7967,7 +7983,7 @@ function jo() {
7967
7983
  ((t == null ? void 0 : t.type) === "component" || (t == null ? void 0 : t.type) === void 0) && t && (!p || h) && /* @__PURE__ */ e(ue, { children: i && /* @__PURE__ */ e(
7968
7984
  Ua,
7969
7985
  {
7970
- icon: /* @__PURE__ */ e(Dh, { className: "h-3.5 w-3.5" }),
7986
+ icon: /* @__PURE__ */ e(Mh, { className: "h-3.5 w-3.5" }),
7971
7987
  className: "h-9 w-full",
7972
7988
  label: "Select Component",
7973
7989
  options: (i == null ? void 0 : i.map((b) => ({
@@ -8018,9 +8034,9 @@ function jo() {
8018
8034
  u.docs.dataSchema && /* @__PURE__ */ n("div", { className: "space-y-2", children: [
8019
8035
  /* @__PURE__ */ e("h4", { className: "text-xs font-semibold uppercase tracking-wide text-muted-foreground", children: "Data Schema" }),
8020
8036
  /* @__PURE__ */ e("div", { className: "prose prose-sm dark:prose-invert prose-pre:bg-muted prose-pre:text-xs max-w-none", children: /* @__PURE__ */ e(
8021
- md,
8037
+ ud,
8022
8038
  {
8023
- remarkPlugins: [hd],
8039
+ remarkPlugins: [md],
8024
8040
  components: pf,
8025
8041
  children: u.docs.dataSchema
8026
8042
  }
@@ -8642,17 +8658,17 @@ const Nf = {
8642
8658
  };
8643
8659
  function Cf(t) {
8644
8660
  var a;
8645
- return fo((a = t == null ? void 0 : t.sqlKpiValue) == null ? void 0 : a.format) || Nf;
8661
+ return go((a = t == null ? void 0 : t.sqlKpiValue) == null ? void 0 : a.format) || Nf;
8646
8662
  }
8647
8663
  function Hs(t, a) {
8648
- const r = a ? go(a) : void 0, { format: s, ...l } = t.sqlKpiValue ?? {}, c = r ? { ...l, format: r } : l, { sqlKpiValue: d, ...o } = t;
8664
+ const r = a ? xo(a) : void 0, { format: s, ...l } = t.sqlKpiValue ?? {}, c = r ? { ...l, format: r } : l, { sqlKpiValue: d, ...o } = t;
8649
8665
  return Object.keys(c).length ? { ...o, sqlKpiValue: c } : o;
8650
8666
  }
8651
8667
  function wf() {
8652
8668
  var f, u;
8653
8669
  const t = F((m) => m.card), a = F(
8654
8670
  (m) => m.actions.setCardPreferences
8655
- ), r = Ll() ?? ha.locale, s = Yl() ?? ha.defaultCurrency, l = pd(t) === "config", c = Cf(t.preferences), d = !!((u = (f = t.preferences) == null ? void 0 : f.sqlKpiValue) != null && u.format), o = (m) => {
8671
+ ), r = Ll() ?? ha.locale, s = Yl() ?? ha.defaultCurrency, l = hd(t) === "config", c = Cf(t.preferences), d = !!((u = (f = t.preferences) == null ? void 0 : f.sqlKpiValue) != null && u.format), o = (m) => {
8656
8672
  const p = F.getState().card.preferences ?? {};
8657
8673
  a(Hs(p, m));
8658
8674
  }, i = (m) => {
@@ -9018,7 +9034,7 @@ function kf({
9018
9034
  className: "inline-flex items-center gap-1.5 text-xs font-medium text-primary hover:underline",
9019
9035
  children: [
9020
9036
  "View documentation",
9021
- /* @__PURE__ */ e(fd, { className: "h-3 w-3" })
9037
+ /* @__PURE__ */ e(pd, { className: "h-3 w-3" })
9022
9038
  ]
9023
9039
  }
9024
9040
  )
@@ -9063,7 +9079,7 @@ function Mf() {
9063
9079
  ), a = F(
9064
9080
  (l) => {
9065
9081
  var c, d;
9066
- return ((d = (c = l.card.preferences) == null ? void 0 : c.sqlKpiValue) == null ? void 0 : d.comparisonPolarity) ?? Sh;
9082
+ return ((d = (c = l.card.preferences) == null ? void 0 : c.sqlKpiValue) == null ? void 0 : d.comparisonPolarity) ?? wh;
9067
9083
  }
9068
9084
  ), r = F(
9069
9085
  (l) => l.actions.setCardPreferences
@@ -9250,13 +9266,13 @@ function Qo({
9250
9266
  origin: c,
9251
9267
  drawnTypes: d
9252
9268
  }) {
9253
- const o = um(r), i = Ll(), f = Yl(), u = !!(c && !c.custom && c.modelFormat), m = u ? c == null ? void 0 : c.modelFormat : t, p = fo(m) || {};
9269
+ const o = um(r), i = Ll(), f = Yl(), u = !!(c && !c.custom && c.modelFormat), m = u ? c == null ? void 0 : c.modelFormat : t, p = go(m) || {};
9254
9270
  if (!Ho(d, p.type).length) return null;
9255
9271
  const w = /* @__PURE__ */ e(
9256
9272
  Ya,
9257
9273
  {
9258
9274
  formatOptions: p,
9259
- onFormatOptionsChange: (S) => a(go(S)),
9275
+ onFormatOptionsChange: (S) => a(xo(S)),
9260
9276
  showTitle: s,
9261
9277
  title: l,
9262
9278
  drawnTypes: d,
@@ -9601,7 +9617,7 @@ function Rf({
9601
9617
  s,
9602
9618
  l,
9603
9619
  (m) => Pf(a, m)
9604
- ), d = c.rules, o = (m) => c.onChange(m(d)), i = d.find((m) => !gd(m)), f = i ? `${i.name || "the new rule"} is incomplete` : c.issue ?? "", u = a.spec.measures[0];
9620
+ ), d = c.rules, o = (m) => c.onChange(m(d)), i = d.find((m) => !fd(m)), f = i ? `${i.name || "the new rule"} is incomplete` : c.issue ?? "", u = a.spec.measures[0];
9605
9621
  return u ? /* @__PURE__ */ n("div", { className: "min-w-0 space-y-2", children: [
9606
9622
  f && /* @__PURE__ */ n("p", { className: "text-xs text-muted-foreground", children: [
9607
9623
  "Not applied yet: ",
@@ -10102,7 +10118,7 @@ function Of({
10102
10118
  ] });
10103
10119
  }
10104
10120
  function or({ fieldId: t, section: a = "table" }) {
10105
- const r = F((i) => i.card), s = F((i) => i.actions.updateCard), l = F((i) => i.actions.updateConditionalRules), c = F((i) => i.matrixSelection), d = xd(r), o = xm(r);
10121
+ const r = F((i) => i.card), s = F((i) => i.actions.updateCard), l = F((i) => i.actions.updateConditionalRules), c = F((i) => i.matrixSelection), d = gd(r), o = xm(r);
10106
10122
  return o.status === "invalid" ? /* @__PURE__ */ e("div", { role: "alert", className: "p-3 text-xs text-destructive", children: "Invalid Matrix configuration. Repair or reset the card definition." }) : o.status === "absent" ? /* @__PURE__ */ e("div", { className: "p-3 text-xs text-muted-foreground", children: "No fields selected" }) : /* @__PURE__ */ n(ue, { children: [
10107
10123
  a === "conditional-formatting" && !t && /* @__PURE__ */ e("div", { className: "px-3 pt-3", children: /* @__PURE__ */ e(qr, { cardId: r.id }) }),
10108
10124
  /* @__PURE__ */ e(
@@ -10113,7 +10129,7 @@ function or({ fieldId: t, section: a = "table" }) {
10113
10129
  section: t ? { kind: "field", id: t } : { kind: a },
10114
10130
  scopeSelection: (c == null ? void 0 : c.cardId) === r.id ? c.coordinate : void 0,
10115
10131
  bindings: r.controlBindings,
10116
- modelFormats: gh(o.config.spec, d.catalog),
10132
+ modelFormats: fh(o.config.spec, d.catalog),
10117
10133
  conditionalRules: Mr(r),
10118
10134
  onConditionalRulesChange: l,
10119
10135
  availableFields: d.catalog.map((i) => ({
@@ -10325,7 +10341,7 @@ function _f() {
10325
10341
  ), f = r === "kpi" && ((w = t.preferences) == null ? void 0 : w.metricPairComparisonEnabled) === !0, u = c || f;
10326
10342
  return /* @__PURE__ */ n(Be, { value: "comparison", className: "border-none", children: [
10327
10343
  /* @__PURE__ */ e(Ke, { className: "flex items-center gap-2 py-2 text-[12px] hover:no-underline [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
10328
- /* @__PURE__ */ e(Ah, { className: "h-3.5 w-3.5 text-foreground/60" }),
10344
+ /* @__PURE__ */ e(Ih, { className: "h-3.5 w-3.5 text-foreground/60" }),
10329
10345
  /* @__PURE__ */ e("span", { children: "Comparison" })
10330
10346
  ] }) }),
10331
10347
  /* @__PURE__ */ n(qe, { className: "space-y-4 pb-4 pt-2", children: [
@@ -10398,15 +10414,15 @@ function Xo({
10398
10414
  return (q = W.card) == null ? void 0 : q.preferences;
10399
10415
  }), i = o == null ? void 0 : o.tablePrefs, f = F(
10400
10416
  (W) => W.actions.setCardPreferences
10401
- ), u = F((W) => W.queryResultColumnMeta), m = ((le = l.config) == null ? void 0 : le.metricColumns) || [], p = t ?? l.type, h = a ?? c, w = l.type === p ? l : { ...l, type: p }, S = bd(
10417
+ ), u = F((W) => W.queryResultColumnMeta), m = ((le = l.config) == null ? void 0 : le.metricColumns) || [], p = t ?? l.type, h = a ?? c, w = l.type === p ? l : { ...l, type: p }, S = xd(
10402
10418
  w,
10403
10419
  h,
10404
10420
  d,
10405
10421
  u
10406
- ), x = vd(
10422
+ ), x = bd(
10407
10423
  w,
10408
10424
  h
10409
- ), v = p === "matrixTable" || Nd(p), T = p === "table", N = p === "table", g = p === "table" || p === "detailTable", E = N || g, I = ((ae = S[0]) == null ? void 0 : ae.value) || "", P = yd(i), _ = xh(w), y = bh(w), [C, R] = U("style");
10425
+ ), v = p === "matrixTable" || yd(p), T = p === "table", N = p === "table", g = p === "table" || p === "detailTable", E = N || g, I = ((ae = S[0]) == null ? void 0 : ae.value) || "", P = vd(i), _ = gh(w), y = xh(w), [C, R] = U("style");
10410
10426
  we(() => {
10411
10427
  if (r === "style") {
10412
10428
  R("style");
@@ -10538,7 +10554,7 @@ function Xo({
10538
10554
  ] }),
10539
10555
  /* @__PURE__ */ n(wt, { value: "style", className: "mt-0", children: [
10540
10556
  /* @__PURE__ */ e(
10541
- Cd,
10557
+ Nd,
10542
10558
  {
10543
10559
  style: P,
10544
10560
  onDensityChange: b,
@@ -10573,7 +10589,7 @@ function Xo({
10573
10589
  )
10574
10590
  ] }) : null,
10575
10591
  N ? /* @__PURE__ */ e(
10576
- wd,
10592
+ Cd,
10577
10593
  {
10578
10594
  columns: x,
10579
10595
  columnVisibility: i == null ? void 0 : i.columnVisibility,
@@ -10904,7 +10920,7 @@ function Hf() {
10904
10920
  (I = t == null ? void 0 : t.config) == null ? void 0 : I.pivotByColumns,
10905
10921
  (P = t == null ? void 0 : t.config) == null ? void 0 : P.metricColumns,
10906
10922
  r
10907
- ]), w = se(() => Sd(), []);
10923
+ ]), w = se(() => wd(), []);
10908
10924
  we(() => {
10909
10925
  const b = {};
10910
10926
  h.forEach((Y, k) => {
@@ -10973,7 +10989,7 @@ function Hf() {
10973
10989
  }, g = Object.keys(((L = a == null ? void 0 : a.colorConfig) == null ? void 0 : L.segments) || {}).length > 0;
10974
10990
  return /* @__PURE__ */ n(Be, { value: "colors", className: "border-b-0", children: [
10975
10991
  /* @__PURE__ */ e(Ke, { className: "flex w-full items-center gap-2 py-2 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
10976
- /* @__PURE__ */ e(kh, { className: "h-4 w-4 text-muted-foreground" }),
10992
+ /* @__PURE__ */ e(Sh, { className: "h-4 w-4 text-muted-foreground" }),
10977
10993
  /* @__PURE__ */ e("span", { children: "Colors" })
10978
10994
  ] }) }),
10979
10995
  /* @__PURE__ */ e(qe, { className: "", children: /* @__PURE__ */ n("div", { className: "space-y-3", children: [
@@ -10989,7 +11005,7 @@ function Hf() {
10989
11005
  }
10990
11006
  ) }) }),
10991
11007
  /* @__PURE__ */ e("div", { className: "max-h-[200px] space-y-2 overflow-y-auto pr-1", children: h.map((b, Y) => {
10992
- const k = kd(o[b], Y), D = !k;
11008
+ const k = Sd(o[b], Y), D = !k;
10993
11009
  return /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
10994
11010
  /* @__PURE__ */ n(
10995
11011
  It,
@@ -11422,7 +11438,7 @@ function Uf() {
11422
11438
  }), { setCardPreferences: r, updateCardInFrame: s } = be(), l = lt();
11423
11439
  if (!t || ["tornado", "pyramid", "kpi", "treemap"].includes(l))
11424
11440
  return null;
11425
- const c = Td.getAxisInfo(
11441
+ const c = kd.getAxisInfo(
11426
11442
  l,
11427
11443
  a
11428
11444
  );
@@ -11498,9 +11514,9 @@ function Gf() {
11498
11514
  return (S = (w = (h = (p = m.card) == null ? void 0 : p.preferences) == null ? void 0 : h.chartOptions) == null ? void 0 : w.plugins) == null ? void 0 : S.legend;
11499
11515
  }
11500
11516
  ), { setLegendOptions: s } = be();
11501
- if (!t || !Md(a))
11517
+ if (!t || !Td(a))
11502
11518
  return null;
11503
- const l = Dd(a), c = (l == null ? void 0 : l.display) ?? !0, d = (l == null ? void 0 : l.position) ?? "top", o = (l == null ? void 0 : l.align) ?? "center", i = (m, p) => {
11519
+ const l = Md(a), c = (l == null ? void 0 : l.display) ?? !0, d = (l == null ? void 0 : l.position) ?? "top", o = (l == null ? void 0 : l.align) ?? "center", i = (m, p) => {
11504
11520
  const h = {
11505
11521
  ...r,
11506
11522
  [m]: p
@@ -11509,7 +11525,7 @@ function Gf() {
11509
11525
  }, f = ["top", "bottom", "left", "right"], u = ["start", "center", "end"];
11510
11526
  return /* @__PURE__ */ n(Be, { value: "legend", className: "border-b-0", children: [
11511
11527
  /* @__PURE__ */ e(Ke, { className: "flex w-full items-center gap-2 py-2 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
11512
- /* @__PURE__ */ e(Ph, { className: "h-4 w-4 text-muted-foreground" }),
11528
+ /* @__PURE__ */ e(Ah, { className: "h-4 w-4 text-muted-foreground" }),
11513
11529
  /* @__PURE__ */ e("span", { children: "Legend" })
11514
11530
  ] }) }),
11515
11531
  /* @__PURE__ */ e(qe, { className: "pt-2", children: /* @__PURE__ */ n("div", { className: "space-y-3", children: [
@@ -12441,7 +12457,7 @@ function eg() {
12441
12457
  };
12442
12458
  return !d && !o ? null : /* @__PURE__ */ n(Be, { value: "bubble-scatter-config", children: [
12443
12459
  /* @__PURE__ */ e(Ke, { className: "flex w-full items-center gap-2 py-2 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
12444
- /* @__PURE__ */ e(d ? Ed : Dl, { className: "h-3.5 w-3.5 text-foreground/60" }),
12460
+ /* @__PURE__ */ e(d ? Dd : Dl, { className: "h-3.5 w-3.5 text-foreground/60" }),
12445
12461
  /* @__PURE__ */ n("span", { children: [
12446
12462
  d ? "Bubble" : "Scatter",
12447
12463
  " Configuration"
@@ -12880,8 +12896,8 @@ function ag() {
12880
12896
  function pn() {
12881
12897
  var d, o;
12882
12898
  const t = F((i) => i.card), { data: a, comparisonMetadata: r } = ct(t), s = (a == null ? void 0 : a.records) || [], { keys: l } = gl(s, r), c = l.slice(1).filter((i) => !Fm.includes(i));
12883
- if (Fd(t.type)) {
12884
- const i = t.config, f = (d = i == null ? void 0 : i.pivotByColumns) != null && d.length && ((o = i == null ? void 0 : i.groupByColumns) != null && o.length) ? Id(s, i.metricColumns || []) : s, u = Ad({
12899
+ if (Ed(t.type)) {
12900
+ const i = t.config, f = (d = i == null ? void 0 : i.pivotByColumns) != null && d.length && ((o = i == null ? void 0 : i.groupByColumns) != null && o.length) ? Fd(s, i.metricColumns || []) : s, u = Id({
12885
12901
  card: t,
12886
12902
  cardType: t.type,
12887
12903
  records: f,
@@ -14488,7 +14504,7 @@ function Zo({ mode: t }) {
14488
14504
  var s;
14489
14505
  return (s = r.card) == null ? void 0 : s.type;
14490
14506
  });
14491
- return xo(a) ? null : /* @__PURE__ */ n(ue, { children: [
14507
+ return fo(a) ? null : /* @__PURE__ */ n(ue, { children: [
14492
14508
  a === "combo" && /* @__PURE__ */ e(ug, {}),
14493
14509
  (a === "area" || a === "stackedArea") && /* @__PURE__ */ e(bg, {}),
14494
14510
  a === "line" && /* @__PURE__ */ e(wg, {}),
@@ -14545,7 +14561,7 @@ function Hg({
14545
14561
  }
14546
14562
  return /* @__PURE__ */ n(mn, { className: "h-full w-full text-sm", children: [
14547
14563
  l(),
14548
- /* @__PURE__ */ e(Du, { orientation: "horizontal" })
14564
+ /* @__PURE__ */ e(Mu, { orientation: "horizontal" })
14549
14565
  ] });
14550
14566
  }
14551
14567
  const Ug = 32;
@@ -14664,11 +14680,11 @@ function ei({
14664
14680
  listeners: w,
14665
14681
  setNodeRef: S,
14666
14682
  isDragging: x
14667
- } = Pd({
14668
- id: Rd(t),
14683
+ } = Ad({
14684
+ id: Pd(t),
14669
14685
  data: { origin: r, field: a }
14670
14686
  }), { setNodeRef: v } = ql({
14671
- id: Od(t),
14687
+ id: Rd(t),
14672
14688
  data: { kind: "pill", zone: r, pillId: t }
14673
14689
  }), T = xt(
14674
14690
  (N) => {
@@ -14695,7 +14711,7 @@ function ei({
14695
14711
  ...w,
14696
14712
  "aria-label": `Drag ${s}`,
14697
14713
  className: J(
14698
- Ld,
14714
+ Od,
14699
14715
  "text-muted-foreground hover:text-foreground"
14700
14716
  ),
14701
14717
  onClick: (N) => N.stopPropagation(),
@@ -14714,7 +14730,7 @@ function ei({
14714
14730
  onClick: (N) => {
14715
14731
  N.stopPropagation(), u(f === "asc" ? "desc" : "asc");
14716
14732
  },
14717
- children: f === "asc" ? /* @__PURE__ */ e(Yd, { className: "h-3 w-3" }) : /* @__PURE__ */ e(_d, { className: "h-3 w-3" })
14733
+ children: f === "asc" ? /* @__PURE__ */ e(Ld, { className: "h-3 w-3" }) : /* @__PURE__ */ e(Yd, { className: "h-3 w-3" })
14718
14734
  }
14719
14735
  ),
14720
14736
  p && /* @__PURE__ */ e(Vt, { asChild: !0, children: /* @__PURE__ */ e(
@@ -14724,7 +14740,7 @@ function ei({
14724
14740
  "aria-label": "Field configuration",
14725
14741
  className: "inline-flex h-5 w-5 shrink-0 items-center justify-center rounded-[3px] text-muted-foreground hover:bg-muted hover:text-foreground data-[state=open]:bg-muted",
14726
14742
  onClick: (N) => N.stopPropagation(),
14727
- children: /* @__PURE__ */ e(Vd, { className: "h-3 w-3" })
14743
+ children: /* @__PURE__ */ e(_d, { className: "h-3 w-3" })
14728
14744
  }
14729
14745
  ) }),
14730
14746
  /* @__PURE__ */ e(
@@ -15093,7 +15109,7 @@ function Wg({ idx: t }) {
15093
15109
  }
15094
15110
  }
15095
15111
  return /* @__PURE__ */ n(It, { children: [
15096
- /* @__PURE__ */ e(Vt, { children: /* @__PURE__ */ e(Bd, { className: "size-4 rotate-[135deg] cursor-pointer text-muted-foreground hover:text-foreground" }) }),
15112
+ /* @__PURE__ */ e(Vt, { children: /* @__PURE__ */ e(Vd, { className: "size-4 rotate-[135deg] cursor-pointer text-muted-foreground hover:text-foreground" }) }),
15097
15113
  /* @__PURE__ */ e(At, { className: "w-fit px-2 py-1", children: /* @__PURE__ */ n("div", { className: "flex gap-1", children: [
15098
15114
  /* @__PURE__ */ e(
15099
15115
  "button",
@@ -15109,7 +15125,7 @@ function Wg({ idx: t }) {
15109
15125
  onClick: () => d("start", t),
15110
15126
  className: "h-7 p-1 text-xs font-normal",
15111
15127
  children: /* @__PURE__ */ e(
15112
- Rh,
15128
+ Ph,
15113
15129
  {
15114
15130
  className: J("h-4 w-4", {
15115
15131
  "rotate-90": l === "y"
@@ -15124,7 +15140,7 @@ function Wg({ idx: t }) {
15124
15140
  onClick: () => d("center", t),
15125
15141
  className: "h-7 p-1 text-xs font-normal",
15126
15142
  children: /* @__PURE__ */ e(
15127
- Lh,
15143
+ Oh,
15128
15144
  {
15129
15145
  className: J("h-4 w-4", {
15130
15146
  "rotate-90": l === "y"
@@ -15139,7 +15155,7 @@ function Wg({ idx: t }) {
15139
15155
  onClick: () => d("end", t),
15140
15156
  className: "h-7 p-1 text-xs font-normal",
15141
15157
  children: /* @__PURE__ */ e(
15142
- Oh,
15158
+ Rh,
15143
15159
  {
15144
15160
  className: J("h-4 w-4", {
15145
15161
  "rotate-90": l === "y"
@@ -15352,7 +15368,7 @@ function ax({
15352
15368
  a,
15353
15369
  r,
15354
15370
  c
15355
- ], f = Kd({
15371
+ ], f = Bd({
15356
15372
  queryKey: i,
15357
15373
  queryFn: async () => {
15358
15374
  if (!(o != null && o.connectionId))
@@ -15386,7 +15402,7 @@ function ax({
15386
15402
  connection_id: o.connectionId,
15387
15403
  cardConfig: u,
15388
15404
  cardDataSource: o,
15389
- cache_config: qd({ card: d }),
15405
+ cache_config: Kd({ card: d }),
15390
15406
  calendarContext: c
15391
15407
  };
15392
15408
  console.log("requestBody", m);
@@ -15532,7 +15548,7 @@ function rx({
15532
15548
  )) })
15533
15549
  ] }),
15534
15550
  o === "fields" && !d ? /* @__PURE__ */ e("div", { className: "flex flex-col", children: /* @__PURE__ */ e(
15535
- jd,
15551
+ qd,
15536
15552
  {
15537
15553
  fields: h,
15538
15554
  selectedIds: nx,
@@ -15683,7 +15699,7 @@ function ix({
15683
15699
  isLoading: v,
15684
15700
  hasError: T,
15685
15701
  refetch: N
15686
- } = $l(), { userContext: g } = sn(), { tokenProps: E } = Zt(), I = zl(g), P = ur(), _ = Al() ?? ha, y = $d() ?? ha, C = zd(), {
15702
+ } = $l(), { userContext: g } = sn(), { tokenProps: E } = Zt(), I = zl(g), P = ur(), _ = Al() ?? ha, y = jd() ?? ha, C = $d(), {
15687
15703
  updateLabel: R,
15688
15704
  handleAggregationChange: V,
15689
15705
  handleDetailDateFormatChange: $,
@@ -15822,13 +15838,13 @@ function ix({
15822
15838
  St(H), a === "metrics" && M(r, H);
15823
15839
  }, oi = (H) => {
15824
15840
  R(a, r, H);
15825
- }, xn = Hd(t);
15826
- Ud(t);
15827
- const $r = Gd(t), bn = t.role === "metric" && $r, vn = $r && (xn === "user_calculated" || xn === "inline_expression" && t.fieldScope !== "domain"), kt = vn ? lh({
15841
+ }, xn = zd(t);
15842
+ Hd(t);
15843
+ const $r = Ud(t), bn = t.role === "metric" && $r, vn = $r && (xn === "user_calculated" || xn === "inline_expression" && t.fieldScope !== "domain"), kt = vn ? lh({
15828
15844
  field: t,
15829
15845
  sheetFields: (i == null ? void 0 : i.calculatedFields) || [],
15830
15846
  dashboardFields: w
15831
- }) : void 0, zr = vn && (kt == null ? void 0 : kt.scope) === "sheet", Hr = vn && (kt == null ? void 0 : kt.scope) === "dashboard", ba = xn === "domain_calculated" || t.fieldScope === "domain", Ur = ba ? Qd(t, S) : void 0, oa = ba ? "domain" : zr ? "sheet" : Hr ? "dashboard" : "card", _a = ba ? Ur || t : (zr || Hr) && (kt != null && kt.matchedField) ? kt.matchedField : t, ii = ba ? Ur ? "effective" : v ? "loading" : T ? "unavailable" : "unverified" : void 0, Gr = (H) => {
15847
+ }) : void 0, zr = vn && (kt == null ? void 0 : kt.scope) === "sheet", Hr = vn && (kt == null ? void 0 : kt.scope) === "dashboard", ba = xn === "domain_calculated" || t.fieldScope === "domain", Ur = ba ? Gd(t, S) : void 0, oa = ba ? "domain" : zr ? "sheet" : Hr ? "dashboard" : "card", _a = ba ? Ur || t : (zr || Hr) && (kt != null && kt.matchedField) ? kt.matchedField : t, ii = ba ? Ur ? "effective" : v ? "loading" : T ? "unavailable" : "unverified" : void 0, Gr = (H) => {
15832
15848
  var Ce;
15833
15849
  if (gn(H), a === "metrics") {
15834
15850
  const Ee = {
@@ -15847,7 +15863,7 @@ function ix({
15847
15863
  B(a, r);
15848
15864
  }, yn = co(
15849
15865
  oe.dataType || t.dataType
15850
- ), Qr = yn === "date", Nn = d === "kpi", Cn = a === "detailColumns", Jr = (ds = o.config) == null ? void 0 : ds.metricColumns, Wr = (us = o.config) == null ? void 0 : us.groupByColumns, Xr = Jd(o), Zr = fe((H) => H.dashboard), es = fe(
15866
+ ), Qr = yn === "date", Nn = d === "kpi", Cn = a === "detailColumns", Jr = (ds = o.config) == null ? void 0 : ds.metricColumns, Wr = (us = o.config) == null ? void 0 : us.groupByColumns, Xr = Qd(o), Zr = fe((H) => H.dashboard), es = fe(
15851
15867
  (H) => H.semanticExecutionPayload
15852
15868
  ), ts = t.nativeDataType || t.dataType, di = se(
15853
15869
  () => a === "detailColumns" ? Rm({
@@ -15868,11 +15884,11 @@ function ix({
15868
15884
  },
15869
15885
  ...tl(Me ?? "day")
15870
15886
  ] : [], ui = _e ? "custom" : !Me && a === "groupBy" ? void 0 : wn.some((H) => H.value === ge) ? ge : a === "detailColumns" ? void 0 : ((ms = wn[0]) == null ? void 0 : ms.value) ?? "YYYY-MM-DD", pt = se(
15871
- () => Th(
15887
+ () => kh(
15872
15888
  o,
15873
- vh(
15889
+ bh(
15874
15890
  Xr,
15875
- yh(Zr, es, P)
15891
+ vh(Zr, es, P)
15876
15892
  )
15877
15893
  ),
15878
15894
  [o, Xr, Zr, es, P]
@@ -16464,7 +16480,7 @@ function ix({
16464
16480
  /* @__PURE__ */ n(
16465
16481
  X,
16466
16482
  {
16467
- value: oh(We),
16483
+ value: rh(We),
16468
16484
  disabled: !!We.semanticComparisonPolarity,
16469
16485
  onValueChange: (Q) => le(
16470
16486
  r,
@@ -16839,7 +16855,7 @@ function dx({ concept: t }) {
16839
16855
  type: "button",
16840
16856
  "aria-label": `What does ${a} mean?`,
16841
16857
  className: "inline-flex h-3 w-3 shrink-0 items-center justify-center text-muted-foreground/70 transition-colors hover:text-foreground",
16842
- children: /* @__PURE__ */ e(Mh, { className: "h-3 w-3" })
16858
+ children: /* @__PURE__ */ e(Th, { className: "h-3 w-3" })
16843
16859
  }
16844
16860
  ) }),
16845
16861
  /* @__PURE__ */ n(
@@ -16951,13 +16967,13 @@ function Ta({
16951
16967
  hasPivotColumns: d = !1
16952
16968
  }) {
16953
16969
  const { setNodeRef: o } = ql({
16954
- id: Xd(a),
16970
+ id: Wd(a),
16955
16971
  data: {
16956
16972
  kind: "shelf",
16957
16973
  zone: a,
16958
16974
  pillIds: r.map((g) => g.id)
16959
16975
  }
16960
- }), i = qi(a), { updateSortByColumn: f } = be(), u = F((g) => g.card), m = F((g) => g.card.type), p = r.length > 0, h = i !== null, w = (i == null ? void 0 : i.kind) !== "refused", S = (i == null ? void 0 : i.kind) === "refused" ? Wd(i.notice, s) : null, x = xt((g, E) => {
16976
+ }), i = qi(a), { updateSortByColumn: f } = be(), u = F((g) => g.card), m = F((g) => g.card.type), p = r.length > 0, h = i !== null, w = (i == null ? void 0 : i.kind) !== "refused", S = (i == null ? void 0 : i.kind) === "refused" ? Jd(i.notice, s) : null, x = xt((g, E) => {
16961
16977
  var P;
16962
16978
  !((P = u.config) != null && P.sortByColumns) || u.config.sortByColumns.findIndex(
16963
16979
  (_) => _.id === g
@@ -17184,7 +17200,7 @@ function gx({
17184
17200
  onClick: () => i(!0),
17185
17201
  className: "mt-1.5 w-full justify-start border-border/60 border-dashed bg-background text-xs text-foreground/70 hover:bg-muted/40 hover:text-foreground",
17186
17202
  children: [
17187
- /* @__PURE__ */ e(Zd, { className: "mr-2 h-4 w-4" }),
17203
+ /* @__PURE__ */ e(Xd, { className: "mr-2 h-4 w-4" }),
17188
17204
  "Create Metric"
17189
17205
  ]
17190
17206
  }
@@ -17269,7 +17285,7 @@ function xx() {
17269
17285
  var I;
17270
17286
  return E.name === ((I = f == null ? void 0 : f.customCardPreferences) == null ? void 0 : I.componentName);
17271
17287
  }
17272
- ), h = la(f, m) === "multiple" && !!((g = f == null ? void 0 : f.customCardPreferences) != null && g.url), w = !d || h, S = d || h, x = a ? "KPI Settings" : "Chart Settings", v = w && !xo(t);
17288
+ ), h = la(f, m) === "multiple" && !!((g = f == null ? void 0 : f.customCardPreferences) != null && g.url), w = !d || h, S = d || h, x = a ? "KPI Settings" : "Chart Settings", v = w && !fo(t);
17273
17289
  return we(() => {
17274
17290
  a && s(!0);
17275
17291
  }, [a]), !v && !S ? null : /* @__PURE__ */ n("div", { className: "shrink-0 border-t border-border bg-background", children: [
@@ -17437,7 +17453,7 @@ function bx({ onEditJoins: t }) {
17437
17453
  onClick: t,
17438
17454
  className: "inline-flex h-5 w-5 shrink-0 items-center justify-center rounded-control text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus:outline-none focus-visible:border-ring",
17439
17455
  "aria-label": "Edit resolved joins",
17440
- children: /* @__PURE__ */ e(eu, { className: "h-3 w-3", strokeWidth: 1.75 })
17456
+ children: /* @__PURE__ */ e(Zd, { className: "h-3 w-3", strokeWidth: 1.75 })
17441
17457
  }
17442
17458
  )
17443
17459
  ] });
@@ -17499,7 +17515,7 @@ function vx({
17499
17515
  "aria-label": "Hide chart configuration",
17500
17516
  onClick: c,
17501
17517
  className: "h-7 w-7 rounded-[5px] p-0 text-muted-foreground hover:text-foreground",
17502
- children: /* @__PURE__ */ e(tu, { className: "h-4 w-4", strokeWidth: 1.75 })
17518
+ children: /* @__PURE__ */ e(eu, { className: "h-4 w-4", strokeWidth: 1.75 })
17503
17519
  }
17504
17520
  ) })
17505
17521
  ] }),
@@ -17603,7 +17619,7 @@ function Nx({
17603
17619
  placeField: a,
17604
17620
  previewFieldPlacement: r
17605
17621
  }) {
17606
- const [s] = U(au), l = Ve(null), c = xt(() => {
17622
+ const [s] = U(tu), l = Ve(null), c = xt(() => {
17607
17623
  l.current = null, s.set(null);
17608
17624
  }, [s]), d = xt((u) => {
17609
17625
  c();
@@ -17810,8 +17826,8 @@ function Fx({
17810
17826
  effectiveCardType: a = t.type,
17811
17827
  queryResultColumns: r
17812
17828
  }) {
17813
- return Tr(a) ? /* @__PURE__ */ n(nu, { modal: !1, children: [
17814
- /* @__PURE__ */ e(ru, { asChild: !0, children: /* @__PURE__ */ e(
17829
+ return Tr(a) ? /* @__PURE__ */ n(au, { modal: !1, children: [
17830
+ /* @__PURE__ */ e(nu, { asChild: !0, children: /* @__PURE__ */ e(
17815
17831
  rt,
17816
17832
  {
17817
17833
  tooltip: "Table settings",
@@ -17824,14 +17840,14 @@ function Fx({
17824
17840
  }
17825
17841
  ) }),
17826
17842
  /* @__PURE__ */ n(
17827
- su,
17843
+ ru,
17828
17844
  {
17829
17845
  side: "right",
17830
17846
  hideOverlay: !0,
17831
17847
  className: "flex w-[420px] flex-col gap-0 p-0 sm:max-w-[420px]",
17832
17848
  children: [
17833
- /* @__PURE__ */ e(lu, { className: "sr-only", children: "Table settings" }),
17834
- /* @__PURE__ */ e(ou, { className: "sr-only", children: "Configure table presentation and conditional formatting." }),
17849
+ /* @__PURE__ */ e(su, { className: "sr-only", children: "Table settings" }),
17850
+ /* @__PURE__ */ e(lu, { className: "sr-only", children: "Configure table presentation and conditional formatting." }),
17835
17851
  /* @__PURE__ */ n("div", { className: "border-b px-4 py-3", children: [
17836
17852
  /* @__PURE__ */ e("div", { className: "text-[13px] font-semibold text-foreground", children: "Table settings" }),
17837
17853
  /* @__PURE__ */ e("div", { className: "mt-0.5 text-[11px] text-muted-foreground", children: "Settings apply to this table and document exports that reuse it." })
@@ -17853,7 +17869,7 @@ function Ix({
17853
17869
  className: t,
17854
17870
  visible: a
17855
17871
  }) {
17856
- const r = fe((o) => o.selectedFrameId), s = iu((o) => o.selectedVisual), l = F((o) => o.frame), d = !!!(l != null && l.visualId || s != null && s.id) && !!r;
17872
+ const r = fe((o) => o.selectedFrameId), s = ou((o) => o.selectedVisual), l = F((o) => o.frame), d = !!!(l != null && l.visualId || s != null && s.id) && !!r;
17857
17873
  return !a || d ? null : /* @__PURE__ */ e("div", { className: J("flex", t), children: /* @__PURE__ */ e(
17858
17874
  ho,
17859
17875
  {
@@ -17904,7 +17920,7 @@ function Ax({
17904
17920
  const me = fe.getState(), $e = Rp(_r.QUERY_GENERATION, {
17905
17921
  cardConfig: l.config,
17906
17922
  dataSource: s.dataSource,
17907
- dashboardFilters: Nh({
17923
+ dashboardFilters: yh({
17908
17924
  dashboard: me.dashboard,
17909
17925
  runtimeValues: {
17910
17926
  dashboardInputValues: me.dashboardInputValues
@@ -17957,8 +17973,8 @@ function Ax({
17957
17973
  });
17958
17974
  }, Te = se(() => {
17959
17975
  var me;
17960
- return cu((me = l.config) == null ? void 0 : me.sortByColumns);
17961
- }, [(ze = l.config) == null ? void 0 : ze.sortByColumns]), Oe = du(
17976
+ return iu((me = l.config) == null ? void 0 : me.sortByColumns);
17977
+ }, [(ze = l.config) == null ? void 0 : ze.sortByColumns]), Oe = cu(
17962
17978
  Za(s) || null
17963
17979
  );
17964
17980
  return /* @__PURE__ */ e("div", { className: "relative flex w-0 grow flex-col", children: /* @__PURE__ */ n("div", { className: "group/visualization relative flex h-full max-w-full grow flex-col", children: [
@@ -17975,7 +17991,7 @@ function Ax({
17975
17991
  ) }),
17976
17992
  C === "kpi" && /* @__PURE__ */ e(Ix, { visible: !0, className: "self-center" }),
17977
17993
  D && l.type !== "table" && /* @__PURE__ */ e(
17978
- uu,
17994
+ du,
17979
17995
  {
17980
17996
  metadata: D,
17981
17997
  variant: "compact"
@@ -17983,9 +17999,9 @@ function Ax({
17983
17999
  )
17984
18000
  ] }),
17985
18001
  /* @__PURE__ */ n("div", { className: "flex grow items-center justify-end gap-1", children: [
17986
- !mu(C) && /* @__PURE__ */ e(Sx, {}),
18002
+ !uu(C) && /* @__PURE__ */ e(Sx, {}),
17987
18003
  /* @__PURE__ */ e(
17988
- hu,
18004
+ mu,
17989
18005
  {
17990
18006
  cardId: s.id,
17991
18007
  cardFilters: Za(s),
@@ -18071,7 +18087,7 @@ function Ax({
18071
18087
  }
18072
18088
  ),
18073
18089
  I && /* @__PURE__ */ n(Dt, { onClick: ve, children: [
18074
- g ? /* @__PURE__ */ e(Ih, { className: "h-3.5 w-3.5 text-muted-foreground" }) : /* @__PURE__ */ e(Bh, { className: "h-3.5 w-3.5 text-muted-foreground" }),
18090
+ g ? /* @__PURE__ */ e(Fh, { className: "h-3.5 w-3.5 text-muted-foreground" }) : /* @__PURE__ */ e(Bh, { className: "h-3.5 w-3.5 text-muted-foreground" }),
18075
18091
  g ? "Hide results table" : "Show results table"
18076
18092
  ] }),
18077
18093
  q && /* @__PURE__ */ n(
@@ -18205,7 +18221,7 @@ function Px({ activeField: t }) {
18205
18221
  );
18206
18222
  }
18207
18223
  function Rx() {
18208
- const { active: t } = pu(), a = t == null ? void 0 : t.data.current;
18224
+ const { active: t } = hu(), a = t == null ? void 0 : t.data.current;
18209
18225
  return /* @__PURE__ */ e(Px, { activeField: (a == null ? void 0 : a.field) ?? null });
18210
18226
  }
18211
18227
  const Ox = () => {
@@ -18249,8 +18265,8 @@ function Lx() {
18249
18265
  const { addCard: w, removeCard: S, updateCard: x, setActiveCard: v, updateFilters: T, clearFilters: N } = be(), {
18250
18266
  scopedFields: g = [],
18251
18267
  filterableFields: E = []
18252
- } = $l(), I = fu(
18253
- gu(vu, {
18268
+ } = $l(), I = pu(
18269
+ fu(bu, {
18254
18270
  activationConstraint: {
18255
18271
  distance: 8
18256
18272
  }
@@ -18272,7 +18288,7 @@ function Lx() {
18272
18288
  activeCardId: p.activeCardId,
18273
18289
  placeField: y,
18274
18290
  previewFieldPlacement: C
18275
- }), M = se(() => xu(), []), A = (ae, W) => {
18291
+ }), M = se(() => gu(), []), A = (ae, W) => {
18276
18292
  W && T(ae, W);
18277
18293
  }, B = (ae) => {
18278
18294
  N(ae);
@@ -18362,13 +18378,13 @@ function Lx() {
18362
18378
  }
18363
18379
  )
18364
18380
  ] }),
18365
- /* @__PURE__ */ e(bu, { dropAnimation: null, children: /* @__PURE__ */ e(Rx, {}) })
18381
+ /* @__PURE__ */ e(xu, { dropAnimation: null, children: /* @__PURE__ */ e(Rx, {}) })
18366
18382
  ]
18367
18383
  }
18368
18384
  );
18369
18385
  }
18370
18386
  function Yx({ authToken: t, onSave: a, onClose: r }) {
18371
- const s = F((u) => u.isDevMode), l = pr(), { setAuthToken: c } = yu(), { setOnSave: d, setOnClose: o } = be();
18387
+ const s = F((u) => u.isDevMode), l = pr(), { setAuthToken: c } = vu(), { setOnSave: d, setOnClose: o } = be();
18372
18388
  we(() => {
18373
18389
  a && d(a), r && o(r);
18374
18390
  }, [a, d, r, o]), we(() => {
@@ -18400,7 +18416,7 @@ function Yx({ authToken: t, onSave: a, onClose: r }) {
18400
18416
  }
18401
18417
  return (
18402
18418
  // Everything the editor renders is its preview (tech spec M7).
18403
- /* @__PURE__ */ e(Nu, { children: /* @__PURE__ */ e(on, { FallbackComponent: Cu, children: s ? /* @__PURE__ */ e(
18419
+ /* @__PURE__ */ e(yu, { children: /* @__PURE__ */ e(on, { FallbackComponent: Nu, children: s ? /* @__PURE__ */ e(
18404
18420
  "section",
18405
18421
  {
18406
18422
  className: "isolate flex h-full grow",
@@ -18423,7 +18439,7 @@ function mb() {
18423
18439
  fe((h) => h.selectedCardId);
18424
18440
  const t = fe((h) => h.selectedSheetId), a = fe((h) => h.dashboard), { setIsVisualEditing: r, setSelectedSheetId: s } = fe(
18425
18441
  (h) => h.actions
18426
- ), l = F((h) => h.editorContext), { clearEditorContext: c } = F((h) => h.actions), d = wu(), o = pr(), i = fe((h) => h.isVisualEditing), f = fe((h) => h.actions.updateFrame), u = Su();
18442
+ ), l = F((h) => h.editorContext), { clearEditorContext: c } = F((h) => h.actions), d = Cu(), o = pr(), i = fe((h) => h.isVisualEditing), f = fe((h) => h.actions.updateFrame), u = wu();
18427
18443
  async function m(h) {
18428
18444
  var T, N, g;
18429
18445
  if ((l == null ? void 0 : l.type) === "documentSection") {