react-semaphor 0.1.446 → 0.1.447

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 (89) hide show
  1. package/dist/analytics-protocol/index.js +8 -8
  2. package/dist/appearance/index.cjs +1 -1
  3. package/dist/appearance/index.js +1 -1
  4. package/dist/brand-studio/index.cjs +2 -2
  5. package/dist/brand-studio/index.js +9 -9
  6. package/dist/briefings/index.js +4 -4
  7. package/dist/chunks/{analyze-result-contract-DUv3QnMl.js → analyze-result-contract-T-0Ntzys.js} +1 -1
  8. package/dist/chunks/{braces-BdbUk_r9.js → braces-8TRlDwDw.js} +1 -1
  9. package/dist/chunks/{braces-BKimshER.cjs → braces-v55uLCAK.cjs} +1 -1
  10. package/dist/chunks/{catalog-field-grounding-AOGwWu0K.js → catalog-field-grounding-S2jKwKGD.js} +9 -9
  11. package/dist/chunks/{common-types-DFsDdpH7.js → common-types-B7Jk3Rtj.js} +5 -5
  12. package/dist/chunks/{dashboard-briefing-launcher-BpWq3shh.js → dashboard-briefing-launcher-CDjcivK2.js} +22 -22
  13. package/dist/chunks/{dashboard-briefing-launcher-C2kEWFgy.cjs → dashboard-briefing-launcher-D44Au-Qp.cjs} +1 -1
  14. package/dist/chunks/dashboard-controls-DH3J4L1D.cjs +52 -0
  15. package/dist/chunks/dashboard-controls-tHwb3g3W.js +2409 -0
  16. package/dist/chunks/{dashboard-date-comparison-definition-BaYxjLi5.js → dashboard-date-comparison-definition-Ba-clViK.js} +1 -1
  17. package/dist/chunks/{dashboard-input-contract-BFpERluO.js → dashboard-input-contract-DSt8dGzP.js} +4 -4
  18. package/dist/chunks/{dashboard-json-0Etvlp57.js → dashboard-json-Bihrrl5_.js} +11 -11
  19. package/dist/chunks/dashboard-json-VOXcUBqx.cjs +1 -0
  20. package/dist/chunks/{edit-dashboard-visual-C1uVqhI5.cjs → edit-dashboard-visual-8XtuSSKG.cjs} +9 -14
  21. package/dist/chunks/{edit-dashboard-visual-0uKSZPPa.js → edit-dashboard-visual-Dsc9mZnc.js} +540 -556
  22. package/dist/chunks/{editor-action-buttons-DKXO5aK7.cjs → editor-action-buttons-BFqvBlLw.cjs} +1 -1
  23. package/dist/chunks/{editor-action-buttons-DpA5PdEo.js → editor-action-buttons-BbVgPOda.js} +41 -41
  24. package/dist/chunks/{format-types-CZH5w1lo.js → format-types-DZGgYj39.js} +5 -5
  25. package/dist/chunks/index-BSTyv45D.cjs +1395 -0
  26. package/dist/chunks/{index-If0wlXGi.js → index-CJdxSyQq.js} +308 -308
  27. package/dist/chunks/{index-Dpm_VET4.cjs → index-DRlMUglg.cjs} +2 -2
  28. package/dist/chunks/{dashboard-ECv6p6DC.js → index-srGACKDr.js} +148266 -151644
  29. package/dist/chunks/{layout-grid-D5tYJg1-.js → layout-grid-CiubineE.js} +1 -1
  30. package/dist/chunks/{layout-grid-3-HWzEwU.cjs → layout-grid-xm8pqtx0.cjs} +1 -1
  31. package/dist/chunks/{metric-comparison-BJ_Qu1ZF.js → metric-comparison-97zHGEx5.js} +7 -7
  32. package/dist/chunks/{mouse-pointer-2-DXNw3_3o.js → mouse-pointer-2-BZvGk45-.js} +1 -1
  33. package/dist/chunks/{mouse-pointer-2-BOL92ext.cjs → mouse-pointer-2-DX4A_XZw.cjs} +1 -1
  34. package/dist/chunks/{palette-DW_l7Jr0.cjs → palette-BN-jYtaK.cjs} +1 -1
  35. package/dist/chunks/{palette-jqaAcwiQ.js → palette-Cp1hqZtm.js} +1 -1
  36. package/dist/chunks/{pivot-result-identity-B6QCWOSi.js → pivot-result-identity-CwJWpKI7.js} +3 -3
  37. package/dist/chunks/{pivot-result-lifecycle-BM3Pl-D1.js → pivot-result-lifecycle-BBabQ_da.js} +27 -27
  38. package/dist/chunks/{presentation-execution-CGlb7YZ6.js → presentation-execution-BLfPTGX_.js} +10 -10
  39. package/dist/chunks/{report-preferences-dialog-CkZ2KHWX.js → report-preferences-dialog-DZez53xw.js} +6 -6
  40. package/dist/chunks/report-preferences-dialog-TYTIHpHi.cjs +1 -0
  41. package/dist/chunks/{report-runtime-context-Qzn11HQe.js → report-runtime-context-bCy3CVzK.js} +1 -1
  42. package/dist/chunks/{save-4_uMnE6s.cjs → save-3dYRmehL.cjs} +1 -1
  43. package/dist/chunks/{save-HCJjjzdX.js → save-DgMfP0j8.js} +1 -1
  44. package/dist/chunks/{search-DHZCro8B.js → search-BHsQIWBV.js} +1 -1
  45. package/dist/chunks/{search-6ZmeMq55.cjs → search-BqqhaMx9.cjs} +1 -1
  46. package/dist/chunks/{code-editor-B4gTfvc5.js → switch-Bz2uj3q0.js} +9405 -9330
  47. package/dist/chunks/switch-rbwGjmad.cjs +138 -0
  48. package/dist/chunks/{temporal-bucket-authoring-BUZMuVca.js → temporal-bucket-authoring-CgOuakGW.js} +2 -2
  49. package/dist/chunks/{temporal-bucket-contract-B2bJ1oe4.js → temporal-bucket-contract-_F6vNhhH.js} +3 -3
  50. package/dist/chunks/{temporal-result-owner-Cb27SSG9.js → temporal-result-owner-6peubmhU.js} +3 -3
  51. package/dist/chunks/{token-types-DLo91nOf.js → token-types-BHR58aTy.js} +1 -1
  52. package/dist/chunks/{update-policy-eg59mQqv.js → update-policy-g0rCQ9BM.js} +9 -9
  53. package/dist/chunks/{validators-wZ2WlNHc.js → validators-Cs74WVie.js} +46 -46
  54. package/dist/chunks/x-B6ghREd2.cjs +31 -0
  55. package/dist/chunks/{index-xHCrHprY.js → x-CXDkqdur.js} +59 -59
  56. package/dist/dashboard/index.cjs +1 -1
  57. package/dist/dashboard/index.js +2 -2
  58. package/dist/dashboard-authoring/index.js +6 -6
  59. package/dist/data-app-builder/index.cjs +6 -6
  60. package/dist/data-app-builder/index.js +6 -6
  61. package/dist/data-app-codegen/index.js +2 -2
  62. package/dist/data-app-codegen-node/index.js +3 -3
  63. package/dist/data-app-sdk/index.cjs +1 -1
  64. package/dist/data-app-sdk/index.js +6 -6
  65. package/dist/data-app-sdk-adapters/index.js +2 -2
  66. package/dist/data-app-sdk-validation/index.js +4 -4
  67. package/dist/format-utils/index.js +8 -8
  68. package/dist/index.cjs +1 -1
  69. package/dist/index.js +16 -16
  70. package/dist/report-runtime-context/index.js +2 -2
  71. package/dist/style.css +1 -1
  72. package/dist/surfboard/index.cjs +1 -1
  73. package/dist/surfboard/index.js +3 -3
  74. package/dist/types/brand-studio.d.ts +2 -2
  75. package/dist/types/dashboard.d.ts +3 -2
  76. package/dist/types/data-app-builder.d.ts +2 -2
  77. package/dist/types/data-app-sdk.d.ts +1 -1
  78. package/dist/types/index.cjs +1 -1
  79. package/dist/types/index.js +7 -7
  80. package/dist/types/main.d.ts +20 -19
  81. package/dist/types/surfboard.d.ts +3 -2
  82. package/package.json +1 -2
  83. package/dist/chunks/code-editor-BYVorgOf.cjs +0 -138
  84. package/dist/chunks/dashboard-DGX9b3T-.cjs +0 -1402
  85. package/dist/chunks/dashboard-controls-DNoMwxMy.cjs +0 -36
  86. package/dist/chunks/dashboard-controls-DPLepxZy.js +0 -2237
  87. package/dist/chunks/dashboard-json-4LbKuMSm.cjs +0 -1
  88. package/dist/chunks/index-jSrCwPQz.cjs +0 -31
  89. package/dist/chunks/report-preferences-dialog-CBMox_qt.cjs +0 -1
@@ -1,31 +1,31 @@
1
1
  import { jsx as e, jsxs as n, Fragment as Te } from "react/jsx-runtime";
2
2
  import * as Gc from "react";
3
3
  import nn, { useState as K, useEffect as De, useRef as Re, useCallback as Fe, useMemo as ce, useId as Ri, useContext as br, Suspense as Hc } from "react";
4
- import { c_ as Pi, aH as Nn, aI as Cn, aJ as wn, aK as Sn, aL as Vn, aF as os, bk as Pt, bl as Qt, c$ as Li, d0 as as, aG as it, d1 as Vi, d2 as ss, b4 as Da, aZ as Ct, cg as yr, b2 as sa, bm as ra, bi as _t, d3 as cs, d4 as Bi, d5 as Qc, d6 as Yi, d7 as Wc, d8 as Jc, d9 as Xc, da as Zc, db as ed, dc as sr, dd as rs, az as jn, an as _i, de as td, df as nd, dg as $i, dh as qi, di as zi, dj as ad, dk as sd, dl as rd, dm as ld, cO as vr, b1 as ji, b8 as Ki, bj as Kn, dn as Dn, dp as Mn, dq as $a, dr as an, ds as ta, dt as rr, du as id, c8 as wa, dv as Ui, dw as Pl, dx as Ll, bf as Zn, aN as cn, aO as Nt, dy as od, dz as Gi, dA as Hi, bY as lt, dB as qt, dC as cd, dD as Qi, dE as dd, dF as Wi, dG as ud, dH as md, dI as hd, aD as Ji, dJ as pd, dK as fd, dL as gd, dM as xd, dN as bd, dO as yd, dP as Ps, dQ as vd, dR as Vl, dS as Nd, dT as Bl, dU as Cd, bh as Et, dV as wd, cd as la, ce as ia, cf as oa, dW as Nr, dX as Sd, dY as Cr, bJ as wr, aM as Sr, dZ as Td, d_ as kd, d$ as Tr, e0 as Dd, e1 as Md, e2 as Xi, e3 as Zi, e4 as eo, e5 as to, e6 as Jt, e7 as Id, e8 as Ed, e9 as Ad, ea as Od, eb as no, ec as ao, r as so, ed as ro, ee as Fd, ef as Rd, eg as Pd, eh as Ma, M as Ld, ei as Vd, ej as Bd, ek as Yl, el as Yd, E as xs, e as kr, em as _d, en as Dr, bB as $d, eo as _l, I as bt, ep as qd, eq as zd, er as lo, es as io, et as jd, eu as Mr, ev as Ir, ew as oo, ex as co, ey as $l, ez as qa, eA as Kd, eB as Ud, eC as Gd, eD as Hd, eE as Qd, eF as ds, eG as Wd, eH as Jd, eI as uo, eJ as mo, eK as Xd, eL as Zd, cr as eu, eM as tu, eN as ho, eO as nu, eP as au, cs as bs, eQ as ys, bC as Fn, bD as $t, eR as Er, eS as Bn, eT as Yn, eU as Tn, eV as na, eW as su, eX as ru, eY as lu, eZ as iu, e_ as ou, e$ as cu, f0 as ql, bq as sn, br as rn, bs as ln, f1 as du, f2 as po, f3 as uu, f4 as mu, f5 as fo, f6 as hu, f7 as pu, f8 as fu, f9 as gu, fa as Ls, fb as xu, fc as bu, fd as vs, fe as yu, ff as go, fg as vu, fh as Nu, fi as Cu, fj as wu, fk as Su, fl as Tu, fm as ku, fn as lr, fo as Du, fp as Mu, fq as ir, fr as Iu, fs as Eu, ft as Au, fu as Ou, fv as zl, b3 as or, a$ as kn, aP as Fu, aQ as Ru, aS as Pu, aT as Lu, aU as Vu, aV as Bu, aW as Yu, aX as _u, aY as $u, b_ as qu, fw as zu, fx as ju, fy as Ia, fz as Ea, fA as Aa, cH as _n, ci as Ar, cj as Ku, ck as xo, cl as bo, cm as yo, bE as Uu, bF as Gu, fB as Hu, fC as Ns, fD as dt, fE as ut, fF as mt, fG as Qu, fH as Wu, fI as vo, fJ as No, fK as Co, fL as Ju, fM as Xu, fN as cr, fO as Zu, fP as em, fQ as tm, fR as nm, fS as am, fT as sm, fU as rm, fV as lm, fW as im, fX as om, fY as cm, fZ as dm, f_ as An, f$ as va, g0 as um, g1 as jl, g2 as mm, g3 as hm, g4 as Vs, g5 as Kl, g6 as pm, g7 as fm, g8 as gm, g9 as xm, ga as bm, aB as Or, aC as Oa, gb as Bs, gc as wo, b6 as ym, gd as us, ge as vm, gf as So, gg as To, gh as Nm, gi as Cm, ar as wm, gj as Za, gk as Sm, gl as Ul, gm as Tm, gn as km, go as Gl, gp as Dm, gq as Mm, gr as Im, gs as Em, gt as Am, aR as ko, gu as Om, gv as Fm, gw as Rm, gx as Pm, gy as Lm, gz as Vm, gA as Bm, gB as Ym, gC as Do, gD as _m, gE as $m, gF as Cs, cI as ws, gG as Mo, gH as qm, gI as zm, gJ as Io, gK as jm, gL as Km, gM as Ss, gN as Um, gO as Gm, gP as Hm, gQ as Qm, gR as aa, gS as Hl, gT as Eo, gU as Wm, cu as Jm, gV as Ao, gW as Oo, gX as ls, gY as Fo, gZ as Ro, g_ as Xm, g$ as Ql, h0 as Zm, h1 as eh, h2 as is, h3 as th, h4 as Fr, h5 as nh, h6 as ms, h as Fa, i as Ra, k as Pa, j as La, l as Va, m as Ba, h7 as ah, h8 as Ya, h9 as bn, ha as dr, hb as ur, hc as _a, hd as Po, he as sh, hf as Ys, hg as _s, hh as rh, hi as $s, hj as lh, hk as Wl, hl as Jl, hm as ih, cQ as oh, hn as ch, cR as dh, cT as uh, cU as mh, av as hh, ho as ph, hp as fh, hq as gh, hr as xh, bX as Ts, hs as ks, ht as Xl, hu as Lo, cK as qs, hv as bh, hw as yh, hx as vh, F as Nh, by as Ch, hy as wh, hz as Sh } from "./dashboard-ECv6p6DC.js";
5
- import { c as Ue, C as Dt, X as st } from "./index-xHCrHprY.js";
6
- import { D as Se, B as Z, N as hs, H as za, c as U, aN as Th, O as $, _ as se, $ as re, a0 as le, a1 as ie, a2 as j, E as L, Y as Lt, Q as jt, V as Vt, W as Bt, P as Mt, a as Yt, b as It, aG as Sa, aO as Rr, aP as Vo, aD as Pr, aB as kh, Z as Be, aQ as Dh, L as dn, C as $n, T as ca, F as da, G as Kt, I as on, d as un, u as ve, R as ps, aR as Lr, A as Bo, X as qn, M as Vr, S as zn, aH as Pn, aS as Mh, aT as Ih, aU as Yo, ad as Eh, aJ as Ah, aV as Oh, aW as Fh, aX as Zl, aY as Rh, aZ as Ph, a_ as Lh, a$ as Vh, b0 as Bh, b1 as Yh, b2 as ei, b3 as _h, b4 as ti, b5 as ua, b6 as $h, a3 as Ke, b7 as qh, b8 as Br, b9 as mr, ba as _o, bb as yn, bc as es, bd as $o, be as zh, bf as qo, bg as jh, bh as Kh, bi as zt, bj as Uh, K as zo, bk as gt, bl as jo, w as ni, bm as Gh, bn as Hh, bo as Qh, bp as Wh, bq as Jh, br as Xh, bs as Zh, bt as ep, bu as tp, bv as np, bw as ap, bx as sp, by as rp, bz as lp, bA as ai, bB as ip, bC as op, bD as cp, bE as dp, bF as up, J as Ds, au as mp } from "./code-editor-B4gTfvc5.js";
7
- import "./validators-wZ2WlNHc.js";
8
- import "./analyze-result-contract-DUv3QnMl.js";
4
+ import { c_ as Pi, aH as Nn, aI as Cn, aJ as wn, aK as Sn, aL as Vn, aF as os, bk as Pt, bl as Qt, c$ as Li, d0 as as, aG as it, d1 as Vi, d2 as ss, b4 as Da, aZ as Ct, cg as yr, b2 as sa, bm as ra, bi as _t, d3 as cs, d4 as Bi, d5 as Qc, d6 as Wc, d7 as Yi, d8 as Jc, d9 as Xc, da as Zc, db as ed, dc as sr, dd as rs, az as jn, n as _i, de as td, df as nd, dg as $i, dh as zi, di as qi, dj as ad, dk as sd, dl as rd, dm as ld, cO as vr, b1 as ji, b8 as Ki, bj as Kn, dn as Dn, dp as Mn, dq as $a, dr as an, ds as ta, dt as rr, du as id, c8 as wa, dv as Ui, dw as Pl, dx as Ll, bf as Zn, aN as cn, aO as Nt, dy as od, dz as Gi, dA as Hi, bY as lt, dB as zt, dC as cd, dD as Qi, dE as dd, dF as Wi, dG as ud, dH as md, dI as hd, aD as Ji, dJ as pd, dK as fd, dL as gd, dM as xd, dN as bd, dO as yd, dP as Ps, dQ as vd, dR as Vl, dS as Nd, dT as Bl, dU as Cd, bh as Et, dV as wd, cd as la, ce as ia, cf as oa, dW as Nr, dX as Sd, dY as Cr, bJ as wr, aM as Sr, dZ as Td, d_ as kd, d$ as Tr, e0 as Dd, e1 as Md, e2 as Xi, e3 as Zi, e4 as eo, e5 as to, e6 as Jt, e7 as Id, e8 as Ed, e9 as Ad, ea as Od, eb as no, ec as ao, H as so, ed as ro, ee as Fd, ef as Rd, eg as Pd, eh as Ma, M as Ld, ei as Vd, ej as Bd, ek as Yl, el as Yd, E as xs, e as kr, em as _d, en as Dr, bB as $d, eo as _l, I as bt, ep as zd, eq as qd, er as lo, es as io, et as jd, eu as Mr, ev as Ir, ew as oo, ex as co, ey as $l, ez as za, eA as Kd, eB as Ud, eC as Gd, eD as Hd, eE as Qd, eF as ds, eG as Wd, eH as Jd, eI as uo, eJ as mo, eK as Xd, eL as Zd, cr as eu, eM as tu, eN as ho, eO as nu, eP as au, cs as bs, eQ as ys, bC as Fn, bD as $t, eR as Er, eS as Bn, eT as Yn, eU as Tn, eV as na, eW as su, eX as ru, eY as lu, eZ as iu, e_ as ou, e$ as cu, f0 as zl, bq as sn, br as rn, bs as ln, f1 as du, f2 as po, f3 as uu, f4 as mu, f5 as fo, f6 as hu, f7 as pu, f8 as fu, f9 as gu, fa as Ls, fb as xu, fc as bu, fd as vs, fe as yu, ff as go, fg as vu, fh as Nu, fi as Cu, fj as wu, fk as Su, fl as Tu, fm as ku, fn as lr, fo as Du, fp as Mu, fq as ir, fr as Iu, fs as Eu, ft as Au, fu as Ou, fv as ql, b3 as or, a$ as kn, aP as Fu, aQ as Ru, aS as Pu, aT as Lu, aU as Vu, aV as Bu, aW as Yu, aX as _u, aY as $u, b_ as zu, fw as qu, fx as ju, fy as Ia, fz as Ea, fA as Aa, cH as _n, ci as Ar, cj as Ku, ck as xo, cl as bo, cm as yo, bE as Uu, bF as Gu, fB as Hu, fC as Ns, fD as dt, fE as ut, fF as mt, fG as Qu, fH as Wu, fI as vo, fJ as No, fK as Co, fL as Ju, fM as Xu, fN as cr, fO as Zu, fP as em, fQ as tm, fR as nm, fS as am, fT as sm, fU as rm, fV as lm, fW as im, fX as om, fY as cm, fZ as dm, f_ as An, f$ as va, g0 as um, g1 as jl, g2 as mm, g3 as hm, g4 as Vs, g5 as Kl, g6 as pm, g7 as fm, g8 as gm, g9 as xm, ga as bm, aB as Or, aC as Oa, gb as Bs, gc as wo, b6 as ym, gd as us, ge as vm, gf as So, gg as To, gh as Nm, gi as Cm, V as wm, gj as Za, gk as Sm, gl as Ul, gm as Tm, gn as km, go as Gl, gp as Dm, gq as Mm, gr as Im, gs as Em, gt as Am, aR as ko, gu as Om, gv as Fm, gw as Rm, gx as Pm, gy as Lm, gz as Vm, gA as Bm, gB as Ym, gC as _m, gD as Do, gE as $m, gF as zm, gG as Cs, cI as ws, gH as Mo, gI as qm, gJ as jm, gK as Io, gL as Km, gM as Um, gN as Ss, gO as Gm, gP as Hm, gQ as Qm, gR as Wm, gS as Jm, gT as Hl, gU as aa, gV as Eo, gW as Xm, cu as Zm, gX as Ao, gY as Oo, gZ as ls, g_ as Fo, g$ as Ro, h0 as Ql, h1 as eh, h2 as th, h3 as is, h4 as nh, h5 as Fr, h6 as ah, h7 as ms, h as Fa, i as Ra, k as Pa, j as La, l as Va, m as Ba, h8 as sh, h9 as Ya, ha as bn, hb as dr, hc as ur, hd as _a, he as Po, hf as rh, hg as Ys, hh as _s, hi as lh, hj as $s, hk as ih, hl as Wl, hm as Jl, hn as oh, cQ as ch, ho as dh, cR as uh, cT as mh, cU as hh, u as ph, hp as fh, hq as gh, hr as xh, hs as bh, bX as Ts, ht as ks, hu as Xl, hv as Lo, cK as zs, hw as yh, hx as vh, hy as Nh, F as Ch, by as wh, hz as Sh, hA as Th } from "./index-srGACKDr.js";
5
+ import { c as Ue, C as Dt, X as st } from "./x-CXDkqdur.js";
6
+ import { E as Se, B as Z, N as hs, H as qa, c as U, aM as kh, O as $, _ as se, $ as re, a0 as le, a1 as ie, a2 as j, D as L, Y as Lt, Q as jt, V as Vt, W as Bt, P as Mt, a as Yt, b as It, aF as Sa, aN as Rr, aO as Vo, aC as Pr, aA as Dh, Z as Be, aP as Mh, L as dn, C as $n, T as ca, F as da, G as Kt, I as on, d as un, u as ve, R as ps, aQ as Lr, z as Bo, X as zn, M as Vr, S as qn, aG as Pn, aR as Ih, aS as Eh, aT as Yo, ad as Ah, aI as Oh, aU as Fh, aV as Rh, aW as Zl, aX as Ph, aY as Lh, aZ as Vh, a_ as Bh, a$ as Yh, b0 as _h, b1 as ei, b2 as $h, b3 as ti, b4 as ua, b5 as zh, a3 as Ke, b6 as qh, b7 as Br, b8 as mr, b9 as _o, ba as yn, bb as es, bc as $o, bd as jh, be as zo, bf as Kh, bg as Uh, bh as qt, bi as Gh, K as qo, bj as gt, bk as jo, r as ni, bl as Hh, bm as Qh, bn as Wh, bo as Jh, bp as Xh, bq as Zh, br as ep, bs as tp, bt as np, bu as ap, bv as sp, bw as rp, bx as lp, by as ip, bz as ai, bA as op, bB as cp, bC as dp, bD as up, bE as mp, J as Ds, au as hp } from "./switch-Bz2uj3q0.js";
7
+ import "./validators-Cs74WVie.js";
8
+ import "./analyze-result-contract-T-0Ntzys.js";
9
9
  import { DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as hr } from "../value-format-preferences/index.js";
10
- import { C as Ut, M as Ko, a as Uo, E as pr, S as Ms } from "./search-DHZCro8B.js";
11
- import { f as hp, F as pp, g as fp, V as Go, e as gp, C as xp, h as bp } from "./editor-action-buttons-DpA5PdEo.js";
10
+ import { C as Ut, M as Ko, a as Uo, E as pr, S as Ms } from "./search-BHsQIWBV.js";
11
+ import { f as pp, F as fp, g as gp, V as Go, e as xp, C as bp, h as yp } from "./editor-action-buttons-BbVgPOda.js";
12
12
  import { h as ma } from "./card-config-utils-BYZ5MJOh.js";
13
- import { createPortal as yp } from "react-dom";
14
- import "./index-If0wlXGi.js";
15
- import { g as si, A as vp, r as Np, b as zs } from "./temporal-bucket-authoring-BUZMuVca.js";
16
- import "./temporal-result-owner-Cb27SSG9.js";
13
+ import { createPortal as vp } from "react-dom";
14
+ import "./index-CJdxSyQq.js";
15
+ import { g as si, A as Np, b as Cp, r as qs } from "./temporal-bucket-authoring-CgOuakGW.js";
16
+ import "./temporal-result-owner-6peubmhU.js";
17
17
  import "../briefings/index.js";
18
- import { b as Cp, r as wp } from "./presentation-execution-CGlb7YZ6.js";
19
- import { D as ri } from "./metric-comparison-BJ_Qu1ZF.js";
20
- import { P as Sp } from "./palette-jqaAcwiQ.js";
21
- import { a as Tp } from "./common-types-DFsDdpH7.js";
18
+ import { b as wp, r as Sp } from "./presentation-execution-BLfPTGX_.js";
19
+ import { D as ri } from "./metric-comparison-97zHGEx5.js";
20
+ import { P as Tp } from "./palette-Cp1hqZtm.js";
21
+ import { a as kp } from "./common-types-B7Jk3Rtj.js";
22
22
  /**
23
23
  * @license lucide-react v0.453.0 - ISC
24
24
  *
25
25
  * This source code is licensed under the ISC license.
26
26
  * See the LICENSE file in the root directory of this source tree.
27
27
  */
28
- const kp = Ue("ArrowDownAZ", [
28
+ const Dp = Ue("ArrowDownAZ", [
29
29
  ["path", { d: "m3 16 4 4 4-4", key: "1co6wj" }],
30
30
  ["path", { d: "M7 20V4", key: "1yoxec" }],
31
31
  ["path", { d: "M20 8h-5", key: "1vsyxs" }],
@@ -38,7 +38,7 @@ const kp = Ue("ArrowDownAZ", [
38
38
  * This source code is licensed under the ISC license.
39
39
  * See the LICENSE file in the root directory of this source tree.
40
40
  */
41
- const Dp = Ue("ArrowUpAZ", [
41
+ const Mp = Ue("ArrowUpAZ", [
42
42
  ["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
43
43
  ["path", { d: "M7 4v16", key: "1glfcx" }],
44
44
  ["path", { d: "M20 8h-5", key: "1vsyxs" }],
@@ -90,7 +90,7 @@ const Yr = Ue("Columns3", [
90
90
  * This source code is licensed under the ISC license.
91
91
  * See the LICENSE file in the root directory of this source tree.
92
92
  */
93
- const Mp = Ue("Component", [
93
+ const Ip = Ue("Component", [
94
94
  [
95
95
  "path",
96
96
  {
@@ -126,7 +126,7 @@ const Mp = Ue("Component", [
126
126
  * This source code is licensed under the ISC license.
127
127
  * See the LICENSE file in the root directory of this source tree.
128
128
  */
129
- const Ip = Ue("FileCode2", [
129
+ const Ep = Ue("FileCode2", [
130
130
  ["path", { d: "M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4", key: "1pf5j1" }],
131
131
  ["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
132
132
  ["path", { d: "m5 12-3 3 3 3", key: "oke12k" }],
@@ -138,7 +138,7 @@ const Ip = Ue("FileCode2", [
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 Ep = Ue("FileJson2", [
141
+ const Ap = Ue("FileJson2", [
142
142
  ["path", { d: "M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4", key: "1pf5j1" }],
143
143
  ["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
144
144
  [
@@ -156,7 +156,7 @@ const Ep = Ue("FileJson2", [
156
156
  * This source code is licensed under the ISC license.
157
157
  * See the LICENSE file in the root directory of this source tree.
158
158
  */
159
- const Ap = Ue("Fullscreen", [
159
+ const Op = Ue("Fullscreen", [
160
160
  ["path", { d: "M3 7V5a2 2 0 0 1 2-2h2", key: "aa7l1z" }],
161
161
  ["path", { d: "M17 3h2a2 2 0 0 1 2 2v2", key: "4qcy5o" }],
162
162
  ["path", { d: "M21 17v2a2 2 0 0 1-2 2h-2", key: "6vwrx8" }],
@@ -169,7 +169,7 @@ const Ap = Ue("Fullscreen", [
169
169
  * This source code is licensed under the ISC license.
170
170
  * See the LICENSE file in the root directory of this source tree.
171
171
  */
172
- const Op = Ue("GitCompareArrows", [
172
+ const Fp = Ue("GitCompareArrows", [
173
173
  ["circle", { cx: "5", cy: "6", r: "3", key: "1qnov2" }],
174
174
  ["path", { d: "M12 6h5a2 2 0 0 1 2 2v7", key: "1yj91y" }],
175
175
  ["path", { d: "m15 9-3-3 3-3", key: "1lwv8l" }],
@@ -183,7 +183,7 @@ const Op = Ue("GitCompareArrows", [
183
183
  * This source code is licensed under the ISC license.
184
184
  * See the LICENSE file in the root directory of this source tree.
185
185
  */
186
- const Fp = Ue("Hammer", [
186
+ const Rp = Ue("Hammer", [
187
187
  ["path", { d: "m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9", key: "eefl8a" }],
188
188
  ["path", { d: "m18 15 4-4", key: "16gjal" }],
189
189
  [
@@ -200,7 +200,7 @@ const Fp = Ue("Hammer", [
200
200
  * This source code is licensed under the ISC license.
201
201
  * See the LICENSE file in the root directory of this source tree.
202
202
  */
203
- const Rp = Ue("LayoutList", [
203
+ const Pp = Ue("LayoutList", [
204
204
  ["rect", { width: "7", height: "7", x: "3", y: "3", rx: "1", key: "1g98yp" }],
205
205
  ["rect", { width: "7", height: "7", x: "3", y: "14", rx: "1", key: "1bb6yr" }],
206
206
  ["path", { d: "M14 4h7", key: "3xa0d5" }],
@@ -214,7 +214,7 @@ const Rp = Ue("LayoutList", [
214
214
  * This source code is licensed under the ISC license.
215
215
  * See the LICENSE file in the root directory of this source tree.
216
216
  */
217
- const Pp = Ue("ListEnd", [
217
+ const Lp = Ue("ListEnd", [
218
218
  ["path", { d: "M16 12H3", key: "1a2rj7" }],
219
219
  ["path", { d: "M16 6H3", key: "1wxfjs" }],
220
220
  ["path", { d: "M10 18H3", key: "13769t" }],
@@ -238,7 +238,7 @@ const li = Ue("ListFilter", [
238
238
  * This source code is licensed under the ISC license.
239
239
  * See the LICENSE file in the root directory of this source tree.
240
240
  */
241
- const Lp = Ue("ListStart", [
241
+ const Vp = Ue("ListStart", [
242
242
  ["path", { d: "M16 12H3", key: "1a2rj7" }],
243
243
  ["path", { d: "M16 18H3", key: "12xzn7" }],
244
244
  ["path", { d: "M10 6H3", key: "lf8lx7" }],
@@ -251,7 +251,7 @@ const Lp = Ue("ListStart", [
251
251
  * This source code is licensed under the ISC license.
252
252
  * See the LICENSE file in the root directory of this source tree.
253
253
  */
254
- const Vp = Ue("ListX", [
254
+ const Bp = Ue("ListX", [
255
255
  ["path", { d: "M11 12H3", key: "51ecnj" }],
256
256
  ["path", { d: "M16 6H3", key: "1wxfjs" }],
257
257
  ["path", { d: "M16 18H3", key: "12xzn7" }],
@@ -286,7 +286,7 @@ const Ks = Ue("MoveVertical", [
286
286
  * This source code is licensed under the ISC license.
287
287
  * See the LICENSE file in the root directory of this source tree.
288
288
  */
289
- const Bp = Ue("Paintbrush", [
289
+ const Yp = Ue("Paintbrush", [
290
290
  ["path", { d: "m14.622 17.897-10.68-2.913", key: "vj2p1u" }],
291
291
  [
292
292
  "path",
@@ -309,7 +309,7 @@ const Bp = Ue("Paintbrush", [
309
309
  * This source code is licensed under the ISC license.
310
310
  * See the LICENSE file in the root directory of this source tree.
311
311
  */
312
- const Yp = Ue("PanelRightClose", [
312
+ const _p = Ue("PanelRightClose", [
313
313
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
314
314
  ["path", { d: "M15 3v18", key: "14nvp0" }],
315
315
  ["path", { d: "m8 9 3 3-3 3", key: "12hl5m" }]
@@ -320,7 +320,7 @@ const Yp = Ue("PanelRightClose", [
320
320
  * This source code is licensed under the ISC license.
321
321
  * See the LICENSE file in the root directory of this source tree.
322
322
  */
323
- const _p = Ue("PanelRight", [
323
+ const $p = Ue("PanelRight", [
324
324
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
325
325
  ["path", { d: "M15 3v18", key: "14nvp0" }]
326
326
  ]);
@@ -342,7 +342,7 @@ const fr = Ue("RefreshCcw", [
342
342
  * This source code is licensed under the ISC license.
343
343
  * See the LICENSE file in the root directory of this source tree.
344
344
  */
345
- const $p = Ue("Shapes", [
345
+ const zp = Ue("Shapes", [
346
346
  [
347
347
  "path",
348
348
  {
@@ -374,7 +374,7 @@ const qp = Ue("Sigma", [
374
374
  * This source code is licensed under the ISC license.
375
375
  * See the LICENSE file in the root directory of this source tree.
376
376
  */
377
- const zp = Ue("Spline", [
377
+ const jp = Ue("Spline", [
378
378
  ["circle", { cx: "19", cy: "5", r: "2", key: "mhkx31" }],
379
379
  ["circle", { cx: "5", cy: "19", r: "2", key: "v8kfzx" }],
380
380
  ["path", { d: "M5 17A12 12 0 0 1 17 5", key: "1okkup" }]
@@ -385,7 +385,7 @@ const zp = Ue("Spline", [
385
385
  * This source code is licensed under the ISC license.
386
386
  * See the LICENSE file in the root directory of this source tree.
387
387
  */
388
- const jp = Ue("SquareFunction", [
388
+ const Kp = Ue("SquareFunction", [
389
389
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
390
390
  ["path", { d: "M9 17c2 0 2.8-1 2.8-2.8V10c0-2 1-3.3 3.2-3", key: "m1af9g" }],
391
391
  ["path", { d: "M9 11.2h5.7", key: "3zgcl2" }]
@@ -396,27 +396,11 @@ const jp = Ue("SquareFunction", [
396
396
  * This source code is licensed under the ISC license.
397
397
  * See the LICENSE file in the root directory of this source tree.
398
398
  */
399
- const Kp = Ue("SquareSplitVertical", [
399
+ const Up = Ue("SquareSplitVertical", [
400
400
  ["path", { d: "M5 8V5c0-1 1-2 2-2h10c1 0 2 1 2 2v3", key: "1pi83i" }],
401
401
  ["path", { d: "M19 16v3c0 1-1 2-2 2H7c-1 0-2-1-2-2v-3", key: "ido5k7" }],
402
402
  ["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }]
403
403
  ]);
404
- /**
405
- * @license lucide-react v0.453.0 - ISC
406
- *
407
- * This source code is licensed under the ISC license.
408
- * See the LICENSE file in the root directory of this source tree.
409
- */
410
- const Up = Ue("Tag", [
411
- [
412
- "path",
413
- {
414
- d: "M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",
415
- key: "vktsd0"
416
- }
417
- ],
418
- ["circle", { cx: "7.5", cy: "7.5", r: ".5", fill: "currentColor", key: "kqv944" }]
419
- ]);
420
404
  /**
421
405
  * @license lucide-react v0.453.0 - ISC
422
406
  *
@@ -518,7 +502,7 @@ function Qp({
518
502
  ] })
519
503
  ] }),
520
504
  /* @__PURE__ */ e(hs, {}),
521
- /* @__PURE__ */ e(za, { className: "h-64", children: /* @__PURE__ */ e("div", { className: "space-y-2", children: i.map((h, b) => /* @__PURE__ */ n(
505
+ /* @__PURE__ */ e(qa, { className: "h-64", children: /* @__PURE__ */ e("div", { className: "space-y-2", children: i.map((h, b) => /* @__PURE__ */ n(
522
506
  "div",
523
507
  {
524
508
  className: U(
@@ -739,13 +723,13 @@ function Zp({
739
723
  if ((g = E.source) != null && g.name && ((w = E.target) != null && w.name) && E.joinKeyGroups[0].keys.length === 0) {
740
724
  const D = a.find(
741
725
  (_) => {
742
- var q;
743
- return _.name === ((q = E.source) == null ? void 0 : q.name);
726
+ var z;
727
+ return _.name === ((z = E.source) == null ? void 0 : z.name);
744
728
  }
745
729
  ), F = a.find(
746
730
  (_) => {
747
- var q;
748
- return _.name === ((q = E.target) == null ? void 0 : q.name);
731
+ var z;
732
+ return _.name === ((z = E.target) == null ? void 0 : z.name);
749
733
  }
750
734
  ), V = {
751
735
  id: `key-${Date.now()}`,
@@ -988,7 +972,7 @@ function sf({
988
972
  onCancel: c
989
973
  }) {
990
974
  const { columnGroups: i } = Vi(), l = i.filter(
991
- (F) => F.entityName !== Th
975
+ (F) => F.entityName !== kh
992
976
  ), {
993
977
  joinPlan: o,
994
978
  expandedJoins: d,
@@ -1025,10 +1009,10 @@ function sf({
1025
1009
  ))
1026
1010
  F.target.name && !w.includes(F.target.name) && w.push(F.target.name);
1027
1011
  const D = (F) => {
1028
- const V = F.joinKeyGroups.flatMap((q) => q.keys), Y = V.find(
1029
- (q) => {
1012
+ const V = F.joinKeyGroups.flatMap((z) => z.keys), Y = V.find(
1013
+ (z) => {
1030
1014
  var W, J;
1031
- return ((W = q.source) == null ? void 0 : W.name) && ((J = q.target) == null ? void 0 : J.name);
1015
+ return ((W = z.source) == null ? void 0 : W.name) && ((J = z.target) == null ? void 0 : J.name);
1032
1016
  }
1033
1017
  );
1034
1018
  if (!Y) return null;
@@ -1121,12 +1105,12 @@ function sf({
1121
1105
  "."
1122
1106
  ] })
1123
1107
  ] }) : /* @__PURE__ */ e("div", { className: "max-h-[340px] space-y-1.5 overflow-y-auto", children: o.joins.map((F) => {
1124
- var z;
1108
+ var q;
1125
1109
  const V = a.find(
1126
1110
  (X) => X.name === F.source.name
1127
1111
  ), Y = a.find(
1128
1112
  (X) => X.name === F.target.name
1129
- ), _ = d.has(F.id), q = k.has(F.id) || F.joinKeyGroups.length > 1 || F.joinKeyGroups.some((X) => X.operator !== "AND"), W = D(F), J = F.relationshipCardinality;
1113
+ ), _ = d.has(F.id), z = k.has(F.id) || F.joinKeyGroups.length > 1 || F.joinKeyGroups.some((X) => X.operator !== "AND"), W = D(F), J = F.relationshipCardinality;
1130
1114
  return /* @__PURE__ */ n(
1131
1115
  "div",
1132
1116
  {
@@ -1318,7 +1302,7 @@ function sf({
1318
1302
  ")"
1319
1303
  ] })
1320
1304
  ] }),
1321
- F.source.name && F.target.name && V && Y && /* @__PURE__ */ e("div", { className: "space-y-2", children: q ? /* @__PURE__ */ e(
1305
+ F.source.name && F.target.name && V && Y && /* @__PURE__ */ e("div", { className: "space-y-2", children: z ? /* @__PURE__ */ e(
1322
1306
  of,
1323
1307
  {
1324
1308
  join: F,
@@ -1336,7 +1320,7 @@ function sf({
1336
1320
  }
1337
1321
  ) : /* @__PURE__ */ n(Te, { children: [
1338
1322
  /* @__PURE__ */ e($, { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Match on" }),
1339
- (z = F.joinKeyGroups[0]) != null && z.keys.length ? /* @__PURE__ */ e("div", { className: "min-w-0 space-y-1.5", children: F.joinKeyGroups[0].keys.map(
1323
+ (q = F.joinKeyGroups[0]) != null && q.keys.length ? /* @__PURE__ */ e("div", { className: "min-w-0 space-y-1.5", children: F.joinKeyGroups[0].keys.map(
1340
1324
  (X, H) => /* @__PURE__ */ e(
1341
1325
  Jo,
1342
1326
  {
@@ -1939,7 +1923,7 @@ function uf() {
1939
1923
  },
1940
1924
  ...l,
1941
1925
  selectedEntities: (l == null ? void 0 : l.selectedEntities) || []
1942
- }, b = Wc(h.selectedEntities), M = b.length, v = M === 0 ? "Choose dataset" : M === 1 ? Gs(b[0]) : `${M} datasets`, y = ((C = (A = (k = o == null ? void 0 : o.config) == null ? void 0 : k.joinPlan) == null ? void 0 : A.joins) == null ? void 0 : C.length) ?? 0, T = ii(
1926
+ }, b = Qc(h.selectedEntities), M = b.length, v = M === 0 ? "Choose dataset" : M === 1 ? Gs(b[0]) : `${M} datasets`, y = ((C = (A = (k = o == null ? void 0 : o.config) == null ? void 0 : k.joinPlan) == null ? void 0 : A.joins) == null ? void 0 : C.length) ?? 0, T = ii(
1943
1927
  (P = o == null ? void 0 : o.config) == null ? void 0 : P.joinPlan,
1944
1928
  b
1945
1929
  ), O = T.length > 0, N = !d && (M > 1 || y > 0), x = !!(f != null && f.autoResolved);
@@ -2066,7 +2050,7 @@ function uf() {
2066
2050
  /* @__PURE__ */ e("div", { className: "mb-1.5 flex items-center justify-between", children: /* @__PURE__ */ e("p", { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Join" }) }),
2067
2051
  O ? /* @__PURE__ */ n("div", { className: "space-y-2 rounded-control border border-amber-300/70 bg-amber-50/70 p-2.5 text-[11px] text-amber-950 dark:border-amber-700/70 dark:bg-amber-950/20 dark:text-amber-100", children: [
2068
2052
  /* @__PURE__ */ n("div", { className: "flex gap-2", children: [
2069
- /* @__PURE__ */ e(Qc, { className: "mt-0.5 h-3.5 w-3.5 shrink-0" }),
2053
+ /* @__PURE__ */ e(Wc, { className: "mt-0.5 h-3.5 w-3.5 shrink-0" }),
2070
2054
  /* @__PURE__ */ n("div", { className: "min-w-0", children: [
2071
2055
  /* @__PURE__ */ n("p", { className: "font-medium", children: [
2072
2056
  y,
@@ -2159,7 +2143,7 @@ function mf(t) {
2159
2143
  return t.connectionType && a.push(String(t.connectionType)), t.database && a.push(t.database), t.schema && a.push(t.schema), a.join(" · ");
2160
2144
  }
2161
2145
  function Zo({ isVisible: t }) {
2162
- hp();
2146
+ pp();
2163
2147
  const [a, s] = K(!1);
2164
2148
  return /* @__PURE__ */ n(
2165
2149
  "div",
@@ -2362,7 +2346,7 @@ function Sf({
2362
2346
  Hs
2363
2347
  ), [F, V] = K(!1), [Y, _] = K(
2364
2348
  () => ts("inline-query-session")
2365
- ), q = Re(null), W = Re(null), J = Re(null), z = Re(0), X = Re(0), H = Re(
2349
+ ), z = Re(null), W = Re(null), J = Re(null), q = Re(0), X = Re(0), H = Re(
2366
2350
  ts("inline-run-token")
2367
2351
  ), ue = Re(Y), be = Re(/* @__PURE__ */ new Set()), Me = Re(/* @__PURE__ */ new Map()), Ae = Re(0), Ye = Re(""), Qe = Re(!1), ht = Re(!1), Ge = Re(Hs), Le = Re(!1), We = Re(null), He = Re(() => {
2368
2352
  }), Je = (Wa = d.apiServiceUrl) == null ? void 0 : Wa.replace(/\/$/, ""), fe = Je ? `${Je}/v1/sql/validate` : "/v1/sql/validate", _e = Fe(
@@ -2380,7 +2364,7 @@ function Sf({
2380
2364
  );
2381
2365
  },
2382
2366
  [_e]
2383
- ), ze = Fe((ee) => X.current === ee && !be.current.has(ee), []), G = Fe(
2367
+ ), qe = Fe((ee) => X.current === ee && !be.current.has(ee), []), G = Fe(
2384
2368
  (ee, oe, ae) => {
2385
2369
  Pe(ee, (we) => {
2386
2370
  const Ve = we.timelineSteps.includes(oe) ? we.timelineSteps : [...we.timelineSteps, oe];
@@ -2473,7 +2457,7 @@ function Sf({
2473
2457
  if (!oe)
2474
2458
  return;
2475
2459
  const ae = X.current;
2476
- if (!ze(ae)) {
2460
+ if (!qe(ae)) {
2477
2461
  (Oe = W.current) == null || Oe.call(W, {
2478
2462
  tool: oe,
2479
2463
  toolCallId: ee.toolCallId,
@@ -2530,7 +2514,7 @@ function Sf({
2530
2514
  t,
2531
2515
  Ne,
2532
2516
  w.phase,
2533
- ze,
2517
+ qe,
2534
2518
  ne,
2535
2519
  G
2536
2520
  ]
@@ -2542,7 +2526,7 @@ function Sf({
2542
2526
  if (!ae || ae !== H.current)
2543
2527
  return;
2544
2528
  const we = X.current;
2545
- if (!ze(we))
2529
+ if (!qe(we))
2546
2530
  return;
2547
2531
  const Ve = mi([ee]) || mi(oe);
2548
2532
  if (Ve) {
@@ -2551,15 +2535,15 @@ function Sf({
2551
2535
  }
2552
2536
  Le.current && Ge.current.phase === "self-healing" && He.current(we);
2553
2537
  },
2554
- [ze, ne]
2538
+ [qe, ne]
2555
2539
  ), At = Fe(
2556
2540
  (ee) => {
2557
2541
  if (ne !== ue.current)
2558
2542
  return;
2559
2543
  const oe = X.current;
2560
- ze(oe) && Le.current && Ge.current.phase === "self-healing" && He.current(oe);
2544
+ qe(oe) && Le.current && Ge.current.phase === "self-healing" && He.current(oe);
2561
2545
  },
2562
- [ze, ne]
2546
+ [qe, ne]
2563
2547
  ), {
2564
2548
  setMessages: ot,
2565
2549
  sendMessage: Tt,
@@ -2570,7 +2554,7 @@ function Sf({
2570
2554
  clearError: he
2571
2555
  } = $i({
2572
2556
  id: Y,
2573
- transport: new qi({
2557
+ transport: new zi({
2574
2558
  api: `${d.apiServiceUrl}/v1/assistant`,
2575
2559
  headers: () => ({
2576
2560
  Authorization: `Bearer ${o == null ? void 0 : o.accessToken}`
@@ -2619,7 +2603,7 @@ function Sf({
2619
2603
  ee === "stopped" && Ce && ke();
2620
2604
  return;
2621
2605
  }
2622
- be.current.add(oe), Le.current = !1, z.current += 1, Ye.current = "", g({ status: "idle" }), x(""), he(), ot([]), Pe(oe, (Ve) => ({
2606
+ be.current.add(oe), Le.current = !1, q.current += 1, Ye.current = "", g({ status: "idle" }), x(""), he(), ot([]), Pe(oe, (Ve) => ({
2623
2607
  ...Ve,
2624
2608
  phase: "idle",
2625
2609
  activeStep: "",
@@ -2639,10 +2623,10 @@ function Sf({
2639
2623
  ), tt = Fe(
2640
2624
  async (ee, oe) => {
2641
2625
  var we;
2642
- if (!ze(oe))
2626
+ if (!qe(oe))
2643
2627
  return null;
2644
- const ae = z.current + 1;
2645
- z.current = ae, G(oe, "Validating SQL", {
2628
+ const ae = q.current + 1;
2629
+ q.current = ae, G(oe, "Validating SQL", {
2646
2630
  phase: "validating"
2647
2631
  }), g({ status: "validating" });
2648
2632
  try {
@@ -2654,7 +2638,7 @@ function Sf({
2654
2638
  connectionId: f || void 0
2655
2639
  }
2656
2640
  );
2657
- if (z.current !== ae || !ze(oe))
2641
+ if (q.current !== ae || !qe(oe))
2658
2642
  return null;
2659
2643
  if ((Ve == null ? void 0 : Ve.valid) === !0)
2660
2644
  return g({
@@ -2691,9 +2675,9 @@ function Sf({
2691
2675
  errorCode: $e
2692
2676
  };
2693
2677
  } catch (Ve) {
2694
- if (z.current !== ae || !ze(oe))
2678
+ if (q.current !== ae || !qe(oe))
2695
2679
  return null;
2696
- const $e = kh(
2680
+ const $e = Dh(
2697
2681
  Ve,
2698
2682
  "Validation service unavailable. You can still replace and run."
2699
2683
  );
@@ -2720,7 +2704,7 @@ function Sf({
2720
2704
  [
2721
2705
  o == null ? void 0 : o.accessToken,
2722
2706
  Ne,
2723
- ze,
2707
+ qe,
2724
2708
  f,
2725
2709
  fe,
2726
2710
  Pe,
@@ -2780,12 +2764,12 @@ function Sf({
2780
2764
  He.current = wt, De(() => {
2781
2765
  const ee = N.trim(), oe = X.current;
2782
2766
  if (!ee) {
2783
- if (z.current += 1, Ye.current = "", Ge.current.phase === "error")
2767
+ if (q.current += 1, Ye.current = "", Ge.current.phase === "error")
2784
2768
  return;
2785
2769
  g({ status: "idle" });
2786
2770
  return;
2787
2771
  }
2788
- if (!ze(oe) || Ce)
2772
+ if (!qe(oe) || Ce)
2789
2773
  return;
2790
2774
  const ae = `${oe}:${Ae.current}:${ci(ee)}`;
2791
2775
  if (Ye.current === ae)
@@ -2794,7 +2778,7 @@ function Sf({
2794
2778
  let we = !1;
2795
2779
  return (async () => {
2796
2780
  const $e = await tt(ee, oe);
2797
- if (!$e || we || !ze(oe) || $e.status !== "invalid")
2781
+ if (!$e || we || !qe(oe) || $e.status !== "invalid")
2798
2782
  return;
2799
2783
  if (!ld.has($e.errorCode)) {
2800
2784
  at(
@@ -2854,7 +2838,7 @@ function Sf({
2854
2838
  h,
2855
2839
  Ne,
2856
2840
  Ce,
2857
- ze,
2841
+ qe,
2858
2842
  T,
2859
2843
  N,
2860
2844
  s,
@@ -2882,7 +2866,7 @@ function Sf({
2882
2866
  attemptCount: 0,
2883
2867
  hasTools: !1,
2884
2868
  finalOutcome: "drafting"
2885
- }), Ie(), he(), O(oe), x(""), S(ae), A(we), P(!1), g({ status: "idle" }), z.current += 1, ot([]), V(!0);
2869
+ }), Ie(), he(), O(oe), x(""), S(ae), A(we), P(!1), g({ status: "idle" }), q.current += 1, ot([]), V(!0);
2886
2870
  const rt = bf({
2887
2871
  request: oe,
2888
2872
  mode: ae,
@@ -2944,7 +2928,7 @@ function Sf({
2944
2928
  },
2945
2929
  [ge]
2946
2930
  ), Ua = Fe(() => {
2947
- Ce || (ge("cancelled"), Le.current = !1, z.current += 1, Ye.current = "", Ae.current = 0, y(""), O(""), x(""), S("draft"), E("draft"), A(""), P(!1), g({ status: "idle" }), he(), ot([]), _e((ee) => ({
2931
+ Ce || (ge("cancelled"), Le.current = !1, q.current += 1, Ye.current = "", Ae.current = 0, y(""), O(""), x(""), S("draft"), E("draft"), A(""), P(!1), g({ status: "idle" }), he(), ot([]), _e((ee) => ({
2948
2932
  ...Hs,
2949
2933
  runId: ee.runId
2950
2934
  })));
@@ -2977,7 +2961,7 @@ function Sf({
2977
2961
  return /* @__PURE__ */ n(
2978
2962
  "div",
2979
2963
  {
2980
- ref: q,
2964
+ ref: z,
2981
2965
  className: "relative flex h-7 min-w-0 flex-1 items-center",
2982
2966
  children: [
2983
2967
  /* @__PURE__ */ e(
@@ -2999,7 +2983,7 @@ function Sf({
2999
2983
  }
3000
2984
  ),
3001
2985
  /* @__PURE__ */ n(Mt, { open: F, onOpenChange: Ga, children: [
3002
- /* @__PURE__ */ e(Dh, { asChild: !0, children: /* @__PURE__ */ e("div", { className: "pointer-events-none absolute inset-0" }) }),
2986
+ /* @__PURE__ */ e(Mh, { asChild: !0, children: /* @__PURE__ */ e("div", { className: "pointer-events-none absolute inset-0" }) }),
3003
2987
  /* @__PURE__ */ n("div", { className: "absolute right-1 flex items-center gap-1", children: [
3004
2988
  Hn && /* @__PURE__ */ e(
3005
2989
  Z,
@@ -3033,7 +3017,7 @@ function Sf({
3033
3017
  },
3034
3018
  "aria-label": Ce ? "Stop AI generation" : fa,
3035
3019
  title: Ce ? "Stop AI generation" : fa,
3036
- children: Ce ? /* @__PURE__ */ e(zi, { className: "size-3 fill-current" }) : /* @__PURE__ */ e(ad, { className: "size-3.5" })
3020
+ children: Ce ? /* @__PURE__ */ e(qi, { className: "size-3 fill-current" }) : /* @__PURE__ */ e(ad, { className: "size-3.5" })
3037
3021
  }
3038
3022
  )
3039
3023
  ] }),
@@ -3051,7 +3035,7 @@ function Sf({
3051
3035
  onInteractOutside: (ee) => {
3052
3036
  var ae;
3053
3037
  const oe = ee.target;
3054
- oe && ((ae = q.current) != null && ae.contains(oe)) && ee.preventDefault();
3038
+ oe && ((ae = z.current) != null && ae.contains(oe)) && ee.preventDefault();
3055
3039
  },
3056
3040
  children: /* @__PURE__ */ n("div", { className: "space-y-2", children: [
3057
3041
  /* @__PURE__ */ n("div", { className: "flex items-center justify-between gap-3", children: [
@@ -3440,7 +3424,7 @@ function Mf({
3440
3424
  },
3441
3425
  className: "h-7 w-7 shrink-0 gap-1.5 border border-amber-300/60 bg-amber-50/60 px-0 text-amber-800 hover:bg-amber-100/70 hover:text-amber-900 @[1550px]:w-auto @[1550px]:px-2 dark:border-amber-500/30 dark:bg-amber-500/10 dark:text-amber-300 dark:hover:bg-amber-500/15 dark:hover:text-amber-200",
3442
3426
  children: [
3443
- /* @__PURE__ */ e(pp, { className: "h-3.5 w-3.5", strokeWidth: 1.75 }),
3427
+ /* @__PURE__ */ e(fp, { className: "h-3.5 w-3.5", strokeWidth: 1.75 }),
3444
3428
  /* @__PURE__ */ e("span", { className: "hidden @[1550px]:inline", children: "Dashboard filters off" })
3445
3429
  ]
3446
3430
  }
@@ -3481,7 +3465,7 @@ function If({
3481
3465
  renderCommandBarEnd: t
3482
3466
  } = {}) {
3483
3467
  var Ne, et;
3484
- const a = Ki(), [s, r] = K(!1), [c, i] = K(!1), l = fp(), [o, d] = K(null), u = L((ne) => ne.frame), m = L((ne) => ne.card), {
3468
+ const a = Ki(), [s, r] = K(!1), [c, i] = K(!1), l = gp(), [o, d] = K(null), u = L((ne) => ne.frame), m = L((ne) => ne.card), {
3485
3469
  inlineSqlEditorRef: f,
3486
3470
  inlinePythonEditorRef: p,
3487
3471
  expandedSqlEditorRef: h,
@@ -3553,10 +3537,10 @@ function If({
3553
3537
  setPythonStdOut: V,
3554
3538
  setCardPreferences: Y,
3555
3539
  setCardType: _,
3556
- setCardPython: q,
3540
+ setCardPython: z,
3557
3541
  setShowAIDialog: W,
3558
3542
  setCard: J,
3559
- updateCardInFrame: z
3543
+ updateCardInFrame: q
3560
3544
  } = Se();
3561
3545
  L((ne) => ne.onSave), L((ne) => ne.onClose), L((ne) => ne.actions.setSqlGen);
3562
3546
  const X = L((ne) => ne.runSql), H = L((ne) => ne.actions.setRunSql), ue = L(
@@ -3620,7 +3604,7 @@ function If({
3620
3604
  }), H(!0);
3621
3605
  }, 0);
3622
3606
  }
3623
- function ze(ne) {
3607
+ function qe(ne) {
3624
3608
  Zn(), M("inline"), d(ne);
3625
3609
  }
3626
3610
  function G(ne) {
@@ -3653,7 +3637,7 @@ function If({
3653
3637
  Ll,
3654
3638
  {
3655
3639
  ref: f,
3656
- onExpand: () => ze("sql")
3640
+ onExpand: () => qe("sql")
3657
3641
  },
3658
3642
  `inline-sql-${m.id}`
3659
3643
  ) : null
@@ -3680,7 +3664,7 @@ function If({
3680
3664
  "aria-label": "Expand Python editor",
3681
3665
  title: "Expand Python editor",
3682
3666
  onClick: (ne) => {
3683
- ne.stopPropagation(), ze("python");
3667
+ ne.stopPropagation(), qe("python");
3684
3668
  },
3685
3669
  onPointerDown: (ne) => ne.stopPropagation(),
3686
3670
  className: "inline-flex h-5 w-5 shrink-0 cursor-pointer items-center justify-center rounded-control text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:bg-muted focus-visible:text-foreground focus-visible:outline-none",
@@ -3732,7 +3716,7 @@ function If({
3732
3716
  function pe() {
3733
3717
  const ne = {
3734
3718
  query: /* @__PURE__ */ e(
3735
- qt,
3719
+ zt,
3736
3720
  {
3737
3721
  checked: s,
3738
3722
  onCheckedChange: (je) => r(je === !0),
@@ -4796,7 +4780,7 @@ function ic({
4796
4780
  className: Ln,
4797
4781
  onClick: c,
4798
4782
  children: [
4799
- /* @__PURE__ */ e(Fp, { className: "h-3 w-3" }),
4783
+ /* @__PURE__ */ e(Rp, { className: "h-3 w-3" }),
4800
4784
  "Debug with Assistant"
4801
4785
  ]
4802
4786
  }
@@ -4911,13 +4895,13 @@ function $r(t, a) {
4911
4895
  } : void 0
4912
4896
  };
4913
4897
  }
4914
- const $f = "__editor_sql__", qf = "__editor_python__";
4915
- function zf(t) {
4898
+ const $f = "__editor_sql__", zf = "__editor_python__";
4899
+ function qf(t) {
4916
4900
  var s;
4917
4901
  const a = Sd(t.python || "");
4918
4902
  return {
4919
4903
  sql: (s = t.sql) != null && s.trim() ? $f : "",
4920
- python: a.trim() ? qf : ""
4904
+ python: a.trim() ? zf : ""
4921
4905
  };
4922
4906
  }
4923
4907
  function oc({
@@ -4969,11 +4953,11 @@ function oc({
4969
4953
  ) ?? r.type, [x, R, k, r, S == null ? void 0 : S.slots]), C = A ?? r.type, P = ce(
4970
4954
  () => C === r.type ? r : { ...r, type: C },
4971
4955
  [r, C]
4972
- ), B = P.type === "table" || P.type === "matrixTable" || P.type === "pivotTable" || P.type === "aggregateTable" || P.type === "detailTable", g = ce(() => A !== r.type ? { ...r, type: A } : r, [r, A]), { data: w, isLoading: D, isFetching: F, errorMessage: V, errorSql: Y, pagination: _ } = _t(g), q = C === "matrixTable" && Td(w), W = kd({
4956
+ ), B = P.type === "table" || P.type === "matrixTable" || P.type === "pivotTable" || P.type === "aggregateTable" || P.type === "detailTable", g = ce(() => A !== r.type ? { ...r, type: A } : r, [r, A]), { data: w, isLoading: D, isFetching: F, errorMessage: V, errorSql: Y, pagination: _ } = _t(g), z = C === "matrixTable" && Td(w), W = kd({
4973
4957
  data: w,
4974
4958
  isLoading: D,
4975
4959
  isFetching: F
4976
- }), { handleOpenInEditor: J, handleDebugWithAssistant: z } = $r(V, Y || r.sql || r.python), X = ce(() => (w == null ? void 0 : w.records) || [], [w == null ? void 0 : w.records]), { setCard: H, updateCardInFrame: ue } = Se(), { data: be } = Tr(P), Me = P.id, Ae = P.config, Ye = P.interactionConfig, Qe = P.controls, ht = P.controlBindings, Ge = P.customCfg, Le = P.preferences, We = P.queryConfig, He = zf({
4960
+ }), { handleOpenInEditor: J, handleDebugWithAssistant: q } = $r(V, Y || r.sql || r.python), X = ce(() => (w == null ? void 0 : w.records) || [], [w == null ? void 0 : w.records]), { setCard: H, updateCardInFrame: ue } = Se(), { data: be } = Tr(P), Me = P.id, Ae = P.config, Ye = P.interactionConfig, Qe = P.controls, ht = P.controlBindings, Ge = P.customCfg, Le = P.preferences, We = P.queryConfig, He = qf({
4977
4961
  sql: P.sql,
4978
4962
  python: P.python
4979
4963
  }), Je = He.sql, fe = He.python, _e = w == null ? void 0 : w.records, Pe = ce(
@@ -5000,7 +4984,7 @@ function oc({
5000
4984
  Je,
5001
4985
  fe
5002
4986
  ]
5003
- ), ze = ce(
4987
+ ), qe = ce(
5004
4988
  () => C === "pivotTable" ? Dd({
5005
4989
  data: w,
5006
4990
  card: P,
@@ -5009,7 +4993,7 @@ function oc({
5009
4993
  [P, C, w, F, D]
5010
4994
  ), G = Md(
5011
4995
  P,
5012
- ze,
4996
+ qe,
5013
4997
  (ke = w == null ? void 0 : w.metadata) == null ? void 0 : ke.comparisonMetadata
5014
4998
  ), ye = () => {
5015
4999
  h(!0);
@@ -5100,14 +5084,14 @@ function oc({
5100
5084
  }
5101
5085
  function xt() {
5102
5086
  var he;
5103
- if (w != null && w.records && (w == null ? void 0 : w.records.length) === 0 && !D && !F && !q && C !== "pivotTable")
5087
+ if (w != null && w.records && (w == null ? void 0 : w.records.length) === 0 && !D && !F && !z && C !== "pivotTable")
5104
5088
  return V ? /* @__PURE__ */ e("div", { className: "flex h-full flex-col items-start justify-start overflow-auto p-4", children: /* @__PURE__ */ e(
5105
5089
  _r,
5106
5090
  {
5107
5091
  error: V,
5108
5092
  errorSql: Y || r.sql || r.python,
5109
5093
  onOpenInEditor: J,
5110
- onDebugWithAssistant: z,
5094
+ onDebugWithAssistant: q,
5111
5095
  onSendFeedback: ye,
5112
5096
  showFeedbackButton: !0
5113
5097
  }
@@ -5115,7 +5099,7 @@ function oc({
5115
5099
  /* @__PURE__ */ e(Fd, { className: "h-8 w-8 text-muted-foreground/40" }),
5116
5100
  /* @__PURE__ */ e("p", { className: "text-[12px] text-muted-foreground", children: "No results to display" })
5117
5101
  ] });
5118
- if ((D || F) && (!(w != null && w.records) || w.records.length === 0) && !q)
5102
+ if ((D || F) && (!(w != null && w.records) || w.records.length === 0) && !z)
5119
5103
  return C === "table" || C === "detailTable" ? /* @__PURE__ */ e("div", { className: "relative mb-2 flex h-full min-h-0 w-full flex-1 grow basis-0", children: /* @__PURE__ */ e(Rd, {}) }) : /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(Jt, { size: "md", color: "muted", "aria-label": "Loading data" }) });
5120
5104
  if (!P.id) return null;
5121
5105
  if (C === "custom")
@@ -5471,7 +5455,7 @@ function Gf({
5471
5455
  });
5472
5456
  if (k) {
5473
5457
  l(xi(k)), m(((P = h.preferences) == null ? void 0 : P.customVisualCode) || "");
5474
- const B = qd(k, M);
5458
+ const B = zd(k, M);
5475
5459
  d(xi(B));
5476
5460
  }
5477
5461
  }, R = () => {
@@ -5479,7 +5463,7 @@ function Gf({
5479
5463
  if (u && I(u), o) {
5480
5464
  const k = JSON.parse(
5481
5465
  o
5482
- ), A = zd(
5466
+ ), A = qd(
5483
5467
  JSON.parse(i),
5484
5468
  k
5485
5469
  );
@@ -5557,7 +5541,7 @@ function Qf(t) {
5557
5541
  const a = t.trim().split(/\s+/);
5558
5542
  return a.length > 1 ? (a[0][0] + a[1][0]).toUpperCase() : t.slice(0, 2).toUpperCase();
5559
5543
  }
5560
- function qr({
5544
+ function zr({
5561
5545
  chartType: t,
5562
5546
  chartName: a,
5563
5547
  isCustom: s = !1,
@@ -5630,7 +5614,7 @@ function bi({
5630
5614
  }
5631
5615
  ),
5632
5616
  s && r && /* @__PURE__ */ e("div", { className: "absolute right-1 top-1 z-10", children: /* @__PURE__ */ n(Vt, { children: [
5633
- /* @__PURE__ */ e(Bt, { asChild: !0, children: /* @__PURE__ */ e("span", { className: "flex items-center justify-center", children: /* @__PURE__ */ e(qn, { className: "h-3 w-3 text-muted-foreground" }) }) }),
5617
+ /* @__PURE__ */ e(Bt, { asChild: !0, children: /* @__PURE__ */ e("span", { className: "flex items-center justify-center", children: /* @__PURE__ */ e(zn, { className: "h-3 w-3 text-muted-foreground" }) }) }),
5634
5618
  /* @__PURE__ */ e(Lt, { side: "top", children: r })
5635
5619
  ] }) }),
5636
5620
  /* @__PURE__ */ n(
@@ -5646,7 +5630,7 @@ function bi({
5646
5630
  ),
5647
5631
  children: [
5648
5632
  /* @__PURE__ */ e(
5649
- qr,
5633
+ zr,
5650
5634
  {
5651
5635
  chartType: t,
5652
5636
  chartName: a,
@@ -5859,7 +5843,7 @@ function Zf({
5859
5843
  if (b === "custom" && M) {
5860
5844
  const A = io(M);
5861
5845
  return A || /* @__PURE__ */ e(
5862
- qr,
5846
+ zr,
5863
5847
  {
5864
5848
  chartName: M,
5865
5849
  isCustom: !0,
@@ -5867,7 +5851,7 @@ function Zf({
5867
5851
  }
5868
5852
  );
5869
5853
  }
5870
- return /* @__PURE__ */ e($p, { className: "h-4 w-4" });
5854
+ return /* @__PURE__ */ e(zp, { className: "h-4 w-4" });
5871
5855
  }, [b, M]);
5872
5856
  return {
5873
5857
  displayChartType: b,
@@ -5983,7 +5967,7 @@ function eg({
5983
5967
  className: "absolute right-10 top-1/2 z-10 flex max-w-[140px] -translate-y-1/2 items-center gap-1 rounded-full border bg-background py-0.5 pl-2 pr-1 text-[10px] text-muted-foreground shadow-sm",
5984
5968
  title: u,
5985
5969
  children: [
5986
- /* @__PURE__ */ e(qa, { className: "h-2.5 w-2.5 shrink-0" }),
5970
+ /* @__PURE__ */ e(za, { className: "h-2.5 w-2.5 shrink-0" }),
5987
5971
  /* @__PURE__ */ e("span", { className: "truncate", children: u }),
5988
5972
  /* @__PURE__ */ e(
5989
5973
  "button",
@@ -6224,7 +6208,7 @@ function hc({
6224
6208
  ),
6225
6209
  children: [
6226
6210
  A ? /* @__PURE__ */ e(A, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ e(
6227
- qr,
6211
+ zr,
6228
6212
  {
6229
6213
  chartName: k.label,
6230
6214
  isCustom: !0,
@@ -6350,7 +6334,7 @@ function ng() {
6350
6334
  }
6351
6335
  return /* @__PURE__ */ e(Te, { children: a === "funnel" ? l() : a === "bullet" ? o() : i() });
6352
6336
  }
6353
- function zr({
6337
+ function qr({
6354
6338
  className: t,
6355
6339
  triggerVariant: a = "icon",
6356
6340
  label: s = "Display Options"
@@ -6376,7 +6360,7 @@ function zr({
6376
6360
  variant: "ghost",
6377
6361
  className: "h-7 w-full justify-start gap-2 px-2 text-[13px]",
6378
6362
  children: [
6379
- /* @__PURE__ */ e(zn, { className: "h-3.5 w-3.5" }),
6363
+ /* @__PURE__ */ e(qn, { className: "h-3.5 w-3.5" }),
6380
6364
  /* @__PURE__ */ e("span", { children: s })
6381
6365
  ]
6382
6366
  }
@@ -6385,7 +6369,7 @@ function zr({
6385
6369
  {
6386
6370
  className: "h-7 w-7 p-0",
6387
6371
  tooltip: "Display Options",
6388
- children: /* @__PURE__ */ e(zn, { className: "h-3.5 w-3.5" })
6372
+ children: /* @__PURE__ */ e(qn, { className: "h-3.5 w-3.5" })
6389
6373
  }
6390
6374
  ) }),
6391
6375
  /* @__PURE__ */ n(oa, { align: "end", className: "w-64", children: [
@@ -6393,7 +6377,7 @@ function zr({
6393
6377
  /* @__PURE__ */ e($t, {}),
6394
6378
  /* @__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" }) }),
6395
6379
  /* @__PURE__ */ n(
6396
- qt,
6380
+ zt,
6397
6381
  {
6398
6382
  checked: u,
6399
6383
  onCheckedChange: (E) => {
@@ -6408,7 +6392,7 @@ function zr({
6408
6392
  }
6409
6393
  ),
6410
6394
  /* @__PURE__ */ n(
6411
- qt,
6395
+ zt,
6412
6396
  {
6413
6397
  checked: m,
6414
6398
  onCheckedChange: (E) => {
@@ -6423,7 +6407,7 @@ function zr({
6423
6407
  }
6424
6408
  ),
6425
6409
  /* @__PURE__ */ n(
6426
- qt,
6410
+ zt,
6427
6411
  {
6428
6412
  checked: f,
6429
6413
  onCheckedChange: (E) => {
@@ -6438,7 +6422,7 @@ function zr({
6438
6422
  }
6439
6423
  ),
6440
6424
  /* @__PURE__ */ n(
6441
- qt,
6425
+ zt,
6442
6426
  {
6443
6427
  checked: p,
6444
6428
  onCheckedChange: (E) => {
@@ -6453,7 +6437,7 @@ function zr({
6453
6437
  }
6454
6438
  ),
6455
6439
  /* @__PURE__ */ n(
6456
- qt,
6440
+ zt,
6457
6441
  {
6458
6442
  checked: h,
6459
6443
  onCheckedChange: (E) => {
@@ -6534,7 +6518,7 @@ function jr({
6534
6518
  const E = S.find((A) => A.id === x);
6535
6519
  if (!E)
6536
6520
  return;
6537
- const k = Mh(
6521
+ const k = Ih(
6538
6522
  E,
6539
6523
  M
6540
6524
  );
@@ -6740,7 +6724,7 @@ function og({
6740
6724
  ), m = cu({
6741
6725
  sql: t.sql,
6742
6726
  controlBindings: t.controlBindings
6743
- }), f = Ih(t), p = new Set(
6727
+ }), f = Eh(t), p = new Set(
6744
6728
  s.map((O) => fs(O.controlId, O.target))
6745
6729
  ), h = o.some(
6746
6730
  (O) => Yo({
@@ -6848,7 +6832,7 @@ function og({
6848
6832
  }
6849
6833
  return /* @__PURE__ */ n("div", { className: "space-y-4", children: [
6850
6834
  b > 0 ? /* @__PURE__ */ n("div", { className: "flex items-start gap-2 rounded-md border border-amber-200 bg-amber-50 px-3 py-2 text-xs text-amber-950", children: [
6851
- /* @__PURE__ */ e(ql, { className: "mt-0.5 h-3.5 w-3.5 shrink-0" }),
6835
+ /* @__PURE__ */ e(zl, { className: "mt-0.5 h-3.5 w-3.5 shrink-0" }),
6852
6836
  /* @__PURE__ */ n("span", { children: [
6853
6837
  b,
6854
6838
  " ",
@@ -6859,7 +6843,7 @@ function og({
6859
6843
  s.length === 0 ? /* @__PURE__ */ e("div", { className: "rounded-md border border-dashed p-3 text-sm text-muted-foreground", children: "This card is not using any controls yet." }) : s.map((O, N) => {
6860
6844
  const x = f[O.target] || [], I = o.find(
6861
6845
  (g) => g.id === O.controlId
6862
- ), S = I ? Eh(I) : null, R = (S == null ? void 0 : S.source.kind) === "manual" ? S.source.options : [], E = M(O.target), k = Array.from(
6846
+ ), S = I ? Ah(I) : null, R = (S == null ? void 0 : S.source.kind) === "manual" ? S.source.options : [], E = M(O.target), k = Array.from(
6863
6847
  /* @__PURE__ */ new Set([
6864
6848
  ...R.map((g) => g.value),
6865
6849
  ...Object.keys(O.mapping)
@@ -6947,40 +6931,40 @@ function og({
6947
6931
  se,
6948
6932
  {
6949
6933
  value: D || "__none__",
6950
- onValueChange: (_) => v(N, (q) => {
6951
- if (q.target === "config_metric_selector") {
6952
- const J = { ...q.mapping };
6934
+ onValueChange: (_) => v(N, (z) => {
6935
+ if (z.target === "config_metric_selector") {
6936
+ const J = { ...z.mapping };
6953
6937
  if (_ === "__none__")
6954
6938
  delete J[g.value];
6955
6939
  else {
6956
- const z = Y.find(
6940
+ const q = Y.find(
6957
6941
  (X) => X.value === _
6958
6942
  );
6959
- z != null && z.target ? J[g.value] = z.target : delete J[g.value];
6943
+ q != null && q.target ? J[g.value] = q.target : delete J[g.value];
6960
6944
  }
6961
6945
  return {
6962
- ...q,
6946
+ ...z,
6963
6947
  mapping: J
6964
6948
  };
6965
6949
  }
6966
- if (q.target === "config_field_selector") {
6967
- const J = { ...q.mapping };
6950
+ if (z.target === "config_field_selector") {
6951
+ const J = { ...z.mapping };
6968
6952
  if (_ === "__none__")
6969
6953
  delete J[g.value];
6970
6954
  else {
6971
- const z = Y.find(
6955
+ const q = Y.find(
6972
6956
  (X) => X.value === _
6973
6957
  );
6974
- z != null && z.target ? J[g.value] = z.target : delete J[g.value];
6958
+ q != null && q.target ? J[g.value] = q.target : delete J[g.value];
6975
6959
  }
6976
6960
  return {
6977
- ...q,
6961
+ ...z,
6978
6962
  mapping: J
6979
6963
  };
6980
6964
  }
6981
- const W = { ...q.mapping };
6965
+ const W = { ...z.mapping };
6982
6966
  return _ === "__none__" ? delete W[g.value] : W[g.value] = _, {
6983
- ...q,
6967
+ ...z,
6984
6968
  mapping: W
6985
6969
  };
6986
6970
  }),
@@ -6994,7 +6978,7 @@ function og({
6994
6978
  }
6995
6979
  ),
6996
6980
  F ? /* @__PURE__ */ n("div", { className: "flex items-center gap-1.5 text-[11px] text-amber-700", children: [
6997
- /* @__PURE__ */ e(ql, { className: "h-3 w-3 shrink-0" }),
6981
+ /* @__PURE__ */ e(zl, { className: "h-3 w-3 shrink-0" }),
6998
6982
  /* @__PURE__ */ n("span", { children: [
6999
6983
  "Needs remap",
7000
6984
  V ? ` · Previously: ${V}` : ""
@@ -7079,7 +7063,7 @@ function ug({
7079
7063
  boundCurrency: f(O)
7080
7064
  });
7081
7065
  if (N)
7082
- return Cp(1e3, N);
7066
+ return wp(1e3, N);
7083
7067
  };
7084
7068
  return l.length === 0 && r.length === 0 ? /* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground", children: "Add a manual enum whose options are ISO currency codes to enable presentation currency bindings." }) : /* @__PURE__ */ n("div", { className: "space-y-3", children: [
7085
7069
  /* @__PURE__ */ n("div", { className: "space-y-1", children: [
@@ -7158,7 +7142,7 @@ function Kr({
7158
7142
  preventPassiveDismissDuringCreate: c,
7159
7143
  resolvedOpen: i,
7160
7144
  setIsCreateFlowActive: l
7161
- } = gp({}), o = L((D) => D.card), d = L((D) => D.frame), u = L(
7145
+ } = xp({}), o = L((D) => D.card), d = L((D) => D.frame), u = L(
7162
7146
  (D) => D.queryResultColumns
7163
7147
  ), m = ve((D) => D.dashboard), p = ve(
7164
7148
  (D) => D.dashboard.controls
@@ -7168,7 +7152,7 @@ function Kr({
7168
7152
  }, [o == null ? void 0 : o.id, i, M]), De(() => {
7169
7153
  !i && M !== null && v(null);
7170
7154
  }, [i, M]);
7171
- const y = ce(() => M ? (d == null ? void 0 : d.cards.find((D) => D.id === M)) || ((o == null ? void 0 : o.id) === M ? o : void 0) : o, [o, d == null ? void 0 : d.cards, M]), T = (y == null ? void 0 : y.controls) || [], O = y ? Ah(m, { excludeCardId: y.id }) : p.map((D) => D.id), N = ((y == null ? void 0 : y.controlBindings) || []).filter(
7155
+ const y = ce(() => M ? (d == null ? void 0 : d.cards.find((D) => D.id === M)) || ((o == null ? void 0 : o.id) === M ? o : void 0) : o, [o, d == null ? void 0 : d.cards, M]), T = (y == null ? void 0 : y.controls) || [], O = y ? Oh(m, { excludeCardId: y.id }) : p.map((D) => D.id), N = ((y == null ? void 0 : y.controlBindings) || []).filter(
7172
7156
  gu
7173
7157
  ), x = ((y == null ? void 0 : y.controlBindings) || []).filter(
7174
7158
  Ls
@@ -7176,7 +7160,7 @@ function Kr({
7176
7160
  card: y,
7177
7161
  controls: T
7178
7162
  }), S = {
7179
- choices: Oh(y),
7163
+ choices: Fh(y),
7180
7164
  targetMap: Object.fromEntries(
7181
7165
  (((g = y == null ? void 0 : y.config) == null ? void 0 : g.groupByColumns) || []).map((D) => [
7182
7166
  D.id,
@@ -7184,7 +7168,7 @@ function Kr({
7184
7168
  ])
7185
7169
  )
7186
7170
  }, R = {
7187
- choices: Fh(y),
7171
+ choices: Rh(y),
7188
7172
  targetMap: Object.fromEntries(
7189
7173
  (((w = y == null ? void 0 : y.config) == null ? void 0 : w.metricColumns) || []).map((D) => [
7190
7174
  D.id,
@@ -7210,7 +7194,7 @@ function Kr({
7210
7194
  }) : y, Y = {
7211
7195
  ...V,
7212
7196
  controls: D,
7213
- controlBindings: Rh(
7197
+ controlBindings: Ph(
7214
7198
  V.controlBindings,
7215
7199
  D
7216
7200
  )
@@ -7222,7 +7206,7 @@ function Kr({
7222
7206
  const F = {
7223
7207
  ...y,
7224
7208
  controlBindings: [
7225
- ...Ph(
7209
+ ...Lh(
7226
7210
  D,
7227
7211
  (y.controlBindings || []).filter(
7228
7212
  (V) => !Ls(V)
@@ -7263,7 +7247,7 @@ function Kr({
7263
7247
  (T.length > 0 || N.length > 0) && "text-primary"
7264
7248
  ),
7265
7249
  children: [
7266
- /* @__PURE__ */ e(zn, { className: "h-3.5 w-3.5" }),
7250
+ /* @__PURE__ */ e(qn, { className: "h-3.5 w-3.5" }),
7267
7251
  /* @__PURE__ */ e("span", { children: s }),
7268
7252
  T.length + N.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: T.length + N.length })
7269
7253
  ]
@@ -7276,7 +7260,7 @@ function Kr({
7276
7260
  "text-primary": T.length > 0 || N.length > 0
7277
7261
  }),
7278
7262
  children: [
7279
- /* @__PURE__ */ e(zn, { className: "h-3.5 w-3.5" }),
7263
+ /* @__PURE__ */ e(qn, { className: "h-3.5 w-3.5" }),
7280
7264
  T.length + N.length > 0 && /* @__PURE__ */ e("span", { className: "absolute -right-1 -top-1 inline-flex h-4 min-w-4 items-center justify-center rounded-full bg-primary px-1 text-[10px] font-medium text-primary-foreground", children: T.length + N.length })
7281
7265
  ]
7282
7266
  }
@@ -7299,7 +7283,7 @@ function Kr({
7299
7283
  ] }),
7300
7284
  /* @__PURE__ */ e("div", { className: "flex-1 overflow-y-auto pt-5", children: /* @__PURE__ */ n("div", { className: "space-y-5 pr-1", children: [
7301
7285
  /* @__PURE__ */ e(
7302
- xp,
7286
+ bp,
7303
7287
  {
7304
7288
  scope: "card",
7305
7289
  card: y,
@@ -7398,13 +7382,13 @@ function pc({
7398
7382
  (o === "xy" || !o) && /* @__PURE__ */ e(ds, { className: "h-3.5 w-3.5" }),
7399
7383
  o === "x" && /* @__PURE__ */ e(Yr, { className: "h-3.5 w-3.5" }),
7400
7384
  o === "y" && /* @__PURE__ */ e(vs, { className: "h-3.5 w-3.5" }),
7401
- o === "none" && /* @__PURE__ */ e(zi, { className: "h-3.5 w-3.5" })
7385
+ o === "none" && /* @__PURE__ */ e(qi, { className: "h-3.5 w-3.5" })
7402
7386
  ]
7403
7387
  }
7404
7388
  ),
7405
7389
  s && /* @__PURE__ */ e(jr, {}),
7406
7390
  r && /* @__PURE__ */ e(Kr, {}),
7407
- c && /* @__PURE__ */ e(zr, {})
7391
+ c && /* @__PURE__ */ e(qr, {})
7408
7392
  ] }) : null;
7409
7393
  }
7410
7394
  function hg({
@@ -7424,8 +7408,8 @@ function hg({
7424
7408
  ((w = s == null ? void 0 : s.customCardPreferences) == null ? void 0 : w.url) || ""
7425
7409
  ), b = (D = h == null ? void 0 : h.visuals) == null ? void 0 : D.find(
7426
7410
  (_) => {
7427
- var q;
7428
- return _.name === ((q = s == null ? void 0 : s.customCardPreferences) == null ? void 0 : q.componentName);
7411
+ var z;
7412
+ return _.name === ((z = s == null ? void 0 : s.customCardPreferences) == null ? void 0 : z.componentName);
7429
7413
  }
7430
7414
  ), v = Mn(s, b) === "multiple", y = (b == null ? void 0 : b.minInputs) ?? ((F = s == null ? void 0 : s.customCardPreferences) == null ? void 0 : F.minInputs) ?? 1, T = (b == null ? void 0 : b.maxInputs) ?? ((V = s == null ? void 0 : s.customCardPreferences) == null ? void 0 : V.maxInputs), O = ce(
7431
7415
  () => $a({
@@ -7434,37 +7418,37 @@ function hg({
7434
7418
  isMultiInputVisual: v
7435
7419
  }),
7436
7420
  [r, s, v]
7437
- ), N = v ? O.filter(Boolean).length : r.cards.length, x = l ? !1 : T ? N < T : !0, I = N > Math.max(y || 1, 1), S = !!((Y = s == null ? void 0 : s.customCardPreferences) != null && Y.dataInputCardIds), R = (_, q) => {
7438
- _.dataTransfer.setData("tabIndex", q.toString());
7421
+ ), N = v ? O.filter(Boolean).length : r.cards.length, x = l ? !1 : T ? N < T : !0, I = N > Math.max(y || 1, 1), S = !!((Y = s == null ? void 0 : s.customCardPreferences) != null && Y.dataInputCardIds), R = (_, z) => {
7422
+ _.dataTransfer.setData("tabIndex", z.toString());
7439
7423
  }, E = (_) => {
7440
7424
  _.preventDefault();
7441
- }, k = (_, q) => {
7425
+ }, k = (_, z) => {
7442
7426
  const W = _.dataTransfer.getData("tabIndex");
7443
- if (W === q.toString()) return;
7444
- const J = Array.from(r.cards), [z] = J.splice(parseInt(W), 1);
7445
- J.splice(q, 0, z), o({ ...r, cards: J });
7427
+ if (W === z.toString()) return;
7428
+ const J = Array.from(r.cards), [q] = J.splice(parseInt(W), 1);
7429
+ J.splice(z, 0, q), o({ ...r, cards: J });
7446
7430
  };
7447
7431
  function A(_) {
7448
- const q = (s == null ? void 0 : s.id) === _;
7449
- if (!(S && q ? r.cards.length > 1 : I)) return;
7432
+ const z = (s == null ? void 0 : s.id) === _;
7433
+ if (!(S && z ? r.cards.length > 1 : I)) return;
7450
7434
  let J = r.cards.filter((ue) => ue.id !== _);
7451
7435
  v && !S && (J = Au(J));
7452
- const z = J[0], X = {
7436
+ const q = J[0], X = {
7453
7437
  ...r,
7454
7438
  cards: J,
7455
7439
  // update the active card to the first card in the frame
7456
- activeCardId: z.id
7440
+ activeCardId: q.id
7457
7441
  }, H = _ === c.id;
7458
- H && f(), o(X), d(z.id), u(z), H && p(z);
7442
+ H && f(), o(X), d(q.id), u(q), H && p(q);
7459
7443
  }
7460
- function C(_, q) {
7444
+ function C(_, z) {
7461
7445
  if (!x) return;
7462
7446
  const W = {
7463
7447
  ...r,
7464
- cards: [...r.cards, q],
7448
+ cards: [...r.cards, z],
7465
7449
  activeCardId: _.id
7466
7450
  };
7467
- o(W), d(q.id);
7451
+ o(W), d(z.id);
7468
7452
  }
7469
7453
  function P() {
7470
7454
  if (l) return;
@@ -7482,7 +7466,7 @@ function hg({
7482
7466
  slotIndex: v ? Math.max(
7483
7467
  -1,
7484
7468
  ...O.map(
7485
- (q, W) => an(q, W)
7469
+ (z, W) => an(z, W)
7486
7470
  )
7487
7471
  ) + 1 : c.customCardPreferences.slotIndex
7488
7472
  } : void 0
@@ -7493,8 +7477,8 @@ function hg({
7493
7477
  function B(_) {
7494
7478
  var H;
7495
7479
  if (l || !x) return;
7496
- let q = v ? "table" : "bar", W = "Title", J = "";
7497
- const z = v ? Math.max(
7480
+ let z = v ? "table" : "bar", W = "Title", J = "";
7481
+ const q = v ? Math.max(
7498
7482
  -1,
7499
7483
  ...O.map(
7500
7484
  (ue, be) => an(ue, be)
@@ -7503,9 +7487,9 @@ function hg({
7503
7487
  if (v && ((H = b == null ? void 0 : b.slots) != null && H.length)) {
7504
7488
  const ue = lr(
7505
7489
  b.slots,
7506
- z
7490
+ q
7507
7491
  );
7508
- ue && (q = Ou(ue), W = ue.label || `Tab ${z + 1}`, J = ue.description || "");
7492
+ ue && (z = Ou(ue), W = ue.label || `Tab ${q + 1}`, J = ue.description || "");
7509
7493
  }
7510
7494
  const X = {
7511
7495
  dataSource: _.dataSource,
@@ -7525,37 +7509,37 @@ function hg({
7525
7509
  expression: ""
7526
7510
  }
7527
7511
  ],
7528
- ...q === "text" ? {
7512
+ ...z === "text" ? {
7529
7513
  textVisualOptions: {
7530
- richContent: Yh()
7514
+ richContent: _h()
7531
7515
  }
7532
7516
  } : {}
7533
7517
  },
7534
- type: q,
7518
+ type: z,
7535
7519
  sql: "",
7536
7520
  data: [],
7537
7521
  mode: "explorer",
7538
7522
  // Set default mode for new cards
7539
7523
  ...v && {
7540
7524
  customCardPreferences: {
7541
- slotIndex: z
7525
+ slotIndex: q
7542
7526
  }
7543
7527
  }
7544
7528
  };
7545
7529
  C(_, X);
7546
7530
  }
7547
- function g(_, q) {
7548
- return _.cards.length === 1 && (q.displayTab === !0 || q.displayTab === void 0) || _.activeCardId !== q.id && (q.displayTab === !0 || q.displayTab === void 0) ? null : /* @__PURE__ */ e(
7531
+ function g(_, z) {
7532
+ return _.cards.length === 1 && (z.displayTab === !0 || z.displayTab === void 0) || _.activeCardId !== z.id && (z.displayTab === !0 || z.displayTab === void 0) ? null : /* @__PURE__ */ e(
7549
7533
  "div",
7550
7534
  {
7551
7535
  onClick: () => {
7552
- const W = q.displayTab === void 0 ? !1 : !q.displayTab;
7553
- u({ ...q, displayTab: W }), m({
7554
- ...q,
7536
+ const W = z.displayTab === void 0 ? !1 : !z.displayTab;
7537
+ u({ ...z, displayTab: W }), m({
7538
+ ...z,
7555
7539
  displayTab: W
7556
7540
  });
7557
7541
  },
7558
- children: q.displayTab === !0 || q.displayTab === void 0 ? /* @__PURE__ */ e(pr, { className: "h-3 w-3 text-muted-foreground hover:text-foreground" }) : /* @__PURE__ */ e(ir, { className: "h-3 w-3 text-muted-foreground hover:text-foreground" })
7542
+ children: z.displayTab === !0 || z.displayTab === void 0 ? /* @__PURE__ */ e(pr, { className: "h-3 w-3 text-muted-foreground hover:text-foreground" }) : /* @__PURE__ */ e(ir, { className: "h-3 w-3 text-muted-foreground hover:text-foreground" })
7559
7543
  }
7560
7544
  );
7561
7545
  }
@@ -7565,18 +7549,18 @@ function hg({
7565
7549
  variant: "underline",
7566
7550
  className: "group flex h-9 items-center justify-start gap-1 overflow-x-auto rounded-none border-b-0 border-t border-border bg-background px-4",
7567
7551
  children: /* @__PURE__ */ n("div", { className: "flex items-center gap-1", children: [
7568
- r.cards.map((_, q) => {
7552
+ r.cards.map((_, z) => {
7569
7553
  var H, ue;
7570
- const W = v ? an(_, q) : -1, J = v && ((H = b == null ? void 0 : b.slots) != null && H.length) && W >= 0 ? lr(b.slots, W) : null, z = J ? (Array.isArray(J.expectedType) ? J.expectedType[0] : J.expectedType) || "table" : _.type, X = v && ((ue = b == null ? void 0 : b.slots) == null ? void 0 : ue.length) && b.slots.every(
7554
+ const W = v ? an(_, z) : -1, J = v && ((H = b == null ? void 0 : b.slots) != null && H.length) && W >= 0 ? lr(b.slots, W) : null, q = J ? (Array.isArray(J.expectedType) ? J.expectedType[0] : J.expectedType) || "table" : _.type, X = v && ((ue = b == null ? void 0 : b.slots) == null ? void 0 : ue.length) && b.slots.every(
7571
7555
  (be) => typeof be.position == "number" || typeof be.position == "string" && !be.position.includes("+")
7572
7556
  );
7573
7557
  return /* @__PURE__ */ n(
7574
7558
  Kt,
7575
7559
  {
7576
7560
  draggable: !v && !l,
7577
- onDragStart: v || l ? void 0 : (be) => R(be, q),
7561
+ onDragStart: v || l ? void 0 : (be) => R(be, z),
7578
7562
  onDragOver: v || l ? void 0 : E,
7579
- onDrop: v || l ? void 0 : (be) => k(be, q),
7563
+ onDrop: v || l ? void 0 : (be) => k(be, z),
7580
7564
  className: U(
7581
7565
  "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",
7582
7566
  "mb-0 border-transparent pb-0",
@@ -7589,7 +7573,7 @@ function hg({
7589
7573
  // Multi-input visual: Icon + Slot Label (non-editable, no eye icon)
7590
7574
  /* @__PURE__ */ e(jt, { delayDuration: 0, children: /* @__PURE__ */ n(Vt, { children: [
7591
7575
  /* @__PURE__ */ e(Bt, { asChild: !0, children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
7592
- /* @__PURE__ */ e("span", { className: "text-muted-foreground", children: lo(z, "size-3.5") }),
7576
+ /* @__PURE__ */ e("span", { className: "text-muted-foreground", children: lo(q, "size-3.5") }),
7593
7577
  /* @__PURE__ */ e("span", { children: J.label || `Tab ${W + 1}` })
7594
7578
  ] }) }),
7595
7579
  /* @__PURE__ */ e(
@@ -7695,7 +7679,7 @@ function Rn({
7695
7679
  initializeModeDrafts: b
7696
7680
  } = Se(), [M, v] = K({}), [y, T] = K(
7697
7681
  () => /* @__PURE__ */ new Set()
7698
- ), { authToken: O } = jn(), N = Lh(O == null ? void 0 : O.accessToken), { compiledAppearance: x } = Vh(), I = ce(
7682
+ ), { authToken: O } = jn(), N = Vh(O == null ? void 0 : O.accessToken), { compiledAppearance: x } = Bh(), I = ce(
7699
7683
  () => yu(x),
7700
7684
  [x]
7701
7685
  ), {
@@ -7733,15 +7717,15 @@ function Rn({
7733
7717
  } : F !== r.type ? { ...r, type: F } : r, [r, F, B]), {
7734
7718
  data: Y,
7735
7719
  dataUpdatedAt: _,
7736
- isLoading: q,
7720
+ isLoading: z,
7737
7721
  isFetching: W,
7738
7722
  isError: J,
7739
- errorMessage: z,
7723
+ errorMessage: q,
7740
7724
  errorSql: X,
7741
7725
  queryKey: H
7742
- } = _t(V), ue = JSON.stringify(H), { handleOpenInEditor: be, handleDebugWithAssistant: Me } = $r(z, X || r.sql || r.python), Ae = r.type === "text" && ((kt = (Tt = r.preferences) == null ? void 0 : Tt.textVisualOptions) == null ? void 0 : kt.isDynamicText) === !0 && !!z, Ye = Fe(
7726
+ } = _t(V), ue = JSON.stringify(H), { handleOpenInEditor: be, handleDebugWithAssistant: Me } = $r(q, X || r.sql || r.python), Ae = r.type === "text" && ((kt = (Tt = r.preferences) == null ? void 0 : Tt.textVisualOptions) == null ? void 0 : kt.isDynamicText) === !0 && !!q, Ye = Fe(
7743
7727
  (de, ke) => {
7744
- const Xe = Su(ke);
7728
+ const Xe = vu(ke);
7745
7729
  v((he) => ({
7746
7730
  ...he,
7747
7731
  [de]: Xe
@@ -7766,41 +7750,41 @@ function Rn({
7766
7750
  ),
7767
7751
  [w, C == null ? void 0 : C.slots]
7768
7752
  ), Le = ce(
7769
- () => vu(
7770
- Nu({
7753
+ () => Nu(
7754
+ Cu({
7771
7755
  slotOrderedCards: w,
7772
7756
  multiInputData: M
7773
7757
  })
7774
7758
  ),
7775
7759
  [M, w]
7776
- ), We = Bh(
7760
+ ), We = Yh(
7777
7761
  (de) => de.interactionStates
7778
7762
  ), He = ve((de) => {
7779
7763
  var ke;
7780
7764
  return (ke = de.dashboard) == null ? void 0 : ke.id;
7781
7765
  }), Je = ve((de) => de.dashboard.filters), fe = ve((de) => de.filterValues), _e = ve((de) => de.selectedSheetId), Pe = L(
7782
7766
  (de) => de.inlineFilterValuesMap[(l == null ? void 0 : l.id) || ""]
7783
- ), ze = L(
7767
+ ), qe = L(
7784
7768
  (de) => de.actions.setCardInlineFilterValue
7785
7769
  ), G = L(
7786
7770
  (de) => de.actions.removeCardInlineFilterValue
7787
7771
  ), ye = ce(
7788
- () => l ? Cu({
7772
+ () => l ? wu({
7789
7773
  card: l,
7790
7774
  sheetId: _e || "",
7791
7775
  inlineFilterValues: Pe,
7792
- setInlineFilterValue: (de) => ze(l.id, de),
7776
+ setInlineFilterValue: (de) => qe(l.id, de),
7793
7777
  removeInlineFilterValue: (de) => G(l.id, de)
7794
7778
  }) : [],
7795
7779
  [
7796
7780
  l,
7797
7781
  _e,
7798
7782
  Pe,
7799
- ze,
7783
+ qe,
7800
7784
  G
7801
7785
  ]
7802
7786
  ), { cardFilters: Ie, cardFilterValues: pe } = ce(
7803
- () => l ? wu({
7787
+ () => l ? Su({
7804
7788
  card: l,
7805
7789
  interactionStates: We,
7806
7790
  currentDashboardId: He,
@@ -7892,19 +7876,19 @@ function Rn({
7892
7876
  }
7893
7877
  function je() {
7894
7878
  var de;
7895
- return B ? ne() : t && (a || !q && !W && !J && !z) ? t({
7879
+ return B ? ne() : t && (a || !z && !W && !J && !q) ? t({
7896
7880
  card: r,
7897
7881
  data: Y,
7898
- isLoading: q,
7882
+ isLoading: z,
7899
7883
  isFetching: W,
7900
7884
  isError: J
7901
- }) : r.type === "kpi" ? q || W ? /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(Jt, { size: "md", color: "muted", "aria-label": "Loading data" }) }) : /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ n("div", { className: "w-1/2 space-y-3", children: [
7885
+ }) : r.type === "kpi" ? z || W ? /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(Jt, { size: "md", color: "muted", "aria-label": "Loading data" }) }) : /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ n("div", { className: "w-1/2 space-y-3", children: [
7902
7886
  /* @__PURE__ */ e("div", { className: "rounded-md border border-border", children: /* @__PURE__ */ e(
7903
7887
  Tu,
7904
7888
  {
7905
7889
  card: r,
7906
7890
  data: Y == null ? void 0 : Y.records,
7907
- isPending: q || W,
7891
+ isPending: z || W,
7908
7892
  isError: J,
7909
7893
  comparisonMetadata: (de = Y == null ? void 0 : Y.metadata) == null ? void 0 : de.comparisonMetadata
7910
7894
  }
@@ -7917,10 +7901,10 @@ function Rn({
7917
7901
  records: Y == null ? void 0 : Y.records
7918
7902
  }
7919
7903
  )
7920
- ] }) }) : r.type === "text" ? q || W ? /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(Jt, { size: "md", color: "muted", "aria-label": "Loading data" }) }) : Ae ? /* @__PURE__ */ e("div", { className: "flex h-full min-h-0 flex-col overflow-auto p-4", children: /* @__PURE__ */ e(
7904
+ ] }) }) : r.type === "text" ? z || W ? /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(Jt, { size: "md", color: "muted", "aria-label": "Loading data" }) }) : Ae ? /* @__PURE__ */ e("div", { className: "flex h-full min-h-0 flex-col overflow-auto p-4", children: /* @__PURE__ */ e(
7921
7905
  _r,
7922
7906
  {
7923
- error: z,
7907
+ error: q,
7924
7908
  errorSql: X || r.sql || r.python,
7925
7909
  onOpenInEditor: be,
7926
7910
  onDebugWithAssistant: Me,
@@ -7983,7 +7967,7 @@ function pg({
7983
7967
  className: U("h-8 gap-1.5 px-3 text-xs", a),
7984
7968
  onClick: t,
7985
7969
  children: [
7986
- /* @__PURE__ */ e(zn, { className: "h-3.5 w-3.5 shrink-0" }),
7970
+ /* @__PURE__ */ e(qn, { className: "h-3.5 w-3.5 shrink-0" }),
7987
7971
  "Customize"
7988
7972
  ]
7989
7973
  }
@@ -8009,7 +7993,7 @@ function fc({
8009
7993
  () => ei(u),
8010
7994
  [u]
8011
7995
  ), b = ce(
8012
- () => _h(h),
7996
+ () => $h(h),
8013
7997
  [h]
8014
7998
  ), M = !!d, v = ce(
8015
7999
  () => {
@@ -8059,7 +8043,7 @@ function fc({
8059
8043
  }
8060
8044
  return /* @__PURE__ */ n("div", { className: "flex h-full min-h-0 flex-col", children: [
8061
8045
  /* @__PURE__ */ e("div", { className: "min-h-0 flex-1 bg-background px-2", children: M ? /* @__PURE__ */ e(
8062
- zl,
8046
+ ql,
8063
8047
  {
8064
8048
  card: i,
8065
8049
  records: a,
@@ -8102,7 +8086,7 @@ function fc({
8102
8086
  ] }) }),
8103
8087
  /* @__PURE__ */ e("div", { className: "min-h-0 flex-1", children: /* @__PURE__ */ n(cn, { direction: "horizontal", children: [
8104
8088
  /* @__PURE__ */ e(Nt, { defaultSize: 54, minSize: 38, children: /* @__PURE__ */ e("div", { className: "flex h-full min-h-0 flex-col", children: /* @__PURE__ */ e("div", { className: "min-h-0 flex-1 bg-background p-4", children: y ? /* @__PURE__ */ e(
8105
- zl,
8089
+ ql,
8106
8090
  {
8107
8091
  card: v,
8108
8092
  records: a,
@@ -8254,7 +8238,7 @@ function gc({
8254
8238
  const a = L((u) => u.card), s = L((u) => u.frame), r = L(
8255
8239
  (u) => u.actions.setIsShowingVisual
8256
8240
  ), { setVisualizationMode: c, setDynamicCardPreferences: i } = Se(), o = ua(a) === "dynamic";
8257
- if (s.cards.length !== 1 || $h(a))
8241
+ if (s.cards.length !== 1 || zh(a))
8258
8242
  return null;
8259
8243
  const d = (u) => {
8260
8244
  var m;
@@ -8299,7 +8283,7 @@ function gc({
8299
8283
  },
8300
8284
  className: "gap-2 text-[13px]",
8301
8285
  children: [
8302
- /* @__PURE__ */ e(zn, { className: "h-3.5 w-3.5" }),
8286
+ /* @__PURE__ */ e(qn, { className: "h-3.5 w-3.5" }),
8303
8287
  "Customize Visual"
8304
8288
  ]
8305
8289
  }
@@ -8361,7 +8345,7 @@ function Ws({
8361
8345
  var Tt, kt, de, ke, Xe, he, Ce;
8362
8346
  const o = Ki(), d = L((me) => me.frame), u = L((me) => me.card), m = L((me) => me.isDevMode), f = L((me) => me.editorContext), p = (f == null ? void 0 : f.type) === "documentSection", h = L((me) => me.isShowingVisual), b = L(
8363
8347
  (me) => me.actions.setIsShowingVisual
8364
- ), M = ve((me) => me.isVisualEditing), { isConsoleMode: v } = qu(), y = L((me) => me.pythonStdOut), T = L((me) => me.actions.setRunSql), O = Et(), N = O === "table" || O === "detailTable" || O === "matrixTable", x = u.type === "table" || u.type === "detailTable", S = Br(O) && !!(a != null && a.onOpen), E = ua(u) === "dynamic", [k, A] = K(!1), C = i ?? k, P = l ?? A, {
8348
+ ), M = ve((me) => me.isVisualEditing), { isConsoleMode: v } = zu(), y = L((me) => me.pythonStdOut), T = L((me) => me.actions.setRunSql), O = Et(), N = O === "table" || O === "detailTable" || O === "matrixTable", x = u.type === "table" || u.type === "detailTable", S = Br(O) && !!(a != null && a.onOpen), E = ua(u) === "dynamic", [k, A] = K(!1), C = i ?? k, P = l ?? A, {
8365
8349
  setFrame: B,
8366
8350
  setCard: g,
8367
8351
  setActiveTabCardId: w,
@@ -8371,10 +8355,10 @@ function Ws({
8371
8355
  clearModeDrafts: V,
8372
8356
  initializeModeDrafts: Y,
8373
8357
  updatePageSize: _,
8374
- updateCardInFrame: q,
8358
+ updateCardInFrame: z,
8375
8359
  setCardType: W
8376
8360
  } = Se(), J = ce(() => O !== u.type ? { ...u, type: O } : u, [u, O]), {
8377
- data: z,
8361
+ data: q,
8378
8362
  isLoading: X,
8379
8363
  isFetching: H,
8380
8364
  errorMessage: ue,
@@ -8387,12 +8371,12 @@ function Ws({
8387
8371
  const { handleDebugWithAssistant: ht } = $r(
8388
8372
  ue,
8389
8373
  be
8390
- ), Ge = ce(() => (z == null ? void 0 : z.records) || [], [z == null ? void 0 : z.records]), { cardFilterValues: Le } = Ef(
8374
+ ), Ge = ce(() => (q == null ? void 0 : q.records) || [], [q == null ? void 0 : q.records]), { cardFilterValues: Le } = Ef(
8391
8375
  (u == null ? void 0 : u.id) ?? ""
8392
8376
  ), [We, He] = K(!1), Je = ((kt = (Tt = u.preferences) == null ? void 0 : Tt.tablePrefs) == null ? void 0 : kt.enableDevModePagination) ?? !1, fe = ce(
8393
8377
  () => {
8394
8378
  var me, ge;
8395
- return zu((ge = (me = u.preferences) == null ? void 0 : me.tablePrefs) == null ? void 0 : ge.pageSize);
8379
+ return qu((ge = (me = u.preferences) == null ? void 0 : me.tablePrefs) == null ? void 0 : ge.pageSize);
8396
8380
  },
8397
8381
  [(ke = (de = u.preferences) == null ? void 0 : de.tablePrefs) == null ? void 0 : ke.pageSize]
8398
8382
  ), _e = ju(
@@ -8412,7 +8396,7 @@ function Ws({
8412
8396
  return;
8413
8397
  }
8414
8398
  Me();
8415
- }, ze = (me) => {
8399
+ }, qe = (me) => {
8416
8400
  var ge;
8417
8401
  D({
8418
8402
  ...u.preferences,
@@ -8437,7 +8421,7 @@ function Ws({
8437
8421
  pageSize: ge
8438
8422
  }
8439
8423
  };
8440
- g(tt), q(tt), u.sql && Je && T(!0);
8424
+ g(tt), z(tt), u.sql && Je && T(!0);
8441
8425
  };
8442
8426
  De(() => {
8443
8427
  N && !h && !m && !v && b(!0);
@@ -8486,7 +8470,7 @@ function Ws({
8486
8470
  };
8487
8471
  B(at), u.sql && ((yt = (Xt = u.preferences) == null ? void 0 : Xt.tablePrefs) != null && yt.enableDevModePagination) && T(!0);
8488
8472
  }
8489
- const pe = Array.isArray(z == null ? void 0 : z.records) ? z.records : [], Ne = pe.length > 0;
8473
+ const pe = Array.isArray(q == null ? void 0 : q.records) ? q.records : [], Ne = pe.length > 0;
8490
8474
  function et() {
8491
8475
  var ge;
8492
8476
  if (!Ne) return;
@@ -8512,13 +8496,13 @@ function Ws({
8512
8496
  wt.href = at, wt.download = `${u.title}.csv`, wt.click();
8513
8497
  }
8514
8498
  if (!u) return /* @__PURE__ */ e(Te, { children: "No Active Card" });
8515
- const xt = s === "both" || s === "toolbar", At = s === "both" || s === "canvas", ot = !X && !H && !ue && (z != null && z.sql) ? /* @__PURE__ */ e("div", { className: "inline-flex shrink-0 items-center text-[11px] text-muted-foreground", children: /* @__PURE__ */ n(Ia, { openDelay: 200, children: [
8499
+ const xt = s === "both" || s === "toolbar", At = s === "both" || s === "canvas", ot = !X && !H && !ue && (q != null && q.sql) ? /* @__PURE__ */ e("div", { className: "inline-flex shrink-0 items-center text-[11px] text-muted-foreground", children: /* @__PURE__ */ n(Ia, { openDelay: 200, children: [
8516
8500
  /* @__PURE__ */ e(Ea, { asChild: !0, children: r ? /* @__PURE__ */ e(
8517
8501
  bt,
8518
8502
  {
8519
8503
  className: "h-7 w-7 shrink-0 px-0",
8520
8504
  buttonProps: { "aria-label": "View executed SQL" },
8521
- children: /* @__PURE__ */ e(Ip, { className: "h-3.5 w-3.5", strokeWidth: 1.75 })
8505
+ children: /* @__PURE__ */ e(Ep, { className: "h-3.5 w-3.5", strokeWidth: 1.75 })
8522
8506
  }
8523
8507
  ) : /* @__PURE__ */ e(
8524
8508
  "button",
@@ -8534,7 +8518,7 @@ function Ws({
8534
8518
  align: "end",
8535
8519
  collisionPadding: 16,
8536
8520
  className: "w-[500px] overflow-hidden p-0",
8537
- children: /* @__PURE__ */ e(xc, { sql: z.sql })
8521
+ children: /* @__PURE__ */ e(xc, { sql: q.sql })
8538
8522
  }
8539
8523
  )
8540
8524
  ] }) }) : null;
@@ -8673,7 +8657,7 @@ function Ws({
8673
8657
  enabled: Je,
8674
8658
  selectedPageSize: _e,
8675
8659
  pageSizeOptions: fe,
8676
- onEnabledChange: ze,
8660
+ onEnabledChange: qe,
8677
8661
  onPageSizeChange: G,
8678
8662
  responsive: r
8679
8663
  }
@@ -8750,7 +8734,7 @@ function Ws({
8750
8734
  onSelect: ne,
8751
8735
  className: "gap-2 text-[13px]",
8752
8736
  children: [
8753
- /* @__PURE__ */ e(Ep, { className: "h-3.5 w-3.5" }),
8737
+ /* @__PURE__ */ e(Ap, { className: "h-3.5 w-3.5" }),
8754
8738
  "Download JSON"
8755
8739
  ]
8756
8740
  }
@@ -8776,7 +8760,7 @@ function Ws({
8776
8760
  (r && (a == null ? void 0 : a.show) || m || v) && /* @__PURE__ */ n(Te, { children: [
8777
8761
  /* @__PURE__ */ e(Fn, { children: "Output" }),
8778
8762
  r && (a == null ? void 0 : a.show) && /* @__PURE__ */ e(
8779
- qt,
8763
+ zt,
8780
8764
  {
8781
8765
  checked: a.isOpen,
8782
8766
  onCheckedChange: () => a.onToggle(),
@@ -8784,7 +8768,7 @@ function Ws({
8784
8768
  }
8785
8769
  ),
8786
8770
  (m || v) && /* @__PURE__ */ e(
8787
- qt,
8771
+ zt,
8788
8772
  {
8789
8773
  checked: !h,
8790
8774
  onCheckedChange: (me) => b(me !== !0),
@@ -8793,10 +8777,10 @@ function Ws({
8793
8777
  ),
8794
8778
  r && (m || v) && x && /* @__PURE__ */ n(Te, { children: [
8795
8779
  /* @__PURE__ */ e(
8796
- qt,
8780
+ zt,
8797
8781
  {
8798
8782
  checked: Je,
8799
- onCheckedChange: (me) => ze(me === !0),
8783
+ onCheckedChange: (me) => qe(me === !0),
8800
8784
  children: "Paginate results"
8801
8785
  }
8802
8786
  ),
@@ -8841,7 +8825,7 @@ function Ws({
8841
8825
  ),
8842
8826
  /* @__PURE__ */ e(Kr, { triggerVariant: "menu", className: "w-full" }),
8843
8827
  /* @__PURE__ */ e(
8844
- zr,
8828
+ qr,
8845
8829
  {
8846
8830
  triggerVariant: "menu",
8847
8831
  className: "w-full"
@@ -8856,7 +8840,7 @@ function Ws({
8856
8840
  },
8857
8841
  className: "gap-2 text-[13px]",
8858
8842
  children: [
8859
- /* @__PURE__ */ e(Bp, { className: "h-3.5 w-3.5" }),
8843
+ /* @__PURE__ */ e(Yp, { className: "h-3.5 w-3.5" }),
8860
8844
  "Table settings"
8861
8845
  ]
8862
8846
  }
@@ -8925,10 +8909,10 @@ function Ws({
8925
8909
  }
8926
8910
  ),
8927
8911
  children: [
8928
- Array.isArray(z == null ? void 0 : z.records) && !ue && (m ? /* @__PURE__ */ e(
8912
+ Array.isArray(q == null ? void 0 : q.records) && !ue && (m ? /* @__PURE__ */ e(
8929
8913
  Rf,
8930
8914
  {
8931
- data: z.records,
8915
+ data: q.records,
8932
8916
  card: J,
8933
8917
  paginationMetadata: Ye,
8934
8918
  onPaginationChange: ye,
@@ -8936,15 +8920,15 @@ function Ws({
8936
8920
  onSortChange: Ie,
8937
8921
  isLoading: X || H
8938
8922
  }
8939
- ) : z.records.length > 0 ? /* @__PURE__ */ e(
8923
+ ) : q.records.length > 0 ? /* @__PURE__ */ e(
8940
8924
  Ma,
8941
8925
  {
8942
8926
  card: u,
8943
8927
  data: Ge,
8944
- resultColumns: z == null ? void 0 : z.columns,
8945
- columnKeyMap: z == null ? void 0 : z.columnKeyMap,
8946
- totalsByColumnId: z == null ? void 0 : z.tableTotalsByColumnId,
8947
- comparisonMetadata: (Ce = z == null ? void 0 : z.metadata) == null ? void 0 : Ce.comparisonMetadata,
8928
+ resultColumns: q == null ? void 0 : q.columns,
8929
+ columnKeyMap: q == null ? void 0 : q.columnKeyMap,
8930
+ totalsByColumnId: q == null ? void 0 : q.tableTotalsByColumnId,
8931
+ comparisonMetadata: (Ce = q == null ? void 0 : q.metadata) == null ? void 0 : Ce.comparisonMetadata,
8948
8932
  paginationMetadata: Ye,
8949
8933
  onPaginationChange: ye,
8950
8934
  onSortChange: Ie,
@@ -8976,7 +8960,7 @@ function fg() {
8976
8960
  const a = t.replace(/\n/g, "<br>");
8977
8961
  return /* @__PURE__ */ n("div", { className: "relative flex w-full flex-col", children: [
8978
8962
  /* @__PURE__ */ e("div", { className: "sticky top-0 flex max-h-11 min-h-11 grow items-center font-mono text-xs font-semibold text-foreground/70", children: "Python Output" }),
8979
- /* @__PURE__ */ n(za, { className: "overflow-y-auto pt-1 font-mono text-xs text-foreground/90", children: [
8963
+ /* @__PURE__ */ n(qa, { className: "overflow-y-auto pt-1 font-mono text-xs text-foreground/90", children: [
8980
8964
  /* @__PURE__ */ e("div", { dangerouslySetInnerHTML: { __html: a } }),
8981
8965
  /* @__PURE__ */ e(Lr, { orientation: "horizontal" })
8982
8966
  ] })
@@ -9278,7 +9262,7 @@ function bc() {
9278
9262
  return g ? (Array.isArray(g) ? g : [g]).join(", ") : null;
9279
9263
  }
9280
9264
  function S(g, w, D = [], F = "", V, Y, _) {
9281
- const q = R({
9265
+ const z = R({
9282
9266
  key: w,
9283
9267
  defaultValue: F,
9284
9268
  settingsValue: Y,
@@ -9289,7 +9273,7 @@ function bc() {
9289
9273
  {
9290
9274
  className: `h-8 w-full ${yn}`,
9291
9275
  value: String(
9292
- q ?? ""
9276
+ z ?? ""
9293
9277
  ),
9294
9278
  onCommit: (W) => {
9295
9279
  E({
@@ -9309,7 +9293,7 @@ function bc() {
9309
9293
  label: "",
9310
9294
  options: D,
9311
9295
  value: String(
9312
- q !== void 0 ? q : F ?? ""
9296
+ z !== void 0 ? z : F ?? ""
9313
9297
  ),
9314
9298
  onValueChange: (W) => {
9315
9299
  E({
@@ -9339,8 +9323,8 @@ function bc() {
9339
9323
  settingsValue: F,
9340
9324
  sourceCard: V
9341
9325
  }) {
9342
- const Y = { ...F || {} }, _ = g === "title" && (V == null ? void 0 : V.title) !== void 0, q = g === "description" && (V == null ? void 0 : V.description) !== void 0;
9343
- _ && w === String((V == null ? void 0 : V.title) ?? "") || q && w === String((V == null ? void 0 : V.description) ?? "") ? delete Y[g] : Y[g] = w, i({
9326
+ const Y = { ...F || {} }, _ = g === "title" && (V == null ? void 0 : V.title) !== void 0, z = g === "description" && (V == null ? void 0 : V.description) !== void 0;
9327
+ _ && w === String((V == null ? void 0 : V.title) ?? "") || z && w === String((V == null ? void 0 : V.description) ?? "") ? delete Y[g] : Y[g] = w, i({
9344
9328
  ...t || {},
9345
9329
  [D]: Y
9346
9330
  });
@@ -9355,21 +9339,21 @@ function bc() {
9355
9339
  const Y = Object.entries(g || {});
9356
9340
  return /* @__PURE__ */ n("div", { className: "space-y-3", children: [
9357
9341
  V && /* @__PURE__ */ e($, { children: V }),
9358
- Y.map(([_, q]) => {
9342
+ Y.map(([_, z]) => {
9359
9343
  var W;
9360
9344
  return /* @__PURE__ */ n("div", { className: "space-y-2", children: [
9361
9345
  /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
9362
- /* @__PURE__ */ e($, { children: q.title }),
9363
- ((W = q.docs) == null ? void 0 : W.description) && /* @__PURE__ */ e(jt, { delayDuration: 0, children: /* @__PURE__ */ n(Vt, { children: [
9364
- /* @__PURE__ */ e(Bt, { asChild: !0, children: /* @__PURE__ */ e(qn, { className: "h-3.5 w-3.5 cursor-help text-muted-foreground" }) }),
9365
- /* @__PURE__ */ e(Lt, { side: "right", className: "max-w-xs", children: /* @__PURE__ */ e("p", { className: "text-xs", children: q.docs.description }) })
9346
+ /* @__PURE__ */ e($, { children: z.title }),
9347
+ ((W = z.docs) == null ? void 0 : W.description) && /* @__PURE__ */ e(jt, { delayDuration: 0, children: /* @__PURE__ */ n(Vt, { children: [
9348
+ /* @__PURE__ */ e(Bt, { asChild: !0, children: /* @__PURE__ */ e(zn, { className: "h-3.5 w-3.5 cursor-help text-muted-foreground" }) }),
9349
+ /* @__PURE__ */ e(Lt, { side: "right", className: "max-w-xs", children: /* @__PURE__ */ e("p", { className: "text-xs", children: z.docs.description }) })
9366
9350
  ] }) })
9367
9351
  ] }),
9368
9352
  S(
9369
- q.ui,
9353
+ z.ui,
9370
9354
  _,
9371
- q.options,
9372
- q.defaultValue,
9355
+ z.options,
9356
+ z.defaultValue,
9373
9357
  w,
9374
9358
  D,
9375
9359
  F
@@ -9466,7 +9450,7 @@ function bc() {
9466
9450
  ((t == null ? void 0 : t.type) === "component" || (t == null ? void 0 : t.type) === void 0) && t && (!p || h) && /* @__PURE__ */ e(Te, { children: d && /* @__PURE__ */ e(
9467
9451
  vn,
9468
9452
  {
9469
- icon: /* @__PURE__ */ e(Mp, { className: "h-3.5 w-3.5" }),
9453
+ icon: /* @__PURE__ */ e(Ip, { className: "h-3.5 w-3.5" }),
9470
9454
  className: "h-9 w-full",
9471
9455
  label: "Select Component",
9472
9456
  options: (d == null ? void 0 : d.map((g) => ({
@@ -9503,7 +9487,7 @@ function bc() {
9503
9487
  {
9504
9488
  asChild: !0,
9505
9489
  onClick: (g) => g.stopPropagation(),
9506
- children: /* @__PURE__ */ e(qn, { className: "h-3.5 w-3.5 cursor-help text-muted-foreground transition-colors hover:text-foreground" })
9490
+ children: /* @__PURE__ */ e(zn, { className: "h-3.5 w-3.5 cursor-help text-muted-foreground transition-colors hover:text-foreground" })
9507
9491
  }
9508
9492
  ),
9509
9493
  /* @__PURE__ */ e(
@@ -9724,7 +9708,7 @@ const Xn = "__report_default__", wg = [
9724
9708
  ], Tg = (t) => t.charAt(0).toUpperCase() + t.slice(1);
9725
9709
  function kg(t, a) {
9726
9710
  try {
9727
- return wp(
9711
+ return Sp(
9728
9712
  t,
9729
9713
  a
9730
9714
  ).maximumFractionDigits ?? gs("currency");
@@ -10269,8 +10253,8 @@ function Ig(t) {
10269
10253
  var s;
10270
10254
  const a = $o(
10271
10255
  (s = t == null ? void 0 : t.kpiVisualOptions) == null ? void 0 : s.formatOptions
10272
- ) || (t != null && t.formatNumber ? zh(t == null ? void 0 : t.formatNumber) : void 0);
10273
- return qo(a, { preserveOmittedProperties: !0 }) || {
10256
+ ) || (t != null && t.formatNumber ? jh(t == null ? void 0 : t.formatNumber) : void 0);
10257
+ return zo(a, { preserveOmittedProperties: !0 }) || {
10274
10258
  type: "number",
10275
10259
  minimumFractionDigits: 0,
10276
10260
  maximumFractionDigits: 0
@@ -10789,7 +10773,7 @@ function Si({
10789
10773
  children: [
10790
10774
  /* @__PURE__ */ n("summary", { className: "flex cursor-pointer list-none items-center justify-between gap-4", children: [
10791
10775
  /* @__PURE__ */ e($, { children: a }),
10792
- /* @__PURE__ */ e(jh, { className: "h-4 w-4" })
10776
+ /* @__PURE__ */ e(Kh, { className: "h-4 w-4" })
10793
10777
  ] }),
10794
10778
  /* @__PURE__ */ e("div", { className: "transition-all ease-in-out", children: t })
10795
10779
  ]
@@ -11394,7 +11378,7 @@ function Cc({
11394
11378
  )
11395
11379
  ] });
11396
11380
  }
11397
- function qg() {
11381
+ function zg() {
11398
11382
  var f, p, h, b, M;
11399
11383
  const t = L((v) => v.card), { setCardPreferences: a } = Se(), s = Et(), r = ((f = t.config) == null ? void 0 : f.metricColumns) || [], c = r.length === 2 && (((p = t.config) == null ? void 0 : p.groupByColumns) || []).length === 0, i = r.some(
11400
11384
  (v) => {
@@ -11402,7 +11386,7 @@ function qg() {
11402
11386
  return ((y = v.comparison) == null ? void 0 : y.mode) === "explicit";
11403
11387
  }
11404
11388
  );
11405
- if (!Kh.includes(s))
11389
+ if (!Uh.includes(s))
11406
11390
  return null;
11407
11391
  const o = ((h = t.preferences) == null ? void 0 : h.comparisonPresentation) || {}, d = (v) => a({
11408
11392
  ...t.preferences,
@@ -11410,7 +11394,7 @@ function qg() {
11410
11394
  }), u = s === "kpi" && ((b = t.preferences) == null ? void 0 : b.metricPairComparisonEnabled) === !0, m = i || u;
11411
11395
  return /* @__PURE__ */ n(dt, { value: "comparison", className: "border-none", children: [
11412
11396
  /* @__PURE__ */ e(ut, { 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: [
11413
- /* @__PURE__ */ e(Op, { className: "h-3.5 w-3.5 text-foreground/60" }),
11397
+ /* @__PURE__ */ e(Fp, { className: "h-3.5 w-3.5 text-foreground/60" }),
11414
11398
  /* @__PURE__ */ e("span", { children: "Comparison" })
11415
11399
  ] }) }),
11416
11400
  /* @__PURE__ */ n(mt, { className: "space-y-4 pb-4 pt-2", children: [
@@ -11476,23 +11460,23 @@ function wc({
11476
11460
  focusSection: s,
11477
11461
  focusRequestId: r
11478
11462
  }) {
11479
- var q, W, J;
11480
- const c = L((z) => z.card), i = L(
11481
- (z) => z.queryResultColumns
11482
- ), l = L((z) => {
11463
+ var z, W, J;
11464
+ const c = L((q) => q.card), i = L(
11465
+ (q) => q.queryResultColumns
11466
+ ), l = L((q) => {
11483
11467
  var X;
11484
- return (X = z.card) == null ? void 0 : X.preferences;
11468
+ return (X = q.card) == null ? void 0 : X.preferences;
11485
11469
  }), o = l == null ? void 0 : l.tablePrefs, d = L(
11486
- (z) => z.actions.setCardPreferences
11470
+ (q) => q.actions.setCardPreferences
11487
11471
  ), u = L(
11488
- (z) => z.actions.updateTableConditionalFormatting
11489
- ), m = ((q = c.config) == null ? void 0 : q.metricColumns) || [], f = t ?? c.type, p = a ?? i, h = c.type === f ? c : { ...c, type: f }, b = Zu(
11472
+ (q) => q.actions.updateTableConditionalFormatting
11473
+ ), m = ((z = c.config) == null ? void 0 : z.metricColumns) || [], f = t ?? c.type, p = a ?? i, h = c.type === f ? c : { ...c, type: f }, b = Zu(
11490
11474
  h,
11491
11475
  p
11492
11476
  ), M = em(
11493
11477
  h,
11494
11478
  p
11495
- ), v = om(f), y = f === "table", T = f === "table", O = ((W = b[0]) == null ? void 0 : W.value) || "", N = tm(
11479
+ ), v = rm(f), y = f === "table", T = f === "table", O = ((W = b[0]) == null ? void 0 : W.value) || "", N = tm(
11496
11480
  (J = l == null ? void 0 : l.tablePrefs) == null ? void 0 : J.conditionalFormatting
11497
11481
  ), x = nm(o), I = am(h), S = sm(h), [R, E] = K("style");
11498
11482
  De(() => {
@@ -11512,51 +11496,51 @@ function wc({
11512
11496
  s
11513
11497
  ]);
11514
11498
  const k = m.some(
11515
- (z) => {
11499
+ (q) => {
11516
11500
  var X;
11517
- return ((X = z.comparison) == null ? void 0 : X.mode) === "explicit";
11501
+ return ((X = q.comparison) == null ? void 0 : X.mode) === "explicit";
11518
11502
  }
11519
- ), A = (l == null ? void 0 : l.comparisonPresentation) || {}, C = (z) => {
11503
+ ), A = (l == null ? void 0 : l.comparisonPresentation) || {}, C = (q) => {
11520
11504
  d({
11521
11505
  ...l,
11522
11506
  comparisonPresentation: {
11523
11507
  ...A,
11524
- ...z
11508
+ ...q
11525
11509
  }
11526
11510
  });
11527
- }, P = (z) => {
11511
+ }, P = (q) => {
11528
11512
  u({
11529
11513
  version: 1,
11530
- rules: z
11514
+ rules: q
11531
11515
  });
11532
- }, B = (z) => {
11516
+ }, B = (q) => {
11533
11517
  d({
11534
11518
  ...l,
11535
11519
  tablePrefs: {
11536
11520
  ...o,
11537
- density: z
11521
+ density: q
11538
11522
  }
11539
11523
  });
11540
- }, g = (z) => {
11524
+ }, g = (q) => {
11541
11525
  d({
11542
11526
  ...l,
11543
11527
  tablePrefs: {
11544
11528
  ...o,
11545
11529
  tableStyle: {
11546
11530
  ...o == null ? void 0 : o.tableStyle,
11547
- ...z
11531
+ ...q
11548
11532
  }
11549
11533
  }
11550
11534
  });
11551
- }, w = (z) => {
11535
+ }, w = (q) => {
11552
11536
  var X;
11553
11537
  g({
11554
11538
  totals: {
11555
11539
  ...(X = o == null ? void 0 : o.tableStyle) == null ? void 0 : X.totals,
11556
- ...z
11540
+ ...q
11557
11541
  }
11558
11542
  });
11559
- }, D = (z) => {
11543
+ }, D = (q) => {
11560
11544
  var X;
11561
11545
  d({
11562
11546
  ...l,
@@ -11566,19 +11550,19 @@ function wc({
11566
11550
  ...o == null ? void 0 : o.tableStyle,
11567
11551
  totals: {
11568
11552
  ...(X = o == null ? void 0 : o.tableStyle) == null ? void 0 : X.totals,
11569
- enabled: z
11553
+ enabled: q
11570
11554
  }
11571
11555
  }
11572
11556
  }
11573
11557
  });
11574
- }, F = (z, X) => {
11558
+ }, F = (q, X) => {
11575
11559
  d({
11576
11560
  ...l,
11577
11561
  tablePrefs: {
11578
11562
  ...o,
11579
11563
  columnVisibility: cm(
11580
11564
  o == null ? void 0 : o.columnVisibility,
11581
- z,
11565
+ q,
11582
11566
  X
11583
11567
  )
11584
11568
  }
@@ -11624,7 +11608,7 @@ function wc({
11624
11608
  id: "show-table-comparison",
11625
11609
  size: "xs",
11626
11610
  checked: A.showComparison !== !1,
11627
- onCheckedChange: (z) => C({ showComparison: z })
11611
+ onCheckedChange: (q) => C({ showComparison: q })
11628
11612
  }
11629
11613
  )
11630
11614
  ] }),
@@ -11640,7 +11624,7 @@ function wc({
11640
11624
  ca,
11641
11625
  {
11642
11626
  value: R,
11643
- onValueChange: (z) => E(z),
11627
+ onValueChange: (q) => E(q),
11644
11628
  className: "space-y-4",
11645
11629
  children: [
11646
11630
  /* @__PURE__ */ n(da, { variant: "underline", children: [
@@ -11656,7 +11640,7 @@ function wc({
11656
11640
  )
11657
11641
  ] }),
11658
11642
  /* @__PURE__ */ e(on, { value: "style", className: "mt-0", children: /* @__PURE__ */ e(
11659
- rm,
11643
+ lm,
11660
11644
  {
11661
11645
  style: x,
11662
11646
  onDensityChange: B,
@@ -11673,7 +11657,7 @@ function wc({
11673
11657
  }
11674
11658
  ) }),
11675
11659
  /* @__PURE__ */ e(on, { value: "columns", className: "mt-0", children: T ? /* @__PURE__ */ e(
11676
- lm,
11660
+ im,
11677
11661
  {
11678
11662
  columns: M,
11679
11663
  columnVisibility: o == null ? void 0 : o.columnVisibility,
@@ -11682,7 +11666,7 @@ function wc({
11682
11666
  }
11683
11667
  ) : /* @__PURE__ */ e("p", { className: "py-6 text-center text-[12px] text-muted-foreground", children: "Column visibility is available for table cards." }) }),
11684
11668
  /* @__PURE__ */ e(on, { value: "conditional-formatting", className: "mt-0", children: v ? O ? /* @__PURE__ */ e(
11685
- im,
11669
+ om,
11686
11670
  {
11687
11671
  columnId: O,
11688
11672
  availableColumns: b,
@@ -11695,7 +11679,7 @@ function wc({
11695
11679
  }
11696
11680
  ) });
11697
11681
  }
11698
- function zg() {
11682
+ function qg() {
11699
11683
  var c;
11700
11684
  const t = L((i) => i.card.preferences), { setCardPreferences: a } = L((i) => i.actions), s = (c = t == null ? void 0 : t.textVisualOptions) != null && c.isDynamicText ? "dynamic" : "static";
11701
11685
  function r(i) {
@@ -11715,7 +11699,7 @@ function zg() {
11715
11699
  function jg() {
11716
11700
  return /* @__PURE__ */ n("div", { className: "space-y-2 px-6 py-4", children: [
11717
11701
  /* @__PURE__ */ e("div", { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Text mode" }),
11718
- /* @__PURE__ */ e(zg, {}),
11702
+ /* @__PURE__ */ e(qg, {}),
11719
11703
  /* @__PURE__ */ e("p", { className: "pt-1 text-[12px] leading-[1.55] text-muted-foreground", children: "Static text is authored inline. Dynamic text reads from the first cell of the card's query." })
11720
11704
  ] });
11721
11705
  }
@@ -11937,18 +11921,18 @@ function Qg() {
11937
11921
  }), s = Et(), { setCardPreferences: r, updateCardInFrame: c } = Se(), i = ce(() => s !== t.type ? { ...t, type: s } : t, [t, s]), { data: l } = _t(i), [o, d] = K({}), [u, m] = K(
11938
11922
  null
11939
11923
  ), [f, p] = K(null), h = ce(() => {
11940
- var F, V, Y, _, q, W, J;
11924
+ var F, V, Y, _, z, W, J;
11941
11925
  if (!(l != null && l.records) || l.records.length === 0) return [];
11942
11926
  const g = s === "stackedBar" || s === "stackedLine", w = s === "bar" || s === "line" || s === "horizontalBar" || s === "bullet" || s === "combo" || s === "area" || s === "stackedArea", D = ((F = t == null ? void 0 : t.config) == null ? void 0 : F.pivotByColumns) && t.config.pivotByColumns.length > 0;
11943
11927
  if ((g || w) && D) {
11944
11928
  if (l.pivotSchema && Array.isArray(l.pivotSchema)) {
11945
- const z = /* @__PURE__ */ new Set();
11929
+ const q = /* @__PURE__ */ new Set();
11946
11930
  return l.pivotSchema.forEach((X) => {
11947
- X.alias && z.add(X.alias);
11948
- }), Array.from(z);
11931
+ X.alias && q.add(X.alias);
11932
+ }), Array.from(q);
11949
11933
  }
11950
11934
  if (l.records.length > 0) {
11951
- const z = l.records[0], X = Object.keys(z), H = /* @__PURE__ */ new Set();
11935
+ const q = l.records[0], X = Object.keys(q), H = /* @__PURE__ */ new Set();
11952
11936
  (V = t == null ? void 0 : t.config) != null && V.groupByColumns && t.config.groupByColumns.forEach((Me) => {
11953
11937
  H.add(Me.label || Me.name), H.add(Me.alias || Me.name);
11954
11938
  });
@@ -11963,12 +11947,12 @@ function Qg() {
11963
11947
  );
11964
11948
  }
11965
11949
  }
11966
- if ((w || g) && !D && ((q = (_ = t == null ? void 0 : t.config) == null ? void 0 : _.metricColumns) != null && q.length))
11950
+ if ((w || g) && !D && ((z = (_ = t == null ? void 0 : t.config) == null ? void 0 : _.metricColumns) != null && z.length))
11967
11951
  return t.config.metricColumns.map(
11968
- (z) => z.alias || z.label || z.name
11952
+ (q) => q.alias || q.label || q.name
11969
11953
  );
11970
11954
  if ((J = (W = t == null ? void 0 : t.config) == null ? void 0 : W.groupByColumns) != null && J.length) {
11971
- const z = t.config.groupByColumns[0], X = z.label || z.name, H = /* @__PURE__ */ new Set();
11955
+ const q = t.config.groupByColumns[0], X = q.label || q.name, H = /* @__PURE__ */ new Set();
11972
11956
  return l.records.forEach((ue) => {
11973
11957
  const be = ue[X];
11974
11958
  be != null && H.add(String(be));
@@ -12011,8 +11995,8 @@ function Qg() {
12011
11995
  };
12012
11996
  c(V);
12013
11997
  }, v = (g, w) => {
12014
- var q;
12015
- const D = b[w % b.length], { [g]: F, ...V } = ((q = a == null ? void 0 : a.colorConfig) == null ? void 0 : q.segments) || {}, Y = {
11998
+ var z;
11999
+ const D = b[w % b.length], { [g]: F, ...V } = ((z = a == null ? void 0 : a.colorConfig) == null ? void 0 : z.segments) || {}, Y = {
12016
12000
  ...a || {},
12017
12001
  colorConfig: {
12018
12002
  segments: V
@@ -12050,7 +12034,7 @@ function Qg() {
12050
12034
  }, N = Object.keys(((B = a == null ? void 0 : a.colorConfig) == null ? void 0 : B.segments) || {}).length > 0;
12051
12035
  return /* @__PURE__ */ n(dt, { value: "colors", className: "border-b-0", children: [
12052
12036
  /* @__PURE__ */ e(ut, { 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: [
12053
- /* @__PURE__ */ e(Sp, { className: "h-4 w-4 text-muted-foreground" }),
12037
+ /* @__PURE__ */ e(Tp, { className: "h-4 w-4 text-muted-foreground" }),
12054
12038
  /* @__PURE__ */ e("span", { children: "Colors" })
12055
12039
  ] }) }),
12056
12040
  /* @__PURE__ */ e(mt, { className: "", children: /* @__PURE__ */ n("div", { className: "space-y-3", children: [
@@ -12368,7 +12352,7 @@ function Zs({ axis: t, label: a, type: s, config: r, onChange: c, defaultTitle:
12368
12352
  onValueChange: (C) => d("position", C),
12369
12353
  children: [
12370
12354
  /* @__PURE__ */ e(re, { className: "h-8 text-xs", children: /* @__PURE__ */ e(le, {}) }),
12371
- /* @__PURE__ */ e(ie, { children: p.map((C) => /* @__PURE__ */ e(j, { value: C, className: "text-xs", children: C === "auto" ? "Auto (Default)" : zt(C) }, C)) })
12355
+ /* @__PURE__ */ e(ie, { children: p.map((C) => /* @__PURE__ */ e(j, { value: C, className: "text-xs", children: C === "auto" ? "Auto (Default)" : qt(C) }, C)) })
12372
12356
  ]
12373
12357
  }
12374
12358
  )
@@ -12533,7 +12517,7 @@ function Wg() {
12533
12517
  }, o = i.hasY2Axis && c === "combo";
12534
12518
  return /* @__PURE__ */ n(dt, { value: "axes", className: "border-b-0", children: [
12535
12519
  /* @__PURE__ */ e(ut, { 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: [
12536
- /* @__PURE__ */ e(zn, { className: "h-4 w-4 text-muted-foreground" }),
12520
+ /* @__PURE__ */ e(qn, { className: "h-4 w-4 text-muted-foreground" }),
12537
12521
  /* @__PURE__ */ e("span", { children: "Axes" })
12538
12522
  ] }) }),
12539
12523
  /* @__PURE__ */ e(mt, { className: "pt-2", children: /* @__PURE__ */ n(Ns, { type: "single", collapsible: !0, className: "w-full", children: [
@@ -12601,7 +12585,7 @@ function Jg() {
12601
12585
  }, u = ["top", "bottom", "left", "right"], m = ["start", "center", "end"];
12602
12586
  return /* @__PURE__ */ n(dt, { value: "legend", className: "border-b-0", children: [
12603
12587
  /* @__PURE__ */ e(ut, { 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: [
12604
- /* @__PURE__ */ e(Rp, { className: "h-4 w-4 text-muted-foreground" }),
12588
+ /* @__PURE__ */ e(Pp, { className: "h-4 w-4 text-muted-foreground" }),
12605
12589
  /* @__PURE__ */ e("span", { children: "Legend" })
12606
12590
  ] }) }),
12607
12591
  /* @__PURE__ */ e(mt, { className: "pt-2", children: /* @__PURE__ */ n("div", { className: "space-y-3", children: [
@@ -12626,7 +12610,7 @@ function Jg() {
12626
12610
  onValueChange: (f) => d("position", f),
12627
12611
  children: [
12628
12612
  /* @__PURE__ */ e(re, { className: "h-8 text-xs", children: /* @__PURE__ */ e(le, {}) }),
12629
- /* @__PURE__ */ e(ie, { children: u.map((f) => /* @__PURE__ */ e(j, { value: f, className: "text-xs", children: zt(f) }, f)) })
12613
+ /* @__PURE__ */ e(ie, { children: u.map((f) => /* @__PURE__ */ e(j, { value: f, className: "text-xs", children: qt(f) }, f)) })
12630
12614
  ]
12631
12615
  }
12632
12616
  )
@@ -12640,7 +12624,7 @@ function Jg() {
12640
12624
  onValueChange: (f) => d("align", f),
12641
12625
  children: [
12642
12626
  /* @__PURE__ */ e(re, { className: "h-8 text-xs", children: /* @__PURE__ */ e(le, {}) }),
12643
- /* @__PURE__ */ e(ie, { children: m.map((f) => /* @__PURE__ */ e(j, { value: f, className: "text-xs", children: zt(f) }, f)) })
12627
+ /* @__PURE__ */ e(ie, { children: m.map((f) => /* @__PURE__ */ e(j, { value: f, className: "text-xs", children: qt(f) }, f)) })
12644
12628
  ]
12645
12629
  }
12646
12630
  )
@@ -12653,8 +12637,8 @@ function Xg() {
12653
12637
  var P, B, g, w, D, F, V;
12654
12638
  const t = L((Y) => Y.card), a = Et(), s = L(
12655
12639
  (Y) => {
12656
- var _, q;
12657
- return (q = (_ = Y.card) == null ? void 0 : _.preferences) == null ? void 0 : q.dataLabelsConfig;
12640
+ var _, z;
12641
+ return (z = (_ = Y.card) == null ? void 0 : _.preferences) == null ? void 0 : z.dataLabelsConfig;
12658
12642
  }
12659
12643
  ), r = L((Y) => {
12660
12644
  var _;
@@ -12672,32 +12656,32 @@ function Xg() {
12672
12656
  [Y]: _
12673
12657
  };
12674
12658
  Y === "enabled" && (J.display = _, _ && m && !J.position && (J.position = "bottom")), Y === "position" && m && (J.position = "bottom"), Y === "formatMode" && _ === "inherit" && (J.format = void 0, J.formatOptions = void 0);
12675
- const z = {
12659
+ const q = {
12676
12660
  ...t.preferences || {},
12677
12661
  dataLabelsConfig: J
12678
12662
  };
12679
- c(z);
12663
+ c(q);
12680
12664
  const X = {
12681
12665
  ...t,
12682
- preferences: z
12666
+ preferences: q
12683
12667
  };
12684
12668
  i(X);
12685
12669
  }, T = (Y, _) => {
12686
- const q = s ?? {}, J = {
12670
+ const z = s ?? {}, J = {
12687
12671
  ...h ?? {},
12688
- ...q,
12672
+ ...z,
12689
12673
  font: {
12690
- ...q.font || {},
12674
+ ...z.font || {},
12691
12675
  [Y]: _
12692
12676
  }
12693
- }, z = {
12677
+ }, q = {
12694
12678
  ...t.preferences || {},
12695
12679
  dataLabelsConfig: J
12696
12680
  };
12697
- c(z);
12681
+ c(q);
12698
12682
  const X = {
12699
12683
  ...t,
12700
- preferences: z
12684
+ preferences: q
12701
12685
  };
12702
12686
  i(X);
12703
12687
  }, O = () => {
@@ -12712,9 +12696,9 @@ function Xg() {
12712
12696
  S = ["center"];
12713
12697
  else {
12714
12698
  const Y = o ? ["center", "left", "right"] : ["center", "top", "bottom"];
12715
- S = ["auto", ...a === "bullet" ? Y : Y.filter((q) => q !== I), "custom"];
12699
+ S = ["auto", ...a === "bullet" ? Y : Y.filter((z) => z !== I), "custom"];
12716
12700
  }
12717
- const R = () => zt(I), E = ["center", "start", "end"], k = ["center", "start", "end", "top", "bottom"], A = (b == null ? void 0 : b.formatMode) || (b != null && b.format && !["auto"].includes(b.format) ? "override" : "inherit"), C = (b == null ? void 0 : b.format) === "none";
12701
+ const R = () => qt(I), E = ["center", "start", "end"], k = ["center", "start", "end", "top", "bottom"], A = (b == null ? void 0 : b.formatMode) || (b != null && b.format && !["auto"].includes(b.format) ? "override" : "inherit"), C = (b == null ? void 0 : b.format) === "none";
12718
12702
  return /* @__PURE__ */ n(dt, { value: "data-labels", className: "border-b-0", children: [
12719
12703
  /* @__PURE__ */ e(ut, { 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: [
12720
12704
  /* @__PURE__ */ e(Gp, { className: "h-4 w-4 text-muted-foreground" }),
@@ -12742,7 +12726,7 @@ function Xg() {
12742
12726
  onValueChange: (Y) => y("position", Y),
12743
12727
  children: [
12744
12728
  /* @__PURE__ */ e(re, { className: "h-8 text-xs", children: /* @__PURE__ */ e(le, {}) }),
12745
- /* @__PURE__ */ e(ie, { children: S.map((Y) => /* @__PURE__ */ e(j, { value: Y, className: "text-xs", children: Y === "auto" ? R() : Y === "custom" ? "Custom (Advanced)" : zt(Y) }, Y)) })
12729
+ /* @__PURE__ */ e(ie, { children: S.map((Y) => /* @__PURE__ */ e(j, { value: Y, className: "text-xs", children: Y === "auto" ? R() : Y === "custom" ? "Custom (Advanced)" : qt(Y) }, Y)) })
12746
12730
  ]
12747
12731
  }
12748
12732
  )
@@ -12768,7 +12752,7 @@ function Xg() {
12768
12752
  onValueChange: (Y) => y("anchor", Y),
12769
12753
  children: [
12770
12754
  /* @__PURE__ */ e(re, { className: "h-8 text-xs flex-1", children: /* @__PURE__ */ e(le, {}) }),
12771
- /* @__PURE__ */ e(ie, { children: E.map((Y) => /* @__PURE__ */ e(j, { value: Y, className: "text-xs", children: zt(Y) }, Y)) })
12755
+ /* @__PURE__ */ e(ie, { children: E.map((Y) => /* @__PURE__ */ e(j, { value: Y, className: "text-xs", children: qt(Y) }, Y)) })
12772
12756
  ]
12773
12757
  }
12774
12758
  )
@@ -12782,7 +12766,7 @@ function Xg() {
12782
12766
  onValueChange: (Y) => y("align", Y),
12783
12767
  children: [
12784
12768
  /* @__PURE__ */ e(re, { className: "h-8 text-xs flex-1", children: /* @__PURE__ */ e(le, {}) }),
12785
- /* @__PURE__ */ e(ie, { children: k.map((Y) => /* @__PURE__ */ e(j, { value: Y, className: "text-xs", children: zt(Y) }, Y)) })
12769
+ /* @__PURE__ */ e(ie, { children: k.map((Y) => /* @__PURE__ */ e(j, { value: Y, className: "text-xs", children: qt(Y) }, Y)) })
12786
12770
  ]
12787
12771
  }
12788
12772
  )
@@ -13164,12 +13148,12 @@ function nx() {
13164
13148
  })) || [];
13165
13149
  }, [(P = a == null ? void 0 : a.config) == null ? void 0 : P.metricColumns]);
13166
13150
  De(() => {
13167
- var q, W;
13151
+ var z, W;
13168
13152
  if (!t || v.length === 0)
13169
13153
  return;
13170
13154
  const g = {};
13171
13155
  let w = !1;
13172
- const D = (q = v[1]) == null ? void 0 : q.value;
13156
+ const D = (z = v[1]) == null ? void 0 : z.value;
13173
13157
  !i.targetMetricKey && D && (g.targetMetricKey = D, w = !0);
13174
13158
  const F = (W = v[2]) == null ? void 0 : W.value;
13175
13159
  !i.comparativeMetricKey && !i.disableAutoComparative && F && (g.comparativeMetricKey = F, w = !0);
@@ -13177,8 +13161,8 @@ function nx() {
13177
13161
  ...i.rangeKeys || {}
13178
13162
  };
13179
13163
  let _ = !1;
13180
- if (Di.forEach((J, z) => {
13181
- !Y[J] && V[z] && (Y[J] = V[z].value, _ = !0);
13164
+ if (Di.forEach((J, q) => {
13165
+ !Y[J] && V[q] && (Y[J] = V[q].value, _ = !0);
13182
13166
  }), _ && (g.rangeKeys = Y, w = !0, i.showRanges === void 0 && (g.showRanges = !0)), w) {
13183
13167
  const J = Mi({
13184
13168
  ...i,
@@ -13380,7 +13364,7 @@ function nx() {
13380
13364
  {
13381
13365
  type: "button",
13382
13366
  className: "text-muted-foreground transition-colors hover:text-foreground",
13383
- children: /* @__PURE__ */ e(qn, { className: "h-3.5 w-3.5" })
13367
+ children: /* @__PURE__ */ e(zn, { className: "h-3.5 w-3.5" })
13384
13368
  }
13385
13369
  ) }),
13386
13370
  /* @__PURE__ */ e(Lt, { side: "top", children: "Use columns or static values for Poor / Average / Good." })
@@ -13584,7 +13568,7 @@ function ax() {
13584
13568
  /* @__PURE__ */ n("div", { className: "flex items-center gap-1 text-xs font-medium text-muted-foreground", children: [
13585
13569
  "Dimensions",
13586
13570
  /* @__PURE__ */ e(jt, { children: /* @__PURE__ */ n(Vt, { children: [
13587
- /* @__PURE__ */ e(Bt, { children: /* @__PURE__ */ e(qn, { className: "h-3 w-3" }) }),
13571
+ /* @__PURE__ */ e(Bt, { children: /* @__PURE__ */ e(zn, { className: "h-3 w-3" }) }),
13588
13572
  /* @__PURE__ */ e(Lt, { side: "right", className: "max-w-xs", children: /* @__PURE__ */ e("p", { children: "Label identifies each point. Group creates separate series in the legend." }) })
13589
13573
  ] }) })
13590
13574
  ] }),
@@ -13808,7 +13792,7 @@ function ax() {
13808
13792
  size: "sm",
13809
13793
  checked: ((k = (E = t == null ? void 0 : t.xAxisConfig) == null ? void 0 : E.name) == null ? void 0 : k.enabled) ?? !1,
13810
13794
  onCheckedChange: (D) => {
13811
- var Y, _, q, W;
13795
+ var Y, _, z, W;
13812
13796
  const F = d.xMetricKey || "X Axis", V = d.yMetricKey || "Y Axis";
13813
13797
  y({
13814
13798
  ...t ?? {},
@@ -13823,7 +13807,7 @@ function ax() {
13823
13807
  ...t == null ? void 0 : t.yAxisConfig,
13824
13808
  name: {
13825
13809
  enabled: D,
13826
- text: ((W = (q = t == null ? void 0 : t.yAxisConfig) == null ? void 0 : q.name) == null ? void 0 : W.text) || V
13810
+ text: ((W = (z = t == null ? void 0 : t.yAxisConfig) == null ? void 0 : z.name) == null ? void 0 : W.text) || V
13827
13811
  }
13828
13812
  }
13829
13813
  });
@@ -14010,7 +13994,7 @@ function rx() {
14010
13994
  ] }) : null;
14011
13995
  }
14012
13996
  function Is() {
14013
- const t = L((l) => l.card), { data: a, comparisonMetadata: s } = _t(t), { keys: r } = rr((a == null ? void 0 : a.records) || [], s), c = r.slice(1).filter((l) => !Uh.includes(l));
13997
+ const t = L((l) => l.card), { data: a, comparisonMetadata: s } = _t(t), { keys: r } = rr((a == null ? void 0 : a.records) || [], s), c = r.slice(1).filter((l) => !Gh.includes(l));
14014
13998
  let i = c;
14015
13999
  if (["stackedBar", "stackedLine"].includes(t.type)) {
14016
14000
  const l = vm({
@@ -14091,7 +14075,7 @@ function Es({
14091
14075
  onValueChange: (N) => d("position", N),
14092
14076
  children: [
14093
14077
  /* @__PURE__ */ e(re, { className: "h-7 text-xs", children: /* @__PURE__ */ e(le, {}) }),
14094
- /* @__PURE__ */ e(ie, { children: l.map((N) => /* @__PURE__ */ e(j, { value: N, className: "text-xs", children: N === "auto" ? f() : N === "custom" ? "Custom (Advanced)" : zt(N) }, N)) })
14078
+ /* @__PURE__ */ e(ie, { children: l.map((N) => /* @__PURE__ */ e(j, { value: N, className: "text-xs", children: N === "auto" ? f() : N === "custom" ? "Custom (Advanced)" : qt(N) }, N)) })
14095
14079
  ]
14096
14080
  }
14097
14081
  )
@@ -14106,7 +14090,7 @@ function Es({
14106
14090
  onValueChange: (N) => d("anchor", N),
14107
14091
  children: [
14108
14092
  /* @__PURE__ */ e(re, { className: "h-7 w-24 text-xs", children: /* @__PURE__ */ e(le, {}) }),
14109
- /* @__PURE__ */ e(ie, { children: ox.map((N) => /* @__PURE__ */ e(j, { value: N, className: "text-xs", children: zt(N) }, N)) })
14093
+ /* @__PURE__ */ e(ie, { children: ox.map((N) => /* @__PURE__ */ e(j, { value: N, className: "text-xs", children: qt(N) }, N)) })
14110
14094
  ]
14111
14095
  }
14112
14096
  )
@@ -14120,7 +14104,7 @@ function Es({
14120
14104
  onValueChange: (N) => d("align", N),
14121
14105
  children: [
14122
14106
  /* @__PURE__ */ e(re, { className: "h-7 w-24 text-xs", children: /* @__PURE__ */ e(le, {}) }),
14123
- /* @__PURE__ */ e(ie, { children: cx.map((N) => /* @__PURE__ */ e(j, { value: N, className: "text-xs", children: zt(N) }, N)) })
14107
+ /* @__PURE__ */ e(ie, { children: cx.map((N) => /* @__PURE__ */ e(j, { value: N, className: "text-xs", children: qt(N) }, N)) })
14124
14108
  ]
14125
14109
  }
14126
14110
  )
@@ -14135,7 +14119,7 @@ function Es({
14135
14119
  onValueChange: (N) => d("format", N),
14136
14120
  children: [
14137
14121
  /* @__PURE__ */ e(re, { className: "h-7 text-xs", children: /* @__PURE__ */ e(le, {}) }),
14138
- /* @__PURE__ */ e(ie, { children: o.map((N) => /* @__PURE__ */ e(j, { value: N, className: "text-xs", children: N === "auto" && r ? "Auto (Use Axis)" : N === "none" ? "None (Raw Value)" : zt(N) }, N)) })
14122
+ /* @__PURE__ */ e(ie, { children: o.map((N) => /* @__PURE__ */ e(j, { value: N, className: "text-xs", children: N === "auto" && r ? "Auto (Use Axis)" : N === "none" ? "None (Raw Value)" : qt(N) }, N)) })
14139
14123
  ]
14140
14124
  }
14141
14125
  )
@@ -14310,7 +14294,7 @@ function px() {
14310
14294
  return (s = a.card) == null ? void 0 : s.type;
14311
14295
  }) !== "combo" ? null : /* @__PURE__ */ n(dt, { value: "combo-series", className: "border-b-0", children: [
14312
14296
  /* @__PURE__ */ e(ut, { 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: [
14313
- /* @__PURE__ */ e(qa, { className: "h-4 w-4 text-muted-foreground" }),
14297
+ /* @__PURE__ */ e(za, { className: "h-4 w-4 text-muted-foreground" }),
14314
14298
  /* @__PURE__ */ e("span", { children: "Series" })
14315
14299
  ] }) }),
14316
14300
  /* @__PURE__ */ e(mt, { className: "pt-2", children: /* @__PURE__ */ e(fx, {}) })
@@ -14582,7 +14566,7 @@ function Nx() {
14582
14566
  });
14583
14567
  return t !== "area" && t !== "stackedArea" ? null : /* @__PURE__ */ n(dt, { value: "area-series", className: "border-b-0", children: [
14584
14568
  /* @__PURE__ */ e(ut, { 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: [
14585
- /* @__PURE__ */ e(qa, { className: "h-4 w-4 text-muted-foreground" }),
14569
+ /* @__PURE__ */ e(za, { className: "h-4 w-4 text-muted-foreground" }),
14586
14570
  /* @__PURE__ */ e("span", { children: "Series" })
14587
14571
  ] }) }),
14588
14572
  /* @__PURE__ */ e(mt, { className: "pt-2", children: /* @__PURE__ */ e(Cx, {}) })
@@ -14812,7 +14796,7 @@ function kx() {
14812
14796
  return (s = a.card) == null ? void 0 : s.type;
14813
14797
  }) !== "line" ? null : /* @__PURE__ */ n(dt, { value: "line-series", className: "border-b-0", children: [
14814
14798
  /* @__PURE__ */ e(ut, { 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: [
14815
- /* @__PURE__ */ e(qa, { className: "h-4 w-4 text-muted-foreground" }),
14799
+ /* @__PURE__ */ e(za, { className: "h-4 w-4 text-muted-foreground" }),
14816
14800
  /* @__PURE__ */ e("span", { children: "Series" })
14817
14801
  ] }) }),
14818
14802
  /* @__PURE__ */ e(mt, { className: "pt-2", children: /* @__PURE__ */ e(Dx, {}) })
@@ -15004,7 +14988,7 @@ function Ex() {
15004
14988
  });
15005
14989
  return !t || !["bar", "horizontalBar", "stackedBar"].includes(t) ? null : /* @__PURE__ */ n(dt, { value: "bar-series", className: "border-b-0", children: [
15006
14990
  /* @__PURE__ */ e(ut, { 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: [
15007
- /* @__PURE__ */ e(qa, { className: "h-4 w-4 text-muted-foreground" }),
14991
+ /* @__PURE__ */ e(za, { className: "h-4 w-4 text-muted-foreground" }),
15008
14992
  /* @__PURE__ */ e("span", { children: "Series" })
15009
14993
  ] }) }),
15010
14994
  /* @__PURE__ */ e(mt, { className: "pt-2", children: /* @__PURE__ */ e(Ax, {}) })
@@ -15086,7 +15070,7 @@ function Ox({ metricKey: t, idx: a }) {
15086
15070
  "border border-border bg-background text-muted-foreground"
15087
15071
  ),
15088
15072
  children: [
15089
- /* @__PURE__ */ e(zo, { className: "h-3 w-3" }),
15073
+ /* @__PURE__ */ e(qo, { className: "h-3 w-3" }),
15090
15074
  "r:",
15091
15075
  u
15092
15076
  ]
@@ -15181,7 +15165,7 @@ function Lx() {
15181
15165
  };
15182
15166
  return /* @__PURE__ */ n(dt, { value: "line-style", className: "border-b-0", children: [
15183
15167
  /* @__PURE__ */ e(ut, { 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: [
15184
- /* @__PURE__ */ e(zp, { className: "h-4 w-4 text-muted-foreground" }),
15168
+ /* @__PURE__ */ e(jp, { className: "h-4 w-4 text-muted-foreground" }),
15185
15169
  /* @__PURE__ */ e("span", { children: "Line Style" })
15186
15170
  ] }) }),
15187
15171
  /* @__PURE__ */ e(mt, { className: "pt-2", children: /* @__PURE__ */ n("div", { className: "space-y-3", children: [
@@ -15273,7 +15257,7 @@ function _x() {
15273
15257
  };
15274
15258
  return /* @__PURE__ */ n(dt, { value: "bar-style", className: "border-b-0", children: [
15275
15259
  /* @__PURE__ */ e(ut, { 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: [
15276
- /* @__PURE__ */ e(zo, { className: "h-4 w-4 text-muted-foreground" }),
15260
+ /* @__PURE__ */ e(qo, { className: "h-4 w-4 text-muted-foreground" }),
15277
15261
  /* @__PURE__ */ e("span", { children: "Bar Style" })
15278
15262
  ] }) }),
15279
15263
  /* @__PURE__ */ e(mt, { className: "pt-2", children: /* @__PURE__ */ n("div", { className: "space-y-3", children: [
@@ -15364,11 +15348,11 @@ function $x() {
15364
15348
  ] }) })
15365
15349
  ] });
15366
15350
  }
15367
- const qx = ["kpi"], ar = 2;
15351
+ const zx = ["kpi"], ar = 2;
15368
15352
  function On(t) {
15369
15353
  return typeof t == "string" ? t.trim().toLowerCase() : ((t == null ? void 0 : t.id) || (t == null ? void 0 : t.qualifiedFieldName) || (t == null ? void 0 : t.name) || (t == null ? void 0 : t.label) || "").trim().toLowerCase();
15370
15354
  }
15371
- function zx(t) {
15355
+ function qx(t) {
15372
15356
  if (!(t != null && t.name) || !(t != null && t.dataType) || t.role === "metric")
15373
15357
  return !1;
15374
15358
  const a = gt(t.dataType);
@@ -15384,9 +15368,9 @@ function Kx() {
15384
15368
  var T, O;
15385
15369
  const t = L((N) => N.card), a = L(
15386
15370
  (N) => N.actions.updateCardConfig
15387
- ), s = Et(), { scopedFields: r } = To(), c = ((T = t.config) == null ? void 0 : T.metricColumns) || [], i = ((O = t.config) == null ? void 0 : O.summary) || {}, l = i.breakdownDimensions || [], o = l.length > 0, d = qx.includes(s), u = c.length > 0, m = i.enabled === !0, f = d && u, p = Array.from(
15371
+ ), s = Et(), { scopedFields: r } = To(), c = ((T = t.config) == null ? void 0 : T.metricColumns) || [], i = ((O = t.config) == null ? void 0 : O.summary) || {}, l = i.breakdownDimensions || [], o = l.length > 0, d = zx.includes(s), u = c.length > 0, m = i.enabled === !0, f = d && u, p = Array.from(
15388
15372
  new Map(
15389
- r.filter(zx).map((N) => [On(N), jx(N)])
15373
+ r.filter(qx).map((N) => [On(N), jx(N)])
15390
15374
  ).values()
15391
15375
  ), h = new Set(
15392
15376
  p.map((N) => On(N))
@@ -15578,7 +15562,7 @@ function Gx() {
15578
15562
  };
15579
15563
  return /* @__PURE__ */ n(dt, { value: "tooltip-format", className: "border-b-0", children: [
15580
15564
  /* @__PURE__ */ e(ut, { 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: [
15581
- /* @__PURE__ */ e(qn, { className: "h-3.5 w-3.5 text-foreground/60" }),
15565
+ /* @__PURE__ */ e(zn, { className: "h-3.5 w-3.5 text-foreground/60" }),
15582
15566
  /* @__PURE__ */ e("span", { children: "Tooltip Format" })
15583
15567
  ] }) }),
15584
15568
  /* @__PURE__ */ n(mt, { className: "space-y-4 pt-2", children: [
@@ -15627,7 +15611,7 @@ function Sc({ mode: t }) {
15627
15611
  /* @__PURE__ */ e(Lx, {}),
15628
15612
  /* @__PURE__ */ e(_x, {}),
15629
15613
  /* @__PURE__ */ e(Zg, {}),
15630
- t === "config" && /* @__PURE__ */ e(qg, {}),
15614
+ t === "config" && /* @__PURE__ */ e(zg, {}),
15631
15615
  t === "config" && /* @__PURE__ */ e(Kx, {}),
15632
15616
  /* @__PURE__ */ e(tx, {}),
15633
15617
  a === "bullet" && /* @__PURE__ */ e(nx, {}),
@@ -15655,7 +15639,7 @@ function Qx({
15655
15639
  const s = L((l) => l.card), r = s.type;
15656
15640
  if (ua(s) === "dynamic")
15657
15641
  return /* @__PURE__ */ e("div", { className: "p-6", children: /* @__PURE__ */ n(vo, { children: [
15658
- /* @__PURE__ */ e(qn, { className: "h-4 w-4" }),
15642
+ /* @__PURE__ */ e(zn, { className: "h-4 w-4" }),
15659
15643
  /* @__PURE__ */ e(Cm, { children: "Dynamic mode manages presentation" }),
15660
15644
  /* @__PURE__ */ e(No, { 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." })
15661
15645
  ] }) });
@@ -15682,7 +15666,7 @@ function Qx({
15682
15666
  return /* @__PURE__ */ e(Hx, {});
15683
15667
  }
15684
15668
  }
15685
- return /* @__PURE__ */ n(za, { className: "h-full w-full text-sm", children: [
15669
+ return /* @__PURE__ */ n(qa, { className: "h-full w-full text-sm", children: [
15686
15670
  i(),
15687
15671
  /* @__PURE__ */ e(Lr, { orientation: "horizontal" })
15688
15672
  ] });
@@ -15778,7 +15762,7 @@ function Wx() {
15778
15762
  );
15779
15763
  }
15780
15764
  function Jx(t) {
15781
- var ze;
15765
+ var qe;
15782
15766
  Sa(
15783
15767
  (G) => G.currentAIContext
15784
15768
  );
@@ -15806,12 +15790,12 @@ function Jx(t) {
15806
15790
  errorMessage: E,
15807
15791
  refetch: k,
15808
15792
  data: A
15809
- } = _t(O), { setTriggerAIRun: C, setCurrentAssitantScope: P, setCardConfig: B } = Se(), { selectedDatamodelName: g, connectionType: w, selectedDatamodelId: D } = wm(), F = (ze = _i().data) == null ? void 0 : ze.assistantProfileId, V = Re(Za()), Y = Re(null), _ = Re(o), q = Re(!1), W = () => {
15793
+ } = _t(O), { setTriggerAIRun: C, setCurrentAssitantScope: P, setCardConfig: B } = Se(), { selectedDatamodelName: g, connectionType: w, selectedDatamodelId: D } = wm(), F = (qe = _i().data) == null ? void 0 : qe.assistantProfileId, V = Re(Za()), Y = Re(null), _ = Re(o), z = Re(!1), W = () => {
15810
15794
  const G = Y.current;
15811
- G && (Y.current = null, V.current = Za(), G === "clear" && z([]));
15795
+ G && (Y.current = null, V.current = Za(), G === "clear" && q([]));
15812
15796
  }, {
15813
15797
  messages: J,
15814
- setMessages: z,
15798
+ setMessages: q,
15815
15799
  regenerate: X,
15816
15800
  error: H,
15817
15801
  sendMessage: ue,
@@ -15820,7 +15804,7 @@ function Jx(t) {
15820
15804
  stop: Ae,
15821
15805
  clearError: Ye
15822
15806
  } = $i({
15823
- transport: new qi({
15807
+ transport: new zi({
15824
15808
  api: `${l.apiServiceUrl}/v1/assistant`,
15825
15809
  headers: () => ({
15826
15810
  Authorization: `Bearer ${i == null ? void 0 : i.accessToken}`
@@ -15851,7 +15835,7 @@ function Jx(t) {
15851
15835
  }),
15852
15836
  onError: (G) => {
15853
15837
  var ye;
15854
- if (q.current = !1, G.name === "AbortError" || (ye = G.message) != null && ye.includes("aborted")) {
15838
+ if (z.current = !1, G.name === "AbortError" || (ye = G.message) != null && ye.includes("aborted")) {
15855
15839
  console.log("[Editor Assistant] Stream aborted (expected)"), W();
15856
15840
  return;
15857
15841
  }
@@ -15859,37 +15843,37 @@ function Jx(t) {
15859
15843
  },
15860
15844
  onToolCall: Le,
15861
15845
  onFinish({ isAbort: G, isDisconnect: ye, isError: Ie }) {
15862
- q.current = !1, s(""), console.log(G ? "[Editor Assistant] Stream aborted by user" : ye ? "[Editor Assistant] Stream disconnected (network error)" : Ie ? "[Editor Assistant] Stream error occurred" : "[Editor Assistant] Stream completed successfully"), W();
15846
+ z.current = !1, s(""), console.log(G ? "[Editor Assistant] Stream aborted by user" : ye ? "[Editor Assistant] Stream disconnected (network error)" : Ie ? "[Editor Assistant] Stream error occurred" : "[Editor Assistant] Stream completed successfully"), W();
15863
15847
  }
15864
15848
  }), Qe = Fe(
15865
15849
  (G) => {
15866
- q.current = !0;
15850
+ z.current = !0;
15867
15851
  try {
15868
15852
  const ye = ue(G);
15869
15853
  return Ul(ye) ? ye.catch((Ie) => {
15870
- throw q.current = !1, Ie;
15854
+ throw z.current = !1, Ie;
15871
15855
  }) : ye;
15872
15856
  } catch (ye) {
15873
- throw q.current = !1, ye;
15857
+ throw z.current = !1, ye;
15874
15858
  }
15875
15859
  },
15876
15860
  [ue]
15877
15861
  ), ht = Fe(() => {
15878
- q.current = !0;
15862
+ z.current = !0;
15879
15863
  try {
15880
15864
  const G = X();
15881
15865
  return Ul(G) ? G.catch((ye) => {
15882
- throw q.current = !1, ye;
15866
+ throw z.current = !1, ye;
15883
15867
  }) : G;
15884
15868
  } catch (G) {
15885
- throw q.current = !1, G;
15869
+ throw z.current = !1, G;
15886
15870
  }
15887
15871
  }, [X]), Ge = (G) => {
15888
15872
  let ye = !1;
15889
- z((Ie) => {
15873
+ q((Ie) => {
15890
15874
  const pe = typeof G == "function" ? G(Ie) : G;
15891
15875
  if (pe.length === 0) {
15892
- if (q.current)
15876
+ if (z.current)
15893
15877
  return Y.current = "clear", ye = !0, Ie;
15894
15878
  Y.current = null, V.current = Za();
15895
15879
  }
@@ -15898,7 +15882,7 @@ function Jx(t) {
15898
15882
  };
15899
15883
  De(() => {
15900
15884
  if (_.current !== o) {
15901
- if (_.current = o, q.current) {
15885
+ if (_.current = o, z.current) {
15902
15886
  Y.current !== "clear" && (Y.current = "rotate"), Ae();
15903
15887
  return;
15904
15888
  }
@@ -15991,7 +15975,7 @@ function Jx(t) {
15991
15975
  }
15992
15976
  function He(G) {
15993
15977
  const ye = Mm(G);
15994
- P(ye), z((Ie) => [
15978
+ P(ye), q((Ie) => [
15995
15979
  ...Ie,
15996
15980
  {
15997
15981
  id: crypto.randomUUID(),
@@ -16079,7 +16063,7 @@ function Ai({
16079
16063
  onFullscreenChange: a,
16080
16064
  fullscreenContainer: s
16081
16065
  }) {
16082
- const r = Re(null), c = Re(!1), [i, l] = K(!1), [o, d] = K(Gh), [u, m] = K(!1), [f, p] = K(!1), [h, b] = K(!1), [M, v] = K(0), y = t ?? h, T = Hh(), { setCurrentAIContext: O, setHasEditorEntitySelectionOverride: N } = Rr(), { clearQueue: x } = Qh(), { clearFileAttachments: I } = Wh(), S = Jh("editor"), { selectedEntities: R } = Pi("editor"), E = L((pe) => pe.card.id), k = L((pe) => pe.card.dataSource), A = L(
16066
+ const r = Re(null), c = Re(!1), [i, l] = K(!1), [o, d] = K(Hh), [u, m] = K(!1), [f, p] = K(!1), [h, b] = K(!1), [M, v] = K(0), y = t ?? h, T = Qh(), { setCurrentAIContext: O, setHasEditorEntitySelectionOverride: N } = Rr(), { clearQueue: x } = Wh(), { clearFileAttachments: I } = Jh(), S = Xh("editor"), { selectedEntities: R } = Pi("editor"), E = L((pe) => pe.card.id), k = L((pe) => pe.card.dataSource), A = L(
16083
16067
  (pe) => {
16084
16068
  var Ne;
16085
16069
  return (Ne = pe.card.dataSource) == null ? void 0 : Ne.selectedEntities;
@@ -16090,10 +16074,10 @@ function Ai({
16090
16074
  messages: V,
16091
16075
  setMessages: Y,
16092
16076
  sendMessage: _,
16093
- isLoading: q,
16077
+ isLoading: z,
16094
16078
  stop: W,
16095
16079
  status: J,
16096
- llmUsage: z,
16080
+ llmUsage: q,
16097
16081
  errorMessage: X,
16098
16082
  clearError: H
16099
16083
  } = Jx(), [ue, be] = K(""), Me = (pe) => {
@@ -16131,7 +16115,7 @@ function Ai({
16131
16115
  ]), Em({
16132
16116
  assistantType: "editor",
16133
16117
  status: J,
16134
- isLoading: q,
16118
+ isLoading: z,
16135
16119
  sendMessage: _
16136
16120
  });
16137
16121
  const { hasActiveTools: Qe, activeToolText: ht } = Am(V), Ge = Fe(
@@ -16193,7 +16177,7 @@ function Ai({
16193
16177
  parts: [{ type: "text", text: pe }]
16194
16178
  }), Ye();
16195
16179
  }
16196
- function ze() {
16180
+ function qe() {
16197
16181
  return /* @__PURE__ */ n(la, { children: [
16198
16182
  /* @__PURE__ */ e(ia, { asChild: !0, children: /* @__PURE__ */ e(
16199
16183
  Z,
@@ -16209,7 +16193,7 @@ function Ai({
16209
16193
  /* @__PURE__ */ e(Fn, { children: "Options" }),
16210
16194
  /* @__PURE__ */ e($t, {}),
16211
16195
  /* @__PURE__ */ e(
16212
- qt,
16196
+ zt,
16213
16197
  {
16214
16198
  checked: i,
16215
16199
  onCheckedChange: l,
@@ -16217,7 +16201,7 @@ function Ai({
16217
16201
  }
16218
16202
  ),
16219
16203
  /* @__PURE__ */ e(
16220
- qt,
16204
+ zt,
16221
16205
  {
16222
16206
  checked: o,
16223
16207
  onCheckedChange: d,
@@ -16225,7 +16209,7 @@ function Ai({
16225
16209
  }
16226
16210
  ),
16227
16211
  /* @__PURE__ */ e(
16228
- qt,
16212
+ zt,
16229
16213
  {
16230
16214
  checked: u,
16231
16215
  onCheckedChange: m,
@@ -16270,7 +16254,7 @@ function Ai({
16270
16254
  "data-role": "header-actions",
16271
16255
  className: "flex shrink-0 items-center gap-1.5",
16272
16256
  children: [
16273
- ze(),
16257
+ qe(),
16274
16258
  o && /* @__PURE__ */ e(
16275
16259
  Z,
16276
16260
  {
@@ -16326,10 +16310,10 @@ function Ai({
16326
16310
  handleRun: Je,
16327
16311
  showSystemMessage: u,
16328
16312
  onQuickReply: Le,
16329
- disableQuickReplies: q,
16313
+ disableQuickReplies: z,
16330
16314
  status: J,
16331
16315
  errorMessage: X,
16332
- activeToolText: q && Qe ? ht : void 0,
16316
+ activeToolText: z && Qe ? ht : void 0,
16333
16317
  className: "mt-2 w-full grow px-0 py-2 pr-3",
16334
16318
  latestButtonClassName: B ? "bottom-24 right-8" : "hidden",
16335
16319
  scrollToEndSignal: M
@@ -16364,7 +16348,7 @@ function Ai({
16364
16348
  handleSubmit: (pe) => {
16365
16349
  fe(), Ae(pe);
16366
16350
  },
16367
- isLoading: q,
16351
+ isLoading: z,
16368
16352
  status: J,
16369
16353
  assistantType: "editor",
16370
16354
  onFocus: () => {
@@ -16372,14 +16356,14 @@ function Ai({
16372
16356
  }
16373
16357
  )
16374
16358
  ] }),
16375
- z && i && /* @__PURE__ */ e("div", { className: "flex h-8 items-center justify-between", children: /* @__PURE__ */ n("div", { className: "text-xs text-muted-foreground", children: [
16359
+ q && i && /* @__PURE__ */ e("div", { className: "flex h-8 items-center justify-between", children: /* @__PURE__ */ n("div", { className: "text-xs text-muted-foreground", children: [
16376
16360
  "Usage: ",
16377
- z.inputTokens,
16361
+ q.inputTokens,
16378
16362
  " prompt tokens, ",
16379
- z.outputTokens,
16363
+ q.outputTokens,
16380
16364
  " ",
16381
16365
  "completion tokens, ",
16382
- z.totalTokens,
16366
+ q.totalTokens,
16383
16367
  " total tokens"
16384
16368
  ] }) }),
16385
16369
  /* @__PURE__ */ e(
@@ -16401,7 +16385,7 @@ function Ai({
16401
16385
  ]
16402
16386
  }
16403
16387
  );
16404
- return y && s ? yp(
16388
+ return y && s ? vp(
16405
16389
  /* @__PURE__ */ e(Bm, { className: "pointer-events-auto absolute inset-0 z-50 flex bg-background px-6 pb-6 pt-[calc(var(--app-header-height,15px)+1rem)]", children: /* @__PURE__ */ e("div", { className: "flex h-full w-full", children: Ie }) }),
16406
16390
  s
16407
16391
  ) : Ie;
@@ -16770,7 +16754,7 @@ function ab({ idx: t }) {
16770
16754
  (d) => d.actions.setCardPreferences
16771
16755
  ), c = (o = a == null ? void 0 : a.chartOptions) == null ? void 0 : o.indexAxis, i = s == null ? void 0 : s.find((d) => d.idx === t);
16772
16756
  function l(d, u) {
16773
- (d === "end" || d === "start") && Xh(Zh());
16757
+ (d === "end" || d === "start") && Zh(ep());
16774
16758
  const m = {
16775
16759
  display: d !== "none",
16776
16760
  align: d,
@@ -16801,7 +16785,7 @@ function ab({ idx: t }) {
16801
16785
  }
16802
16786
  }
16803
16787
  return /* @__PURE__ */ n(Mt, { children: [
16804
- /* @__PURE__ */ e(Yt, { children: /* @__PURE__ */ e(Up, { className: "size-4 rotate-[135deg] cursor-pointer text-muted-foreground hover:text-foreground" }) }),
16788
+ /* @__PURE__ */ e(Yt, { children: /* @__PURE__ */ e(_m, { className: "size-4 rotate-[135deg] cursor-pointer text-muted-foreground hover:text-foreground" }) }),
16805
16789
  /* @__PURE__ */ e(It, { className: "w-fit px-2 py-1", children: /* @__PURE__ */ n("div", { className: "flex gap-1", children: [
16806
16790
  /* @__PURE__ */ e(
16807
16791
  "button",
@@ -16817,7 +16801,7 @@ function ab({ idx: t }) {
16817
16801
  onClick: () => l("start", t),
16818
16802
  className: "h-7 p-1 text-xs font-normal",
16819
16803
  children: /* @__PURE__ */ e(
16820
- Pp,
16804
+ Lp,
16821
16805
  {
16822
16806
  className: U("h-4 w-4", {
16823
16807
  "rotate-90": c === "y"
@@ -16832,7 +16816,7 @@ function ab({ idx: t }) {
16832
16816
  onClick: () => l("center", t),
16833
16817
  className: "h-7 p-1 text-xs font-normal",
16834
16818
  children: /* @__PURE__ */ e(
16835
- Vp,
16819
+ Bp,
16836
16820
  {
16837
16821
  className: U("h-4 w-4", {
16838
16822
  "rotate-90": c === "y"
@@ -16847,7 +16831,7 @@ function ab({ idx: t }) {
16847
16831
  onClick: () => l("end", t),
16848
16832
  className: "h-7 p-1 text-xs font-normal",
16849
16833
  children: /* @__PURE__ */ e(
16850
- Lp,
16834
+ Vp,
16851
16835
  {
16852
16836
  className: U("h-4 w-4", {
16853
16837
  "rotate-90": c === "y"
@@ -17113,7 +17097,7 @@ function ob({
17113
17097
  connection_id: o.connectionId,
17114
17098
  cardConfig: m,
17115
17099
  cardDataSource: o,
17116
- cache_config: ep({ card: l }),
17100
+ cache_config: tp({ card: l }),
17117
17101
  calendarContext: i
17118
17102
  };
17119
17103
  console.log("requestBody", f);
@@ -17289,7 +17273,7 @@ function kc({
17289
17273
  onClick: () => b(x),
17290
17274
  className: "group flex items-center gap-2 rounded-[5px] border border-border px-2 py-1.5 text-left transition-colors hover:bg-muted focus-visible:border-ring focus-visible:outline-none",
17291
17275
  children: [
17292
- /* @__PURE__ */ e(_m, { dataType: gt(x.dataType) }),
17276
+ /* @__PURE__ */ e($m, { dataType: gt(x.dataType) }),
17293
17277
  /* @__PURE__ */ n("div", { className: "min-w-0 flex-1", children: [
17294
17278
  /* @__PURE__ */ e("div", { className: "truncate text-[13px] text-foreground", children: x.label }),
17295
17279
  /* @__PURE__ */ n("div", { className: "truncate font-mono text-[10px] text-muted-foreground", children: [
@@ -17419,8 +17403,8 @@ function db({
17419
17403
  showTitle: r = !0,
17420
17404
  title: c = "NUMBER FORMAT"
17421
17405
  }) {
17422
- const i = $m(s), l = Co(), o = qo(
17423
- tp(t, { preserveOmittedProperties: !0 }),
17406
+ const i = zm(s), l = Co(), o = zo(
17407
+ np(t, { preserveOmittedProperties: !0 }),
17424
17408
  { preserveOmittedProperties: !0 }
17425
17409
  ) || {};
17426
17410
  return /* @__PURE__ */ e(
@@ -17429,7 +17413,7 @@ function db({
17429
17413
  formatOptions: o,
17430
17414
  onFormatOptionsChange: (u) => {
17431
17415
  a(
17432
- np(u, {
17416
+ ap(u, {
17433
17417
  preserveOmittedProperties: !0
17434
17418
  })
17435
17419
  );
@@ -17485,10 +17469,10 @@ function mb({
17485
17469
  removeField: V,
17486
17470
  handleMetricComparisonChange: Y,
17487
17471
  handleMetricComparisonSpecChange: _,
17488
- handleMetricComparisonPolarityChange: q,
17472
+ handleMetricComparisonPolarityChange: z,
17489
17473
  handleMetricWindowTransformChange: W,
17490
17474
  handleMetricWindowOrderByChange: J,
17491
- handleMetricWindowDirectionChange: z,
17475
+ handleMetricWindowDirectionChange: q,
17492
17476
  handleMetricWindowPartitionToggle: X,
17493
17477
  handleMetricMovingAverageWindowSizeChange: H,
17494
17478
  handleMetricMovingAverageMinPeriodsChange: ue,
@@ -17499,12 +17483,12 @@ function mb({
17499
17483
  } = Mo(h), [Qe, ht] = K(!1), [Ge, Le] = K(() => {
17500
17484
  var Q;
17501
17485
  return !!((Q = t.parameters) != null && Q.windowTransform);
17502
- }), [We, He] = K(!1), [Je, fe] = K(!1), [_e, Pe] = K(null), ze = ce(() => {
17486
+ }), [We, He] = K(!1), [Je, fe] = K(!1), [_e, Pe] = K(null), qe = ce(() => {
17503
17487
  const Q = (xe) => xe != null && xe.startsWith("card-source-") ? xe.replace("card-source-", "") : xe, Ee = Q(t.id), te = x.find((xe) => {
17504
17488
  if (t.qualifiedFieldName && xe.qualifiedFieldName && xe.qualifiedFieldName === t.qualifiedFieldName || t.qualifiedEntityName && xe.qualifiedEntityName && xe.qualifiedEntityName === t.qualifiedEntityName && xe.name === t.name)
17505
17489
  return !0;
17506
- const qe = Q(xe.id);
17507
- return !!(Ee && qe && Ee === qe);
17490
+ const ze = Q(xe.id);
17491
+ return !!(Ee && ze && Ee === ze);
17508
17492
  });
17509
17493
  return {
17510
17494
  dataType: (te == null ? void 0 : te.dataType) || t.dataType,
@@ -17518,9 +17502,9 @@ function mb({
17518
17502
  t.qualifiedFieldName,
17519
17503
  x
17520
17504
  ]), G = qm(
17521
- ze.dataType
17505
+ qe.dataType
17522
17506
  ), ye = ce(
17523
- () => ap({
17507
+ () => sp({
17524
17508
  fieldId: t.id,
17525
17509
  dataType: t.dataType,
17526
17510
  granularity: t.granularity,
@@ -17541,7 +17525,7 @@ function mb({
17541
17525
  ), Ie = a === "groupBy" ? ye.ok && G.includes(ye.granularity) ? ye.granularity : void 0 : G.includes(t.granularity) ? t.granularity : "day", pe = ye.ok ? ye.selection : {
17542
17526
  value: "auto",
17543
17527
  customPattern: "",
17544
- format: vp
17528
+ format: Np
17545
17529
  }, [Ne, et] = K(
17546
17530
  a === "groupBy" ? pe.value : t.dateFormat || "YYYY-MM-DD"
17547
17531
  ), [ne, je] = K(
@@ -17560,26 +17544,26 @@ function mb({
17560
17544
  pe.format
17561
17545
  ).find(
17562
17546
  (vt) => vt.value === "custom"
17563
- ) : void 0, qe = a === "groupBy" ? ne || (((te = xe == null ? void 0 : xe.format) == null ? void 0 : te.presentation.mode) === "pattern" ? xe.format.presentation.pattern : "") : ne;
17564
- et(Q), je(qe), a === "groupBy" && B(
17547
+ ) : void 0, ze = a === "groupBy" ? ne || (((te = xe == null ? void 0 : xe.format) == null ? void 0 : te.presentation.mode) === "pattern" ? xe.format.presentation.pattern : "") : ne;
17548
+ et(Q), je(ze), a === "groupBy" && B(
17565
17549
  s,
17566
- zs(
17550
+ qs(
17567
17551
  Ee,
17568
17552
  Q,
17569
- qe
17553
+ ze
17570
17554
  )
17571
17555
  );
17572
17556
  } else
17573
17557
  et(Q), a === "groupBy" ? B(
17574
17558
  s,
17575
- zs(Ee, Q)
17559
+ qs(Ee, Q)
17576
17560
  ) : a === "detailColumns" && P(s, Q, "");
17577
17561
  }, he = (Q) => {
17578
17562
  if (a === "groupBy" && !Ie) return;
17579
17563
  const Ee = Ie ?? "day";
17580
17564
  je(Q), a === "groupBy" ? B(
17581
17565
  s,
17582
- zs(
17566
+ qs(
17583
17567
  Ee,
17584
17568
  "custom",
17585
17569
  Q
@@ -17587,10 +17571,10 @@ function mb({
17587
17571
  ) : a === "detailColumns" && P(s, "custom", Q);
17588
17572
  }, Ce = (Q) => {
17589
17573
  if (a === "groupBy") {
17590
- const Ee = Np(
17574
+ const Ee = Cp(
17591
17575
  pe.format,
17592
17576
  Q
17593
- ), te = op({
17577
+ ), te = dp({
17594
17578
  fieldId: t.id,
17595
17579
  dataType: t.dataType,
17596
17580
  granularity: Q,
@@ -17605,11 +17589,11 @@ function mb({
17605
17589
  kt(Q), a === "metrics" && D(s, Q);
17606
17590
  }, tt = (Q) => {
17607
17591
  A(a, s, Q);
17608
- }, at = zm(t), wt = Io(t), ct = jm(t), Ot = t.role === "metric" && ct, Xt = ct && (at === "user_calculated" || at === "inline_expression" && t.fieldScope !== "domain"), yt = Xt ? sp({
17592
+ }, at = jm(t), wt = Io(t), ct = Km(t), Ot = t.role === "metric" && ct, Xt = ct && (at === "user_calculated" || at === "inline_expression" && t.fieldScope !== "domain"), yt = Xt ? rp({
17609
17593
  field: t,
17610
17594
  sheetFields: (b == null ? void 0 : b.calculatedFields) || [],
17611
17595
  dashboardFields: N
17612
- }) : void 0, In = Xt && (yt == null ? void 0 : yt.scope) === "sheet", Un = Xt && (yt == null ? void 0 : yt.scope) === "dashboard", Gn = at === "domain_calculated" || t.fieldScope === "domain", As = Gn ? Km(t, x) : void 0, Zt = Gn ? "domain" : In ? "sheet" : Un ? "dashboard" : "card", mn = Gn ? As || t : (In || Un) && (yt != null && yt.matchedField) ? yt.matchedField : t, Hn = (Q) => {
17596
+ }) : void 0, In = Xt && (yt == null ? void 0 : yt.scope) === "sheet", Un = Xt && (yt == null ? void 0 : yt.scope) === "dashboard", Gn = at === "domain_calculated" || t.fieldScope === "domain", As = Gn ? Um(t, x) : void 0, Zt = Gn ? "domain" : In ? "sheet" : Un ? "dashboard" : "card", mn = Gn ? As || t : (In || Un) && (yt != null && yt.matchedField) ? yt.matchedField : t, Hn = (Q) => {
17613
17597
  var Ee;
17614
17598
  if (ke(Q), a === "metrics") {
17615
17599
  const te = {
@@ -17630,7 +17614,7 @@ function mb({
17630
17614
  transform: Ss.Transform.toString(m),
17631
17615
  transition: f
17632
17616
  }, hn = gt(
17633
- ze.dataType || t.dataType
17617
+ qe.dataType || t.dataType
17634
17618
  ), Os = hn === "date", fa = l === "kpi", Fs = a === "detailColumns", ga = (nl = h.config) == null ? void 0 : nl.metricColumns, en = (al = h.config) == null ? void 0 : al.groupByColumns, Ka = ve((Q) => Q.dashboard), Ua = ve(
17635
17619
  (Q) => {
17636
17620
  var Ee;
@@ -17645,11 +17629,11 @@ function mb({
17645
17629
  ), pn = a === "groupBy" && Ie ? si(
17646
17630
  Ie,
17647
17631
  pe.format
17648
- ) : a === "detailColumns" ? eb(Ie ?? "day") : [], Qa = xt ? "custom" : !Ie && a === "groupBy" ? void 0 : pn.some((Q) => Q.value === Ne) ? Ne : ((sl = pn[0]) == null ? void 0 : sl.value) ?? "YYYY-MM-DD", Wa = !!l && lp.includes(l), ee = !!l && cp.includes(l), oe = ce(
17632
+ ) : a === "detailColumns" ? eb(Ie ?? "day") : [], Qa = xt ? "custom" : !Ie && a === "groupBy" ? void 0 : pn.some((Q) => Q.value === Ne) ? Ne : ((sl = pn[0]) == null ? void 0 : sl.value) ?? "YYYY-MM-DD", Wa = !!l && ip.includes(l), ee = !!l && op.includes(l), oe = ce(
17649
17633
  () => en == null ? void 0 : en.find((Q) => gt(Q.dataType || "") === "date"),
17650
17634
  [en]
17651
17635
  ), ae = ce(
17652
- () => rp({
17636
+ () => lp({
17653
17637
  card: h,
17654
17638
  cardConfig: h.config || {},
17655
17639
  semanticExecutionPayload: Ha
@@ -17669,10 +17653,10 @@ function mb({
17669
17653
  if (!we) return !1;
17670
17654
  const Q = (xe = h.config) == null ? void 0 : xe.filters;
17671
17655
  if (!Q) return !1;
17672
- const Ee = (qe) => {
17673
- const vt = qe.field;
17656
+ const Ee = (ze) => {
17657
+ const vt = ze.field;
17674
17658
  return vt ? we.id && vt.id === we.id || we.qualifiedFieldName && vt.qualifiedFieldName === we.qualifiedFieldName ? !0 : vt.name === we.name : !1;
17675
- }, te = (qe) => qe.conditions.some((ft) => gt(ft.field.dataType || "") === "date" && Ee(ft)) ? !0 : qe.groups.some((ft) => te(ft));
17659
+ }, te = (ze) => ze.conditions.some((ft) => gt(ft.field.dataType || "") === "date" && Ee(ft)) ? !0 : ze.groups.some((ft) => te(ft));
17676
17660
  return te(Q);
17677
17661
  }, [(rl = h.config) == null ? void 0 : rl.filters, we]), $e = ce(
17678
17662
  () => Tc(
@@ -17697,22 +17681,22 @@ function mb({
17697
17681
  v,
17698
17682
  k
17699
17683
  ]
17700
- ), pt = Ve || $e, Oe = t, rt = ((ll = Oe.comparison) == null ? void 0 : ll.mode) === "explicit" ? Oe.comparison.spec : void 0, fn = ((ol = (il = Oe.parameters) == null ? void 0 : il.windowTransform) == null ? void 0 : ol.function) || "none", St = Um(Oe), Ze = St ? fn : null, gn = Gm({
17684
+ ), pt = Ve || $e, Oe = t, rt = ((ll = Oe.comparison) == null ? void 0 : ll.mode) === "explicit" ? Oe.comparison.spec : void 0, fn = ((ol = (il = Oe.parameters) == null ? void 0 : il.windowTransform) == null ? void 0 : ol.function) || "none", St = Gm(Oe), Ze = St ? fn : null, gn = Hm({
17701
17685
  cardType: l || "table",
17702
17686
  cardConfig: h.config || {},
17703
17687
  metric: Oe,
17704
17688
  transformMode: Ze || "running_total"
17705
- }), En = ((cl = Oe.comparison) == null ? void 0 : cl.mode) === "explicit", Ja = Xm(
17689
+ }), En = ((cl = Oe.comparison) == null ? void 0 : cl.mode) === "explicit", Ja = Qm(
17706
17690
  en || []
17707
17691
  ), Qn = ((ml = (ul = (dl = Oe.parameters) == null ? void 0 : dl.windowTransform) == null ? void 0 : ul.orderBy) == null ? void 0 : ml.fieldId) || "", Mc = ((fl = (pl = (hl = Oe.parameters) == null ? void 0 : hl.windowTransform) == null ? void 0 : pl.orderBy) == null ? void 0 : fl.direction) || "asc", Wr = Ja.find(
17708
17692
  (Q) => Q.id === Qn
17709
- ), Rs = Ze === "running_total" || Ze === "moving_average" || Ze === "previous_period_delta", Ic = St && Rs && !!Wr && gt(Wr.dataType || "") !== "date", Ec = Hm({
17693
+ ), Rs = Ze === "running_total" || Ze === "moving_average" || Ze === "previous_period_delta", Ic = St && Rs && !!Wr && gt(Wr.dataType || "") !== "date", Ec = Wm({
17710
17694
  cardType: l || "table",
17711
17695
  cardConfig: h.config || {},
17712
17696
  orderByFieldId: Qn || void 0
17713
17697
  }), Ac = new Set(
17714
17698
  ((xl = (gl = Oe.parameters) == null ? void 0 : gl.windowTransform) == null ? void 0 : xl.partitionByFieldIds) || Ec
17715
- ), Oc = l === "pivotTable" || Qm(
17699
+ ), Oc = l === "pivotTable" || Jm(
17716
17700
  l || "table",
17717
17701
  h.config || {}
17718
17702
  ), Jr = [
@@ -17756,7 +17740,7 @@ function mb({
17756
17740
  }
17757
17741
  )
17758
17742
  ] });
17759
- }, qc = () => Vc ? /* @__PURE__ */ n("div", { className: "space-y-1", children: [
17743
+ }, zc = () => Vc ? /* @__PURE__ */ n("div", { className: "space-y-1", children: [
17760
17744
  /* @__PURE__ */ e($, { className: "text-xs font-medium text-muted-foreground", children: "Label" }),
17761
17745
  /* @__PURE__ */ e(
17762
17746
  Ht,
@@ -17767,7 +17751,7 @@ function mb({
17767
17751
  type: "text"
17768
17752
  }
17769
17753
  )
17770
- ] }) : null, zc = () => a !== "sortBy" ? null : /* @__PURE__ */ n("div", { className: "space-y-1", children: [
17754
+ ] }) : null, qc = () => a !== "sortBy" ? null : /* @__PURE__ */ n("div", { className: "space-y-1", children: [
17771
17755
  /* @__PURE__ */ e($, { className: "text-xs font-medium text-muted-foreground", children: "Order" }),
17772
17756
  /* @__PURE__ */ n(
17773
17757
  se,
@@ -18011,7 +17995,7 @@ function mb({
18011
17995
  se,
18012
17996
  {
18013
17997
  value: Mc,
18014
- onValueChange: (te) => z(
17998
+ onValueChange: (te) => q(
18015
17999
  s,
18016
18000
  te
18017
18001
  ),
@@ -18169,7 +18153,7 @@ function mb({
18169
18153
  /* @__PURE__ */ e(j, { value: "inherit", children: "Inherit dashboard comparison (default)" }),
18170
18154
  /* @__PURE__ */ e(j, { value: "off", children: "Off" }),
18171
18155
  (() => {
18172
- const te = !we || !pt, xe = we ? pt ? void 0 : "Add a date filter to enable" : "Configure a semantic primary date or add a date axis", qe = (vt, ft) => /* @__PURE__ */ e(jt, { children: /* @__PURE__ */ n(Vt, { children: [
18156
+ const te = !we || !pt, xe = we ? pt ? void 0 : "Add a date filter to enable" : "Configure a semantic primary date or add a date axis", ze = (vt, ft) => /* @__PURE__ */ e(jt, { children: /* @__PURE__ */ n(Vt, { children: [
18173
18157
  /* @__PURE__ */ e(Bt, { asChild: !0, children: /* @__PURE__ */ e(
18174
18158
  j,
18175
18159
  {
@@ -18182,8 +18166,8 @@ function mb({
18182
18166
  te && xe && /* @__PURE__ */ e(Lt, { side: "right", children: xe })
18183
18167
  ] }) });
18184
18168
  return /* @__PURE__ */ n(Te, { children: [
18185
- qe("previous_period", "Previous Period"),
18186
- qe("previous_year", "Previous Year")
18169
+ ze("previous_period", "Previous Period"),
18170
+ ze("previous_year", "Previous Year")
18187
18171
  ] });
18188
18172
  })(),
18189
18173
  ee && /* @__PURE__ */ e(j, { value: "target", children: "Target" })
@@ -18266,9 +18250,9 @@ function mb({
18266
18250
  /* @__PURE__ */ n(
18267
18251
  se,
18268
18252
  {
18269
- value: ip(Oe),
18253
+ value: cp(Oe),
18270
18254
  disabled: !!Oe.semanticComparisonPolarity,
18271
- onValueChange: (te) => q(
18255
+ onValueChange: (te) => z(
18272
18256
  s,
18273
18257
  te
18274
18258
  ),
@@ -18297,10 +18281,10 @@ function mb({
18297
18281
  Ye(s, void 0);
18298
18282
  return;
18299
18283
  }
18300
- const qe = Number(xe);
18284
+ const ze = Number(xe);
18301
18285
  Ye(
18302
18286
  s,
18303
- Number.isFinite(qe) ? qe : void 0
18287
+ Number.isFinite(ze) ? ze : void 0
18304
18288
  );
18305
18289
  },
18306
18290
  className: "h-8 text-xs",
@@ -18335,7 +18319,7 @@ function mb({
18335
18319
  te.value.length,
18336
18320
  "):"
18337
18321
  ] }),
18338
- /* @__PURE__ */ e("div", { className: "max-h-[200px] overflow-y-auto", children: te.value.map((xe, qe) => /* @__PURE__ */ e("div", { children: String(xe) }, qe)) })
18322
+ /* @__PURE__ */ e("div", { className: "max-h-[200px] overflow-y-auto", children: te.value.map((xe, ze) => /* @__PURE__ */ e("div", { children: String(xe) }, ze)) })
18339
18323
  ] })
18340
18324
  }
18341
18325
  )
@@ -18349,13 +18333,13 @@ function mb({
18349
18333
  onClick: (xe) => {
18350
18334
  var vt;
18351
18335
  xe.stopPropagation();
18352
- const qe = de.conditions.filter(
18336
+ const ze = de.conditions.filter(
18353
18337
  (ft) => ft.id !== te.id
18354
18338
  );
18355
- if (qe.length > 0) {
18339
+ if (ze.length > 0) {
18356
18340
  const ft = {
18357
18341
  ...de,
18358
- conditions: qe
18342
+ conditions: ze
18359
18343
  };
18360
18344
  Hn(ft);
18361
18345
  } else if (ke(void 0), a === "metrics") {
@@ -18473,7 +18457,7 @@ function mb({
18473
18457
  onClick: (Q) => {
18474
18458
  Q.stopPropagation(), c(r === "asc" ? "desc" : "asc");
18475
18459
  },
18476
- children: r === "asc" ? /* @__PURE__ */ e(Wm, { className: "h-3 w-3" }) : /* @__PURE__ */ e(Gi, { className: "h-3 w-3" })
18460
+ children: r === "asc" ? /* @__PURE__ */ e(Xm, { className: "h-3 w-3" }) : /* @__PURE__ */ e(Gi, { className: "h-3 w-3" })
18477
18461
  }
18478
18462
  ),
18479
18463
  Uc && /* @__PURE__ */ e(Yt, { asChild: !0, children: /* @__PURE__ */ e(
@@ -18483,7 +18467,7 @@ function mb({
18483
18467
  "aria-label": "Field configuration",
18484
18468
  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",
18485
18469
  onClick: (Q) => Q.stopPropagation(),
18486
- children: /* @__PURE__ */ e(Jm, { className: "h-3 w-3" })
18470
+ children: /* @__PURE__ */ e(Zm, { className: "h-3 w-3" })
18487
18471
  }
18488
18472
  ) }),
18489
18473
  /* @__PURE__ */ e(
@@ -18503,8 +18487,8 @@ function mb({
18503
18487
  ),
18504
18488
  /* @__PURE__ */ e(It, { align: "start", sideOffset: 6, className: "w-[320px] p-0", children: /* @__PURE__ */ n("div", { className: "max-h-[480px] space-y-3 overflow-y-auto p-3", children: [
18505
18489
  $c(),
18506
- zc(),
18507
18490
  qc(),
18491
+ zc(),
18508
18492
  l === "kpi" && el(),
18509
18493
  jc(),
18510
18494
  Kc()
@@ -18557,13 +18541,13 @@ function mb({
18557
18541
  card: Ee,
18558
18542
  frame: te,
18559
18543
  actions: xe
18560
- } = L.getState(), qe = ((Wn = Ee.config) == null ? void 0 : Wn.metricColumns) || [], vt = ((Wt = Ee.config) == null ? void 0 : Wt.sortByColumns) || [], ft = Zt === "dashboard" ? N : te.calculatedFields || [], {
18544
+ } = L.getState(), ze = ((Wn = Ee.config) == null ? void 0 : Wn.metricColumns) || [], vt = ((Wt = Ee.config) == null ? void 0 : Wt.sortByColumns) || [], ft = Zt === "dashboard" ? N : te.calculatedFields || [], {
18561
18545
  nextActiveFields: Ft,
18562
18546
  nextSortByFields: Gt,
18563
18547
  nextStoredFields: tn,
18564
18548
  nextSharedFields: xn
18565
18549
  } = Ro({
18566
- activeFields: qe,
18550
+ activeFields: ze,
18567
18551
  sortByFields: vt,
18568
18552
  storedFields: Ee.calculatedFields || [],
18569
18553
  sharedFields: ft,
@@ -18592,7 +18576,7 @@ function mb({
18592
18576
  card: Ee,
18593
18577
  frame: te,
18594
18578
  actions: xe
18595
- } = L.getState(), qe = t, vt = ((ba = Ee.config) == null ? void 0 : ba.metricColumns) || [], ft = ((ya = Ee.config) == null ? void 0 : ya.sortByColumns) || [], Ft = te.calculatedFields || [], {
18579
+ } = L.getState(), ze = t, vt = ((ba = Ee.config) == null ? void 0 : ba.metricColumns) || [], ft = ((ya = Ee.config) == null ? void 0 : ya.sortByColumns) || [], Ft = te.calculatedFields || [], {
18596
18580
  nextActiveFields: Gt,
18597
18581
  nextSortByFields: tn,
18598
18582
  nextStoredFields: xn,
@@ -18606,11 +18590,11 @@ function mb({
18606
18590
  dashboardFields: N,
18607
18591
  updatedField: {
18608
18592
  ...Q,
18609
- id: qe.id,
18610
- aliasTemplate: qe.aliasTemplate,
18611
- valueAliases: qe.valueAliases,
18612
- parameters: qe.parameters,
18613
- customFormat: qe.customFormat
18593
+ id: ze.id,
18594
+ aliasTemplate: ze.aliasTemplate,
18595
+ valueAliases: ze.valueAliases,
18596
+ parameters: ze.parameters,
18597
+ customFormat: ze.customFormat
18614
18598
  },
18615
18599
  editingField: mn,
18616
18600
  previousScope: Zt
@@ -18636,7 +18620,7 @@ function mb({
18636
18620
  card: Ee,
18637
18621
  frame: te,
18638
18622
  actions: xe
18639
- } = L.getState(), qe = t, vt = ((ba = Ee.config) == null ? void 0 : ba.metricColumns) || [], ft = ((ya = Ee.config) == null ? void 0 : ya.sortByColumns) || [], Ft = te.calculatedFields || [], {
18623
+ } = L.getState(), ze = t, vt = ((ba = Ee.config) == null ? void 0 : ba.metricColumns) || [], ft = ((ya = Ee.config) == null ? void 0 : ya.sortByColumns) || [], Ft = te.calculatedFields || [], {
18640
18624
  nextActiveFields: Gt,
18641
18625
  nextSortByFields: tn,
18642
18626
  nextStoredFields: xn,
@@ -18650,11 +18634,11 @@ function mb({
18650
18634
  sheetFields: Ft,
18651
18635
  updatedField: {
18652
18636
  ...Q,
18653
- id: qe.id,
18654
- aliasTemplate: qe.aliasTemplate,
18655
- valueAliases: qe.valueAliases,
18656
- parameters: qe.parameters,
18657
- customFormat: qe.customFormat
18637
+ id: ze.id,
18638
+ aliasTemplate: ze.aliasTemplate,
18639
+ valueAliases: ze.valueAliases,
18640
+ parameters: ze.parameters,
18641
+ customFormat: ze.customFormat
18658
18642
  },
18659
18643
  editingField: mn,
18660
18644
  previousScope: Zt
@@ -18687,7 +18671,7 @@ function hb({ concept: t }) {
18687
18671
  type: "button",
18688
18672
  "aria-label": `What does ${a} mean?`,
18689
18673
  className: "inline-flex h-3 w-3 shrink-0 items-center justify-center text-muted-foreground/70 transition-colors hover:text-foreground",
18690
- children: /* @__PURE__ */ e(Zm, { className: "h-3 w-3" })
18674
+ children: /* @__PURE__ */ e(eh, { className: "h-3 w-3" })
18691
18675
  }
18692
18676
  ) }),
18693
18677
  /* @__PURE__ */ n(
@@ -18798,7 +18782,7 @@ function Ca({
18798
18782
  hasPivotColumns: i = !1,
18799
18783
  activeField: l = null
18800
18784
  }) {
18801
- const { isOver: o, setNodeRef: d } = eh({
18785
+ const { isOver: o, setNodeRef: d } = th({
18802
18786
  id: t
18803
18787
  }), { updateSortByColumn: u } = Se(), m = L((y) => y.card), f = L((y) => y.card.type), p = a.length > 0, h = ce(() => !l || !o ? !0 : is(
18804
18788
  l,
@@ -18874,7 +18858,7 @@ function bb({
18874
18858
  detailFields: c,
18875
18859
  activeField: i
18876
18860
  }) {
18877
- var J, z, X;
18861
+ var J, q, X;
18878
18862
  const [l, o] = K(!1);
18879
18863
  L(
18880
18864
  (H) => {
@@ -18884,14 +18868,14 @@ function bb({
18884
18868
  );
18885
18869
  const d = L((H) => H.card), u = L((H) => H.frame), m = Kn(u, d), { manifest: f } = Dn(
18886
18870
  ((J = m == null ? void 0 : m.customCardPreferences) == null ? void 0 : J.url) || ""
18887
- ), p = (z = f == null ? void 0 : f.visuals) == null ? void 0 : z.find(
18871
+ ), p = (q = f == null ? void 0 : f.visuals) == null ? void 0 : q.find(
18888
18872
  (H) => {
18889
18873
  var ue;
18890
18874
  return H.name === ((ue = m == null ? void 0 : m.customCardPreferences) == null ? void 0 : ue.componentName);
18891
18875
  }
18892
18876
  ), h = Mn(m, p) === "multiple";
18893
18877
  h && ((X = m == null ? void 0 : m.customCardPreferences) != null && X.url);
18894
- const b = th(p == null ? void 0 : p.slots), M = L(
18878
+ const b = nh(p == null ? void 0 : p.slots), M = L(
18895
18879
  (H) => H.actions.updateCardConfig
18896
18880
  ), v = L((H) => H.actions.updateCard), y = L((H) => H.actions.updateFrame), T = ve((H) => H.isVisualEditing), O = ve((H) => H.selectedSheetId), N = ve(
18897
18881
  (H) => H.actions.updateSheetCalculatedFields
@@ -18910,7 +18894,7 @@ function bb({
18910
18894
  "aggregateTable",
18911
18895
  "bubble",
18912
18896
  "scatter"
18913
- ].includes(k), _ = g && !Y, q = () => k === "kpi" ? {
18897
+ ].includes(k), _ = g && !Y, z = () => k === "kpi" ? {
18914
18898
  label: "Trend By",
18915
18899
  placeholder: "Drop trend field here"
18916
18900
  } : {
@@ -18951,8 +18935,8 @@ function bb({
18951
18935
  {
18952
18936
  zone: "groupBy",
18953
18937
  fields: t,
18954
- label: q().label,
18955
- placeholder: q().placeholder,
18938
+ label: z().label,
18939
+ placeholder: z().placeholder,
18956
18940
  activeField: i
18957
18941
  }
18958
18942
  ),
@@ -19317,11 +19301,11 @@ function Nb({
19317
19301
  "aria-label": "Hide chart configuration",
19318
19302
  onClick: r,
19319
19303
  className: "h-7 w-7 rounded-[5px] p-0 text-muted-foreground hover:text-foreground",
19320
- children: /* @__PURE__ */ e(nh, { className: "h-4 w-4", strokeWidth: 1.75 })
19304
+ children: /* @__PURE__ */ e(ah, { className: "h-4 w-4", strokeWidth: 1.75 })
19321
19305
  }
19322
19306
  ) })
19323
19307
  ] }),
19324
- /* @__PURE__ */ n(za, { className: "min-h-0 w-full flex-1 basis-0 border-t border-border [&>[data-radix-scroll-area-viewport]]:overscroll-none [&>[data-radix-scroll-area-viewport]>div]:!block [&>[data-radix-scroll-area-viewport]>div]:w-full", children: [
19308
+ /* @__PURE__ */ n(qa, { className: "min-h-0 w-full flex-1 basis-0 border-t border-border [&>[data-radix-scroll-area-viewport]]:overscroll-none [&>[data-radix-scroll-area-viewport]>div]:!block [&>[data-radix-scroll-area-viewport]>div]:w-full", children: [
19325
19309
  /* @__PURE__ */ e("div", { className: "px-4 pt-4 empty:hidden", children: /* @__PURE__ */ e(vb, { onEditJoins: I }) }),
19326
19310
  /* @__PURE__ */ e(
19327
19311
  bb,
@@ -19891,9 +19875,9 @@ function Mb({
19891
19875
  const p = new Date(f);
19892
19876
  if (!isNaN(p.getTime()))
19893
19877
  return p;
19894
- }, [t, i]), d = (f) => a === "<=" || a === ">" ? dp(f, c) : up(f, c);
19878
+ }, [t, i]), d = (f) => a === "<=" || a === ">" ? up(f, c) : mp(f, c);
19895
19879
  return /* @__PURE__ */ e(
19896
- ah,
19880
+ sh,
19897
19881
  {
19898
19882
  value: i ? l : void 0,
19899
19883
  selectionMode: i ? "range" : "single",
@@ -19992,7 +19976,7 @@ const Qr = [
19992
19976
  "not between": "Not Between"
19993
19977
  };
19994
19978
  function Fi(t) {
19995
- return Rb[t] || zt(t);
19979
+ return Rb[t] || qt(t);
19996
19980
  }
19997
19981
  function Pb(t) {
19998
19982
  switch (t) {
@@ -20649,9 +20633,9 @@ function Yb({
20649
20633
  ), d = L(
20650
20634
  (N) => N.actions.setCardPreferences
20651
20635
  ), u = (T = l == null ? void 0 : l.config) == null ? void 0 : T.joinPlan, m = Fe(
20652
- (N) => N.entityName === Tp || N.entityName === "calculated_fields" || N.qualifiedEntityName === "calculated_fields",
20636
+ (N) => N.entityName === kp || N.entityName === "calculated_fields" || N.qualifiedEntityName === "calculated_fields",
20653
20637
  []
20654
- ), f = (O = l == null ? void 0 : l.dataSource) == null ? void 0 : O.semanticDomainId, { data: p } = sh(f), h = [
20638
+ ), f = (O = l == null ? void 0 : l.dataSource) == null ? void 0 : O.semanticDomainId, { data: p } = rh(f), h = [
20655
20639
  ...a,
20656
20640
  ...s("groupBy"),
20657
20641
  ...s("pivotBy"),
@@ -20752,7 +20736,7 @@ function Yb({
20752
20736
  }
20753
20737
  if (V !== C.qualifiedEntityName && !m(C) && C.qualifiedEntityName)
20754
20738
  if (f && (p != null && p.joinabilityMap)) {
20755
- if (rh(C, {
20739
+ if (lh(C, {
20756
20740
  joinabilityMap: p.joinabilityMap,
20757
20741
  selectedFields: P,
20758
20742
  baseEntityName: (A = u == null ? void 0 : u.baseEntity) == null ? void 0 : A.name,
@@ -20767,7 +20751,7 @@ function Yb({
20767
20751
  $s(), i(null);
20768
20752
  return;
20769
20753
  }
20770
- if (!lh(
20754
+ if (!ih(
20771
20755
  V,
20772
20756
  C.qualifiedEntityName,
20773
20757
  u
@@ -20944,7 +20928,7 @@ const $b = [
20944
20928
  { value: "1000", label: "Top 1000" }
20945
20929
  // { value: 'custom', label: 'Custom' },
20946
20930
  ];
20947
- function qb() {
20931
+ function zb() {
20948
20932
  var d, u;
20949
20933
  const t = L((m) => m.card), { updateRowLimit: a } = Se(), [s, r] = K(!1), [c, i] = K(""), l = (m) => {
20950
20934
  if (m === "custom") {
@@ -20981,7 +20965,7 @@ function qb() {
20981
20965
  }
20982
20966
  ) });
20983
20967
  }
20984
- function zb({
20968
+ function qb({
20985
20969
  card: t,
20986
20970
  queryData: a,
20987
20971
  isLoading: s,
@@ -21103,7 +21087,7 @@ function Gb({
21103
21087
  showInfoTab: t
21104
21088
  }) {
21105
21089
  return /* @__PURE__ */ e(
21106
- ih,
21090
+ oh,
21107
21091
  {
21108
21092
  className: "min-h-[240px]",
21109
21093
  description: t ? "See the Error tab for details and troubleshooting options." : "Contact your administrator for help resolving this issue."
@@ -21115,8 +21099,8 @@ function Hb({
21115
21099
  effectiveCardType: a = t.type,
21116
21100
  queryResultColumns: s
21117
21101
  }) {
21118
- return Br(a) ? /* @__PURE__ */ n(oh, { modal: !1, children: [
21119
- /* @__PURE__ */ e(ch, { asChild: !0, children: /* @__PURE__ */ e(
21102
+ return Br(a) ? /* @__PURE__ */ n(ch, { modal: !1, children: [
21103
+ /* @__PURE__ */ e(dh, { asChild: !0, children: /* @__PURE__ */ e(
21120
21104
  bt,
21121
21105
  {
21122
21106
  tooltip: "Table settings",
@@ -21129,14 +21113,14 @@ function Hb({
21129
21113
  }
21130
21114
  ) }),
21131
21115
  /* @__PURE__ */ n(
21132
- dh,
21116
+ uh,
21133
21117
  {
21134
21118
  side: "right",
21135
21119
  hideOverlay: !0,
21136
21120
  className: "flex w-[420px] flex-col gap-0 p-0 sm:max-w-[420px]",
21137
21121
  children: [
21138
- /* @__PURE__ */ e(uh, { className: "sr-only", children: "Table settings" }),
21139
- /* @__PURE__ */ e(mh, { className: "sr-only", children: "Configure table presentation and conditional formatting." }),
21122
+ /* @__PURE__ */ e(mh, { className: "sr-only", children: "Table settings" }),
21123
+ /* @__PURE__ */ e(hh, { className: "sr-only", children: "Configure table presentation and conditional formatting." }),
21140
21124
  /* @__PURE__ */ n("div", { className: "border-b px-4 py-3", children: [
21141
21125
  /* @__PURE__ */ e("div", { className: "text-[13px] font-semibold text-foreground", children: "Table settings" }),
21142
21126
  /* @__PURE__ */ e("div", { className: "mt-0.5 text-[11px] text-muted-foreground", children: "Settings apply to this table and document exports that reuse it." })
@@ -21158,7 +21142,7 @@ function Qb({
21158
21142
  className: t,
21159
21143
  visible: a
21160
21144
  }) {
21161
- const s = ve((o) => o.selectedFrameId), r = hh((o) => o.selectedVisual), c = L((o) => o.frame), l = !!!(c != null && c.visualId || r != null && r.id) && !!s;
21145
+ const s = ve((o) => o.selectedFrameId), r = ph((o) => o.selectedVisual), c = L((o) => o.frame), l = !!!(c != null && c.visualId || r != null && r.id) && !!s;
21162
21146
  return !a || l ? null : /* @__PURE__ */ e("div", { className: U("flex", t), children: /* @__PURE__ */ e(
21163
21147
  Go,
21164
21148
  {
@@ -21198,10 +21182,10 @@ function Wb({
21198
21182
  data: V,
21199
21183
  errorMessage: Y,
21200
21184
  isLoading: _,
21201
- isFetching: q,
21185
+ isFetching: z,
21202
21186
  errorSql: W,
21203
21187
  pagination: J,
21204
- refetch: z,
21188
+ refetch: q,
21205
21189
  comparisonMetadata: X,
21206
21190
  queryRequestPayload: H,
21207
21191
  resolvedPrimaryDateField: ue
@@ -21209,12 +21193,12 @@ function Wb({
21209
21193
  () => (V == null ? void 0 : V.records) || [],
21210
21194
  [V == null ? void 0 : V.records]
21211
21195
  ), Me = ce(
21212
- () => !q && be.length > 0 ? Object.keys(be[0]) : [],
21213
- [q, be]
21196
+ () => !z && be.length > 0 ? Object.keys(be[0]) : [],
21197
+ [z, be]
21214
21198
  ), [Ae, Ye] = K(!1);
21215
21199
  De(() => {
21216
- q || Ye(!1);
21217
- }, [q]);
21200
+ z || Ye(!1);
21201
+ }, [z]);
21218
21202
  const Qe = () => {
21219
21203
  const fe = !P;
21220
21204
  fe && t === "table" && a("chart"), B(fe);
@@ -21269,21 +21253,21 @@ function Wb({
21269
21253
  hasQueryError: !!Y
21270
21254
  }
21271
21255
  ),
21272
- !ph(F) && /* @__PURE__ */ e(qb, {})
21256
+ !fh(F) && /* @__PURE__ */ e(zb, {})
21273
21257
  ] }),
21274
21258
  F === "kpi" && /* @__PURE__ */ e(Qb, { visible: !0, className: "self-center" }),
21275
21259
  X && i.type !== "table" && /* @__PURE__ */ e(
21276
- fh,
21260
+ gh,
21277
21261
  {
21278
21262
  metadata: X,
21279
21263
  variant: "compact"
21280
21264
  }
21281
21265
  ),
21282
- M && /* @__PURE__ */ e(bp, {})
21266
+ M && /* @__PURE__ */ e(yp, {})
21283
21267
  ] }),
21284
21268
  /* @__PURE__ */ n("div", { className: "flex grow items-center justify-end gap-1", children: [
21285
21269
  /* @__PURE__ */ e(
21286
- gh,
21270
+ xh,
21287
21271
  {
21288
21272
  cardId: r.id,
21289
21273
  cardFilters: (He = r.config) == null ? void 0 : He.filters,
@@ -21319,9 +21303,9 @@ function Wb({
21319
21303
  {
21320
21304
  tooltip: "Refresh",
21321
21305
  className: "h-7 w-7 rounded-[5px] p-0",
21322
- disabled: _ || q,
21306
+ disabled: _ || z,
21323
21307
  onClick: () => {
21324
- Ye(!0), z();
21308
+ Ye(!0), q();
21325
21309
  },
21326
21310
  children: /* @__PURE__ */ e(
21327
21311
  fr,
@@ -21347,7 +21331,7 @@ function Wb({
21347
21331
  /* @__PURE__ */ e(Fn, { children: "More Options" }),
21348
21332
  /* @__PURE__ */ e($t, {}),
21349
21333
  /* @__PURE__ */ n(lt, { onClick: Qe, children: [
21350
- P ? /* @__PURE__ */ e(Ap, { className: "mr-2 h-4 w-4" }) : /* @__PURE__ */ e(Kp, { className: "mr-2 h-4 w-4" }),
21334
+ P ? /* @__PURE__ */ e(Op, { className: "mr-2 h-4 w-4" }) : /* @__PURE__ */ e(Up, { className: "mr-2 h-4 w-4" }),
21351
21335
  P ? "Hide Results Table" : "Show Results Table"
21352
21336
  ] }),
21353
21337
  /* @__PURE__ */ e($t, {}),
@@ -21367,7 +21351,7 @@ function Wb({
21367
21351
  }
21368
21352
  ),
21369
21353
  /* @__PURE__ */ e(
21370
- zr,
21354
+ qr,
21371
21355
  {
21372
21356
  triggerVariant: "menu",
21373
21357
  className: "w-full"
@@ -21386,12 +21370,12 @@ function Wb({
21386
21370
  ] }),
21387
21371
  /* @__PURE__ */ n("div", { className: "flex min-h-0 grow flex-col", children: [
21388
21372
  t === "chart" ? Y ? /* @__PURE__ */ e(Gb, { showInfoTab: A }) : /* @__PURE__ */ e("div", { className: "flex grow flex-col", children: /* @__PURE__ */ e(
21389
- zb,
21373
+ qb,
21390
21374
  {
21391
21375
  card: r,
21392
21376
  queryData: V,
21393
21377
  isLoading: _,
21394
- isFetching: q,
21378
+ isFetching: z,
21395
21379
  pagination: J,
21396
21380
  onPaginationChange: ht,
21397
21381
  onSortChange: Ge,
@@ -21402,7 +21386,7 @@ function Wb({
21402
21386
  }
21403
21387
  ) }) : null,
21404
21388
  t === "table" && (V == null ? void 0 : V.records) && /* @__PURE__ */ n("div", { className: "relative flex h-full min-h-0 max-w-full flex-1 grow basis-0 px-4 py-4", children: [
21405
- (_ || q) && (V == null ? void 0 : V.records) && /* @__PURE__ */ e("div", { className: "absolute inset-0 z-50 flex items-center justify-center bg-background/50", children: /* @__PURE__ */ e(
21389
+ (_ || z) && (V == null ? void 0 : V.records) && /* @__PURE__ */ e("div", { className: "absolute inset-0 z-50 flex items-center justify-center bg-background/50", children: /* @__PURE__ */ e(
21406
21390
  Jt,
21407
21391
  {
21408
21392
  size: "md",
@@ -21421,7 +21405,7 @@ function Wb({
21421
21405
  comparisonMetadata: X,
21422
21406
  paginationMetadata: J,
21423
21407
  onPaginationChange: ht,
21424
- isLoading: _ || q,
21408
+ isLoading: _ || z,
21425
21409
  onSortChange: Ge,
21426
21410
  sortState: Le
21427
21411
  }
@@ -21441,7 +21425,7 @@ function Wb({
21441
21425
  dashboardFilters: u
21442
21426
  } : void 0,
21443
21427
  onSendFeedback: () => {
21444
- const fe = xh(
21428
+ const fe = bh(
21445
21429
  Xi.QUERY_GENERATION,
21446
21430
  {
21447
21431
  cardConfig: i.config,
@@ -21538,23 +21522,23 @@ const Xb = () => {
21538
21522
  };
21539
21523
  function Zb({ column: t, isSelected: a, onSelect: s, availableFields: r, width: c, onWidthChange: i }) {
21540
21524
  var V, Y, _;
21541
- const l = L((q) => q.card), { updateCardConfig: o, removeGroupByColumn: d, removeMetricColumn: u, updateFilters: m } = Se(), [f, p] = K(!1), [h, b] = K(!1), M = Re(null), v = Fe((q) => {
21542
- q.preventDefault(), q.stopPropagation(), b(!0), M.current = {
21543
- startX: q.clientX,
21525
+ const l = L((z) => z.card), { updateCardConfig: o, removeGroupByColumn: d, removeMetricColumn: u, updateFilters: m } = Se(), [f, p] = K(!1), [h, b] = K(!1), M = Re(null), v = Fe((z) => {
21526
+ z.preventDefault(), z.stopPropagation(), b(!0), M.current = {
21527
+ startX: z.clientX,
21544
21528
  startWidth: c || 150
21545
21529
  };
21546
- const W = (z) => {
21530
+ const W = (q) => {
21547
21531
  if (!M.current) return;
21548
- const X = z.clientX - M.current.startX, H = Math.max(80, M.current.startWidth + X);
21532
+ const X = q.clientX - M.current.startX, H = Math.max(80, M.current.startWidth + X);
21549
21533
  i == null || i(t.id, H);
21550
21534
  }, J = () => {
21551
21535
  b(!1), M.current = null, document.removeEventListener("mousemove", W), document.removeEventListener("mouseup", J);
21552
21536
  };
21553
21537
  document.addEventListener("mousemove", W), document.addEventListener("mouseup", J);
21554
21538
  }, [c, t.id, i]), y = (V = l == null ? void 0 : l.config) == null ? void 0 : V.filters, T = (Y = y == null ? void 0 : y.conditions) == null ? void 0 : Y.some(
21555
- (q) => q.field.name === t.name && q.field.qualifiedEntityName === t.qualifiedEntityName
21556
- ), O = (q) => {
21557
- q ? m(l.id, q) : o(l.id, { filters: void 0 });
21539
+ (z) => z.field.name === t.name && z.field.qualifiedEntityName === t.qualifiedEntityName
21540
+ ), O = (z) => {
21541
+ z ? m(l.id, z) : o(l.id, { filters: void 0 });
21558
21542
  }, {
21559
21543
  attributes: N,
21560
21544
  listeners: x,
@@ -21567,14 +21551,14 @@ function Zb({ column: t, isSelected: a, onSelect: s, availableFields: r, width:
21567
21551
  transition: R
21568
21552
  }, A = gt(t.dataType), C = ey(A), P = () => {
21569
21553
  var J;
21570
- const q = ((J = l == null ? void 0 : l.config) == null ? void 0 : J.sortByColumns) || [], W = q.findIndex((z) => z.name === t.name);
21554
+ const z = ((J = l == null ? void 0 : l.config) == null ? void 0 : J.sortByColumns) || [], W = z.findIndex((q) => q.name === t.name);
21571
21555
  if (W !== -1) {
21572
- const z = [...q];
21573
- z[W] = { ...z[W], direction: "asc" }, o(l.id, { sortByColumns: z });
21556
+ const q = [...z];
21557
+ q[W] = { ...q[W], direction: "asc" }, o(l.id, { sortByColumns: q });
21574
21558
  } else
21575
21559
  o(l.id, {
21576
21560
  sortByColumns: [
21577
- ...q,
21561
+ ...z,
21578
21562
  {
21579
21563
  ...t,
21580
21564
  id: `sort-${t.id}`,
@@ -21585,14 +21569,14 @@ function Zb({ column: t, isSelected: a, onSelect: s, availableFields: r, width:
21585
21569
  });
21586
21570
  }, B = () => {
21587
21571
  var J;
21588
- const q = ((J = l == null ? void 0 : l.config) == null ? void 0 : J.sortByColumns) || [], W = q.findIndex((z) => z.name === t.name);
21572
+ const z = ((J = l == null ? void 0 : l.config) == null ? void 0 : J.sortByColumns) || [], W = z.findIndex((q) => q.name === t.name);
21589
21573
  if (W !== -1) {
21590
- const z = [...q];
21591
- z[W] = { ...z[W], direction: "desc" }, o(l.id, { sortByColumns: z });
21574
+ const q = [...z];
21575
+ q[W] = { ...q[W], direction: "desc" }, o(l.id, { sortByColumns: q });
21592
21576
  } else
21593
21577
  o(l.id, {
21594
21578
  sortByColumns: [
21595
- ...q,
21579
+ ...z,
21596
21580
  {
21597
21581
  ...t,
21598
21582
  id: `sort-${t.id}`,
@@ -21603,29 +21587,29 @@ function Zb({ column: t, isSelected: a, onSelect: s, availableFields: r, width:
21603
21587
  });
21604
21588
  }, g = () => {
21605
21589
  var J;
21606
- const q = ((J = l == null ? void 0 : l.config) == null ? void 0 : J.groupByColumns) || [];
21607
- if (!q.some((z) => z.name === t.name)) {
21608
- const z = {
21590
+ const z = ((J = l == null ? void 0 : l.config) == null ? void 0 : J.groupByColumns) || [];
21591
+ if (!z.some((q) => q.name === t.name)) {
21592
+ const q = {
21609
21593
  ...t,
21610
21594
  id: `groupby-${t.id}-${Date.now()}`,
21611
21595
  role: "groupby"
21612
21596
  };
21613
21597
  o(l.id, {
21614
- groupByColumns: [...q, z]
21598
+ groupByColumns: [...z, q]
21615
21599
  });
21616
21600
  }
21617
- }, w = (q) => {
21618
- var z;
21619
- const W = ((z = l == null ? void 0 : l.config) == null ? void 0 : z.metricColumns) || [];
21601
+ }, w = (z) => {
21602
+ var q;
21603
+ const W = ((q = l == null ? void 0 : l.config) == null ? void 0 : q.metricColumns) || [];
21620
21604
  if (!W.some(
21621
- (X) => X.name === t.name && X.aggregate === q
21605
+ (X) => X.name === t.name && X.aggregate === z
21622
21606
  )) {
21623
21607
  const X = {
21624
21608
  ...t,
21625
- id: `metric-${t.id}-${q}-${Date.now()}`,
21626
- label: `${q} of ${t.label || t.name}`,
21609
+ id: `metric-${t.id}-${z}-${Date.now()}`,
21610
+ label: `${z} of ${t.label || t.name}`,
21627
21611
  role: "metric",
21628
- aggregate: q
21612
+ aggregate: z
21629
21613
  };
21630
21614
  o(l.id, {
21631
21615
  metricColumns: [...W, X]
@@ -21691,11 +21675,11 @@ function Zb({ column: t, isSelected: a, onSelect: s, availableFields: r, width:
21691
21675
  ] }),
21692
21676
  /* @__PURE__ */ e($t, {}),
21693
21677
  /* @__PURE__ */ n(lt, { onClick: P, children: [
21694
- /* @__PURE__ */ e(Dp, { className: "mr-2 h-4 w-4" }),
21678
+ /* @__PURE__ */ e(Mp, { className: "mr-2 h-4 w-4" }),
21695
21679
  "Sort A → Z"
21696
21680
  ] }),
21697
21681
  /* @__PURE__ */ n(lt, { onClick: B, children: [
21698
- /* @__PURE__ */ e(kp, { className: "mr-2 h-4 w-4" }),
21682
+ /* @__PURE__ */ e(Dp, { className: "mr-2 h-4 w-4" }),
21699
21683
  "Sort Z → A"
21700
21684
  ] }),
21701
21685
  /* @__PURE__ */ e($t, {}),
@@ -21759,7 +21743,7 @@ function Zb({ column: t, isSelected: a, onSelect: s, availableFields: r, width:
21759
21743
  availableFields: r.length > 0 ? r : [t],
21760
21744
  existingFilters: y,
21761
21745
  editingCondition: T ? (_ = y == null ? void 0 : y.conditions) == null ? void 0 : _.find(
21762
- (q) => q.field.name === t.name && q.field.qualifiedEntityName === t.qualifiedEntityName
21746
+ (z) => z.field.name === t.name && z.field.qualifiedEntityName === t.qualifiedEntityName
21763
21747
  ) : void 0,
21764
21748
  onSave: O
21765
21749
  }
@@ -22091,7 +22075,7 @@ function ay({
22091
22075
  className: "h-7 w-7 p-0 text-muted-foreground hover:text-foreground",
22092
22076
  onClick: () => o(!1),
22093
22077
  title: "Close panel",
22094
- children: /* @__PURE__ */ e(Yp, { className: "h-4 w-4" })
22078
+ children: /* @__PURE__ */ e(_p, { className: "h-4 w-4" })
22095
22079
  }
22096
22080
  )
22097
22081
  ] }),
@@ -22176,7 +22160,7 @@ function ay({
22176
22160
  }) }) })
22177
22161
  ] })
22178
22162
  ] }),
22179
- /* @__PURE__ */ e(za, { className: "flex-1", children: /* @__PURE__ */ e("div", { className: "p-2", children: a ? /* @__PURE__ */ e("div", { className: "flex items-center justify-center py-8", children: /* @__PURE__ */ e("div", { className: "h-6 w-6 animate-spin rounded-full border-2 border-muted-foreground border-t-transparent" }) }) : t.length === 0 ? /* @__PURE__ */ e("div", { className: "py-8 text-center text-sm text-muted-foreground", children: "No columns available" }) : t.map((x) => {
22163
+ /* @__PURE__ */ e(qa, { className: "flex-1", children: /* @__PURE__ */ e("div", { className: "p-2", children: a ? /* @__PURE__ */ e("div", { className: "flex items-center justify-center py-8", children: /* @__PURE__ */ e("div", { className: "h-6 w-6 animate-spin rounded-full border-2 border-muted-foreground border-t-transparent" }) }) : t.length === 0 ? /* @__PURE__ */ e("div", { className: "py-8 text-center text-sm text-muted-foreground", children: "No columns available" }) : t.map((x) => {
22180
22164
  const I = y(x.columns);
22181
22165
  if (I.length === 0) return null;
22182
22166
  const S = m.has(x.entityId) || d.length > 0;
@@ -22238,7 +22222,7 @@ function ay({
22238
22222
  className: "h-8 w-8 p-0",
22239
22223
  onClick: () => o(!0),
22240
22224
  title: "Open panel",
22241
- children: /* @__PURE__ */ e(_p, { className: "h-4 w-4" })
22225
+ children: /* @__PURE__ */ e($p, { className: "h-4 w-4" })
22242
22226
  }
22243
22227
  ) });
22244
22228
  }
@@ -22316,7 +22300,7 @@ function ry({
22316
22300
  size: "sm",
22317
22301
  className: "h-7 w-7 p-0 text-muted-foreground hover:text-foreground",
22318
22302
  title: "Insert function",
22319
- children: /* @__PURE__ */ e(jp, { className: "h-4 w-4" })
22303
+ children: /* @__PURE__ */ e(Kp, { className: "h-4 w-4" })
22320
22304
  }
22321
22305
  ) }),
22322
22306
  /* @__PURE__ */ e(It, { className: "w-[300px] p-0", align: "start", children: /* @__PURE__ */ n(Fa, { children: [
@@ -22493,22 +22477,22 @@ function iy() {
22493
22477
  sourceFields: x,
22494
22478
  getFieldsForContainer: E,
22495
22479
  setFieldsForContainer: k
22496
- }), B = (_, q) => {
22497
- q && O(_, q);
22480
+ }), B = (_, z) => {
22481
+ z && O(_, z);
22498
22482
  }, g = (_) => {
22499
- var q;
22483
+ var z;
22500
22484
  y(_, {
22501
22485
  config: {
22502
- ...(q = h.cards.find((W) => W.id === _)) == null ? void 0 : q.config,
22486
+ ...(z = h.cards.find((W) => W.id === _)) == null ? void 0 : z.config,
22503
22487
  filters: void 0
22504
22488
  }
22505
22489
  });
22506
22490
  }, w = I, D = (_) => {
22507
22491
  if (!_) return 0;
22508
- let q = _.conditions.length;
22492
+ let z = _.conditions.length;
22509
22493
  return _.groups.forEach((W) => {
22510
- q += D(W);
22511
- }), q;
22494
+ z += D(W);
22495
+ }), z;
22512
22496
  }, F = D(((V = R == null ? void 0 : R.config) == null ? void 0 : V.filters) || null);
22513
22497
  return /* @__PURE__ */ n(
22514
22498
  Bn,
@@ -22590,7 +22574,7 @@ function iy() {
22590
22574
  );
22591
22575
  }
22592
22576
  function oy({ authToken: t, onSave: a, onClose: s }) {
22593
- const r = Re(null), c = L((S) => S.showAIDialog), i = L((S) => S.isDevMode), l = qs((S) => S.setFullscreen), o = qs((S) => S.setPanelOpen), d = qs((S) => S.setContainer), u = bh("editor"), m = yh(), f = vh("editor"), p = m === "editor", h = Cr(), b = Fe(
22577
+ const r = Re(null), c = L((S) => S.showAIDialog), i = L((S) => S.isDevMode), l = zs((S) => S.setFullscreen), o = zs((S) => S.setPanelOpen), d = zs((S) => S.setContainer), u = yh("editor"), m = vh(), f = Nh("editor"), p = m === "editor", h = Cr(), b = Fe(
22594
22578
  (S) => {
22595
22579
  d("editor", S);
22596
22580
  },
@@ -22712,7 +22696,7 @@ function oy({ authToken: t, onSave: a, onClose: s }) {
22712
22696
  )
22713
22697
  ] });
22714
22698
  }
22715
- return /* @__PURE__ */ e(xs, { FallbackComponent: Nh, children: i ? /* @__PURE__ */ e(
22699
+ return /* @__PURE__ */ e(xs, { FallbackComponent: Ch, children: i ? /* @__PURE__ */ e(
22716
22700
  "section",
22717
22701
  {
22718
22702
  className: "isolate flex h-full grow",
@@ -22736,11 +22720,11 @@ function Iy() {
22736
22720
  (h) => h.actions
22737
22721
  ), c = L((h) => h.editorContext), { clearEditorContext: i } = L((h) => h.actions), l = Cr(), o = ve((h) => h.isVisualEditing), d = ve((h) => h.actions.updateFrame), u = ve(
22738
22722
  (h) => h.actions.updateDocumentSectionCard
22739
- ), m = Ch();
22723
+ ), m = wh();
22740
22724
  async function f(h) {
22741
22725
  var T, O, N;
22742
22726
  if ((c == null ? void 0 : c.type) === "documentSection") {
22743
- const x = wh(
22727
+ const x = Sh(
22744
22728
  h,
22745
22729
  c.cardId
22746
22730
  );
@@ -22748,7 +22732,7 @@ function Iy() {
22748
22732
  it.error("No document section card found");
22749
22733
  return;
22750
22734
  }
22751
- if (!Sh(x)) {
22735
+ if (!Th(x)) {
22752
22736
  it.error("Document table sections support Table and Pivot Table");
22753
22737
  return;
22754
22738
  }
@@ -22774,7 +22758,7 @@ function Iy() {
22774
22758
  }
22775
22759
  )) == null ? void 0 : N.id, v = b ? t : M || null;
22776
22760
  if (!v) return;
22777
- const y = mp(a, h.id);
22761
+ const y = hp(a, h.id);
22778
22762
  try {
22779
22763
  const x = await m(h, {
22780
22764
  previousFrame: y