react-semaphor 0.1.600 → 0.1.601

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 (61) hide show
  1. package/dist/analytics-protocol/index.js +9 -9
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/brand-studio/index.js +7 -7
  4. package/dist/briefings/index.js +48 -45
  5. package/dist/chunks/{assistant-chat-BULOkG9j.js → assistant-chat-BE0XXzZP.js} +12 -12
  6. package/dist/chunks/{bookmark-impact-kdvXke8n.js → bookmark-impact-DXDAN5AY.js} +3 -3
  7. package/dist/chunks/{bookmark-state-h1OLXVjE.js → bookmark-state-BMyB3Tb6.js} +4 -4
  8. package/dist/chunks/{card-filter-builder-CSCdSQQy.js → card-filter-builder-CE0-YVN5.js} +9 -9
  9. package/dist/chunks/comparison-window-caption-Dxj2CHOa.js +741 -0
  10. package/dist/chunks/{dashboard-briefing-launcher-9YwUclHA.js → dashboard-briefing-launcher-CntwKyiZ.js} +13 -13
  11. package/dist/chunks/{dashboard-controls-O6PNXMCp.js → dashboard-controls-XO089DMg.js} +15 -15
  12. package/dist/chunks/{dashboard-json-Bxf91TYq.js → dashboard-json-CQRiydUv.js} +4 -4
  13. package/dist/chunks/{dashboard-y9ON19ge.js → dashboard-mJKPFRbb.js} +1 -1
  14. package/dist/chunks/{dates-DPTbpNxK.js → dates-B-Urp5OD.js} +8 -8
  15. package/dist/chunks/{edit-dashboard-visual-CKwaW8H_.js → edit-dashboard-visual-f-Dm-BLR.js} +176 -176
  16. package/dist/chunks/filter-line-CKNMyNTQ.js +703 -0
  17. package/dist/chunks/{filter-reach-copy-ClzNcNhP.js → filter-reach-copy-B8GGyVuR.js} +1441 -1270
  18. package/dist/chunks/{filter-value-text-CXyuLW9Q.js → filter-value-text-CRtKecI5.js} +6 -6
  19. package/dist/chunks/{index-CRo5--Y6.js → index-DoPApnxg.js} +386 -360
  20. package/dist/chunks/{layout-grid-DSrBSfPM.js → layout-grid-CiSCZdIr.js} +1 -1
  21. package/dist/chunks/{matrix-analytical-definition-i9PQY066.js → matrix-analytical-definition-myf3D3Qx.js} +35 -35
  22. package/dist/chunks/{matrix-member-presentation-B_2beBc0.js → matrix-member-presentation-g0c_NpDW.js} +1 -1
  23. package/dist/chunks/{matrix-operation-contract-DdK0J_KU.js → matrix-operation-contract-C1SuOHLZ.js} +35 -35
  24. package/dist/chunks/{metric-comparison-Bhz0V841.js → metric-comparison-Cm0G893W.js} +3 -3
  25. package/dist/chunks/{paintbrush-1UiU-uTz.js → paintbrush-DQIwqlck.js} +1 -1
  26. package/dist/chunks/{palette-DFIFf_-m.js → palette-Cun747Rg.js} +1 -1
  27. package/dist/chunks/{pivot-result-contract-expectations-Dk7WFR_u.js → pivot-result-contract-expectations-C1Dyx8du.js} +17 -17
  28. package/dist/chunks/{pivot-result-identity-CzzrJpEm.js → pivot-result-identity-CBS-ssEp.js} +1 -1
  29. package/dist/chunks/{raw-temporal-value-BLvdaMng.js → raw-temporal-value-DN_l-Tss.js} +16 -16
  30. package/dist/chunks/{report-preferences-dialog-DiDsYpng.js → report-preferences-dialog-SDZEcG2x.js} +13 -13
  31. package/dist/chunks/{report-runtime-context-CEGluufW.js → report-runtime-context-BbedQdtc.js} +1 -1
  32. package/dist/chunks/{resolve-dashboard-input-context-BAv33KGg.js → resolve-dashboard-input-context-DRBS0eRa.js} +553 -553
  33. package/dist/chunks/{save-CWQ02kHo.js → save-Dj5bjm7P.js} +1 -1
  34. package/dist/chunks/{saved-dashboard-context-CvzYqADe.js → saved-dashboard-context-DWVlJcsa.js} +15 -15
  35. package/dist/chunks/{selection-filter-compiler-SwrBvyyJ.js → selection-filter-compiler-DmAr7yqC.js} +1 -1
  36. package/dist/chunks/{semaphor-ready-indicator-1PRI9Yh2.js → semaphor-ready-indicator-OFOoAY-A.js} +16370 -16518
  37. package/dist/chunks/{shelf-drop-preview-context-BLk5Nc6K.js → shelf-drop-preview-context-2swWypXu.js} +5 -5
  38. package/dist/chunks/{stored-dashboard-xhYYKBsO.js → stored-dashboard-NtOuEX6a.js} +111 -111
  39. package/dist/chunks/{style-sheet-parts-BX7d7-2-.js → style-sheet-parts-Qv4UcLAo.js} +2 -2
  40. package/dist/chunks/{table-export-sheet-BWSVTclx.js → table-export-sheet-Do7ZB0_F.js} +1 -1
  41. package/dist/chunks/{token-types-CnlEiAdS.js → token-types-Dy_aXO-U.js} +1 -1
  42. package/dist/chunks/{upload-DsqUSS8l.js → upload-Bq-puSVy.js} +1 -1
  43. package/dist/chunks/{validators-D2Hm57lJ.js → validators-C7DFk3QK.js} +78 -78
  44. package/dist/chunks/{variable-draft-DcKj8T1b.js → variable-draft-Cy03qnEi.js} +4 -4
  45. package/dist/dashboard/index.js +2 -2
  46. package/dist/dashboard-authoring/index.js +80 -75
  47. package/dist/format-utils/index.js +238 -237
  48. package/dist/index.js +18 -18
  49. package/dist/report-runtime-context/index.js +1 -1
  50. package/dist/surfboard/index.js +2 -2
  51. package/dist/types/briefings/attachment-outcomes.d.ts +1 -1
  52. package/dist/types/briefings/attachments.d.ts +45 -4
  53. package/dist/types/briefings/index.d.ts +1 -1
  54. package/dist/types/index.js +5 -5
  55. package/dist/types/lib/export-utils.d.ts +72 -0
  56. package/dist/types/lib/formatters/dashboard-temporal-presentation.d.ts +10 -0
  57. package/dist/types/shared/dashboard-authoring/card-data-file.d.ts +31 -0
  58. package/dist/types/shared/dashboard-authoring/index.d.ts +3 -0
  59. package/package.json +1 -1
  60. package/dist/chunks/comparison-window-caption-DJDwP9XO.js +0 -1309
  61. package/dist/chunks/filter-line-Dkg3yuOX.js +0 -134
@@ -1,31 +1,31 @@
1
1
  import { jsx as e, jsxs as a, Fragment as pe } from "react/jsx-runtime";
2
2
  import ml, { useState as U, useEffect as Ce, useMemo as le, useRef as Ve, useCallback as it, useId as Ta, useContext as ur, Suspense as _o } from "react";
3
- import { F as Vo, P as Bo, a as jo, b as hl, u as st, S as ys, c as Ns, r as pl, E as Ko, T as qo, A as $o, d as zo, e as Ha, f as Uo, g as Go, h as Ho } from "./shelf-drop-preview-context-BLk5Nc6K.js";
3
+ import { F as Vo, P as Bo, a as jo, b as hl, u as st, S as ys, c as Ns, r as pl, E as Ko, T as qo, A as $o, d as zo, e as Ha, f as Uo, g as Go, h as Ho } from "./shelf-drop-preview-context-2swWypXu.js";
4
4
  import { c as G } from "./pickers-DkqmtnTL.js";
5
- import { a7 as fl, O as Jo, x as Cs, m as Ja } from "./validators-D2Hm57lJ.js";
6
- import "./matrix-operation-contract-DdK0J_KU.js";
5
+ import { a6 as fl, N as Jo, w as Cs, m as Ja } from "./validators-C7DFk3QK.js";
6
+ import "./matrix-operation-contract-C1SuOHLZ.js";
7
7
  import { z as Qo } from "./analytics-base-schemas-DevrgqQb.js";
8
8
  import { DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as ha } from "../value-format-preferences/index.js";
9
- import { bT as Yo, eI as Ea, ep as Fa, bR as gl, es as Ma, eJ as Da, eK as Wo, an as ve, eL as Xo, bG as qt, bH as $t, bI as Yt, bJ as zt, bK as Ut, bE as Ia, bW as bt, bP as jt, bM as qa, bF as ot, eM as xl, dC as $a, bS as Dt, bO as _t, dB as bl, eN as ga, bZ as nn, am as I, b4 as tt, eO as vl, eP as Zo, eQ as ec, eR as tc, cT as mr, eS as ac, cx as hr, b8 as Zt, dK as yl, eB as Nl, eT as nc, dd as pr, dI as rc, df as sc, dg as lc, dh as ic, di as oc, dj as cc, dk as dc, dl as uc, dm as mc, b5 as fr, u as be, b2 as ea, eU as Cl, c$ as Qa, eV as wl, b3 as kn, eW as gr, cB as rn, cI as hc, e0 as pc, eX as Wn, c1 as ta, c2 as aa, c3 as na, c6 as fc, e2 as xr, eY as br, eZ as sn, e_ as Sl, ds as vr, dr as kl, e$ as gc, f0 as xc, f1 as Rt, f2 as bc, f3 as vc, f4 as yc, f5 as Nc, f6 as Cc, f7 as Tl, a4 as El, M as wc, f8 as Sc, ei as kc, f9 as Tc, dy as Ec, fa as yr, E as ln, e as Nr, fb as Fl, fc as Fc, fd as ws, fe as Dc, ff as Dl, fg as Ic, fh as Ac, bU as Il, fi as Mc, fj as Pc, fk as Rc, fl as Oc, fm as Ya, fn as Lc, fo as _c, fp as Al, fq as Ml, fr as Vc, fs as Bc, dZ as jc, ft as Kc, fu as Pl, fv as qc, dv as $c, du as on, fw as cn, d1 as Cr, d2 as wr, d3 as Sr, fx as zc, fy as Uc, bz as Rl, cl as Ol, cm as Xn, dA as Ss, cr as Zn, cs as ks, ct as Ts, cu as Es, b1 as Gc, cn as Hc, co as Jc, cp as Ll, cv as Qc, cw as Yc, fz as Wc, fA as Xc, fB as Zc, fC as ed, fD as Fs, fE as td, fF as _l, fG as Vl, b7 as Bl, b9 as ad, be as nd, bf as rd, ba as sd, bb as ld, bc as id, fH as od, fI as cd, fJ as dd, fK as ud, fL as Ds, bh as md, bi as hd, fM as pd, fN as jl, fO as ca, fP as da, fQ as ua, en as pa, d6 as Kl, cR as Ft, d8 as Is, d9 as As, da as er, fR as ql, fS as fd, fT as gd, fU as xd, fV as bd, fW as dn, fX as Oe, fY as Le, fZ as _e, dF as vd, dG as yd, f_ as $l, f$ as zl, g0 as Nd, g1 as kr, g2 as Tr, g3 as Cd, g4 as Ul, g5 as Gl, g6 as wd, g7 as Sd, g8 as tr, g9 as kd, ga as Td, gb as Ed, gc as Fd, gd as Dd, ge as Id, gf as Jt, gg as ya, gh as Ms, gi as Ad, gj as Tn, gk as Ps, gl as Md, gm as Pd, bA as Er, bB as Aa, gn as En, go as Hl, gp as Rd, gq as Od, gr as Ld, gs as _d, gt as Jl, gu as Ql, gv as Vd, gw as Bd, gx as jd, gy as Yl, gz as Kd, gA as qd, gB as Wl, dw as $d, dx as zd, dH as Ud, dz as Gd, bL as Hd, gC as Jd, gD as Qd, gE as Yd, cb as Wd, gF as Xd, gG as Zd, c7 as Xl, gH as Zl, gI as eu, cg as tu, gJ as ei, gK as au, gL as nu, gM as ru, gN as su, gO as lu, gP as Fr, et as ti, gQ as ai, gR as za, gS as ni, gT as ri, gU as Rs, gV as iu, gW as ou, gX as cu, gY as du, dM as uu, gZ as mu, bj as hu, g_ as Os, eD as pu, g$ as fu, eE as gu, eG as xu, eH as bu, o as vu, h0 as yu, cq as Nu, h1 as Cu, h2 as wu, h3 as Su, h4 as ku, h5 as Tu, h6 as Eu, ak as Fu, dL as Du, F as Iu, h7 as Au, bu as Mu } from "./semaphor-ready-indicator-1PRI9Yh2.js";
10
- import { c as Ke, B as re, r as si, m as un, s as O, y as W, z as X, A as Z, D as ee, E as K, F as Vt, X as rt, w as mt, t as vt, u as ht, v as pt, e as It, f as Bt, h as At, x as Re, a8 as Pu, L as Pa, C as Wt, T as Gt, k as Ht, l as et, n as Ct, j as ra, I as Xt, aa as Ru, ab as Ou, q as li, i as Wa, ac as ar, ad as ii, d as Se, R as Ls, p as oi, ae as Lu, S as _s } from "./style-sheet-parts-BX7d7-2-.js";
11
- import { U as _u } from "./upload-DsqUSS8l.js";
12
- import { j8 as Vu, e8 as Bu, j9 as ju, ja as Dr, jb as fa, jc as Ku, jd as Vs, je as qu, jf as $u, cy as zu, jg as Bs, W as sa, d0 as ci, X as la, Z as Ra, _ as Lt, $ as ma, cH as Uu, bQ as Ir, fI as Gu, hn as Oa, k as Hu, bv as Ju, ha as Ar, h5 as di, n as Qu, jh as Yu, ji as Wu, jj as Xu, jk as Zu, b1 as em, gY as tm, h7 as Kt, i5 as am, a4 as nm, jl as rm, jm as ui, gD as sm, dx as lm, jn as mi, hb as im, dW as om, dU as Fn, jo as cm, jp as dm, jq as um, jr as mm, a1 as hm, Y as hi, a2 as pm, js as nr, jt as fm, ju as gm, jv as xm, jw as Mr, gu as bm, fs as Pr, aF as vm, ad as rr, fT as ym, hu as Nm, ch as pi, bA as Cm, b as fi, jx as wm, bz as Sm, bI as km, jy as Tm, jz as Em, fW as Fm, jA as Dm, fV as gi, au as js, jB as Im, jC as Am, jD as Mm, jE as Ks, jF as Pm, fY as Rm, fZ as Om, jG as Lm, jH as _m, h2 as Nt, jI as Vm, jJ as Bm, jK as jm, jL as Km, jM as qm, jN as $m, jO as qs, jP as $s, jQ as zm, a as xi, aq as Um, c8 as Gm, c6 as Hm, jR as Jm, jS as Qm, jT as Ym, jU as Wm, gX as Ua, fg as Xm, fj as Zm, aE as eh, ff as Dn, fe as th, fh as ah, fd as nh, io as rh, bs as sh, jV as lh, jW as zs, bq as ih, g5 as oh, gb as ch, af as dh, hy as uh, jX as bi, iq as mh, fJ as hh, jY as ph, jZ as vi, j_ as Rr, j as Xa, j2 as fh, o as gh, h9 as xh } from "./resolve-dashboard-input-context-BAv33KGg.js";
13
- import { c as bh, A as vh, g as Or, a as yh, F as Nh, V as yi, I as nt, u as Ch, C as wh, b as Sh } from "./card-filter-builder-CSCdSQQy.js";
9
+ import { bT as Yo, eI as Ea, ep as Fa, bR as gl, es as Ma, eJ as Da, eK as Wo, an as ve, eL as Xo, bG as qt, bH as $t, bI as Yt, bJ as zt, bK as Ut, bE as Ia, bW as bt, bP as jt, bM as qa, bF as ot, eM as xl, dC as $a, bS as Dt, bO as _t, dB as bl, eN as ga, bZ as nn, am as I, b4 as tt, eO as vl, eP as Zo, eQ as ec, eR as tc, cT as mr, eS as ac, cx as hr, b8 as Zt, dK as yl, eB as Nl, eT as nc, dd as pr, dI as rc, df as sc, dg as lc, dh as ic, di as oc, dj as cc, dk as dc, dl as uc, dm as mc, b5 as fr, u as be, b2 as ea, eU as Cl, c$ as Qa, eV as wl, b3 as kn, eW as gr, cB as rn, cI as hc, e0 as pc, eX as Wn, c1 as ta, c2 as aa, c3 as na, c6 as fc, e2 as xr, eY as br, eZ as sn, e_ as Sl, ds as vr, dr as kl, e$ as gc, f0 as xc, f1 as Rt, f2 as bc, f3 as vc, f4 as yc, f5 as Nc, f6 as Cc, f7 as Tl, a4 as El, M as wc, f8 as Sc, ei as kc, f9 as Tc, dy as Ec, fa as yr, E as ln, e as Nr, fb as Fl, fc as Fc, fd as ws, fe as Dc, ff as Dl, fg as Ic, fh as Ac, bU as Il, fi as Mc, fj as Pc, fk as Rc, fl as Oc, fm as Ya, fn as Lc, fo as _c, fp as Al, fq as Ml, fr as Vc, fs as Bc, dZ as jc, ft as Kc, fu as Pl, fv as qc, dv as $c, du as on, fw as cn, d1 as Cr, d2 as wr, d3 as Sr, fx as zc, fy as Uc, bz as Rl, cl as Ol, cm as Xn, dA as Ss, cr as Zn, cs as ks, ct as Ts, cu as Es, b1 as Gc, cn as Hc, co as Jc, cp as Ll, cv as Qc, cw as Yc, fz as Wc, fA as Xc, fB as Zc, fC as ed, fD as Fs, fE as td, fF as _l, fG as Vl, b7 as Bl, b9 as ad, be as nd, bf as rd, ba as sd, bb as ld, bc as id, fH as od, fI as cd, fJ as dd, fK as ud, fL as Ds, bh as md, bi as hd, fM as pd, fN as jl, fO as ca, fP as da, fQ as ua, en as pa, d6 as Kl, cR as Ft, d8 as Is, d9 as As, da as er, fR as ql, fS as fd, fT as gd, fU as xd, fV as dn, fW as Oe, fX as Le, fY as _e, dF as bd, dG as vd, fZ as $l, f_ as zl, f$ as yd, g0 as kr, g1 as Tr, g2 as Nd, g3 as Ul, g4 as Gl, g5 as Cd, g6 as wd, g7 as tr, g8 as Sd, g9 as kd, ga as Td, gb as Ed, gc as Fd, gd as Dd, ge as Jt, gf as ya, gg as Ms, gh as Id, gi as Tn, gj as Ps, gk as Ad, gl as Md, bA as Er, bB as Aa, gm as En, gn as Hl, go as Pd, gp as Rd, gq as Od, gr as Ld, gs as Jl, gt as Ql, gu as _d, gv as Vd, gw as Bd, gx as Yl, gy as jd, gz as Kd, gA as Wl, dw as qd, dx as $d, dH as zd, dz as Ud, bL as Gd, gB as Hd, gC as Jd, gD as Qd, cb as Yd, gE as Wd, gF as Xd, c7 as Xl, gG as Zl, gH as Zd, cg as eu, gI as ei, gJ as tu, gK as au, gL as nu, gM as ru, gN as su, gO as Fr, et as ti, gP as ai, gQ as za, gR as ni, gS as ri, gT as Rs, gU as lu, gV as iu, gW as ou, gX as cu, dM as du, gY as uu, bj as mu, gZ as Os, eD as hu, g_ as pu, eE as fu, eG as gu, eH as xu, o as bu, g$ as vu, cq as yu, h0 as Nu, h1 as Cu, h2 as wu, h3 as Su, h4 as ku, h5 as Tu, ak as Eu, dL as Fu, F as Du, h6 as Iu, bu as Au } from "./semaphor-ready-indicator-OFOoAY-A.js";
10
+ import { c as Ke, B as re, r as si, m as un, s as O, y as W, z as X, A as Z, D as ee, E as K, F as Vt, X as rt, w as mt, t as vt, u as ht, v as pt, e as It, f as Bt, h as At, x as Re, a8 as Mu, L as Pa, C as Wt, T as Gt, k as Ht, l as et, n as Ct, j as ra, I as Xt, aa as Pu, ab as Ru, q as li, i as Wa, ac as ar, ad as ii, d as Se, R as Ls, p as oi, ae as Ou, S as _s } from "./style-sheet-parts-Qv4UcLAo.js";
11
+ import { U as Lu } from "./upload-Bq-puSVy.js";
12
+ import { jb as _u, e8 as Vu, jc as Bu, jd as Dr, je as fa, jf as ju, jg as Vs, jh as Ku, ji as qu, cy as $u, jj as Bs, W as sa, d0 as ci, X as la, Z as Ra, _ as Lt, $ as ma, cH as zu, bQ as Ir, fI as Uu, hu as Oa, k as Gu, bv as Hu, ha as Ar, h5 as di, n as Ju, jk as Qu, jl as Yu, jm as Wu, jn as Xu, b1 as Zu, gY as em, h7 as Kt, iP as tm, a4 as am, jo as nm, jp as ui, gD as rm, dx as sm, jq as mi, hb as lm, dW as im, dU as Fn, jr as om, js as cm, jt as dm, ju as um, a1 as mm, Y as hi, a2 as hm, jv as nr, jw as pm, jx as fm, jy as gm, jz as Mr, gu as xm, fs as Pr, aF as bm, ad as rr, fT as vm, hq as ym, ch as pi, bA as Nm, b as fi, jA as Cm, bz as wm, bI as Sm, jB as km, jC as Tm, fW as Em, jD as Fm, fV as gi, au as js, jE as Dm, im as Im, jF as Am, jG as Ks, jH as Mm, fY as Pm, fZ as Rm, jI as Om, jJ as Lm, h2 as Nt, jK as _m, jL as Vm, jM as Bm, jN as jm, jO as Km, jP as qm, jQ as qs, jR as $s, jS as $m, a as xi, aq as zm, c8 as Um, c6 as Gm, jT as Hm, jU as Jm, jV as Qm, jW as Ym, gX as Ua, fg as Wm, fj as Xm, aE as Zm, ff as Dn, fe as eh, fh as th, fd as ah, j2 as nh, bs as rh, jX as sh, jY as zs, bq as lh, g5 as ih, gb as oh, af as ch, ht as dh, jZ as bi, j4 as uh, fJ as mh, j_ as hh, j$ as vi, k0 as Rr, j as Xa, h_ as ph, o as fh, h9 as gh } from "./resolve-dashboard-input-context-DRBS0eRa.js";
13
+ import { c as xh, A as bh, g as Or, a as vh, F as yh, V as yi, I as nt, u as Nh, C as Ch, b as wh } from "./card-filter-builder-CE0-YVN5.js";
14
14
  import "zod";
15
- import { aR as kh, aQ as mn, aN as Lr, j as Th, W as Eh, aJ as Ni } from "./pivot-result-contract-expectations-Dk7WFR_u.js";
16
- import { aJ as Fh, aK as Dh, A as Ih } from "./bookmark-state-h1OLXVjE.js";
15
+ import { aR as Sh, aQ as mn, aM as Lr, j as kh, W as Th, aI as Ni } from "./pivot-result-contract-expectations-C1Dyx8du.js";
16
+ import { aJ as Eh, aK as Fh, A as Dh } from "./bookmark-state-BMyB3Tb6.js";
17
17
  import "./schema-C9NPiIru.js";
18
18
  import { i as Ci } from "./index-CV_Kzou0.js";
19
19
  import "./context-BJoEFgNl.js";
20
- import { N as _r, a9 as Ah, aa as wi, ab as Si, ac as Vr, ad as Br, ae as Mh, R as Ph, S as Rh, U as Oh } from "./filter-reach-copy-ClzNcNhP.js";
21
- import { T as Lh, e as _h, U as Vh, O as ki, V as Bh, P as Ti, W as jh, M as Kh, n as qh, X as $h, Y as zh, Z as Uh, y as Gh } from "./stored-dashboard-xhYYKBsO.js";
20
+ import { N as _r, ae as Ih, G as Ah, af as wi, ag as Si, ah as Vr, ai as Br, aj as Mh, W as Ph, X as Rh, Z as Oh } from "./filter-reach-copy-B8GGyVuR.js";
21
+ import { T as Lh, e as _h, U as Vh, O as ki, V as Bh, P as Ti, W as jh, M as Kh, n as qh, X as $h, Y as zh, Z as Uh, y as Gh } from "./stored-dashboard-NtOuEX6a.js";
22
22
  import "react-dom";
23
- import { c as Hh, b as Jh, m as Qh, K as Yh, r as Wh, d as Xh } from "./dates-DPTbpNxK.js";
23
+ import { c as Hh, b as Jh, m as Qh, K as Yh, r as Wh, d as Xh } from "./dates-B-Urp5OD.js";
24
24
  import { r as Zh } from "./export-file-format-C-tJsxsf.js";
25
25
  import { u as ep } from "./appearance-context-BwBp25ZG.js";
26
- import { P as tp } from "./paintbrush-1UiU-uTz.js";
27
- import { D as ap } from "./metric-comparison-Bhz0V841.js";
28
- import { P as np } from "./palette-DFIFf_-m.js";
26
+ import { P as tp } from "./paintbrush-DQIwqlck.js";
27
+ import { D as ap } from "./metric-comparison-Cm0G893W.js";
28
+ import { P as np } from "./palette-Cun747Rg.js";
29
29
  import "./attribution-BvoKvhcj.js";
30
30
  /**
31
31
  * @license lucide-react v0.453.0 - ISC
@@ -343,7 +343,7 @@ function vp(t, n = {}) {
343
343
  case "dataset":
344
344
  return /* @__PURE__ */ e(Fa, { className: s });
345
345
  case "upload":
346
- return /* @__PURE__ */ e(_u, { className: s });
346
+ return /* @__PURE__ */ e(Lu, { className: s });
347
347
  case "url":
348
348
  return /* @__PURE__ */ e(Ea, { className: s });
349
349
  default:
@@ -479,7 +479,7 @@ function Np({
479
479
  availableDataSources: n
480
480
  }) {
481
481
  const [r, s] = U(
482
- () => Vu(t, n)
482
+ () => _u(t, n)
483
483
  ), [l, c] = U(/* @__PURE__ */ new Set()), d = () => {
484
484
  const F = r.joins.length > 0 ? Math.max(...r.joins.map((V) => V.sequence)) + 1 : 1, P = {
485
485
  autoResolved: !1,
@@ -803,7 +803,7 @@ function Tp({
803
803
  onCancel: l
804
804
  }) {
805
805
  const { columnGroups: c, columns: d } = xl(), i = c.filter(
806
- (E) => E.entityName !== Bu
806
+ (E) => E.entityName !== Vu
807
807
  ), {
808
808
  joinPlan: o,
809
809
  expandedJoins: f,
@@ -1253,7 +1253,7 @@ function Tp({
1253
1253
  {
1254
1254
  size: "xs",
1255
1255
  className: "gap-1.5",
1256
- onClick: () => r(ju(o, d)),
1256
+ onClick: () => r(Bu(o, d)),
1257
1257
  disabled: !y(),
1258
1258
  children: [
1259
1259
  "Save joins",
@@ -1751,7 +1751,7 @@ ${F.joinType} JOIN ${P.name}
1751
1751
  }
1752
1752
  function Mp() {
1753
1753
  var B, k, T, E;
1754
- const [t, n] = U(!1), [r, s] = U(!1), [l, c] = U(!1), d = I((A) => A.card.dataSource), i = I((A) => A.card), o = I((A) => A.isDevMode), { updateCardConfig: f, updateDataSource: u } = ve(), { autoJoinMetadata: m } = tt(i), { semanticDomains: h } = bh(), p = le(
1754
+ const [t, n] = U(!1), [r, s] = U(!1), [l, c] = U(!1), d = I((A) => A.card.dataSource), i = I((A) => A.card), o = I((A) => A.isDevMode), { updateCardConfig: f, updateDataSource: u } = ve(), { autoJoinMetadata: m } = tt(i), { semanticDomains: h } = xh(), p = le(
1755
1755
  () => new Map(
1756
1756
  h.map((A) => [
1757
1757
  A.id,
@@ -1769,7 +1769,7 @@ function Mp() {
1769
1769
  ...d,
1770
1770
  selectedEntities: (d == null ? void 0 : d.selectedEntities) || []
1771
1771
  }, x = Zo(S.selectedEntities), b = x.length, v = ec(i), N = le(() => tc(i), [i]), g = le(
1772
- () => Ku({
1772
+ () => ju({
1773
1773
  ...v,
1774
1774
  selectedFields: N,
1775
1775
  dataSourceEntities: x
@@ -1787,7 +1787,7 @@ function Mp() {
1787
1787
  i && Vs(F, j).length > 0 && f(i.id, fa(i, void 0)), u({
1788
1788
  ...S,
1789
1789
  ...S.mode === "semanticDomain" ? {
1790
- semanticDomainId: zu(j)
1790
+ semanticDomainId: $u(j)
1791
1791
  } : {},
1792
1792
  selectedEntities: j
1793
1793
  });
@@ -1847,7 +1847,7 @@ function Mp() {
1847
1847
  /* @__PURE__ */ e("span", { className: "font-mono text-[10px] tabular-nums text-muted-foreground/70", children: b })
1848
1848
  ] }),
1849
1849
  b === 0 ? /* @__PURE__ */ e("div", { className: "px-3 pb-2 text-[12px] text-muted-foreground", children: "No datasets selected." }) : /* @__PURE__ */ e("ul", { className: "mb-1", children: x.map((A, j) => {
1850
- const q = g[j], oe = (q ? qu(q.state) : !1) ? $u(q == null ? void 0 : q.state).tag : null;
1850
+ const q = g[j], oe = (q ? Ku(q.state) : !1) ? qu(q == null ? void 0 : q.state).tag : null;
1851
1851
  return /* @__PURE__ */ a(
1852
1852
  "li",
1853
1853
  {
@@ -1981,7 +1981,7 @@ function Mp() {
1981
1981
  )
1982
1982
  ] }),
1983
1983
  /* @__PURE__ */ e(
1984
- vh,
1984
+ bh,
1985
1985
  {
1986
1986
  incomingSelectedEntities: (d == null ? void 0 : d.selectedEntities) || [],
1987
1987
  open: r,
@@ -2010,7 +2010,7 @@ function Op(t, n) {
2010
2010
  return t.connectionType && s.push(String(t.connectionType)), t.database && s.push(t.database), t.schema && s.push(t.schema), s.join(" · ");
2011
2011
  }
2012
2012
  function Mi({ isVisible: t }) {
2013
- yh();
2013
+ vh();
2014
2014
  const [n, r] = U(!1);
2015
2015
  return /* @__PURE__ */ a(
2016
2016
  "div",
@@ -2360,7 +2360,7 @@ function qp({
2360
2360
  }
2361
2361
  ),
2362
2362
  /* @__PURE__ */ a(It, { open: b, onOpenChange: De, children: [
2363
- /* @__PURE__ */ e(Pu, { asChild: !0, children: /* @__PURE__ */ e("div", { className: "pointer-events-none absolute inset-0" }) }),
2363
+ /* @__PURE__ */ e(Mu, { asChild: !0, children: /* @__PURE__ */ e("div", { className: "pointer-events-none absolute inset-0" }) }),
2364
2364
  /* @__PURE__ */ a("div", { className: "absolute right-1 flex items-center gap-1", children: [
2365
2365
  (H || d) && /* @__PURE__ */ e(
2366
2366
  re,
@@ -2808,7 +2808,7 @@ function Gp({
2808
2808
  ...r,
2809
2809
  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",
2810
2810
  children: [
2811
- /* @__PURE__ */ e(Nh, { className: "h-3.5 w-3.5", strokeWidth: 1.75 }),
2811
+ /* @__PURE__ */ e(yh, { className: "h-3.5 w-3.5", strokeWidth: 1.75 }),
2812
2812
  /* @__PURE__ */ e("span", { className: "hidden @[1550px]:inline", children: "Dashboard filters off" })
2813
2813
  ]
2814
2814
  }
@@ -2992,7 +2992,7 @@ function Yp({
2992
2992
  /* @__PURE__ */ e(
2993
2993
  mc,
2994
2994
  {
2995
- className: G(Ru({ variant: "destructive", size: "xs" })),
2995
+ className: G(Pu({ variant: "destructive", size: "xs" })),
2996
2996
  onClick: r,
2997
2997
  children: "Clear"
2998
2998
  }
@@ -3105,7 +3105,7 @@ function Zp() {
3105
3105
  S,
3106
3106
  C,
3107
3107
  M == null ? void 0 : M.slots
3108
- ) ?? S.type, [y, z, C, S, M == null ? void 0 : M.slots]), k = le(() => B !== S.type ? { ...S, type: B } : S, [S, B]), T = le(() => V === 0 ? null : Uu(S == null ? void 0 : S.sql), [S == null ? void 0 : S.sql, V]), E = Ve(!0), {
3108
+ ) ?? S.type, [y, z, C, S, M == null ? void 0 : M.slots]), k = le(() => B !== S.type ? { ...S, type: B } : S, [S, B]), T = le(() => V === 0 ? null : zu(S == null ? void 0 : S.sql), [S == null ? void 0 : S.sql, V]), E = Ve(!0), {
3109
3109
  setCardCustomCfg: A,
3110
3110
  setQueryResultColumns: j,
3111
3111
  setCardSql: q,
@@ -3140,7 +3140,7 @@ function Zp() {
3140
3140
  position: "top-center",
3141
3141
  richColors: !0
3142
3142
  }), me.records.length > 0) {
3143
- const { keys: ne } = Cl(me.records), Ie = ft ? Gu(me.records).value : void 0;
3143
+ const { keys: ne } = Cl(me.records), Ie = ft ? Uu(me.records).value : void 0;
3144
3144
  j(
3145
3145
  S.type === "kpi" ? Ie ? [Ie] : [] : ne,
3146
3146
  me.columnKeyMap,
@@ -3416,7 +3416,7 @@ const Pn = [
3416
3416
  function ef({ className: t }) {
3417
3417
  const n = I((p) => p.card), r = I((p) => p.frame), s = I((p) => p.editorContext), l = st(), { setCard: c, updateCardInFrame: d } = ve(), i = (s == null ? void 0 : s.type) === "documentSection" && !!s.lockedKind, o = (s == null ? void 0 : s.type) === "documentSection" ? Pn.filter((p) => p.value === "table") : Pn, f = Pn.some(
3418
3418
  (p) => p.value === l
3419
- ), u = Oa(n.config, n.type), m = Hu(n, r.cards);
3419
+ ), u = Oa(n.config, n.type), m = Gu(n, r.cards);
3420
3420
  if (!f || !u || m || i || o.length < 2)
3421
3421
  return /* @__PURE__ */ e(
3422
3422
  "div",
@@ -3429,7 +3429,7 @@ function ef({ className: t }) {
3429
3429
  const h = (p) => {
3430
3430
  if (p === l || m)
3431
3431
  return;
3432
- const w = p, S = n.config ?? {}, x = Ju(
3432
+ const w = p, S = n.config ?? {}, x = Hu(
3433
3433
  l,
3434
3434
  w,
3435
3435
  S
@@ -4026,7 +4026,7 @@ function uf({
4026
4026
  className: s,
4027
4027
  ariaLabel: l
4028
4028
  }) {
4029
- const c = le(() => Ou(t, n), [t, n]);
4029
+ const c = le(() => Ru(t, n), [t, n]);
4030
4030
  return (
4031
4031
  // `.code-editor` scopes the token colors — see code-editor.css.
4032
4032
  /* @__PURE__ */ e("div", { className: G("code-editor", s), children: /* @__PURE__ */ e(
@@ -4302,7 +4302,7 @@ function Ui(t, n) {
4302
4302
  const mf = "__editor_sql__", hf = "__editor_python__";
4303
4303
  function pf(t) {
4304
4304
  var r;
4305
- const n = Qu(t.python || "");
4305
+ const n = Ju(t.python || "");
4306
4306
  return {
4307
4307
  sql: (r = t.sql) != null && r.trim() ? mf : "",
4308
4308
  python: n.trim() ? hf : ""
@@ -4328,7 +4328,7 @@ function Gi({
4328
4328
  ), S = it(
4329
4329
  (he) => p(s.id, he),
4330
4330
  [s.id, p]
4331
- ), x = Yu(s, f, {
4331
+ ), x = Qu(s, f, {
4332
4332
  savedFilters: i
4333
4333
  }).length > 0, b = le(
4334
4334
  () => sa(o, s),
@@ -4976,7 +4976,7 @@ const Xs = [
4976
4976
  ], On = 2;
4977
4977
  function Ji(t) {
4978
4978
  return Nf.filter(
4979
- (n) => Wu(n.id, t)
4979
+ (n) => Yu(n.id, t)
4980
4980
  );
4981
4981
  }
4982
4982
  function Cf({
@@ -5012,10 +5012,10 @@ function Cf({
5012
5012
  }, [o, s]), P = (k) => {
5013
5013
  u(k).status !== "refused" && (n == null || n(k), r == null || r());
5014
5014
  }, V = (k) => {
5015
- const T = Xu(k);
5015
+ const T = Wu(k);
5016
5016
  if (T === "multiple" && k.slots && k.slots.length > 0) {
5017
5017
  x(null), m({}), b(void 0), N();
5018
- const A = Zu(k.slots, k, h);
5018
+ const A = Xu(k.slots, k, h);
5019
5019
  v(A), A[0] && g(A[0]), r == null || r();
5020
5020
  return;
5021
5021
  } else if (u("custom", {
@@ -5499,13 +5499,13 @@ function Gr({
5499
5499
  }
5500
5500
  function v(F) {
5501
5501
  if (w.find(
5502
- (D) => em(D, F)
5502
+ (D) => Zu(D, F)
5503
5503
  ))
5504
5504
  return;
5505
5505
  const V = Jh({
5506
5506
  id: Kt(),
5507
5507
  field: F,
5508
- ...tm(c ?? {}, d)
5508
+ ...em(c ?? {}, d)
5509
5509
  });
5510
5510
  o({
5511
5511
  ...c,
@@ -5528,9 +5528,9 @@ function Gr({
5528
5528
  inlineFilters: D
5529
5529
  });
5530
5530
  const y = D.find((M) => M.id === F);
5531
- if (!y || !am(V, y))
5531
+ if (!y || !tm(V, y))
5532
5532
  return;
5533
- const R = nm(
5533
+ const R = am(
5534
5534
  y,
5535
5535
  S
5536
5536
  );
@@ -5752,11 +5752,11 @@ function Mf({
5752
5752
  matrixPresentation: f
5753
5753
  }) {
5754
5754
  const u = le(
5755
- () => f ?? (o ? kh(o).presentation : void 0),
5755
+ () => f ?? (o ? Sh(o).presentation : void 0),
5756
5756
  [o, f]
5757
5757
  );
5758
5758
  function m(D) {
5759
- return !o || !u ? [] : lm(o, D, x).map((y) => ({
5759
+ return !o || !u ? [] : sm(o, D, x).map((y) => ({
5760
5760
  id: y.id,
5761
5761
  label: y.kind === "measure" ? `${mn(y.measure, u)} (${y.measure.aggregate})` : `${y.axis === "rows" ? "Rows" : "Columns"}: ${Lr(y.level, u)}`
5762
5762
  }));
@@ -5773,7 +5773,7 @@ function Mf({
5773
5773
  function x(D) {
5774
5774
  return o ? mi(D, o.source, c) : D.dataType;
5775
5775
  }
5776
- const b = rm(t, o, x), v = new Set(
5776
+ const b = nm(t, o, x), v = new Set(
5777
5777
  r.map((D) => en(D.controlId, D.target))
5778
5778
  ), N = h.some(
5779
5779
  (D) => ui({
@@ -5902,7 +5902,7 @@ function Mf({
5902
5902
  r.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." }) : r.map((D, y) => {
5903
5903
  const R = b[D.target] || [], M = h.find(
5904
5904
  ($) => $.id === D.controlId
5905
- ), z = M ? sm(M) : null, _ = (z == null ? void 0 : z.source.kind) === "manual" ? z.source.options : [], C = L(D.target), B = m(D.target), k = D.matrixTargetId !== void 0 && !B.some(($) => $.id === D.matrixTargetId), T = Array.from(
5905
+ ), z = M ? rm(M) : null, _ = (z == null ? void 0 : z.source.kind) === "manual" ? z.source.options : [], C = L(D.target), B = m(D.target), k = D.matrixTargetId !== void 0 && !B.some(($) => $.id === D.matrixTargetId), T = Array.from(
5906
5906
  /* @__PURE__ */ new Set([
5907
5907
  ..._.map(($) => $.value),
5908
5908
  ...Object.keys(D.mapping)
@@ -6137,7 +6137,7 @@ function Of({
6137
6137
  ), N = (g) => {
6138
6138
  if (!m)
6139
6139
  return;
6140
- const L = Ah({
6140
+ const L = Ih({
6141
6141
  card: n,
6142
6142
  target: g,
6143
6143
  resultColumnKeys: s,
@@ -6146,7 +6146,7 @@ function Of({
6146
6146
  matrixCatalog: t
6147
6147
  });
6148
6148
  if (L)
6149
- return Th(1e3, L);
6149
+ return kh(1e3, L);
6150
6150
  };
6151
6151
  return i.length === 0 && l.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__ */ a("div", { className: "space-y-3", children: [
6152
6152
  /* @__PURE__ */ a("div", { className: "space-y-1", children: [
@@ -6225,7 +6225,7 @@ function Hr({
6225
6225
  preventPassiveDismissDuringCreate: l,
6226
6226
  resolvedOpen: c,
6227
6227
  setIsCreateFlowActive: d
6228
- } = Ch({}), i = I((q) => q.card), o = I((q) => q.frame), f = I(
6228
+ } = Nh({}), i = I((q) => q.card), o = I((q) => q.frame), f = I(
6229
6229
  (q) => q.queryResultColumns
6230
6230
  ), u = be((q) => q.dashboard), h = be(
6231
6231
  (q) => q.dashboard.controls
@@ -6241,15 +6241,15 @@ function Hr({
6241
6241
  ), g = Zc(N), L = le(() => g.catalog.map((q) => ({
6242
6242
  ...q.field,
6243
6243
  dataType: fl(q.resolvedField.dataType)
6244
- })), [g.catalog]), F = (b == null ? void 0 : b.controls) || [], P = b ? im(u, { excludeCardId: b.id }) : h.map((q) => q.id), V = ((b == null ? void 0 : b.controlBindings) || []).filter(
6245
- om
6244
+ })), [g.catalog]), F = (b == null ? void 0 : b.controls) || [], P = b ? lm(u, { excludeCardId: b.id }) : h.map((q) => q.id), V = ((b == null ? void 0 : b.controlBindings) || []).filter(
6245
+ im
6246
6246
  ), D = ((b == null ? void 0 : b.controlBindings) || []).filter(
6247
6247
  Fn
6248
6248
  ), y = ed({
6249
6249
  card: b,
6250
6250
  controls: F
6251
6251
  }), R = {
6252
- choices: cm(b),
6252
+ choices: om(b),
6253
6253
  targetMap: Object.fromEntries(
6254
6254
  (((A = b == null ? void 0 : b.config) == null ? void 0 : A.groupByColumns) || []).map((q) => [
6255
6255
  q.id,
@@ -6257,7 +6257,7 @@ function Hr({
6257
6257
  ])
6258
6258
  )
6259
6259
  }, M = {
6260
- choices: dm(b),
6260
+ choices: cm(b),
6261
6261
  targetMap: Object.fromEntries(
6262
6262
  (((j = b == null ? void 0 : b.config) == null ? void 0 : j.metricColumns) || []).map((q) => [
6263
6263
  q.id,
@@ -6283,7 +6283,7 @@ function Hr({
6283
6283
  }) : b, ae = {
6284
6284
  ...oe,
6285
6285
  controls: q,
6286
- controlBindings: um(
6286
+ controlBindings: dm(
6287
6287
  oe.controlBindings,
6288
6288
  q
6289
6289
  )
@@ -6295,7 +6295,7 @@ function Hr({
6295
6295
  const $ = {
6296
6296
  ...b,
6297
6297
  controlBindings: [
6298
- ...mm(
6298
+ ...um(
6299
6299
  q,
6300
6300
  (b.controlBindings || []).filter(
6301
6301
  (oe) => !Fn(oe)
@@ -6369,7 +6369,7 @@ function Hr({
6369
6369
  ] }),
6370
6370
  /* @__PURE__ */ e("div", { className: "flex-1 overflow-y-auto pt-5", children: /* @__PURE__ */ a("div", { className: "space-y-5 pr-1", children: [
6371
6371
  /* @__PURE__ */ e(
6372
- wh,
6372
+ Ch,
6373
6373
  {
6374
6374
  scope: "card",
6375
6375
  card: b,
@@ -6557,7 +6557,7 @@ function Vf({
6557
6557
  function y(A) {
6558
6558
  const j = (r == null ? void 0 : r.id) === A;
6559
6559
  (F && j ? s.cards.length > 1 : L) && m(A, {
6560
- renumber: S && !F ? fm : void 0
6560
+ renumber: S && !F ? pm : void 0
6561
6561
  });
6562
6562
  }
6563
6563
  function R(A, j) {
@@ -6608,7 +6608,7 @@ function Vf({
6608
6608
  p.slots,
6609
6609
  oe
6610
6610
  );
6611
- H && (j = gm(H), q = H.label || `Tab ${oe + 1}`, $ = H.description || "");
6611
+ H && (j = fm(H), q = H.label || `Tab ${oe + 1}`, $ = H.description || "");
6612
6612
  }
6613
6613
  const ae = {
6614
6614
  dataSource: A.dataSource,
@@ -6626,7 +6626,7 @@ function Vf({
6626
6626
  ],
6627
6627
  ...j === "text" ? {
6628
6628
  textVisualOptions: {
6629
- richContent: xm()
6629
+ richContent: gm()
6630
6630
  }
6631
6631
  } : {}
6632
6632
  },
@@ -6786,7 +6786,7 @@ function cr({
6786
6786
  I((se) => se.isDevMode);
6787
6787
  const { switchCardTab: f, resetAllColumnSettings: u } = ve(), m = Object.keys(((We = (Ue = l.preferences) == null ? void 0 : Ue.tablePrefs) == null ? void 0 : We.columnSettingsMap) ?? {}).length > 0 || Object.keys(((ct = l.preferences) == null ? void 0 : ct.sqlColumns) ?? {}).length > 0, [h, p] = U({}), [w, S] = U(
6788
6788
  () => /* @__PURE__ */ new Set()
6789
- ), { authToken: x } = Zt(), b = hm(x == null ? void 0 : x.accessToken), { compiledAppearance: v } = ep(), N = le(
6789
+ ), { authToken: x } = Zt(), b = mm(x == null ? void 0 : x.accessToken), { compiledAppearance: v } = ep(), N = le(
6790
6790
  () => ad(v),
6791
6791
  [v]
6792
6792
  ), {
@@ -6834,7 +6834,7 @@ function cr({
6834
6834
  $ || l.sql || l.python
6835
6835
  ), Y = l.type === "text" && ((Ie = (ne = l.preferences) == null ? void 0 : ne.textVisualOptions) == null ? void 0 : Ie.isDynamicText) === !0 && !!q, te = it(
6836
6836
  (se, Te) => {
6837
- const St = pm(Te);
6837
+ const St = hm(Te);
6838
6838
  p((dt) => ({
6839
6839
  ...dt,
6840
6840
  [se]: St
@@ -7191,7 +7191,7 @@ function Vn({
7191
7191
  function $() {
7192
7192
  A && fd(
7193
7193
  gd(
7194
- xd({
7194
+ Ah({
7195
7195
  records: E,
7196
7196
  encoding: Zh({
7197
7197
  dashboardDefault: u
@@ -7734,7 +7734,7 @@ function Wi() {
7734
7734
  var M, z, _;
7735
7735
  const t = I(
7736
7736
  (C) => C.card.customCardPreferences
7737
- ), { data: n } = bd(), r = (n == null ? void 0 : n.plugins) || [], s = I((C) => C.card), l = I((C) => C.frame), { setCustomCardPreferences: c } = ve(), d = le(
7737
+ ), { data: n } = xd(), r = (n == null ? void 0 : n.plugins) || [], s = I((C) => C.card), l = I((C) => C.frame), { setCustomCardPreferences: c } = ve(), d = le(
7738
7738
  () => sa(l, s),
7739
7739
  [l, s]
7740
7740
  ), i = d == null ? void 0 : d.customCardPreferences, { components: o, manifest: f } = ea(
@@ -7805,7 +7805,7 @@ function Wi() {
7805
7805
  return C === "input" ? /* @__PURE__ */ e(
7806
7806
  lt,
7807
7807
  {
7808
- className: `h-8 w-full ${bm}`,
7808
+ className: `h-8 w-full ${xm}`,
7809
7809
  value: String(
7810
7810
  q ?? ""
7811
7811
  ),
@@ -8035,9 +8035,9 @@ function Wi() {
8035
8035
  u.docs.dataSchema && /* @__PURE__ */ a("div", { className: "space-y-2", children: [
8036
8036
  /* @__PURE__ */ e("h4", { className: "text-xs font-semibold uppercase tracking-wide text-muted-foreground", children: "Data Schema" }),
8037
8037
  /* @__PURE__ */ e("div", { className: "prose prose-sm dark:prose-invert prose-pre:bg-muted prose-pre:text-xs max-w-none", children: /* @__PURE__ */ e(
8038
- vd,
8038
+ bd,
8039
8039
  {
8040
- remarkPlugins: [yd],
8040
+ remarkPlugins: [vd],
8041
8041
  components: $f,
8042
8042
  children: u.docs.dataSchema
8043
8043
  }
@@ -8231,7 +8231,7 @@ const el = [
8231
8231
  ], Jf = (t) => t.charAt(0).toUpperCase() + t.slice(1);
8232
8232
  function Qf(t, n) {
8233
8233
  try {
8234
- return Eh(
8234
+ return Th(
8235
8235
  t,
8236
8236
  n
8237
8237
  ).maximumFractionDigits ?? tn("currency");
@@ -8669,7 +8669,7 @@ function Xf() {
8669
8669
  var f, u;
8670
8670
  const t = I((m) => m.card), n = I(
8671
8671
  (m) => m.actions.setCardPreferences
8672
- ), r = $l() ?? ha.locale, s = zl() ?? ha.defaultCurrency, l = Nd(t) === "config", c = Wf(t.preferences), d = !!((u = (f = t.preferences) == null ? void 0 : f.sqlKpiValue) != null && u.format), i = (m) => {
8672
+ ), r = $l() ?? ha.locale, s = zl() ?? ha.defaultCurrency, l = yd(t) === "config", c = Wf(t.preferences), d = !!((u = (f = t.preferences) == null ? void 0 : f.sqlKpiValue) != null && u.format), i = (m) => {
8673
8673
  const h = I.getState().card.preferences ?? {};
8674
8674
  n(tl(h, m));
8675
8675
  }, o = (m) => {
@@ -8716,7 +8716,7 @@ function al({ card: t }) {
8716
8716
  t.id,
8717
8717
  Pr(t),
8718
8718
  n
8719
- ), l = vm(t), c = l == null ? void 0 : l.value, d = (l == null ? void 0 : l.source) === "config" ? l.measure : void 0, i = c ? [{ value: rr(c), label: d ? d.label || d.alias || d.name : "Value" }] : [];
8719
+ ), l = bm(t), c = l == null ? void 0 : l.value, d = (l == null ? void 0 : l.source) === "config" ? l.measure : void 0, i = c ? [{ value: rr(c), label: d ? d.label || d.alias || d.name : "Value" }] : [];
8720
8720
  return i.length ? /* @__PURE__ */ a("div", { className: "space-y-2", children: [
8721
8721
  /* @__PURE__ */ e(Jr, { cardId: t.id }),
8722
8722
  /* @__PURE__ */ e(
@@ -9035,7 +9035,7 @@ function eg({
9035
9035
  className: "inline-flex items-center gap-1.5 text-xs font-medium text-primary hover:underline",
9036
9036
  children: [
9037
9037
  "View documentation",
9038
- /* @__PURE__ */ e(Cd, { className: "h-3 w-3" })
9038
+ /* @__PURE__ */ e(Nd, { className: "h-3 w-3" })
9039
9039
  ]
9040
9040
  }
9041
9041
  )
@@ -9087,7 +9087,7 @@ function ag() {
9087
9087
  ), s = (l) => {
9088
9088
  const c = I.getState().card;
9089
9089
  r(
9090
- ym(c, { kind: "sqlKpiValue" }, l).preferences ?? {}
9090
+ vm(c, { kind: "sqlKpiValue" }, l).preferences ?? {}
9091
9091
  );
9092
9092
  };
9093
9093
  return /* @__PURE__ */ a("div", { className: "space-y-6 px-6 py-4", children: [
@@ -9267,7 +9267,7 @@ function no({
9267
9267
  origin: c,
9268
9268
  drawnTypes: d
9269
9269
  }) {
9270
- const i = Nm(r), o = $l(), f = zl(), u = !!(c && !c.custom && c.modelFormat), m = u ? c == null ? void 0 : c.modelFormat : t, h = wi(m) || {};
9270
+ const i = ym(r), o = $l(), f = zl(), u = !!(c && !c.custom && c.modelFormat), m = u ? c == null ? void 0 : c.modelFormat : t, h = wi(m) || {};
9271
9271
  if (!eo(d, h.type).length) return null;
9272
9272
  const w = /* @__PURE__ */ e(
9273
9273
  La,
@@ -9600,7 +9600,7 @@ function ig({
9600
9600
  }
9601
9601
  function og(t, n) {
9602
9602
  var s;
9603
- return (s = km({
9603
+ return (s = Sm({
9604
9604
  type: "matrixTable",
9605
9605
  config: { matrix: t },
9606
9606
  preferences: { conditionalFormatting: { version: 1, rules: n } }
@@ -9618,7 +9618,7 @@ function cg({
9618
9618
  s,
9619
9619
  l,
9620
9620
  (m) => og(n, m)
9621
- ), d = c.rules, i = (m) => c.onChange(m(d)), o = d.find((m) => !wd(m)), f = o ? `${o.name || "the new rule"} is incomplete` : c.issue ?? "", u = n.spec.measures[0];
9621
+ ), d = c.rules, i = (m) => c.onChange(m(d)), o = d.find((m) => !Cd(m)), f = o ? `${o.name || "the new rule"} is incomplete` : c.issue ?? "", u = n.spec.measures[0];
9622
9622
  return u ? /* @__PURE__ */ a("div", { className: "min-w-0 space-y-2", children: [
9623
9623
  f && /* @__PURE__ */ a("p", { className: "text-xs text-muted-foreground", children: [
9624
9624
  "Not applied yet: ",
@@ -9748,7 +9748,7 @@ function dg({
9748
9748
  }) {
9749
9749
  const [u, m] = U([]), [h, p] = U(""), w = (N) => mi(N, r.spec.source, s), S = (N) => {
9750
9750
  try {
9751
- const g = Sm(r, N, l, w, !0);
9751
+ const g = wm(r, N, l, w, !0);
9752
9752
  p(""), m(g.notices), f(g.config, g.notices, g.removedBindings, g.bindings);
9753
9753
  } catch (g) {
9754
9754
  p(
@@ -9771,7 +9771,7 @@ function dg({
9771
9771
  }
9772
9772
  x({ [N]: F });
9773
9773
  }, v = (N, g) => {
9774
- const L = r.presentation[g][N], F = d == null ? void 0 : d[g][N], V = wm(
9774
+ const L = r.presentation[g][N], F = d == null ? void 0 : d[g][N], V = Cm(
9775
9775
  { type: "matrixTable", config: { matrix: r } },
9776
9776
  g === "levelFormats" ? { kind: "matrixLevel", levelId: N } : { kind: "matrixMeasure", measureId: N }
9777
9777
  );
@@ -9845,7 +9845,7 @@ function dg({
9845
9845
  { value: "columns", label: "Columns" }
9846
9846
  ],
9847
9847
  onChange: (R) => {
9848
- R !== N && S(Cm(r.spec, g.id, R));
9848
+ R !== N && S(Nm(r.spec, g.id, R));
9849
9849
  }
9850
9850
  }
9851
9851
  ),
@@ -10093,7 +10093,7 @@ function dg({
10093
10093
  ] });
10094
10094
  }
10095
10095
  function dr({ fieldId: t, section: n = "table" }) {
10096
- const r = I((o) => o.card), s = I((o) => o.actions.updateCard), l = I((o) => o.actions.updateConditionalRules), c = I((o) => o.matrixSelection), d = Sd(r), i = Tm(r);
10096
+ const r = I((o) => o.card), s = I((o) => o.actions.updateCard), l = I((o) => o.actions.updateConditionalRules), c = I((o) => o.matrixSelection), d = wd(r), i = km(r);
10097
10097
  return i.status === "invalid" ? /* @__PURE__ */ e("div", { role: "alert", className: "p-3 text-xs text-destructive", children: "Invalid Matrix configuration. Repair or reset the card definition." }) : i.status === "absent" ? /* @__PURE__ */ e("div", { className: "p-3 text-xs text-muted-foreground", children: "No fields selected" }) : /* @__PURE__ */ a(pe, { children: [
10098
10098
  n === "conditional-formatting" && !t && /* @__PURE__ */ e("div", { className: "px-3 pt-3", children: /* @__PURE__ */ e(Jr, { cardId: r.id }) }),
10099
10099
  /* @__PURE__ */ e(
@@ -10114,7 +10114,7 @@ function dr({ fieldId: t, section: n = "table" }) {
10114
10114
  )
10115
10115
  })),
10116
10116
  onChange: (o, f, u, m) => {
10117
- const h = Em(r, { config: o, notices: f, bindings: m });
10117
+ const h = Tm(r, { config: o, notices: f, bindings: m });
10118
10118
  s(r.id, h.card);
10119
10119
  }
10120
10120
  }
@@ -10310,7 +10310,7 @@ function hg() {
10310
10310
  return ((b = x.comparison) == null ? void 0 : b.mode) === "explicit";
10311
10311
  }
10312
10312
  );
10313
- if (!Dm.includes(r))
10313
+ if (!Fm.includes(r))
10314
10314
  return null;
10315
10315
  const i = ((p = t.preferences) == null ? void 0 : p.comparisonPresentation) || {}, o = (x) => n(
10316
10316
  gi(t.preferences, x)
@@ -10333,7 +10333,7 @@ function hg() {
10333
10333
  size: "xs",
10334
10334
  checked: ((S = t.preferences) == null ? void 0 : S.inheritGlobalComparison) !== !1,
10335
10335
  onCheckedChange: (x) => n(
10336
- Fm(t.preferences, x)
10336
+ Em(t.preferences, x)
10337
10337
  )
10338
10338
  }
10339
10339
  )
@@ -10390,15 +10390,15 @@ function lo({
10390
10390
  return (ge = ie.card) == null ? void 0 : ge.preferences;
10391
10391
  }), o = i == null ? void 0 : i.tablePrefs, f = I(
10392
10392
  (ie) => ie.actions.setCardPreferences
10393
- ), u = I((ie) => ie.queryResultColumnMeta), m = ((te = l.config) == null ? void 0 : te.metricColumns) || [], h = t ?? l.type, p = n ?? c, w = l.type === h ? l : { ...l, type: h }, S = kd(
10393
+ ), u = I((ie) => ie.queryResultColumnMeta), m = ((te = l.config) == null ? void 0 : te.metricColumns) || [], h = t ?? l.type, p = n ?? c, w = l.type === h ? l : { ...l, type: h }, S = Sd(
10394
10394
  w,
10395
10395
  p,
10396
10396
  d,
10397
10397
  u
10398
- ), x = Td(
10398
+ ), x = kd(
10399
10399
  w,
10400
10400
  p
10401
- ), b = h === "matrixTable" || Fd(h), v = h === "table", N = h === "table", g = h === "table" || h === "detailTable", L = !!(l && ((de = js(l)) != null && de.settings.has("columnFilters"))), F = !!(l && ((xe = js(l)) != null && xe.settings.has("tableSearch"))), P = N || g || L, V = ((me = S[0]) == null ? void 0 : me.value) || "", D = Ed(o), y = Im(w), R = Am(w), [M, z] = U("style");
10401
+ ), b = h === "matrixTable" || Ed(h), v = h === "table", N = h === "table", g = h === "table" || h === "detailTable", L = !!(l && ((de = js(l)) != null && de.settings.has("columnFilters"))), F = !!(l && ((xe = js(l)) != null && xe.settings.has("tableSearch"))), P = N || g || L, V = ((me = S[0]) == null ? void 0 : me.value) || "", D = Td(o), y = Dm(w), R = Im(w), [M, z] = U("style");
10402
10402
  Ce(() => {
10403
10403
  if (r === "style") {
10404
10404
  z("style");
@@ -10455,7 +10455,7 @@ function lo({
10455
10455
  f(Ks(i, { row: ie }));
10456
10456
  }, q = (ie, ge) => {
10457
10457
  f(
10458
- Pm({ preferences: i }, ie, { hidden: !ge }).preferences ?? {}
10458
+ Mm({ preferences: i }, ie, { hidden: !ge }).preferences ?? {}
10459
10459
  );
10460
10460
  }, $ = (ie) => {
10461
10461
  const { allowViewerColumnCustomization: ge, ...Fe } = o ?? {};
@@ -10465,11 +10465,11 @@ function lo({
10465
10465
  tablePrefs: ie ? Fe : { ...Fe, allowViewerColumnCustomization: !1 }
10466
10466
  });
10467
10467
  }, oe = (ie) => {
10468
- f(Rm(i, ie));
10468
+ f(Pm(i, ie));
10469
10469
  }, ae = (ie) => {
10470
- f(Om(i, ie));
10470
+ f(Rm(i, ie));
10471
10471
  }, ue = () => {
10472
- f(Lm({ preferences: i }).preferences ?? {});
10472
+ f(Om({ preferences: i }).preferences ?? {});
10473
10473
  }, H = () => {
10474
10474
  var ie;
10475
10475
  f({
@@ -10491,7 +10491,7 @@ function lo({
10491
10491
  borderTopStyle: Jt.borderTopStyle,
10492
10492
  borderTopColor: Jt.borderTopColor,
10493
10493
  // Reset restores the look; each measure's total is a setting, not style (OT-D2).
10494
- ..._m((ie = o == null ? void 0 : o.tableStyle) == null ? void 0 : ie.totals)
10494
+ ...Lm((ie = o == null ? void 0 : o.tableStyle) == null ? void 0 : ie.totals)
10495
10495
  }
10496
10496
  }
10497
10497
  }
@@ -10539,7 +10539,7 @@ function lo({
10539
10539
  ] }),
10540
10540
  /* @__PURE__ */ a(Ct, { value: "style", className: "mt-0", children: [
10541
10541
  /* @__PURE__ */ e(
10542
- Dd,
10542
+ Fd,
10543
10543
  {
10544
10544
  style: D,
10545
10545
  onDensityChange: k,
@@ -10550,7 +10550,7 @@ function lo({
10550
10550
  enabled: R,
10551
10551
  onEnabledChange: j,
10552
10552
  onStyleChange: E,
10553
- measures: Mm(w),
10553
+ measures: Am(w),
10554
10554
  onMeasureTotalChange: A
10555
10555
  } : void 0,
10556
10556
  extraSection: Y,
@@ -10610,7 +10610,7 @@ function lo({
10610
10610
  )
10611
10611
  ] }) : null,
10612
10612
  N ? /* @__PURE__ */ e(
10613
- Id,
10613
+ Dd,
10614
10614
  {
10615
10615
  columns: x,
10616
10616
  columnVisibility: o == null ? void 0 : o.columnVisibility,
@@ -11218,7 +11218,7 @@ function qn({ axis: t, label: n, type: r, config: s, onChange: l, defaultTitle:
11218
11218
  var T;
11219
11219
  const k = _ === "enabled" && C === !0 && !((T = s == null ? void 0 : s.name) != null && T.text) && c;
11220
11220
  l(
11221
- Bm(s, {
11221
+ Vm(s, {
11222
11222
  [_]: C,
11223
11223
  ...k ? { text: c } : {}
11224
11224
  })
@@ -11233,7 +11233,7 @@ function qn({ axis: t, label: n, type: r, config: s, onChange: l, defaultTitle:
11233
11233
  }
11234
11234
  });
11235
11235
  }, p = (_, C) => {
11236
- l(jm(s, { [_]: C === "" ? null : Number(C) }));
11236
+ l(Bm(s, { [_]: C === "" ? null : Number(C) }));
11237
11237
  }, w = t === "x" ? ["auto", "top", "bottom"] : ["auto", "left", "right"], S = ["auto", "0", "45", "90", "-45", "-90"];
11238
11238
  return /* @__PURE__ */ a(Oe, { value: `${t}-axis`, className: "border-b-0", children: [
11239
11239
  /* @__PURE__ */ a("div", { className: "flex w-full items-center justify-between gap-2", children: [
@@ -11465,7 +11465,7 @@ function Cg() {
11465
11465
  }), { setCardPreferences: r, updateCardInFrame: s } = ve(), l = st();
11466
11466
  if (!t || ["tornado", "pyramid", "kpi", "treemap"].includes(l))
11467
11467
  return null;
11468
- const c = Ad.getAxisInfo(
11468
+ const c = Id.getAxisInfo(
11469
11469
  l,
11470
11470
  n
11471
11471
  );
@@ -11474,7 +11474,7 @@ function Cg() {
11474
11474
  const d = (o, f) => {
11475
11475
  let u;
11476
11476
  o === "x" ? u = "xAxisConfig" : o === "y" ? u = "yAxisConfig" : u = "secondaryYAxisConfig";
11477
- const m = Vm(n, u, f);
11477
+ const m = _m(n, u, f);
11478
11478
  r(m);
11479
11479
  const h = {
11480
11480
  ...t,
@@ -11541,9 +11541,9 @@ function wg() {
11541
11541
  return (S = (w = (p = (h = m.card) == null ? void 0 : h.preferences) == null ? void 0 : p.chartOptions) == null ? void 0 : w.plugins) == null ? void 0 : S.legend;
11542
11542
  }
11543
11543
  ), { setLegendOptions: s } = ve();
11544
- if (!t || !Md(n))
11544
+ if (!t || !Ad(n))
11545
11545
  return null;
11546
- const l = Pd(n), c = (l == null ? void 0 : l.display) ?? !0, d = (l == null ? void 0 : l.position) ?? "top", i = (l == null ? void 0 : l.align) ?? "center", o = (m, h) => {
11546
+ const l = Md(n), c = (l == null ? void 0 : l.display) ?? !0, d = (l == null ? void 0 : l.position) ?? "top", i = (l == null ? void 0 : l.align) ?? "center", o = (m, h) => {
11547
11547
  const p = {
11548
11548
  ...r,
11549
11549
  [m]: h
@@ -11611,12 +11611,12 @@ function Sg() {
11611
11611
  var E;
11612
11612
  return (E = T.card) == null ? void 0 : E.preferences;
11613
11613
  }), { setCardPreferences: l, updateCardInFrame: c } = ve(), [d, i] = U(!!(r != null && r.valueFormat));
11614
- if (!t || !Km(n))
11614
+ if (!t || !jm(n))
11615
11615
  return null;
11616
- const o = n === "bullet" ? ((z = s == null ? void 0 : s.bulletConfig) == null ? void 0 : z.orientation) ?? (((_ = s == null ? void 0 : s.chartOptions) == null ? void 0 : _.indexAxis) === "x" ? "vertical" : "horizontal") : void 0, f = o != null ? o === "horizontal" : ((C = s == null ? void 0 : s.chartOptions) == null ? void 0 : C.indexAxis) === "y", u = n === "stackedBar" || n === "stackedLine", m = n === "pie" || n === "doughnut" || n === "polarArea" || n === "funnel", h = n === "bubble" || n === "scatter", p = qm(
11616
+ const o = n === "bullet" ? ((z = s == null ? void 0 : s.bulletConfig) == null ? void 0 : z.orientation) ?? (((_ = s == null ? void 0 : s.chartOptions) == null ? void 0 : _.indexAxis) === "x" ? "vertical" : "horizontal") : void 0, f = o != null ? o === "horizontal" : ((C = s == null ? void 0 : s.chartOptions) == null ? void 0 : C.indexAxis) === "y", u = n === "stackedBar" || n === "stackedLine", m = n === "pie" || n === "doughnut" || n === "polarArea" || n === "funnel", h = n === "bubble" || n === "scatter", p = Km(
11617
11617
  n,
11618
11618
  t.preferences
11619
- ), w = r ?? p, S = $m(n, t.preferences), x = (r == null ? void 0 : r.enabled) !== void 0 ? r.enabled : S, b = (T, E) => {
11619
+ ), w = r ?? p, S = qm(n, t.preferences), x = (r == null ? void 0 : r.enabled) !== void 0 ? r.enabled : S, b = (T, E) => {
11620
11620
  const j = (T === "enabled" ? qs({ type: n, preferences: t.preferences }, { show: E }).dataLabelsConfig : void 0) ?? {
11621
11621
  ...$s(r, p),
11622
11622
  [T]: E
@@ -12484,7 +12484,7 @@ function Dg() {
12484
12484
  };
12485
12485
  return !d && !i ? null : /* @__PURE__ */ a(Oe, { value: "bubble-scatter-config", children: [
12486
12486
  /* @__PURE__ */ e(Le, { className: "flex w-full items-center gap-2 py-2 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
12487
- /* @__PURE__ */ e(d ? Rd : Pl, { className: "h-3.5 w-3.5 text-foreground/60" }),
12487
+ /* @__PURE__ */ e(d ? Pd : Pl, { className: "h-3.5 w-3.5 text-foreground/60" }),
12488
12488
  /* @__PURE__ */ a("span", { children: [
12489
12489
  d ? "Bubble" : "Scatter",
12490
12490
  " Configuration"
@@ -12922,9 +12922,9 @@ function Ag() {
12922
12922
  }
12923
12923
  function hn() {
12924
12924
  var d, i;
12925
- const t = I((o) => o.card), { data: n, comparisonMetadata: r } = tt(t), s = (n == null ? void 0 : n.records) || [], { keys: l } = Cl(s, r), c = l.slice(1).filter((o) => !zm.includes(o));
12926
- if (Od(t.type)) {
12927
- const o = t.config, f = (d = o == null ? void 0 : o.pivotByColumns) != null && d.length && ((i = o == null ? void 0 : o.groupByColumns) != null && i.length) ? Ld(s, o.metricColumns || []) : s, u = _d({
12925
+ const t = I((o) => o.card), { data: n, comparisonMetadata: r } = tt(t), s = (n == null ? void 0 : n.records) || [], { keys: l } = Cl(s, r), c = l.slice(1).filter((o) => !$m.includes(o));
12926
+ if (Rd(t.type)) {
12927
+ const o = t.config, f = (d = o == null ? void 0 : o.pivotByColumns) != null && d.length && ((i = o == null ? void 0 : o.groupByColumns) != null && i.length) ? Od(s, o.metricColumns || []) : s, u = Ld({
12928
12928
  card: t,
12929
12929
  cardType: t.type,
12930
12930
  records: f,
@@ -14471,7 +14471,7 @@ function vx() {
14471
14471
  }
14472
14472
  function yx({ card: t }) {
14473
14473
  var p, w, S, x, b;
14474
- const { setCardConfig: n } = ve(), { data: r } = tt(t), s = r == null ? void 0 : r.metadata, l = Um(t.config), c = !!(s != null && s.dateContext && !s.dateContext.field && !l), d = ((p = t.config) == null ? void 0 : p.kpiBand) === "trend", i = ((w = t.config) == null ? void 0 : w.kpiTrendGrain) ?? "automatic", o = ((x = (S = s == null ? void 0 : s.dateContext) == null ? void 0 : S.counted) == null ? void 0 : x.status) === "window" ? s.dateContext.counted.window : void 0, f = ((b = s == null ? void 0 : s.trend) == null ? void 0 : b.grainSource) === "automatic" ? s.trend.granularity : void 0, u = (v) => n(Jm(t, v).config), m = (v) => n(Qm(t, v === "automatic" ? null : v).config), h = c ? d ? "This KPI counts on no date, so the trend can't show. Turn it off, or drop a date on Trend By." : "This KPI counts on no date. Drop a date on Trend By to show a trend." : d ? l ? "Trend By sets the grain. Remove it to pick one here." : i === "automatic" ? "Follows the period the KPI counts: a different dashboard date changes it." : `Always by ${i}.` : "A line of the value over the period it counts.";
14474
+ const { setCardConfig: n } = ve(), { data: r } = tt(t), s = r == null ? void 0 : r.metadata, l = zm(t.config), c = !!(s != null && s.dateContext && !s.dateContext.field && !l), d = ((p = t.config) == null ? void 0 : p.kpiBand) === "trend", i = ((w = t.config) == null ? void 0 : w.kpiTrendGrain) ?? "automatic", o = ((x = (S = s == null ? void 0 : s.dateContext) == null ? void 0 : S.counted) == null ? void 0 : x.status) === "window" ? s.dateContext.counted.window : void 0, f = ((b = s == null ? void 0 : s.trend) == null ? void 0 : b.grainSource) === "automatic" ? s.trend.granularity : void 0, u = (v) => n(Hm(t, v).config), m = (v) => n(Jm(t, v === "automatic" ? null : v).config), h = c ? d ? "This KPI counts on no date, so the trend can't show. Turn it off, or drop a date on Trend By." : "This KPI counts on no date. Drop a date on Trend By to show a trend." : d ? l ? "Trend By sets the grain. Remove it to pick one here." : i === "automatic" ? "Follows the period the KPI counts: a different dashboard date changes it." : `Always by ${i}.` : "A line of the value over the period it counts.";
14475
14475
  return (
14476
14476
  // A section like Comparison and Summary: its name and chevron, its switch the first line inside (ledger P5-04).
14477
14477
  /* @__PURE__ */ a(Oe, { value: "kpi-trend", className: "border-none", "data-role": "kpi-trend-settings", children: [
@@ -14489,13 +14489,13 @@ function yx({ card: t }) {
14489
14489
  l ? /* @__PURE__ */ a("div", { className: "flex h-8 items-center justify-between rounded-control border border-border bg-muted/30 px-2.5 text-xs text-foreground/80", children: [
14490
14490
  Hn(l.granularity),
14491
14491
  " · from Trend By",
14492
- /* @__PURE__ */ e(Vd, { className: "h-3 w-3 text-muted-foreground", "aria-hidden": !0 })
14492
+ /* @__PURE__ */ e(_d, { className: "h-3 w-3 text-muted-foreground", "aria-hidden": !0 })
14493
14493
  ] }) : /* @__PURE__ */ a(W, { value: i, onValueChange: m, children: [
14494
14494
  /* @__PURE__ */ e(X, { id: "kpi-trend-grain", className: "h-8 text-xs", children: /* @__PURE__ */ e(Z, {}) }),
14495
14495
  /* @__PURE__ */ a(ee, { children: [
14496
14496
  /* @__PURE__ */ e(K, { value: "automatic", className: "text-xs", children: f ? `Automatic · ${Hn(f)}` : "Automatic" }),
14497
14497
  Yh.map((v) => {
14498
- const N = o ? Gm(o, v) > Hm : !1;
14498
+ const N = o ? Um(o, v) > Gm : !1;
14499
14499
  return /* @__PURE__ */ a(K, { value: v, className: "text-xs", disabled: N && v !== i, children: [
14500
14500
  Hn(v),
14501
14501
  N ? " · too many points" : ""
@@ -14644,7 +14644,7 @@ function Sx({
14644
14644
  }
14645
14645
  return /* @__PURE__ */ a(un, { className: "h-full w-full text-sm", children: [
14646
14646
  l(),
14647
- /* @__PURE__ */ e(Lu, { orientation: "horizontal" })
14647
+ /* @__PURE__ */ e(Ou, { orientation: "horizontal" })
14648
14648
  ] });
14649
14649
  }
14650
14650
  const kx = 32;
@@ -14764,11 +14764,11 @@ function oo({
14764
14764
  listeners: S,
14765
14765
  setNodeRef: x,
14766
14766
  isDragging: b
14767
- } = Bd({
14768
- id: jd(t),
14767
+ } = Vd({
14768
+ id: Bd(t),
14769
14769
  data: { origin: r, field: n }
14770
14770
  }), { setNodeRef: v } = Yl({
14771
- id: Kd(t),
14771
+ id: jd(t),
14772
14772
  data: { kind: "pill", zone: r, pillId: t }
14773
14773
  }), N = it(
14774
14774
  (g) => {
@@ -14795,7 +14795,7 @@ function oo({
14795
14795
  ...S,
14796
14796
  "aria-label": `Drag ${s}`,
14797
14797
  className: G(
14798
- qd,
14798
+ Kd,
14799
14799
  "text-muted-foreground hover:text-foreground"
14800
14800
  ),
14801
14801
  onClick: (g) => g.stopPropagation(),
@@ -14814,7 +14814,7 @@ function oo({
14814
14814
  onClick: (g) => {
14815
14815
  g.stopPropagation(), m(u === "asc" ? "desc" : "asc");
14816
14816
  },
14817
- children: u === "asc" ? /* @__PURE__ */ e($d, { className: "h-3 w-3" }) : /* @__PURE__ */ e(zd, { className: "h-3 w-3" })
14817
+ children: u === "asc" ? /* @__PURE__ */ e(qd, { className: "h-3 w-3" }) : /* @__PURE__ */ e($d, { className: "h-3 w-3" })
14818
14818
  }
14819
14819
  ),
14820
14820
  p && /* @__PURE__ */ e(Bt, { asChild: !0, children: /* @__PURE__ */ e(
@@ -14824,7 +14824,7 @@ function oo({
14824
14824
  "aria-label": "Field configuration",
14825
14825
  className: "inline-flex h-5 w-5 shrink-0 items-center justify-center rounded-[3px] text-muted-foreground hover:bg-muted hover:text-foreground data-[state=open]:bg-muted",
14826
14826
  onClick: (g) => g.stopPropagation(),
14827
- children: /* @__PURE__ */ e(Ud, { className: "h-3 w-3" })
14827
+ children: /* @__PURE__ */ e(zd, { className: "h-3 w-3" })
14828
14828
  }
14829
14829
  ) }),
14830
14830
  /* @__PURE__ */ e(
@@ -15041,7 +15041,7 @@ function Dx({ idx: t }) {
15041
15041
  (o) => o.actions.setCardPreferences
15042
15042
  ), l = (i = n == null ? void 0 : n.chartOptions) == null ? void 0 : i.indexAxis, c = r == null ? void 0 : r.find((o) => o.idx === t);
15043
15043
  function d(o, f) {
15044
- (o === "end" || o === "start") && Ym(Wm());
15044
+ (o === "end" || o === "start") && Qm(Ym());
15045
15045
  const u = {
15046
15046
  display: o !== "none",
15047
15047
  align: o,
@@ -15072,7 +15072,7 @@ function Dx({ idx: t }) {
15072
15072
  }
15073
15073
  }
15074
15074
  return /* @__PURE__ */ a(It, { children: [
15075
- /* @__PURE__ */ e(Bt, { children: /* @__PURE__ */ e(Gd, { className: "size-4 rotate-[135deg] cursor-pointer text-muted-foreground hover:text-foreground" }) }),
15075
+ /* @__PURE__ */ e(Bt, { children: /* @__PURE__ */ e(Ud, { className: "size-4 rotate-[135deg] cursor-pointer text-muted-foreground hover:text-foreground" }) }),
15076
15076
  /* @__PURE__ */ e(At, { className: "w-fit px-2 py-1", children: /* @__PURE__ */ a("div", { className: "flex gap-1", children: [
15077
15077
  /* @__PURE__ */ e(
15078
15078
  "button",
@@ -15331,7 +15331,7 @@ function Rx({
15331
15331
  n,
15332
15332
  r,
15333
15333
  c
15334
- ], f = Hd({
15334
+ ], f = Gd({
15335
15335
  queryKey: o,
15336
15336
  queryFn: async () => {
15337
15337
  if (!(i != null && i.connectionId))
@@ -15365,14 +15365,14 @@ function Rx({
15365
15365
  connection_id: i.connectionId,
15366
15366
  cardConfig: u,
15367
15367
  cardDataSource: i,
15368
- cache_config: Jd({ card: d }),
15368
+ cache_config: Hd({ card: d }),
15369
15369
  calendarContext: c
15370
15370
  };
15371
15371
  console.log("requestBody", m);
15372
15372
  const h = await di(
15373
15373
  `${l.apiServiceUrl}/v1/query`,
15374
15374
  (s == null ? void 0 : s.accessToken) || "",
15375
- Qd(m, Yd())
15375
+ Jd(m, Qd())
15376
15376
  );
15377
15377
  if (h != null && h.error)
15378
15378
  return console.error("Error fetching attribute values:", h.error), [];
@@ -15511,7 +15511,7 @@ function Lx({
15511
15511
  )) })
15512
15512
  ] }),
15513
15513
  i === "fields" && !d ? /* @__PURE__ */ e("div", { className: "flex flex-col", children: /* @__PURE__ */ e(
15514
- Wd,
15514
+ Yd,
15515
15515
  {
15516
15516
  fields: p,
15517
15517
  selectedIds: Ox,
@@ -15628,7 +15628,7 @@ function _x({
15628
15628
  ] })
15629
15629
  ] });
15630
15630
  }
15631
- const Jn = "auto", Qn = Zd;
15631
+ const Jn = "auto", Qn = Xd;
15632
15632
  function Vx({
15633
15633
  format: t,
15634
15634
  column: n,
@@ -15637,25 +15637,25 @@ function Vx({
15637
15637
  automaticPreview: l,
15638
15638
  onChange: c
15639
15639
  }) {
15640
- const d = Xm(t), i = Zm(s), [o, f] = U(d.kind === "custom" ? d.pattern : null), u = d.kind === "automatic", m = i ? "12h" : "24h", h = d.kind === "display" ? d.display.show === "date" ? { ...d.display, clock: m } : d.display : {
15640
+ const d = Wm(t), i = Xm(s), [o, f] = U(d.kind === "custom" ? d.pattern : null), u = d.kind === "automatic", m = i ? "12h" : "24h", h = d.kind === "display" ? d.display.show === "date" ? { ...d.display, clock: m } : d.display : {
15641
15641
  show: r ? "date" : "datetime",
15642
- dateStyle: th,
15642
+ dateStyle: eh,
15643
15643
  clock: m,
15644
15644
  seconds: !1
15645
15645
  }, p = r ? "date" : h.show, w = (v) => c(Dn(v)), S = (v) => {
15646
15646
  var N;
15647
- return (v == null ? void 0 : v.type) === "date" ? (N = eh(n, v, s)) == null ? void 0 : N.message : void 0;
15647
+ return (v == null ? void 0 : v.type) === "date" ? (N = Zm(n, v, s)) == null ? void 0 : N.message : void 0;
15648
15648
  }, x = S(t);
15649
15649
  if (o !== null) {
15650
15650
  const v = d.kind === "custom" ? d.dialect : void 0, N = d.kind === "custom" ? d.pattern : d.kind === "display" ? Dn(h).pattern ?? "" : "";
15651
15651
  return /* @__PURE__ */ e(
15652
- Xd,
15652
+ Wd,
15653
15653
  {
15654
15654
  initial: o,
15655
15655
  saved: N,
15656
15656
  placeholder: "MMM d, yyyy h:mm a",
15657
15657
  hint: "YYYY MMM MM DD · HH mm ss, or yyyy MMM dd · h hh H HH · mm ss · a (AM/PM)",
15658
- read: (g) => ah(g, v),
15658
+ read: (g) => th(g, v),
15659
15659
  problemOf: S,
15660
15660
  onSave: (g) => {
15661
15661
  JSON.stringify(g) !== JSON.stringify(t) && c(g);
@@ -15702,7 +15702,7 @@ function Vx({
15702
15702
  /* @__PURE__ */ e(X, { size: "xs", className: "w-full", children: /* @__PURE__ */ e(Z, { placeholder: d.kind === "preset" ? `Saved style (${d.preset})` : "Select date format..." }) }),
15703
15703
  /* @__PURE__ */ a(ee, { children: [
15704
15704
  (p === "datetime" || r) && /* @__PURE__ */ e(K, { className: "text-xs", value: Jn, children: `Automatic (${l})` }),
15705
- nh.map((v) => /* @__PURE__ */ e(K, { className: "text-xs", value: v.id, children: v.label }, v.id))
15705
+ ah.map((v) => /* @__PURE__ */ e(K, { className: "text-xs", value: v.id, children: v.label }, v.id))
15706
15706
  ] })
15707
15707
  ]
15708
15708
  }
@@ -15784,7 +15784,7 @@ function Kx({
15784
15784
  isLoading: b,
15785
15785
  hasError: v,
15786
15786
  refetch: N
15787
- } = Xl(), { userContext: g } = rn(), { tokenProps: L } = Zt(), F = Zl(g), P = Rl(), V = Bl() ?? ha, D = eu() ?? ha, y = tu(), {
15787
+ } = Xl(), { userContext: g } = rn(), { tokenProps: L } = Zt(), F = Zl(g), P = Rl(), V = Bl() ?? ha, D = Zd() ?? ha, y = eu(), {
15788
15788
  updateLabel: R,
15789
15789
  handleAggregationChange: M,
15790
15790
  handleDetailDateFormatChange: z,
@@ -15833,7 +15833,7 @@ function Kx({
15833
15833
  ]), ke = Ul(
15834
15834
  ce.dataType
15835
15835
  ), Ae = le(
15836
- () => rh({
15836
+ () => nh({
15837
15837
  fieldId: t.id,
15838
15838
  dataType: t.dataType,
15839
15839
  granularity: t.granularity,
@@ -15847,7 +15847,7 @@ function Kx({
15847
15847
  t.granularity,
15848
15848
  t.semanticTemporalPresentation
15849
15849
  ]
15850
- ), ze = n === "groupBy" ? Ae.ok && ke.includes(Ae.granularity) ? Ae.granularity : void 0 : ke.includes(t.granularity) ? t.granularity : "day", Me = n === "groupBy" ? sh({
15850
+ ), ze = n === "groupBy" ? Ae.ok && ke.includes(Ae.granularity) ? Ae.granularity : void 0 : ke.includes(t.granularity) ? t.granularity : "day", Me = n === "groupBy" ? rh({
15851
15851
  cardType: (i == null ? void 0 : i.type) ?? "",
15852
15852
  configBacked: !0,
15853
15853
  shelf: "groupBy",
@@ -15868,13 +15868,13 @@ function Kx({
15868
15868
  Ie(J), n === "metrics" && E(r, J);
15869
15869
  }, uo = (J) => {
15870
15870
  R(n, r, J);
15871
- }, gn = au(t);
15872
- nu(t);
15873
- const Yr = ru(t), xn = t.role === "metric" && Yr, bn = Yr && (gn === "user_calculated" || gn === "inline_expression" && t.fieldScope !== "domain"), kt = bn ? Mh({
15871
+ }, gn = tu(t);
15872
+ au(t);
15873
+ const Yr = nu(t), xn = t.role === "metric" && Yr, bn = Yr && (gn === "user_calculated" || gn === "inline_expression" && t.fieldScope !== "domain"), kt = bn ? Mh({
15874
15874
  field: t,
15875
15875
  sheetFields: (o == null ? void 0 : o.calculatedFields) || [],
15876
15876
  dashboardFields: w
15877
- }) : void 0, Wr = bn && (kt == null ? void 0 : kt.scope) === "sheet", Xr = bn && (kt == null ? void 0 : kt.scope) === "dashboard", xa = gn === "domain_calculated" || t.fieldScope === "domain", Zr = xa ? su(t, S) : void 0, ia = xa ? "domain" : Wr ? "sheet" : Xr ? "dashboard" : "card", _a = xa ? Zr || t : (Wr || Xr) && (kt != null && kt.matchedField) ? kt.matchedField : t, mo = xa ? Zr ? "effective" : b ? "loading" : v ? "unavailable" : "unverified" : void 0, es = (J) => {
15877
+ }) : void 0, Wr = bn && (kt == null ? void 0 : kt.scope) === "sheet", Xr = bn && (kt == null ? void 0 : kt.scope) === "dashboard", xa = gn === "domain_calculated" || t.fieldScope === "domain", Zr = xa ? ru(t, S) : void 0, ia = xa ? "domain" : Wr ? "sheet" : Xr ? "dashboard" : "card", _a = xa ? Zr || t : (Wr || Xr) && (kt != null && kt.matchedField) ? kt.matchedField : t, mo = xa ? Zr ? "effective" : b ? "loading" : v ? "unavailable" : "unverified" : void 0, es = (J) => {
15878
15878
  var Ee;
15879
15879
  if (Te(J), n === "metrics") {
15880
15880
  const je = {
@@ -15893,10 +15893,10 @@ function Kx({
15893
15893
  j(n, r);
15894
15894
  }, vn = xi(
15895
15895
  ce.dataType || t.dataType
15896
- ), ts = vn === "date", yn = d === "kpi", Nn = n === "detailColumns", as = (ps = i.config) == null ? void 0 : ps.metricColumns, ns = (fs = i.config) == null ? void 0 : fs.groupByColumns, rs = lu(i), ss = be((J) => J.dashboard), ls = be(
15896
+ ), ts = vn === "date", yn = d === "kpi", Nn = n === "detailColumns", as = (ps = i.config) == null ? void 0 : ps.metricColumns, ns = (fs = i.config) == null ? void 0 : fs.groupByColumns, rs = su(i), ss = be((J) => J.dashboard), ls = be(
15897
15897
  (J) => J.semanticExecutionPayload
15898
15898
  ), Va = t.nativeDataType || t.dataType, po = le(
15899
- () => n === "detailColumns" ? lh({
15899
+ () => n === "detailColumns" ? sh({
15900
15900
  format: void 0,
15901
15901
  valueKind: zs(Va) ? "date" : "wall_datetime",
15902
15902
  preferences: D,
@@ -15914,10 +15914,10 @@ function Kx({
15914
15914
  [i, rs, ss, ls, P]
15915
15915
  ), ut = le(() => {
15916
15916
  if (n !== "metrics") return;
15917
- const J = ih("metric", as ?? [])[r];
15918
- return J ? oh(i, J, gt) : void 0;
15917
+ const J = lh("metric", as ?? [])[r];
15918
+ return J ? ih(i, J, gt) : void 0;
15919
15919
  }, [i, gt, r, as, n]), He = t, Xe = ((gs = He.comparison) == null ? void 0 : gs.mode) === "explicit" ? He.comparison.spec : void 0, Cn = (xs = He.parameters) == null ? void 0 : xs.windowTransform, ba = !!Cn, xt = le(
15920
- () => Cn && n === "metrics" ? ch(i, He.id, (J) => ({ name: J.name, datasetName: dh(J) })) : void 0,
15920
+ () => Cn && n === "metrics" ? oh(i, He.id, (J) => ({ name: J.name, datasetName: ch(J) })) : void 0,
15921
15921
  [i, He.id, Cn, n]
15922
15922
  ), Pe = xt == null ? void 0 : xt.transform, Mt = (Pe == null ? void 0 : Pe.kind) ?? null, Tt = ut == null ? void 0 : ut.transform, wn = Tt ? Object.values(Tt.kinds).filter((J) => J.offered) : [], Sn = Tt && !wn.length ? Object.values(Tt.kinds).find((J) => !J.offered) : void 0, fo = wn.some(
15923
15923
  (J) => J.offered && J.replaces === "comparison"
@@ -15932,7 +15932,7 @@ function Kx({
15932
15932
  const Co = n !== "pivotBy" && n !== "sortBy", wo = Bx(
15933
15933
  n,
15934
15934
  d
15935
- ), So = t.memberOrder ?? "auto", ko = ts && n === "groupBy", To = !yn && ts && (n === "groupBy" || Nn), Eo = n === "metrics", Fo = !yn && vn === "number" && (n === "groupBy" || Nn) && uh(d), ja = !!(ut && Object.values(ut.comparison).some((J) => J.offered)), Do = () => {
15935
+ ), So = t.memberOrder ?? "auto", ko = ts && n === "groupBy", To = !yn && ts && (n === "groupBy" || Nn), Eo = n === "metrics", Fo = !yn && vn === "number" && (n === "groupBy" || Nn) && dh(d), ja = !!(ut && Object.values(ut.comparison).some((J) => J.offered)), Do = () => {
15936
15936
  const J = t, Ee = n === "metrics" && xn;
15937
15937
  return /* @__PURE__ */ a("div", { className: "space-y-1", children: [
15938
15938
  !Ee && /* @__PURE__ */ e(
@@ -16020,7 +16020,7 @@ function Kx({
16020
16020
  "Automatic · ",
16021
16021
  We
16022
16022
  ] }),
16023
- ke.map((J) => /* @__PURE__ */ e(K, { className: "text-xs", value: J, children: mh(J) }, J))
16023
+ ke.map((J) => /* @__PURE__ */ e(K, { className: "text-xs", value: J, children: uh(J) }, J))
16024
16024
  ] })
16025
16025
  ]
16026
16026
  }
@@ -16494,7 +16494,7 @@ function Kx({
16494
16494
  /* @__PURE__ */ a(
16495
16495
  W,
16496
16496
  {
16497
- value: Fh(He),
16497
+ value: Eh(He),
16498
16498
  disabled: !!He.semanticComparisonPolarity,
16499
16499
  onValueChange: (Q) => oe(
16500
16500
  r,
@@ -16983,13 +16983,13 @@ function ka({
16983
16983
  hasPivotColumns: d = !1
16984
16984
  }) {
16985
16985
  const { setNodeRef: i } = Yl({
16986
- id: iu(n),
16986
+ id: lu(n),
16987
16987
  data: {
16988
16988
  kind: "shelf",
16989
16989
  zone: n,
16990
16990
  pillIds: r.map((g) => g.id)
16991
16991
  }
16992
- }), o = Uo(n), { updateSortByColumn: f } = ve(), u = I((g) => g.card), m = I((g) => g.card.type), h = r.length > 0, p = o !== null, w = (o == null ? void 0 : o.kind) !== "refused", S = (o == null ? void 0 : o.kind) === "refused" ? ou(o.notice, s) : null, x = it((g, L) => {
16992
+ }), o = Uo(n), { updateSortByColumn: f } = ve(), u = I((g) => g.card), m = I((g) => g.card.type), h = r.length > 0, p = o !== null, w = (o == null ? void 0 : o.kind) !== "refused", S = (o == null ? void 0 : o.kind) === "refused" ? iu(o.notice, s) : null, x = it((g, L) => {
16993
16993
  var P;
16994
16994
  !((P = u.config) != null && P.sortByColumns) || u.config.sortByColumns.findIndex(
16995
16995
  (V) => V.id === g
@@ -17094,15 +17094,15 @@ function Qx({
17094
17094
  var f, u;
17095
17095
  const { data: s } = tt(t), l = s == null ? void 0 : s.metadata, c = Ph(
17096
17096
  l == null ? void 0 : l.dateContext,
17097
- n ? Dh(l == null ? void 0 : l.comparisonMetadata, n) : void 0
17098
- ), d = s == null ? void 0 : s.records, i = ((f = hh({ renderCard: t, records: d, metadata: l }).trend) == null ? void 0 : f.points.length) ?? 0, o = ((u = t.config) == null ? void 0 : u.kpiBand) === "trend" ? Xh(l == null ? void 0 : l.trend, i) : void 0;
17097
+ n ? Fh(l == null ? void 0 : l.comparisonMetadata, n) : void 0
17098
+ ), d = s == null ? void 0 : s.records, i = ((f = mh({ renderCard: t, records: d, metadata: l }).trend) == null ? void 0 : f.points.length) ?? 0, o = ((u = t.config) == null ? void 0 : u.kpiBand) === "trend" ? Xh(l == null ? void 0 : l.trend, i) : void 0;
17099
17099
  return /* @__PURE__ */ e(pe, { children: r(c, o) });
17100
17100
  }
17101
17101
  function Yx({ view: t, trend: n }) {
17102
17102
  const r = be((l) => l.dashboard), s = Rh(t, {
17103
17103
  cardTitle: (l) => {
17104
17104
  var c;
17105
- return r ? (c = Ih(r, l)) == null ? void 0 : c.title : void 0;
17105
+ return r ? (c = Dh(r, l)) == null ? void 0 : c.title : void 0;
17106
17106
  }
17107
17107
  });
17108
17108
  return /* @__PURE__ */ e(Wx, { words: s, trend: n });
@@ -17112,7 +17112,7 @@ function Wx({ words: t, trend: n }) {
17112
17112
  /* @__PURE__ */ e("div", { className: Jx, children: "Date" }),
17113
17113
  /* @__PURE__ */ a("div", { className: "rounded-control border border-border bg-muted/20 text-[12px]", children: [
17114
17114
  /* @__PURE__ */ a("div", { className: "flex items-start gap-2 border-b border-border/70 px-2.5 py-2", children: [
17115
- /* @__PURE__ */ e(cu, { className: "mt-0.5 h-3.5 w-3.5 shrink-0 text-muted-foreground", "aria-hidden": !0 }),
17115
+ /* @__PURE__ */ e(ou, { className: "mt-0.5 h-3.5 w-3.5 shrink-0 text-muted-foreground", "aria-hidden": !0 }),
17116
17116
  t.field ? /* @__PURE__ */ a("div", { className: "min-w-0", children: [
17117
17117
  /* @__PURE__ */ e("div", { className: "truncate font-medium", children: t.field.name }),
17118
17118
  /* @__PURE__ */ e("div", { className: "text-[11px] text-muted-foreground", children: t.field.from })
@@ -17181,7 +17181,7 @@ function Zx({
17181
17181
  }
17182
17182
  ), w = la(m, p) === "multiple";
17183
17183
  w && ((Y = m == null ? void 0 : m.customCardPreferences) != null && Y.url);
17184
- const S = ph(p == null ? void 0 : p.slots);
17184
+ const S = hh(p == null ? void 0 : p.slots);
17185
17185
  I(
17186
17186
  (te) => te.actions.updateCardConfig
17187
17187
  );
@@ -17264,7 +17264,7 @@ function Zx({
17264
17264
  onClick: () => o(!0),
17265
17265
  className: "mt-1.5 w-full justify-start border-border/60 border-dashed bg-background text-xs text-foreground/70 hover:bg-muted/40 hover:text-foreground",
17266
17266
  children: [
17267
- /* @__PURE__ */ e(du, { className: "mr-2 h-4 w-4" }),
17267
+ /* @__PURE__ */ e(cu, { className: "mr-2 h-4 w-4" }),
17268
17268
  "Create Metric"
17269
17269
  ]
17270
17270
  }
@@ -17540,7 +17540,7 @@ function tb({ onEditJoins: t }) {
17540
17540
  onClick: t,
17541
17541
  className: "inline-flex h-5 w-5 shrink-0 items-center justify-center rounded-control text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus:outline-none focus-visible:border-ring",
17542
17542
  "aria-label": "Edit resolved joins",
17543
- children: /* @__PURE__ */ e(uu, { className: "h-3 w-3", strokeWidth: 1.75 })
17543
+ children: /* @__PURE__ */ e(du, { className: "h-3 w-3", strokeWidth: 1.75 })
17544
17544
  }
17545
17545
  )
17546
17546
  ] });
@@ -17602,7 +17602,7 @@ function ab({
17602
17602
  "aria-label": "Hide chart configuration",
17603
17603
  onClick: c,
17604
17604
  className: "h-7 w-7 rounded-[5px] p-0 text-muted-foreground hover:text-foreground",
17605
- children: /* @__PURE__ */ e(mu, { className: "h-4 w-4", strokeWidth: 1.75 })
17605
+ children: /* @__PURE__ */ e(uu, { className: "h-4 w-4", strokeWidth: 1.75 })
17606
17606
  }
17607
17607
  ) })
17608
17608
  ] }),
@@ -17681,7 +17681,7 @@ function nb({
17681
17681
  /* @__PURE__ */ e(Ut, { className: "sr-only", children: "Add filters to the card to limit the data that is displayed." })
17682
17682
  ] }),
17683
17683
  /* @__PURE__ */ e(
17684
- Sh,
17684
+ wh,
17685
17685
  {
17686
17686
  filters: n,
17687
17687
  availableFields: l,
@@ -17706,7 +17706,7 @@ function rb({
17706
17706
  placeField: n,
17707
17707
  previewFieldPlacement: r
17708
17708
  }) {
17709
- const [s] = U(hu), l = Ve(null), c = it(() => {
17709
+ const [s] = U(mu), l = Ve(null), c = it(() => {
17710
17710
  l.current = null, s.set(null);
17711
17711
  }, [s]), d = it((u) => {
17712
17712
  c();
@@ -17914,8 +17914,8 @@ function hb({
17914
17914
  effectiveCardType: n = t.type,
17915
17915
  queryResultColumns: r
17916
17916
  }) {
17917
- return Mr(n) ? /* @__PURE__ */ a(pu, { modal: !1, children: [
17918
- /* @__PURE__ */ e(fu, { asChild: !0, children: /* @__PURE__ */ e(
17917
+ return Mr(n) ? /* @__PURE__ */ a(hu, { modal: !1, children: [
17918
+ /* @__PURE__ */ e(pu, { asChild: !0, children: /* @__PURE__ */ e(
17919
17919
  nt,
17920
17920
  {
17921
17921
  tooltip: "Table settings",
@@ -17928,14 +17928,14 @@ function hb({
17928
17928
  }
17929
17929
  ) }),
17930
17930
  /* @__PURE__ */ a(
17931
- gu,
17931
+ fu,
17932
17932
  {
17933
17933
  side: "right",
17934
17934
  hideOverlay: !0,
17935
17935
  className: "flex w-[420px] flex-col gap-0 p-0 sm:max-w-[420px]",
17936
17936
  children: [
17937
- /* @__PURE__ */ e(xu, { className: "sr-only", children: "Table settings" }),
17938
- /* @__PURE__ */ e(bu, { className: "sr-only", children: "Configure table presentation and conditional formatting." }),
17937
+ /* @__PURE__ */ e(gu, { className: "sr-only", children: "Table settings" }),
17938
+ /* @__PURE__ */ e(xu, { className: "sr-only", children: "Configure table presentation and conditional formatting." }),
17939
17939
  /* @__PURE__ */ a("div", { className: "border-b px-4 py-3", children: [
17940
17940
  /* @__PURE__ */ e("div", { className: "text-[13px] font-semibold text-foreground", children: "Table settings" }),
17941
17941
  /* @__PURE__ */ e("div", { className: "mt-0.5 text-[11px] text-muted-foreground", children: "Settings apply to this table and document exports that reuse it." })
@@ -17957,7 +17957,7 @@ function pb({
17957
17957
  className: t,
17958
17958
  visible: n
17959
17959
  }) {
17960
- const r = be((i) => i.selectedFrameId), s = vu((i) => i.selectedVisual), l = I((i) => i.frame), d = !!!(l != null && l.visualId || s != null && s.id) && !!r;
17960
+ const r = be((i) => i.selectedFrameId), s = bu((i) => i.selectedVisual), l = I((i) => i.frame), d = !!!(l != null && l.visualId || s != null && s.id) && !!r;
17961
17961
  return !n || d ? null : /* @__PURE__ */ e("div", { className: G("flex", t), children: /* @__PURE__ */ e(
17962
17962
  yi,
17963
17963
  {
@@ -18061,8 +18061,8 @@ function fb({
18061
18061
  });
18062
18062
  }, ge = le(() => {
18063
18063
  var fe;
18064
- return yu((fe = l.config) == null ? void 0 : fe.sortByColumns);
18065
- }, [(Qe = l.config) == null ? void 0 : Qe.sortByColumns]), Fe = Nu(
18064
+ return vu((fe = l.config) == null ? void 0 : fe.sortByColumns);
18065
+ }, [(Qe = l.config) == null ? void 0 : Qe.sortByColumns]), Fe = yu(
18066
18066
  Xa(s) || null
18067
18067
  );
18068
18068
  return /* @__PURE__ */ e("div", { className: "relative flex w-0 grow flex-col", children: /* @__PURE__ */ a("div", { className: "group/visualization relative flex h-full max-w-full grow flex-col", children: [
@@ -18079,23 +18079,23 @@ function fb({
18079
18079
  ) }),
18080
18080
  y === "kpi" && /* @__PURE__ */ e(pb, { visible: !0, className: "self-center" }),
18081
18081
  T && l.type !== "table" && /* @__PURE__ */ e(
18082
- Cu,
18082
+ Nu,
18083
18083
  {
18084
18084
  metadata: T
18085
18085
  }
18086
18086
  )
18087
18087
  ] }),
18088
18088
  /* @__PURE__ */ a("div", { className: "flex grow items-center justify-end gap-1", children: [
18089
- !wu(y) && /* @__PURE__ */ e(ib, {}),
18089
+ !Cu(y) && /* @__PURE__ */ e(ib, {}),
18090
18090
  /* @__PURE__ */ e(
18091
- Su,
18091
+ wu,
18092
18092
  {
18093
18093
  cardId: s.id,
18094
18094
  cardFilters: Xa(s),
18095
18095
  cardFilterCount: Fe,
18096
18096
  onFiltersClick: r,
18097
- inlineFilters: gh(s),
18098
- inlineFilterValues: fh(s, c),
18097
+ inlineFilters: fh(s),
18098
+ inlineFilterValues: ph(s, c),
18099
18099
  sheetId: i || "",
18100
18100
  removeInlineFilterValue: (fe) => d(s.id, fe),
18101
18101
  resolvedPrimaryDateField: A
@@ -18309,7 +18309,7 @@ function gb({ activeField: t }) {
18309
18309
  );
18310
18310
  }
18311
18311
  function xb() {
18312
- const { active: t } = ku(), n = t == null ? void 0 : t.data.current;
18312
+ const { active: t } = Su(), n = t == null ? void 0 : t.data.current;
18313
18313
  return /* @__PURE__ */ e(gb, { activeField: (n == null ? void 0 : n.field) ?? null });
18314
18314
  }
18315
18315
  const bb = () => {
@@ -18376,7 +18376,7 @@ function vb() {
18376
18376
  activeCardId: h.activeCardId,
18377
18377
  placeField: D,
18378
18378
  previewFieldPlacement: y
18379
- }), E = le(() => Tu(), []), A = (ae, ue) => {
18379
+ }), E = le(() => ku(), []), A = (ae, ue) => {
18380
18380
  ue && v(ae, ue);
18381
18381
  }, j = (ae) => {
18382
18382
  N(ae);
@@ -18466,13 +18466,13 @@ function vb() {
18466
18466
  }
18467
18467
  )
18468
18468
  ] }),
18469
- /* @__PURE__ */ e(Eu, { dropAnimation: null, children: /* @__PURE__ */ e(xb, {}) })
18469
+ /* @__PURE__ */ e(Tu, { dropAnimation: null, children: /* @__PURE__ */ e(xb, {}) })
18470
18470
  ]
18471
18471
  }
18472
18472
  );
18473
18473
  }
18474
18474
  function yb({ authToken: t, onSave: n, onClose: r }) {
18475
- const s = I((u) => u.isDevMode), l = br(), { setAuthToken: c } = Fu(), { setOnSave: d, setOnClose: i } = ve();
18475
+ const s = I((u) => u.isDevMode), l = br(), { setAuthToken: c } = Eu(), { setOnSave: d, setOnClose: i } = ve();
18476
18476
  Ce(() => {
18477
18477
  n && d(n), r && i(r);
18478
18478
  }, [n, d, r, i]), Ce(() => {
@@ -18504,7 +18504,7 @@ function yb({ authToken: t, onSave: n, onClose: r }) {
18504
18504
  }
18505
18505
  return (
18506
18506
  // Everything the editor renders is its preview (tech spec M7).
18507
- /* @__PURE__ */ e(Du, { children: /* @__PURE__ */ e(ln, { FallbackComponent: Iu, children: s ? /* @__PURE__ */ e(
18507
+ /* @__PURE__ */ e(Fu, { children: /* @__PURE__ */ e(ln, { FallbackComponent: Du, children: s ? /* @__PURE__ */ e(
18508
18508
  "section",
18509
18509
  {
18510
18510
  className: "isolate flex h-full grow",
@@ -18527,7 +18527,7 @@ function Yb() {
18527
18527
  be((p) => p.selectedCardId);
18528
18528
  const t = be((p) => p.selectedSheetId), n = be((p) => p.dashboard), { setIsVisualEditing: r, setSelectedSheetId: s } = be(
18529
18529
  (p) => p.actions
18530
- ), l = I((p) => p.editorContext), { clearEditorContext: c } = I((p) => p.actions), d = Au(), i = br(), o = be((p) => p.isVisualEditing), f = be((p) => p.actions.updateFrame), u = Mu();
18530
+ ), l = I((p) => p.editorContext), { clearEditorContext: c } = I((p) => p.actions), d = Iu(), i = br(), o = be((p) => p.isVisualEditing), f = be((p) => p.actions.updateFrame), u = Au();
18531
18531
  async function m(p) {
18532
18532
  var v, N, g;
18533
18533
  if ((l == null ? void 0 : l.type) === "documentSection") {
@@ -18546,7 +18546,7 @@ function Yb() {
18546
18546
  }
18547
18547
  )) == null ? void 0 : g.id, x = w ? t : S || null;
18548
18548
  if (!x) return;
18549
- const b = xh(n, p.id);
18549
+ const b = gh(n, p.id);
18550
18550
  try {
18551
18551
  const L = await u(p, {
18552
18552
  previousFrame: b