react-semaphor 0.1.542 → 0.1.544

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 (66) hide show
  1. package/dist/activity/index.js +73 -0
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/briefings/index.js +51 -50
  4. package/dist/chunks/{apply-dashboard-operations-Btbp2-6v.js → apply-dashboard-operations-Bz4n1Lq6.js} +44 -44
  5. package/dist/chunks/{assistant-chat-oHF5lTjA.js → assistant-chat-BNLkCDml.js} +288 -288
  6. package/dist/chunks/{comparison-window-caption-ChIyd_-L.js → comparison-window-caption-BTkrN3W4.js} +468 -463
  7. package/dist/chunks/dashboard-briefing-launcher-DQ_8O_e2.js +3725 -0
  8. package/dist/chunks/{dashboard-controls-CIn22Qgp.js → dashboard-controls-8RyBTQUO.js} +530 -525
  9. package/dist/chunks/dashboard-g5a4DKWq.js +14 -0
  10. package/dist/chunks/{dashboard-json-ZUYsIExq.js → dashboard-json-7qT9jmfL.js} +1 -1
  11. package/dist/chunks/{document-dashboard-inputs-C6MJVyoI.js → document-dashboard-inputs-BC6p-ESg.js} +4 -4
  12. package/dist/chunks/{document-sheet-utils-BsZUnHRl.js → document-sheet-utils-Duo9uLoH.js} +11 -11
  13. package/dist/chunks/{edit-dashboard-visual-DLdereA7.js → edit-dashboard-visual-BfJwnRIZ.js} +249 -248
  14. package/dist/chunks/export-file-format-C-tJsxsf.js +111 -0
  15. package/dist/chunks/{index-CV5rHq5D.js → index-DkAyQvC6.js} +59 -58
  16. package/dist/chunks/{matrix-formatter-BnsTX90d.js → matrix-formatter-CxJLkztA.js} +1 -1
  17. package/dist/chunks/{numeric-presentation-BSAqPpHt.js → numeric-presentation-DESvLiu9.js} +1 -1
  18. package/dist/chunks/{pivot-result-lifecycle-BBlAfBA0.js → pivot-result-lifecycle-DM4CyGKs.js} +287 -395
  19. package/dist/chunks/{raw-temporal-presentation-CZ2r0Vb_.js → raw-temporal-presentation-CLiVi90c.js} +2 -2
  20. package/dist/chunks/{report-preferences-dialog-MRUWpMcJ.js → report-preferences-dialog-Df7VpRVW.js} +195 -195
  21. package/dist/chunks/{saved-dashboard-context-DjPqgFly.js → saved-dashboard-context-B-mQ--nV.js} +3 -3
  22. package/dist/chunks/{semaphor-ready-indicator-BWSpRsPj.js → semaphor-ready-indicator-DDAxk8us.js} +39892 -39380
  23. package/dist/chunks/{shelf-drop-preview-context-CQbFLm3q.js → shelf-drop-preview-context-BSRPwaED.js} +414 -371
  24. package/dist/chunks/{table-export-sheet-BHSnuZHd.js → table-export-sheet-CPfGAQ9X.js} +1 -1
  25. package/dist/chunks/{use-create-flow-overlay-state-BJDNqdOh.js → use-create-flow-overlay-state-BxzFviM-.js} +67 -78
  26. package/dist/dashboard/index.js +1 -1
  27. package/dist/dashboard-authoring/index.js +72 -72
  28. package/dist/data-app-sdk/index.js +1 -1
  29. package/dist/format-utils/index.js +226 -223
  30. package/dist/index.js +266 -271
  31. package/dist/style.css +1 -1
  32. package/dist/surfboard/index.js +1 -1
  33. package/dist/types/activity.d.ts +2 -0
  34. package/dist/types/components/activity/activity-bell.d.ts +11 -0
  35. package/dist/types/components/activity/activity-instance.d.ts +50 -0
  36. package/dist/types/components/activity/activity-notices.d.ts +7 -0
  37. package/dist/types/components/activity/activity-provider.d.ts +21 -0
  38. package/dist/types/components/activity/activity-types.d.ts +177 -0
  39. package/dist/types/components/activity/index.d.ts +6 -0
  40. package/dist/types/components/activity/use-activity.d.ts +20 -0
  41. package/dist/types/components/briefings/briefing-author/run-model.d.ts +1 -2
  42. package/dist/types/components/briefings/briefing-author.d.ts +14 -12
  43. package/dist/types/components/briefings/dashboard-briefing-launcher.d.ts +5 -0
  44. package/dist/types/components/briefings/use-briefing-run-detail.d.ts +34 -0
  45. package/dist/types/components/index.d.ts +1 -4
  46. package/dist/types/lib/activity-identity.d.ts +21 -0
  47. package/dist/types/lib/api/exports-api.d.ts +4 -4
  48. package/dist/types/lib/hooks/index.d.ts +1 -3
  49. package/dist/types/lib/matrix-table/matrix-delivery.d.ts +4 -0
  50. package/dist/types/shared/activity/activity-contract.d.ts +84 -0
  51. package/dist/types/shared/activity/index.d.ts +5 -0
  52. package/dist/types/shared/dashboard-authoring/card-export-request.d.ts +6 -0
  53. package/dist/types/shared/format-utils/export-policy.d.ts +12 -0
  54. package/package.json +5 -1
  55. package/dist/chunks/dashboard-briefing-launcher-B-cm719R.js +0 -4248
  56. package/dist/chunks/dashboard-s5WJBcK8.js +0 -14
  57. package/dist/types/components/briefings/briefing-author/run-ui.d.ts +0 -81
  58. package/dist/types/components/briefings/use-briefing-run-polling.d.ts +0 -34
  59. package/dist/types/components/notifications/export-notification-item.d.ts +0 -24
  60. package/dist/types/components/notifications/export-notification-list.d.ts +0 -8
  61. package/dist/types/components/notifications/index.d.ts +0 -3
  62. package/dist/types/components/notifications/notification-bell.d.ts +0 -13
  63. package/dist/types/lib/exports/bounded-request.d.ts +0 -12
  64. package/dist/types/lib/hooks/use-export-polling.d.ts +0 -32
  65. package/dist/types/lib/hooks/use-export-recovery.d.ts +0 -11
  66. package/dist/types/lib/stores/export-store.d.ts +0 -62
@@ -1,34 +1,35 @@
1
1
  import { jsx as e, jsxs as n, Fragment as pe } from "react/jsx-runtime";
2
2
  import * as mn from "react";
3
3
  import hn, { useState as U, useEffect as Se, useMemo as X, useRef as Le, useCallback as ot, useId as Ba, useContext as Or, Suspense as jc } from "react";
4
- import { F as Kc, P as zc, a as Uc, b as co, u as ct, S as bl, c as vl, r as uo, E as Gc, T as Hc, d as pn, e as Jc, f as Qc, g as Wc } from "./shelf-drop-preview-context-CQbFLm3q.js";
4
+ import { F as Kc, P as zc, a as Uc, b as co, u as ct, S as bl, c as vl, r as uo, E as Gc, T as Hc, A as Jc, d as Qc, e as pn, f as Wc, g as Zc, h as Xc } from "./shelf-drop-preview-context-BSRPwaED.js";
5
5
  import "./index-CuHybtft.js";
6
- import { l as mo, a2 as Zc, R as yl, aI as Xc, w as fn, aO as Jn, x as ho } from "./validators-DMHTpf7a.js";
6
+ import { l as mo, a2 as ed, R as yl, aI as td, w as fn, aO as Jn, x as ho } from "./validators-DMHTpf7a.js";
7
7
  import "./matrix-operation-contract-8OIO4gob.js";
8
8
  import "./analytics-base-schemas-BFAoRlkU.js";
9
9
  import "zod";
10
10
  import { DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as $a } from "../value-format-preferences/index.js";
11
11
  import { c as G } from "./class-utils-Df1OVOT1.js";
12
- import { dw as po, dx as qa, cV as ja, dy as Ar, dz as Wa, dA as ed, _ as Ce, dB as td, bu as Bt, bv as $t, bw as ta, bx as qt, by as zt, bt as Ka, aF as wt, aG as kt, dC as Ge, dD as fo, dE as on, aR as gt, cX as Rr, dF as Da, aI as Za, Z as A, aU as yt, dG as go, aX as Yt, u as ge, bT as Pr, dH as ad, dI as xo, dJ as nd, dK as rd, dL as sd, bU as bo, dM as ld, dN as kn, dq as vo, dO as od, c$ as yo, ch as Lr, cj as id, ck as cd, cl as dd, cm as ud, cn as md, co as hd, cp as pd, cq as fd, aV as Yr, aT as na, dP as No, dQ as gd, b8 as Va, dR as Co, bp as Tn, dS as _r, bB as Dn, bI as xd, cH as bd, cO as xr, aM as ra, aN as sa, aO as la, cL as Vr, dT as Br, X as wo, dU as $r, dV as vd, dW as yd, dX as So, de as ko, dY as Nd, dZ as Cd, d_ as _t, d$ as wd, e0 as Sd, ba as kd, e1 as Td, e2 as Dd, e3 as To, z as Do, M as Md, e4 as Fd, e5 as Ed, dj as Id, e6 as qr, e7 as Od, e8 as Ad, e9 as Nl, ea as Rd, E as Mn, d as jr, eb as Mo, ec as Pd, ed as Cl, ee as Ld, ef as Fo, eg as Yd, eh as _d, ei as Vd, ej as wl, ek as Bd, el as $d, em as qd, en as jd, eo as Kd, ep as gn, eq as zd, er as Ud, es as Eo, et as Io, eu as Gd, ev as Hd, cD as Jd, ew as Qd, ex as Oo, ey as Wd, dg as Zd, cE as Fn, ez as En, c5 as Kr, c6 as zr, c7 as Ur, eA as Xd, eB as xa, eC as eu, eD as wa, eE as za, eF as Ua, eG as Ga, aS as tu, b9 as au, eH as nu, eI as ru, eJ as su, eK as Sl, eL as lu, eM as Ao, eN as Ro, aW as Po, aY as ou, b0 as iu, b1 as cu, aZ as du, a_ as uu, eO as mu, eP as hu, eQ as pu, eR as fu, eS as kl, b3 as gu, b4 as xu, eT as bu, eU as Lo, eV as ba, eW as va, eX as ya, cT as Sa, cb as Yo, bR as Pt, cf as Tl, cc as Dl, cd as br, eY as _o, eZ as vu, e_ as yu, e$ as Nu, f0 as Cu, f1 as In, f2 as qe, f3 as je, f4 as Ke, dl as wu, dm as Su, f5 as ku, f6 as Tu, f7 as Vo, f8 as Bo, f9 as Du, fa as Mu, fb as $o, fc as Ml, fd as qo, fe as Fu, ff as vr, fg as Eu, fh as Iu, fi as Ou, fj as Au, fk as Ru, fl as Pu, fm as Lu, fn as Yu, fo as _u, fp as Vu, fq as Bu, fr as Qt, fs as Oa, ft as $u, fu as Fl, fv as qu, fw as ju, fx as Qn, fy as El, fz as Ku, fA as zu, fB as Uu, fC as Gu, bq as Gr, br as Ha, fD as Wn, fE as jo, fF as Hu, fG as Ju, fH as Qu, fI as Wu, fJ as Ko, fK as zo, fL as Zu, fM as Xu, fN as Uo, fO as em, fP as tm, fQ as Go, dh as am, di as nm, cF as rm, fR as sm, dk as lm, fS as om, fT as Ho, cU as Hr, fU as Jo, fV as Qo, fW as im, fX as cm, fY as dm, fZ as um, f_ as mm, f$ as hm, g0 as pm, g1 as fm, g2 as gm, g3 as xm, g4 as bm, g5 as Jr, g6 as Wo, g7 as Zo, g8 as cn, g9 as Xo, ga as ei, gb as Il, gc as vm, gd as ym, ge as Nm, ds as Cm, gf as wm, gg as Ol, gh as ti, gi as Sm, bs as km, gj as Tm, gk as Dm, gl as Na, gm as ai, gn as Mm, go as Fm, gp as Em, gq as Im, gr as Om, gs as Am, gt as xn, gu as Xt, gv as yr, gw as Nr, gx as bn, gy as ni, gz as ri, gA as si, b5 as Rm, gB as Al, d1 as Pm, gC as Lm, d2 as Ym, d4 as _m, d5 as Vm, f as Bm, gD as $m, gE as qm, gF as jm, gG as Km, gH as zm, gI as Um, gJ as Gm, dr as Hm, F as Jm, gK as Qm, cJ as Wm } from "./semaphor-ready-indicator-BWSpRsPj.js";
13
- import { B as ee, k as vn, f as On, l as _, r as ae, s as ne, t as re, u as se, v as K, p as ht, m as vt, n as pt, o as ft, q as De, j as Qr, a0 as Zm, P as Nt, a as Dt, b as Ct, a1 as Xm, L as Ma, C as aa, T as Ut, d as Gt, e as at, g as Ot, c as oa, I as ka, a2 as eh, a3 as th, S as yn, a4 as Cr, a5 as li, w as Ee, a6 as ah, R as Rl, i as oi, a7 as nh } from "./switch-C3jLxlG0.js";
12
+ import { dA as po, dB as qa, d2 as ja, dC as Ar, dD as Wa, dE as ad, Z as Ce, dF as nd, bu as Bt, bv as $t, bw as ta, bx as qt, by as zt, bt as Ka, aE as wt, aF as kt, dG as Ge, dH as fo, dI as on, aQ as gt, d4 as Rr, dJ as Da, aH as Za, Y as A, aU as yt, dK as go, aX as Yt, u as ge, bT as Pr, dL as rd, dM as xo, dN as sd, dO as ld, dP as od, bU as bo, dQ as id, dR as kn, du as vo, dS as cd, d8 as yo, ch as Lr, cj as dd, ck as ud, cl as md, cm as hd, cn as pd, co as fd, cp as gd, cq as xd, aV as Yr, aT as na, dT as No, dU as bd, b8 as Va, dV as Co, bp as Tn, dW as _r, bB as Dn, bI as vd, cH as yd, cR as xr, aL as ra, aM as sa, aN as la, aR as Nd, cL as Vr, dX as Br, W as wo, dY as $r, dZ as Cd, d_ as wd, d$ as So, di as ko, e0 as Sd, e1 as kd, e2 as _t, e3 as Td, e4 as Dd, ba as Md, e5 as Fd, e6 as Ed, e7 as To, z as Do, M as Id, cX as Od, e8 as Ad, dn as Rd, e9 as qr, ea as Pd, eb as Ld, ec as Nl, ed as Yd, E as Mn, d as jr, ee as Mo, ef as _d, eg as Cl, eh as Vd, ei as Fo, ej as Bd, ek as $d, el as qd, em as wl, en as jd, eo as Kd, ep as zd, eq as Ud, er as Gd, es as gn, et as Hd, eu as Jd, ev as Eo, ew as Io, ex as Qd, ey as Wd, cD as Zd, ez as Xd, eA as Oo, eB as eu, dk as tu, cE as Fn, eC as En, c5 as Kr, c6 as zr, c7 as Ur, eD as au, eE as xa, eF as nu, eG as wa, eH as za, eI as Ua, eJ as Ga, aS as ru, b9 as su, eK as lu, eL as ou, eM as iu, eN as Sl, eO as cu, eP as Ao, eQ as Ro, aW as Po, aY as du, b0 as uu, b1 as mu, aZ as hu, a_ as pu, eR as fu, eS as gu, eT as xu, eU as bu, eV as kl, b3 as vu, b4 as yu, eW as Nu, eX as Lo, eY as ba, eZ as va, e_ as ya, d0 as Sa, cb as Yo, bR as Pt, cf as Tl, cc as Dl, cd as br, e$ as _o, f0 as Cu, f1 as wu, f2 as Su, f3 as ku, f4 as In, f5 as qe, f6 as je, f7 as Ke, dq as Tu, dr as Du, f8 as Vo, f9 as Bo, fa as Mu, fb as Fu, fc as $o, fd as Ml, fe as qo, ff as Eu, fg as vr, fh as Iu, fi as Ou, fj as Au, fk as Ru, fl as Pu, fm as Lu, fn as Yu, fo as _u, fp as Vu, fq as Bu, fr as $u, fs as Qt, ft as Oa, fu as qu, fv as Fl, fw as ju, fx as Ku, fy as Qn, fz as El, fA as zu, fB as Uu, fC as Gu, fD as Hu, bq as Gr, br as Ha, fE as Wn, fF as jo, fG as Ju, fH as Qu, fI as Wu, fJ as Zu, fK as Ko, fL as zo, fM as Xu, fN as em, fO as Uo, fP as tm, fQ as am, fR as Go, dl as nm, dm as rm, cF as sm, fS as lm, dp as om, fT as im, fU as Ho, d1 as Hr, fV as Jo, fW as Qo, fX as cm, fY as dm, fZ as um, f_ as mm, f$ as hm, g0 as pm, g1 as fm, g2 as gm, g3 as xm, g4 as bm, g5 as vm, g6 as Jr, g7 as Wo, g8 as Zo, g9 as cn, ga as Xo, gb as ei, gc as Il, gd as ym, ge as Nm, gf as Cm, dw as wm, gg as Sm, gh as Ol, gi as ti, gj as km, bs as Tm, gk as Dm, gl as Mm, gm as Na, gn as ai, go as Fm, gp as Em, gq as Im, gr as Om, gs as Am, gt as Rm, gu as xn, gv as Xt, gw as yr, gx as Nr, gy as bn, gz as ni, gA as ri, gB as si, b5 as Pm, gC as Al, da as Lm, gD as Ym, db as _m, dd as Vm, de as Bm, f as $m, gE as qm, gF as jm, gG as Km, gH as zm, gI as Um, gJ as Gm, gK as Hm, dv as Jm, F as Qm, gL as Wm, cJ as Zm } from "./semaphor-ready-indicator-DDAxk8us.js";
13
+ import { B as ee, k as vn, f as On, l as _, r as ae, s as ne, t as re, u as se, v as K, p as ht, m as vt, n as pt, o as ft, q as De, j as Qr, a0 as Xm, P as Nt, a as Dt, b as Ct, a1 as eh, L as Ma, C as aa, T as Ut, d as Gt, e as at, g as Ot, c as oa, I as ka, a2 as th, a3 as ah, S as yn, a4 as Cr, a5 as li, w as Ee, a6 as nh, R as Rl, i as oi, a7 as rh } from "./switch-C3jLxlG0.js";
14
14
  import { U as ii } from "./upload-BFX7apKV.js";
15
15
  import { c as Be, C as At, X as Ve } from "./x-4f5U2XwU.js";
16
- import { E as Ja, C as Tt, S as Wr, M as rh, a as sh } from "./selection-reducer-Dj_8xD69.js";
17
- import { ay as lh, ae as mt, az as oh, aA as ih, aB as Zr, aC as Ta, aD as ch, aE as Pl, aF as dh, aG as uh, aH as Ll, af as Fa, ap as Xr, n as mh, C as hh, aI as ci, a0 as ph, $ as Zn, aJ as es, aK as rn, ag as fh, A as di, j as gh, D as xh, h as wr, k as dn, H as ui, G as bh, E as vh, aL as yh, aM as Nh, aN as Ch, aO as wh, aP as mi, aQ as Sh, aR as kh, aw as Qa, ah as Th, aS as hi, au as Dh, av as Mh, l as Fh, aT as pi, aU as ts } from "./numeric-presentation-BSAqPpHt.js";
18
- import { D as Eh } from "./token-types-DBbZVQsm.js";
19
- import { al as fi, am as Ih, a as Oh, an as Ah, a9 as gi, ao as Rh, ap as Ph, aq as Lh, ar as Yh, as as _h, at as Vh, au as Bh, av as xi, M as $h, ae as qh, aw as jh, ax as Kh, ay as zh, az as Uh, a5 as Gh, a6 as Hh, D as jt, aA as St, aB as Lt, aC as Jh, aD as Qh, aE as Wh, aF as Zh, aG as Xh, aH as ep, aI as tp, aJ as Yl, aK as ap, aL as Xn, aM as np, aN as rp, aO as sp, ad as lp } from "./document-dashboard-inputs-C6MJVyoI.js";
20
- import { b as op, F as ip, c as cp, V as bi, I as it, u as dp, C as up } from "./use-create-flow-overlay-state-BJDNqdOh.js";
21
- import { N as as, g as mp, v as hp, w as pp } from "./apply-dashboard-operations-Btbp2-6v.js";
22
- import { _ as fp, Z as An, Y as ns, r as gp } from "./pivot-result-lifecycle-BBlAfBA0.js";
16
+ import { E as Ja, C as Tt, S as Wr, M as sh, a as lh } from "./selection-reducer-Dj_8xD69.js";
17
+ import { ay as oh, ae as mt, az as ih, aA as ch, aB as Zr, aC as Ta, aD as dh, aE as Pl, aF as uh, aG as mh, aH as Ll, af as Fa, ap as Xr, n as hh, C as ph, aI as ci, a0 as fh, $ as Zn, aJ as es, aK as rn, ag as gh, A as di, j as xh, D as bh, h as wr, k as dn, H as ui, G as vh, E as yh, aL as Nh, aM as Ch, aN as wh, aO as Sh, aP as mi, aQ as kh, aR as Th, aw as Qa, ah as Dh, aS as hi, au as Mh, av as Fh, l as Eh, aT as pi, aU as ts } from "./numeric-presentation-DESvLiu9.js";
18
+ import { D as Ih } from "./token-types-DBbZVQsm.js";
19
+ import { al as fi, am as Oh, a as Ah, an as Rh, a9 as gi, ao as Ph, ap as Lh, aq as Yh, ar as _h, as as Vh, at as Bh, au as $h, av as xi, M as qh, ae as jh, aw as Kh, ax as zh, ay as Uh, az as Gh, a5 as Hh, a6 as Jh, D as jt, aA as St, aB as Lt, aC as Qh, aD as Wh, aE as Zh, aF as Xh, aG as ep, aH as tp, aI as ap, aJ as Yl, aK as np, aL as Xn, aM as rp, aN as sp, aO as lp, ad as op } from "./document-dashboard-inputs-BC6p-ESg.js";
20
+ import { b as ip, F as cp, V as bi, I as it, u as dp, C as up } from "./use-create-flow-overlay-state-BxzFviM-.js";
21
+ import { N as as, g as mp, v as hp, w as pp } from "./apply-dashboard-operations-Bz4n1Lq6.js";
22
+ import { C as fp, B as An, A as ns } from "./pivot-result-lifecycle-DM4CyGKs.js";
23
23
  import "./table-settings-CLZocegs.js";
24
- import { f as ia, r as ca, g as Xa, a as Vt, c as Ca, i as xp, d as bp, e as vp, v as ea, b as vi, n as yp, h as Sr, j as Np, k as Cp, l as wp } from "./custom-visual-inputs-DUtpYZOk.js";
24
+ import { f as ia, r as ca, g as Xa, a as Vt, c as Ca, i as gp, d as xp, e as bp, v as ea, b as vi, n as vp, h as Sr, j as yp, k as Np, l as Cp } from "./custom-visual-inputs-DUtpYZOk.js";
25
25
  import { f as un } from "./editor-draft-sync-BN5qYHPF.js";
26
- import { ab as Sp, e as kp, ac as Tp, V as yi, ad as Dp, W as Ni, ae as Mp, P as Fp, d as Ep, af as Ci, M as Ip, E as wi, F as Op, ag as Ap, ah as Rp, ai as Pp } from "./document-sheet-utils-BsZUnHRl.js";
26
+ import { ab as wp, e as Sp, ac as kp, U as yi, ad as Tp, V as Ni, ae as Dp, P as Mp, d as Fp, af as Ci, M as Ep, E as wi, F as Ip, ag as Op, ah as Ap, ai as Rp } from "./document-sheet-utils-Duo9uLoH.js";
27
27
  import "react-dom";
28
- import { j as Lp, t as Yp } from "./temporal-bucket-D7NBrrtL.js";
28
+ import { j as Pp, t as Lp } from "./temporal-bucket-D7NBrrtL.js";
29
+ import { r as Yp } from "./export-file-format-C-tJsxsf.js";
29
30
  import { u as _p } from "./appearance-context-DEYtWinQ.js";
30
31
  import { D as _l } from "./metric-comparison-DEwi9uc2.js";
31
- import { f as Vp, m as Si } from "./matrix-formatter-BnsTX90d.js";
32
+ import { f as Vp, m as Si } from "./matrix-formatter-CxJLkztA.js";
32
33
  import { P as Bp } from "./palette-D10o_yYX.js";
33
34
  /**
34
35
  * @license lucide-react v0.453.0 - ISC
@@ -390,7 +391,7 @@ function rf(t, a = {}) {
390
391
  const { size: r = "h-4 w-4" } = a, s = r;
391
392
  switch (t) {
392
393
  case "table":
393
- return /* @__PURE__ */ e(ed, { className: s });
394
+ return /* @__PURE__ */ e(ad, { className: s });
394
395
  case "view":
395
396
  return /* @__PURE__ */ e(Ja, { className: s });
396
397
  case "materialized view":
@@ -415,7 +416,7 @@ function sf({
415
416
  }) {
416
417
  const [r, s] = U(
417
418
  []
418
- ), { updateDataSource: o } = Ce(), c = td();
419
+ ), { updateDataSource: o } = Ce(), c = nd();
419
420
  Se(() => {
420
421
  t && s([]);
421
422
  }, [t]);
@@ -538,7 +539,7 @@ function lf({
538
539
  availableDataSources: a
539
540
  }) {
540
541
  const [r, s] = U(
541
- () => lh(t, a)
542
+ () => oh(t, a)
542
543
  ), [o, c] = U(/* @__PURE__ */ new Set()), d = () => {
543
544
  const O = r.joins.length > 0 ? Math.max(...r.joins.map((F) => F.sequence)) + 1 : 1, I = {
544
545
  autoResolved: !1,
@@ -862,7 +863,7 @@ function mf({
862
863
  onCancel: o
863
864
  }) {
864
865
  const { columnGroups: c, columns: d } = fo(), l = c.filter(
865
- (E) => E.entityName !== oh
866
+ (E) => E.entityName !== ih
866
867
  ), {
867
868
  joinPlan: i,
868
869
  expandedJoins: h,
@@ -1312,7 +1313,7 @@ function mf({
1312
1313
  {
1313
1314
  size: "xs",
1314
1315
  className: "gap-1.5",
1315
- onClick: () => r(ih(i, d)),
1316
+ onClick: () => r(ch(i, d)),
1316
1317
  disabled: !C(),
1317
1318
  children: [
1318
1319
  "Save joins",
@@ -1934,7 +1935,7 @@ function wf({
1934
1935
  selectedEntities: s,
1935
1936
  onSelectionChange: o
1936
1937
  }) {
1937
- const [c, d] = U(!1), l = c || a.length > 0 || !!r, { datasets: i, isPending: h } = ad(
1938
+ const [c, d] = U(!1), l = c || a.length > 0 || !!r, { datasets: i, isPending: h } = rd(
1938
1939
  l ? t.id : void 0
1939
1940
  ), u = X(() => {
1940
1941
  if (!a) return i;
@@ -2779,7 +2780,7 @@ function Rf({
2779
2780
  incomingSelectedEntities: s
2780
2781
  }) {
2781
2782
  var te, me;
2782
- const { tokenProps: o } = Yt(), c = o.config, d = o.semanticDomainAccess || Eh, [l, i] = U([]), [h, u] = U(""), [f, m] = U("all"), [p, x] = U(
2783
+ const { tokenProps: o } = Yt(), c = o.config, d = o.semanticDomainAccess || Ih, [l, i] = U([]), [h, u] = U(""), [f, m] = U("all"), [p, x] = U(
2783
2784
  void 0
2784
2785
  ), v = Le(!1), { updateDataSource: g } = Ce(), b = d.mode, D = (c == null ? void 0 : c.showDirectSource) !== !1, k = b === "include" || b === "exclude" || !D, S = b !== "all", R = D && !k, O = k ? "semanticDomain" : r.mode, I = !D, F = b === "include" && (((te = d.domainIds) == null ? void 0 : te.length) || 0) === 1 ? (me = d.domainIds) == null ? void 0 : me[0] : void 0, y = ot(
2785
2786
  (le) => {
@@ -2905,7 +2906,7 @@ function Rf({
2905
2906
  showCloseButton: !1,
2906
2907
  className: "flex h-[560px] w-[620px] max-w-[620px] flex-col gap-0 overflow-hidden rounded-[6px] border border-border bg-popover p-0",
2907
2908
  children: [
2908
- /* @__PURE__ */ e(Zm, { children: /* @__PURE__ */ e(qt, { children: z }) }),
2909
+ /* @__PURE__ */ e(Xm, { children: /* @__PURE__ */ e(qt, { children: z }) }),
2909
2910
  /* @__PURE__ */ n("div", { className: "flex items-start justify-between border-b border-border px-4 py-2.5", children: [
2910
2911
  /* @__PURE__ */ n("div", { children: [
2911
2912
  /* @__PURE__ */ e("p", { className: "text-[14px] font-semibold text-foreground", children: z }),
@@ -3109,8 +3110,8 @@ function Pf() {
3109
3110
  },
3110
3111
  ...d,
3111
3112
  selectedEntities: (d == null ? void 0 : d.selectedEntities) || []
3112
- }, g = nd(v.selectedEntities), b = g.length, D = rd(l), k = X(() => sd(l), [l]), S = X(
3113
- () => ch({
3113
+ }, g = sd(v.selectedEntities), b = g.length, D = ld(l), k = X(() => od(l), [l]), S = X(
3114
+ () => dh({
3114
3115
  ...D,
3115
3116
  selectedFields: k,
3116
3117
  dataSourceEntities: g
@@ -3137,7 +3138,7 @@ function Pf() {
3137
3138
  }, w = () => {
3138
3139
  u({
3139
3140
  ...v,
3140
- selectedEntities: ld([
3141
+ selectedEntities: id([
3141
3142
  ...g,
3142
3143
  ...F
3143
3144
  ])
@@ -3188,7 +3189,7 @@ function Pf() {
3188
3189
  /* @__PURE__ */ e("span", { className: "font-mono text-[10px] tabular-nums text-muted-foreground/70", children: b })
3189
3190
  ] }),
3190
3191
  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: g.map((L, $) => {
3191
- const q = S[$], J = (q ? dh(q.state) : !1) ? uh(q == null ? void 0 : q.state).tag : null;
3192
+ const q = S[$], J = (q ? uh(q.state) : !1) ? mh(q == null ? void 0 : q.state).tag : null;
3192
3193
  return /* @__PURE__ */ n(
3193
3194
  "li",
3194
3195
  {
@@ -3351,7 +3352,7 @@ function _f(t, a) {
3351
3352
  return t.connectionType && s.push(String(t.connectionType)), t.database && s.push(t.database), t.schema && s.push(t.schema), s.join(" · ");
3352
3353
  }
3353
3354
  function Oi({ isVisible: t }) {
3354
- op();
3355
+ ip();
3355
3356
  const [a, r] = U(!1);
3356
3357
  return /* @__PURE__ */ n(
3357
3358
  "div",
@@ -3701,7 +3702,7 @@ function zf({
3701
3702
  }
3702
3703
  ),
3703
3704
  /* @__PURE__ */ n(Nt, { open: b, onOpenChange: ye, children: [
3704
- /* @__PURE__ */ e(Xm, { asChild: !0, children: /* @__PURE__ */ e("div", { className: "pointer-events-none absolute inset-0" }) }),
3705
+ /* @__PURE__ */ e(eh, { asChild: !0, children: /* @__PURE__ */ e("div", { className: "pointer-events-none absolute inset-0" }) }),
3705
3706
  /* @__PURE__ */ n("div", { className: "absolute right-1 flex items-center gap-1", children: [
3706
3707
  (z || d) && /* @__PURE__ */ e(
3707
3708
  ee,
@@ -3735,7 +3736,7 @@ function zf({
3735
3736
  },
3736
3737
  "aria-label": T ? "Stop AI generation" : be,
3737
3738
  title: T ? "Stop AI generation" : be,
3738
- children: T ? /* @__PURE__ */ e(vo, { className: "size-3 fill-current" }) : /* @__PURE__ */ e(od, { className: "size-3.5" })
3739
+ children: T ? /* @__PURE__ */ e(vo, { className: "size-3 fill-current" }) : /* @__PURE__ */ e(cd, { className: "size-3.5" })
3739
3740
  }
3740
3741
  )
3741
3742
  ] }),
@@ -3986,7 +3987,7 @@ function Uf({
3986
3987
  onClick: () => c(!1),
3987
3988
  "aria-label": "Collapse query editor",
3988
3989
  title: "Collapse editor",
3989
- children: /* @__PURE__ */ e(rh, { className: "h-3.5 w-3.5" })
3990
+ children: /* @__PURE__ */ e(sh, { className: "h-3.5 w-3.5" })
3990
3991
  }
3991
3992
  )
3992
3993
  ] })
@@ -4149,7 +4150,7 @@ function Jf({
4149
4150
  ...r,
4150
4151
  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",
4151
4152
  children: [
4152
- /* @__PURE__ */ e(ip, { className: "h-3.5 w-3.5", strokeWidth: 1.75 }),
4153
+ /* @__PURE__ */ e(cp, { className: "h-3.5 w-3.5", strokeWidth: 1.75 }),
4153
4154
  /* @__PURE__ */ e("span", { className: "hidden @[1550px]:inline", children: "Dashboard filters off" })
4154
4155
  ]
4155
4156
  }
@@ -4217,7 +4218,7 @@ function Qf({
4217
4218
  onClick: a,
4218
4219
  "aria-label": s,
4219
4220
  title: s,
4220
- children: /* @__PURE__ */ e(sh, { className: "h-3.5 w-3.5", strokeWidth: 1.75 })
4221
+ children: /* @__PURE__ */ e(lh, { className: "h-3.5 w-3.5", strokeWidth: 1.75 })
4221
4222
  }
4222
4223
  )
4223
4224
  ] })
@@ -4323,17 +4324,17 @@ function Xf({
4323
4324
  onOpenChange: a,
4324
4325
  onConfirm: r
4325
4326
  }) {
4326
- return /* @__PURE__ */ e(id, { open: t, onOpenChange: a, children: /* @__PURE__ */ n(cd, { children: [
4327
- /* @__PURE__ */ n(dd, { children: [
4328
- /* @__PURE__ */ e(ud, { children: "Clear the editor?" }),
4329
- /* @__PURE__ */ e(md, { children: "This clears the SQL, the Python step and the chart settings in this editor. Nothing changes on the dashboard until you click Done." })
4327
+ return /* @__PURE__ */ e(dd, { open: t, onOpenChange: a, children: /* @__PURE__ */ n(ud, { children: [
4328
+ /* @__PURE__ */ n(md, { children: [
4329
+ /* @__PURE__ */ e(hd, { children: "Clear the editor?" }),
4330
+ /* @__PURE__ */ e(pd, { children: "This clears the SQL, the Python step and the chart settings in this editor. Nothing changes on the dashboard until you click Done." })
4330
4331
  ] }),
4331
- /* @__PURE__ */ n(hd, { children: [
4332
- /* @__PURE__ */ e(pd, { children: "Cancel" }),
4332
+ /* @__PURE__ */ n(fd, { children: [
4333
+ /* @__PURE__ */ e(gd, { children: "Cancel" }),
4333
4334
  /* @__PURE__ */ e(
4334
- fd,
4335
+ xd,
4335
4336
  {
4336
- className: G(eh({ variant: "destructive", size: "xs" })),
4337
+ className: G(th({ variant: "destructive", size: "xs" })),
4337
4338
  onClick: r,
4338
4339
  children: "Clear"
4339
4340
  }
@@ -4484,7 +4485,7 @@ function ag() {
4484
4485
  }), xe.records.length > 0) {
4485
4486
  const { keys: oe } = No(xe.records);
4486
4487
  $(
4487
- v.type === "kpi" ? gd(xe.records).slice(0, 1) : oe,
4488
+ v.type === "kpi" ? bd(xe.records).slice(0, 1) : oe,
4488
4489
  xe.columnKeyMap
4489
4490
  );
4490
4491
  } else
@@ -4750,13 +4751,13 @@ function ng(t) {
4750
4751
  ), h = ge(
4751
4752
  (b) => b.actions.getCard(t)
4752
4753
  ), u = A((b) => b.editorContext), f = A((b) => b.card), m = Tn(), x = (u == null ? void 0 : u.type) === "documentSection" && u.cardId === t ? u : void 0, v = x ? f : h;
4753
- if (Ih({
4754
+ if (Oh({
4754
4755
  dashboard: a,
4755
4756
  dashboardInputValues: c,
4756
4757
  // The visual editor's filter preview: authoring never sees carried state.
4757
4758
  transientContexts: void 0
4758
4759
  }) && v) {
4759
- const b = Oh({
4760
+ const b = Ah({
4760
4761
  transientContexts: void 0,
4761
4762
  dashboard: a,
4762
4763
  sheetId: x ? x.sheetId : o,
@@ -4786,7 +4787,7 @@ function ng(t) {
4786
4787
  return x ? {
4787
4788
  cardFilters: [],
4788
4789
  cardFilterValues: x.documentFilterValues || []
4789
- } : Ah(
4790
+ } : Rh(
4790
4791
  r,
4791
4792
  s,
4792
4793
  o,
@@ -4832,7 +4833,7 @@ function lg({ className: t }) {
4832
4833
  "aggregateTable",
4833
4834
  "pivotTable",
4834
4835
  "detailTable"
4835
- ].includes(o), u = Fa(a.config, a.type), f = xp(a, r.cards);
4836
+ ].includes(o), u = Fa(a.config, a.type), f = gp(a, r.cards);
4836
4837
  if (!h || !u || f || l || i.length < 2)
4837
4838
  return /* @__PURE__ */ e(
4838
4839
  "div",
@@ -5455,7 +5456,7 @@ function Ki(t) {
5455
5456
  };
5456
5457
  }
5457
5458
  function pg() {
5458
- const { authToken: t, tokenProps: a } = Yt(), { currentUser: r } = Dn(), s = xd({
5459
+ const { authToken: t, tokenProps: a } = Yt(), { currentUser: r } = Dn(), s = vd({
5459
5460
  mutationFn: async (o) => {
5460
5461
  if (!(t != null && t.accessToken))
5461
5462
  throw new Error("No authentication token available");
@@ -5515,7 +5516,7 @@ function gg({
5515
5516
  className: s,
5516
5517
  ariaLabel: o
5517
5518
  }) {
5518
- const c = X(() => th(t, a), [t, a]);
5519
+ const c = X(() => ah(t, a), [t, a]);
5519
5520
  return (
5520
5521
  // `.code-editor` scopes the token colors — see code-editor.css.
5521
5522
  /* @__PURE__ */ e("div", { className: G("code-editor", s), children: /* @__PURE__ */ e(
@@ -5609,7 +5610,7 @@ function us({
5609
5610
  }
5610
5611
  ),
5611
5612
  /* @__PURE__ */ e(
5612
- bd,
5613
+ yd,
5613
5614
  {
5614
5615
  id: "feedback-message",
5615
5616
  name: "feedback-message",
@@ -5729,7 +5730,7 @@ function us({
5729
5730
  className: "flex items-start gap-3 px-3 py-4",
5730
5731
  children: [
5731
5732
  /* @__PURE__ */ e(
5732
- cp,
5733
+ Nd,
5733
5734
  {
5734
5735
  "aria-hidden": "true",
5735
5736
  className: "mt-0.5 h-5 w-5 shrink-0 text-emerald-500"
@@ -5789,7 +5790,7 @@ function zi(t, a) {
5789
5790
  const xg = "__editor_sql__", bg = "__editor_python__";
5790
5791
  function vg(t) {
5791
5792
  var r;
5792
- const a = mh(t.python || "");
5793
+ const a = hh(t.python || "");
5793
5794
  return {
5794
5795
  sql: (r = t.sql) != null && r.trim() ? xg : "",
5795
5796
  python: a.trim() ? bg : ""
@@ -5879,13 +5880,13 @@ function Ui({
5879
5880
  $e
5880
5881
  ]
5881
5882
  ), Xe = X(
5882
- () => F === "pivotTable" ? vd({
5883
+ () => F === "pivotTable" ? Cd({
5883
5884
  data: N,
5884
5885
  card: y,
5885
5886
  isPending: T || V
5886
5887
  }) : { kind: "not_loaded" },
5887
5888
  [y, F, N, V, T]
5888
- ), Re = yd(
5889
+ ), Re = wd(
5889
5890
  y,
5890
5891
  Xe,
5891
5892
  (Je = N == null ? void 0 : N.metadata) == null ? void 0 : Je.comparisonMetadata
@@ -5955,7 +5956,7 @@ function Ui({
5955
5956
  }
5956
5957
  function We() {
5957
5958
  var ce;
5958
- if (y.type === "matrixTable") return /* @__PURE__ */ e(Md, { card: y, frame: i, mode: "editor" });
5959
+ if (y.type === "matrixTable") return /* @__PURE__ */ e(Id, { card: y, frame: i, mode: "editor" });
5959
5960
  if (N != null && N.records && (N == null ? void 0 : N.records.length) === 0 && !T && !V && F !== "pivotTable")
5960
5961
  return w ? /* @__PURE__ */ e("div", { className: "flex h-full flex-col items-start justify-start overflow-auto", children: /* @__PURE__ */ e(
5961
5962
  ds,
@@ -5967,11 +5968,11 @@ function Ui({
5967
5968
  showFeedbackButton: !0
5968
5969
  }
5969
5970
  ) }) : /* @__PURE__ */ n("div", { className: "flex h-full flex-col items-center justify-center gap-2", children: [
5970
- /* @__PURE__ */ e(Fd, { className: "h-8 w-8 text-muted-foreground/40" }),
5971
+ /* @__PURE__ */ e(Od, { className: "h-8 w-8 text-muted-foreground/40" }),
5971
5972
  /* @__PURE__ */ e("p", { className: "text-[12px] text-muted-foreground", children: "No results to display" })
5972
5973
  ] });
5973
5974
  if ((T || V) && (!(N != null && N.records) || N.records.length === 0))
5974
- return F === "table" || F === "detailTable" ? /* @__PURE__ */ e("div", { className: "relative mb-2 flex h-full min-h-0 w-full flex-1 grow basis-0", children: /* @__PURE__ */ e(Ed, {}) }) : /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(_t, { size: "md", color: "muted", "aria-label": "Loading data" }) });
5975
+ return F === "table" || F === "detailTable" ? /* @__PURE__ */ e("div", { className: "relative mb-2 flex h-full min-h-0 w-full flex-1 grow basis-0", children: /* @__PURE__ */ e(Ad, {}) }) : /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(_t, { size: "md", color: "muted", "aria-label": "Loading data" }) });
5975
5976
  if (!y.id) return null;
5976
5977
  if (F === "custom")
5977
5978
  return _e(s);
@@ -5984,7 +5985,7 @@ function Ui({
5984
5985
  "custom"
5985
5986
  ].includes(F) && ke)
5986
5987
  return /* @__PURE__ */ e("div", { className: "relative h-full min-h-0 w-full flex-1 grow basis-0", children: T || V ? /* @__PURE__ */ e(pe, {}) : /* @__PURE__ */ e(
5987
- Id,
5988
+ Rd,
5988
5989
  {
5989
5990
  cfg: ke
5990
5991
  }
@@ -6007,7 +6008,7 @@ function Ui({
6007
6008
  ) });
6008
6009
  if (F === "pivotTable" && Re)
6009
6010
  return /* @__PURE__ */ e("div", { className: "relative mb-2 flex h-full min-h-0 w-full flex-1 grow basis-0", children: /* @__PURE__ */ e(
6010
- Od,
6011
+ Pd,
6011
6012
  {
6012
6013
  card: y,
6013
6014
  data: Re.data,
@@ -6020,7 +6021,7 @@ function Ui({
6020
6021
  Q(Qe), de(Qe);
6021
6022
  },
6022
6023
  onAggregationLabelChange: (ve) => {
6023
- const Ie = Ad(
6024
+ const Ie = Ld(
6024
6025
  ve,
6025
6026
  s.config
6026
6027
  ), Qe = { ...s, config: Ie };
@@ -6030,7 +6031,7 @@ function Ui({
6030
6031
  ) });
6031
6032
  if (F === "aggregateTable")
6032
6033
  return /* @__PURE__ */ e("div", { className: "relative mb-2 flex h-full min-h-0 w-full flex-1 grow basis-0", children: /* @__PURE__ */ e(
6033
- Rd,
6034
+ Yd,
6034
6035
  {
6035
6036
  card: y,
6036
6037
  data: (N == null ? void 0 : N.records) || [],
@@ -6052,7 +6053,7 @@ function Ui({
6052
6053
  ) });
6053
6054
  }
6054
6055
  return /* @__PURE__ */ n(
6055
- Nd,
6056
+ Sd,
6056
6057
  {
6057
6058
  role: "editor-visual-card",
6058
6059
  className: G(
@@ -6065,9 +6066,9 @@ function Ui({
6065
6066
  },
6066
6067
  ...r,
6067
6068
  children: [
6068
- (T || V) && !Cd({ type: F }) && (N == null ? void 0 : N.records) && N.records.length > 0 && /* @__PURE__ */ e("div", { className: "absolute inset-0 z-50 flex items-center justify-center bg-background/50", children: /* @__PURE__ */ e(_t, { size: "md", color: "muted", "aria-label": "Loading data" }) }),
6069
+ (T || V) && !kd({ type: F }) && (N == null ? void 0 : N.records) && N.records.length > 0 && /* @__PURE__ */ e("div", { className: "absolute inset-0 z-50 flex items-center justify-center bg-background/50", children: /* @__PURE__ */ e(_t, { size: "md", color: "muted", "aria-label": "Loading data" }) }),
6069
6070
  d && /* @__PURE__ */ n(
6070
- wd,
6071
+ Td,
6071
6072
  {
6072
6073
  className: G(
6073
6074
  "flex flex-row items-start justify-between gap-4 px-4 pb-3 pt-3"
@@ -6076,7 +6077,7 @@ function Ui({
6076
6077
  children: [
6077
6078
  /* @__PURE__ */ n("div", { className: "min-w-0 flex-1 space-y-1", children: [
6078
6079
  /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
6079
- /* @__PURE__ */ e(Sd, { className: "min-w-0 text-[17px] font-semibold leading-tight tracking-[-0.005em]", children: /* @__PURE__ */ e(
6080
+ /* @__PURE__ */ e(Dd, { className: "min-w-0 text-[17px] font-semibold leading-tight tracking-[-0.005em]", children: /* @__PURE__ */ e(
6080
6081
  Va,
6081
6082
  {
6082
6083
  value: s.title,
@@ -6115,7 +6116,7 @@ function Ui({
6115
6116
  inputClassName: "text-sm"
6116
6117
  }
6117
6118
  ) }),
6118
- /* @__PURE__ */ e(kd, { filter: g })
6119
+ /* @__PURE__ */ e(Md, { filter: g })
6119
6120
  ] })
6120
6121
  ]
6121
6122
  }
@@ -6126,7 +6127,7 @@ function Ui({
6126
6127
  className: "px-4 pb-2",
6127
6128
  style: o.cardGutterStyle,
6128
6129
  children: /* @__PURE__ */ e(
6129
- Td,
6130
+ Fd,
6130
6131
  {
6131
6132
  card: s,
6132
6133
  sheetId: f || "",
@@ -6138,7 +6139,7 @@ function Ui({
6138
6139
  }
6139
6140
  ),
6140
6141
  /* @__PURE__ */ n(
6141
- Dd,
6142
+ Ed,
6142
6143
  {
6143
6144
  className: G(
6144
6145
  "flex min-h-0 grow flex-col",
@@ -6317,7 +6318,7 @@ function wg({
6317
6318
  });
6318
6319
  if (C) {
6319
6320
  d(Ul(C)), u(((T = p.preferences) == null ? void 0 : T.customVisualCode) || "");
6320
- const V = Ld(C, v);
6321
+ const V = Vd(C, v);
6321
6322
  i(Ul(V));
6322
6323
  }
6323
6324
  }, F = () => {
@@ -6325,7 +6326,7 @@ function wg({
6325
6326
  if (h && O(h), l) {
6326
6327
  const C = JSON.parse(
6327
6328
  l
6328
- ), P = Sp(
6329
+ ), P = wp(
6329
6330
  JSON.parse(c),
6330
6331
  C
6331
6332
  );
@@ -6336,7 +6337,7 @@ function wg({
6336
6337
  }
6337
6338
  }, y = Object.keys(v || {}).length === 0;
6338
6339
  return /* @__PURE__ */ n(Bt, { open: s, onOpenChange: o, children: [
6339
- /* @__PURE__ */ e(Pd, { asChild: !0, children: t === "menu" ? /* @__PURE__ */ n(
6340
+ /* @__PURE__ */ e(_d, { asChild: !0, children: t === "menu" ? /* @__PURE__ */ n(
6340
6341
  ee,
6341
6342
  {
6342
6343
  variant: "ghost",
@@ -6411,7 +6412,7 @@ function Gi({
6411
6412
  }) {
6412
6413
  if (!r && t)
6413
6414
  return Fo(t, s);
6414
- const o = Yd(a);
6415
+ const o = Bd(a);
6415
6416
  if (o)
6416
6417
  return hn.cloneElement(o, { className: s });
6417
6418
  const c = kg(a), d = Sg(a);
@@ -6514,7 +6515,7 @@ const Hl = [
6514
6515
  ], sr = 2;
6515
6516
  function Dg(t) {
6516
6517
  return Tg.filter(
6517
- (a) => Vd(a.id, t)
6518
+ (a) => qd(a.id, t)
6518
6519
  );
6519
6520
  }
6520
6521
  function Mg({
@@ -6523,7 +6524,7 @@ function Mg({
6523
6524
  onClose: r
6524
6525
  }) {
6525
6526
  var B;
6526
- const [s, o] = U(""), [c, d] = U(0), l = Le(null), { data: i = [], isLoading: h } = _d(), u = cs(), { setCardPreferences: f } = A((M) => M.actions), m = A((M) => M.card), p = A((M) => M.isDevMode), x = t ?? m.type, v = x === "custom" ? (B = m.customCardPreferences) == null ? void 0 : B.componentName : void 0, {
6527
+ const [s, o] = U(""), [c, d] = U(0), l = Le(null), { data: i = [], isLoading: h } = $d(), u = cs(), { setCardPreferences: f } = A((M) => M.actions), m = A((M) => M.card), p = A((M) => M.isDevMode), x = t ?? m.type, v = x === "custom" ? (B = m.customCardPreferences) == null ? void 0 : B.componentName : void 0, {
6527
6528
  setCardCustomCfg: g,
6528
6529
  setQueryConfig: b,
6529
6530
  replaceFrameCards: D,
@@ -6550,10 +6551,10 @@ function Mg({
6550
6551
  }, [i, s]), I = (M) => {
6551
6552
  u(M).status !== "refused" && (a == null || a(M), r == null || r());
6552
6553
  }, F = (M) => {
6553
- const Y = bp(M);
6554
+ const Y = xp(M);
6554
6555
  if (Y === "multiple" && M.slots && M.slots.length > 0) {
6555
6556
  g(null), f({}), b(void 0), k();
6556
- const L = vp(M.slots, M, m);
6557
+ const L = bp(M.slots, M, m);
6557
6558
  D(L), L[0] && S(L[0]), r == null || r();
6558
6559
  return;
6559
6560
  } else if (u("custom", {
@@ -6686,23 +6687,23 @@ const lr = {
6686
6687
  matrixTable: gn,
6687
6688
  bar: En,
6688
6689
  line: Fn,
6689
- stackedBar: Zd,
6690
- stackedLine: Wd,
6690
+ stackedBar: tu,
6691
+ stackedLine: eu,
6691
6692
  scatter: Oo,
6692
- bubble: Qd,
6693
- pie: Jd,
6694
- doughnut: Hd,
6695
- kpi: Gd,
6693
+ bubble: Xd,
6694
+ pie: Zd,
6695
+ doughnut: Wd,
6696
+ kpi: Qd,
6696
6697
  treemap: Io,
6697
6698
  bullet: Eo,
6698
- funnel: Ud,
6699
- tornado: zd,
6699
+ funnel: Jd,
6700
+ tornado: Hd,
6700
6701
  heatmap: gn,
6701
- range: Kd,
6702
- radar: jd,
6703
- polarArea: qd,
6704
- text: $d,
6705
- map: Bd
6702
+ range: Gd,
6703
+ radar: Ud,
6704
+ polarArea: zd,
6705
+ text: Kd,
6706
+ map: jd
6706
6707
  }, or = {
6707
6708
  table: "Table",
6708
6709
  matrixTable: "Matrix Table",
@@ -6995,7 +6996,7 @@ function hs({
6995
6996
  /* @__PURE__ */ n(Ur, { align: "end", className: "w-64", children: [
6996
6997
  /* @__PURE__ */ e("p", { className: "px-2 pb-1.5 pt-1 text-[11px] text-muted-foreground", children: "Changes apply to dashboard view only" }),
6997
6998
  v.map((C) => /* @__PURE__ */ n(
6998
- Xd,
6999
+ au,
6999
7000
  {
7000
7001
  checked: C.checked,
7001
7002
  onCheckedChange: (P) => x(C.option, P),
@@ -7013,14 +7014,14 @@ function hs({
7013
7014
  }
7014
7015
  function Hi(t, a) {
7015
7016
  var i, h;
7016
- const r = t.qualifiedFieldName || t.name, s = t.qualifiedFieldName ? t.qualifiedFieldName.split(".").slice(0, -1).join(".") : t.qualifiedEntityName || t.entityName, o = a.connectionId || ((i = a.dataSource) == null ? void 0 : i.connectionId) || "", c = Rh(t), d = Ph(
7017
+ const r = t.qualifiedFieldName || t.name, s = t.qualifiedFieldName ? t.qualifiedFieldName.split(".").slice(0, -1).join(".") : t.qualifiedEntityName || t.entityName, o = a.connectionId || ((i = a.dataSource) == null ? void 0 : i.connectionId) || "", c = Ph(t), d = Lh(
7017
7018
  a.dataSource,
7018
7019
  {
7019
7020
  connectionId: o,
7020
7021
  connectionType: (h = a.dataSource) == null ? void 0 : h.connectionType
7021
7022
  },
7022
7023
  t
7023
- ), l = Lh(a.dataSource, d, t) || "";
7024
+ ), l = Yh(a.dataSource, d, t) || "";
7024
7025
  return {
7025
7026
  column: r,
7026
7027
  title: xa(t),
@@ -7049,10 +7050,10 @@ function ps({
7049
7050
  (R) => R.actions.removeCardInlineFilterValue
7050
7051
  ), m = A(
7051
7052
  (R) => R.actions.setCardInlineFilterValue
7052
- ), p = eu(), x = (c == null ? void 0 : c.inlineFilters) || [], v = Tn() ?? void 0;
7053
+ ), p = nu(), x = (c == null ? void 0 : c.inlineFilters) || [], v = Tn() ?? void 0;
7053
7054
  function g(R) {
7054
7055
  if (x.find(
7055
- (F) => Yh(F, R)
7056
+ (F) => _h(F, R)
7056
7057
  ))
7057
7058
  return;
7058
7059
  const I = {
@@ -7085,9 +7086,9 @@ function ps({
7085
7086
  inlineFilters: F
7086
7087
  });
7087
7088
  const y = F.find((P) => P.id === R);
7088
- if (!y || !_h(I, y))
7089
+ if (!y || !Vh(I, y))
7089
7090
  return;
7090
- const C = Vh(
7091
+ const C = Bh(
7091
7092
  y,
7092
7093
  v
7093
7094
  );
@@ -7162,7 +7163,7 @@ function ps({
7162
7163
  items: [],
7163
7164
  strategy: Ga,
7164
7165
  children: /* @__PURE__ */ e(
7165
- tu,
7166
+ ru,
7166
7167
  {
7167
7168
  context: "inline-filter",
7168
7169
  onFieldSelect: g,
@@ -7199,7 +7200,7 @@ function Ag({
7199
7200
  /* @__PURE__ */ e("span", { className: "truncate", title: t.column, children: t.title }),
7200
7201
  /* @__PURE__ */ n("div", { className: "flex items-center gap-0.5", children: [
7201
7202
  /* @__PURE__ */ e(
7202
- au,
7203
+ su,
7203
7204
  {
7204
7205
  filter: t,
7205
7206
  variant: "inline",
@@ -7292,7 +7293,7 @@ function _g({
7292
7293
  [i, h]
7293
7294
  );
7294
7295
  function f(y) {
7295
- return !i || !u ? [] : hh(i, y, g).map((C) => ({
7296
+ return !i || !u ? [] : ph(i, y, g).map((C) => ({
7296
7297
  id: C.id,
7297
7298
  label: C.kind === "measure" ? `${An(C.measure, u)} (${C.measure.aggregate})` : `${C.axis === "rows" ? "Rows" : "Columns"}: ${ns(C.level, u)}`
7298
7299
  }));
@@ -7302,14 +7303,14 @@ function _g({
7302
7303
  ...t.controls || []
7303
7304
  ], [p, x] = U(
7304
7305
  {}
7305
- ), v = kp({
7306
+ ), v = Sp({
7306
7307
  sql: t.sql,
7307
7308
  controlBindings: t.controlBindings
7308
7309
  });
7309
7310
  function g(y) {
7310
7311
  return i ? ci(y, i.source, c) : y.dataType;
7311
7312
  }
7312
- const b = Bh(t, i, g), D = new Set(
7313
+ const b = $h(t, i, g), D = new Set(
7313
7314
  r.map((y) => Cn(y.controlId, y.target))
7314
7315
  ), k = m.some(
7315
7316
  (y) => xi({
@@ -7438,7 +7439,7 @@ function _g({
7438
7439
  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((y, C) => {
7439
7440
  const P = b[y.target] || [], N = m.find(
7440
7441
  (j) => j.id === y.controlId
7441
- ), T = N ? $h(N) : null, V = (T == null ? void 0 : T.source.kind) === "manual" ? T.source.options : [], w = R(y.target), B = f(y.target), M = y.matrixTargetId !== void 0 && !B.some((j) => j.id === y.matrixTargetId), Y = Array.from(
7442
+ ), T = N ? qh(N) : null, V = (T == null ? void 0 : T.source.kind) === "manual" ? T.source.options : [], w = R(y.target), B = f(y.target), M = y.matrixTargetId !== void 0 && !B.some((j) => j.id === y.matrixTargetId), Y = Array.from(
7442
7443
  /* @__PURE__ */ new Set([
7443
7444
  ...V.map((j) => j.value),
7444
7445
  ...Object.keys(y.mapping)
@@ -7630,10 +7631,10 @@ function Vg(t, a, r) {
7630
7631
  t,
7631
7632
  a,
7632
7633
  r
7633
- ), o = Mp(t), c = new Map(
7634
+ ), o = Dp(t), c = new Map(
7634
7635
  o.map((l) => [l.id, l])
7635
7636
  ), d = new Map(
7636
- Fp(t, r).map((l) => [
7637
+ Mp(t, r).map((l) => [
7637
7638
  l.measureId,
7638
7639
  l.label
7639
7640
  ])
@@ -7658,17 +7659,17 @@ function $g({
7658
7659
  bindings: o,
7659
7660
  onChange: c
7660
7661
  }) {
7661
- const d = [...r, ...a.controls || []], l = d.filter(Tp), i = X(
7662
+ const d = [...r, ...a.controls || []], l = d.filter(kp), i = X(
7662
7663
  () => Vg(a, s, t),
7663
7664
  [a, s, t]
7664
7665
  ), h = X(
7665
7666
  () => yi(a, s, t),
7666
7667
  [a, s, t]
7667
- ), u = Dp({
7668
+ ), u = Tp({
7668
7669
  bindings: o,
7669
7670
  controls: d,
7670
7671
  ...h
7671
- }), { preferences: f, resolveBoundCurrency: m } = nu(a, s, t), [p, x] = U(""), [v, g] = U(""), b = i.find((S) => S.key === v), D = !!(p && b) && !o.some(
7672
+ }), { preferences: f, resolveBoundCurrency: m } = lu(a, s, t), [p, x] = U(""), [v, g] = U(""), b = i.find((S) => S.key === v), D = !!(p && b) && !o.some(
7672
7673
  (S) => S.presentationTarget && b && Ni(S.presentationTarget) === b.key
7673
7674
  ), k = (S) => {
7674
7675
  if (!f)
@@ -7682,7 +7683,7 @@ function $g({
7682
7683
  matrixCatalog: t
7683
7684
  });
7684
7685
  if (R)
7685
- return Lp(1e3, R);
7686
+ return Pp(1e3, R);
7686
7687
  };
7687
7688
  return l.length === 0 && o.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: [
7688
7689
  /* @__PURE__ */ n("div", { className: "space-y-1", children: [
@@ -7772,20 +7773,20 @@ function fs({
7772
7773
  !c && v !== null && g(null);
7773
7774
  }, [c, v]);
7774
7775
  const b = X(() => v ? (i == null ? void 0 : i.cards.find((q) => q.id === v)) || ((l == null ? void 0 : l.id) === v ? l : void 0) : l, [l, i == null ? void 0 : i.cards, v]), D = (b == null ? void 0 : b.type) === "matrixTable" ? (E = b.config) == null ? void 0 : E.matrix : void 0, k = X(
7775
- () => c && D ? Ep(D.spec, b == null ? void 0 : b.controlBindings) : [],
7776
+ () => c && D ? Fp(D.spec, b == null ? void 0 : b.controlBindings) : [],
7776
7777
  [c, D, b == null ? void 0 : b.controlBindings]
7777
- ), S = ru(k), R = X(() => S.catalog.map((q) => ({
7778
+ ), S = ou(k), R = X(() => S.catalog.map((q) => ({
7778
7779
  ...q.field,
7779
7780
  dataType: mo(q.resolvedField.dataType)
7780
- })), [S.catalog]), O = (b == null ? void 0 : b.controls) || [], I = b ? qh(u, { excludeCardId: b.id }) : m.map((q) => q.id), F = ((b == null ? void 0 : b.controlBindings) || []).filter(
7781
- ph
7781
+ })), [S.catalog]), O = (b == null ? void 0 : b.controls) || [], I = b ? jh(u, { excludeCardId: b.id }) : m.map((q) => q.id), F = ((b == null ? void 0 : b.controlBindings) || []).filter(
7782
+ fh
7782
7783
  ), y = ((b == null ? void 0 : b.controlBindings) || []).filter(
7783
7784
  Zn
7784
- ), C = su({
7785
+ ), C = iu({
7785
7786
  card: b,
7786
7787
  controls: O
7787
7788
  }), P = {
7788
- choices: jh(b),
7789
+ choices: Kh(b),
7789
7790
  targetMap: Object.fromEntries(
7790
7791
  (((L = b == null ? void 0 : b.config) == null ? void 0 : L.groupByColumns) || []).map((q) => [
7791
7792
  q.id,
@@ -7793,7 +7794,7 @@ function fs({
7793
7794
  ])
7794
7795
  )
7795
7796
  }, N = {
7796
- choices: Kh(b),
7797
+ choices: zh(b),
7797
7798
  targetMap: Object.fromEntries(
7798
7799
  ((($ = b == null ? void 0 : b.config) == null ? void 0 : $.metricColumns) || []).map((q) => [
7799
7800
  q.id,
@@ -7819,7 +7820,7 @@ function fs({
7819
7820
  }) : b, Q = {
7820
7821
  ...J,
7821
7822
  controls: q,
7822
- controlBindings: zh(
7823
+ controlBindings: Uh(
7823
7824
  J.controlBindings,
7824
7825
  q
7825
7826
  )
@@ -7831,7 +7832,7 @@ function fs({
7831
7832
  const j = {
7832
7833
  ...b,
7833
7834
  controlBindings: [
7834
- ...Uh(
7835
+ ...Gh(
7835
7836
  q,
7836
7837
  (b.controlBindings || []).filter(
7837
7838
  (J) => !Zn(J)
@@ -7971,7 +7972,7 @@ function Ji({
7971
7972
  var x, v;
7972
7973
  return (v = (x = p.card) == null ? void 0 : x.preferences) == null ? void 0 : v.chartOptions;
7973
7974
  }
7974
- ), l = lu(d), { setChartGrid: i } = Ce();
7975
+ ), l = cu(d), { setChartGrid: i } = Ce();
7975
7976
  function h() {
7976
7977
  const p = ["xy", "none", "x", "y"], v = (p.indexOf(l) + 1) % p.length;
7977
7978
  i(p[v]);
@@ -8098,7 +8099,7 @@ function Kg({
8098
8099
  const q = (r == null ? void 0 : r.id) === $;
8099
8100
  if (!(I && q ? s.cards.length > 1 : O)) return;
8100
8101
  let J = s.cards.filter((W) => W.id !== $);
8101
- g && !I && (J = Np(J));
8102
+ g && !I && (J = yp(J));
8102
8103
  const Q = J[0], de = {
8103
8104
  ...s,
8104
8105
  cards: J,
@@ -8155,7 +8156,7 @@ function Kg({
8155
8156
  x.slots,
8156
8157
  Q
8157
8158
  );
8158
- W && (q = Cp(W), j = W.label || `Tab ${Q + 1}`, J = W.description || "");
8159
+ W && (q = Np(W), j = W.label || `Tab ${Q + 1}`, J = W.description || "");
8159
8160
  }
8160
8161
  const de = {
8161
8162
  dataSource: $.dataSource,
@@ -8177,7 +8178,7 @@ function Kg({
8177
8178
  ],
8178
8179
  ...q === "text" ? {
8179
8180
  textVisualOptions: {
8180
- richContent: bu()
8181
+ richContent: Nu()
8181
8182
  }
8182
8183
  } : {}
8183
8184
  },
@@ -8263,7 +8264,7 @@ function Kg({
8263
8264
  /* @__PURE__ */ n(pe, { children: [
8264
8265
  w(s, $),
8265
8266
  /* @__PURE__ */ e(
8266
- pu,
8267
+ xu,
8267
8268
  {
8268
8269
  enabled: s.activeCardId === $.id,
8269
8270
  text: $.tabTitle || $.title,
@@ -8277,7 +8278,7 @@ function Kg({
8277
8278
  ] })
8278
8279
  ),
8279
8280
  !d && s.activeCardId === $.id && !de && /* @__PURE__ */ e(
8280
- fu,
8281
+ bu,
8281
8282
  {
8282
8283
  className: "h-3 w-3 text-muted-foreground hover:text-foreground",
8283
8284
  onClick: (te) => {
@@ -8346,8 +8347,8 @@ function Fr({
8346
8347
  updateColumnSettingsMap: g
8347
8348
  } = Ce(), b = Object.keys(((Je = (Me = o.preferences) == null ? void 0 : Me.tablePrefs) == null ? void 0 : Je.columnSettingsMap) ?? {}).length > 0, [D, k] = U({}), [S, R] = U(
8348
8349
  () => /* @__PURE__ */ new Set()
8349
- ), { authToken: O } = Yt(), I = Gh(O == null ? void 0 : O.accessToken), { compiledAppearance: F } = _p(), y = X(
8350
- () => ou(F),
8350
+ ), { authToken: O } = Yt(), I = Hh(O == null ? void 0 : O.accessToken), { compiledAppearance: F } = _p(), y = X(
8351
+ () => du(F),
8351
8352
  [F]
8352
8353
  ), {
8353
8354
  getCard: C,
@@ -8394,7 +8395,7 @@ function Fr({
8394
8395
  te || o.sql || o.python
8395
8396
  ), be = o.type === "text" && ((Qe = (Ie = o.preferences) == null ? void 0 : Ie.textVisualOptions) == null ? void 0 : Qe.isDynamicText) === !0 && !!W, Ne = ot(
8396
8397
  (he, Fe) => {
8397
- const st = yp(Fe);
8398
+ const st = vp(Fe);
8398
8399
  k((et) => ({
8399
8400
  ...et,
8400
8401
  [he]: st
@@ -8419,22 +8420,22 @@ function Fr({
8419
8420
  ),
8420
8421
  [E, w == null ? void 0 : w.slots]
8421
8422
  ), $e = X(
8422
- () => iu(
8423
- cu({
8423
+ () => uu(
8424
+ mu({
8424
8425
  slotOrderedCards: E,
8425
8426
  multiInputData: D,
8426
8427
  valueFormatPreferences: r
8427
8428
  })
8428
8429
  ),
8429
8430
  [D, E, r]
8430
- ), ye = du(), Pe = ge((he) => he.dashboard.filters), Xe = ge((he) => he.filterValues), Re = ge((he) => he.selectedSheetId), nt = A(
8431
+ ), ye = hu(), Pe = ge((he) => he.dashboard.filters), Xe = ge((he) => he.filterValues), Re = ge((he) => he.selectedSheetId), nt = A(
8431
8432
  (he) => he.inlineFilterValuesMap[(l == null ? void 0 : l.id) || ""]
8432
8433
  ), xt = A(
8433
8434
  (he) => he.actions.setCardInlineFilterValue
8434
8435
  ), ie = A(
8435
8436
  (he) => he.actions.removeCardInlineFilterValue
8436
8437
  ), ke = X(
8437
- () => l ? uu({
8438
+ () => l ? pu({
8438
8439
  card: l,
8439
8440
  sheetId: Re || "",
8440
8441
  inlineFilterValues: nt,
@@ -8449,7 +8450,7 @@ function Fr({
8449
8450
  ie
8450
8451
  ]
8451
8452
  ), { cardFilters: _e, cardFilterValues: We } = X(
8452
- () => l ? Hh({
8453
+ () => l ? Jh({
8453
8454
  card: l,
8454
8455
  transientContexts: ye,
8455
8456
  filters: Pe,
@@ -8488,7 +8489,7 @@ function Fr({
8488
8489
  w == null ? void 0 : w.slots
8489
8490
  );
8490
8491
  return /* @__PURE__ */ e(
8491
- gu,
8492
+ vu,
8492
8493
  {
8493
8494
  onLoadingStatus: Ae,
8494
8495
  onDataChange: Ne,
@@ -8514,7 +8515,7 @@ function Fr({
8514
8515
  V,
8515
8516
  {
8516
8517
  editing: !0,
8517
- ...xu({
8518
+ ...yu({
8518
8519
  configCard: l,
8519
8520
  slotOrderedCards: E,
8520
8521
  slotTypes: fe,
@@ -8554,7 +8555,7 @@ function Fr({
8554
8555
  }
8555
8556
  ) : /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ n("div", { className: "w-1/2 space-y-3", children: [
8556
8557
  /* @__PURE__ */ e("div", { className: "rounded-md border border-border", children: /* @__PURE__ */ e(
8557
- mu,
8558
+ fu,
8558
8559
  {
8559
8560
  card: o,
8560
8561
  data: j == null ? void 0 : j.records,
@@ -8572,7 +8573,7 @@ function Fr({
8572
8573
  onOpenInEditor: xe,
8573
8574
  showFeedbackButton: !1
8574
8575
  }
8575
- ) }) : /* @__PURE__ */ e("div", { className: "flex h-full min-h-0 flex-col px-4 py-4", children: /* @__PURE__ */ e(hu, { isLoading: i, card: o, data: j == null ? void 0 : j.records }) }) : /* @__PURE__ */ e(
8576
+ ) }) : /* @__PURE__ */ e("div", { className: "flex h-full min-h-0 flex-col px-4 py-4", children: /* @__PURE__ */ e(gu, { isLoading: i, card: o, data: j == null ? void 0 : j.records }) }) : /* @__PURE__ */ e(
8576
8577
  Mn,
8577
8578
  {
8578
8579
  fallbackRender: (Fe) => /* @__PURE__ */ e(
@@ -8751,11 +8752,11 @@ function ir({
8751
8752
  Re.href = Xe, Re.download = `${c.title}.json`, Re.click();
8752
8753
  }
8753
8754
  function me() {
8754
- z && vu(
8755
- yu(
8756
- Nu({
8755
+ z && Cu(
8756
+ wu(
8757
+ Su({
8757
8758
  records: de,
8758
- encoding: gp({
8759
+ encoding: Yp({
8759
8760
  dashboardDefault: u
8760
8761
  })
8761
8762
  }),
@@ -9296,7 +9297,7 @@ function Wi() {
9296
9297
  var N, T, V;
9297
9298
  const t = A(
9298
9299
  (w) => w.card.customCardPreferences
9299
- ), { data: a } = Cu(), r = (a == null ? void 0 : a.plugins) || [], s = A((w) => w.card), o = A((w) => w.frame), { setCustomCardPreferences: c } = Ce(), d = X(
9300
+ ), { data: a } = ku(), r = (a == null ? void 0 : a.plugins) || [], s = A((w) => w.card), o = A((w) => w.frame), { setCustomCardPreferences: c } = Ce(), d = X(
9300
9301
  () => ia(o, s),
9301
9302
  [o, s]
9302
9303
  ), l = d == null ? void 0 : d.customCardPreferences, { components: i, manifest: h } = na(
@@ -9485,7 +9486,7 @@ function Wi() {
9485
9486
  ] })
9486
9487
  ] }) })
9487
9488
  ] }),
9488
- m && k.length > 0 && /* @__PURE__ */ e(ku, { className: "mt-3 border-yellow-500/40 bg-yellow-500/10 text-yellow-900 dark:text-yellow-100", children: /* @__PURE__ */ e(Tu, { children: /* @__PURE__ */ e("ul", { className: "list-disc space-y-1 pl-4 text-xs", children: k.map((w, B) => /* @__PURE__ */ e("li", { children: w.message }, `${w.type}-${B}`)) }) }) }),
9489
+ m && k.length > 0 && /* @__PURE__ */ e(Jc, { className: "mt-3 border-yellow-500/40 bg-yellow-500/10 text-yellow-900 dark:text-yellow-100", children: /* @__PURE__ */ e(Qc, { children: /* @__PURE__ */ e("ul", { className: "list-disc space-y-1 pl-4 text-xs", children: k.map((w, B) => /* @__PURE__ */ e("li", { children: w.message }, `${w.type}-${B}`)) }) }) }),
9489
9490
  u && !m && u.settings && /* @__PURE__ */ e("div", { className: "space-y-3", children: /* @__PURE__ */ e("div", { className: "px-2", children: C({
9490
9491
  settingsSchema: u.settings,
9491
9492
  settingsField: "settings",
@@ -9597,9 +9598,9 @@ function Wi() {
9597
9598
  u.docs.dataSchema && /* @__PURE__ */ n("div", { className: "space-y-2", children: [
9598
9599
  /* @__PURE__ */ e("h4", { className: "text-xs font-semibold uppercase tracking-wide text-muted-foreground", children: "Data Schema" }),
9599
9600
  /* @__PURE__ */ e("div", { className: "prose prose-sm dark:prose-invert prose-pre:bg-muted prose-pre:text-xs max-w-none", children: /* @__PURE__ */ e(
9600
- wu,
9601
+ Tu,
9601
9602
  {
9602
- remarkPlugins: [Su],
9603
+ remarkPlugins: [Du],
9603
9604
  components: Jg,
9604
9605
  children: u.docs.dataSchema
9605
9606
  }
@@ -9804,7 +9805,7 @@ const fa = "__report_default__", Zg = [
9804
9805
  ], ex = (t) => t.charAt(0).toUpperCase() + t.slice(1);
9805
9806
  function tx(t, a) {
9806
9807
  try {
9807
- return Yp(
9808
+ return Lp(
9808
9809
  t,
9809
9810
  a
9810
9811
  ).maximumFractionDigits ?? wn("currency");
@@ -10350,7 +10351,7 @@ function rx(t) {
10350
10351
  var r;
10351
10352
  const a = Ci(
10352
10353
  (r = t == null ? void 0 : t.kpiVisualOptions) == null ? void 0 : r.formatOptions
10353
- ) || (t != null && t.formatNumber ? Ip(t == null ? void 0 : t.formatNumber) : void 0);
10354
+ ) || (t != null && t.formatNumber ? Ep(t == null ? void 0 : t.formatNumber) : void 0);
10354
10355
  return wi(a, { preserveOmittedProperties: !0 }) || {
10355
10356
  type: "number",
10356
10357
  minimumFractionDigits: 0,
@@ -10374,7 +10375,7 @@ function sx() {
10374
10375
  }
10375
10376
  ), s = A(
10376
10377
  (g) => g.actions.setColorRanges
10377
- ), o = Vo() ?? $a.locale, c = Bo() ?? $a.defaultCurrency, d = !Du(t) && Fa(t.config), l = rx(t.preferences), i = !!Ci(
10378
+ ), o = Vo() ?? $a.locale, c = Bo() ?? $a.defaultCurrency, d = !Mu(t) && Fa(t.config), l = rx(t.preferences), i = !!Ci(
10378
10379
  (p = (m = t.preferences) == null ? void 0 : m.kpiVisualOptions) == null ? void 0 : p.formatOptions
10379
10380
  ), h = !nx((x = t.preferences) == null ? void 0 : x.formatNumber) && (i || !!((v = t.preferences) != null && v.formatNumber)), u = (g) => {
10380
10381
  const b = A.getState().card.preferences ?? {};
@@ -10758,7 +10759,7 @@ function ox({
10758
10759
  className: "inline-flex items-center gap-1.5 text-xs font-medium text-primary hover:underline",
10759
10760
  children: [
10760
10761
  "View documentation",
10761
- /* @__PURE__ */ e(Mu, { className: "h-3 w-3" })
10762
+ /* @__PURE__ */ e(Fu, { className: "h-3 w-3" })
10762
10763
  ]
10763
10764
  }
10764
10765
  )
@@ -10864,7 +10865,7 @@ function eo({
10864
10865
  children: [
10865
10866
  /* @__PURE__ */ n("summary", { className: "flex cursor-pointer list-none items-center justify-between gap-4", children: [
10866
10867
  /* @__PURE__ */ e(_, { children: a }),
10867
- /* @__PURE__ */ e(ah, { className: "h-4 w-4" })
10868
+ /* @__PURE__ */ e(nh, { className: "h-4 w-4" })
10868
10869
  ] }),
10869
10870
  /* @__PURE__ */ e("div", { className: "transition-all ease-in-out", children: t })
10870
10871
  ]
@@ -11418,7 +11419,7 @@ function to({
11418
11419
  label: `${t} label`,
11419
11420
  value: a.label ?? "",
11420
11421
  placeholder: s === "subtotal" ? "{member} Total" : "Grand Total",
11421
- hint: s === "subtotal" ? `Use ${Zc} for the group's name.` : void 0,
11422
+ hint: s === "subtotal" ? `Use ${ed} for the group's name.` : void 0,
11422
11423
  onChange: (o) => r({ ...a, label: o || void 0 })
11423
11424
  }
11424
11425
  )
@@ -11432,7 +11433,7 @@ function Er({
11432
11433
  title: o = "NUMBER FORMAT",
11433
11434
  showLocaleOverride: c = !0
11434
11435
  }) {
11435
- const d = fh(r), l = Vo(), i = Bo(), h = wi(
11436
+ const d = gh(r), l = Vo(), i = Bo(), h = wi(
11436
11437
  Vp(t, { preserveOmittedProperties: !0 }),
11437
11438
  { preserveOmittedProperties: !0 }
11438
11439
  ) || {};
@@ -11441,7 +11442,7 @@ function Er({
11441
11442
  {
11442
11443
  formatOptions: h,
11443
11444
  onFormatOptionsChange: (f) => {
11444
- const m = Op(f, {
11445
+ const m = Ip(f, {
11445
11446
  preserveOmittedProperties: !0
11446
11447
  });
11447
11448
  if (!c && m && "locale" in m) {
@@ -11683,7 +11684,7 @@ function bx({
11683
11684
  }, [f, a, t.presentation]);
11684
11685
  const m = s.find((k) => !Ml(k)), p = Jn.safeParse({ version: 1, rules: f }), x = m ? `${m.name || "the new rule"} is incomplete` : p.success ? "" : ((D = p.error.issues[0]) == null ? void 0 : D.message) ?? "the rule is incomplete";
11685
11686
  if (c !== t.spec) {
11686
- const k = [], S = vh(
11687
+ const k = [], S = yh(
11687
11688
  c,
11688
11689
  t.spec,
11689
11690
  { version: 1, rules: s },
@@ -11818,7 +11819,7 @@ function vx({
11818
11819
  }) {
11819
11820
  const [d, l] = U([]), [i, h] = U(""), u = (v) => ci(v, a.spec.source, r), f = (v) => {
11820
11821
  try {
11821
- const g = bh(a, v, s, u, !0);
11822
+ const g = vh(a, v, s, u, !0);
11822
11823
  h(""), l(g.notices), c(g.config, g.notices, g.removedBindings, g.bindings);
11823
11824
  } catch (g) {
11824
11825
  h(
@@ -11832,7 +11833,7 @@ function vx({
11832
11833
  const D = { ...a.presentation[v] };
11833
11834
  if (b === void 0) delete D[g];
11834
11835
  else {
11835
- const k = Xc.safeParse(b);
11836
+ const k = td.safeParse(b);
11836
11837
  if (!k.success) {
11837
11838
  h(k.error.message);
11838
11839
  return;
@@ -11881,7 +11882,7 @@ function vx({
11881
11882
  [v]: a.spec[v].map(
11882
11883
  (y) => y.id === g.id ? F : y
11883
11884
  )
11884
- }), k = u(g.field), S = k === "date" || k === "datetime", R = a.presentation.levelFormats[g.id], O = (R == null ? void 0 : R.type) === "temporal_bucket" ? R : di, I = g.grain ? gh(O, g.grain) : void 0;
11885
+ }), k = u(g.field), S = k === "date" || k === "datetime", R = a.presentation.levelFormats[g.id], O = (R == null ? void 0 : R.type) === "temporal_bucket" ? R : di, I = g.grain ? xh(O, g.grain) : void 0;
11885
11886
  return /* @__PURE__ */ n("div", { className: (t == null ? void 0 : t.kind) === "field" ? "min-w-0" : "min-w-0 border-b pb-2", children: [
11886
11887
  /* @__PURE__ */ e("div", { className: "flex min-w-0 items-center justify-between gap-1", children: /* @__PURE__ */ e("span", { className: "truncate text-xs font-medium", title: b, children: b }) }),
11887
11888
  /* @__PURE__ */ n("details", { open: (t == null ? void 0 : t.kind) === "field" ? !0 : void 0, children: [
@@ -11911,7 +11912,7 @@ function vx({
11911
11912
  { value: "columns", label: "Columns" }
11912
11913
  ],
11913
11914
  onChange: (F) => {
11914
- F !== v && f(xh(a.spec, g.id, F));
11915
+ F !== v && f(bh(a.spec, g.id, F));
11915
11916
  }
11916
11917
  }
11917
11918
  ),
@@ -12183,7 +12184,7 @@ function vx({
12183
12184
  ] });
12184
12185
  }
12185
12186
  function Ir({ fieldId: t, section: a = "table" }) {
12186
- const r = A((l) => l.card), s = A((l) => l.actions.updateCard), o = A((l) => l.matrixSelection), c = Fu(r), d = yh(r);
12187
+ const r = A((l) => l.card), s = A((l) => l.actions.updateCard), o = A((l) => l.matrixSelection), c = Eu(r), d = Nh(r);
12187
12188
  return d.status === "invalid" ? /* @__PURE__ */ e("div", { role: "alert", className: "p-3 text-xs text-destructive", children: "Invalid Matrix configuration. Repair or reset the card definition." }) : d.status === "absent" ? /* @__PURE__ */ e("div", { className: "p-3 text-xs text-muted-foreground", children: "No fields selected" }) : /* @__PURE__ */ e(
12188
12189
  vx,
12189
12190
  {
@@ -12198,7 +12199,7 @@ function Ir({ fieldId: t, section: a = "table" }) {
12198
12199
  )
12199
12200
  })),
12200
12201
  onChange: (l, i, h, u) => {
12201
- const f = Nh(r, { config: l, notices: i, bindings: u });
12202
+ const f = Ch(r, { config: l, notices: i, bindings: u });
12202
12203
  s(r.id, f.card);
12203
12204
  }
12204
12205
  }
@@ -12392,7 +12393,7 @@ function Cx() {
12392
12393
  return ((b = g.comparison) == null ? void 0 : b.mode) === "explicit";
12393
12394
  }
12394
12395
  );
12395
- if (!Ch.includes(r))
12396
+ if (!wh.includes(r))
12396
12397
  return null;
12397
12398
  const l = ((p = t.preferences) == null ? void 0 : p.comparisonPresentation) || {}, i = (g) => a({
12398
12399
  ...t.preferences,
@@ -12476,23 +12477,23 @@ function nc({
12476
12477
  (te) => te.actions.setCardPreferences
12477
12478
  ), u = A(
12478
12479
  (te) => te.actions.updateTableConditionalFormatting
12479
- ), f = ((de = o.config) == null ? void 0 : de.metricColumns) || [], m = t ?? o.type, p = a ?? c, x = o.type === m ? o : { ...o, type: m }, v = Eu(
12480
+ ), f = ((de = o.config) == null ? void 0 : de.metricColumns) || [], m = t ?? o.type, p = a ?? c, x = o.type === m ? o : { ...o, type: m }, v = Iu(
12480
12481
  x,
12481
12482
  p,
12482
12483
  d
12483
- ), g = Iu(
12484
+ ), g = Ou(
12484
12485
  x,
12485
12486
  p
12486
- ), b = m === "matrixTable" || Lu(m), D = m === "table", k = m === "table", S = m === "table" || m === "detailTable", R = k || S, O = ((z = v[0]) == null ? void 0 : z.value) || "", I = Ou(
12487
- Ru(
12487
+ ), b = m === "matrixTable" || Yu(m), D = m === "table", k = m === "table", S = m === "table" || m === "detailTable", R = k || S, O = ((z = v[0]) == null ? void 0 : z.value) || "", I = Au(
12488
+ Pu(
12488
12489
  (W = l == null ? void 0 : l.tablePrefs) == null ? void 0 : W.conditionalFormatting
12489
12490
  ),
12490
- Au(
12491
+ Ru(
12491
12492
  x,
12492
12493
  p,
12493
12494
  d
12494
12495
  )
12495
- ), F = Pu(i), y = Ap(x), C = Rp(x), [P, N] = U("style");
12496
+ ), F = Lu(i), y = Op(x), C = Ap(x), [P, N] = U("style");
12496
12497
  Se(() => {
12497
12498
  if (r === "style") {
12498
12499
  N("style");
@@ -12574,7 +12575,7 @@ function nc({
12574
12575
  ...l,
12575
12576
  tablePrefs: {
12576
12577
  ...i,
12577
- columnVisibility: Vu(
12578
+ columnVisibility: Bu(
12578
12579
  i == null ? void 0 : i.columnVisibility,
12579
12580
  te,
12580
12581
  me
@@ -12593,7 +12594,7 @@ function nc({
12593
12594
  ...l,
12594
12595
  tablePrefs: {
12595
12596
  ...i,
12596
- columnVisibility: Bu()
12597
+ columnVisibility: $u()
12597
12598
  }
12598
12599
  });
12599
12600
  }, J = () => {
@@ -12662,7 +12663,7 @@ function nc({
12662
12663
  ] }),
12663
12664
  /* @__PURE__ */ n(Ot, { value: "style", className: "mt-0", children: [
12664
12665
  /* @__PURE__ */ e(
12665
- Yu,
12666
+ _u,
12666
12667
  {
12667
12668
  style: F,
12668
12669
  onDensityChange: M,
@@ -12697,7 +12698,7 @@ function nc({
12697
12698
  )
12698
12699
  ] }) : null,
12699
12700
  k ? /* @__PURE__ */ e(
12700
- _u,
12701
+ Vu,
12701
12702
  {
12702
12703
  columns: g,
12703
12704
  columnVisibility: i == null ? void 0 : i.columnVisibility,
@@ -13006,7 +13007,7 @@ function Fx() {
13006
13007
  (O = t == null ? void 0 : t.config) == null ? void 0 : O.pivotByColumns,
13007
13008
  (I = t == null ? void 0 : t.config) == null ? void 0 : I.metricColumns,
13008
13009
  r
13009
- ]), x = X(() => $u(), []);
13010
+ ]), x = X(() => qu(), []);
13010
13011
  Se(() => {
13011
13012
  const w = {};
13012
13013
  p.forEach((B, M) => {
@@ -13091,7 +13092,7 @@ function Fx() {
13091
13092
  }
13092
13093
  ) }) }),
13093
13094
  /* @__PURE__ */ e("div", { className: "max-h-[200px] space-y-2 overflow-y-auto pr-1", children: p.map((w, B) => {
13094
- const M = qu(l[w], B), Y = !M;
13095
+ const M = ju(l[w], B), Y = !M;
13095
13096
  return /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
13096
13097
  /* @__PURE__ */ n(
13097
13098
  Nt,
@@ -13536,7 +13537,7 @@ function Ex() {
13536
13537
  }), { setCardPreferences: r, updateCardInFrame: s } = Ce(), o = ct();
13537
13538
  if (!t || ["tornado", "pyramid", "kpi", "treemap"].includes(o))
13538
13539
  return null;
13539
- const c = ju.getAxisInfo(
13540
+ const c = Ku.getAxisInfo(
13540
13541
  o,
13541
13542
  a
13542
13543
  );
@@ -13615,9 +13616,9 @@ function Ix() {
13615
13616
  return (v = (x = (p = (m = f.card) == null ? void 0 : m.preferences) == null ? void 0 : p.chartOptions) == null ? void 0 : x.plugins) == null ? void 0 : v.legend;
13616
13617
  }
13617
13618
  ), { setLegendOptions: s } = Ce();
13618
- if (!t || !Ku(a))
13619
+ if (!t || !zu(a))
13619
13620
  return null;
13620
- const o = zu(a), c = (o == null ? void 0 : o.display) ?? !0, d = (o == null ? void 0 : o.position) ?? "top", l = (o == null ? void 0 : o.align) ?? "center", i = (f, m) => {
13621
+ const o = Uu(a), c = (o == null ? void 0 : o.display) ?? !0, d = (o == null ? void 0 : o.position) ?? "top", l = (o == null ? void 0 : o.align) ?? "center", i = (f, m) => {
13621
13622
  const p = {
13622
13623
  ...r,
13623
13624
  [f]: m
@@ -13685,9 +13686,9 @@ function Ox() {
13685
13686
  var $;
13686
13687
  return ($ = L.card) == null ? void 0 : $.preferences;
13687
13688
  }), { setCardPreferences: o, updateCardInFrame: c } = Ce();
13688
- if (!t || !Uu(a))
13689
+ if (!t || !Gu(a))
13689
13690
  return null;
13690
- const d = a === "bullet" ? ((T = s == null ? void 0 : s.bulletConfig) == null ? void 0 : T.orientation) ?? (((V = s == null ? void 0 : s.chartOptions) == null ? void 0 : V.indexAxis) === "x" ? "vertical" : "horizontal") : void 0, l = d != null ? d === "horizontal" : ((w = s == null ? void 0 : s.chartOptions) == null ? void 0 : w.indexAxis) === "y", i = a === "stackedBar" || a === "stackedLine", h = a === "pie" || a === "doughnut" || a === "polarArea" || a === "funnel", u = a === "bubble" || a === "scatter", f = (M = (B = s == null ? void 0 : s.chartOptions) == null ? void 0 : B.plugins) == null ? void 0 : M.datalabels, m = (f == null ? void 0 : f.display) !== !1 && ((f == null ? void 0 : f.anchor) || (f == null ? void 0 : f.align)), p = Gu(
13691
+ const d = a === "bullet" ? ((T = s == null ? void 0 : s.bulletConfig) == null ? void 0 : T.orientation) ?? (((V = s == null ? void 0 : s.chartOptions) == null ? void 0 : V.indexAxis) === "x" ? "vertical" : "horizontal") : void 0, l = d != null ? d === "horizontal" : ((w = s == null ? void 0 : s.chartOptions) == null ? void 0 : w.indexAxis) === "y", i = a === "stackedBar" || a === "stackedLine", h = a === "pie" || a === "doughnut" || a === "polarArea" || a === "funnel", u = a === "bubble" || a === "scatter", f = (M = (B = s == null ? void 0 : s.chartOptions) == null ? void 0 : B.plugins) == null ? void 0 : M.datalabels, m = (f == null ? void 0 : f.display) !== !1 && ((f == null ? void 0 : f.anchor) || (f == null ? void 0 : f.align)), p = Hu(
13691
13692
  a,
13692
13693
  t.preferences
13693
13694
  ), x = r ?? p, v = (p == null ? void 0 : p.enabled) ?? m ?? !1, g = (r == null ? void 0 : r.enabled) !== void 0 ? r.enabled : v, b = (L, $) => {
@@ -14598,7 +14599,7 @@ function Yx() {
14598
14599
  };
14599
14600
  return !d && !l ? null : /* @__PURE__ */ n(qe, { value: "bubble-scatter-config", children: [
14600
14601
  /* @__PURE__ */ e(je, { 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: [
14601
- /* @__PURE__ */ e(d ? Hu : Oo, { className: "h-3.5 w-3.5 text-foreground/60" }),
14602
+ /* @__PURE__ */ e(d ? Ju : Oo, { className: "h-3.5 w-3.5 text-foreground/60" }),
14602
14603
  /* @__PURE__ */ n("span", { children: [
14603
14604
  d ? "Bubble" : "Scatter",
14604
14605
  " Configuration"
@@ -15036,9 +15037,9 @@ function Vx() {
15036
15037
  }
15037
15038
  function Ln() {
15038
15039
  var d, l;
15039
- const t = A((i) => i.card), { data: a, comparisonMetadata: r } = yt(t), s = (a == null ? void 0 : a.records) || [], { keys: o } = No(s, r), c = o.slice(1).filter((i) => !wh.includes(i));
15040
- if (Ju(t.type)) {
15041
- const i = t.config, h = (d = i == null ? void 0 : i.pivotByColumns) != null && d.length && ((l = i == null ? void 0 : i.groupByColumns) != null && l.length) ? Qu(s, i.metricColumns || []) : s, u = Wu({
15040
+ const t = A((i) => i.card), { data: a, comparisonMetadata: r } = yt(t), s = (a == null ? void 0 : a.records) || [], { keys: o } = No(s, r), c = o.slice(1).filter((i) => !Sh.includes(i));
15041
+ if (Qu(t.type)) {
15042
+ const i = t.config, h = (d = i == null ? void 0 : i.pivotByColumns) != null && d.length && ((l = i == null ? void 0 : i.groupByColumns) != null && l.length) ? Wu(s, i.metricColumns || []) : s, u = Zu({
15042
15043
  card: t,
15043
15044
  cardType: t.type,
15044
15045
  records: h,
@@ -16709,7 +16710,7 @@ function Fb({
16709
16710
  }
16710
16711
  return /* @__PURE__ */ n(On, { className: "h-full w-full text-sm", children: [
16711
16712
  o(),
16712
- /* @__PURE__ */ e(nh, { orientation: "horizontal" })
16713
+ /* @__PURE__ */ e(rh, { orientation: "horizontal" })
16713
16714
  ] });
16714
16715
  }
16715
16716
  const Eb = 32;
@@ -16828,11 +16829,11 @@ function sc({
16828
16829
  listeners: x,
16829
16830
  setNodeRef: v,
16830
16831
  isDragging: g
16831
- } = Zu({
16832
- id: Xu(t),
16832
+ } = Xu({
16833
+ id: em(t),
16833
16834
  data: { origin: r, field: a }
16834
16835
  }), { setNodeRef: b } = Uo({
16835
- id: em(t),
16836
+ id: tm(t),
16836
16837
  data: { kind: "pill", zone: r, pillId: t }
16837
16838
  }), D = ot(
16838
16839
  (k) => {
@@ -16859,7 +16860,7 @@ function sc({
16859
16860
  ...x,
16860
16861
  "aria-label": `Drag ${s}`,
16861
16862
  className: G(
16862
- tm,
16863
+ am,
16863
16864
  "text-muted-foreground hover:text-foreground"
16864
16865
  ),
16865
16866
  onClick: (k) => k.stopPropagation(),
@@ -16878,7 +16879,7 @@ function sc({
16878
16879
  onClick: (k) => {
16879
16880
  k.stopPropagation(), u(h === "asc" ? "desc" : "asc");
16880
16881
  },
16881
- children: h === "asc" ? /* @__PURE__ */ e(am, { className: "h-3 w-3" }) : /* @__PURE__ */ e(nm, { className: "h-3 w-3" })
16882
+ children: h === "asc" ? /* @__PURE__ */ e(nm, { className: "h-3 w-3" }) : /* @__PURE__ */ e(rm, { className: "h-3 w-3" })
16882
16883
  }
16883
16884
  ),
16884
16885
  m && /* @__PURE__ */ e(Dt, { asChild: !0, children: /* @__PURE__ */ e(
@@ -16888,7 +16889,7 @@ function sc({
16888
16889
  "aria-label": "Field configuration",
16889
16890
  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",
16890
16891
  onClick: (k) => k.stopPropagation(),
16891
- children: /* @__PURE__ */ e(rm, { className: "h-3 w-3" })
16892
+ children: /* @__PURE__ */ e(sm, { className: "h-3 w-3" })
16892
16893
  }
16893
16894
  ) }),
16894
16895
  /* @__PURE__ */ e(
@@ -16921,15 +16922,15 @@ function Ob(t, a) {
16921
16922
  const c = a.queryFilterDefinitions.find(
16922
16923
  (i) => i.id === o.filterId
16923
16924
  );
16924
- if (!Jh(o)) return !1;
16925
+ if (!Qh(o)) return !1;
16925
16926
  if (!(r.has(o.filterId) || (c == null ? void 0 : c.kind) === "global-date"))
16926
16927
  return !!(c && Ab(
16927
16928
  [c],
16928
16929
  a.resolvedPrimaryDateField,
16929
16930
  [o]
16930
16931
  ));
16931
- const l = Qh(o);
16932
- return !!(l && Wh({
16932
+ const l = Wh(o);
16933
+ return !!(l && Zh({
16933
16934
  card: t,
16934
16935
  filter: l,
16935
16936
  filterValue: o,
@@ -16943,7 +16944,7 @@ function Ab(t, a, r) {
16943
16944
  const s = a.qualifiedFieldName, o = a.qualifiedEntityName, c = o && a.name ? `${o}.${a.name}` : s;
16944
16945
  return t.some((d) => {
16945
16946
  if (!(Lt(d.dataType || "") === "date")) return !1;
16946
- const i = sm(d, r), h = i.split("."), u = h[h.length - 1] || i, f = h.length > 1 ? h.slice(0, -1).join(".") : void 0, m = d.qualifiedTableName || f, p = m ? `${m}.${u}` : void 0;
16947
+ const i = lm(d, r), h = i.split("."), u = h[h.length - 1] || i, f = h.length > 1 ? h.slice(0, -1).join(".") : void 0, m = d.qualifiedTableName || f, p = m ? `${m}.${u}` : void 0;
16947
16948
  return s ? p ? p === c || p.endsWith(`.${s}`) : u === a.name : p ? p === c : u === a.name;
16948
16949
  });
16949
16950
  }
@@ -17264,7 +17265,7 @@ function Yb({ idx: t }) {
17264
17265
  (i) => i.actions.setCardPreferences
17265
17266
  ), o = (l = a == null ? void 0 : a.chartOptions) == null ? void 0 : l.indexAxis, c = r == null ? void 0 : r.find((i) => i.idx === t);
17266
17267
  function d(i, h) {
17267
- (i === "end" || i === "start") && Sh(kh());
17268
+ (i === "end" || i === "start") && kh(Th());
17268
17269
  const u = {
17269
17270
  display: i !== "none",
17270
17271
  align: i,
@@ -17295,7 +17296,7 @@ function Yb({ idx: t }) {
17295
17296
  }
17296
17297
  }
17297
17298
  return /* @__PURE__ */ n(Nt, { children: [
17298
- /* @__PURE__ */ e(Dt, { children: /* @__PURE__ */ e(lm, { className: "size-4 rotate-[135deg] cursor-pointer text-muted-foreground hover:text-foreground" }) }),
17299
+ /* @__PURE__ */ e(Dt, { children: /* @__PURE__ */ e(om, { className: "size-4 rotate-[135deg] cursor-pointer text-muted-foreground hover:text-foreground" }) }),
17299
17300
  /* @__PURE__ */ e(Ct, { className: "w-fit px-2 py-1", children: /* @__PURE__ */ n("div", { className: "flex gap-1", children: [
17300
17301
  /* @__PURE__ */ e(
17301
17302
  "button",
@@ -17588,7 +17589,7 @@ function qb({
17588
17589
  connection_id: l.connectionId,
17589
17590
  cardConfig: u,
17590
17591
  cardDataSource: l,
17591
- cache_config: om({ card: d }),
17592
+ cache_config: im({ card: d }),
17592
17593
  calendarContext: c
17593
17594
  };
17594
17595
  console.log("requestBody", f);
@@ -17929,7 +17930,7 @@ function Hb({
17929
17930
  ]), xt = $o(
17930
17931
  nt.dataType
17931
17932
  ), ie = X(
17932
- () => Zh({
17933
+ () => Xh({
17933
17934
  fieldId: t.id,
17934
17935
  dataType: t.dataType,
17935
17936
  granularity: t.granularity,
@@ -17997,10 +17998,10 @@ function Hb({
17997
17998
  ) : a === "detailColumns" && P(r, "custom", H);
17998
17999
  }, Fe = (H) => {
17999
18000
  if (a === "groupBy") {
18000
- const Te = Fh(
18001
+ const Te = Eh(
18001
18002
  _e.format,
18002
18003
  H
18003
- ), Z = ap({
18004
+ ), Z = np({
18004
18005
  fieldId: t.id,
18005
18006
  dataType: t.dataType,
18006
18007
  granularity: H,
@@ -18017,13 +18018,13 @@ function Hb({
18017
18018
  ce(H), a === "metrics" && M(r, H);
18018
18019
  }, ua = (H) => {
18019
18020
  y(a, r, H);
18020
- }, _n = im(t);
18021
- cm(t);
18022
- const Ns = dm(t), Vn = t.role === "metric" && Ns, Bn = Ns && (_n === "user_calculated" || _n === "inline_expression" && t.fieldScope !== "domain"), Rt = Bn ? um({
18021
+ }, _n = cm(t);
18022
+ dm(t);
18023
+ const Ns = um(t), Vn = t.role === "metric" && Ns, Bn = Ns && (_n === "user_calculated" || _n === "inline_expression" && t.fieldScope !== "domain"), Rt = Bn ? mm({
18023
18024
  field: t,
18024
18025
  sheetFields: (i == null ? void 0 : i.calculatedFields) || [],
18025
18026
  dashboardFields: x
18026
- }) : void 0, Cs = Bn && (Rt == null ? void 0 : Rt.scope) === "sheet", ws = Bn && (Rt == null ? void 0 : Rt.scope) === "dashboard", Ea = _n === "domain_calculated" || t.fieldScope === "domain", Ss = Ea ? mm(t, v) : void 0, ma = Ea ? "domain" : Cs ? "sheet" : ws ? "dashboard" : "card", tn = Ea ? Ss || t : (Cs || ws) && (Rt != null && Rt.matchedField) ? Rt.matchedField : t, mc = Ea ? Ss ? "effective" : b ? "loading" : D ? "unavailable" : "unverified" : void 0, ks = (H) => {
18027
+ }) : void 0, Cs = Bn && (Rt == null ? void 0 : Rt.scope) === "sheet", ws = Bn && (Rt == null ? void 0 : Rt.scope) === "dashboard", Ea = _n === "domain_calculated" || t.fieldScope === "domain", Ss = Ea ? hm(t, v) : void 0, ma = Ea ? "domain" : Cs ? "sheet" : ws ? "dashboard" : "card", tn = Ea ? Ss || t : (Cs || ws) && (Rt != null && Rt.matchedField) ? Rt.matchedField : t, mc = Ea ? Ss ? "effective" : b ? "loading" : D ? "unavailable" : "unverified" : void 0, ks = (H) => {
18027
18028
  var Te;
18028
18029
  if (Ie(H), a === "metrics") {
18029
18030
  const Z = {
@@ -18042,17 +18043,17 @@ function Hb({
18042
18043
  E(a, r);
18043
18044
  }, $n = Lt(
18044
18045
  nt.dataType || t.dataType
18045
- ), Ts = $n === "date", qn = d === "kpi", jn = a === "detailColumns", Ds = (Bs = l.config) == null ? void 0 : Bs.metricColumns, ha = ($s = l.config) == null ? void 0 : $s.groupByColumns, Ms = hm(l), Fs = ge((H) => H.dashboard), an = ge(
18046
+ ), Ts = $n === "date", qn = d === "kpi", jn = a === "detailColumns", Ds = (Bs = l.config) == null ? void 0 : Bs.metricColumns, ha = ($s = l.config) == null ? void 0 : $s.groupByColumns, Ms = pm(l), Fs = ge((H) => H.dashboard), an = ge(
18046
18047
  (H) => H.semanticExecutionPayload
18047
18048
  ), Kn = a === "groupBy" && ke ? wr(
18048
18049
  ke,
18049
18050
  _e.format,
18050
18051
  F
18051
- ) : a === "detailColumns" ? Rb(ke ?? "day") : [], pc = bt ? "custom" : !ke && a === "groupBy" ? void 0 : Kn.some((H) => H.value === We) ? We : ((qs = Kn[0]) == null ? void 0 : qs.value) ?? "YYYY-MM-DD", fc = !!d && Dh.includes(d), gc = !!d && Mh.includes(d), Es = X(
18052
+ ) : a === "detailColumns" ? Rb(ke ?? "day") : [], pc = bt ? "custom" : !ke && a === "groupBy" ? void 0 : Kn.some((H) => H.value === We) ? We : ((qs = Kn[0]) == null ? void 0 : qs.value) ?? "YYYY-MM-DD", fc = !!d && Mh.includes(d), gc = !!d && Fh.includes(d), Es = X(
18052
18053
  () => ha == null ? void 0 : ha.find((H) => Lt(H.dataType || "") === "date"),
18053
18054
  [ha]
18054
18055
  ), Ht = X(
18055
- () => Xh({
18056
+ () => ep({
18056
18057
  card: l,
18057
18058
  cardConfig: l.config || {},
18058
18059
  semanticExecutionPayload: an
@@ -18077,30 +18078,30 @@ function Hb({
18077
18078
  }, Z = (ue) => ue.conditions.some((Ue) => Lt(Ue.field.dataType || "") === "date" && Te(Ue)) ? !0 : ue.groups.some((Ue) => Z(Ue));
18078
18079
  return Z(H);
18079
18080
  }, [Is, lt]), bc = X(() => {
18080
- const H = ep(
18081
+ const H = tp(
18081
18082
  Ms,
18082
- tp(Fs, an, I)
18083
+ ap(Fs, an, I)
18083
18084
  );
18084
18085
  return Ob(
18085
18086
  l,
18086
18087
  H.status === "ready" ? { status: "ready", ...H.compiledFilters } : H
18087
18088
  );
18088
- }, [l, Ms, Fs, an, I]), Os = xc || bc, Oe = t, dt = ((js = Oe.comparison) == null ? void 0 : js.mode) === "explicit" ? Oe.comparison.spec : void 0, zn = ((zs = (Ks = Oe.parameters) == null ? void 0 : Ks.windowTransform) == null ? void 0 : zs.function) || "none", Mt = pm(Oe), Ft = Mt ? zn : null, Un = fm({
18089
+ }, [l, Ms, Fs, an, I]), Os = xc || bc, Oe = t, dt = ((js = Oe.comparison) == null ? void 0 : js.mode) === "explicit" ? Oe.comparison.spec : void 0, zn = ((zs = (Ks = Oe.parameters) == null ? void 0 : Ks.windowTransform) == null ? void 0 : zs.function) || "none", Mt = fm(Oe), Ft = Mt ? zn : null, Un = gm({
18089
18090
  cardType: d || "table",
18090
18091
  cardConfig: l.config || {},
18091
18092
  metric: Oe,
18092
18093
  transformMode: Ft || "running_total"
18093
- }), Ia = ((Us = Oe.comparison) == null ? void 0 : Us.mode) === "explicit", As = gm(
18094
+ }), Ia = ((Us = Oe.comparison) == null ? void 0 : Us.mode) === "explicit", As = xm(
18094
18095
  ha || []
18095
18096
  ), pa = ((Js = (Hs = (Gs = Oe.parameters) == null ? void 0 : Gs.windowTransform) == null ? void 0 : Hs.orderBy) == null ? void 0 : Js.fieldId) || "", vc = ((Zs = (Ws = (Qs = Oe.parameters) == null ? void 0 : Qs.windowTransform) == null ? void 0 : Ws.orderBy) == null ? void 0 : Zs.direction) || "asc", Rs = As.find(
18096
18097
  (H) => H.id === pa
18097
- ), Gn = Ft === "running_total" || Ft === "moving_average" || Ft === "previous_period_delta", yc = Mt && Gn && !!Rs && Lt(Rs.dataType || "") !== "date", Nc = xm({
18098
+ ), Gn = Ft === "running_total" || Ft === "moving_average" || Ft === "previous_period_delta", yc = Mt && Gn && !!Rs && Lt(Rs.dataType || "") !== "date", Nc = bm({
18098
18099
  cardType: d || "table",
18099
18100
  cardConfig: l.config || {},
18100
18101
  orderByFieldId: pa || void 0
18101
18102
  }), Cc = new Set(
18102
18103
  ((el = (Xs = Oe.parameters) == null ? void 0 : Xs.windowTransform) == null ? void 0 : el.partitionByFieldIds) || Nc
18103
- ), wc = d === "pivotTable" || bm(
18104
+ ), wc = d === "pivotTable" || vm(
18104
18105
  d || "table",
18105
18106
  l.config || {}
18106
18107
  ), Ps = [
@@ -18118,7 +18119,7 @@ function Hb({
18118
18119
  const Mc = a !== "pivotBy" && a !== "sortBy", Fc = Ub(
18119
18120
  a,
18120
18121
  d
18121
- ), Ec = t.memberOrder ?? "auto", Ic = Ts && a === "groupBy" && (!qn || Dc), Oc = !qn && Ts && (a === "groupBy" || jn), Ac = a === "metrics", Rc = !qn && $n === "number" && (a === "groupBy" || jn) && Th(d), nn = fc && !l.sql && !l.python && a === "metrics", Pc = () => {
18122
+ ), Ec = t.memberOrder ?? "auto", Ic = Ts && a === "groupBy" && (!qn || Dc), Oc = !qn && Ts && (a === "groupBy" || jn), Ac = a === "metrics", Rc = !qn && $n === "number" && (a === "groupBy" || jn) && Dh(d), nn = fc && !l.sql && !l.python && a === "metrics", Pc = () => {
18122
18123
  const H = t, Te = a === "metrics" && Vn;
18123
18124
  return /* @__PURE__ */ n("div", { className: "space-y-1", children: [
18124
18125
  !Te && /* @__PURE__ */ e(
@@ -18679,7 +18680,7 @@ function Hb({
18679
18680
  /* @__PURE__ */ n(
18680
18681
  ae,
18681
18682
  {
18682
- value: Pp(Oe),
18683
+ value: Rp(Oe),
18683
18684
  disabled: !!Oe.semanticComparisonPolarity,
18684
18685
  onValueChange: (Z) => q(
18685
18686
  r,
@@ -19163,13 +19164,13 @@ function _a({
19163
19164
  hasPivotColumns: d = !1
19164
19165
  }) {
19165
19166
  const { setNodeRef: l } = Uo({
19166
- id: ym(a),
19167
+ id: Nm(a),
19167
19168
  data: {
19168
19169
  kind: "shelf",
19169
19170
  zone: a,
19170
19171
  pillIds: r.map((S) => S.id)
19171
19172
  }
19172
- }), i = Jc(a), { updateSortByColumn: h } = Ce(), u = A((S) => S.card), f = A((S) => S.card.type), m = r.length > 0, p = i !== null, x = (i == null ? void 0 : i.kind) !== "refused", v = (i == null ? void 0 : i.kind) === "refused" ? vm(i.notice, s) : null, g = ot((S, R) => {
19173
+ }), i = Wc(a), { updateSortByColumn: h } = Ce(), u = A((S) => S.card), f = A((S) => S.card.type), m = r.length > 0, p = i !== null, x = (i == null ? void 0 : i.kind) !== "refused", v = (i == null ? void 0 : i.kind) === "refused" ? ym(i.notice, s) : null, g = ot((S, R) => {
19173
19174
  var I;
19174
19175
  !((I = u.config) != null && I.sortByColumns) || u.config.sortByColumns.findIndex(
19175
19176
  (F) => F.id === S
@@ -19248,7 +19249,7 @@ function ev({
19248
19249
  pillId: a,
19249
19250
  isLast: r
19250
19251
  }) {
19251
- const s = Qc(t, a, r);
19252
+ const s = Zc(t, a, r);
19252
19253
  return s ? /* @__PURE__ */ n(
19253
19254
  "div",
19254
19255
  {
@@ -19292,7 +19293,7 @@ function av({
19292
19293
  }
19293
19294
  ), x = ca(f, p) === "multiple";
19294
19295
  x && ((de = f == null ? void 0 : f.customCardPreferences) != null && de.url);
19295
- const v = wp(p == null ? void 0 : p.slots);
19296
+ const v = Cp(p == null ? void 0 : p.slots);
19296
19297
  A(
19297
19298
  (z) => z.actions.updateCardConfig
19298
19299
  );
@@ -19397,7 +19398,7 @@ function av({
19397
19398
  onClick: () => i(!0),
19398
19399
  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",
19399
19400
  children: [
19400
- /* @__PURE__ */ e(Nm, { className: "mr-2 h-4 w-4" }),
19401
+ /* @__PURE__ */ e(Cm, { className: "mr-2 h-4 w-4" }),
19401
19402
  "Create Metric"
19402
19403
  ]
19403
19404
  }
@@ -19650,7 +19651,7 @@ function rv({ onEditJoins: t }) {
19650
19651
  onClick: t,
19651
19652
  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",
19652
19653
  "aria-label": "Edit resolved joins",
19653
- children: /* @__PURE__ */ e(Cm, { className: "h-3 w-3", strokeWidth: 1.75 })
19654
+ children: /* @__PURE__ */ e(wm, { className: "h-3 w-3", strokeWidth: 1.75 })
19654
19655
  }
19655
19656
  )
19656
19657
  ] });
@@ -19712,7 +19713,7 @@ function sv({
19712
19713
  "aria-label": "Hide chart configuration",
19713
19714
  onClick: c,
19714
19715
  className: "h-7 w-7 rounded-[5px] p-0 text-muted-foreground hover:text-foreground",
19715
- children: /* @__PURE__ */ e(wm, { className: "h-4 w-4", strokeWidth: 1.75 })
19716
+ children: /* @__PURE__ */ e(Sm, { className: "h-4 w-4", strokeWidth: 1.75 })
19716
19717
  }
19717
19718
  ) })
19718
19719
  ] }),
@@ -19944,7 +19945,7 @@ function iv({
19944
19945
  if (y.latestValue && P === "=")
19945
19946
  return `${C} = ${ti} /* the latest value each time the card runs */`;
19946
19947
  if (y.relativeMeta && (P === "between" || P === "not between")) {
19947
- const T = P === "between" ? "BETWEEN" : "NOT BETWEEN", { label: V, range: w } = Sm(y.relativeMeta, {
19948
+ const T = P === "between" ? "BETWEEN" : "NOT BETWEEN", { label: V, range: w } = km(y.relativeMeta, {
19948
19949
  tz: (v == null ? void 0 : v.tz) ?? "UTC",
19949
19950
  weekStart: (v == null ? void 0 : v.weekStart) ?? 1,
19950
19951
  anchor: (v == null ? void 0 : v.anchor) ?? "now"
@@ -20059,7 +20060,7 @@ function dv({
20059
20060
  ),
20060
20061
  children: [
20061
20062
  i ? /* @__PURE__ */ e(cv, { className: "w-auto min-w-0 flex-1 text-left text-[12px]", children: i }) : /* @__PURE__ */ e("span", { className: "min-w-0 flex-1 truncate text-left", children: s }),
20062
- /* @__PURE__ */ e(km, { className: "h-3.5 w-3.5 shrink-0 opacity-50" })
20063
+ /* @__PURE__ */ e(Tm, { className: "h-3.5 w-3.5 shrink-0 opacity-50" })
20063
20064
  ]
20064
20065
  }
20065
20066
  ) }),
@@ -20104,10 +20105,10 @@ function oc(t) {
20104
20105
  }),
20105
20106
  [r, a, t, s]
20106
20107
  ), c = X(
20107
- () => Tm({ filter: o }),
20108
+ () => Dm({ filter: o }),
20108
20109
  [o]
20109
20110
  );
20110
- return Dm(o, {
20111
+ return Mm(o, {
20111
20112
  inputContext: c,
20112
20113
  currentSelectionPolicy: "exclude"
20113
20114
  });
@@ -20285,12 +20286,12 @@ function hv({
20285
20286
  onChange: o,
20286
20287
  className: c
20287
20288
  }) {
20288
- const d = Mm(), l = Fm(), i = a === "between" || a === "not between", h = X(() => {
20289
+ const d = Fm(), l = Em(), i = a === "between" || a === "not between", h = X(() => {
20289
20290
  if (!i || !r) return;
20290
20291
  const g = l(r);
20291
20292
  return {
20292
20293
  ...g,
20293
- tooltip: g.dates ? void 0 : ho(r) ? Em : Im
20294
+ tooltip: g.dates ? void 0 : ho(r) ? Im : Om
20294
20295
  };
20295
20296
  }, [i, r, l]), u = X(() => {
20296
20297
  if (i) {
@@ -20308,9 +20309,9 @@ function hv({
20308
20309
  if (!t || i || s) return;
20309
20310
  const g = Array.isArray(t) ? t[0] : t;
20310
20311
  return Xn(g, d, "start");
20311
- }, [t, i, s, d]), m = (g) => a === "<=" || a === ">" ? rp(g, d) : sp(g, d);
20312
+ }, [t, i, s, d]), m = (g) => a === "<=" || a === ">" ? sp(g, d) : lp(g, d);
20312
20313
  return /* @__PURE__ */ e(
20313
- Om,
20314
+ Am,
20314
20315
  {
20315
20316
  value: i ? u : void 0,
20316
20317
  selectionMode: i ? "range" : "single",
@@ -20328,7 +20329,7 @@ function hv({
20328
20329
  o({ value: "" });
20329
20330
  return;
20330
20331
  }
20331
- const b = m(g), D = np(b, a, {
20332
+ const b = m(g), D = rp(b, a, {
20332
20333
  timezone: d
20333
20334
  });
20334
20335
  o({ value: typeof D == "string" ? D : D.toISOString() });
@@ -20346,7 +20347,7 @@ function hv({
20346
20347
  relativeValue: i ? r : void 0,
20347
20348
  relativeSummary: h,
20348
20349
  supplementalFooter: i ? /* @__PURE__ */ n("p", { className: "flex items-center gap-1.5 border-t border-border px-3 py-2 text-[11px] text-muted-foreground", children: [
20349
- /* @__PURE__ */ e(Am, { className: "h-3 w-3 shrink-0", "aria-hidden": "true" }),
20350
+ /* @__PURE__ */ e(Rm, { className: "h-3 w-3 shrink-0", "aria-hidden": "true" }),
20350
20351
  "Presets and Relative update each time the card runs. Static dates stay fixed."
20351
20352
  ] }) : void 0,
20352
20353
  timezone: d,
@@ -21102,7 +21103,7 @@ function Sv({
21102
21103
  placeField: a,
21103
21104
  previewFieldPlacement: r
21104
21105
  }) {
21105
- const [s] = U(Rm), o = Le(null), c = ot(() => {
21106
+ const [s] = U(Pm), o = Le(null), c = ot(() => {
21106
21107
  o.current = null, s.set(null);
21107
21108
  }, [s]), d = ot((u) => {
21108
21109
  c();
@@ -21309,8 +21310,8 @@ function Av({
21309
21310
  effectiveCardType: a = t.type,
21310
21311
  queryResultColumns: r
21311
21312
  }) {
21312
- return es(a) ? /* @__PURE__ */ n(Pm, { modal: !1, children: [
21313
- /* @__PURE__ */ e(Lm, { asChild: !0, children: /* @__PURE__ */ e(
21313
+ return es(a) ? /* @__PURE__ */ n(Lm, { modal: !1, children: [
21314
+ /* @__PURE__ */ e(Ym, { asChild: !0, children: /* @__PURE__ */ e(
21314
21315
  it,
21315
21316
  {
21316
21317
  tooltip: "Table settings",
@@ -21323,14 +21324,14 @@ function Av({
21323
21324
  }
21324
21325
  ) }),
21325
21326
  /* @__PURE__ */ n(
21326
- Ym,
21327
+ _m,
21327
21328
  {
21328
21329
  side: "right",
21329
21330
  hideOverlay: !0,
21330
21331
  className: "flex w-[420px] flex-col gap-0 p-0 sm:max-w-[420px]",
21331
21332
  children: [
21332
- /* @__PURE__ */ e(_m, { className: "sr-only", children: "Table settings" }),
21333
- /* @__PURE__ */ e(Vm, { className: "sr-only", children: "Configure table presentation and conditional formatting." }),
21333
+ /* @__PURE__ */ e(Vm, { className: "sr-only", children: "Table settings" }),
21334
+ /* @__PURE__ */ e(Bm, { className: "sr-only", children: "Configure table presentation and conditional formatting." }),
21334
21335
  /* @__PURE__ */ n("div", { className: "border-b px-4 py-3", children: [
21335
21336
  /* @__PURE__ */ e("div", { className: "text-[13px] font-semibold text-foreground", children: "Table settings" }),
21336
21337
  /* @__PURE__ */ e("div", { className: "mt-0.5 text-[11px] text-muted-foreground", children: "Settings apply to this table and document exports that reuse it." })
@@ -21352,7 +21353,7 @@ function Rv({
21352
21353
  className: t,
21353
21354
  visible: a
21354
21355
  }) {
21355
- const r = ge((l) => l.selectedFrameId), s = Bm((l) => l.selectedVisual), o = A((l) => l.frame), d = !!!(o != null && o.visualId || s != null && s.id) && !!r;
21356
+ const r = ge((l) => l.selectedFrameId), s = $m((l) => l.selectedVisual), o = A((l) => l.frame), d = !!!(o != null && o.visualId || s != null && s.id) && !!r;
21356
21357
  return !a || d ? null : /* @__PURE__ */ e("div", { className: G("flex", t), children: /* @__PURE__ */ e(
21357
21358
  bi,
21358
21359
  {
@@ -21446,7 +21447,7 @@ function Pv({
21446
21447
  });
21447
21448
  }, Ne = X(() => {
21448
21449
  var fe;
21449
- return $m((fe = o.config) == null ? void 0 : fe.sortByColumns);
21450
+ return qm((fe = o.config) == null ? void 0 : fe.sortByColumns);
21450
21451
  }, [(Ye = o.config) == null ? void 0 : Ye.sortByColumns]), Ae = ni(
21451
21452
  Qa(s) || null
21452
21453
  );
@@ -21464,7 +21465,7 @@ function Pv({
21464
21465
  ) }),
21465
21466
  P === "kpi" && /* @__PURE__ */ e(Rv, { visible: !0, className: "self-center" }),
21466
21467
  E && o.type !== "table" && /* @__PURE__ */ e(
21467
- qm,
21468
+ jm,
21468
21469
  {
21469
21470
  metadata: E,
21470
21471
  variant: "compact"
@@ -21472,9 +21473,9 @@ function Pv({
21472
21473
  )
21473
21474
  ] }),
21474
21475
  /* @__PURE__ */ n("div", { className: "flex grow items-center justify-end gap-1", children: [
21475
- !jm(P) && /* @__PURE__ */ e(Dv, {}),
21476
+ !Km(P) && /* @__PURE__ */ e(Dv, {}),
21476
21477
  /* @__PURE__ */ e(
21477
- Km,
21478
+ zm,
21478
21479
  {
21479
21480
  cardId: s.id,
21480
21481
  cardFilters: Qa(s),
@@ -21694,7 +21695,7 @@ function Lv({ activeField: t }) {
21694
21695
  );
21695
21696
  }
21696
21697
  function Yv() {
21697
- const { active: t } = zm(), a = t == null ? void 0 : t.data.current;
21698
+ const { active: t } = Um(), a = t == null ? void 0 : t.data.current;
21698
21699
  return /* @__PURE__ */ e(Lv, { activeField: (a == null ? void 0 : a.field) ?? null });
21699
21700
  }
21700
21701
  const _v = () => {
@@ -21761,7 +21762,7 @@ function Vv() {
21761
21762
  activeCardId: m.activeCardId,
21762
21763
  placeField: y,
21763
21764
  previewFieldPlacement: C
21764
- }), E = X(() => Um(), []), L = (Q, de) => {
21765
+ }), E = X(() => Gm(), []), L = (Q, de) => {
21765
21766
  de && D(Q, de);
21766
21767
  }, $ = (Q) => {
21767
21768
  k(Q);
@@ -21783,7 +21784,7 @@ function Vv() {
21783
21784
  onDragEnd: M,
21784
21785
  onDragCancel: Y,
21785
21786
  children: [
21786
- /* @__PURE__ */ n(Wc.Provider, { value: T, children: [
21787
+ /* @__PURE__ */ n(Xc.Provider, { value: T, children: [
21787
21788
  /* @__PURE__ */ n("div", { className: "flex h-full grow", children: [
21788
21789
  /* @__PURE__ */ e(
21789
21790
  Oi,
@@ -21851,7 +21852,7 @@ function Vv() {
21851
21852
  }
21852
21853
  )
21853
21854
  ] }),
21854
- /* @__PURE__ */ e(Gm, { dropAnimation: null, children: /* @__PURE__ */ e(Yv, {}) })
21855
+ /* @__PURE__ */ e(Hm, { dropAnimation: null, children: /* @__PURE__ */ e(Yv, {}) })
21855
21856
  ]
21856
21857
  }
21857
21858
  );
@@ -21889,7 +21890,7 @@ function Bv({ authToken: t, onSave: a, onClose: r }) {
21889
21890
  }
21890
21891
  return (
21891
21892
  // Everything the editor renders is its preview (tech spec M7).
21892
- /* @__PURE__ */ e(Hm, { children: /* @__PURE__ */ e(Mn, { FallbackComponent: Jm, children: s ? /* @__PURE__ */ e(
21893
+ /* @__PURE__ */ e(Jm, { children: /* @__PURE__ */ e(Mn, { FallbackComponent: Qm, children: s ? /* @__PURE__ */ e(
21893
21894
  "section",
21894
21895
  {
21895
21896
  className: "isolate flex h-full grow",
@@ -21908,11 +21909,11 @@ function Bv({ authToken: t, onSave: a, onClose: r }) {
21908
21909
  ) }) })
21909
21910
  );
21910
21911
  }
21911
- function by() {
21912
+ function vy() {
21912
21913
  ge((p) => p.selectedCardId);
21913
21914
  const t = ge((p) => p.selectedSheetId), a = ge((p) => p.dashboard), { setIsVisualEditing: r, setSelectedSheetId: s } = ge(
21914
21915
  (p) => p.actions
21915
- ), o = A((p) => p.editorContext), { clearEditorContext: c } = A((p) => p.actions), d = Qm(), l = Br(), i = ge((p) => p.isVisualEditing), h = ge((p) => p.actions.updateFrame), u = Wm();
21916
+ ), o = A((p) => p.editorContext), { clearEditorContext: c } = A((p) => p.actions), d = Wm(), l = Br(), i = ge((p) => p.isVisualEditing), h = ge((p) => p.actions.updateFrame), u = Zm();
21916
21917
  async function f(p) {
21917
21918
  var D, k, S;
21918
21919
  if ((o == null ? void 0 : o.type) === "documentSection") {
@@ -21931,7 +21932,7 @@ function by() {
21931
21932
  }
21932
21933
  )) == null ? void 0 : S.id, g = x ? t : v || null;
21933
21934
  if (!g) return;
21934
- const b = lp(a, p.id);
21935
+ const b = op(a, p.id);
21935
21936
  try {
21936
21937
  const R = await u(p, {
21937
21938
  previousFrame: b
@@ -21965,5 +21966,5 @@ function by() {
21965
21966
  );
21966
21967
  }
21967
21968
  export {
21968
- by as default
21969
+ vy as default
21969
21970
  };