react-semaphor 0.1.587 → 0.1.588

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 (93) hide show
  1. package/dist/analytics-protocol/index.js +341 -338
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/assistant-protocol/index.js +5 -5
  4. package/dist/brand-studio/index.js +8 -8
  5. package/dist/briefings/index.js +5 -5
  6. package/dist/chunks/{add-to-dashboard-DhP8wVtM.js → add-to-dashboard-C86FsM8D.js} +1 -1
  7. package/dist/chunks/{aggregate-measure-field-DsFXETpI.js → aggregate-measure-field-BrkXsSJp.js} +2 -2
  8. package/dist/chunks/{analytics-base-schemas-BaIQrEzX.js → analytics-base-schemas-8wz9vqn_.js} +173 -165
  9. package/dist/chunks/{assistant-chat-pfJK-T0b.js → assistant-chat-BeM6joPc.js} +19 -18
  10. package/dist/chunks/{bookmark-impact-BSpGQL1M.js → bookmark-impact-B7pbMx2e.js} +2 -2
  11. package/dist/chunks/{bookmark-state-CL4WEpgB.js → bookmark-state-Bn7k3ttp.js} +5 -5
  12. package/dist/chunks/{card-filter-builder-C8PbhHjq.js → card-filter-builder-DmodrhyI.js} +81 -81
  13. package/dist/chunks/{comparison-window-caption-CoART8BC.js → comparison-window-caption-fqijZdVd.js} +451 -395
  14. package/dist/chunks/{context-BTLBjQNh.js → context-CVXTFljo.js} +1 -1
  15. package/dist/chunks/{dashboard-CVj1oMoW.js → dashboard-Tu5wT0Cw.js} +1 -1
  16. package/dist/chunks/{dashboard-briefing-launcher-TqA58rKz.js → dashboard-briefing-launcher-D8jMxIJo.js} +249 -265
  17. package/dist/chunks/{dashboard-controls-DQ8FsxAz.js → dashboard-controls-uzeAIEkM.js} +65 -65
  18. package/dist/chunks/{dashboard-json-DM88pmk2.js → dashboard-json-i5rpFNCg.js} +5 -5
  19. package/dist/chunks/dates-BunbHJH0.js +115 -0
  20. package/dist/chunks/{edit-dashboard-visual-BpRnU_6G.js → edit-dashboard-visual-BpEK_Sls.js} +2357 -2344
  21. package/dist/chunks/{filter-line-Cu2u1K36.js → filter-line-Dza3ee4w.js} +5 -5
  22. package/dist/chunks/{filter-reach-copy-0Xp97cLk.js → filter-reach-copy-D5AmDHda.js} +944 -942
  23. package/dist/chunks/{filter-value-text-xefXzZlf.js → filter-value-text-DQw4v3nC.js} +6 -6
  24. package/dist/chunks/{index-D_QSeVKy.js → index-dGxJTaP1.js} +39 -39
  25. package/dist/chunks/{layout-grid-9nSS2SL-.js → layout-grid-XCYphks2.js} +1 -1
  26. package/dist/chunks/{list-filter-CfMPI6v4.js → list-filter-DGV3fqqv.js} +1 -1
  27. package/dist/chunks/{matrix-analytical-definition-DOVSFFuf.js → matrix-analytical-definition-SN0JUJVk.js} +3 -3
  28. package/dist/chunks/{matrix-member-presentation-BKDyxJho.js → matrix-member-presentation-DVBJR0MA.js} +1 -1
  29. package/dist/chunks/{matrix-operation-contract-BM5TveR3.js → matrix-operation-contract-JSmproo9.js} +15 -15
  30. package/dist/chunks/{metric-comparison-ZmurmEIs.js → metric-comparison-xE_J6hkg.js} +2 -2
  31. package/dist/chunks/{paintbrush-LzAje2ff.js → paintbrush-DEEZXhDj.js} +1 -1
  32. package/dist/chunks/{palette-DicJG0TC.js → palette-Bgy0H-Nt.js} +1 -1
  33. package/dist/chunks/{pivot-header-presentation-CdeTU96P.js → pivot-header-presentation-D-DfPAjb.js} +1 -1
  34. package/dist/chunks/{pivot-result-contract-expectations-Bx_BCu-7.js → pivot-result-contract-expectations-DbBahmgc.js} +545 -536
  35. package/dist/chunks/{pivot-result-identity-Bvs6Uq3v.js → pivot-result-identity-CUsMt_4r.js} +1 -1
  36. package/dist/chunks/{raw-temporal-value-DH-feMc2.js → raw-temporal-value-BnGCWJAL.js} +1 -1
  37. package/dist/chunks/{report-preferences-dialog-CXKmWyLm.js → report-preferences-dialog-CTM0xfd0.js} +14 -14
  38. package/dist/chunks/{report-runtime-context-NlOXwyRB.js → report-runtime-context-CrOgmuxO.js} +2 -2
  39. package/dist/chunks/{resolve-dashboard-input-context-zEXuitoF.js → resolve-dashboard-input-context-DFBIngUZ.js} +5617 -5485
  40. package/dist/chunks/{save-0wu1Z1U7.js → save-xnRCvMeA.js} +1 -1
  41. package/dist/chunks/{saved-dashboard-context-Cll5LipJ.js → saved-dashboard-context-DKMTP9ib.js} +17 -17
  42. package/dist/chunks/selection-filter-compiler-DkIjp1yH.js +131 -0
  43. package/dist/chunks/{semaphor-ready-indicator-Bnj3H0Dm.js → semaphor-ready-indicator-zU9reNmX.js} +45952 -45617
  44. package/dist/chunks/{shelf-drop-preview-context-B8rmn6BD.js → shelf-drop-preview-context-R9sf4oDX.js} +6 -6
  45. package/dist/chunks/{stored-dashboard-CURqJgoa.js → stored-dashboard-CksluF2S.js} +1539 -1404
  46. package/dist/chunks/{style-sheet-parts-_dGSFzDi.js → style-sheet-parts-D7NbsFL0.js} +3 -3
  47. package/dist/chunks/{table-export-sheet-Dmtqi5NV.js → table-export-sheet-ClSgERQC.js} +1 -1
  48. package/dist/chunks/{token-types-DEe_FP4l.js → token-types-DTocOcwt.js} +1 -1
  49. package/dist/chunks/{upload-CtyOkU_B.js → upload-BXGgYS4g.js} +1 -1
  50. package/dist/chunks/{validators-CJ8Jh0E8.js → validators-CrYXNnNE.js} +51 -49
  51. package/dist/chunks/{variable-draft-DIv-9y6Q.js → variable-draft-rbtGPvmX.js} +16 -14
  52. package/dist/chunks/visual-choice-DDfHfHvY.js +172 -0
  53. package/dist/dashboard/index.js +2 -2
  54. package/dist/dashboard-authoring/index.js +821 -791
  55. package/dist/format-utils/index.js +162 -158
  56. package/dist/index.js +21 -21
  57. package/dist/report-runtime-context/index.js +2 -2
  58. package/dist/style.css +1 -1
  59. package/dist/surfboard/index.js +2 -2
  60. package/dist/types/index.js +5 -5
  61. package/dist/types/lib/dashboard-view-state/card-view-state.d.ts +39 -2
  62. package/dist/types/lib/dashboard-view-state/date-zoom.d.ts +65 -0
  63. package/dist/types/lib/dashboard-view-state/grain-pick.d.ts +38 -0
  64. package/dist/types/lib/dashboard-view-state/index.d.ts +2 -0
  65. package/dist/types/lib/formatters/grouped-temporal-presentation.d.ts +6 -2
  66. package/dist/types/lib/hooks/interactions/use-drill-actions.d.ts +1 -1
  67. package/dist/types/lib/interactions/get-click-context-from-table.d.ts +2 -2
  68. package/dist/types/lib/query-context/assemble-card-query.d.ts +2 -1
  69. package/dist/types/lib/query-context/build-card-query-context.d.ts +15 -1
  70. package/dist/types/lib/query-context/describe-card-execution-snapshot.d.ts +3 -0
  71. package/dist/types/lib/query-context/resolve-runtime-card-filters.d.ts +14 -1
  72. package/dist/types/lib/stores/dashboard-store.d.ts +7 -1
  73. package/dist/types/lib/types/explorer-types.d.ts +13 -0
  74. package/dist/types/lib/utils/card-config-utils.d.ts +1 -1
  75. package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +32 -0
  76. package/dist/types/shared/analytics-protocol/contracts.d.ts +30 -0
  77. package/dist/types/shared/analytics-protocol/filter-field-ownership.d.ts +13 -0
  78. package/dist/types/shared/dashboard-authoring/automatic-grain.d.ts +77 -0
  79. package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +1 -0
  80. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +13 -8
  81. package/dist/types/shared/dashboard-authoring/control-value-resolution.d.ts +24 -0
  82. package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
  83. package/dist/types/shared/dashboard-authoring/kpi-trend-rule.d.ts +6 -29
  84. package/dist/types/shared/dashboard-authoring/variable-draft.d.ts +1 -0
  85. package/dist/types/shared/format-utils/index.d.ts +1 -0
  86. package/dist/types/shared/format-utils/partial-period.d.ts +40 -0
  87. package/dist/types/shared/format-utils/temporal-bucket.d.ts +11 -0
  88. package/dist/types/shared/usage-events/details.d.ts +2 -2
  89. package/dist/usage-events/index.js +1 -1
  90. package/package.json +1 -1
  91. package/dist/chunks/dates-5z3b9Loo.js +0 -136
  92. package/dist/chunks/selection-filter-compiler-BReJy-uv.js +0 -92
  93. package/dist/chunks/visual-choice-BBPizkRo.js +0 -206
@@ -1,36 +1,36 @@
1
1
  var _s = Object.defineProperty;
2
2
  var Cs = (e, a, t) => a in e ? _s(e, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[a] = t;
3
3
  var lt = (e, a, t) => Cs(e, typeof a != "symbol" ? a + "" : a, t);
4
- import { _ as $s, $ as ws, a0 as xs, a1 as Ss, a2 as ks, a3 as qa, a4 as Ie, a5 as Ts, a6 as he, a7 as $e, a8 as la, a9 as ot, aa as Na, ab as Q, ac as U, ad as Ee, ae as Rs, af as As, ag as Ft, ah as Fs, ai as Ds, aj as Os, ak as Es, al as qs, am as Ns, an as Pa, ao as Ps, ap as Ls, aq as Ms, ar as Bs, as as Vs, at as Ks, au as js, av as ca, aw as La, ax as ua, ay as we, az as be, aA as qe, aB as Ws, aC as Gs, aD as Us, o as Xe, aE as Qs, aF as Hs, aG as _t, aH as Ze, aI as zs, aJ as Ys, aK as Ma, aL as Dt, aM as Ct, aN as Js, aO as Xs, aP as Zs, aQ as ie, aR as Ba, aS as Va, aT as ct, aU as eo, aV as to, aW as fa, aX as $t, aY as ao, aZ as ma, a_ as so, a$ as ha, b0 as pa, b1 as et, b2 as ga, b3 as Fe, b4 as oo, b5 as He, m as no, b6 as Ka, b7 as io, b8 as ro, b9 as lo, ba as ja, a as co, bb as uo, bc as fo, bd as mo, be as ho, bf as po, bg as go, bh as bo, bi as yo, bj as vo, bk as Io, bl as _o, bm as ba, bn as Co, bo as $o, bp as wo, bq as xo, br as So, bs as ko, bt as To, bu as Ro, bv as Ao, bw as Fo, bx as Do, by as Oo } from "../chunks/resolve-dashboard-input-context-zEXuitoF.js";
5
- import { dF as Vr, bQ as Kr, dh as jr, di as Wr, dx as Gr, dw as Ur, dr as Qr, eB as Hr, dy as zr, dz as Yr, d$ as Jr, cX as Xr, cY as Zr, cZ as ed, cU as td, cV as ad, cW as sd, cQ as od, cR as nd, cT as id, cS as rd, c_ as dd, dV as ld, dj as cd, cc as ud, e4 as fd, e5 as md, cb as hd, db as pd, dH as gd, cl as bd, eD as yd, c2 as vd, dY as Id, dK as _d, e6 as Cd, f2 as $d, fd as wd, f6 as xd, du as Sd, dv as kd, ci as Td, eN as Rd, eL as Ad, eM as Fd, bM as Dd, eZ as Od, dJ as Ed, co as qd, dQ as Nd, ch as Pd, fh as Ld, fi as Md, eq as Bd, dI as Vd, eQ as Kd, fm as jd, cF as Wd, f7 as Gd, dq as Ud, cj as Qd, ee as Hd, ef as zd, c$ as Yd, cG as Jd, dX as Xd, bG as Zd, e0 as el, eo as tl, dM as al, fr as sl, eR as ol, bH as nl, bP as il, e9 as rl, cA as dl, fk as ll, er as cl, dP as ul, ep as fl, d_ as ml, da as hl, d9 as pl, cg as gl, dW as bl, b_ as yl, c4 as vl, dU as Il, cJ as _l, cL as Cl, cx as $l, bE as wl, f8 as xl, fc as Sl, cp as kl, e3 as Tl, e1 as Rl, ek as Al, bI as Fl, es as Dl, e_ as Ol, dD as El, dE as ql, fn as Nl, fo as Pl, fq as Ll, cK as Ml, b$ as Bl, c0 as Vl, c1 as Kl, ck as jl, cm as Wl, fj as Gl, ey as Ul, de as Ql, f as Hl, cP as zl, c9 as Yl, cu as Jl, b as Xl, cM as Zl, df as ec, bS as tc, bT as ac, dO as sc, c8 as oc, eb as nc, cq as ic, bz as rc, cd as dc, ds as lc, bW as cc, dC as uc, c3 as fc, d5 as mc, eO as hc, fp as pc, bN as gc, d7 as bc, ec as yc, d8 as vc, eg as Ic, eG as _c, eF as Cc, dR as $c, cC as wc, ct as xc, cv as Sc, l as kc, cw as Tc, ew as Rc, dA as Ac, dN as Fc, bA as Dc, bB as Oc, bC as Ec, bJ as qc, f4 as Nc, e$ as Pc, dG as Lc, f0 as Mc, cz as Bc, ce as Vc, cI as Kc, dB as jc, ev as Wc, dc as Gc, dd as Uc, bR as Qc, fl as Hc, dL as zc, et as Yc, dg as Jc, eK as Xc, eI as Zc, J as eu, f3 as tu, c7 as au, f9 as su, fa as ou, dn as nu, cO as iu, bV as ru, e2 as du, dZ as lu, bD as cu, cD as uu, cE as fu, cf as mu, d1 as hu, bZ as pu, c5 as gu, c6 as bu, dk as yu, dl as vu, ca as Iu, bK as _u, bY as Cu, d3 as $u, eE as wu, eA as xu, fb as Su, d4 as ku, d2 as Tu, fe as Ru, bU as Au, eC as Fu, cB as Du, ez as Ou, cN as Eu, ed as qu, eP as Nu, dm as Pu, cy as Lu, dt as Mu, bF as Bu, bX as Vu, dS as Ku, eJ as ju, ea as Wu, cH as Gu, d6 as Uu, bO as Qu, dT as Hu, ff as zu, e8 as Yu, e7 as Ju, ex as Xu, eH as Zu, cn as ef, cs as tf, bL as af, f5 as sf, f1 as of, fg as nf, d0 as rf, eu as df, en as lf, dp as cf, em as uf, eT as ff, ej as mf, el as hf, cr as pf, eh as gf, ei as bf, eS as yf, eU as vf, eV as If, eW as _f, eX as Cf, eY as $f } from "../chunks/resolve-dashboard-input-context-zEXuitoF.js";
6
- import { K as Eo, L as Wa, G as Ga, M as qo, N as No, O as Ot, P as Ua, Q as Qa, A as xe, R as Po, S as Lo, H as Mo, T as Bo } from "../chunks/bookmark-state-CL4WEpgB.js";
7
- import { ae as xf, ay as Sf, Y as kf, Z as Tf, a8 as Rf, ac as Af, a9 as Ff, aa as Df, ab as Of, af as Ef, aw as qf, aq as Nf, D as Pf, au as Lf, F as Mf, a1 as Bf, I as Vf, ax as Kf, a4 as jf, a5 as Wf, as as Gf, ad as Uf, a2 as Qf, ao as Hf, at as zf, av as Yf, ap as Jf, ar as Xf, a0 as Zf, _ as em, ah as tm, am, W as sm, X as om, U as nm, a3 as im, an as rm, az as dm, ai as lm, ag as cm, aj as um, ak as fm, al as mm, a7 as hm, a6 as pm, $ as gm } from "../chunks/bookmark-state-CL4WEpgB.js";
8
- import { L as ym, G as vm, H as Im, g as _m, F as Cm, q as $m, A as wm, D as xm, u as Sm, v as km, E as Tm, C as Rm, s as Am, t as Fm, p as Dm, B as Om, I as Em, w as qm, y as Nm, x as Pm, z as Lm } from "../chunks/stored-dashboard-CURqJgoa.js";
9
- import { r as Vo, ac as ya } from "../chunks/pivot-result-contract-expectations-Bx_BCu-7.js";
10
- import { aO as Bm, aN as Vm, aJ as Km, aM as jm, aP as Wm, aD as Gm } from "../chunks/pivot-result-contract-expectations-Bx_BCu-7.js";
11
- import { f as Ko, w as jo, D as va, a as Wo } from "../chunks/metric-comparison-ZmurmEIs.js";
12
- import { p as Go } from "../chunks/report-runtime-context-NlOXwyRB.js";
13
- import { r as Ha, D as Ia, h as Uo, i as za, j as Qo, k as Ho, l as zo, f as wt, m as Yo, v as Jo } from "../chunks/filter-reach-copy-0Xp97cLk.js";
14
- import { N as Qm, $ as Hm, S as zm, o as Ym, t as Jm, w as Xm, u as Zm, G as eh, C as th, n as ah, q as sh, J as oh, d as nh, a1 as ih, L as rh, M as dh, _ as lh, a0 as ch, E as uh, X as fh, F as mh, x as hh, y as ph, A as gh, p as bh, z as yh, R as vh, O as Ih, a2 as _h, Z as Ch, Y as $h, K as wh, H as xh, I as Sh, U as kh, T as Th, Q as Rh, V as Ah, P as Fh, s as Dh, W as Oh, B as Eh } from "../chunks/filter-reach-copy-0Xp97cLk.js";
15
- import { a7 as Ya, r as Ja, aN as Xo, a_ as Ne, aL as Zo, aQ as en, aK as tn, aE as an, aM as sn, a5 as on } from "../chunks/validators-CJ8Jh0E8.js";
4
+ import { _ as $s, $ as ws, a0 as xs, a1 as Ss, a2 as ks, a3 as qa, a4 as Ie, a5 as Ts, a6 as he, a7 as $e, a8 as la, a9 as ot, aa as Na, ab as Q, ac as U, ad as Ee, ae as Rs, af as As, ag as Ft, ah as Fs, ai as Ds, aj as Os, ak as Es, al as qs, am as Ns, an as Pa, ao as Ps, ap as Ls, aq as Ms, ar as Bs, as as Vs, at as Gs, au as Ks, av as ca, aw as La, ax as ua, ay as we, az as be, aA as qe, aB as js, aC as Ws, aD as Us, o as Xe, aE as Qs, aF as Hs, aG as _t, aH as Ze, aI as zs, aJ as Ys, aK as Ma, aL as Dt, aM as Ct, aN as Js, aO as Xs, aP as Zs, aQ as ie, aR as Ba, aS as Va, aT as ct, aU as eo, aV as to, aW as fa, aX as $t, aY as ao, aZ as ma, a_ as so, a$ as ha, b0 as pa, b1 as et, b2 as ga, b3 as Fe, b4 as oo, b5 as He, m as no, b6 as Ga, b7 as io, b8 as ro, b9 as lo, ba as Ka, a as co, bb as uo, bc as fo, bd as mo, be as ho, bf as po, bg as go, bh as bo, bi as yo, bj as vo, bk as Io, bl as _o, bm as Co, bn as $o, bo as ba, bp as wo, bq as xo, br as So, bs as ko, bt as To, bu as Ro, bv as Ao, bw as Fo, bx as Do, by as Oo, bz as Eo, bA as qo } from "../chunks/resolve-dashboard-input-context-DFBIngUZ.js";
5
+ import { dT as jr, bX as Wr, c0 as Ur, dw as Qr, dx as Hr, dL as zr, dK as Yr, dF as Jr, eP as Xr, dM as Zr, dN as ed, ed as td, d7 as ad, d8 as sd, d9 as od, d4 as nd, d5 as id, d6 as rd, d0 as dd, d1 as ld, d3 as cd, d2 as ud, da as fd, e7 as md, dy as hd, co as pd, ei as gd, ej as bd, cn as yd, dq as vd, dV as Id, cx as _d, eR as Cd, ce as $d, bR as wd, ea as xd, dY as Sd, ek as kd, fg as Td, fr as Rd, fk as Ad, dI as Fd, dJ as Dd, cu as Od, e$ as Ed, eZ as qd, e_ as Nd, bO as Pd, fb as Ld, dX as Md, cA as Bd, e2 as Vd, ct as Gd, fv as Kd, fw as jd, eE as Wd, bV as Ud, dW as Qd, de as Hd, f2 as zd, fA as Yd, cR as Jd, fl as Xd, dE as Zd, cv as el, bS as tl, es as al, et as sl, db as ol, cS as nl, e9 as il, bI as rl, ee as dl, eC as ll, bW as cl, d_ as ul, fF as fl, f3 as ml, bJ as hl, b$ as pl, en as gl, cM as bl, fy as yl, eF as vl, e1 as Il, eD as _l, ec as Cl, dp as $l, dn as wl, cs as xl, e8 as Sl, ca as kl, cg as Tl, e6 as Rl, cV as Al, cX as Fl, cJ as Dl, bG as Ol, fm as El, fq as ql, cB as Nl, eh as Pl, ef as Ll, ey as Ml, bK as Bl, bT as Vl, eG as Gl, fc as Kl, bU as jl, dR as Wl, dS as Ul, fB as Ql, fC as Hl, fE as zl, cW as Yl, cb as Jl, cc as Xl, cd as Zl, cw as ec, cy as tc, fx as ac, eM as sc, dt as oc, f as nc, c$ as ic, cl as rc, cG as dc, b as lc, cY as cc, du as uc, c2 as fc, c3 as mc, bY as hc, df as pc, e0 as gc, ck as bc, ep as yc, cC as vc, bB as Ic, cp as _c, dG as Cc, c6 as $c, dQ as wc, cf as xc, dj as Sc, f0 as kc, fD as Tc, bP as Rc, dl as Ac, eq as Fc, dm as Dc, eu as Oc, eU as Ec, eT as qc, e3 as Nc, cO as Pc, cF as Lc, cH as Mc, l as Bc, cI as Vc, eK as Gc, dO as Kc, d$ as jc, bC as Wc, bD as Uc, bE as Qc, bL as Hc, fi as zc, fd as Yc, dU as Jc, fe as Xc, cL as Zc, cq as eu, cU as tu, dP as au, eJ as su, dr as ou, ds as nu, c1 as iu, fz as ru, dZ as du, eH as lu, dv as cu, eY as uu, eW as fu, J as mu, fh as hu, cj as pu, fn as gu, fo as bu, dC as yu, c_ as vu, c5 as Iu, eg as _u, eb as Cu, bF as $u, cP as wu, cQ as xu, cr as Su, dd as ku, c9 as Tu, ch as Ru, ci as Au, dz as Fu, dA as Du, cm as Ou, bM as Eu, c8 as qu, dh as Nu, eS as Pu, eO as Lu, fp as Mu, di as Bu, dg as Vu, fs as Gu, c4 as Ku, eQ as ju, cN as Wu, eN as Uu, cZ as Qu, er as Hu, f1 as zu, dB as Yu, cK as Ju, dH as Xu, bH as Zu, c7 as ef, e4 as tf, eX as af, eo as sf, cT as of, dk as nf, bQ as rf, e5 as df, ft as lf, em as cf, el as uf, eL as ff, eV as mf, cz as hf, cE as pf, bN as gf, fj as bf, ff as yf, fu as vf, dc as If, eI as _f, eB as Cf, dD as $f, eA as wf, f5 as xf, bZ as Sf, ex as kf, b_ as Tf, ez as Rf, cD as Af, ev as Ff, ew as Df, f4 as Of, f6 as Ef, f7 as qf, f8 as Nf, f9 as Pf, fa as Lf } from "../chunks/resolve-dashboard-input-context-DFBIngUZ.js";
6
+ import { K as No, L as ja, G as Wa, M as Po, N as Lo, O as Ot, P as Ua, Q as Qa, A as xe, R as Mo, S as Bo, H as Vo, T as Go } from "../chunks/bookmark-state-Bn7k3ttp.js";
7
+ import { ae as Bf, ay as Vf, Y as Gf, Z as Kf, a8 as jf, ac as Wf, a9 as Uf, aa as Qf, ab as Hf, af as zf, aw as Yf, aq as Jf, D as Xf, au as Zf, F as em, a1 as tm, I as am, ax as sm, a4 as om, a5 as nm, as as im, ad as rm, a2 as dm, ao as lm, at as cm, av as um, ap as fm, ar as mm, a0 as hm, _ as pm, ah as gm, am as bm, W as ym, X as vm, U as Im, a3 as _m, an as Cm, az as $m, ai as wm, ag as xm, aj as Sm, ak as km, al as Tm, a7 as Rm, a6 as Am, $ as Fm } from "../chunks/bookmark-state-Bn7k3ttp.js";
8
+ import { L as Om, G as Em, H as qm, g as Nm, F as Pm, q as Lm, A as Mm, D as Bm, u as Vm, v as Gm, E as Km, C as jm, s as Wm, t as Um, p as Qm, B as Hm, I as zm, w as Ym, y as Jm, x as Xm, z as Zm } from "../chunks/stored-dashboard-CksluF2S.js";
9
+ import { r as Ko, ac as ya } from "../chunks/pivot-result-contract-expectations-DbBahmgc.js";
10
+ import { aP as th, aO as ah, aK as sh, aN as oh, aQ as nh, aE as ih } from "../chunks/pivot-result-contract-expectations-DbBahmgc.js";
11
+ import { f as jo, w as Wo, D as va, a as Uo } from "../chunks/metric-comparison-xE_J6hkg.js";
12
+ import { p as Qo } from "../chunks/report-runtime-context-CrOgmuxO.js";
13
+ import { r as Ha, D as Ia, h as Ho, i as za, j as zo, k as Yo, l as Jo, f as wt, m as Xo, v as Zo } from "../chunks/filter-reach-copy-D5AmDHda.js";
14
+ import { N as dh, $ as lh, S as ch, o as uh, t as fh, w as mh, u as hh, G as ph, C as gh, n as bh, q as yh, J as vh, d as Ih, a1 as _h, L as Ch, M as $h, _ as wh, a0 as xh, E as Sh, X as kh, F as Th, x as Rh, y as Ah, A as Fh, p as Dh, z as Oh, R as Eh, O as qh, a2 as Nh, Z as Ph, Y as Lh, K as Mh, H as Bh, I as Vh, U as Gh, T as Kh, Q as jh, V as Wh, P as Uh, s as Qh, W as Hh, B as zh } from "../chunks/filter-reach-copy-D5AmDHda.js";
15
+ import { a7 as Ya, r as Ja, aN as en, a_ as Ne, aL as tn, aQ as an, aK as sn, aE as on, aM as nn, a5 as rn } from "../chunks/validators-CrYXNnNE.js";
16
16
  import "../chunks/schema-C9NPiIru.js";
17
- import { i as Xa, C as Ke, D as nn, e as rn, b as dn } from "../chunks/edit-9df1zOWe.js";
18
- import "../chunks/matrix-operation-contract-BM5TveR3.js";
19
- import { A as Le, B as ze, z as ln, f as cn, y as Et, t as Me, e as un } from "../chunks/analytics-base-schemas-BaIQrEzX.js";
20
- import { A as _a, E as fn } from "../chunks/matrix-analytical-definition-DOVSFFuf.js";
17
+ import { i as Xa, C as Ge, D as dn, e as ln, b as cn } from "../chunks/edit-9df1zOWe.js";
18
+ import "../chunks/matrix-operation-contract-JSmproo9.js";
19
+ import { C as Le, D as ze, B as un, f as fn, z as Et, t as Me, e as mn } from "../chunks/analytics-base-schemas-8wz9vqn_.js";
20
+ import { A as _a, E as hn } from "../chunks/matrix-analytical-definition-SN0JUJVk.js";
21
21
  import "zod";
22
22
  import "../value-format-preferences/index.js";
23
- import { C as Nh, a as Ph, S as Lh } from "../chunks/pickers-DkqmtnTL.js";
24
- import { r as mn } from "../chunks/index-CV_Kzou0.js";
25
- import "../chunks/context-BTLBjQNh.js";
26
- import { v as Ye, a as hn, i as Ca, o as ut, d as pn, b as gn, c as bn } from "../chunks/variable-draft-DIv-9y6Q.js";
27
- import { S as Bh, f as Vh, g as Kh, e as jh, n as Wh } from "../chunks/variable-draft-DIv-9y6Q.js";
28
- import { K as Uh, b as Qh, a as Hh, c as zh, d as Yh, e as Jh, r as Xh, f as Zh } from "../chunks/dates-5z3b9Loo.js";
29
- import { b as tp, d as ap } from "../chunks/bookmark-impact-BSpGQL1M.js";
30
- import { r as ye, b as yn, s as vn, a as In } from "../chunks/resolver-DG_tfEpt.js";
31
- import { n as _n, r as Cn } from "../chunks/index-BVKzKl5d.js";
32
- import { e as op } from "../chunks/brand-BoUV0iHF.js";
33
- const Sr = [
23
+ import { C as Jh, a as Xh, S as Zh } from "../chunks/pickers-DkqmtnTL.js";
24
+ import { r as pn } from "../chunks/index-CV_Kzou0.js";
25
+ import "../chunks/context-CVXTFljo.js";
26
+ import { v as Ye, a as gn, i as Ca, o as ut, d as bn, b as yn, c as vn } from "../chunks/variable-draft-rbtGPvmX.js";
27
+ import { S as tp, f as ap, g as sp, e as op, n as np } from "../chunks/variable-draft-rbtGPvmX.js";
28
+ import { K as rp, a as dp, d as lp, r as cp, b as up } from "../chunks/dates-BunbHJH0.js";
29
+ import { b as mp, d as hp } from "../chunks/bookmark-impact-B7pbMx2e.js";
30
+ import { r as ye, b as In, s as _n, a as Cn } from "../chunks/resolver-DG_tfEpt.js";
31
+ import { n as $n, r as wn } from "../chunks/index-BVKzKl5d.js";
32
+ import { e as gp } from "../chunks/brand-BoUV0iHF.js";
33
+ const Rr = [
34
34
  "cardType",
35
35
  "sql",
36
36
  "python",
@@ -46,7 +46,7 @@ const Sr = [
46
46
  "globalDateComparison",
47
47
  "calendarContext",
48
48
  "sqlRowLimit"
49
- ], kr = [
49
+ ], Ar = [
50
50
  "cardId",
51
51
  "cardTitle",
52
52
  "cache_config",
@@ -67,13 +67,13 @@ function qt(e) {
67
67
  function ve(e) {
68
68
  return !e || typeof e != "object" || Array.isArray(e) ? {} : { ...e };
69
69
  }
70
- function je(e) {
70
+ function Ke(e) {
71
71
  return typeof e == "string" ? e : "";
72
72
  }
73
- function $n(e, a = {}) {
73
+ function xn(e, a = {}) {
74
74
  const t = ve(e), s = qt(a), o = {};
75
75
  if (t.calendarContext !== void 0) {
76
- const i = Go(t.calendarContext);
76
+ const i = Qo(t.calendarContext);
77
77
  if (!i.ok)
78
78
  throw new ce(
79
79
  `${s}calendarContext: ${i.issues.map((d) => d.message).join("; ")}`,
@@ -90,20 +90,20 @@ function $n(e, a = {}) {
90
90
  n.issues
91
91
  );
92
92
  if (t.resolvedPrimaryDateField && (o.resolvedPrimaryDateField = t.resolvedPrimaryDateField), t.globalDateComparison !== void 0) {
93
- const i = Ko(t.globalDateComparison);
93
+ const i = jo(t.globalDateComparison);
94
94
  if (!i.ok)
95
95
  throw new ce(
96
96
  `${s}Invalid globalDateComparison: ${i.errors.map((d) => `${d.path}: ${d.message}`).join("; ")}`,
97
97
  "globalDateComparison",
98
98
  i.errors
99
99
  );
100
- o.globalDateComparison = jo(
100
+ o.globalDateComparison = Wo(
101
101
  t.globalDateComparison
102
102
  );
103
103
  }
104
104
  return o;
105
105
  }
106
- function Tr(e, a = {}) {
106
+ function Fr(e, a = {}) {
107
107
  const t = ve(e), s = qt(a), o = {};
108
108
  if (t.pagination !== void 0) {
109
109
  const n = ve(t.pagination), i = n.page, d = n.pageSize;
@@ -135,15 +135,15 @@ function Tr(e, a = {}) {
135
135
  }
136
136
  return o;
137
137
  }
138
- function Rr(e, a = {}) {
139
- const t = ve(e), s = qt(a), o = (x) => new ce(`${s}${x} is required`, x), n = je(t.connection_id).trim();
138
+ function Dr(e, a = {}) {
139
+ const t = ve(e), s = qt(a), o = (x) => new ce(`${s}${x} is required`, x), n = Ke(t.connection_id).trim();
140
140
  if (!n) throw o("connection_id");
141
- const i = je(t.cardType).trim();
141
+ const i = Ke(t.cardType).trim();
142
142
  if (!i) throw o("cardType");
143
143
  const d = t.resultOwner;
144
144
  if (d !== "config" && d !== "freeform" && d !== "none")
145
145
  throw o("resultOwner");
146
- const l = ve(t.cardConfig), c = je(t.sql), h = je(t.python), p = !!a.configOptional || Object.keys(l).length > 0;
146
+ const l = ve(t.cardConfig), c = Ke(t.sql), h = Ke(t.python), p = !!a.configOptional || Object.keys(l).length > 0;
147
147
  if (d === "config" && !p) throw o("cardConfig");
148
148
  if (d === "freeform" && !c.trim()) throw o("sql");
149
149
  const v = xs({
@@ -178,12 +178,12 @@ function Rr(e, a = {}) {
178
178
  controlDefinitions: S.controlDefinitions,
179
179
  cardControlDefinitions: S.cardControlDefinitions,
180
180
  controlBindings: S.controlBindings,
181
- ...$n(t, a),
181
+ ...xn(t, a),
182
182
  ...typeof t.sqlRowLimit == "number" && Number.isInteger(t.sqlRowLimit) && t.sqlRowLimit > 0 ? { sqlRowLimit: t.sqlRowLimit } : {}
183
183
  };
184
184
  }
185
- const ft = ["#14b8a6", "#5eead4", "#374151", "#6b7280", "#d1d5db"], wn = ["spacing", "canvasPadding", "canvas", "cardCorners", "chartColors"], Za = ["light", "dark"];
186
- function Ar(e) {
185
+ const ft = ["#14b8a6", "#5eead4", "#374151", "#6b7280", "#d1d5db"], Sn = ["spacing", "canvasPadding", "canvas", "cardCorners", "chartColors"], Za = ["light", "dark"];
186
+ function Or(e) {
187
187
  const a = [], t = ht(e.globalStyle) ? e.globalStyle : {}, s = ht(t.default) ? t.default : {}, o = ht(t.dark) ? t.dark : {}, n = (p) => ye(o, p) ?? ye(s, p), i = {}, d = n(["gridLayout", "margin"]);
188
188
  Array.isArray(d) && typeof d[1] == "number" && (i.spacing = De("spacing", d[1], a), i.canvasPadding = De("canvasPadding", d[1], a));
189
189
  const l = n(["cardBorderRadius"]);
@@ -193,24 +193,24 @@ function Ar(e) {
193
193
  const h = n(["chart", "options", "borderRadius"]);
194
194
  typeof h == "number" && (i.barCorners = De("barCorners", h, a));
195
195
  for (const p of Za) {
196
- const v = p === "light" ? ye(s, ["canvasTheme"]) : n(["canvasTheme"]), y = kn(v, a);
196
+ const v = p === "light" ? ye(s, ["canvasTheme"]) : n(["canvasTheme"]), y = Rn(v, a);
197
197
  y !== void 0 && (i.canvas = { ...i.canvas, [p]: y });
198
- const S = Sn(s, o, p);
198
+ const S = Tn(s, o, p);
199
199
  if (S) {
200
200
  const x = S.filter(Xa).map((E) => E.toLowerCase());
201
- x.length < S.length && a.push({ field: "chartColors", kind: "dropped_colour", detail: `${p}: ${S.length - x.length} colours that aren't hex` }), x.length >= Ke.min && (i.chartColors = { ...i.chartColors, [p]: x.slice(0, Ke.max) }), x.length > Ke.max && a.push({ field: "chartColors", kind: "clamped", detail: `${p}: kept the first ${Ke.max} colours` });
201
+ x.length < S.length && a.push({ field: "chartColors", kind: "dropped_colour", detail: `${p}: ${S.length - x.length} colours that aren't hex` }), x.length >= Ge.min && (i.chartColors = { ...i.chartColors, [p]: x.slice(0, Ge.max) }), x.length > Ge.max && a.push({ field: "chartColors", kind: "clamped", detail: `${p}: kept the first ${Ge.max} colours` });
202
202
  }
203
203
  }
204
- return { style: xn(i, e.organizationAppearance, a), notes: a };
204
+ return { style: kn(i, e.organizationAppearance, a), notes: a };
205
205
  }
206
- function xn(e, a, t) {
207
- const s = yn({ organizationAppearance: a ? _n(a).spec : null }), o = { ...e };
206
+ function kn(e, a, t) {
207
+ const s = In({ organizationAppearance: a ? $n(a).spec : null }), o = { ...e };
208
208
  for (const n of Object.keys(e)) {
209
- const i = In[n], d = n === "canvas" || n === "chartColors";
209
+ const i = Cn[n], d = n === "canvas" || n === "chartColors";
210
210
  for (const l of Za) {
211
- const c = vn(o, n, l);
211
+ const c = _n(o, n, l);
212
212
  if (c === void 0) continue;
213
- const h = wn.includes(n) && ye(Cn(a, l), i) !== void 0, p = JSON.stringify(ye(s.schemes[l], i)) === JSON.stringify(c);
213
+ const h = Sn.includes(n) && ye(wn(a, l), i) !== void 0, p = JSON.stringify(ye(s.schemes[l], i)) === JSON.stringify(c);
214
214
  if (!(!h && !p))
215
215
  if ((d || l === "light") && t.push({ field: n, kind: h ? "brand_wins" : "equal_to_inherited", detail: d ? l : `${JSON.stringify(c)}` }), d) {
216
216
  const v = { ...o[n] };
@@ -220,7 +220,7 @@ function xn(e, a, t) {
220
220
  }
221
221
  return Object.keys(o).length > 0 ? o : void 0;
222
222
  }
223
- function Sn(e, a, t) {
223
+ function Tn(e, a, t) {
224
224
  const s = ye(e, ["chart", "dataset", "backgroundColor"]), o = ye(a, ["chart", "dataset", "backgroundColor"]), n = mt(ft, s);
225
225
  if (t === "light") return Array.isArray(s) ? n : void 0;
226
226
  const i = mt(n, mt(ft, o));
@@ -232,7 +232,7 @@ function mt(e, a) {
232
232
  const t = Math.max(e.length, a.length);
233
233
  return Array.from({ length: t }, (s, o) => a[o] !== void 0 ? String(a[o]) : e[o]);
234
234
  }
235
- function kn(e, a) {
235
+ function Rn(e, a) {
236
236
  if (!(e == null || e === "")) {
237
237
  if (e === "muted") return "muted";
238
238
  if (e === "clear") return "background";
@@ -241,7 +241,7 @@ function kn(e, a) {
241
241
  }
242
242
  }
243
243
  function De(e, a, t) {
244
- const { min: s, max: o } = nn[e], n = Math.min(o, Math.max(s, Math.round(a)));
244
+ const { min: s, max: o } = dn[e], n = Math.min(o, Math.max(s, Math.round(a)));
245
245
  return n !== a && t.push({ field: e, kind: "clamped", detail: `${a} → ${n}` }), n;
246
246
  }
247
247
  function ht(e) {
@@ -258,21 +258,21 @@ const pt = {
258
258
  chartColors: (e, a) => a.chartColors = e,
259
259
  barCorners: (e, a) => a.barCorners = e
260
260
  };
261
- function Tn(e) {
261
+ function An(e) {
262
262
  var t;
263
263
  const a = {};
264
264
  for (const [s, o] of Object.entries(e ?? {}))
265
265
  o !== void 0 && ((t = pt[s]) == null || t.call(pt, o, a));
266
266
  return a;
267
267
  }
268
- const Rn = {
268
+ const Fn = {
269
269
  global_date: "The date filter for the whole report can't be changed through the MCP. Change it in the editor; removing or excluding it works.",
270
270
  not_semantic: "This filter reads a database table, not a dataset, so it can't be changed through the MCP. Change it in the editor; removing or excluding it works.",
271
271
  scope_not_expressible: "This filter applies to chosen cards rather than whole sheets, so it can't be changed through the MCP. Change it in the editor; removing or excluding it works."
272
272
  };
273
- function An(e, a, t = {}) {
273
+ function Dn(e, a, t = {}) {
274
274
  var d;
275
- const s = Ie(e), o = Eo(a.scope), n = new Set(Wa(e).map((l) => l.id)), i = {
275
+ const s = Ie(e), o = No(a.scope), n = new Set(ja(e).map((l) => l.id)), i = {
276
276
  reaches: [],
277
277
  excluded: [
278
278
  .../* @__PURE__ */ new Set([
@@ -328,7 +328,7 @@ function An(e, a, t = {}) {
328
328
  }
329
329
  }
330
330
  for (const l of s.reachedVariables({ inputId: a.id })) {
331
- const c = Ga(e, l.variableId);
331
+ const c = Wa(e, l.variableId);
332
332
  if ((c == null ? void 0 : c.kind) !== "variable") continue;
333
333
  const h = $e(a, c.card, t), p = he(c.card), v = { cardId: c.id, title: c.variable.name, ...(p == null ? void 0 : p.kind) === "semantic" ? { datasetName: p.datasetName } : {} };
334
334
  switch (h.reach) {
@@ -357,16 +357,16 @@ function An(e, a, t = {}) {
357
357
  }
358
358
  return i;
359
359
  }
360
- function Fn(e, a) {
360
+ function On(e, a) {
361
361
  var o;
362
362
  const t = a.scope;
363
363
  if (t.kind === "allSheets") {
364
364
  if ((o = t.sheetKinds) != null && o.length && !t.sheetKinds.includes("dashboard")) return;
365
- const n = qo(t);
365
+ const n = Po(t);
366
366
  return {
367
367
  sheetIds: "all",
368
368
  ...n.length ? { exceptSheetIds: [...n] } : {},
369
- ...No(t) ? { includesDocumentSheets: !0 } : {}
369
+ ...Lo(t) ? { includesDocumentSheets: !0 } : {}
370
370
  };
371
371
  }
372
372
  if (t.kind !== "sheets") return;
@@ -382,12 +382,12 @@ function es(e, a) {
382
382
  }
383
383
  function ts(e, a, t, s) {
384
384
  var E, C, k;
385
- const { input: o } = a, n = An(e, o, s), i = (b, D) => ({
385
+ const { input: o } = a, n = Dn(e, o, s), i = (b, D) => ({
386
386
  filterId: o.id,
387
387
  label: o.label,
388
388
  editable: !1,
389
389
  kind: D,
390
- notEditable: { reason: b, message: Rn[b] },
390
+ notEditable: { reason: b, message: Fn[b] },
391
391
  reaches: n.reaches,
392
392
  excluded: n.excluded,
393
393
  ...n.blocked ? { blocked: n.blocked } : {},
@@ -397,13 +397,13 @@ function ts(e, a, t, s) {
397
397
  if (o.filter.kind === "global-date") return i("global_date", "global_date");
398
398
  const d = ks(o.filter).filter((b) => b.kind === "semantic");
399
399
  if (d.length !== 1 || d[0].kind !== "semantic") return i("not_semantic", "field");
400
- const l = Fn(e, o);
400
+ const l = On(e, o);
401
401
  if (!l || a.origin !== "embeddedInput") return i("scope_not_expressible", "field");
402
402
  const c = ((E = o.filter.fieldMeta) == null ? void 0 : E.name) ?? ((C = o.filter.column) == null ? void 0 : C.split(".").pop()) ?? "", h = Ha({
403
403
  dashboard: e,
404
404
  target: { kind: "dashboardInput", input: o, scope: {} },
405
405
  calendar: es(t, void 0)
406
- }).value, p = Ya(o.filter.dataType), v = p || (k = h == null ? void 0 : h.values) == null ? void 0 : k.filter((b) => ["string", "number", "boolean"].includes(typeof b)), y = Ja(h && "relativeMeta" in h ? h.relativeMeta : void 0), S = p ? y : void 0, x = S ? Xo(
406
+ }).value, p = Ya(o.filter.dataType), v = p || (k = h == null ? void 0 : h.values) == null ? void 0 : k.filter((b) => ["string", "number", "boolean"].includes(typeof b)), y = Ja(h && "relativeMeta" in h ? h.relativeMeta : void 0), S = p ? y : void 0, x = S ? en(
407
407
  S,
408
408
  { use: "filterDefault", columnHasTime: qa(o.filter) === "datetime" },
409
409
  "defaultPeriod"
@@ -455,7 +455,7 @@ function ns(e) {
455
455
  field: s
456
456
  }));
457
457
  }
458
- function Dn(e) {
458
+ function En(e) {
459
459
  const a = os(e), t = /* @__PURE__ */ new Map();
460
460
  for (const { field: s } of ns(e)) {
461
461
  const o = ss(s, a);
@@ -463,14 +463,14 @@ function Dn(e) {
463
463
  }
464
464
  return [...t.values()];
465
465
  }
466
- function On(e, a, t) {
466
+ function qn(e, a, t) {
467
467
  if (!t) return;
468
468
  const s = la(a), o = ns(e).find((d) => la(d.ref) === s);
469
469
  if (!o) return;
470
470
  const n = ss(o.field, os(e)), i = n ? t[Nt(n)] : void 0;
471
471
  return i ? ot(i, o.field.name, n.datasetName) : void 0;
472
472
  }
473
- const xt = ["orientation", "stack", "donut", "totals", "dataLabels", "legend", "axes", "comparisonDisplay", "inheritComparison", "trend", "trendGrain", "seeRecords"], En = {
473
+ const xt = ["orientation", "stack", "donut", "totals", "dataLabels", "legend", "axes", "comparisonDisplay", "inheritComparison", "trend", "trendGrain", "seeRecords"], Nn = {
474
474
  orientation: "orientation",
475
475
  stack: "stacking",
476
476
  donut: "donut hole",
@@ -483,16 +483,16 @@ const xt = ["orientation", "stack", "donut", "totals", "dataLabels", "legend", "
483
483
  trend: "trend under its value",
484
484
  trendGrain: "trend grain",
485
485
  seeRecords: "records to see"
486
- }, qn = { x: "xAxisConfig", y: "yAxisConfig" }, gt = { x: "horizontal", y: "vertical" };
487
- function Nn(e) {
486
+ }, Pn = { x: "xAxisConfig", y: "yAxisConfig" }, gt = { x: "horizontal", y: "vertical" };
487
+ function Ln(e) {
488
488
  const a = `${e.sql ? "SQL " : ""}${qs(e.type)}`;
489
489
  return `${/^[aeiou]/i.test(a) ? "an" : "a"} ${a}`;
490
490
  }
491
- function Pn(e, a, t) {
491
+ function Mn(e, a, t) {
492
492
  const s = Object.fromEntries(Object.entries(a).filter(([o, n]) => n !== void 0 && !t.includes(o)));
493
493
  return Object.keys(s).length ? { op: "card.update", cardId: e.cardRef, ...s } : void 0;
494
494
  }
495
- function Ln(e, a, t, s, o) {
495
+ function Bn(e, a, t, s, o) {
496
496
  var y, S, x, E, C, k, b, D, w, N, _;
497
497
  const n = xt.filter((I) => t[I] !== void 0);
498
498
  if (!n.length) return {};
@@ -500,11 +500,11 @@ function Ln(e, a, t, s, o) {
500
500
  for (const I of d)
501
501
  o.push(
502
502
  Q("setting_not_for_card", {
503
- message: `${U(e.title)} is ${Nn(a)}, which has no ${En[I]}.`,
503
+ message: `${U(e.title)} is ${Ln(a)}, which has no ${Nn[I]}.`,
504
504
  path: `${s.path}.${I}`,
505
505
  fix: i.length ? `Leave out ${I}; this card takes ${i.join(", ")}.` : `Leave out ${I}.`,
506
506
  allowed: i,
507
- suggestedChange: Pn(s, t, d)
507
+ suggestedChange: Mn(s, t, d)
508
508
  })
509
509
  );
510
510
  if (d.length) return {};
@@ -525,7 +525,7 @@ function Ln(e, a, t, s, o) {
525
525
  t.dataLabels.show !== Ds(p) && (I.show = t.dataLabels.show);
526
526
  const R = t.dataLabels.format;
527
527
  if (R === null && ((x = v.dataLabels) != null && x.format) && (I.format = null), R) {
528
- const P = Mn(e, a, R, `${s.path}.dataLabels.format`, o);
528
+ const P = Vn(e, a, R, `${s.path}.dataLabels.format`, o);
529
529
  P && !Ne(P, (E = v.dataLabels) == null ? void 0 : E.format) && (I.format = P);
530
530
  }
531
531
  Object.keys(I).length && (l.dataLabels = I);
@@ -539,14 +539,14 @@ function Ln(e, a, t, s, o) {
539
539
  for (const P of ["x", "y"]) {
540
540
  const V = t.axes[P];
541
541
  if (!V) continue;
542
- const K = Bn(e, P, V, ((b = v.axes) == null ? void 0 : b[P]) ?? {}, P === I, `${s.path}.axes.${P}`, o);
543
- K && (R[qn[P]] = K);
542
+ const G = Gn(e, P, V, ((b = v.axes) == null ? void 0 : b[P]) ?? {}, P === I, `${s.path}.axes.${P}`, o);
543
+ G && (R[Pn[P]] = G);
544
544
  }
545
545
  Object.keys(R).length && (l.axes = R);
546
546
  }
547
547
  if (t.comparisonDisplay) {
548
- const I = (D = e.preferences) == null ? void 0 : D.comparisonPresentation, R = {}, { show: P, mode: V, precision: K } = t.comparisonDisplay;
549
- P !== void 0 && P !== ((I == null ? void 0 : I.showComparison) ?? !0) && (R.show = P), V !== void 0 && V !== ((I == null ? void 0 : I.displayMode) ?? "difference") && (R.mode = V), K !== void 0 && K !== ((I == null ? void 0 : I.precision) ?? null) && (R.precision = K), Object.keys(R).length && (l.comparisonDisplay = R);
548
+ const I = (D = e.preferences) == null ? void 0 : D.comparisonPresentation, R = {}, { show: P, mode: V, precision: G } = t.comparisonDisplay;
549
+ P !== void 0 && P !== ((I == null ? void 0 : I.showComparison) ?? !0) && (R.show = P), V !== void 0 && V !== ((I == null ? void 0 : I.displayMode) ?? "difference") && (R.mode = V), G !== void 0 && G !== ((I == null ? void 0 : I.precision) ?? null) && (R.precision = G), Object.keys(R).length && (l.comparisonDisplay = R);
550
550
  }
551
551
  if (t.inheritComparison !== void 0 && t.inheritComparison !== (((w = e.preferences) == null ? void 0 : w.inheritGlobalComparison) !== !1) && (l.inheritComparison = t.inheritComparison), t.seeRecords !== void 0 && t.seeRecords !== (e.seeRecords !== !1) && (l.seeRecords = t.seeRecords), t.trend !== void 0 && t.trend !== (((N = e.config) == null ? void 0 : N.kpiBand) === "trend") && (l.trend = t.trend), t.trendGrain !== void 0) {
552
552
  const I = Es(e.config);
@@ -561,7 +561,7 @@ function Ln(e, a, t, s, o) {
561
561
  }
562
562
  return l;
563
563
  }
564
- function Mn(e, a, t, s, o) {
564
+ function Vn(e, a, t, s, o) {
565
565
  const n = String(t.type), i = Ns("cartesian", "number"), d = Le(n), l = d == null ? void 0 : d.safeParse(t);
566
566
  if (!i.includes(n) || !(l != null && l.success)) {
567
567
  const h = l && !l.success ? l.error.issues[0] : void 0;
@@ -582,7 +582,7 @@ function Mn(e, a, t, s, o) {
582
582
  }
583
583
  return l.data;
584
584
  }
585
- function Bn(e, a, t, s, o, n, i) {
585
+ function Gn(e, a, t, s, o, n, i) {
586
586
  const d = {};
587
587
  t.title !== void 0 && (t.title !== null && !t.title.trim() ? i.push(Q("value_invalid", { message: "An axis title can't be empty.", path: `${n}.title`, fix: "Send a title, or null for none." })) : (t.title ?? void 0) !== s.title && (d.title = t.title));
588
588
  const l = ["min", "max"].filter((c) => t[c] !== void 0 && t[c] !== null);
@@ -638,14 +638,14 @@ function St(e, a, t, s) {
638
638
  const { [s]: o, ...n } = t;
639
639
  return Object.keys(n).length ? { op: "card.update", cardId: e.cardRef, columns: { [a]: n } } : void 0;
640
640
  }
641
- function Vn(e, a, t) {
641
+ function Kn(e, a, t) {
642
642
  const { hidden: s, width: o, ...n } = t;
643
643
  return Object.keys(n).length ? { op: "card.update", cardId: e.cardRef, columns: { [a]: n } } : void 0;
644
644
  }
645
- function We(e, a, t) {
645
+ function je(e, a, t) {
646
646
  return { op: "card.update", cardId: e.cardRef, columns: { [a]: { format: t } } };
647
647
  }
648
- function Kn(e, a, t, s, o, n, i) {
648
+ function jn(e, a, t, s, o, n, i) {
649
649
  var c;
650
650
  const d = o.label;
651
651
  if (d === void 0 || d === t.label) return;
@@ -662,7 +662,7 @@ function Kn(e, a, t, s, o, n, i) {
662
662
  return;
663
663
  }
664
664
  if (d === null) {
665
- const h = ((c = On(e, t.ref, n.catalogs)) == null ? void 0 : c.label) || t.field || t.label;
665
+ const h = ((c = qn(e, t.ref, n.catalogs)) == null ? void 0 : c.label) || t.field || t.label;
666
666
  return t.labelInherited && t.label === h ? void 0 : { key: t.labelKey, label: h, origin: "semantic" };
667
667
  }
668
668
  if (!d.trim()) {
@@ -671,14 +671,14 @@ function Kn(e, a, t, s, o, n, i) {
671
671
  }
672
672
  return { key: t.labelKey, label: d };
673
673
  }
674
- function jn(e, a, t, s, o, n, i) {
674
+ function Wn(e, a, t, s, o, n, i) {
675
675
  var _, I;
676
676
  const d = `${Se(n.path, s)}.format`;
677
677
  if (!a.settings.has("columns.format")) {
678
678
  i.push(Q("setting_not_for_card", { message: `${U(e.title)} takes no column formats.`, path: d }));
679
679
  return;
680
680
  }
681
- const l = t.ref, c = ((_ = n.modelFormats) == null ? void 0 : _.status) === "read" ? n.modelFormats.formats : void 0, h = l.kind === "matrixLevel" ? c == null ? void 0 : c[l.levelId] : l.kind === "matrixMeasure" ? c == null ? void 0 : c[l.measureId] : void 0, p = Vo({
681
+ const l = t.ref, c = ((_ = n.modelFormats) == null ? void 0 : _.status) === "read" ? n.modelFormats.formats : void 0, h = l.kind === "matrixLevel" ? c == null ? void 0 : c[l.levelId] : l.kind === "matrixMeasure" ? c == null ? void 0 : c[l.measureId] : void 0, p = Ko({
682
682
  card: e,
683
683
  column: l,
684
684
  ...c ? { modelFormats: c } : {},
@@ -686,7 +686,7 @@ function jn(e, a, t, s, o, n, i) {
686
686
  }), v = p.source === "override" ? p.format : void 0;
687
687
  if (o === null) return v ? null : void 0;
688
688
  if (v && Ne(o, v)) return;
689
- const y = Ks(e, a, t, n.sqlResultColumns), S = y.value, x = js(y);
689
+ const y = Gs(e, a, t, n.sqlResultColumns), S = y.value, x = Ks(y);
690
690
  if (x.length === 0) {
691
691
  i.push($a(e, s, d, t, S));
692
692
  return;
@@ -701,7 +701,7 @@ function jn(e, a, t, s, o, n, i) {
701
701
  path: d,
702
702
  fix: "Add `type` to the format.",
703
703
  allowed: ze(R),
704
- suggestedChange: We(n, s, { type: R, ...o })
704
+ suggestedChange: je(n, s, { type: R, ...o })
705
705
  })
706
706
  );
707
707
  return;
@@ -724,16 +724,16 @@ function jn(e, a, t, s, o, n, i) {
724
724
  Q("format_invalid", {
725
725
  message: b ? (R == null ? void 0 : R.code) === "unrecognized_keys" ? `A ${k} format has no ${R.keys.join(", ")}.` : `That format for ${s} isn't valid: ${(R == null ? void 0 : R.message) ?? "invalid"}.` : `${JSON.stringify(k)} isn't a format type.`,
726
726
  path: d,
727
- fix: Qn(k),
728
- allowed: b ? ze(k) : [...ln],
729
- ...p.format ? { suggestedChange: We(n, s, p.format) } : {}
727
+ fix: zn(k),
728
+ allowed: b ? ze(k) : [...un],
729
+ ...p.format ? { suggestedChange: je(n, s, p.format) } : {}
730
730
  })
731
731
  );
732
732
  return;
733
733
  }
734
734
  const w = D.data;
735
735
  if (w.type === "temporal_bucket" && t.granularity && !ya(w, t.granularity).ok) {
736
- const P = cn.filter(
736
+ const P = fn.filter(
737
737
  (V) => ya({ presentation: { mode: "preset", preset: V } }, t.granularity).ok
738
738
  );
739
739
  i.push(
@@ -741,22 +741,22 @@ function jn(e, a, t, s, o, n, i) {
741
741
  message: `${s} on ${U(e.title)} is grouped by ${t.granularity}, which that date format doesn't fit.`,
742
742
  path: d,
743
743
  allowed: P,
744
- suggestedChange: We(n, s, { type: "temporal_bucket", presentation: { mode: "preset", preset: P[0] ?? "short" } })
744
+ suggestedChange: je(n, s, { type: "temporal_bucket", presentation: { mode: "preset", preset: P[0] ?? "short" } })
745
745
  })
746
746
  );
747
747
  return;
748
748
  }
749
749
  if (w.type === "date") {
750
- const R = o, P = p.format ?? {}, V = Object.keys(R).filter((K) => !ca.includes(K) && !Ne(R[K], P[K]));
750
+ const R = o, P = p.format ?? {}, V = Object.keys(R).filter((G) => !ca.includes(G) && !Ne(R[G], P[G]));
751
751
  if (V.length) {
752
- const K = Object.fromEntries(Object.entries(w).filter(([B]) => !V.includes(B)));
752
+ const G = Object.fromEntries(Object.entries(w).filter(([B]) => !V.includes(B)));
753
753
  i.push(
754
754
  Q("format_invalid", {
755
755
  message: `A date format set here takes a pattern or a preset; it doesn't set ${V.join(", ")}.`,
756
756
  path: d,
757
757
  fix: `Leave out ${V.join(", ")}.`,
758
758
  allowed: ca.filter((B) => B !== "type"),
759
- suggestedChange: We(n, s, K)
759
+ suggestedChange: je(n, s, G)
760
760
  })
761
761
  );
762
762
  return;
@@ -776,7 +776,7 @@ function jn(e, a, t, s, o, n, i) {
776
776
  }
777
777
  return v && Ne(v, w) ? void 0 : w;
778
778
  }
779
- function Wn(e, a, t, s, o, n, i) {
779
+ function Un(e, a, t, s, o, n, i) {
780
780
  var x, E;
781
781
  const d = o.polarity;
782
782
  if (d === void 0) return;
@@ -808,7 +808,7 @@ function Wn(e, a, t, s, o, n, i) {
808
808
  }
809
809
  return d === (S ?? y ?? va) ? void 0 : d;
810
810
  }
811
- function Gn(e, a, t, s, o, n, i, d) {
811
+ function Qn(e, a, t, s, o, n, i, d) {
812
812
  var h, p, v;
813
813
  if (o.hidden === void 0 && o.width === void 0) return {};
814
814
  const l = Se(i.path, s);
@@ -819,7 +819,7 @@ function Gn(e, a, t, s, o, n, i, d) {
819
819
  message: y ? `${s} on ${U(e.title)} has a column for each pivot value; hide or size them in the editor.` : `${U(e.title)} has no hidden columns or column widths; those are for tables.`,
820
820
  path: `${l}.${o.hidden !== void 0 ? "hidden" : "width"}`,
821
821
  allowed: y ? ["label", "format"] : ["label", "format"].filter((S) => a.settings.has(`columns.${S}`)),
822
- suggestedChange: Vn(i, s, o)
822
+ suggestedChange: Kn(i, s, o)
823
823
  })
824
824
  ), {};
825
825
  }
@@ -836,7 +836,7 @@ function Gn(e, a, t, s, o, n, i, d) {
836
836
  }
837
837
  return c;
838
838
  }
839
- function Un(e, a, t) {
839
+ function Hn(e, a, t) {
840
840
  var E, C, k, b;
841
841
  const { columns: s = {}, ...o } = a.settings ?? {}, n = [], i = xt.some((D) => o[D] !== void 0), d = !!((C = (E = a.highlights) == null ? void 0 : E.add) != null && C.length || (b = (k = a.highlights) == null ? void 0 : k.remove) != null && b.length);
842
842
  if (!Object.keys(s).length && !i && !d) return { ok: !0, labels: [], settings: null, warnings: [] };
@@ -846,7 +846,7 @@ function Un(e, a, t) {
846
846
  ok: !1,
847
847
  problems: [Q("setting_not_for_card", { message: `${U(e.title)} takes no card settings through this tool.`, path: t.path })]
848
848
  };
849
- const c = Ln(e, l, o, t, n), h = Ls(e, l, t.sqlResultColumns), p = d ? Ms(e, l, h, a.highlights, t, n) : void 0, v = Ft(e), y = [], S = [];
849
+ const c = Bn(e, l, o, t, n), h = Ls(e, l, t.sqlResultColumns), p = d ? Ms(e, l, h, a.highlights, t, n) : void 0, v = Ft(e), y = [], S = [];
850
850
  for (const [D, w] of Object.entries(s)) {
851
851
  const N = Bs(h, D, { path: Se(t.path, D), cardTitle: U(e.title) });
852
852
  if (!N.ok) {
@@ -864,25 +864,25 @@ function Un(e, a, t) {
864
864
  );
865
865
  continue;
866
866
  }
867
- const I = Kn(e, l, _, D, w, t, n);
867
+ const I = jn(e, l, _, D, w, t, n);
868
868
  I && y.push(I);
869
- const R = Gn(e, l, _, D, w, v.columns[_.name], t, n), P = w.format !== void 0 ? jn(e, l, _, D, w.format, t, n) : void 0, V = Wn(e, l, _, D, w, t, n), K = {
869
+ const R = Qn(e, l, _, D, w, v.columns[_.name], t, n), P = w.format !== void 0 ? Wn(e, l, _, D, w.format, t, n) : void 0, V = Un(e, l, _, D, w, t, n), G = {
870
870
  column: _.ref,
871
871
  ...R,
872
872
  ...P !== void 0 ? { format: P } : {},
873
873
  ...V !== void 0 ? { polarity: V } : {}
874
874
  };
875
- Object.keys(K).length > 1 && S.push(K);
875
+ Object.keys(G).length > 1 && S.push(G);
876
876
  }
877
877
  if (n.length) return { ok: !1, problems: n };
878
878
  const x = { ...c, ...S.length ? { columns: S } : {}, ...p ? { highlights: p } : {} };
879
879
  return { ok: !0, labels: y, settings: Object.keys(x).length ? x : null, warnings: [] };
880
880
  }
881
- function Qn(e) {
881
+ function zn(e) {
882
882
  const a = Le(e), t = a && a === Le("number") ? ua.number : e === "temporal_bucket" || e === "date" ? ua[e] : void 0;
883
883
  return t ? `Send a stored format: ${t}.` : "Send the format in the stored shape the outline shows.";
884
884
  }
885
- function Hn(e, a, t, s, o) {
885
+ function Yn(e, a, t, s, o) {
886
886
  var C, k, b, D, w, N;
887
887
  const n = we(e, { sql: !0, calculations: !1 });
888
888
  if (!n.editable) return [n.message];
@@ -899,7 +899,7 @@ function Hn(e, a, t, s, o) {
899
899
  if (l && !l.editable) return ["the compiled query"];
900
900
  const c = l != null && l.editable ? l.query : void 0, h = String(d.datasetName ?? ""), p = [], v = (_) => be(_, h), y = (_, I, R) => {
901
901
  const P = I ?? [], V = R ?? [];
902
- (P.length !== V.length || P.some((K, B) => v(K) !== v(V[B]))) && p.push(_);
902
+ (P.length !== V.length || P.some((G, B) => v(G) !== v(V[B]))) && p.push(_);
903
903
  };
904
904
  for (const _ of ["domainId", "datasetName"]) d[_] !== i[_] && p.push(_);
905
905
  if (y("measures", d.measures, i.measures), y("columns", d.columns, i.columns), t || n.matrix) {
@@ -915,30 +915,30 @@ function Hn(e, a, t, s, o) {
915
915
  R && _a(E[I] ?? {}) !== R && p.push(`the aggregate of measures[${I}]`);
916
916
  });
917
917
  for (const { key: _, label: I } of qe(a))
918
- Ws(e, _) !== I && p.push(`the label "${I}"`);
918
+ js(e, _) !== I && p.push(`the label "${I}"`);
919
919
  if (!o || o.aspects.includes("filters")) {
920
920
  const _ = d.filters ?? [];
921
921
  let I = i.filters ?? [];
922
- const R = d.timeWindow, P = i.timeWindow, V = (K, B) => {
922
+ const R = d.timeWindow, P = i.timeWindow, V = (G, B) => {
923
923
  const se = (oe) => JSON.stringify((oe ?? []).map(String));
924
- return v(K.field) === v(B.field) && K.operator === B.operator && (K.scope ?? "row") === (B.scope ?? "row") && (typeof K.field == "object" ? K.field.aggregate : void 0) === (typeof B.field == "object" ? B.field.aggregate : void 0) && (K.values === void 0 || se(K.values) === se(B.values));
924
+ return v(G.field) === v(B.field) && G.operator === B.operator && (G.scope ?? "row") === (B.scope ?? "row") && (typeof G.field == "object" ? G.field.aggregate : void 0) === (typeof B.field == "object" ? B.field.aggregate : void 0) && (G.values === void 0 || se(G.values) === se(B.values));
925
925
  };
926
926
  if (R && !P) {
927
- const K = ((c == null ? void 0 : c.filters) ?? []).filter(
927
+ const G = ((c == null ? void 0 : c.filters) ?? []).filter(
928
928
  (B) => !(c != null && c.timeWindow) && !_.some((se) => V(se, B))
929
929
  );
930
- (!K.length || K.some((B) => !I.some((se) => V(B, se)))) && p.push("timeWindow"), I = I.filter((B) => !K.some((se) => V(se, B)));
931
- } else R ? Zo(d.timeWindow, i.timeWindow) || p.push("timeWindow") : P && p.push("timeWindow");
932
- (_.length !== I.length || _.some((K, B) => !V(K, I[B]))) && p.push("filters");
930
+ (!G.length || G.some((B) => !I.some((se) => V(B, se)))) && p.push("timeWindow"), I = I.filter((B) => !G.some((se) => V(se, B)));
931
+ } else R ? tn(d.timeWindow, i.timeWindow) || p.push("timeWindow") : P && p.push("timeWindow");
932
+ (_.length !== I.length || _.some((G, B) => !V(G, I[B]))) && p.push("filters");
933
933
  }
934
934
  if (d.orderBy !== void 0) {
935
- const _ = d.orderBy, I = (w = (D = e.config) == null ? void 0 : D.sortByColumns) == null ? void 0 : w[0], R = I && Gs(e.config ?? {}, I), P = _.field && typeof _.field == "object" ? _.field.aggregate : void 0;
935
+ const _ = d.orderBy, I = (w = (D = e.config) == null ? void 0 : D.sortByColumns) == null ? void 0 : w[0], R = I && Ws(e.config ?? {}, I), P = _.field && typeof _.field == "object" ? _.field.aggregate : void 0;
936
936
  (!I || !R || I.direction !== _.direction || v(_.field) !== Us(R.name, Na(R)) || P !== void 0 && _a(R) !== P) && p.push("orderBy");
937
937
  }
938
938
  return d.limit !== void 0 && ((N = e.config) == null ? void 0 : N.rowLimit) !== d.limit && p.push("limit"), p;
939
939
  }
940
940
  function kt(e) {
941
- const a = Wa({ variables: [e] })[0];
941
+ const a = ja({ variables: [e] })[0];
942
942
  return a ? he(a.card) : void 0;
943
943
  }
944
944
  function rs(e, a) {
@@ -950,7 +950,7 @@ function Je(e, a) {
950
950
  const t = e.variables ?? [];
951
951
  return t.find((s) => s.name === a) ?? t.find((s) => s.id === a);
952
952
  }
953
- function zn(e, a, t, s) {
953
+ function Jn(e, a, t, s) {
954
954
  var i;
955
955
  const o = Je(e, a);
956
956
  o || s.problem(ls(e, a, t));
@@ -1031,7 +1031,7 @@ async function wa(e, a, t) {
1031
1031
  dataSource: h.dataSource,
1032
1032
  connectionId: h.connectionId,
1033
1033
  get: "only",
1034
- ...(b = d.filters) != null && b.length ? { conditions: await Jn(d, n, i, t.refuseAll) } : {}
1034
+ ...(b = d.filters) != null && b.length ? { conditions: await Zn(d, n, i, t.refuseAll) } : {}
1035
1035
  };
1036
1036
  if (l.kind === "aggregate") {
1037
1037
  (y.length !== 1 || S.length) && s({
@@ -1040,7 +1040,7 @@ async function wa(e, a, t) {
1040
1040
  path: `${i}.query`,
1041
1041
  fix: `Send measures: [{ name, aggregate }] alone; for one field's value use get: "only", "first" or "list" with dimensions: [field].`
1042
1042
  }), d.orderBy && s({ code: "invalid_change", message: "An aggregate is one value, so it has no order.", path: `${i}.query.orderBy`, fix: "Leave out orderBy." });
1043
- const w = v(y[0], `${i}.query.measures[0]`), N = typeof y[0] == "string" ? void 0 : y[0].aggregate, _ = hn(w).filter((P) => Ca(P.value)), I = N ?? (ut(w) ? "calculation" : pn(w));
1043
+ const w = v(y[0], `${i}.query.measures[0]`), N = typeof y[0] == "string" ? void 0 : y[0].aggregate, _ = gn(w).filter((P) => Ca(P.value)), I = N ?? (ut(w) ? "calculation" : bn(w));
1044
1044
  if (!Ca(I) || !_.some((P) => P.value === I)) {
1045
1045
  const P = _.map((V) => V.value);
1046
1046
  s({
@@ -1051,7 +1051,7 @@ async function wa(e, a, t) {
1051
1051
  allowed: P
1052
1052
  });
1053
1053
  }
1054
- const R = Yn(y[0], { ...x, field: w, get: I }, `${i}.query.measures[0].comparison`, s);
1054
+ const R = Xn(y[0], { ...x, field: w, get: I }, `${i}.query.measures[0].comparison`, s);
1055
1055
  return k(Ye({ ...x, field: w, get: I, ...R ? { comparison: R } : {} }, a));
1056
1056
  }
1057
1057
  (S.length !== 1 || y.length) && s({
@@ -1096,7 +1096,7 @@ async function wa(e, a, t) {
1096
1096
  return _.length && t.refuseAll(cs(_, i)), N;
1097
1097
  }
1098
1098
  }
1099
- function Yn(e, a, t, s) {
1099
+ function Xn(e, a, t, s) {
1100
1100
  var n, i;
1101
1101
  const o = typeof e == "string" ? void 0 : e.comparison;
1102
1102
  if (!(!o || o.kind === "inherit" || o.kind === "off"))
@@ -1105,14 +1105,14 @@ function Yn(e, a, t, s) {
1105
1105
  message: "A variable compares with an earlier period, not a target.",
1106
1106
  path: t,
1107
1107
  fix: "Send comparison: { kind: 'previous_period' } or { kind: 'previous_year' }; put a target in the words, or on a KPI card."
1108
- }), bn(a) || s({
1108
+ }), vn(a) || s({
1109
1109
  code: "invalid_change",
1110
1110
  message: `${((n = a.field) == null ? void 0 : n.label) || ((i = a.field) == null ? void 0 : i.name)} with ${String(a.get)} isn't a number, so it has no comparison.`,
1111
1111
  path: t,
1112
1112
  fix: "Compare a count, or a numeric field's total, average, lowest or highest; leave comparison out here."
1113
1113
  }), Xs(o);
1114
1114
  }
1115
- async function Jn(e, a, t, s) {
1115
+ async function Zn(e, a, t, s) {
1116
1116
  var n;
1117
1117
  const o = await a.compileCardQuery({
1118
1118
  query: { domainId: e.domainId, datasetName: e.datasetName, measures: ["__count"], filters: e.filters },
@@ -1120,8 +1120,8 @@ async function Jn(e, a, t, s) {
1120
1120
  });
1121
1121
  return o.ok ? ((n = o.part.config) == null ? void 0 : n.filters) ?? null : s(o.problems.map((i) => ({ ...i, path: i.path ? `${t}.query.${i.path}` : `${t}.query.filters` })));
1122
1122
  }
1123
- function Xn(e, a, t, s, o) {
1124
- const n = ds(a), i = gn(e);
1123
+ function ei(e, a, t, s, o) {
1124
+ const n = ds(a), i = yn(e);
1125
1125
  n.kind === "aggregate" && e.get.kind !== "aggregate" && s.problem({ code: "invalid_change", message: `${e.name} reads a field's rows; an aggregate needs its measure.`, path: `${o}.get`, fix: 'Send query with measures: [{ name, aggregate }] and get: "aggregate".' }), n.kind !== "aggregate" && e.get.kind === "aggregate" && s.problem({ code: "invalid_change", message: `${e.name} is an aggregate; a value, the first or a list reads a dimension.`, path: `${o}.get`, fix: "Send query with dimensions: [field] and the get." }), i.mode === "sql" && n.kind !== "only" && n.kind !== "first" && s.problem({ code: "invalid_change", message: "A SQL variable takes the only row or the first row of its result.", path: `${o}.get`, fix: 'Send get: "only" or "first", or write the list in the SQL itself.' });
1126
1126
  const d = Ye(
1127
1127
  {
@@ -1134,7 +1134,7 @@ function Xn(e, a, t, s, o) {
1134
1134
  );
1135
1135
  return { query: d.query, get: d.get };
1136
1136
  }
1137
- function Zn(e, a) {
1137
+ function ti(e, a) {
1138
1138
  const t = Qa(e).filter(({ ref: i }) => i.source === "data" && i.variableId === a), s = (i) => {
1139
1139
  var d;
1140
1140
  return `"${((d = (e.sheets ?? []).find((l) => l.id === i)) == null ? void 0 : d.title) ?? i}"`;
@@ -1150,7 +1150,7 @@ function Zn(e, a) {
1150
1150
  )
1151
1151
  ].join(", "), places: t };
1152
1152
  }
1153
- function ei(e, a, t, s, o) {
1153
+ function ai(e, a, t, s, o) {
1154
1154
  const { problem: n } = o;
1155
1155
  (!Xe(t) || !t.document) && n({
1156
1156
  code: "invalid_change",
@@ -1176,7 +1176,7 @@ function ei(e, a, t, s, o) {
1176
1176
  path: `${s}.style`,
1177
1177
  fix: "Leave style out for a footer line."
1178
1178
  });
1179
- const C = i[x] ? Uo(i[x].blocks, E) : void 0;
1179
+ const C = i[x] ? Ho(i[x].blocks, E) : void 0;
1180
1180
  l = (C == null ? void 0 : C.content) ?? [], c = C == null ? void 0 : C.style;
1181
1181
  }
1182
1182
  const h = e.style !== void 0 ? Hs(e.style) : void 0, p = !h || Object.entries(h).every(([x, E]) => (c == null ? void 0 : c[x]) === E);
@@ -1196,12 +1196,18 @@ function ei(e, a, t, s, o) {
1196
1196
  };
1197
1197
  return { edit: "sectionId" in d ? { type: "updateText", sectionId: d.sectionId, ...y } : { type: "updateRegionText", region: d.region, role: d.role, ...y }, unchanged: v === void 0 && p };
1198
1198
  }
1199
+ const si = {
1200
+ matrix: "A Matrix",
1201
+ pie: "A pie chart",
1202
+ detail_table: "A detail table",
1203
+ text: "A text card"
1204
+ };
1199
1205
  class me extends Error {
1200
1206
  }
1201
1207
  const xa = "A text card takes title, description and text.", bt = (e) => e.cards.some((a) => {
1202
1208
  var t, s;
1203
1209
  return ((t = a.customCardPreferences) == null ? void 0 : t.visualType) === "multiple" || !!((s = a.customCardPreferences) != null && s.dataInputCardIds);
1204
- }), Tt = (e) => (e ?? "").trim().toLowerCase(), tt = oo, Sa = { measures: lo, records: ro, sql: io }, Ge = {
1210
+ }), Tt = (e) => (e ?? "").trim().toLowerCase(), tt = oo, Sa = { measures: lo, records: ro, sql: io }, We = {
1205
1211
  measures: "a measures query (measures, with optional dimensions)",
1206
1212
  records: "a records query (columns)",
1207
1213
  sql: "a SQL query"
@@ -1209,9 +1215,9 @@ const xa = "A text card takes title, description and text.", bt = (e) => e.cards
1209
1215
  function us(e, a) {
1210
1216
  return a.path.reduce((t, s) => typeof s == "number" ? `${t}[${s}]` : `${t}.${s}`, e);
1211
1217
  }
1212
- const ti = { max: _o, what: "A proposal", fix: "Split the changes into several proposals." };
1213
- async function Fr(e, a, t) {
1214
- return fs(e, a, t, { limit: ti });
1218
+ const oi = { max: $o, what: "A proposal", fix: "Split the changes into several proposals." };
1219
+ async function Er(e, a, t) {
1220
+ return fs(e, a, t, { limit: oi });
1215
1221
  }
1216
1222
  async function fs(e, a, t, s) {
1217
1223
  var Ut, Qt, Ht, zt, Yt, Jt, Xt, Zt, ea, ta, aa, sa, oa, na, ia, ra;
@@ -1238,7 +1244,7 @@ async function fs(e, a, t, s) {
1238
1244
  return;
1239
1245
  }
1240
1246
  for (const u of f.error.issues) {
1241
- const g = en(u.message);
1247
+ const g = an(u.message);
1242
1248
  o.push({
1243
1249
  code: "invalid_change",
1244
1250
  message: (g == null ? void 0 : g.message) ?? u.message,
@@ -1260,19 +1266,19 @@ async function fs(e, a, t, s) {
1260
1266
  const f = wt(y, [m], p);
1261
1267
  f.ok ? (y = f.dashboard, i.push(m)) : b({ code: "invalid_change", message: f.failedAt.message, path: r, ...f.failedAt.fix ? { fix: f.failedAt.fix } : {} });
1262
1268
  }, N = async (m) => {
1263
- var X, Y, j, ne, fe;
1269
+ var X, Y, K, ne, fe;
1264
1270
  const { cardId: r, index: f, path: u } = m, { settings: g = {}, highlights: $ } = m.request, O = g.columns && Object.keys(g.columns).length ? g.columns : void 0, A = Object.entries(g).some(([H, de]) => H !== "columns" && de !== void 0), F = !!((X = $ == null ? void 0 : $.add) != null && X.length);
1265
1271
  if (!O && !A && !F && !((Y = $ == null ? void 0 : $.remove) != null && Y.length)) return null;
1266
1272
  const T = ie(y, r).card, L = Object.values(O ?? {}).some((H) => H.label === null), q = Object.values(O ?? {}).some((H) => H.format !== void 0 && H.format !== null), M = {};
1267
- if (L && !((j = T.sql) != null && j.trim()))
1268
- for (const H of Dn(T)) {
1273
+ if (L && !((K = T.sql) != null && K.trim()))
1274
+ for (const H of En(T)) {
1269
1275
  const de = await t.loadCardSource(H);
1270
1276
  de && (M[Nt(H)] = de.fields);
1271
1277
  }
1272
- let G;
1278
+ let W;
1273
1279
  if (q && !((ne = T.sql) != null && ne.trim())) {
1274
1280
  const H = t.readModelFormats ? await t.readModelFormats({ card: T }) : null;
1275
- G = H ? { status: "read", formats: H } : { status: "unavailable" };
1281
+ W = H ? { status: "read", formats: H } : { status: "unavailable" };
1276
1282
  }
1277
1283
  let z;
1278
1284
  if ((O || F) && ((fe = T.sql) != null && fe.trim()) && T.type !== "kpi") {
@@ -1284,7 +1290,7 @@ async function fs(e, a, t, s) {
1284
1290
  fix: "Check that the card runs and returns rows, then propose again."
1285
1291
  }), z = H;
1286
1292
  }
1287
- const W = Un(
1293
+ const j = Hn(
1288
1294
  T,
1289
1295
  {
1290
1296
  settings: { ...g, ...O ? { columns: O } : { columns: void 0 } },
@@ -1295,13 +1301,13 @@ async function fs(e, a, t, s) {
1295
1301
  cardRef: m.cardRef,
1296
1302
  catalogs: M,
1297
1303
  newId: t.newId,
1298
- ...G ? { modelFormats: G } : {},
1304
+ ...W ? { modelFormats: W } : {},
1299
1305
  ...z ? { sqlResultColumns: z } : {}
1300
1306
  }
1301
1307
  );
1302
- if (!W.ok)
1303
- throw o.push(...W.problems), new me();
1304
- for (const H of W.labels) {
1308
+ if (!j.ok)
1309
+ throw o.push(...j.problems), new me();
1310
+ for (const H of j.labels) {
1305
1311
  const de = m.queryLabels.find((Ae) => He(Ae.key, H.key) && Ae.label !== H.label);
1306
1312
  de && b({
1307
1313
  code: "value_invalid",
@@ -1310,7 +1316,7 @@ async function fs(e, a, t, s) {
1310
1316
  fix: "State the label once."
1311
1317
  });
1312
1318
  }
1313
- return n.push(...W.warnings), W.labels.length && pa(T, W.labels).changed.length && w({ op: "card.update", cardId: r, update: { kind: "relabel", labels: W.labels }, changeIndex: f }, `${u}.columns`), W.settings && w({ op: "card.update", cardId: r, update: { kind: "settings", settings: W.settings }, changeIndex: f }, O ? `${u}.columns` : u), W.settings;
1319
+ return n.push(...j.warnings), j.labels.length && pa(T, j.labels).changed.length && w({ op: "card.update", cardId: r, update: { kind: "relabel", labels: j.labels }, changeIndex: f }, `${u}.columns`), j.settings && w({ op: "card.update", cardId: r, update: { kind: "settings", settings: j.settings }, changeIndex: f }, O ? `${u}.columns` : u), j.settings;
1314
1320
  }, _ = (m, r) => {
1315
1321
  var g;
1316
1322
  const f = ie(y, m);
@@ -1330,7 +1336,7 @@ async function fs(e, a, t, s) {
1330
1336
  }), { card: f.card, read: u };
1331
1337
  }, I = /* @__PURE__ */ new Map(), R = (m, r, f) => {
1332
1338
  var g;
1333
- const u = ja("metric", ((g = m.config) == null ? void 0 : g.metricColumns) ?? []);
1339
+ const u = Ka("metric", ((g = m.config) == null ? void 0 : g.metricColumns) ?? []);
1334
1340
  return r.map(({ index: $, calculations: O }) => ({
1335
1341
  ...O,
1336
1342
  measure: u[$] ?? { role: "metric", field: "", ordinal: $ },
@@ -1361,15 +1367,15 @@ async function fs(e, a, t, s) {
1361
1367
  trend: m.trend,
1362
1368
  trendGrain: m.trendGrain,
1363
1369
  seeRecords: m.seeRecords
1364
- }), K = (m) => Object.entries(V(m)).filter(([, r]) => r !== void 0).map(([r]) => r), B = (m) => (o.push(...m.slice(0, -1)), b(m[m.length - 1])), se = (m, r, f, u) => {
1365
- const { card: g } = r, $ = [...m.type ? ["type"] : [], ...m.query ? ["query"] : [], ...m.matrix ? ["matrix"] : [], ...K(m)];
1370
+ }), G = (m) => Object.entries(V(m)).filter(([, r]) => r !== void 0).map(([r]) => r), B = (m) => (o.push(...m.slice(0, -1)), b(m[m.length - 1])), se = (m, r, f, u) => {
1371
+ const { card: g } = r, $ = [...m.type ? ["type"] : [], ...m.query ? ["query"] : [], ...m.matrix ? ["matrix"] : [], ...G(m)];
1366
1372
  $.length && b({
1367
1373
  code: "invalid_change",
1368
1374
  message: `"${g.title}" is a text card, so it takes no ${et($)}.`,
1369
1375
  path: u,
1370
1376
  fix: "Change a card to or from text in the editor, or add a new card and remove this one."
1371
1377
  });
1372
- const O = Ka(g, { inputs: y.inputs, variables: y.variables });
1378
+ const O = Ga(g, { inputs: y.inputs, variables: y.variables });
1373
1379
  O.editable || b({ code: "card_not_editable", message: O.message, path: `${u}.cardId`, fix: "Tell the user to change it in the editor.", details: { reason: "text" } });
1374
1380
  const A = O.editable && (O.form === "legacy_html" || O.form === "legacy_runs");
1375
1381
  A && m.description !== void 0 && m.text === void 0 && b({
@@ -1453,7 +1459,7 @@ async function fs(e, a, t, s) {
1453
1459
  }
1454
1460
  const g = (y.sheets ?? []).find(($) => $.id === u);
1455
1461
  return g || b({ code: "sheet_not_found", message: `There's no sheet ${u} on this dashboard.`, path: r, fix: "Read the outline again and use its sheet ids.", details: { sheets: Be() } }), f.grid && Xe(g) && b({ code: "sheet_not_a_grid", message: `"${g.title}" is a Document sheet.`, path: r, fix: "Add the card to a grid sheet; Document sheets are changed in the editor.", details: { sheets: Be() } }), g;
1456
- }, Re = (m, r) => it(m, r, { grid: !0 }), Vt = (m, r) => m.map((f, u) => Re(f, `${r}.sheetIds[${u}]`).id), Kt = (m, r, f, u) => {
1462
+ }, Re = (m, r) => it(m, r, { grid: !0 }), Vt = (m, r) => m.map((f, u) => Re(f, `${r}.sheetIds[${u}]`).id), Gt = (m, r, f, u) => {
1457
1463
  var A;
1458
1464
  for (const F of Ma(r, f)) b({ ...F, path: `${u}.${F.path}` });
1459
1465
  const g = Fe[m], $ = tt(r), O = r.dateField;
@@ -1466,9 +1472,9 @@ async function fs(e, a, t, s) {
1466
1472
  const F = Object.keys(Fe).filter((T) => Fe[T].forms.includes($));
1467
1473
  b({
1468
1474
  code: "type_not_supported",
1469
- message: `A ${m.replace(/_/g, " ")} card takes ${g.forms.map((T) => Ge[T]).join(" or ")}, not ${Ge[$]}.`,
1475
+ message: `A ${m.replace(/_/g, " ")} card takes ${g.forms.map((T) => We[T]).join(" or ")}, not ${We[$]}.`,
1470
1476
  path: `${u}.query`,
1471
- fix: `Send ${g.forms.map((T) => Ge[T]).join(" or ")}, or use a type this query fits: ${F.join(", ")}.`
1477
+ fix: `Send ${g.forms.map((T) => We[T]).join(" or ")}, or use a type this query fits: ${F.join(", ")}.`
1472
1478
  });
1473
1479
  }
1474
1480
  if ($ === "measures") {
@@ -1497,30 +1503,30 @@ async function fs(e, a, t, s) {
1497
1503
  fix: "Send matrix: { columns: [...] } naming dimensions or the date field of the query (an empty list puts nothing across the top)."
1498
1504
  }), !g.matrixColumns && f && b({ code: "type_not_supported", message: "matrix.columns is only for Matrix cards.", path: `${u}.matrix`, fix: 'Leave out matrix, or use type "matrix".' }), f && $ === "measures") {
1499
1505
  const F = r, T = F.datasetName, L = [...F.dimensions ?? [], ...F.timeGrain && F.dateField ? [F.dateField] : []];
1500
- L.length && f.columns.length >= L.length && L.every((M) => f.columns.some((G) => be(G, T) === be(M, T))) && b({
1506
+ L.length && f.columns.length >= L.length && L.every((M) => f.columns.some((W) => be(W, T) === be(M, T))) && b({
1501
1507
  code: "type_not_supported",
1502
1508
  message: "A Matrix needs at least one field down the side.",
1503
1509
  path: `${u}.matrix.columns`,
1504
1510
  fix: "Leave one dimension or the date field out of matrix.columns."
1505
1511
  });
1506
1512
  const q = new Set([...F.dimensions ?? [], ...F.dateField ? [F.dateField] : []].map((M) => be(M, T)));
1507
- f.columns.forEach((M, G) => {
1513
+ f.columns.forEach((M, W) => {
1508
1514
  q.has(be(M, T)) || b({
1509
1515
  code: "type_not_supported",
1510
1516
  message: `"${Ct(M)}" isn't one of the query's dimensions or its date field.`,
1511
- path: `${u}.matrix.columns[${G}]`,
1517
+ path: `${u}.matrix.columns[${W}]`,
1512
1518
  fix: "Name dimensions or the date field of the query in matrix.columns."
1513
1519
  });
1514
1520
  });
1515
1521
  }
1516
- }, jt = (m, r) => b({
1522
+ }, Kt = (m, r) => b({
1517
1523
  code: m.code === "query_not_kept" ? "card_not_editable" : "invalid_change",
1518
1524
  message: m.message,
1519
1525
  path: `${r}.query`,
1520
1526
  fix: m.code === "query_not_kept" ? "Tell the user to make this change in the editor." : "Read the outline again and propose again.",
1521
1527
  details: { reason: "not_expressible", ..."parts" in m ? { parts: m.parts } : {} }
1522
- }), Wt = (m, r, f, u, g, $, O) => {
1523
- const A = Hn(m, r, f, $, O);
1528
+ }), jt = (m, r, f, u, g, $, O) => {
1529
+ const A = Yn(m, r, f, $, O);
1524
1530
  if (!A.length) return;
1525
1531
  const F = r;
1526
1532
  if (A.length === 1 && A[0] === "dateField" && F.dateField && !F.timeGrain && !F.timeWindow) {
@@ -1540,28 +1546,41 @@ async function fs(e, a, t, s) {
1540
1546
  fix: O ? "Tell the user to make this change in the editor." : `Leave out ${T}; the rest of the card can be added.`,
1541
1547
  details: { reason: "not_expressible", detail: `doesn't hold: ${T}` }
1542
1548
  });
1543
- }, Gt = async (m, r, f, u, g = !1) => {
1549
+ }, Wt = async (m, r, f, u, g = !1) => {
1544
1550
  const $ = ct(m);
1545
1551
  if ("sql" in r)
1546
1552
  return D(`${u}.query`), { type: $, source: { kind: "sql", connectionId: r.connectionId, sql: r.sql } };
1553
+ "measures" in r && r.timeGrain === uo && (fo({ cardType: $, configBacked: !0, shelf: "groupBy", dataType: "date" }).ok || b(
1554
+ m === "kpi" ? {
1555
+ code: "type_not_supported",
1556
+ message: "A KPI's query can't group by a grain that follows the dashboard date.",
1557
+ path: `${u}.query.timeGrain`,
1558
+ fix: 'For a trend that follows the dashboard date, send trend: true and trendGrain: "automatic" with no Trend By.'
1559
+ } : {
1560
+ code: "type_not_supported",
1561
+ message: `${si[m] ?? `A ${m.replace(/_/g, " ")}`} can't group by a grain that follows the dashboard date.`,
1562
+ path: `${u}.query.timeGrain`,
1563
+ fix: 'Use a bar, line or area chart or a table, or send a fixed timeGrain such as "month".'
1564
+ }
1565
+ ));
1547
1566
  const O = $ === "matrixTable" || $ === "detailTable" ? "table" : $, A = await t.compileCardQuery({ query: r, chartType: O });
1548
1567
  if (!A.ok)
1549
1568
  throw o.push(...A.problems.map((q) => ({ ...q, path: q.path ? `${u}.query.${q.path}` : `${u}.query` }))), new me();
1550
1569
  n.push(...A.warnings.map((q) => ({ ...q, path: q.path ?? `${u}.query` })));
1551
- const F = !g && "timeWindow" in r && r.timeWindow ? ci(A.part.config) : void 0;
1552
- F && "timeWindow" in r && r.timeWindow && hs(r.timeWindow, { use: "cardFilter", columnHasTime: uo(F) }, `${u}.query.timeWindow`, b);
1570
+ const F = !g && "timeWindow" in r && r.timeWindow ? mi(A.part.config) : void 0;
1571
+ F && "timeWindow" in r && r.timeWindow && hs(r.timeWindow, { use: "cardFilter", columnHasTime: mo(F) }, `${u}.query.timeWindow`, b);
1553
1572
  let T = { ...A.part, type: $ };
1554
1573
  const L = T.config ?? {};
1555
1574
  if ($ === "detailTable") {
1556
- const q = fo(mo("table", "detailTable", L)) ?? {};
1557
- T = { ...T, config: si(q) };
1575
+ const q = ho(po("table", "detailTable", L)) ?? {};
1576
+ T = { ...T, config: ii(q) };
1558
1577
  }
1559
- return $ === "matrixTable" && (T = await vs(T, L, r, f, u)), oi(T, qe(r));
1578
+ return $ === "matrixTable" && (T = await vs(T, L, r, f, u)), ri(T, qe(r));
1560
1579
  }, vs = async (m, r, f, u, g) => {
1561
1580
  var q;
1562
1581
  const $ = await t.loadCardSource({ domainId: f.domainId, datasetName: f.datasetName });
1563
1582
  if ($ || b({ code: "field_not_found", message: `The dataset "${f.datasetName}" isn't available.`, path: `${g}.query.datasetName`, fix: "Find datasets with semaphor_list_datasets." }), m.source.kind !== "semantic") throw new me();
1564
- const O = { id: "scratch", title: "", type: "table", dataSource: m.source.dataSource, config: r }, A = po(O, "matrixTable", { catalog: $.fields, createId: t.newId }), F = A.status === "changed" ? (q = A.card.config) == null ? void 0 : q.matrix : void 0;
1583
+ const O = { id: "scratch", title: "", type: "table", dataSource: m.source.dataSource, config: r }, A = bo(O, "matrixTable", { catalog: $.fields, createId: t.newId }), F = A.status === "changed" ? (q = A.card.config) == null ? void 0 : q.matrix : void 0;
1565
1584
  (A.status !== "changed" || A.leftOut.length || !F) && b({
1566
1585
  code: "type_not_supported",
1567
1586
  message: A.status === "changed" && A.leftOut.length ? `These fields can't run in a Matrix: ${A.leftOut.join(", ")}.` : "This query can't be shown as a Matrix.",
@@ -1570,11 +1589,11 @@ async function fs(e, a, t, s) {
1570
1589
  });
1571
1590
  let T = F;
1572
1591
  const L = f.datasetName;
1573
- for (const [M, G] of u.columns.entries()) {
1592
+ for (const [M, W] of u.columns.entries()) {
1574
1593
  const z = [...T.spec.rows, ...T.spec.columns].find(
1575
- (W) => go(W.field) === be(G, L)
1594
+ (j) => yo(j.field) === be(W, L)
1576
1595
  );
1577
- z || b({ code: "type_not_supported", message: `"${Ct(G)}" isn't a level of this Matrix.`, path: `${g}.matrix.columns[${M}]`, fix: "Name dimensions or the date field of the query in matrix.columns." }), T = bo(T, yo(T.spec, z.id, "columns")).config;
1596
+ z || b({ code: "type_not_supported", message: `"${Ct(W)}" isn't a level of this Matrix.`, path: `${g}.matrix.columns[${M}]`, fix: "Name dimensions or the date field of the query in matrix.columns." }), T = vo(T, Io(T.spec, z.id, "columns")).config;
1578
1597
  }
1579
1598
  return { ...m, config: { matrix: T } };
1580
1599
  }, rt = /* @__PURE__ */ new Map(), dt = /* @__PURE__ */ new Map();
@@ -1584,20 +1603,20 @@ async function fs(e, a, t, s) {
1584
1603
  switch (r.op) {
1585
1604
  case "card.add": {
1586
1605
  const u = r.position && typeof r.position == "object" ? (() => {
1587
- const Y = oe(r.position.after, `${f}.position.after`), j = xe(y).find(
1606
+ const Y = oe(r.position.after, `${f}.position.after`), K = xe(y).find(
1588
1607
  (ne) => ne.cardId === Y && ne.kind === "frameCard"
1589
1608
  );
1590
- return !j || j.kind !== "frameCard" ? b({
1609
+ return !K || K.kind !== "frameCard" ? b({
1591
1610
  code: "card_not_found",
1592
1611
  message: `${r.position.after} isn't a card on a grid sheet.`,
1593
1612
  path: `${f}.position.after`,
1594
1613
  fix: "Use a cardId from semaphor_get_dashboard_details on the same sheet, or a handle from this proposal."
1595
- }) : (r.sheetId && Re(r.sheetId, `${f}.sheetId`).id !== j.sheetId && b({
1614
+ }) : (r.sheetId && Re(r.sheetId, `${f}.sheetId`).id !== K.sheetId && b({
1596
1615
  code: "invalid_change",
1597
1616
  message: `position.after names a card on another sheet than ${r.sheetId}.`,
1598
1617
  path: `${f}.position.after`,
1599
1618
  fix: "Leave out sheetId, or name the card's sheet."
1600
- }), { sheetId: j.sheetId, frameId: j.frameId });
1619
+ }), { sheetId: K.sheetId, frameId: K.frameId });
1601
1620
  })() : void 0, g = u ? Re(u.sheetId, `${f}.position.after`) : r.sheetId ? Re(r.sheetId, `${f}.sheetId`) : (() => {
1602
1621
  const Y = nt();
1603
1622
  return Y.length !== 1 && b({
@@ -1608,19 +1627,19 @@ async function fs(e, a, t, s) {
1608
1627
  details: { sheets: Be() }
1609
1628
  }), Y[0];
1610
1629
  })(), $ = u ? { after: u.frameId } : typeof r.position == "string" ? r.position : void 0, O = $ || r.width ? { ...$ ? { position: $ } : {}, ...r.width ? { width: r.width } : {} } : void 0, A = (Y) => {
1611
- const j = r.handle ?? `$card_${++x}`;
1612
- return h.has(j) && b({ code: "invalid_change", message: `The handle ${j} is defined twice.`, path: `${f}.handle`, fix: "Give each new card, filter or sheet its own handle." }), h.set(j, { kind: "card", id: Y.id, title: r.title }), d.push({ ref: j, kind: "card", id: Y.id, title: r.title, changeIndex: m }), j;
1630
+ const K = r.handle ?? `$card_${++x}`;
1631
+ return h.has(K) && b({ code: "invalid_change", message: `The handle ${K} is defined twice.`, path: `${f}.handle`, fix: "Give each new card, filter or sheet its own handle." }), h.set(K, { kind: "card", id: Y.id, title: r.title }), d.push({ ref: K, kind: "card", id: Y.id, title: r.title, changeIndex: m }), K;
1613
1632
  };
1614
1633
  if (r.type === "text") {
1615
- const Y = [...r.query ? ["query"] : [], ...r.matrix ? ["matrix"] : [], ...K(r)];
1634
+ const Y = [...r.query ? ["query"] : [], ...r.matrix ? ["matrix"] : [], ...G(r)];
1616
1635
  Y.length && b({ code: "invalid_change", message: `A text card takes no ${et(Y)}.`, path: f, fix: xa }), r.text === void 0 && b({ code: "invalid_change", message: "A text card needs its words in text.", path: `${f}.text`, fix: xa });
1617
- const j = ga({ text: r.text, context: { dashboard: y, place: { kind: "sheet", sheetId: g.id } }, path: `${f}.text` });
1618
- j.ok || B(j.problems);
1619
- const ne = Ho({
1636
+ const K = ga({ text: r.text, context: { dashboard: y, place: { kind: "sheet", sheetId: g.id } }, path: `${f}.text` });
1637
+ K.ok || B(K.problems);
1638
+ const ne = Yo({
1620
1639
  id: t.newId(),
1621
1640
  title: r.title,
1622
1641
  ...r.description ? { description: r.description } : {},
1623
- richContent: j.ok && !j.unchanged ? j.richContent : { version: 1, blocks: [{ type: "paragraph", children: [] }] }
1642
+ richContent: K.ok && !K.unchanged ? K.richContent : { version: 1, blocks: [{ type: "paragraph", children: [] }] }
1624
1643
  });
1625
1644
  w({ op: "card.add", sheetId: g.id, frame: { id: t.newId(), cards: [ne], activeCardId: ne.id }, ...O ? { placement: O } : {}, changeIndex: m }, f), A(ne);
1626
1645
  break;
@@ -1632,16 +1651,16 @@ async function fs(e, a, t, s) {
1632
1651
  fix: "Send query; text is for type text."
1633
1652
  });
1634
1653
  const F = yt(r.query), T = F.query, L = r.type;
1635
- Kt(L, T, r.matrix, f);
1636
- const q = await Gt(L, T, r.matrix, f), M = {
1637
- ...zo({ id: t.newId(), title: r.title, ...r.description ? { description: r.description } : {} }),
1654
+ Gt(L, T, r.matrix, f);
1655
+ const q = await Wt(L, T, r.matrix, f), M = {
1656
+ ...Jo({ id: t.newId(), title: r.title, ...r.description ? { description: r.description } : {} }),
1638
1657
  type: q.type
1639
- }, G = ha(M, q);
1640
- G.ok || b({ code: "invalid_change", message: G.message, path: f });
1641
- const z = G.ok ? G.card : M;
1642
- Wt(z, T, r.matrix, f, r.title, q);
1643
- const W = { id: t.newId(), cards: [z], activeCardId: z.id };
1644
- w({ op: "card.add", sheetId: g.id, frame: W, ...O ? { placement: O } : {}, changeIndex: m }, f);
1658
+ }, W = ha(M, q);
1659
+ W.ok || b({ code: "invalid_change", message: W.message, path: f });
1660
+ const z = W.ok ? W.card : M;
1661
+ jt(z, T, r.matrix, f, r.title, q);
1662
+ const j = { id: t.newId(), cards: [z], activeCardId: z.id };
1663
+ w({ op: "card.add", sheetId: g.id, frame: j, ...O ? { placement: O } : {}, changeIndex: m }, f);
1645
1664
  const X = A(z);
1646
1665
  c.push(z.id), await P({ cardId: z.id, cardRef: X, stated: F.calculations, index: m, path: f }), await N({
1647
1666
  cardId: z.id,
@@ -1664,30 +1683,30 @@ async function fs(e, a, t, s) {
1664
1683
  let A = !1, F = [];
1665
1684
  const T = r.type && r.type !== ((Ut = Ee($)) == null ? void 0 : Ut.type) ? ct(r.type) : void 0;
1666
1685
  if (T && T !== $.type) {
1667
- const q = O.editable ? O.source : void 0, M = eo($, T), G = M && q && q.kind === "semantic" ? (Qt = await t.loadCardSource({ domainId: q.domainId, datasetName: q.datasetName })) == null ? void 0 : Qt.fields : void 0, z = [], W = to($, T, {
1668
- ...G ? { catalog: G } : {},
1669
- ...M && !G ? { catalogLoading: !0 } : {},
1686
+ const q = O.editable ? O.source : void 0, M = eo($, T), W = M && q && q.kind === "semantic" ? (Qt = await t.loadCardSource({ domainId: q.domainId, datasetName: q.datasetName })) == null ? void 0 : Qt.fields : void 0, z = [], j = to($, T, {
1687
+ ...W ? { catalog: W } : {},
1688
+ ...M && !W ? { catalogLoading: !0 } : {},
1670
1689
  createId: () => {
1671
1690
  const X = t.newId();
1672
1691
  return z.push(X), X;
1673
1692
  }
1674
1693
  });
1675
- if (W.status === "refused" && b({ code: "type_not_supported", message: "The card's dataset fields couldn't be loaded for a change to or from a Matrix.", path: `${f}.type`, fix: "Send a complete query with the type change." }), W.status === "changed") {
1676
- const X = [...W.leftOut, ...W.droppedPreferences];
1694
+ if (j.status === "refused" && b({ code: "type_not_supported", message: "The card's dataset fields couldn't be loaded for a change to or from a Matrix.", path: `${f}.type`, fix: "Send a complete query with the type change." }), j.status === "changed") {
1695
+ const X = [...j.leftOut, ...j.droppedPreferences];
1677
1696
  X.length && n.push({
1678
1697
  code: "type_change_drops",
1679
1698
  message: `Changing "${$.title}" to ${r.type.replace(/_/g, " ")} leaves out ${X.join(", ")}.`,
1680
1699
  path: `${f}.type`,
1681
1700
  details: { dropped: X }
1682
1701
  }), w(
1683
- { op: "card.update", cardId: u, update: { kind: "retype", type: T, ...G ? { catalog: G } : {}, newIds: z }, changeIndex: m },
1702
+ { op: "card.update", cardId: u, update: { kind: "retype", type: T, ...W ? { catalog: W } : {}, newIds: z }, changeIndex: m },
1684
1703
  `${f}.type`
1685
1704
  ), A = !0;
1686
1705
  }
1687
1706
  }
1688
1707
  const L = r.query ? yt(r.query) : void 0;
1689
1708
  if (r.query || r.matrix) {
1690
- const q = ie(y, u).card, M = we(q, { sql: !0, calculations: !1 }), G = M.editable ? yt(M.query).query : void 0, z = G, W = di(z, (L == null ? void 0 : L.query) ?? {}, `${f}.query`, (le) => {
1709
+ const q = ie(y, u).card, M = we(q, { sql: !0, calculations: !1 }), W = M.editable ? yt(M.query).query : void 0, z = W, j = ui(z, (L == null ? void 0 : L.query) ?? {}, `${f}.query`, (le) => {
1691
1710
  if (le.code === "query_form_mismatch" && (L != null && L.calculations.length)) {
1692
1711
  const pe = R(q, L.calculations, f), Ce = fa({ card: q, stated: pe, context: { path: f, cardRef: r.cardId, dates: ka(q) } });
1693
1712
  if (!Ce.ok)
@@ -1695,22 +1714,22 @@ async function fs(e, a, t, s) {
1695
1714
  }
1696
1715
  return b(le);
1697
1716
  });
1698
- F = ri((L == null ? void 0 : L.query) ?? {}, W);
1717
+ F = ci((L == null ? void 0 : L.query) ?? {}, j);
1699
1718
  const X = ((Ht = Ee(q)) == null ? void 0 : Ht.type) ?? $t(q.type), Y = r.matrix ?? (M.editable ? M.matrix : void 0);
1700
- Kt(X, W, Y, f);
1701
- const j = M.editable && G ? ao(G, W, M.matrix, Y) : void 0, ne = !j || j.aspects.length > 0, fe = j && !("sql" in W) ? qe(W).filter((le) => !ma(j, le.key.role)) : [], H = so(q, j, fe.map((le) => le.key.role));
1702
- H && jt(H, f);
1703
- let de = W;
1704
- if (j && !("sql" in W) && W.orderBy && !j.aspects.includes("order") && ["metric", "group_by", "detail"].some((le) => ma(j, le))) {
1705
- const { orderBy: le, ...pe } = W;
1719
+ Gt(X, j, Y, f);
1720
+ const K = M.editable && W ? ao(W, j, M.matrix, Y) : void 0, ne = !K || K.aspects.length > 0, fe = K && !("sql" in j) ? qe(j).filter((le) => !ma(K, le.key.role)) : [], H = so(q, K, fe.map((le) => le.key.role));
1721
+ H && Kt(H, f);
1722
+ let de = j;
1723
+ if (K && !("sql" in j) && j.orderBy && !K.aspects.includes("order") && ["metric", "group_by", "detail"].some((le) => ma(K, le))) {
1724
+ const { orderBy: le, ...pe } = j;
1706
1725
  de = pe;
1707
1726
  }
1708
1727
  let Ae;
1709
1728
  if (ne) {
1710
- const le = !!(z && ms(z, (L == null ? void 0 : L.query) ?? {}) && (j != null && j.keptWindow)), pe = await Gt(X, de, Y, f, le), Ce = pe.type === ct(X) ? { ...pe, type: q.type } : pe;
1729
+ const le = !!(z && ms(z, (L == null ? void 0 : L.query) ?? {}) && (K != null && K.keptWindow)), pe = await Wt(X, de, Y, f, le), Ce = pe.type === ct(X) ? { ...pe, type: q.type } : pe;
1711
1730
  Ae = Ce;
1712
- const da = j ? { ...Ce, change: j } : Ce, ge = ha(q, da);
1713
- if (ge.ok || jt(ge, f), ge.ok && ge.droppedBindings.length && n.push({
1731
+ const da = K ? { ...Ce, change: K } : Ce, ge = ha(q, da);
1732
+ if (ge.ok || Kt(ge, f), ge.ok && ge.droppedBindings.length && n.push({
1714
1733
  code: "control_binding_dropped",
1715
1734
  message: `"${q.title}" loses the controls bound to the levels or measures this change removes; they stop changing this card.`,
1716
1735
  path: `${f}.query`,
@@ -1727,7 +1746,7 @@ async function fs(e, a, t, s) {
1727
1746
  });
1728
1747
  w({ op: "card.update", cardId: u, update: { kind: "requery", query: da }, changeIndex: m }, `${f}.query`), A = !0;
1729
1748
  }
1730
- fe.length && pa(ie(y, u).card, fe).changed.length && w({ op: "card.update", cardId: u, update: { kind: "relabel", labels: fe }, changeIndex: m }, `${f}.query`), (ne || fe.length) && Wt(ie(y, u).card, de, Y, f, q.title ?? "", Ae, j);
1749
+ fe.length && pa(ie(y, u).card, fe).changed.length && w({ op: "card.update", cardId: u, update: { kind: "relabel", labels: fe }, changeIndex: m }, `${f}.query`), (ne || fe.length) && jt(ie(y, u).card, de, Y, f, q.title ?? "", Ae, K);
1731
1750
  }
1732
1751
  (r.query || T) && await P({ cardId: u, cardRef: r.cardId, stated: (L == null ? void 0 : L.calculations) ?? [], index: m, path: f }) && (A = !0), (r.title !== void 0 || r.description !== void 0) && w(
1733
1752
  {
@@ -1772,7 +1791,7 @@ async function fs(e, a, t, s) {
1772
1791
  fix: "Use one of details.available, or read semaphor_get_dataset_schema.",
1773
1792
  details: { available: u.fields.slice(0, 20).map((L) => L.name) }
1774
1793
  });
1775
- const $ = r.sheetIds ? Vt(r.sheetIds, f) : void 0, O = Ta($), A = Qo({
1794
+ const $ = r.sheetIds ? Vt(r.sheetIds, f) : void 0, O = Ta($), A = zo({
1776
1795
  field: g,
1777
1796
  dataSource: u.dataSource,
1778
1797
  connectionId: u.connectionId,
@@ -1810,7 +1829,7 @@ async function fs(e, a, t, s) {
1810
1829
  ...r.selection !== void 0 || A ? { definition: O } : {},
1811
1830
  // A change of sheets states the sheets; what else the scope says (the cards it leaves out,
1812
1831
  // whether it covers Document sheets) stays.
1813
- ...F ? { scope: Po(
1832
+ ...F ? { scope: Mo(
1814
1833
  $.scope,
1815
1834
  Ta(F === "all" ? void 0 : F),
1816
1835
  new Set([...Ot(y).values()].filter((L) => L.sheetKind === "document").map((L) => L.sheetId))
@@ -1833,7 +1852,7 @@ async function fs(e, a, t, s) {
1833
1852
  path: `${f}.filterId`,
1834
1853
  fix: "Tell the user to change it in the editor; removing or excluding it works."
1835
1854
  });
1836
- const $ = Bt(r.cardId, `${f}.cardId`), O = Ga(y, $).card, A = Ie(y).findFilterInput({ inputId: u }), F = A && $e(A.input, O, v).reach === "relationshipApplied", T = await ui(O, r.field, t, `${f}.field`, b, F ? g.label : void 0);
1855
+ const $ = Bt(r.cardId, `${f}.cardId`), O = Wa(y, $).card, A = Ie(y).findFilterInput({ inputId: u }), F = A && $e(A.input, O, v).reach === "relationshipApplied", T = await hi(O, r.field, t, `${f}.field`, b, F ? g.label : void 0);
1837
1856
  w({ op: "filter.bind", filterId: u, cardId: $, binding: { kind: "bound", cardId: $, bindingId: t.newId(), target: T }, changeIndex: m }, f), d.push({ ref: r.filterId, kind: "filter", id: u, title: g.label, changeIndex: m });
1838
1857
  break;
1839
1858
  }
@@ -1852,7 +1871,7 @@ async function fs(e, a, t, s) {
1852
1871
  break;
1853
1872
  }
1854
1873
  case "layout.tabs": {
1855
- const u = r.cardIds.map((q, M) => oe(q, `${f}.cardIds[${M}]`)), g = (q, M, G = `${f}.cardIds`) => b({ code: "layout_invalid", message: q, path: G, fix: M });
1874
+ const u = r.cardIds.map((q, M) => oe(q, `${f}.cardIds[${M}]`)), g = (q, M, W = `${f}.cardIds`) => b({ code: "layout_invalid", message: q, path: W, fix: M });
1856
1875
  new Set(u).size !== u.length && g("Each card is named once in tabs.", "Name two or more different cards, each once.");
1857
1876
  const $ = u.map((q, M) => ie(y, q) ?? g("A Document section's card can't be a tab.", "Name cards on a grid sheet.", `${f}.cardIds[${M}]`)), O = $[0].sheet;
1858
1877
  $.some((q) => q.sheet.id !== O.id) && g("Tabs are cards on one sheet.", "Name cards on one sheet; a card moves to another sheet in the editor."), $.some((q) => bt(q.frame) && q.frame.cards.length > 1) && g("A custom visual's inputs stay in its spot.", "Name cards that aren't a custom visual's inputs, or arrange them in the editor.");
@@ -1931,7 +1950,7 @@ async function fs(e, a, t, s) {
1931
1950
  case "dashboard.style": {
1932
1951
  const { op: u, ...g } = r;
1933
1952
  S ?? (S = t.readOrganizationAppearance ? t.readOrganizationAppearance() : Promise.resolve(null));
1934
- const { style: $, organizationAppearance: O } = za(y, await S), A = rn({ style: $, edit: g, layers: { organizationAppearance: O } });
1953
+ const { style: $, organizationAppearance: O } = za(y, await S), A = ln({ style: $, edit: g, layers: { organizationAppearance: O } });
1935
1954
  if (A.ok)
1936
1955
  A.sentences.length && w({ op: "dashboard.style", style: A.style, sentences: A.sentences, changeIndex: m }, f);
1937
1956
  else {
@@ -1960,7 +1979,7 @@ async function fs(e, a, t, s) {
1960
1979
  break;
1961
1980
  }
1962
1981
  case "variable.update": {
1963
- const u = zn(y, r.name, `${f}.name`, Te), g = r.rename ?? u.name, $ = {
1982
+ const u = Jn(y, r.name, `${f}.name`, Te), g = r.rename ?? u.name, $ = {
1964
1983
  ...r.rename !== void 0 ? { name: r.rename } : {},
1965
1984
  ...r.label !== void 0 ? { label: r.label } : {},
1966
1985
  ...r.presentation !== void 0 ? { presentation: r.presentation } : {},
@@ -1983,7 +2002,7 @@ async function fs(e, a, t, s) {
1983
2002
  );
1984
2003
  $.query = T.query, $.get = T.get;
1985
2004
  } else if (r.get !== void 0) {
1986
- const T = Xn(u, r.get, O, Te, f);
2005
+ const T = ei(u, r.get, O, Te, f);
1987
2006
  $.query = T.query, $.get = T.get;
1988
2007
  }
1989
2008
  Object.keys($).length || b({ code: "invalid_change", message: `variable.update on ${u.name} changes nothing.`, path: f, fix: "Send rename, label, query, get, presentation or emptyText." });
@@ -1994,7 +2013,7 @@ async function fs(e, a, t, s) {
1994
2013
  case "variable.remove": {
1995
2014
  const u = Je(y, r.name);
1996
2015
  u || b(ls(y, r.name, `${f}.name`));
1997
- const g = u, $ = Zn(y, g.id);
2016
+ const g = u, $ = ti(y, g.id);
1998
2017
  $.places.length && b({
1999
2018
  code: "variable_in_use",
2000
2019
  message: `${g.name} is shown in ${$.words}.`,
@@ -2005,7 +2024,7 @@ async function fs(e, a, t, s) {
2005
2024
  break;
2006
2025
  }
2007
2026
  case "document.text.update": {
2008
- const u = it(r.sheetId, `${f}.sheetId`, { grid: !1 }), { edit: g, unchanged: $ } = ei(r, y, u, f, Te);
2027
+ const u = it(r.sheetId, `${f}.sheetId`, { grid: !1 }), { edit: g, unchanged: $ } = ai(r, y, u, f, Te);
2009
2028
  if (d.push({ ref: r.sheetId, kind: "sheet", id: u.id, title: u.title ?? "", changeIndex: m }), $) break;
2010
2029
  w({ op: "document.text", sheetId: u.id, edit: g, changeIndex: m }, f);
2011
2030
  break;
@@ -2041,10 +2060,10 @@ async function fs(e, a, t, s) {
2041
2060
  code: "type_not_supported",
2042
2061
  message: `As changed, "${r.card.title}" would have no query a ${g.replace(/_/g, " ")} can run.`,
2043
2062
  path: `changes[${f}]`,
2044
- fix: `Send a complete query with the type change: ${((sa = Fe[g]) == null ? void 0 : sa.forms.map((O) => Ge[O]).join(" or ")) ?? "a measures query"}.`
2063
+ fix: `Send a complete query with the type change: ${((sa = Fe[g]) == null ? void 0 : sa.forms.map((O) => We[O]).join(" or ")) ?? "a measures query"}.`
2045
2064
  });
2046
2065
  }
2047
- if (o.push(...ni(e, ae.dashboard, i, rt, v)), o.push(...ii(ae.dashboard, dt, t.calendar)), o.length) return { ok: !1, problems: o };
2066
+ if (o.push(...di(e, ae.dashboard, i, rt, v)), o.push(...li(ae.dashboard, dt, t.calendar)), o.length) return { ok: !1, problems: o };
2048
2067
  for (const m of i) {
2049
2068
  if (m.op !== "filter.add" && !(m.op === "filter.update" && m.settings.scope)) continue;
2050
2069
  const r = m.op === "filter.add" ? m.input.id : m.filterId, f = Pe(ae.dashboard, r, void 0, v);
@@ -2107,7 +2126,7 @@ async function fs(e, a, t, s) {
2107
2126
  fix: "Add a timeWindow on that date, or a dashboard date filter that reaches the card."
2108
2127
  });
2109
2128
  }
2110
- const Is = ai(ae.dashboard, i, ae.descriptions, v);
2129
+ const Is = ni(ae.dashboard, i, ae.descriptions, v);
2111
2130
  return {
2112
2131
  ok: !0,
2113
2132
  operations: i,
@@ -2121,7 +2140,7 @@ async function fs(e, a, t, s) {
2121
2140
  warnings: n
2122
2141
  };
2123
2142
  }
2124
- function ai(e, a, t, s) {
2143
+ function ni(e, a, t, s) {
2125
2144
  const o = a.filter((l) => l.op === "card.add");
2126
2145
  if (!o.length) return [...t];
2127
2146
  const n = as(e, void 0, s);
@@ -2160,16 +2179,16 @@ function Pt(e) {
2160
2179
  if (e.op === "card.update" || e.op === "card.remove") return e.cardId;
2161
2180
  if (e.op === "card.add") return (a = e.frame.cards[0]) == null ? void 0 : a.id;
2162
2181
  }
2163
- function si(e) {
2182
+ function ii(e) {
2164
2183
  return Object.fromEntries(
2165
- ho.flatMap((a) => e[a] === void 0 ? [] : [[a, e[a]]])
2184
+ go.flatMap((a) => e[a] === void 0 ? [] : [[a, e[a]]])
2166
2185
  );
2167
2186
  }
2168
- function oi(e, a) {
2187
+ function ri(e, a) {
2169
2188
  if (!a.length || !e.config) return e;
2170
2189
  const t = { ...e.config }, s = [];
2171
2190
  if (t.matrix) {
2172
- const n = t.matrix, i = vo(n), d = [...n.spec.rows, ...n.spec.columns], l = { ...n.presentation.levelLabels }, c = { ...n.presentation.measureLabels };
2191
+ const n = t.matrix, i = _o(n), d = [...n.spec.rows, ...n.spec.columns], l = { ...n.presentation.levelLabels }, c = { ...n.presentation.measureLabels };
2173
2192
  for (const { key: h, label: p } of a) {
2174
2193
  if (h.role === "metric") {
2175
2194
  const v = i.measures.findIndex((y) => He(y, h));
@@ -2186,12 +2205,12 @@ function oi(e, a) {
2186
2205
  }
2187
2206
  const o = { metric: "metricColumns", group_by: "groupByColumns", detail: "detailColumns" };
2188
2207
  for (const { key: n, label: i } of a) {
2189
- const d = [...t[o[n.role]] ?? []], l = ja(n.role, d).findIndex((c) => He(c, n));
2190
- l < 0 || (d[l] = fn(d[l], i), t[o[n.role]] = d, s.push(n));
2208
+ const d = [...t[o[n.role]] ?? []], l = Ka(n.role, d).findIndex((c) => He(c, n));
2209
+ l < 0 || (d[l] = hn(d[l], i), t[o[n.role]] = d, s.push(n));
2191
2210
  }
2192
2211
  return { ...e, config: t, statedLabels: s };
2193
2212
  }
2194
- function ni(e, a, t, s, o) {
2213
+ function di(e, a, t, s, o) {
2195
2214
  var E;
2196
2215
  const n = [], i = new Map(xe(a).map((C) => [C.cardId, C])), d = Ot(a), l = Ie(a), c = (C) => {
2197
2216
  var k, b;
@@ -2214,7 +2233,7 @@ function ni(e, a, t, s, o) {
2214
2233
  message: `${N} isn't shown on "${c(D.sheetId)}", so it can't filter ${w}.`,
2215
2234
  fix: "Show it on that sheet first with filter.update sheetIds (null for every sheet), in the same proposal."
2216
2235
  };
2217
- const I = Io(b, D.card);
2236
+ const I = Co(b, D.card);
2218
2237
  switch (I.status) {
2219
2238
  case "incompatible":
2220
2239
  return { reason: "incompatible_field", message: `${w} can't take ${N}'s values on that field: their types differ.`, fix: "Bind a field of the same type (filter.bind)." };
@@ -2311,7 +2330,7 @@ function ni(e, a, t, s, o) {
2311
2330
  }
2312
2331
  return n;
2313
2332
  }
2314
- function ii(e, a, t) {
2333
+ function li(e, a, t) {
2315
2334
  const s = [], o = Ie(e);
2316
2335
  for (const [n, i] of a) {
2317
2336
  const d = o.findFilterInput({ inputId: n });
@@ -2325,7 +2344,7 @@ function ii(e, a, t) {
2325
2344
  });
2326
2345
  if (i.period) {
2327
2346
  const v = Ja(l && "relativeMeta" in l ? l.relativeMeta : void 0);
2328
- (!v || tn(i.period) || !an(v, i.period)) && p(
2347
+ (!v || sn(i.period) || !on(v, i.period)) && p(
2329
2348
  `"${d.input.label}" wouldn't load with that default${h ? `: ${h}` : ""}.`,
2330
2349
  h ? "Ask for a default the picker can take, or tell the user to make it a date range in the editor." : "Tell the user to change the filter's default in the editor."
2331
2350
  );
@@ -2352,7 +2371,7 @@ function ka(e) {
2352
2371
  const a = (s = (t = e.config) == null ? void 0 : t.groupByColumns) == null ? void 0 : s.find((o) => co(o.dataType || "") === "date");
2353
2372
  return { comparisonDate: a ? { name: a.name, label: a.label || a.name } : null, dateWindow: "unknown" };
2354
2373
  }
2355
- function ri(e, a) {
2374
+ function ci(e, a) {
2356
2375
  if ("sql" in a) return [];
2357
2376
  const t = e, s = (...n) => new Set(n.flatMap((i) => Array.isArray(i) ? i : i ? [i] : []).map((i) => be(i, a.datasetName))), o = {
2358
2377
  metric: s(t.measures),
@@ -2361,7 +2380,7 @@ function ri(e, a) {
2361
2380
  };
2362
2381
  return qe(a).filter((n) => o[n.key.role].has(n.key.field));
2363
2382
  }
2364
- function di(e, a, t, s) {
2383
+ function ui(e, a, t, s) {
2365
2384
  const o = Object.fromEntries(Object.entries(a).filter(([, p]) => p != null)), n = tt(o), i = tt(e), d = (p) => Sa[p].safeParse(o);
2366
2385
  if (!e || n && n !== i) {
2367
2386
  const p = n ?? i, v = p ? d(p) : void 0;
@@ -2397,10 +2416,10 @@ function Ta(e) {
2397
2416
  return e ? { kind: "sheets", sheetIds: e } : { kind: "allSheets", sheetKinds: ["dashboard"] };
2398
2417
  }
2399
2418
  function Ra(e, a, t, s) {
2400
- return ["date", "datetime", "timestamp"].some((i) => Tt(a.dataType).includes(i)) || s({ code: "invalid_change", message: "defaultPeriod is for date filters.", path: t, fix: "Use defaultValues for this field." }), hs(e, { use: "filterDefault", columnHasTime: li(a) }, t, s);
2419
+ return ["date", "datetime", "timestamp"].some((i) => Tt(a.dataType).includes(i)) || s({ code: "invalid_change", message: "defaultPeriod is for date filters.", path: t, fix: "Use defaultValues for this field." }), hs(e, { use: "filterDefault", columnHasTime: fi(a) }, t, s);
2401
2420
  }
2402
2421
  function hs(e, a, t, s) {
2403
- const o = sn(e, a);
2422
+ const o = nn(e, a);
2404
2423
  return o.ok ? o.window : s({
2405
2424
  code: "invalid_change",
2406
2425
  message: o.refusal.message,
@@ -2408,14 +2427,14 @@ function hs(e, a, t, s) {
2408
2427
  path: o.refusal.path ? `${t}.${o.refusal.path}` : t
2409
2428
  });
2410
2429
  }
2411
- function li(e) {
2430
+ function fi(e) {
2412
2431
  return qa({ dataType: e.dataType }) === "datetime";
2413
2432
  }
2414
- function ci(e) {
2433
+ function mi(e) {
2415
2434
  var a, t, s;
2416
2435
  return (s = (t = (a = e == null ? void 0 : e.filters) == null ? void 0 : a.conditions) == null ? void 0 : t.find((o) => o.relativeMeta)) == null ? void 0 : s.field;
2417
2436
  }
2418
- async function ui(e, a, t, s, o, n) {
2437
+ async function hi(e, a, t, s, o, n) {
2419
2438
  const i = no(e), d = i.kind === "config" ? i.executableSources : i.kind === "sql" ? i.pinnedCatalogSources.map((x) => x.source) : [], l = he(e), c = typeof a == "string" ? (l == null ? void 0 : l.kind) === "semantic" ? l.datasetName : void 0 : a.datasetName, h = d.find((x) => x.kind === "semantic" && Tt(x.datasetName) === Tt(c));
2420
2439
  if ((!h || h.kind !== "semantic") && n)
2421
2440
  return o({
@@ -2431,7 +2450,7 @@ async function ui(e, a, t, s, o, n) {
2431
2450
  path: s,
2432
2451
  fix: "Name a field of the card's own dataset, or { name, datasetName } for a dataset its query joins."
2433
2452
  });
2434
- const p = await t.loadCardSource({ domainId: h.domainId, datasetName: h.datasetName }), v = typeof a == "string" ? a : a.name, y = p ? ot(p.fields, v, h.datasetName) : void 0, S = y ? Yo(h, { column_name: y.name, data_type: y.dataType, ...y.sourceField ? { sourceField: y.sourceField } : {} }) : void 0;
2453
+ const p = await t.loadCardSource({ domainId: h.domainId, datasetName: h.datasetName }), v = typeof a == "string" ? a : a.name, y = p ? ot(p.fields, v, h.datasetName) : void 0, S = y ? Xo(h, { column_name: y.name, data_type: y.dataType, ...y.sourceField ? { sourceField: y.sourceField } : {} }) : void 0;
2435
2454
  return S || o({
2436
2455
  code: "field_not_found",
2437
2456
  message: `"${v}" isn't a field of ${h.datasetName}.`,
@@ -2440,12 +2459,12 @@ async function ui(e, a, t, s, o, n) {
2440
2459
  details: { available: ((p == null ? void 0 : p.fields) ?? []).slice(0, 20).map((x) => x.name) }
2441
2460
  });
2442
2461
  }
2443
- const fi = {
2462
+ const pi = {
2444
2463
  max: ba,
2445
2464
  what: "A proposal that creates a dashboard",
2446
2465
  fix: `Create with the first ${ba}, then change the new dashboard in a second proposal.`
2447
2466
  };
2448
- async function Dr(e, a) {
2467
+ async function qr(e, a) {
2449
2468
  const t = (d) => d && typeof d == "object" ? d.op : void 0, s = e.changes.flatMap(
2450
2469
  (d, l) => t(d) === "dashboard.update" ? [
2451
2470
  {
@@ -2457,12 +2476,12 @@ async function Dr(e, a) {
2457
2476
  ] : []
2458
2477
  );
2459
2478
  if (s.length) return { ok: !1, problems: s };
2460
- const o = hi(e, a), n = await fs(o, e.changes, a, { limit: fi });
2479
+ const o = bi(e, a), n = await fs(o, e.changes, a, { limit: pi });
2461
2480
  if (!n.ok) return n;
2462
- const i = mi(n, e.changes);
2463
- return { ...i, seed: o, sentence: pi(i.dashboard) };
2481
+ const i = gi(n, e.changes);
2482
+ return { ...i, seed: o, sentence: yi(i.dashboard) };
2464
2483
  }
2465
- function mi(e, a) {
2484
+ function gi(e, a) {
2466
2485
  if (a.some((n) => {
2467
2486
  if (!n || typeof n != "object") return !1;
2468
2487
  const { op: i } = n;
@@ -2479,7 +2498,7 @@ function mi(e, a) {
2479
2498
  descriptions: [...e.descriptions, ...o.descriptions]
2480
2499
  };
2481
2500
  }
2482
- function hi(e, a) {
2501
+ function bi(e, a) {
2483
2502
  const t = e.changes.some((s) => s && typeof s == "object" && s.op === "sheet.add");
2484
2503
  return {
2485
2504
  id: e.dashboardId,
@@ -2491,19 +2510,19 @@ function hi(e, a) {
2491
2510
  };
2492
2511
  }
2493
2512
  const vt = (e, a) => `${e} ${a}${e === 1 ? "" : "s"}`;
2494
- function pi(e) {
2513
+ function yi(e) {
2495
2514
  const a = e.sheets ?? [], t = a.reduce((n, i) => n + (i.frames ?? []).reduce((d, l) => {
2496
2515
  var c;
2497
2516
  return d + (((c = l.cards) == null ? void 0 : c.length) ?? 0);
2498
2517
  }, 0), 0), s = (e.inputs ?? []).filter((n) => n.kind === "filter").length, o = [vt(a.length, "sheet"), vt(t, "card"), ...s ? [vt(s, "filter")] : []];
2499
2518
  return `Creates a private dashboard ${Va(e.title)} with ${et(o)}.`;
2500
2519
  }
2501
- const gi = 50;
2502
- function Or(e, a) {
2520
+ const vi = 50;
2521
+ function Nr(e, a) {
2503
2522
  var w, N;
2504
2523
  const t = (w = a.sheetIds) != null && w.length ? new Set(a.sheetIds) : void 0, s = (N = a.cardIds) != null && N.length ? new Set(a.cardIds) : void 0, o = (e.sheets ?? []).filter((_) => !t || t.has(_.id)), n = xe(e).filter(
2505
2524
  (_) => (!t || t.has(_.sheetId)) && (!s || s.has(_.cardId))
2506
- ), i = n.length > (a.maxQueryCards ?? gi), d = new Map(
2525
+ ), i = n.length > (a.maxQueryCards ?? vi), d = new Map(
2507
2526
  (e.sheets ?? []).flatMap((_) => (_.frames ?? []).map((I) => [I.id, I]))
2508
2527
  ), l = /* @__PURE__ */ new Map(), c = (_) => {
2509
2528
  (_ == null ? void 0 : _.kind) === "semantic" && l.set(`${_.domainId}|${_.datasetName}`, { domainId: _.domainId, datasetName: _.datasetName });
@@ -2517,14 +2536,14 @@ function Or(e, a) {
2517
2536
  sheetId: _.id,
2518
2537
  title: _.title ?? "",
2519
2538
  kind: _.kind === "document" ? "document" : "dashboard",
2520
- ..._.kind === "document" ? yi(_, v(_.id)) : { layout: _i(_) },
2539
+ ..._.kind === "document" ? _i(_, v(_.id)) : { layout: wi(_) },
2521
2540
  cards: n.filter((I) => I.sheetId === _.id).map((I) => {
2522
2541
  var oe;
2523
- const R = I.card, P = I.kind === "frameCard" ? (oe = d.get(I.frameId)) == null ? void 0 : oe.visualId : void 0, V = P ? { linkedVisualId: P } : {}, K = { cardId: I.cardId, title: R.title ?? "" };
2542
+ const R = I.card, P = I.kind === "frameCard" ? (oe = d.get(I.frameId)) == null ? void 0 : oe.visualId : void 0, V = P ? { linkedVisualId: P } : {}, G = { cardId: I.cardId, title: R.title ?? "" };
2524
2543
  if (I.kind !== "frameCard") {
2525
2544
  const te = he(R);
2526
2545
  return c(te), {
2527
- ...K,
2546
+ ...G,
2528
2547
  ...Ue(R),
2529
2548
  ...te ? { source: te } : {},
2530
2549
  editable: !1,
@@ -2536,13 +2555,13 @@ function Or(e, a) {
2536
2555
  };
2537
2556
  }
2538
2557
  if (R.type === "text") {
2539
- const te = Ka(R, S(_, R.id));
2540
- return te.editable ? { ...K, type: "text", ...V, editable: !0, text: te.text, ...te.editorOnly.length ? { editorOnly: te.editorOnly } : {} } : { ...K, ...Ue(R), ...V, editable: !1, notEditable: { reason: "text", message: te.message } };
2558
+ const te = Ga(R, S(_, R.id));
2559
+ return te.editable ? { ...G, type: "text", ...V, editable: !0, text: te.text, ...te.editorOnly.length ? { editorOnly: te.editorOnly } : {} } : { ...G, ...Ue(R), ...V, editable: !1, notEditable: { reason: "text", message: te.message } };
2541
2560
  }
2542
2561
  const B = we(R, { sql: a.sql });
2543
2562
  if (c(B.source), !B.editable)
2544
2563
  return {
2545
- ...K,
2564
+ ...G,
2546
2565
  ...Ue(R),
2547
2566
  ...B.source ? { source: B.source } : {},
2548
2567
  ...V,
@@ -2551,7 +2570,7 @@ function Or(e, a) {
2551
2570
  };
2552
2571
  const se = i ? void 0 : Ft(R);
2553
2572
  return {
2554
- ...K,
2573
+ ...G,
2555
2574
  ...Ue(R),
2556
2575
  type: B.type,
2557
2576
  source: B.source,
@@ -2570,7 +2589,7 @@ function Or(e, a) {
2570
2589
  });
2571
2590
  for (const _ of E)
2572
2591
  _.editable && l.set(`${_.domainId}|${_.datasetName}`, { domainId: _.domainId, datasetName: _.datasetName });
2573
- const C = vi(e, a, new Map([...h, ...y]));
2592
+ const C = Ci(e, a, new Map([...h, ...y]));
2574
2593
  for (const _ of e.variables ?? []) {
2575
2594
  const I = kt(_);
2576
2595
  (I == null ? void 0 : I.kind) === "semantic" && l.set(`${I.domainId}|${I.datasetName}`, { domainId: I.domainId, datasetName: I.datasetName });
@@ -2606,20 +2625,20 @@ function Or(e, a) {
2606
2625
  sheets: x,
2607
2626
  filters: E,
2608
2627
  variables: C,
2609
- style: bi(e, a),
2628
+ style: Ii(e, a),
2610
2629
  editorOnly: D,
2611
2630
  ...i ? { truncated: !0 } : {}
2612
2631
  };
2613
2632
  }
2614
- function bi(e, a) {
2633
+ function Ii(e, a) {
2615
2634
  const { style: t, organizationAppearance: s } = za(e, a.organizationAppearance);
2616
- return { set: Tn(t), shows: dn({ organizationAppearance: s, dashboardStyle: t }, "light").shows };
2635
+ return { set: An(t), shows: cn({ organizationAppearance: s, dashboardStyle: t }, "light").shows };
2617
2636
  }
2618
2637
  function Aa(e, a) {
2619
- const t = $o(a);
2638
+ const t = xo(a);
2620
2639
  return t ? { ...e, style: t } : e;
2621
2640
  }
2622
- function yi(e, a) {
2641
+ function _i(e, a) {
2623
2642
  const t = e.document;
2624
2643
  if (!t) return {};
2625
2644
  const s = (o) => {
@@ -2636,7 +2655,7 @@ function yi(e, a) {
2636
2655
  )
2637
2656
  };
2638
2657
  }
2639
- function vi(e, a, t) {
2658
+ function Ci(e, a, t) {
2640
2659
  const s = Qa(e), o = (c) => s.filter(({ ref: h }) => c(h)).map(({ place: h, where: p }) => ({
2641
2660
  sheetId: h.sheetId,
2642
2661
  where: p.kind,
@@ -2657,17 +2676,17 @@ function vi(e, a, t) {
2657
2676
  })), d = [...n.values()].filter((c) => c.kind === "report").map((c) => ({
2658
2677
  name: c.name,
2659
2678
  kind: "report",
2660
- words: Ii[c.reportKey],
2679
+ words: $i[c.reportKey],
2661
2680
  parts: [],
2662
2681
  usedIn: o((h) => h.source === "documentMeta" && h.key === c.reportKey),
2663
2682
  editable: !1
2664
2683
  })), l = (e.variables ?? []).map((c) => {
2665
- const h = rs(c, { sql: a.sql }), p = Dt(c, e)[0], v = Co(c.presentation);
2684
+ const h = rs(c, { sql: a.sql }), p = Dt(c, e)[0], v = wo(c.presentation);
2666
2685
  return {
2667
2686
  name: c.name,
2668
2687
  kind: "data",
2669
- words: Jo(c),
2670
- parts: Lo(c),
2688
+ words: Zo(c),
2689
+ parts: Bo(c),
2671
2690
  ...v ? { presentation: v } : {},
2672
2691
  usedIn: o((y) => y.source === "data" && y.variableId === c.id),
2673
2692
  editable: h.editable,
@@ -2677,7 +2696,7 @@ function vi(e, a, t) {
2677
2696
  });
2678
2697
  return [...i, ...d, ...l];
2679
2698
  }
2680
- const Ii = {
2699
+ const $i = {
2681
2700
  generatedAt: "When the report was generated",
2682
2701
  pageNumber: "The page number (Documents)",
2683
2702
  pageCount: "The page count (Documents)"
@@ -2686,9 +2705,9 @@ function Ue(e) {
2686
2705
  const a = Ee(e);
2687
2706
  return a ? { type: a.type, ...a.properties } : { type: $t(e.type) };
2688
2707
  }
2689
- function _i(e) {
2708
+ function wi(e) {
2690
2709
  const a = new Map((e.frames ?? []).map((t) => [t.id, t]));
2691
- return mn(e).rows.map((t) => ({
2710
+ return pn(e).rows.map((t) => ({
2692
2711
  tiles: t.tiles.map((s) => {
2693
2712
  const o = a.get(s.frameId);
2694
2713
  return { cardIds: o ? Ba(o) : [], width: s.width };
@@ -2701,13 +2720,13 @@ function Z(e) {
2701
2720
  function ue(e, a) {
2702
2721
  return Z(e) && Object.prototype.hasOwnProperty.call(e, a) && e[a] !== void 0;
2703
2722
  }
2704
- const re = ue, Ci = ["metricColumns", "groupByColumns", "detailColumns", "pivotByColumns", "sortByColumns"], $i = ["xAxisConfig", "yAxisConfig", "secondaryYAxisConfig", "tooltipConfig", "dataLabelsConfig"], wi = '`format` on the matching column in `config.metricColumns`, `groupByColumns` or `detailColumns`; for a SQL or Python card, `preferences.sqlColumns["<column>"].format`', Qe = "`preferences.conditionalFormatting`, with columns named by card column id";
2705
- function xi(e) {
2723
+ const re = ue, xi = ["metricColumns", "groupByColumns", "detailColumns", "pivotByColumns", "sortByColumns"], Si = ["xAxisConfig", "yAxisConfig", "secondaryYAxisConfig", "tooltipConfig", "dataLabelsConfig"], ki = '`format` on the matching column in `config.metricColumns`, `groupByColumns` or `detailColumns`; for a SQL or Python card, `preferences.sqlColumns["<column>"].format`', Qe = "`preferences.conditionalFormatting`, with columns named by card column id";
2724
+ function Ti(e) {
2706
2725
  return Le(String(e.type)) ?? Et;
2707
2726
  }
2708
2727
  function Oe(e, a, t) {
2709
2728
  if (t === void 0) return;
2710
- const s = Z(t) ? xi(t).safeParse(t) : Et.safeParse(t);
2729
+ const s = Z(t) ? Ti(t).safeParse(t) : Et.safeParse(t);
2711
2730
  if (!s.success)
2712
2731
  for (const o of s.error.issues) {
2713
2732
  const n = o.code === "unrecognized_keys" ? o.keys : [o.path.length ? String(o.path[o.path.length - 1]) : "type"];
@@ -2728,7 +2747,7 @@ function It(e, a, t) {
2728
2747
  }
2729
2748
  function ps(e, a) {
2730
2749
  const t = [], s = e.config;
2731
- for (const S of Ci) {
2750
+ for (const S of xi) {
2732
2751
  const x = s == null ? void 0 : s[S];
2733
2752
  Array.isArray(x) && x.forEach((E, C) => It(t, `${a}.config.${S}[${C}]`, E));
2734
2753
  }
@@ -2764,10 +2783,10 @@ function ps(e, a) {
2764
2783
  if (!Z(x)) continue;
2765
2784
  const E = `${c}.tablePrefs.columnSettingsMap.${S}`;
2766
2785
  for (const C of ["numberFormat", "dateFormat", "inheritMetricFormat"])
2767
- re(x, C) && t.push({ path: `${E}.${C}`, field: C, replacement: C === "inheritMetricFormat" ? "nothing: a column follows its `format`" : wi });
2786
+ re(x, C) && t.push({ path: `${E}.${C}`, field: C, replacement: C === "inheritMetricFormat" ? "nothing: a column follows its `format`" : ki });
2768
2787
  re(x, "colorRanges") && t.push({ path: `${E}.colorRanges`, field: "colorRanges", replacement: Qe });
2769
2788
  }
2770
- for (const S of $i) {
2789
+ for (const S of Si) {
2771
2790
  const x = l[S];
2772
2791
  if (Z(x)) {
2773
2792
  for (const E of ["formatMode", "mode", "formatOptions"])
@@ -2781,7 +2800,7 @@ function ps(e, a) {
2781
2800
  Z(x) && Oe(t, `${c}.sqlColumns.${S}.format`, x.format);
2782
2801
  return Z(l.sqlKpiValue) && Oe(t, `${c}.sqlKpiValue.format`, l.sqlKpiValue.format), t;
2783
2802
  }
2784
- function Si(e) {
2803
+ function Ri(e) {
2785
2804
  const a = `sheets[id=${e.sheetId}]`;
2786
2805
  switch (e.kind) {
2787
2806
  case "sheetCard":
@@ -2797,20 +2816,20 @@ function gs(e) {
2797
2816
  if (Array.isArray(e.sheets))
2798
2817
  return xe(e).map((t) => ({
2799
2818
  card: t.card,
2800
- at: Si(t)
2819
+ at: Ri(t)
2801
2820
  }));
2802
2821
  const a = e;
2803
2822
  return Array.isArray(a.cards) ? a.cards.map((t) => ({ card: t, at: `cards[id=${t.id}]` })) : [];
2804
2823
  }
2805
- function Er(e) {
2824
+ function Pr(e) {
2806
2825
  return gs(e).flatMap(({ card: a, at: t }) => ps(a, t));
2807
2826
  }
2808
- function ki(e, a) {
2827
+ function Ai(e, a) {
2809
2828
  var n;
2810
2829
  const t = (n = e.preferences) == null ? void 0 : n.conditionalFormatting;
2811
2830
  if (t === void 0) return [];
2812
- const s = `${a}.preferences.conditionalFormatting`, o = wo.safeParse(t);
2813
- return o.success ? xo(e).map((i) => ({
2831
+ const s = `${a}.preferences.conditionalFormatting`, o = So.safeParse(t);
2832
+ return o.success ? ko(e).map((i) => ({
2814
2833
  code: "invalid_conditional_formatting",
2815
2834
  path: `${s}.rules[id=${i.ruleId}].${i.path}`,
2816
2835
  message: i.message
@@ -2820,14 +2839,14 @@ function ki(e, a) {
2820
2839
  message: i.message
2821
2840
  }));
2822
2841
  }
2823
- function qr(e) {
2842
+ function Lr(e) {
2824
2843
  return gs(e).flatMap(({ card: a, at: t }) => [
2825
2844
  ...ps(a, t).map((s) => ({
2826
2845
  code: "retired_presentation_field",
2827
2846
  path: s.path,
2828
2847
  message: `\`${s.field}\` is retired: use ${s.replacement}.`
2829
2848
  })),
2830
- ...ki(a, t)
2849
+ ...Ai(a, t)
2831
2850
  ]);
2832
2851
  }
2833
2852
  const Lt = [
@@ -2836,7 +2855,7 @@ const Lt = [
2836
2855
  "detailColumns",
2837
2856
  "pivotByColumns",
2838
2857
  "sortByColumns"
2839
- ], Ti = [
2858
+ ], Fi = [
2840
2859
  "xAxisConfig",
2841
2860
  "yAxisConfig",
2842
2861
  "secondaryYAxisConfig",
@@ -2856,15 +2875,15 @@ function _e(e, a) {
2856
2875
  return bs(t(e), t(a));
2857
2876
  }
2858
2877
  function at(e) {
2859
- const a = on(e);
2878
+ const a = rn(e);
2860
2879
  return a === "date" || a === "datetime";
2861
2880
  }
2862
2881
  function ys(e) {
2863
2882
  var a, t;
2864
2883
  return !!((a = e.sql) != null && a.trim() || (t = e.python) != null && t.trim());
2865
2884
  }
2866
- function Ri(e) {
2867
- return e.type === "kpi" && Oo(e);
2885
+ function Di(e) {
2886
+ return e.type === "kpi" && qo(e);
2868
2887
  }
2869
2888
  function Rt(e) {
2870
2889
  return e.type === "table" || e.type === "detailTable";
@@ -2874,7 +2893,7 @@ function ee(e, a) {
2874
2893
  const t = (s = e.config) == null ? void 0 : s[a];
2875
2894
  return Array.isArray(t) ? t : [];
2876
2895
  }
2877
- function Ai(e, a) {
2896
+ function Oi(e, a) {
2878
2897
  for (const t of Lt) {
2879
2898
  const s = ee(e, t).indexOf(a);
2880
2899
  if (s >= 0) return `config.${t}[${s}]`;
@@ -2890,7 +2909,7 @@ function st(e, a, t, s) {
2890
2909
  a.format = t, a.formatOrigin = "override", e.changes.push({
2891
2910
  path: s,
2892
2911
  action: "moved",
2893
- to: `${Ai(e.card, a) ?? "config"}.format`
2912
+ to: `${Oi(e.card, a) ?? "config"}.format`
2894
2913
  });
2895
2914
  }
2896
2915
  function Mt(e) {
@@ -2900,7 +2919,7 @@ function Mt(e) {
2900
2919
  function At(e, a, t) {
2901
2920
  if (!(!ue(a, "dateFormat") && !ue(a, "customFormat"))) {
2902
2921
  if (at(a.dataType) && a.format == null && a.dateFormat != null) {
2903
- const s = Fo({
2922
+ const s = Oo({
2904
2923
  fieldId: a.id,
2905
2924
  dataType: a.dataType,
2906
2925
  granularity: a.granularity,
@@ -2916,7 +2935,7 @@ function At(e, a, t) {
2916
2935
  ke(a, ["dateFormat", "customFormat"]) && e.changes.push({ path: `${t}.dateFormat`, action: "removed" });
2917
2936
  }
2918
2937
  }
2919
- function Fi(e, a, t) {
2938
+ function Ei(e, a, t) {
2920
2939
  if (!ue(a, "dateFormat") && !ue(a, "customFormat")) return;
2921
2940
  const s = a.dateFormat === "custom" ? a.customFormat : a.dateFormat;
2922
2941
  e.card.type === "detailTable" && at(a.dataType) && !a.format && typeof s == "string" && s.trim() ? (a.format = { type: "date", pattern: s }, a.formatOrigin = "override", e.changes.push({
@@ -2929,14 +2948,14 @@ function Fi(e, a, t) {
2929
2948
  detail: "A detail date pattern on a column that has a format of its own."
2930
2949
  }), ke(a, ["dateFormat", "customFormat"]) && e.changes.push({ path: `${t}.dateFormat`, action: "removed" });
2931
2950
  }
2932
- function Di(e, a, t, s) {
2951
+ function qi(e, a, t, s) {
2933
2952
  if (a.format !== void 0) {
2934
2953
  const o = Mt(a.format);
2935
2954
  o ? _e(o, a.format) || (a.format = o, e.changes.push({ path: `${s}.format`, action: "cleaned" })) : (delete a.format, e.changes.push({ path: `${s}.format`, action: "removed" }));
2936
2955
  }
2937
- t === "groupByColumns" || t === "pivotByColumns" ? At(e, a, s) : t === "detailColumns" ? Fi(e, a, s) : ke(a, ["dateFormat", "customFormat"]) && e.changes.push({ path: `${s}.dateFormat`, action: "removed" });
2956
+ t === "groupByColumns" || t === "pivotByColumns" ? At(e, a, s) : t === "detailColumns" ? Ei(e, a, s) : ke(a, ["dateFormat", "customFormat"]) && e.changes.push({ path: `${s}.dateFormat`, action: "removed" });
2938
2957
  }
2939
- function Oi(e, a) {
2958
+ function Ni(e, a) {
2940
2959
  for (const t of Lt)
2941
2960
  ee(e.card, t).forEach((s, o) => {
2942
2961
  var i;
@@ -2948,7 +2967,7 @@ function Oi(e, a) {
2948
2967
  });
2949
2968
  });
2950
2969
  }
2951
- function Ei(e) {
2970
+ function Pi(e) {
2952
2971
  var t;
2953
2972
  const a = (t = e.card.interactionConfig) == null ? void 0 : t.drillHierarchies;
2954
2973
  Array.isArray(a) && a.forEach((s, o) => {
@@ -2966,13 +2985,13 @@ function Ei(e) {
2966
2985
  });
2967
2986
  });
2968
2987
  }
2969
- const qi = [
2988
+ const Li = [
2970
2989
  "numberFormat",
2971
2990
  "dateFormat",
2972
2991
  "inheritMetricFormat",
2973
2992
  "colorRanges"
2974
2993
  ];
2975
- function Ni(e, a) {
2994
+ function Mi(e, a) {
2976
2995
  const t = (o) => o == null ? void 0 : o.trim().toLowerCase(), s = t(a);
2977
2996
  return [
2978
2997
  e.id,
@@ -2980,32 +2999,32 @@ function Ni(e, a) {
2980
2999
  e.name,
2981
3000
  e.qualifiedFieldName,
2982
3001
  e.label,
2983
- e.role === "metric" ? Wo(e) : void 0
3002
+ e.role === "metric" ? Uo(e) : void 0
2984
3003
  ].some((o) => o !== void 0 && t(o) === s);
2985
3004
  }
2986
3005
  function Fa(e, a) {
2987
- const t = Do(e, { columnId: a });
3006
+ const t = Eo(e, { columnId: a });
2988
3007
  if (t) return t;
2989
3008
  const s = [
2990
3009
  ...ee(e, "detailColumns"),
2991
3010
  ...ee(e, "metricColumns"),
2992
3011
  ...ee(e, "groupByColumns")
2993
- ].filter((o) => Ni(o, a));
3012
+ ].filter((o) => Mi(o, a));
2994
3013
  return s.length === 1 ? s[0] : void 0;
2995
3014
  }
2996
- function Pi(e) {
3015
+ function Bi(e) {
2997
3016
  return e.type === "number" && J(e.numberFormat) && e.inheritMetricFormat !== !0;
2998
3017
  }
2999
- function Li(e, a) {
3018
+ function Vi(e, a) {
3000
3019
  var t;
3001
- return at(a.dataType) ? ee(e, "detailColumns").includes(a) ? e.type === "detailTable" : un(a.granularity) || ((t = a.format) == null ? void 0 : t.type) === "temporal_bucket" || a.semanticTemporalPresentation != null : !1;
3020
+ return at(a.dataType) ? ee(e, "detailColumns").includes(a) ? e.type === "detailTable" : mn(a.granularity) || ((t = a.format) == null ? void 0 : t.type) === "temporal_bucket" || a.semanticTemporalPresentation != null : !1;
3002
3021
  }
3003
3022
  function Da(e, a, t, s) {
3004
3023
  var i;
3005
3024
  const o = (i = e.card).preferences ?? (i.preferences = {}), n = o.sqlColumns ?? (o.sqlColumns = {});
3006
3025
  n[a] = { ...n[a], format: t }, e.changes.push({ path: s, action: "moved", to: `preferences.sqlColumns[${JSON.stringify(a)}].format` });
3007
3026
  }
3008
- function Mi(e) {
3027
+ function Gi(e) {
3009
3028
  const [a, ...t] = e;
3010
3029
  if (!a) return;
3011
3030
  const s = Object.fromEntries(
@@ -3013,8 +3032,8 @@ function Mi(e) {
3013
3032
  );
3014
3033
  return Et.safeParse(s).success ? s : void 0;
3015
3034
  }
3016
- function Bi(e, a) {
3017
- const t = e.card, s = Mo({
3035
+ function Ki(e, a) {
3036
+ const t = e.card, s = Vo({
3018
3037
  groupByColumns: ee(t, "groupByColumns"),
3019
3038
  metricColumns: ee(t, "metricColumns"),
3020
3039
  pivotByColumns: ee(t, "pivotByColumns"),
@@ -3031,10 +3050,10 @@ function Bi(e, a) {
3031
3050
  });
3032
3051
  }
3033
3052
  }
3034
- function Vi(e, a) {
3053
+ function ji(e, a) {
3035
3054
  var n;
3036
3055
  if (!a.length) return;
3037
- const t = ee(e.card, "metricColumns"), s = t.length === 1 ? t[0] : void 0, o = s && !s.format ? Mi(a.map((i) => i.format)) : void 0;
3056
+ const t = ee(e.card, "metricColumns"), s = t.length === 1 ? t[0] : void 0, o = s && !s.format ? Gi(a.map((i) => i.format)) : void 0;
3038
3057
  s && o && st(e, s, o, a[0].from);
3039
3058
  for (const i of a)
3040
3059
  if (!(s != null && s.format && _e(i.format, s.format))) {
@@ -3059,7 +3078,7 @@ function Vi(e, a) {
3059
3078
  );
3060
3079
  }
3061
3080
  }
3062
- function Ki(e) {
3081
+ function Wi(e) {
3063
3082
  var l;
3064
3083
  const a = (l = e.card.preferences) == null ? void 0 : l.tablePrefs, t = a == null ? void 0 : a.columnSettingsMap;
3065
3084
  if (!J(t)) return;
@@ -3067,8 +3086,8 @@ function Ki(e) {
3067
3086
  for (const [c, h] of Object.entries(t)) {
3068
3087
  if (!J(h)) continue;
3069
3088
  const p = h, v = `preferences.tablePrefs.columnSettingsMap[${JSON.stringify(c)}]`;
3070
- if (Pi(p)) {
3071
- const y = So(p.numberFormat);
3089
+ if (Bi(p)) {
3090
+ const y = To(p.numberFormat);
3072
3091
  if (y && o)
3073
3092
  Da(e, c, y, `${v}.numberFormat`);
3074
3093
  else if (y && Rt(s)) {
@@ -3089,39 +3108,39 @@ function Ki(e) {
3089
3108
  if (J(p.dateFormat)) {
3090
3109
  const y = p.type === "date";
3091
3110
  if (y && o)
3092
- Da(e, c, ko(p.dateFormat), `${v}.dateFormat`);
3111
+ Da(e, c, Ro(p.dateFormat), `${v}.dateFormat`);
3093
3112
  else if (y && Rt(s)) {
3094
3113
  const S = Fa(s, c);
3095
- (!S || !Li(s, S)) && e.unconverted.push({
3114
+ (!S || !Vi(s, S)) && e.unconverted.push({
3096
3115
  path: `${v}.dateFormat`,
3097
3116
  reason: "config_column_date_setting",
3098
3117
  detail: `"${c}"'s download formats its dates with this setting.`
3099
3118
  });
3100
3119
  }
3101
3120
  }
3102
- for (const y of qi)
3121
+ for (const y of Li)
3103
3122
  Object.prototype.hasOwnProperty.call(p, y) && (delete p[y], e.changes.push({ path: `${v}.${y}`, action: "removed" }));
3104
3123
  }
3105
- Bi(e, i), Vi(e, d);
3124
+ Ki(e, i), ji(e, d);
3106
3125
  }
3107
- function ji(e) {
3126
+ function Ui(e) {
3108
3127
  return Object.keys(e).some(
3109
3128
  (a) => a !== "enabled" && a !== "colorRanges" && e[a] !== void 0
3110
3129
  );
3111
3130
  }
3112
- function Wi(e) {
3131
+ function Qi(e) {
3113
3132
  return (e == null ? void 0 : e.enabled) === !1 || (e == null ? void 0 : e.enabled) === "false";
3114
3133
  }
3115
- function Gi(e) {
3134
+ function Hi(e) {
3116
3135
  const a = e.card, t = a.preferences;
3117
3136
  if (!t) return;
3118
- const s = t.kpiVisualOptions, o = J(s == null ? void 0 : s.formatOptions) ? s.formatOptions : void 0, n = t, i = J(n.formatNumber) ? n.formatNumber : void 0, d = o ? Me(To(o)) : void 0, l = i && ji(i) ? Me(Ro(i)) : void 0;
3137
+ const s = t.kpiVisualOptions, o = J(s == null ? void 0 : s.formatOptions) ? s.formatOptions : void 0, n = t, i = J(n.formatNumber) ? n.formatNumber : void 0, d = o ? Me(Ao(o)) : void 0, l = i && Ui(i) ? Me(Fo(i)) : void 0;
3119
3138
  if (a.type === "kpi") {
3120
- if (Wi(i) && e.unconverted.push({
3139
+ if (Qi(i) && e.unconverted.push({
3121
3140
  path: "preferences.formatNumber.enabled",
3122
3141
  reason: "raw_display",
3123
3142
  detail: "Formatting is switched off on this KPI."
3124
- }), Ri(a)) {
3143
+ }), Di(a)) {
3125
3144
  const c = d ?? l, h = s == null ? void 0 : s.queryComparisonPolarity;
3126
3145
  (c || h) && (t.sqlKpiValue = {
3127
3146
  ...t.sqlKpiValue,
@@ -3136,7 +3155,7 @@ function Gi(e) {
3136
3155
  ee(a, "metricColumns").forEach((h) => {
3137
3156
  d ? st(e, h, d, "preferences.kpiVisualOptions.formatOptions") : l && !h.format && st(e, h, l, "preferences.formatNumber");
3138
3157
  });
3139
- Ui(e, i);
3158
+ zi(e, i);
3140
3159
  } else if (l) {
3141
3160
  const c = ee(a, "metricColumns");
3142
3161
  ys(a) ? e.unconverted.push({
@@ -3157,11 +3176,11 @@ function Gi(e) {
3157
3176
  for (const c of ["numberAxisFormat", "columnSettings"])
3158
3177
  ke(t, [c]) && e.changes.push({ path: `preferences.${c}`, action: "removed" });
3159
3178
  }
3160
- function Ui(e, a) {
3179
+ function zi(e, a) {
3161
3180
  var n;
3162
3181
  const t = a == null ? void 0 : a.decimalPlaces, s = e.card.preferences;
3163
3182
  if (typeof t != "number" || ((n = s.comparisonPresentation) == null ? void 0 : n.precision) !== void 0) return;
3164
- const o = Bo(t);
3183
+ const o = Go(t);
3165
3184
  o !== void 0 && (s.comparisonPresentation = {
3166
3185
  ...s.comparisonPresentation,
3167
3186
  precision: o
@@ -3171,24 +3190,24 @@ function Ui(e, a) {
3171
3190
  to: "preferences.comparisonPresentation.precision"
3172
3191
  }));
3173
3192
  }
3174
- const Qi = /* @__PURE__ */ new Set(["number", "currency", "percent", "scientific", "date", "duration"]);
3175
- function Hi(e) {
3193
+ const Yi = /* @__PURE__ */ new Set(["number", "currency", "percent", "scientific", "date", "duration"]);
3194
+ function Ji(e) {
3176
3195
  const a = e.card.preferences;
3177
3196
  if (a)
3178
- for (const t of Ti) {
3197
+ for (const t of Fi) {
3179
3198
  const s = a[t];
3180
3199
  if (!J(s)) continue;
3181
3200
  const o = `preferences.${t}`, n = J(s.formatOptions) ? s.formatOptions : void 0, i = t === "dataLabelsConfig" && typeof s.format == "string" ? s.format : void 0, d = s.formatMode === "override" || s.formatMode === "inherit" ? s.formatMode : s.mode === "override" || s.mode === "inherit" ? s.mode : void 0, l = d ?? (i === "none" ? "raw" : i && i !== "auto" || n ? "override" : "inherit");
3182
3201
  if (l === "raw" || d === void 0 && i === "none")
3183
3202
  e.unconverted.push({ path: `${o}.format`, reason: "raw_display", detail: "Data labels show raw values." });
3184
3203
  else if (l === "override") {
3185
- const c = n && n.type ? n : i && Qi.has(i) ? { ...n, type: i } : n, h = c ? Me(Ao(c, { preserveOmittedProperties: !0 })) : void 0;
3204
+ const c = n && n.type ? n : i && Yi.has(i) ? { ...n, type: i } : n, h = c ? Me(Do(c, { preserveOmittedProperties: !0 })) : void 0;
3186
3205
  h && (s.valueFormat = h, e.changes.push({ path: `${o}.formatOptions`, action: "moved", to: `${o}.valueFormat` }));
3187
3206
  }
3188
3207
  ke(s, ["formatMode", "mode", "formatOptions", ...t === "dataLabelsConfig" ? ["format"] : []]) && e.changes.push({ path: `${o}.formatMode`, action: "removed" });
3189
3208
  }
3190
3209
  }
3191
- function zi(e) {
3210
+ function Xi(e) {
3192
3211
  var s;
3193
3212
  const a = (s = e.card.config) == null ? void 0 : s.matrix, t = J(a) && J(a.presentation) ? a.presentation : void 0;
3194
3213
  if (t)
@@ -3201,27 +3220,27 @@ function zi(e) {
3201
3220
  }
3202
3221
  }
3203
3222
  }
3204
- function Yi(e, a = {}) {
3223
+ function Zi(e, a = {}) {
3205
3224
  const t = { card: structuredClone(e), changes: [], unconverted: [] };
3206
3225
  for (const s of Lt)
3207
3226
  ee(t.card, s).forEach((o, n) => {
3208
- J(o) && Di(t, o, s, `config.${s}[${n}]`);
3227
+ J(o) && qi(t, o, s, `config.${s}[${n}]`);
3209
3228
  });
3210
- return Ei(t), Ki(t), Gi(t), Hi(t), zi(t), Oi(t, a), t.changes.length === 0 && t.unconverted.length === 0 ? { card: e, changes: [], unconverted: [] } : t;
3229
+ return Pi(t), Wi(t), Hi(t), Ji(t), Xi(t), Ni(t, a), t.changes.length === 0 && t.unconverted.length === 0 ? { card: e, changes: [], unconverted: [] } : t;
3211
3230
  }
3212
- const Ji = "__semaphor_unassigned_trigger__", Xi = "__NULL__";
3213
- function Zi(e) {
3231
+ const er = "__semaphor_unassigned_trigger__", tr = "__NULL__";
3232
+ function ar(e) {
3214
3233
  var a, t;
3215
3234
  return !!((a = e.sql) != null && a.trim() || (t = e.python) != null && t.trim());
3216
3235
  }
3217
- function er(e) {
3236
+ function sr(e) {
3218
3237
  const a = e.config;
3219
3238
  return a ? e.type === "detailTable" ? a.detailColumns ?? [] : [...a.detailColumns ?? [], ...a.metricColumns ?? [], ...a.groupByColumns ?? []] : [];
3220
3239
  }
3221
3240
  function Oa(e) {
3222
3241
  return [e.id, e.alias, e.name, e.qualifiedFieldName, e.label];
3223
3242
  }
3224
- function tr(e, a) {
3243
+ function or(e, a) {
3225
3244
  var c, h;
3226
3245
  const t = ((c = e.config) == null ? void 0 : c.metricColumns) ?? [], s = ((h = e.config) == null ? void 0 : h.pivotByColumns) ?? [];
3227
3246
  if (t.length !== 1 || s.length !== 1) return { reason: "pivot_key_form" };
@@ -3230,16 +3249,16 @@ function tr(e, a) {
3230
3249
  ref: {
3231
3250
  kind: "pivot",
3232
3251
  metricId: o.id,
3233
- members: [{ fieldId: n.id, value: a === Xi ? null : a }]
3252
+ members: [{ fieldId: n.id, value: a === tr ? null : a }]
3234
3253
  }
3235
3254
  };
3236
3255
  }
3237
- function ar(e, a) {
3256
+ function nr(e, a) {
3238
3257
  var i, d;
3239
- if (a === Ji) return { reason: "unassigned_trigger" };
3240
- if (Zi(e)) return { ref: { kind: "result", key: a } };
3241
- const t = er(e), s = t.filter((l) => Oa(l).includes(a)), o = s.length ? s : t.filter((l) => Oa(l).some((c) => (c == null ? void 0 : c.trim().toLowerCase()) === a.trim().toLowerCase())), n = [...new Set(o.map((l) => l.id))];
3242
- return n.length === 1 ? { ref: { kind: "field", fieldId: n[0] } } : n.length > 1 ? { reason: "ambiguous_column" } : (d = (i = e.config) == null ? void 0 : i.pivotByColumns) != null && d.length ? tr(e, a) : { reason: "no_matching_column" };
3258
+ if (a === er) return { reason: "unassigned_trigger" };
3259
+ if (ar(e)) return { ref: { kind: "result", key: a } };
3260
+ const t = sr(e), s = t.filter((l) => Oa(l).includes(a)), o = s.length ? s : t.filter((l) => Oa(l).some((c) => (c == null ? void 0 : c.trim().toLowerCase()) === a.trim().toLowerCase())), n = [...new Set(o.map((l) => l.id))];
3261
+ return n.length === 1 ? { ref: { kind: "field", fieldId: n[0] } } : n.length > 1 ? { reason: "ambiguous_column" } : (d = (i = e.config) == null ? void 0 : i.pivotByColumns) != null && d.length ? or(e, a) : { reason: "no_matching_column" };
3243
3262
  }
3244
3263
  function Ea(e, a, t, s, o) {
3245
3264
  const n = (_, I, R) => {
@@ -3284,7 +3303,7 @@ function Ea(e, a, t, s, o) {
3284
3303
  target: N
3285
3304
  };
3286
3305
  }
3287
- function sr(e, a) {
3306
+ function ir(e, a) {
3288
3307
  var o;
3289
3308
  const t = (o = La(e)) == null ? void 0 : o.value;
3290
3309
  if (!t) return [];
@@ -3297,7 +3316,7 @@ function sr(e, a) {
3297
3316
  return [{ id: `kpi-color-range-${i + 1}`, condition: S, target: { level: "cell" }, style: { textColor: x } }];
3298
3317
  }).reverse();
3299
3318
  }
3300
- function or(e) {
3319
+ function rr(e) {
3301
3320
  var h, p, v, y, S, x, E;
3302
3321
  const a = structuredClone(e), t = [], s = [], o = [], n = (C) => {
3303
3322
  t.some((k) => k.from.startsWith(C)) || t.push({ ruleId: "", action: "removed", from: C });
@@ -3310,7 +3329,7 @@ function or(e) {
3310
3329
  t.push({ ruleId: D.id, action: "removed", from: `${k}.rules[${w}]` });
3311
3330
  return;
3312
3331
  }
3313
- const N = Ea(D, (I) => ar(a, I), `${k}.rules[${w}]`, s, !1);
3332
+ const N = Ea(D, (I) => nr(a, I), `${k}.rules[${w}]`, s, !1);
3314
3333
  N && (o.push(N), t.push({ ruleId: D.id, action: "moved", from: `${k}.rules[${w}]` }));
3315
3334
  }), delete i.conditionalFormatting, s.some((D) => D.path.startsWith(k)) || n(k);
3316
3335
  }
@@ -3332,7 +3351,7 @@ function or(e) {
3332
3351
  if (c && ue(c, "colorRanges")) {
3333
3352
  const C = Array.isArray(c.colorRanges) ? c.colorRanges : [];
3334
3353
  if (a.type === "kpi") {
3335
- const k = sr(a, C);
3354
+ const k = ir(a, C);
3336
3355
  o.push(...k), k.forEach((b) => t.push({ ruleId: b.id, action: "moved", from: "preferences.formatNumber.colorRanges" }));
3337
3356
  }
3338
3357
  delete c.colorRanges, Object.keys(c).length === 0 && delete l.formatNumber, t.some((k) => k.from === "preferences.formatNumber.colorRanges") || t.push({ ruleId: "", action: "removed", from: "preferences.formatNumber.colorRanges" });
@@ -3350,14 +3369,14 @@ function or(e) {
3350
3369
  }
3351
3370
  return { card: a, changes: t, unresolved: s };
3352
3371
  }
3353
- function Nr(e, a = {}) {
3354
- const { only: t, ...s } = a, o = t === "rules" ? void 0 : Yi(e, s), n = t === "formats" ? void 0 : or((o == null ? void 0 : o.card) ?? e);
3372
+ function Mr(e, a = {}) {
3373
+ const { only: t, ...s } = a, o = t === "rules" ? void 0 : Zi(e, s), n = t === "formats" ? void 0 : rr((o == null ? void 0 : o.card) ?? e);
3355
3374
  return { card: (n == null ? void 0 : n.card) ?? (o == null ? void 0 : o.card) ?? e, formats: o, rules: n };
3356
3375
  }
3357
- function Pr(e) {
3376
+ function Br(e) {
3358
3377
  return e.kind === "metric" ? e.resultId : e.measureId;
3359
3378
  }
3360
- function nr(e) {
3379
+ function dr(e) {
3361
3380
  if (e.op === "dashboard.update" || e.op === "dashboard.style" || e.op === "sheet.update") return !0;
3362
3381
  if (e.op !== "card.update") return !1;
3363
3382
  switch (e.update.kind) {
@@ -3369,512 +3388,523 @@ function nr(e) {
3369
3388
  return !1;
3370
3389
  }
3371
3390
  }
3372
- function Lr(e) {
3373
- return e.impact.length || e.detaches ? "needed" : e.operations.length > 0 && e.operations.every(nr) ? "not_needed" : "needed";
3391
+ function Vr(e) {
3392
+ return e.impact.length || e.detaches ? "needed" : e.operations.length > 0 && e.operations.every(dr) ? "not_needed" : "needed";
3374
3393
  }
3375
3394
  export {
3376
- Vr as AGGREGATES,
3377
- Kr as AUTOMATIC_TEMPORAL_BUCKET_FORMAT,
3378
- jr as CALCULATED_FIELDS_GROUP_ID,
3379
- Wr as CALCULATED_FIELDS_GROUP_NAME,
3380
- Gr as CARD_CONFIG_KEY_CLASSES,
3381
- Ur as CARD_KEY_CLASSES,
3382
- ho as CARD_QUERY_CONFIG_KEYS,
3383
- kr as CARD_QUERY_REQUEST_DESCRIPTIVE_FIELDS,
3384
- Sr as CARD_QUERY_REQUEST_EXECUTED_FIELDS,
3385
- Nh as CARD_SURFACES,
3386
- Qr as CARD_TYPES,
3395
+ jr as AGGREGATES,
3396
+ Wr as AUTOMATIC_FALLBACK_GRAIN,
3397
+ Ur as AUTOMATIC_TEMPORAL_BUCKET_FORMAT,
3398
+ uo as AUTOMATIC_TIME_GRAIN,
3399
+ Qr as CALCULATED_FIELDS_GROUP_ID,
3400
+ Hr as CALCULATED_FIELDS_GROUP_NAME,
3401
+ zr as CARD_CONFIG_KEY_CLASSES,
3402
+ Yr as CARD_KEY_CLASSES,
3403
+ go as CARD_QUERY_CONFIG_KEYS,
3404
+ Ar as CARD_QUERY_REQUEST_DESCRIPTIVE_FIELDS,
3405
+ Rr as CARD_QUERY_REQUEST_EXECUTED_FIELDS,
3406
+ Jh as CARD_SURFACES,
3407
+ Jr as CARD_TYPES,
3387
3408
  Fe as CARD_TYPE_RULES,
3388
- Ke as CHART_COLORS_BOUNDS,
3389
- Hr as CHIP_VALUE_COLUMN,
3390
- zr as COLUMN_KEY_CLASSES,
3391
- Yr as COLUMN_PRESENTATION_KEYS,
3392
- Jr as COMPARISON_POLARITIES,
3393
- xf as COMPARISON_SIGN_WORDS,
3394
- Xr as CONTROL_BINDING_MAPPING_MISSING_ERROR_CODE,
3395
- Zr as CONTROL_BINDING_TARGET_INVALID_ERROR_CODE,
3396
- ed as CONTROL_BINDING_VALUE_INVALID_ERROR_CODE,
3397
- td as CONTROL_CONTEXT_UNSUPPORTED_ERROR_CODE,
3398
- ad as CONTROL_DEFINITION_DUPLICATE_ERROR_CODE,
3399
- sd as CONTROL_DEFINITION_INVALID_ERROR_CODE,
3400
- od as CONTROL_PLACEHOLDER_QUOTED_ERROR_CODE,
3401
- nd as CONTROL_REFERENCE_MISSING_ERROR_CODE,
3402
- id as CONTROL_VALUE_INVALID_ERROR_CODE,
3403
- rd as CONTROL_VALUE_MISSING_ERROR_CODE,
3404
- Ph as CORNER_STEPS,
3409
+ Ge as CHART_COLORS_BOUNDS,
3410
+ Xr as CHIP_VALUE_COLUMN,
3411
+ Zr as COLUMN_KEY_CLASSES,
3412
+ ed as COLUMN_PRESENTATION_KEYS,
3413
+ td as COMPARISON_POLARITIES,
3414
+ Bf as COMPARISON_SIGN_WORDS,
3415
+ ad as CONTROL_BINDING_MAPPING_MISSING_ERROR_CODE,
3416
+ sd as CONTROL_BINDING_TARGET_INVALID_ERROR_CODE,
3417
+ od as CONTROL_BINDING_VALUE_INVALID_ERROR_CODE,
3418
+ nd as CONTROL_CONTEXT_UNSUPPORTED_ERROR_CODE,
3419
+ id as CONTROL_DEFINITION_DUPLICATE_ERROR_CODE,
3420
+ rd as CONTROL_DEFINITION_INVALID_ERROR_CODE,
3421
+ dd as CONTROL_PLACEHOLDER_QUOTED_ERROR_CODE,
3422
+ ld as CONTROL_REFERENCE_MISSING_ERROR_CODE,
3423
+ cd as CONTROL_VALUE_INVALID_ERROR_CODE,
3424
+ ud as CONTROL_VALUE_MISSING_ERROR_CODE,
3425
+ Xh as CORNER_STEPS,
3405
3426
  ce as CardQueryRequestError,
3406
- dd as ControlResolutionError,
3407
- ld as DASHBOARD_CHANGE_OPS,
3408
- cd as DASHBOARD_DEFAULT_OPTION_DEPENDENCIES,
3409
- Sf as DASHBOARD_FILTER_OPERATIONS,
3410
- ud as DASHBOARD_INPUT_RUNTIME_SCOPE_KINDS,
3411
- nn as DASHBOARD_STYLE_NUMBER_BOUNDS,
3412
- kf as DOCUMENT_KPI_SECTION_MAX_CARDS,
3413
- Tf as DOCUMENT_KPI_SECTION_MAX_TILES,
3414
- fd as DOMAIN_EDIT_CHANGE_OPS,
3415
- md as DYNAMIC_TEXT_MESSAGE,
3416
- hd as DashboardFilterMappingContractError,
3417
- pd as ExecutionControlContractError,
3418
- gd as FILTER_OPERATORS,
3427
+ fd as ControlResolutionError,
3428
+ md as DASHBOARD_CHANGE_OPS,
3429
+ hd as DASHBOARD_DEFAULT_OPTION_DEPENDENCIES,
3430
+ Vf as DASHBOARD_FILTER_OPERATIONS,
3431
+ pd as DASHBOARD_INPUT_RUNTIME_SCOPE_KINDS,
3432
+ dn as DASHBOARD_STYLE_NUMBER_BOUNDS,
3433
+ Gf as DOCUMENT_KPI_SECTION_MAX_CARDS,
3434
+ Kf as DOCUMENT_KPI_SECTION_MAX_TILES,
3435
+ gd as DOMAIN_EDIT_CHANGE_OPS,
3436
+ bd as DYNAMIC_TEXT_MESSAGE,
3437
+ yd as DashboardFilterMappingContractError,
3438
+ vd as ExecutionControlContractError,
3439
+ Id as FILTER_OPERATORS,
3419
3440
  ua as FORMAT_WORDS,
3420
- bd as FilterModelError,
3421
- yd as KPI_MEASURES_SHOWN,
3422
- Uh as KPI_TREND_GRAINS,
3423
- Qh as KPI_TREND_MAX_POINTS,
3424
- Hh as KPI_TREND_PERIODS,
3425
- vd as LEGACY_TABLE_CARD_TYPES,
3426
- ym as LEGACY_TABLE_ROUTING_ID_NAMESPACE,
3441
+ _d as FilterModelError,
3442
+ Cd as KPI_MEASURES_SHOWN,
3443
+ rp as KPI_TREND_GRAINS,
3444
+ dp as KPI_TREND_PERIODS,
3445
+ $d as LEGACY_TABLE_CARD_TYPES,
3446
+ Om as LEGACY_TABLE_ROUTING_ID_NAMESPACE,
3427
3447
  ba as MAX_CREATE_CHANGES,
3428
- Id as MAX_NEXT_STEP_CHARS,
3429
- _o as MAX_PROPOSED_CHANGES,
3430
- _d as MAX_QUERY_LIMIT,
3431
- Cd as MAX_TEXT_WORDS,
3432
- $d as MEASURE_CALCULATION_SUMMARIES,
3433
- Qm as NEW_CARD_TYPE,
3434
- wd as NON_ADDITIVE_SUM_OF_ROWS_HINT,
3435
- xd as PUBLIC_TRANSFORM_KIND,
3436
- Sd as QUERY_ASPECTS,
3437
- kd as QUERY_CONFIG_KEY_ASPECTS,
3438
- Hm as RELATIONSHIP_ROUTE_CHANGED_MESSAGE,
3439
- Td as RESERVED_VARIABLE_NAMES,
3440
- Rd as SEE_RECORDS_CARD_TYPES,
3441
- Ad as SEE_RECORDS_LIMITS,
3442
- Fd as SEE_RECORDS_MAX_PAGE,
3443
- zm as SEE_RECORDS_MESSAGES,
3444
- Dd as SEMAPHOR_CARTESIAN_CHART_TYPES,
3445
- Od as SETTINGS_BY_KIND,
3446
- Bh as SHELF_FIELD_KEYS,
3447
- Lh as SPACING_STEPS,
3448
- Ed as TIME_GRAINS,
3449
- qd as TOOLBAR_FILTER_REACH_FIELDS,
3450
- Rf as VARIABLE_CARD_TYPE,
3451
- Af as VARIABLE_COMPARISON_PARTS,
3452
- Nd as VARIABLE_GETS,
3453
- Ff as VARIABLE_LIST_CAP,
3454
- Df as VARIABLE_LIST_SHOWN,
3455
- Pd as VARIABLE_NAME_PATTERN,
3456
- Of as VARIABLE_VALUE_PART,
3457
- Ld as WINDOW_ERROR_CODES,
3458
- Md as WINDOW_WARNING_CODES,
3459
- Bd as acceptedColumnRefKinds,
3460
- Vd as analyticsFilterSchema,
3461
- vm as applyCardReferenceRemapping,
3462
- Kd as applyCardSettings,
3448
+ wd as MAX_DATE_GRAIN_POINTS,
3449
+ xd as MAX_NEXT_STEP_CHARS,
3450
+ $o as MAX_PROPOSED_CHANGES,
3451
+ Sd as MAX_QUERY_LIMIT,
3452
+ kd as MAX_TEXT_WORDS,
3453
+ Td as MEASURE_CALCULATION_SUMMARIES,
3454
+ dh as NEW_CARD_TYPE,
3455
+ Rd as NON_ADDITIVE_SUM_OF_ROWS_HINT,
3456
+ Ad as PUBLIC_TRANSFORM_KIND,
3457
+ Fd as QUERY_ASPECTS,
3458
+ Dd as QUERY_CONFIG_KEY_ASPECTS,
3459
+ lh as RELATIONSHIP_ROUTE_CHANGED_MESSAGE,
3460
+ Od as RESERVED_VARIABLE_NAMES,
3461
+ Ed as SEE_RECORDS_CARD_TYPES,
3462
+ qd as SEE_RECORDS_LIMITS,
3463
+ Nd as SEE_RECORDS_MAX_PAGE,
3464
+ ch as SEE_RECORDS_MESSAGES,
3465
+ Pd as SEMAPHOR_CARTESIAN_CHART_TYPES,
3466
+ Ld as SETTINGS_BY_KIND,
3467
+ tp as SHELF_FIELD_KEYS,
3468
+ Zh as SPACING_STEPS,
3469
+ Md as TIME_GRAINS,
3470
+ Bd as TOOLBAR_FILTER_REACH_FIELDS,
3471
+ jf as VARIABLE_CARD_TYPE,
3472
+ Wf as VARIABLE_COMPARISON_PARTS,
3473
+ Vd as VARIABLE_GETS,
3474
+ Uf as VARIABLE_LIST_CAP,
3475
+ Qf as VARIABLE_LIST_SHOWN,
3476
+ Gd as VARIABLE_NAME_PATTERN,
3477
+ Hf as VARIABLE_VALUE_PART,
3478
+ Kd as WINDOW_ERROR_CODES,
3479
+ jd as WINDOW_WARNING_CODES,
3480
+ Wd as acceptedColumnRefKinds,
3481
+ Ud as acceptsGrainThatRan,
3482
+ Qd as analyticsFilterSchema,
3483
+ Hd as appliedBindingControlValue,
3484
+ Em as applyCardReferenceRemapping,
3485
+ zd as applyCardSettings,
3463
3486
  wt as applyDashboardOperations,
3464
- jd as applyFilterApplicability,
3465
- Ym as applyFilterSettingsChange,
3466
- Im as applyGroupByOverride,
3467
- Wd as applyLinkedClickToFilterOverrides,
3468
- Gd as applyMeasureCalculations,
3469
- Ud as applyOptionDependencyOverride,
3470
- Qd as applyVariableChange,
3471
- zh as automaticKpiTrendGrain,
3472
- Hd as blockClause,
3473
- zd as blockSentence,
3474
- tp as bookmarkImpactSentence,
3475
- Jm as buildCardExportFormatOptions,
3476
- _m as buildCardExportQueryContext,
3477
- Xm as buildCardExportRequest,
3478
- Zm as buildCardExportRequestFromOptions,
3479
- eh as buildColumnCatalog,
3480
- Yd as buildControlDefinitionIndex,
3487
+ Yd as applyFilterApplicability,
3488
+ uh as applyFilterSettingsChange,
3489
+ qm as applyGroupByOverride,
3490
+ Jd as applyLinkedClickToFilterOverrides,
3491
+ Xd as applyMeasureCalculations,
3492
+ Zd as applyOptionDependencyOverride,
3493
+ el as applyVariableChange,
3494
+ tl as automaticDateGrain,
3495
+ fo as automaticGrainSupport,
3496
+ al as blockClause,
3497
+ sl as blockSentence,
3498
+ mp as bookmarkImpactSentence,
3499
+ fh as buildCardExportFormatOptions,
3500
+ Nm as buildCardExportQueryContext,
3501
+ mh as buildCardExportRequest,
3502
+ hh as buildCardExportRequestFromOptions,
3503
+ ph as buildColumnCatalog,
3504
+ ol as buildControlDefinitionIndex,
3481
3505
  no as buildDashboardCardSourceIndex,
3482
- th as buildEntityColumnGroup,
3483
- ah as buildFilterInputFromDefinition,
3484
- Qo as buildFilterInputFromField,
3485
- Jd as buildLinkedClickToFilterOverrides,
3486
- Xd as buildProposeChangeInputSchema,
3487
- Zd as buildSavedEditorCard,
3488
- sh as buildTableExportFormatOptions,
3489
- el as calculationAddSchema,
3490
- oh as cardColumnRefForKey,
3491
- tl as cardColumnRefSchema,
3492
- wo as cardConditionalFormattingSchema,
3493
- al as cardQueryPatchSchema,
3494
- sl as cardReachesDatasetThroughRelationships,
3506
+ gh as buildEntityColumnGroup,
3507
+ bh as buildFilterInputFromDefinition,
3508
+ zo as buildFilterInputFromField,
3509
+ nl as buildLinkedClickToFilterOverrides,
3510
+ il as buildProposeChangeInputSchema,
3511
+ rl as buildSavedEditorCard,
3512
+ yh as buildTableExportFormatOptions,
3513
+ dl as calculationAddSchema,
3514
+ vh as cardColumnRefForKey,
3515
+ ll as cardColumnRefSchema,
3516
+ So as cardConditionalFormattingSchema,
3517
+ cl as cardConfigAsRan,
3518
+ ul as cardQueryPatchSchema,
3519
+ fl as cardReachesDatasetThroughRelationships,
3495
3520
  Ps as cardSettingsKind,
3496
3521
  qs as cardTypeSentenceName,
3497
- ol as carryColumnSettings,
3498
- po as changeCardType,
3499
- nl as changeMatrixEditor,
3500
- xo as checkConditionalRuleColumns,
3522
+ ml as carryColumnSettings,
3523
+ bo as changeCardType,
3524
+ hl as changeMatrixEditor,
3525
+ ko as checkConditionalRuleColumns,
3501
3526
  Dt as checkDataVariable,
3502
- il as checkDetailDateFormat,
3503
- qr as checkPresentationStores,
3504
- rl as chipOverVariable,
3505
- dl as clickToFilterSettingsSchema,
3506
- ll as collectJoinPlanIdentifiers,
3527
+ pl as checkDetailDateFormat,
3528
+ Lr as checkPresentationStores,
3529
+ gl as chipOverVariable,
3530
+ bl as clickToFilterSettingsSchema,
3531
+ yl as collectJoinPlanIdentifiers,
3507
3532
  Qa as collectVariableReferences,
3508
3533
  Na as columnDataset,
3509
- go as columnFieldKey,
3510
- ja as columnKeys,
3511
- cl as columnRefIssue,
3534
+ yo as columnFieldKey,
3535
+ Ka as columnKeys,
3536
+ vl as columnRefIssue,
3512
3537
  la as columnRefKey,
3513
- ul as columnSettingsInputSchema,
3514
- Ef as comparisonPartPresentation,
3515
- Cm as composeCardReferenceRemapping,
3516
- fl as conditionalRuleSchema,
3517
- Lr as confirmClassFor,
3518
- ml as contextChangeSchema,
3519
- hl as controlBindingExecutionSchema,
3520
- pl as controlDefinitionExecutionSchema,
3538
+ Il as columnSettingsInputSchema,
3539
+ zf as comparisonPartPresentation,
3540
+ Pm as composeCardReferenceRemapping,
3541
+ _l as conditionalRuleSchema,
3542
+ Vr as confirmClassFor,
3543
+ Cl as contextChangeSchema,
3544
+ $l as controlBindingExecutionSchema,
3545
+ wl as controlDefinitionExecutionSchema,
3521
3546
  so as controlRefusal,
3522
- Ar as convertLegacyStyle,
3523
- gl as createDashboardFilterBindingId,
3524
- Bm as createMatrixAuthoringDraft,
3525
- Vm as createMatrixConfig,
3526
- zo as createNewCard,
3527
- bl as createTargetSchema,
3528
- Ho as createTextCard,
3529
- yl as dashboardCardFilterSourceInventoryContains,
3547
+ Or as convertLegacyStyle,
3548
+ xl as createDashboardFilterBindingId,
3549
+ th as createMatrixAuthoringDraft,
3550
+ ah as createMatrixConfig,
3551
+ Jo as createNewCard,
3552
+ Sl as createTargetSchema,
3553
+ Yo as createTextCard,
3554
+ kl as dashboardCardFilterSourceInventoryContains,
3530
3555
  Zs as dashboardChangeSchema,
3531
- vl as dashboardFilterTargetMatchesLogicalValue,
3532
- qf as dashboardFilterValueTypeForDataType,
3533
- No as dashboardInputScopeIncludesDocumentSheets,
3534
- Tn as dashboardStyleAsEdit,
3535
- Il as dashboardStyleChangeSchema,
3556
+ Tl as dashboardFilterTargetMatchesLogicalValue,
3557
+ Yf as dashboardFilterValueTypeForDataType,
3558
+ Lo as dashboardInputScopeIncludesDocumentSheets,
3559
+ An as dashboardStyleAsEdit,
3560
+ Rl as dashboardStyleChangeSchema,
3536
3561
  za as dashboardStyleLayers,
3537
- _l as decideClickToFilterCardLevel,
3538
- Cl as decideClickToFilterField,
3539
- $l as defaultClickToFilterSettings,
3540
- pn as defaultVariableGet,
3541
- Vh as defaultVariableName,
3542
- ap as describeBookmarkImpact,
3543
- wl as describeDashboardFilterCardReach,
3562
+ Al as decideClickToFilterCardLevel,
3563
+ Fl as decideClickToFilterField,
3564
+ Dl as defaultClickToFilterSettings,
3565
+ bn as defaultVariableGet,
3566
+ ap as defaultVariableName,
3567
+ hp as describeBookmarkImpact,
3568
+ Ol as describeDashboardFilterCardReach,
3544
3569
  $e as describeDashboardFilterCardReachDetail,
3545
- nh as describeDateWindow,
3546
- ih as describeFilterReachEntry,
3547
- rh as describeKpiDateSection,
3548
- dh as describeKpiTileDate,
3549
- Yh as describeKpiTrendRow,
3550
- xl as describeMeasureCalculations,
3570
+ Ih as describeDateWindow,
3571
+ _h as describeFilterReachEntry,
3572
+ Ch as describeKpiDateSection,
3573
+ $h as describeKpiTileDate,
3574
+ lp as describeKpiTrendRow,
3575
+ El as describeMeasureCalculations,
3551
3576
  ao as describeQueryChange,
3552
- lh as describeRelationshipRoute,
3553
- ch as describeRelationshipSkip,
3554
- Sl as describeTableColumnTotal,
3555
- Nf as documentInputTextUsage,
3556
- Pf as doesDashboardInputApplyToTarget,
3557
- Lf as doesDashboardInputReachFilterTarget,
3558
- Mf as doesDashboardInputSurviveCarriedContext,
3559
- kl as doesToolbarFilterReachTab,
3560
- uh as domainCalculatedFields,
3561
- Tl as domainEditChangeSchema,
3562
- Rl as domainEditChangeSchemas,
3563
- Kh as draftBlocker,
3564
- gn as draftFromVariable,
3565
- Al as drawsDetailDatesInBrowser,
3566
- Fl as dropMatrixEditorField,
3567
- op as editBrandStyle,
3568
- rn as editDashboardStyle,
3569
- Jh as estimateKpiTrendPoints,
3570
- Dl as evaluateConditionalRules,
3571
- Ol as explicitComparisonSchema,
3577
+ wh as describeRelationshipRoute,
3578
+ xh as describeRelationshipSkip,
3579
+ ql as describeTableColumnTotal,
3580
+ Jf as documentInputTextUsage,
3581
+ Xf as doesDashboardInputApplyToTarget,
3582
+ Zf as doesDashboardInputReachFilterTarget,
3583
+ em as doesDashboardInputSurviveCarriedContext,
3584
+ Nl as doesToolbarFilterReachTab,
3585
+ Sh as domainCalculatedFields,
3586
+ Pl as domainEditChangeSchema,
3587
+ Ll as domainEditChangeSchemas,
3588
+ sp as draftBlocker,
3589
+ yn as draftFromVariable,
3590
+ Ml as drawsDetailDatesInBrowser,
3591
+ Bl as dropMatrixEditorField,
3592
+ gp as editBrandStyle,
3593
+ ln as editDashboardStyle,
3594
+ Vl as estimateDateGrainPoints,
3595
+ Gl as evaluateConditionalRules,
3596
+ Kl as explicitComparisonSchema,
3597
+ jl as fieldAsRan,
3572
3598
  Us as fieldIdentityKey,
3573
- El as fieldRef,
3574
- ql as fieldRefSchema,
3575
- Nl as filterApplicabilityContextForCard,
3576
- fh as filterReachPreviewAnswers,
3577
- Pl as filterValueReachForCard,
3578
- Ll as filterValueSemanticDataset,
3579
- Ml as findBorrowedSelectionBinding,
3599
+ Wl as fieldRef,
3600
+ Ul as fieldRefSchema,
3601
+ Ql as filterApplicabilityContextForCard,
3602
+ kh as filterReachPreviewAnswers,
3603
+ Hl as filterValueReachForCard,
3604
+ zl as filterValueSemanticDataset,
3605
+ Yl as findBorrowedSelectionBinding,
3580
3606
  ot as findCatalogField,
3581
- Bl as findDashboardCardExecutableSource,
3582
- Vl as findDashboardCardPinnedCatalogSource,
3583
- Ga as findDashboardFilterTarget,
3584
- Kl as findDashboardSqlPinnedCatalogSource,
3607
+ Jl as findDashboardCardExecutableSource,
3608
+ Xl as findDashboardCardPinnedCatalogSource,
3609
+ Wa as findDashboardFilterTarget,
3610
+ Zl as findDashboardSqlPinnedCatalogSource,
3585
3611
  ps as findRetiredCardPresentationFields,
3586
- Er as findRetiredPresentationFields,
3587
- Gs as findSortedColumn,
3588
- mh as flattenEntityColumns,
3589
- jl as foldPrototypeDocumentInputs,
3590
- Wl as formatFilterModelIssues,
3612
+ Pr as findRetiredPresentationFields,
3613
+ Ws as findSortedColumn,
3614
+ Th as flattenEntityColumns,
3615
+ ec as foldPrototypeDocumentInputs,
3616
+ tc as formatFilterModelIssues,
3591
3617
  ws as formatResolvedPrimaryDateFieldIssues,
3592
- Gl as formatSkippedFilterWarnings,
3593
- Ul as fromEditableRules,
3594
- hh as getCalculatedFieldAggregateOverrides,
3595
- Ql as getCalculatedFieldNamespace,
3596
- ph as getCalculatedFieldParameters,
3597
- gh as getCalculatedFieldShelfOverrides,
3598
- Hl as getCardDefinition,
3599
- bh as getClickContextFromTable,
3600
- zl as getColumnCatalogFieldId,
3601
- Yl as getDashboardFilterSubscriptionHint,
3602
- Jl as getDashboardGlobalDateFilter,
3603
- Bf as getDocumentKpiSectionShapeIssues,
3604
- Vf as getDocumentSectionCards,
3605
- yh as getDomainCalculatedSelectionOverrides,
3606
- Xl as getFieldAggregationOptions,
3607
- Zl as getMatrixBindingTargets,
3608
- Km as getMatrixLevelLabel,
3609
- jm as getMatrixMeasureLabel,
3610
- ec as getStableDomainCalculatedFieldId,
3611
- tc as getTemporalBucketAuthoringOptions,
3612
- ac as getTemporalBucketAuthoringSelection,
3613
- sc as handleSchema,
3614
- oc as hasDashboardFilterSubscription,
3615
- vh as hasSeeRecordsMeasureFilter,
3618
+ ac as formatSkippedFilterWarnings,
3619
+ sc as fromEditableRules,
3620
+ Rh as getCalculatedFieldAggregateOverrides,
3621
+ oc as getCalculatedFieldNamespace,
3622
+ Ah as getCalculatedFieldParameters,
3623
+ Fh as getCalculatedFieldShelfOverrides,
3624
+ nc as getCardDefinition,
3625
+ Dh as getClickContextFromTable,
3626
+ ic as getColumnCatalogFieldId,
3627
+ rc as getDashboardFilterSubscriptionHint,
3628
+ dc as getDashboardGlobalDateFilter,
3629
+ tm as getDocumentKpiSectionShapeIssues,
3630
+ am as getDocumentSectionCards,
3631
+ Oh as getDomainCalculatedSelectionOverrides,
3632
+ lc as getFieldAggregationOptions,
3633
+ cc as getMatrixBindingTargets,
3634
+ sh as getMatrixLevelLabel,
3635
+ oh as getMatrixMeasureLabel,
3636
+ uc as getStableDomainCalculatedFieldId,
3637
+ fc as getTemporalBucketAuthoringOptions,
3638
+ mc as getTemporalBucketAuthoringSelection,
3639
+ hc as grainChoicePatch,
3640
+ pc as grainControlApplies,
3641
+ gc as handleSchema,
3642
+ bc as hasDashboardFilterSubscription,
3643
+ Eh as hasSeeRecordsMeasureFilter,
3616
3644
  ue as hasStoredKey,
3617
- nc as hasTextCardRichWords,
3618
- ic as hasToolbarFilterReachField,
3619
- $m as hostFilterValueFor,
3620
- wm as hostFilterValuesToSlots,
3621
- rc as inspectMatrixCardConfig,
3622
- xm as isAdHocFilterValueOnTab,
3645
+ yc as hasTextCardRichWords,
3646
+ vc as hasToolbarFilterReachField,
3647
+ Lm as hostFilterValueFor,
3648
+ Mm as hostFilterValuesToSlots,
3649
+ Ic as inspectMatrixCardConfig,
3650
+ Bm as isAdHocFilterValueOnTab,
3623
3651
  Ca as isAggregateGet,
3624
- dc as isAllowedDashboardInputScopeCombination,
3625
- lc as isCardType,
3626
- Kf as isDashboardFilterOperationCompatible,
3652
+ _c as isAllowedDashboardInputScopeCombination,
3653
+ Cc as isCardType,
3654
+ sm as isDashboardFilterOperationCompatible,
3627
3655
  Ua as isDashboardInputOnTab,
3628
- jf as isDashboardInputOwnedBySheet,
3629
- Wf as isDashboardInputScopeEmpty,
3630
- Gf as isDashboardTargetIdTaken,
3631
- cc as isDatabaseEntityReference,
3632
- uc as isGroupedDate,
3633
- fc as isLegacyTableCard,
3634
- mc as isPresentationCurrencyBinding,
3635
- hc as isSeeRecordsCardType,
3636
- pc as isSemanticAutoJoinCard,
3637
- gc as isSemaphorCartesianChartType,
3638
- Oo as isSqlKpi,
3639
- bc as isStructuralControlBinding,
3640
- yc as isTextCardRichContent,
3641
- vc as isValidControlOptionPresentation,
3642
- Uf as isVariableComparisonPart,
3643
- Ic as isWhenRun,
3644
- _c as kpiSegmentMetricId,
3645
- Cc as kpiShowsTrend,
3656
+ om as isDashboardInputOwnedBySheet,
3657
+ nm as isDashboardInputScopeEmpty,
3658
+ im as isDashboardTargetIdTaken,
3659
+ $c as isDatabaseEntityReference,
3660
+ wc as isGroupedDate,
3661
+ xc as isLegacyTableCard,
3662
+ Sc as isPresentationCurrencyBinding,
3663
+ kc as isSeeRecordsCardType,
3664
+ Tc as isSemanticAutoJoinCard,
3665
+ Rc as isSemaphorCartesianChartType,
3666
+ qo as isSqlKpi,
3667
+ Ac as isStructuralControlBinding,
3668
+ Fc as isTextCardRichContent,
3669
+ Dc as isValidControlOptionPresentation,
3670
+ rm as isVariableComparisonPart,
3671
+ Oc as isWhenRun,
3672
+ Ec as kpiSegmentMetricId,
3673
+ qc as kpiShowsTrend,
3646
3674
  Es as kpiTrendBy,
3647
- Ih as kpiTrendByHint,
3648
- Ws as labelAt,
3649
- $c as layoutArrangeSchema,
3650
- Sm as legacyTableRoutingIds,
3651
- km as legacyTableRoutingTarget,
3652
- wc as linkedClickToFilterOverridesSchema,
3653
- Tm as listAdHocFilterValuesOnTab,
3675
+ qh as kpiTrendByHint,
3676
+ js as labelAt,
3677
+ Nc as layoutArrangeSchema,
3678
+ Vm as legacyTableRoutingIds,
3679
+ Gm as legacyTableRoutingTarget,
3680
+ Pc as linkedClickToFilterOverridesSchema,
3681
+ Km as listAdHocFilterValuesOnTab,
3654
3682
  xe as listDashboardCardLocations,
3655
- xc as listDashboardFilterDefinitions,
3656
- Sc as listDashboardFilterInputsOnTab,
3657
- Wa as listDashboardFilterTargets,
3658
- Qf as listDashboardInputReachKeys,
3659
- Eo as listDashboardInputScopeExceptedCardIds,
3660
- qo as listDashboardInputScopeExceptedSheetIds,
3661
- kc as listDashboardInputsTolerantly,
3683
+ Lc as listDashboardFilterDefinitions,
3684
+ Mc as listDashboardFilterInputsOnTab,
3685
+ ja as listDashboardFilterTargets,
3686
+ dm as listDashboardInputReachKeys,
3687
+ No as listDashboardInputScopeExceptedCardIds,
3688
+ Po as listDashboardInputScopeExceptedSheetIds,
3689
+ Bc as listDashboardInputsTolerantly,
3662
3690
  Ot as listDashboardTabTargets,
3663
- Hf as listDataVariablePlaces,
3664
- Rm as listFilterInputValueTargets,
3665
- zf as listFilterTargetScopeTargets,
3666
- Yf as listReachedVariableTargets,
3667
- Jf as listReferencedDataVariableIds,
3668
- Tc as listStoredFilterDefinitions,
3669
- Xf as listVariableScopeTargets,
3670
- Zf as mapDashboardCards,
3671
- em as mapDocumentSectionCards,
3672
- Rc as mapRuleColumns,
3673
- Ac as matchColumns,
3674
- Am as matrixCatalogSources,
3675
- vo as matrixColumnKeys,
3676
- Fc as matrixColumnsSchema,
3677
- Dc as matrixDefinitionFieldRefs,
3678
- Oc as matrixDefinitionFields,
3679
- Ec as matrixDefinitionSources,
3680
- qc as matrixEditorCatalogFromFields,
3681
- Fm as matrixExecutionSources,
3682
- Nc as measureCalculationOptions,
3683
- Pc as measureComparisonSchema,
3684
- Lc as measureRefSchema,
3685
- Mc as measureTransformSchema,
3686
- Wm as mergeMatrixSorts,
3691
+ lm as listDataVariablePlaces,
3692
+ jm as listFilterInputValueTargets,
3693
+ cm as listFilterTargetScopeTargets,
3694
+ um as listReachedVariableTargets,
3695
+ fm as listReferencedDataVariableIds,
3696
+ Vc as listStoredFilterDefinitions,
3697
+ mm as listVariableScopeTargets,
3698
+ hm as mapDashboardCards,
3699
+ pm as mapDocumentSectionCards,
3700
+ Gc as mapRuleColumns,
3701
+ Kc as matchColumns,
3702
+ Wm as matrixCatalogSources,
3703
+ _o as matrixColumnKeys,
3704
+ jc as matrixColumnsSchema,
3705
+ Wc as matrixDefinitionFieldRefs,
3706
+ Uc as matrixDefinitionFields,
3707
+ Qc as matrixDefinitionSources,
3708
+ Hc as matrixEditorCatalogFromFields,
3709
+ Um as matrixExecutionSources,
3710
+ zc as measureCalculationOptions,
3711
+ Yc as measureComparisonSchema,
3712
+ Jc as measureRefSchema,
3713
+ Xc as measureTransformSchema,
3714
+ nh as mergeMatrixSorts,
3687
3715
  lo as metricCardQuerySchema,
3688
- yo as moveMatrixLevel,
3689
- jh as newVariableDraft,
3690
- Wh as newVariableId,
3691
- Bc as normalizeClickToFilterSettings,
3692
- Vc as normalizeDashboardInputs,
3693
- Kc as normalizeLegacyLinkedTargetOverrides,
3694
- jc as occurrenceKeys,
3716
+ Io as moveMatrixLevel,
3717
+ op as newVariableDraft,
3718
+ np as newVariableId,
3719
+ Zc as normalizeClickToFilterSettings,
3720
+ eu as normalizeDashboardInputs,
3721
+ tu as normalizeLegacyLinkedTargetOverrides,
3722
+ au as occurrenceKeys,
3695
3723
  es as outlineCalendar,
3696
- Or as outlineDashboard,
3724
+ Nr as outlineDashboard,
3697
3725
  Pe as outlineFilter,
3698
3726
  as as outlineFilters,
3699
3727
  ut as ownsItsAggregate,
3700
- Rr as parseCardQueryRequest,
3701
- $n as parseCardQueryRequestContext,
3702
- Tr as parseCardQueryRequestExtras,
3703
- Wc as parseColumnRefKey,
3704
- _h as parseDashboardStyle,
3705
- Gc as parseExecutionControlBindingsShallow,
3728
+ Dr as parseCardQueryRequest,
3729
+ xn as parseCardQueryRequestContext,
3730
+ Fr as parseCardQueryRequestExtras,
3731
+ su as parseColumnRefKey,
3732
+ Nh as parseDashboardStyle,
3733
+ ou as parseExecutionControlBindingsShallow,
3706
3734
  Ss as parseExecutionControlContext,
3707
- Uc as parseExecutionControlContract,
3735
+ nu as parseExecutionControlContract,
3708
3736
  pa as planCardLabels,
3709
3737
  ha as planCardRequery,
3710
- Ch as pluralDatasetLabel,
3711
- Dm as prepareLoadedDashboard,
3712
- Qc as previewTemporalBucketAuthoringFormat,
3713
- tm as projectDataVariableToCard,
3714
- Hc as pruneUnrelatedCalculatedFilters,
3738
+ Ph as pluralDatasetLabel,
3739
+ Qm as prepareLoadedDashboard,
3740
+ iu as previewTemporalBucketAuthoringFormat,
3741
+ gm as projectDataVariableToCard,
3742
+ ru as pruneUnrelatedCalculatedFilters,
3715
3743
  oo as queryForm,
3716
- zc as queryMeasureSchema,
3717
- Yc as readCardConditionalRules,
3744
+ du as queryMeasureSchema,
3745
+ lu as readCardConditionalRules,
3718
3746
  we as readCardQuery,
3719
3747
  Ft as readCardSettings,
3720
3748
  he as readCardSource,
3721
3749
  Ee as readCardTypeProperties,
3722
- Xh as readComparisonDates,
3750
+ cp as readComparisonDates,
3723
3751
  Ie as readDashboardFilterModel,
3724
- Zh as readDefaultComparisonDates,
3725
- Jc as readExactDomainCalculatedFieldReference,
3726
- $h as readFilterReachResponse,
3727
- Om as readFilterValueList,
3728
- wh as readKpiDateContext,
3729
- Xc as readKpiFigure,
3730
- Zc as readKpiNumber,
3731
- eu as readMatrixCardConfig,
3732
- tu as readMeasureCalculations,
3733
- au as readSqlFilterUse,
3734
- su as readStoredTransform,
3735
- Ka as readTextCardWords,
3752
+ up as readDefaultComparisonDates,
3753
+ cu as readExactDomainCalculatedFieldReference,
3754
+ Lh as readFilterReachResponse,
3755
+ Hm as readFilterValueList,
3756
+ Mh as readKpiDateContext,
3757
+ uu as readKpiFigure,
3758
+ fu as readKpiNumber,
3759
+ mu as readMatrixCardConfig,
3760
+ hu as readMeasureCalculations,
3761
+ pu as readSqlFilterUse,
3762
+ gu as readStoredTransform,
3763
+ Ga as readTextCardWords,
3736
3764
  Ze as readTextWords,
3737
- ou as readTransform,
3738
- am as readVariableAnswer,
3765
+ bu as readTransform,
3766
+ bm as readVariableAnswer,
3739
3767
  rs as readVariableEditability,
3740
3768
  kt as readVariableSource,
3741
- Co as readablePresentation,
3742
- nu as rebindDashboardOptionDependencyInputId,
3769
+ wo as readablePresentation,
3770
+ yu as rebindDashboardOptionDependencyInputId,
3743
3771
  ma as rebuildsRole,
3744
- iu as reconcileMatrixSpecStructure,
3745
- ru as reconcileTemporalBucketAuthoringFormat,
3772
+ vu as reconcileMatrixSpecStructure,
3773
+ Iu as reconcileTemporalBucketAuthoringFormat,
3746
3774
  ro as recordsCardQuerySchema,
3747
3775
  Js as refDataset,
3748
3776
  be as refKey,
3749
3777
  Ct as refName,
3750
- du as registeredDomainEditChangeSchemas,
3751
- lu as relationshipAddSchema,
3752
- cu as relationshipRouteTarget,
3753
- uu as remapClickToFilterReferences,
3754
- fu as remapLinkedClickToFilterOverrides,
3755
- mu as requireNormalizedDashboardInputs,
3756
- hu as resolveBindingControlValue,
3757
- sm as resolveCanonicalDetailResultRawKey,
3758
- om as resolveCanonicalResultOutputKey,
3759
- Mo as resolveCanonicalResultOutputKeys,
3760
- nm as resolveCanonicalResultRawKey,
3761
- xh as resolveCardColumnRef,
3762
- Un as resolveCardSettings,
3763
- Sh as resolveConditionalRules,
3764
- Fr as resolveDashboardChanges,
3765
- Dr as resolveDashboardCreate,
3766
- pu as resolveDashboardEntitySource,
3767
- gu as resolveDashboardFilterAutomaticTarget,
3768
- bu as resolveDashboardFilterInheritedTarget,
3769
- yu as resolveDashboardOptionDependencies,
3770
- vu as resolveDashboardOptionPopulation,
3771
- Iu as resolveDashboardSqlFilterTarget,
3772
- dn as resolveDashboardStyle,
3773
- _u as resolveDetailTableRawTemporalPresentation,
3774
- Cu as resolveFieldSelectedSource,
3775
- $u as resolveGroupByFieldTarget,
3776
- wu as resolveKpiLayout,
3778
+ _u as registeredDomainEditChangeSchemas,
3779
+ Cu as relationshipAddSchema,
3780
+ $u as relationshipRouteTarget,
3781
+ wu as remapClickToFilterReferences,
3782
+ xu as remapLinkedClickToFilterOverrides,
3783
+ Su as requireNormalizedDashboardInputs,
3784
+ ku as resolveBindingControlValue,
3785
+ ym as resolveCanonicalDetailResultRawKey,
3786
+ vm as resolveCanonicalResultOutputKey,
3787
+ Vo as resolveCanonicalResultOutputKeys,
3788
+ Im as resolveCanonicalResultRawKey,
3789
+ Bh as resolveCardColumnRef,
3790
+ Hn as resolveCardSettings,
3791
+ Vh as resolveConditionalRules,
3792
+ Er as resolveDashboardChanges,
3793
+ qr as resolveDashboardCreate,
3794
+ Tu as resolveDashboardEntitySource,
3795
+ Ru as resolveDashboardFilterAutomaticTarget,
3796
+ Au as resolveDashboardFilterInheritedTarget,
3797
+ Fu as resolveDashboardOptionDependencies,
3798
+ Du as resolveDashboardOptionPopulation,
3799
+ Ou as resolveDashboardSqlFilterTarget,
3800
+ cn as resolveDashboardStyle,
3801
+ Eu as resolveDetailTableRawTemporalPresentation,
3802
+ qu as resolveFieldSelectedSource,
3803
+ Nu as resolveGroupByFieldTarget,
3804
+ Pu as resolveKpiLayout,
3777
3805
  La as resolveKpiShape,
3778
- xu as resolveKpiValueStyle,
3779
- Em as resolveMatrixControlBindings,
3780
- Gm as resolveMatrixDefinition,
3806
+ Lu as resolveKpiValueStyle,
3807
+ zm as resolveMatrixControlBindings,
3808
+ ih as resolveMatrixDefinition,
3781
3809
  fa as resolveMeasureCalculations,
3782
- Su as resolveMeasureTransform,
3783
- ku as resolveMetricFieldTarget,
3784
- Tu as resolveScalarMappedValue,
3785
- Ru as resolveTableColumnTotal,
3786
- Au as resolveTemporalBucketAuthoringFormat,
3810
+ Mu as resolveMeasureTransform,
3811
+ Bu as resolveMetricFieldTarget,
3812
+ Vu as resolveScalarMappedValue,
3813
+ Gu as resolveTableColumnTotal,
3814
+ Ku as resolveTemporalBucketAuthoringFormat,
3787
3815
  xs as resolveTemporalResultOwner,
3788
3816
  ga as resolveTextCardWords,
3789
- Fu as resolveValueStyle,
3790
- Du as respondsToSelectionsSchema,
3791
- Ou as retainConditionalRules,
3792
- Eu as retainedMatrixPath,
3793
- im as rewriteDashboardInputScopeIds,
3794
- qm as routeLegacyTableCard,
3795
- Nm as routeLegacyTableCards,
3796
- Pm as routeLegacyTableFrame,
3817
+ ju as resolveValueStyle,
3818
+ Wu as respondsToSelectionsSchema,
3819
+ Uu as retainConditionalRules,
3820
+ Qu as retainedMatrixPath,
3821
+ _m as rewriteDashboardInputScopeIds,
3822
+ Ym as routeLegacyTableCard,
3823
+ Jm as routeLegacyTableCards,
3824
+ Xm as routeLegacyTableFrame,
3797
3825
  He as sameColumnKey,
3798
- qu as sanitizeTextCardUrl,
3799
- kh as seeRecordsAvailability,
3800
- Th as seeRecordsCardAvailability,
3801
- Pr as seeRecordsMeasureId,
3802
- Rh as seeRecordsMeasureKind,
3803
- Ah as seeRecordsReasonHidesOffer,
3804
- Nu as seeRecordsRequestSchema,
3805
- Fh as seeRecordsRowField,
3806
- Pu as selectDashboardOptionDependencyInputIds,
3807
- Lu as selectionFieldFromExplorerField,
3808
- Dh as selectionTupleFromClickContext,
3809
- Oh as setMeasureCalculations,
3810
- Mu as settableCardType,
3811
- Bu as sharedCardPreferences,
3812
- Vu as sharedTableDialect,
3813
- Ku as sheetChangeSchemas,
3826
+ Hu as sanitizeTextCardUrl,
3827
+ Gh as seeRecordsAvailability,
3828
+ Kh as seeRecordsCardAvailability,
3829
+ Br as seeRecordsMeasureId,
3830
+ jh as seeRecordsMeasureKind,
3831
+ Wh as seeRecordsReasonHidesOffer,
3832
+ zu as seeRecordsRequestSchema,
3833
+ Uh as seeRecordsRowField,
3834
+ Yu as selectDashboardOptionDependencyInputIds,
3835
+ Ju as selectionFieldFromExplorerField,
3836
+ Qh as selectionTupleFromClickContext,
3837
+ Hh as setMeasureCalculations,
3838
+ Xu as settableCardType,
3839
+ Zu as sharedCardPreferences,
3840
+ ef as sharedTableDialect,
3841
+ tf as sheetChangeSchemas,
3814
3842
  io as sqlCardQuerySchema,
3815
- ju as sqlKpiResultKeys,
3843
+ af as sqlKpiResultKeys,
3816
3844
  qe as statedLabelsOf,
3817
3845
  Rs as storedCardTypeFor,
3818
- Wu as storedRunPresentation,
3819
- rm as storedTextRefs,
3820
- Gu as stripInstanceTargetsForLibrarySave,
3821
- Uu as structuralControlOverride,
3846
+ sf as storedRunPresentation,
3847
+ Cm as storedTextRefs,
3848
+ of as stripInstanceTargetsForLibrarySave,
3849
+ nf as structuralControlOverride,
3822
3850
  ts as summarizeFilter,
3823
- Qu as supportsCanonicalDashboardTemporalResult,
3824
- Hu as tabChangeSchemas,
3825
- zu as tableColumnTotalLabel,
3826
- Yu as textCardExcerpt,
3827
- Ju as textCardWordingClauses,
3851
+ rf as supportsCanonicalDashboardTemporalResult,
3852
+ df as tabChangeSchemas,
3853
+ lf as tableColumnTotalLabel,
3854
+ cf as textCardExcerpt,
3855
+ uf as textCardWordingClauses,
3828
3856
  _t as textCatalogAt,
3829
3857
  ct as toChartType,
3830
- Xu as toEditableRules,
3831
- Zu as toFiniteKpiNumber,
3858
+ ff as toEditableRules,
3859
+ mf as toFiniteKpiNumber,
3832
3860
  $t as toPublicCardType,
3833
3861
  Xs as toStoredComparison,
3834
- ef as toolbarFilterInputFields,
3835
- tf as toolbarFilterScope,
3836
- af as transformComparisonDocument,
3837
- sf as transformGroupings,
3838
- of as transformOrderSchema,
3839
- bo as updateMatrixConfig,
3840
- Yi as upgradeCardFormats,
3841
- Nr as upgradeCardPresentation,
3842
- or as upgradeConditionalFormatting,
3843
- Lm as upgradeToStoredDashboard,
3844
- nf as validateAndResolveWindowTransforms,
3845
- rf as validateControlValue,
3846
- dm as validateDashboardFilterValues,
3862
+ hf as toolbarFilterInputFields,
3863
+ pf as toolbarFilterScope,
3864
+ gf as transformComparisonDocument,
3865
+ bf as transformGroupings,
3866
+ yf as transformOrderSchema,
3867
+ vo as updateMatrixConfig,
3868
+ Zi as upgradeCardFormats,
3869
+ Mr as upgradeCardPresentation,
3870
+ rr as upgradeConditionalFormatting,
3871
+ Zm as upgradeToStoredDashboard,
3872
+ vf as validateAndResolveWindowTransforms,
3873
+ If as validateControlValue,
3874
+ $m as validateDashboardFilterValues,
3847
3875
  $s as validateResolvedPrimaryDateFieldShape,
3848
- lm as variableCardKeepsComparison,
3849
- cm as variableComparison,
3876
+ wm as variableCardKeepsComparison,
3877
+ xm as variableComparison,
3850
3878
  Ye as variableFromDraft,
3851
- hn as variableGetOptions,
3852
- um as variablePartCell,
3853
- fm as variablePartType,
3854
- Lo as variableParts,
3855
- mm as variableQueryResponseOf,
3856
- Eh as variableSourceWords,
3857
- bn as variableTakesComparison,
3858
- Jo as variableWords,
3859
- df as withCardConditionalRules,
3860
- lf as withCardConfigSqlDatePatterns,
3861
- hm as withCardExcludedFromScope,
3862
- pm as withCardIncludedInScope,
3863
- cf as withDashboardOptionDependencyOverride,
3864
- uf as withDetailSqlDatePattern,
3865
- gm as withDraftCard,
3866
- ff as withFormatOverride,
3867
- mf as withSqlDatePattern,
3868
- Po as withUnstatedScopeParts,
3869
- hf as withoutSqlDatePattern,
3870
- pf as withoutToolbarFilterReachFields,
3871
- gf as wordingBlocks,
3872
- bf as wordingClauses,
3873
- yf as writeColumnFormat,
3874
- vf as writeColumnPolarity,
3875
- If as writeComparisonDisplay,
3876
- _f as writeComparisonPresentation,
3877
- Cf as writeInheritComparison,
3878
- $f as writeSeeRecords,
3879
+ gn as variableGetOptions,
3880
+ Sm as variablePartCell,
3881
+ km as variablePartType,
3882
+ Bo as variableParts,
3883
+ Tm as variableQueryResponseOf,
3884
+ zh as variableSourceWords,
3885
+ vn as variableTakesComparison,
3886
+ Zo as variableWords,
3887
+ _f as withCardConditionalRules,
3888
+ Cf as withCardConfigSqlDatePatterns,
3889
+ Rm as withCardExcludedFromScope,
3890
+ Am as withCardIncludedInScope,
3891
+ $f as withDashboardOptionDependencyOverride,
3892
+ wf as withDetailSqlDatePattern,
3893
+ Fm as withDraftCard,
3894
+ xf as withFormatOverride,
3895
+ Sf as withGrainChoice,
3896
+ kf as withSqlDatePattern,
3897
+ Tf as withStartingGrain,
3898
+ Mo as withUnstatedScopeParts,
3899
+ Rf as withoutSqlDatePattern,
3900
+ Af as withoutToolbarFilterReachFields,
3901
+ Ff as wordingBlocks,
3902
+ Df as wordingClauses,
3903
+ Of as writeColumnFormat,
3904
+ Ef as writeColumnPolarity,
3905
+ qf as writeComparisonDisplay,
3906
+ Nf as writeComparisonPresentation,
3907
+ Pf as writeInheritComparison,
3908
+ Lf as writeSeeRecords,
3879
3909
  Ys as writeTextWords
3880
3910
  };