react-semaphor 0.1.601 → 0.1.603
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.
- package/dist/analytics-protocol/index.js +415 -375
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +5 -5
- package/dist/brand-studio/index.js +8 -8
- package/dist/briefings/index.js +5 -5
- package/dist/chunks/{add-to-dashboard-ClhEIFst.js → add-to-dashboard-CFF-wFU-.js} +1 -1
- package/dist/chunks/{analytics-base-schemas-DevrgqQb.js → analytics-base-schemas-DsUh5Q3C.js} +14 -12
- package/dist/chunks/{assistant-chat-BE0XXzZP.js → assistant-chat-B6hNQI1t.js} +146 -146
- package/dist/chunks/{bookmark-impact-DXDAN5AY.js → bookmark-impact-Ba2PLcGp.js} +3 -3
- package/dist/chunks/{bookmark-state-BMyB3Tb6.js → bookmark-state-n7AaNzR_.js} +517 -516
- package/dist/chunks/{card-filter-builder-CE0-YVN5.js → card-filter-builder-Y22HizVx.js} +474 -474
- package/dist/chunks/{comparison-window-caption-Dxj2CHOa.js → comparison-window-caption-Ck2TIbnR.js} +69 -69
- package/dist/chunks/{context-BJoEFgNl.js → context-UCQ7sere.js} +1 -1
- package/dist/chunks/{dashboard-mJKPFRbb.js → dashboard-BghI99oY.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-CntwKyiZ.js → dashboard-briefing-launcher-DtBAnGiH.js} +725 -716
- package/dist/chunks/{dashboard-controls-XO089DMg.js → dashboard-controls-CtFXlyjV.js} +53 -53
- package/dist/chunks/{dashboard-json-CQRiydUv.js → dashboard-json-DfGBUtCd.js} +5 -5
- package/dist/chunks/dates-BnrXF4bb.js +185 -0
- package/dist/chunks/{edit-dashboard-visual-f-Dm-BLR.js → edit-dashboard-visual-oxt3x1wb.js} +8081 -8268
- package/dist/chunks/{filter-line-CKNMyNTQ.js → filter-line-Cy5YYqRL.js} +27 -27
- package/dist/chunks/{filter-reach-copy-B8GGyVuR.js → filter-reach-copy-CE_ZX147.js} +1786 -2214
- package/dist/chunks/{filter-value-text-CRtKecI5.js → filter-value-text-fWvSDwkl.js} +11 -11
- package/dist/chunks/{index-DoPApnxg.js → index-D5rxbtS4.js} +24 -24
- package/dist/chunks/{layout-grid-CiSCZdIr.js → layout-grid-9LndRoLa.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-myf3D3Qx.js → matrix-analytical-definition-CCp48UCw.js} +496 -425
- package/dist/chunks/matrix-member-presentation-zNehruXR.js +391 -0
- package/dist/chunks/{matrix-operation-contract-C1SuOHLZ.js → matrix-operation-contract-DPBj69D8.js} +518 -514
- package/dist/chunks/{metric-comparison-Cm0G893W.js → metric-comparison-B0FR-Q8I.js} +184 -125
- package/dist/chunks/{paintbrush-DQIwqlck.js → paintbrush-58FQYY-y.js} +1 -1
- package/dist/chunks/{palette-Cun747Rg.js → palette-Be62Tkoa.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-C1Dyx8du.js → pivot-result-contract-expectations-BYqAmG9n.js} +1236 -1190
- package/dist/chunks/{pivot-result-identity-CBS-ssEp.js → pivot-result-identity-CAP4--iq.js} +1 -1
- package/dist/chunks/raw-temporal-value-Dg_MTFF7.js +3778 -0
- package/dist/chunks/{report-preferences-dialog-SDZEcG2x.js → report-preferences-dialog-uJp9GBTM.js} +219 -205
- package/dist/chunks/{report-runtime-context-BbedQdtc.js → report-runtime-context-c77_KF9v.js} +2 -2
- package/dist/chunks/{resolve-dashboard-input-context-DRBS0eRa.js → resolve-dashboard-input-context-Rtl1ffmE.js} +8808 -7291
- package/dist/chunks/{save-Dj5bjm7P.js → save-C5A0JnEV.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-DWVlJcsa.js → saved-dashboard-context-tcyTU8jm.js} +199 -213
- package/dist/chunks/selection-filter-compiler-DNijjI5y.js +150 -0
- package/dist/chunks/{semaphor-ready-indicator-OFOoAY-A.js → semaphor-ready-indicator-FBvunj6S.js} +37894 -35726
- package/dist/chunks/{shelf-drop-preview-context-2swWypXu.js → shelf-drop-preview-context-QKStrcK9.js} +54 -54
- package/dist/chunks/{stored-dashboard-NtOuEX6a.js → stored-dashboard-CHozcAY9.js} +770 -743
- package/dist/chunks/{style-sheet-parts-Qv4UcLAo.js → style-sheet-parts-CDCG-8Ej.js} +258 -251
- package/dist/chunks/{table-export-sheet-Do7ZB0_F.js → table-export-sheet-ZFIvs6Sj.js} +1 -1
- package/dist/chunks/{token-types-Dy_aXO-U.js → token-types-XbM6QByy.js} +1 -1
- package/dist/chunks/{upload-Bq-puSVy.js → upload-H15d7uHK.js} +1 -1
- package/dist/chunks/{validators-C7DFk3QK.js → validators-Baf3VIf5.js} +5 -5
- package/dist/chunks/{variable-draft-Cy03qnEi.js → variable-draft-C2y8Jp6Z.js} +27 -28
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +3392 -2761
- package/dist/format-utils/index.js +205 -204
- package/dist/index.js +73 -75
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/components/dashboard/dashboard-web-component.d.ts +7 -0
- package/dist/types/components/ui-custom/date-range-presets.d.ts +8 -0
- package/dist/types/index.js +5 -5
- package/dist/types/lib/dashboard-inputs/dashboard-input-target-context.d.ts +1 -1
- package/dist/types/lib/document/document-edits.d.ts +0 -4
- package/dist/types/lib/query-context/assemble-card-query.d.ts +6 -1
- package/dist/types/lib/stores/dashboard-store.d.ts +30 -1
- package/dist/types/lib/types/common-types.d.ts +0 -2
- package/dist/types/lib/types/explorer-types.d.ts +1 -1
- package/dist/types/shared/analytics-protocol/aggregate-expression.d.ts +15 -0
- package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +18 -0
- package/dist/types/shared/analytics-protocol/analyze-result-types.d.ts +3 -0
- package/dist/types/shared/analytics-protocol/comparison-choices.d.ts +92 -0
- package/dist/types/shared/analytics-protocol/comparison-placement.d.ts +30 -0
- package/dist/types/shared/analytics-protocol/contracts.d.ts +11 -5
- package/dist/types/shared/analytics-protocol/date-window.d.ts +105 -0
- package/dist/types/shared/analytics-protocol/filter-field-ownership.d.ts +27 -0
- package/dist/types/shared/analytics-protocol/fixtures.d.ts +4 -2
- package/dist/types/shared/analytics-protocol/index.d.ts +3 -0
- package/dist/types/shared/analytics-protocol/metric-comparison.d.ts +93 -11
- package/dist/types/shared/assistant-protocol/context.d.ts +16 -16
- package/dist/types/shared/dashboard-authoring/calculations/calculated-column.d.ts +52 -0
- package/dist/types/shared/dashboard-authoring/calculations/definition.d.ts +129 -0
- package/dist/types/shared/dashboard-authoring/calculations/resolve-dashboard-field-copies.d.ts +46 -0
- package/dist/types/shared/dashboard-authoring/calculations/tokens.d.ts +36 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +8 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +2 -1
- package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +0 -3
- package/dist/types/shared/dashboard-authoring/changes/calculation-change.d.ts +399 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +165 -360
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +23 -2
- package/dist/types/shared/dashboard-authoring/changes/domain-change.d.ts +143 -266
- package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +46 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
- package/dist/types/shared/dashboard-authoring/dashboard-variable-card.d.ts +2 -4
- package/dist/types/shared/dashboard-authoring/index.d.ts +7 -1
- package/dist/types/shared/dashboard-authoring/kpi-date-context.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +18 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/comparison.d.ts +8 -7
- package/dist/types/shared/dashboard-authoring/measure-calculations/dates.d.ts +11 -1
- package/dist/types/shared/dashboard-authoring/measure-calculations/index.d.ts +2 -2
- package/dist/types/shared/dashboard-authoring/measure-calculations/options.d.ts +4 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/read.d.ts +18 -1
- package/dist/types/shared/dashboard-authoring/measure-calculations/resolve.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/schemas.d.ts +46 -88
- package/dist/types/shared/dashboard-authoring/operations/calculated-field-operations.d.ts +158 -0
- package/dist/types/shared/dashboard-authoring/operations/card-operations.d.ts +71 -0
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +17 -6
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +21 -0
- package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +3 -0
- package/dist/types/shared/format-utils/comparison-detail.d.ts +34 -0
- package/dist/types/shared/format-utils/index.d.ts +1 -0
- package/dist/types/shared/format-utils/partial-period.d.ts +4 -2
- package/dist/types/shared/temporal/calendar-periods.d.ts +11 -0
- package/dist/types/shared/temporal/index.d.ts +2 -0
- package/dist/types/shared/temporal/temporal-text.d.ts +33 -0
- package/dist/types/shared/temporal/temporal.d.ts +27 -0
- package/dist/types/shared/temporal/zoned-wall-clock.d.ts +4 -3
- package/dist/types/shared/usage-events/details.d.ts +2 -2
- package/dist/types/shared/usage-events/envelope.d.ts +2 -2
- package/dist/usage-events/index.js +1 -1
- package/package.json +3 -2
- package/dist/chunks/dates-B-Urp5OD.js +0 -164
- package/dist/chunks/matrix-member-presentation-g0c_NpDW.js +0 -258
- package/dist/chunks/raw-temporal-value-DN_l-Tss.js +0 -454
- package/dist/chunks/selection-filter-compiler-DmAr7yqC.js +0 -131
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { am as
|
|
3
|
-
import { q as
|
|
4
|
-
import "./analytics-base-schemas-
|
|
1
|
+
import { jw as Vn, dE as Mn, cN as kn, bi as xn, bP as Pn, v as wn, cF as On, jx as Te, fx as dt, fA as _n, cl as An, jy as En, aM as Bn, iA as ut, iC as Rn, c6 as Ve, jz as ft, e8 as de, Z as qn, iE as jn, s as _, it as ue, u as Me, jA as Nn, iJ as zn, e0 as pt, e2 as mt, dN as Ln, e7 as Kn, e5 as Ge, e6 as Gn, h as Hn, dP as Un, d$ as Qn, dZ as $n, c9 as gt, bK as Zn, a8 as A, hj as yt, cR as Wn, ac as Jn, jB as fe, jC as bt, jD as Yn, w as Xn, jE as ke, jq as pe, jF as er, jG as xe, jH as tr, jI as nr, jJ as rr, jK as or, jL as ir, y as Pe, jM as ar, z as U, r as sr, m as lr, jN as L, jO as cr, jP as te, jQ as It, ij as we, T as dr, jR as ur, jS as fr, ib as Ct, jT as pr, jU as mr, o as gr, jV as yr, jW as ht, jX as br, jY as Ir, jZ as Cr, cm as vt, j_ as hr, j$ as vr, k0 as Ft, x as Oe, di as Fr, ad as Dr, q as Dt, hi as Sr, k1 as Tr, k2 as Vr, k3 as Mr, dh as kr, jn as xr, C as Pr, D as He, M as wr, k4 as Or, k5 as _r, dj as Ar, k6 as Er } from "./resolve-dashboard-input-context-Rtl1ffmE.js";
|
|
2
|
+
import { am as Br, a6 as Z, K as Rr, w as qr, ay as Ce, x as jr, a9 as ne, aA as St, V as Nr, b as zr, k as Lr, aE as Kr, aF as Gr } from "./validators-Baf3VIf5.js";
|
|
3
|
+
import { q as Tt } from "./matrix-operation-contract-DPBj69D8.js";
|
|
4
|
+
import "./analytics-base-schemas-DsUh5Q3C.js";
|
|
5
5
|
import "./pickers-DkqmtnTL.js";
|
|
6
|
-
import { canonicalizeSupportedCurrencyCode as
|
|
7
|
-
import { ZodError as
|
|
8
|
-
import { b as re, r as
|
|
9
|
-
import { aE as
|
|
6
|
+
import { canonicalizeSupportedCurrencyCode as Vt } from "../value-format-preferences/index.js";
|
|
7
|
+
import { ZodError as Hr } from "zod";
|
|
8
|
+
import { b as re, r as Ur, ba as Qr, i as $r, aT as Zr, ak as Ue, aP as Qe } from "./pivot-result-contract-expectations-BYqAmG9n.js";
|
|
9
|
+
import { aE as Mt, aF as kt, aG as be, a4 as Wr, aD as xt, C as he, aH as N, A as W, i as Pt, w as Jr, q as Yr, v as Xr, B as _e, aI as eo, am as to, I as wt, H as no, L as $e, Q as Ot, R as _t, K as At } from "./bookmark-state-n7AaNzR_.js";
|
|
10
10
|
import "./schema-C9NPiIru.js";
|
|
11
11
|
import "./index-CV_Kzou0.js";
|
|
12
|
-
import "./context-
|
|
13
|
-
import { a as
|
|
14
|
-
import { D as
|
|
15
|
-
import { isPdfTableCardType as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
|
|
12
|
+
import "./context-UCQ7sere.js";
|
|
13
|
+
import { a as ro, i as oo } from "./matrix-analytical-definition-CCp48UCw.js";
|
|
14
|
+
import { D as io } from "./report-runtime-context-c77_KF9v.js";
|
|
15
|
+
import { isPdfTableCardType as ao, PDF_CAPACITY as so } from "../pdf-export-policy/index.js";
|
|
16
|
+
import { a4 as Ze } from "./raw-temporal-value-Dg_MTFF7.js";
|
|
17
|
+
import { g as Et } from "./metric-comparison-B0FR-Q8I.js";
|
|
18
|
+
import { t as lo, c as co, n as uo } from "./selection-filter-compiler-DNijjI5y.js";
|
|
19
|
+
const fo = (e, t) => {
|
|
19
20
|
const n = {};
|
|
20
21
|
if (e === null || t === null)
|
|
21
22
|
return t;
|
|
@@ -33,8 +34,8 @@ const so = (e, t) => {
|
|
|
33
34
|
if (!ve(i, a))
|
|
34
35
|
if (Array.isArray(i) && Array.isArray(a))
|
|
35
36
|
n[o] = a;
|
|
36
|
-
else if (
|
|
37
|
-
const s =
|
|
37
|
+
else if (We(i) && We(a)) {
|
|
38
|
+
const s = fo(i, a);
|
|
38
39
|
Object.keys(s).length > 0 && (n[o] = s);
|
|
39
40
|
} else
|
|
40
41
|
n[o] = a;
|
|
@@ -49,7 +50,7 @@ const so = (e, t) => {
|
|
|
49
50
|
return n.length !== r.length ? !1 : n.every((o) => ve(e[o], t[o]));
|
|
50
51
|
}
|
|
51
52
|
return !1;
|
|
52
|
-
},
|
|
53
|
+
}, We = (e) => e !== null && typeof e == "object" && !Array.isArray(e), oe = (e) => {
|
|
53
54
|
if (e === null || typeof e != "object")
|
|
54
55
|
return e;
|
|
55
56
|
if (e instanceof Date)
|
|
@@ -62,29 +63,29 @@ const so = (e, t) => {
|
|
|
62
63
|
for (const n in e)
|
|
63
64
|
Object.prototype.hasOwnProperty.call(e, n) && (t[n] = oe(e[n]));
|
|
64
65
|
return t;
|
|
65
|
-
},
|
|
66
|
-
function
|
|
67
|
-
return typeof e == "string" &&
|
|
66
|
+
}, po = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
67
|
+
function mo(e) {
|
|
68
|
+
return typeof e == "string" && po.test(e);
|
|
68
69
|
}
|
|
69
|
-
function
|
|
70
|
-
if (!
|
|
70
|
+
function go(e) {
|
|
71
|
+
if (!mo(e))
|
|
71
72
|
throw TypeError("Invalid UUID");
|
|
72
73
|
let t;
|
|
73
74
|
const n = new Uint8Array(16);
|
|
74
75
|
return n[0] = (t = parseInt(e.slice(0, 8), 16)) >>> 24, n[1] = t >>> 16 & 255, n[2] = t >>> 8 & 255, n[3] = t & 255, n[4] = (t = parseInt(e.slice(9, 13), 16)) >>> 8, n[5] = t & 255, n[6] = (t = parseInt(e.slice(14, 18), 16)) >>> 8, n[7] = t & 255, n[8] = (t = parseInt(e.slice(19, 23), 16)) >>> 8, n[9] = t & 255, n[10] = (t = parseInt(e.slice(24, 36), 16)) / 1099511627776 & 255, n[11] = t / 4294967296 & 255, n[12] = t >>> 24 & 255, n[13] = t >>> 16 & 255, n[14] = t >>> 8 & 255, n[15] = t & 255, n;
|
|
75
76
|
}
|
|
76
|
-
function
|
|
77
|
+
function yo(e) {
|
|
77
78
|
e = unescape(encodeURIComponent(e));
|
|
78
79
|
const t = [];
|
|
79
80
|
for (let n = 0; n < e.length; ++n)
|
|
80
81
|
t.push(e.charCodeAt(n));
|
|
81
82
|
return t;
|
|
82
83
|
}
|
|
83
|
-
const
|
|
84
|
-
function
|
|
84
|
+
const bo = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", Io = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
|
|
85
|
+
function Co(e, t, n) {
|
|
85
86
|
function r(o, i, a, s) {
|
|
86
87
|
var l;
|
|
87
|
-
if (typeof o == "string" && (o =
|
|
88
|
+
if (typeof o == "string" && (o = yo(o)), typeof i == "string" && (i = go(i)), ((l = i) === null || l === void 0 ? void 0 : l.length) !== 16)
|
|
88
89
|
throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
|
|
89
90
|
let c = new Uint8Array(16 + o.length);
|
|
90
91
|
if (c.set(i), c.set(o, i.length), c = n(c), c[6] = c[6] & 15 | t, c[8] = c[8] & 63 | 128, a) {
|
|
@@ -93,15 +94,15 @@ function go(e, t, n) {
|
|
|
93
94
|
a[s + d] = c[d];
|
|
94
95
|
return a;
|
|
95
96
|
}
|
|
96
|
-
return
|
|
97
|
+
return Vn(c);
|
|
97
98
|
}
|
|
98
99
|
try {
|
|
99
100
|
r.name = e;
|
|
100
101
|
} catch {
|
|
101
102
|
}
|
|
102
|
-
return r.DNS =
|
|
103
|
+
return r.DNS = bo, r.URL = Io, r;
|
|
103
104
|
}
|
|
104
|
-
function
|
|
105
|
+
function ho(e, t, n, r) {
|
|
105
106
|
switch (e) {
|
|
106
107
|
case 0:
|
|
107
108
|
return t & n ^ ~t & r;
|
|
@@ -116,7 +117,7 @@ function yo(e, t, n, r) {
|
|
|
116
117
|
function Ie(e, t) {
|
|
117
118
|
return e << t | e >>> 32 - t;
|
|
118
119
|
}
|
|
119
|
-
function
|
|
120
|
+
function vo(e) {
|
|
120
121
|
const t = [1518500249, 1859775393, 2400959708, 3395469782], n = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
|
|
121
122
|
if (typeof e == "string") {
|
|
122
123
|
const a = unescape(encodeURIComponent(e));
|
|
@@ -141,15 +142,15 @@ function bo(e) {
|
|
|
141
142
|
s[m] = Ie(s[m - 3] ^ s[m - 8] ^ s[m - 14] ^ s[m - 16], 1);
|
|
142
143
|
let l = n[0], c = n[1], d = n[2], u = n[3], f = n[4];
|
|
143
144
|
for (let m = 0; m < 80; ++m) {
|
|
144
|
-
const y = Math.floor(m / 20), p = Ie(l, 5) +
|
|
145
|
+
const y = Math.floor(m / 20), p = Ie(l, 5) + ho(y, c, d, u) + f + t[y] + s[m] >>> 0;
|
|
145
146
|
f = u, u = d, d = Ie(c, 30) >>> 0, c = l, l = p;
|
|
146
147
|
}
|
|
147
148
|
n[0] = n[0] + l >>> 0, n[1] = n[1] + c >>> 0, n[2] = n[2] + d >>> 0, n[3] = n[3] + u >>> 0, n[4] = n[4] + f >>> 0;
|
|
148
149
|
}
|
|
149
150
|
return [n[0] >> 24 & 255, n[0] >> 16 & 255, n[0] >> 8 & 255, n[0] & 255, n[1] >> 24 & 255, n[1] >> 16 & 255, n[1] >> 8 & 255, n[1] & 255, n[2] >> 24 & 255, n[2] >> 16 & 255, n[2] >> 8 & 255, n[2] & 255, n[3] >> 24 & 255, n[3] >> 16 & 255, n[3] >> 8 & 255, n[3] & 255, n[4] >> 24 & 255, n[4] >> 16 & 255, n[4] >> 8 & 255, n[4] & 255];
|
|
150
151
|
}
|
|
151
|
-
const
|
|
152
|
-
function
|
|
152
|
+
const Fo = Co("v5", 80, vo), Je = /\[\[\s*param\.([A-Za-z0-9_.-]+)\s*\]\]/g, Ye = /\bparam\s*\(\s*(['"])([^'"]+)\1/g;
|
|
153
|
+
function Do(e) {
|
|
153
154
|
const t = [];
|
|
154
155
|
let n = 0;
|
|
155
156
|
for (; n < e.length; ) {
|
|
@@ -166,7 +167,7 @@ function ho(e) {
|
|
|
166
167
|
}
|
|
167
168
|
return t;
|
|
168
169
|
}
|
|
169
|
-
function
|
|
170
|
+
function Bt(e) {
|
|
170
171
|
var r, o;
|
|
171
172
|
if (!e)
|
|
172
173
|
return [];
|
|
@@ -176,7 +177,7 @@ function At(e) {
|
|
|
176
177
|
const i = (r = n[1]) == null ? void 0 : r.trim();
|
|
177
178
|
i && t.add(i);
|
|
178
179
|
}
|
|
179
|
-
for (const i of
|
|
180
|
+
for (const i of Do(e))
|
|
180
181
|
for (Ye.lastIndex = 0; (n = Ye.exec(i)) !== null; ) {
|
|
181
182
|
const a = (o = n[2]) == null ? void 0 : o.trim();
|
|
182
183
|
a && t.add(a);
|
|
@@ -187,27 +188,27 @@ function Ae(e) {
|
|
|
187
188
|
const t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map();
|
|
188
189
|
for (const r of e.controlBindings || [])
|
|
189
190
|
t.add(r.controlId), r.target === "sql_param" && n.set(r.paramId, r.controlId);
|
|
190
|
-
for (const r of
|
|
191
|
+
for (const r of Bt(e.sql))
|
|
191
192
|
t.add(n.get(r) ?? r);
|
|
192
193
|
return Array.from(t);
|
|
193
194
|
}
|
|
194
|
-
function
|
|
195
|
+
function So(e) {
|
|
195
196
|
const t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
|
|
196
197
|
for (const r of e.controlBindings || [])
|
|
197
198
|
r.target === "sql_param" && n.set(r.paramId, r.controlId);
|
|
198
|
-
for (const r of
|
|
199
|
+
for (const r of Bt(e.sql))
|
|
199
200
|
t.set(r, {
|
|
200
201
|
paramId: r,
|
|
201
202
|
controlId: n.get(r) ?? r
|
|
202
203
|
});
|
|
203
204
|
return Array.from(t.values());
|
|
204
205
|
}
|
|
205
|
-
function
|
|
206
|
+
function To(e, t) {
|
|
206
207
|
var o;
|
|
207
208
|
const n = (o = e.controlBindings) == null ? void 0 : o.map((i) => ({
|
|
208
209
|
...i,
|
|
209
210
|
controlId: t.get(i.controlId) ?? i.controlId
|
|
210
|
-
})), r =
|
|
211
|
+
})), r = So(e).flatMap(
|
|
211
212
|
({ paramId: i, controlId: a }) => {
|
|
212
213
|
var l;
|
|
213
214
|
const s = t.get(a);
|
|
@@ -218,7 +219,7 @@ function vo(e, t) {
|
|
|
218
219
|
);
|
|
219
220
|
return r.length ? [...n ?? [], ...r] : n;
|
|
220
221
|
}
|
|
221
|
-
function
|
|
222
|
+
function Rt(e, t) {
|
|
222
223
|
var a, s;
|
|
223
224
|
const n = be(e) ?? e, r = n.source === "dashboardInputAlias" ? (a = t.inputAliases) == null ? void 0 : a[n.variableName] : void 0, o = n.source === "dashboardInputAlias" && r ? be(r) ?? be({ ...r, export: n.export ?? "label" }) ?? n : n, i = n.source === "dashboardInputAlias" && o !== n ? { ...o, export: n.export ?? "label" } : o;
|
|
224
225
|
return i.source === "input" ? {
|
|
@@ -226,7 +227,7 @@ function Bt(e, t) {
|
|
|
226
227
|
inputId: ((s = t.inputIds) == null ? void 0 : s[i.inputId]) ?? i.inputId
|
|
227
228
|
} : i;
|
|
228
229
|
}
|
|
229
|
-
function
|
|
230
|
+
function Vo(e, t) {
|
|
230
231
|
var o;
|
|
231
232
|
const n = {};
|
|
232
233
|
for (const i of [
|
|
@@ -243,13 +244,13 @@ function Fo(e, t) {
|
|
|
243
244
|
}
|
|
244
245
|
const r = { ...t.inputAliases };
|
|
245
246
|
for (const [i, a] of Object.entries((e == null ? void 0 : e.inputAliases) ?? {}))
|
|
246
|
-
r[i] =
|
|
247
|
+
r[i] = Rt(a, t);
|
|
247
248
|
return Object.keys(r).length && (n.inputAliases = r), n;
|
|
248
249
|
}
|
|
249
|
-
function
|
|
250
|
+
function ts(e, t) {
|
|
250
251
|
var o, i, a, s;
|
|
251
|
-
const n = oe(
|
|
252
|
-
n.controlBindings =
|
|
252
|
+
const n = oe(Mt(e));
|
|
253
|
+
n.controlBindings = To(
|
|
253
254
|
e,
|
|
254
255
|
new Map(Object.entries(t.controlIds ?? {}))
|
|
255
256
|
);
|
|
@@ -258,7 +259,7 @@ function Za(e, t) {
|
|
|
258
259
|
for (const l of n.inlineFilters ?? [])
|
|
259
260
|
l.id = ((i = t.filterIds) == null ? void 0 : i[l.id]) ?? l.id;
|
|
260
261
|
const r = (l) => {
|
|
261
|
-
var d
|
|
262
|
+
var d;
|
|
262
263
|
if (!l || typeof l != "object") return;
|
|
263
264
|
if (Array.isArray(l)) {
|
|
264
265
|
l.forEach(r);
|
|
@@ -267,83 +268,83 @@ function Za(e, t) {
|
|
|
267
268
|
const c = l;
|
|
268
269
|
if (Object.assign(
|
|
269
270
|
c,
|
|
270
|
-
|
|
271
|
+
kt(
|
|
271
272
|
c,
|
|
272
|
-
(
|
|
273
|
+
(u) => u && typeof u == "object" ? Rt(u, t) : u
|
|
273
274
|
)
|
|
274
275
|
), typeof c.entityId == "string") {
|
|
275
|
-
const
|
|
276
|
-
c.fieldScope === "card" && (c.entityId = ((d = t.cardIds) == null ? void 0 : d[
|
|
276
|
+
const u = c.entityId;
|
|
277
|
+
c.fieldScope === "card" && (c.entityId = ((d = t.cardIds) == null ? void 0 : d[u]) ?? u);
|
|
277
278
|
}
|
|
278
|
-
for (const [
|
|
279
|
-
|
|
279
|
+
for (const [u, f] of Object.entries(c))
|
|
280
|
+
u !== "linkedReferenceOverrides" && r(f);
|
|
280
281
|
};
|
|
281
|
-
r(n), n.clickToFilter && (n.clickToFilter =
|
|
282
|
+
r(n), n.clickToFilter && (n.clickToFilter = Mn(n.clickToFilter, t));
|
|
282
283
|
for (const l of Object.values(
|
|
283
284
|
((a = n.customCardPreferences) == null ? void 0 : a.dataInputCardIds) ?? {}
|
|
284
285
|
))
|
|
285
286
|
l.cardId = ((s = t.cardIds) == null ? void 0 : s[l.cardId]) ?? l.cardId;
|
|
286
287
|
return n;
|
|
287
288
|
}
|
|
288
|
-
const
|
|
289
|
-
function
|
|
289
|
+
const Mo = "9677efdd-86ec-4afb-b9bb-5ead8b5442af";
|
|
290
|
+
function ko(e) {
|
|
290
291
|
let t = 0;
|
|
291
|
-
return () =>
|
|
292
|
+
return () => Fo(`${e}#${t++}`, Mo);
|
|
292
293
|
}
|
|
293
|
-
const
|
|
294
|
+
const xo = [
|
|
294
295
|
{ code: "matrix_definition_incomplete", label: "Matrix definition" }
|
|
295
|
-
],
|
|
296
|
+
], Po = [
|
|
296
297
|
{ code: "connection_type_unresolved", label: "Connection type" }
|
|
297
298
|
], G = (e) => !Array.isArray(e) || e.length === 0;
|
|
298
|
-
function
|
|
299
|
+
function wo(e) {
|
|
299
300
|
var i;
|
|
300
301
|
const t = e.config ?? {};
|
|
301
302
|
if ((i = e.sql) != null && i.trim() || !G(t.pivotByColumns)) return "matrixTable";
|
|
302
303
|
const n = !G(t.groupByColumns), r = !G(t.metricColumns), o = e.type === "pivotTable" && (n || r) && G(t.rowAggregates) && G(t.columnAggregates);
|
|
303
304
|
return n && !r || o ? "table" : "matrixTable";
|
|
304
305
|
}
|
|
305
|
-
function
|
|
306
|
+
function Oo(e) {
|
|
306
307
|
var o;
|
|
307
308
|
const t = e.dataSource;
|
|
308
309
|
if (!t || (o = t.connectionType) != null && o.trim()) return e;
|
|
309
|
-
const n =
|
|
310
|
+
const n = Br(On(t.selectedEntities));
|
|
310
311
|
if (!n) return e;
|
|
311
312
|
const r = Array.isArray(t.selectedEntities) ? t.selectedEntities.map((i) => i && typeof i == "object" && "connectionType" in i && !String(i.connectionType ?? "").trim() ? { ...i, connectionType: n } : i) : t.selectedEntities;
|
|
312
313
|
return { ...e, dataSource: { ...t, connectionType: n, selectedEntities: r } };
|
|
313
314
|
}
|
|
314
|
-
function
|
|
315
|
+
function qt(e) {
|
|
315
316
|
var a, s;
|
|
316
317
|
const t = e;
|
|
317
|
-
if (!
|
|
318
|
-
const n =
|
|
318
|
+
if (!kn(t)) return { status: "not_legacy", card: e };
|
|
319
|
+
const n = Oo(t), r = wo(t) === "table" ? xn(n, "table") : Pn(n, "matrixTable", { createId: ko(t.id) });
|
|
319
320
|
if (r.status !== "changed") throw new Error(`Card ${t.id} could not leave ${t.type}.`);
|
|
320
|
-
const o = r.card.type === "matrixTable" &&
|
|
321
|
+
const o = r.card.type === "matrixTable" && wn(r.card).status !== "ready", i = !!n.dataSource && !((s = (a = n.dataSource) == null ? void 0 : a.connectionType) != null && s.trim());
|
|
321
322
|
return {
|
|
322
323
|
status: "routed",
|
|
323
324
|
card: r.card,
|
|
324
325
|
gaps: [
|
|
325
326
|
...r.gaps,
|
|
326
|
-
...o ?
|
|
327
|
-
...i ?
|
|
327
|
+
...o ? xo : [],
|
|
328
|
+
...i ? Po : []
|
|
328
329
|
]
|
|
329
330
|
};
|
|
330
331
|
}
|
|
331
|
-
function
|
|
332
|
+
function ns(e) {
|
|
332
333
|
if (!e.cards) return e;
|
|
333
|
-
const t = e.cards.map((n) =>
|
|
334
|
+
const t = e.cards.map((n) => qt(n).card);
|
|
334
335
|
return t.every((n, r) => n === e.cards[r]) ? e : { ...e, cards: t };
|
|
335
336
|
}
|
|
336
|
-
function
|
|
337
|
+
function _o(e) {
|
|
337
338
|
const t = [];
|
|
338
|
-
return { dashboard:
|
|
339
|
-
const i =
|
|
339
|
+
return { dashboard: Wr(e, (r, o) => {
|
|
340
|
+
const i = qt(r);
|
|
340
341
|
return i.status === "routed" && i.gaps.length && t.push({ location: o, gaps: i.gaps }), i.card;
|
|
341
342
|
}), routedWithGaps: t };
|
|
342
343
|
}
|
|
343
|
-
function
|
|
344
|
+
function Ao(e, t) {
|
|
344
345
|
return e.name === t.name && e.qualifiedEntityName === t.qualifiedEntityName;
|
|
345
346
|
}
|
|
346
|
-
function
|
|
347
|
+
function Eo(e, t, n) {
|
|
347
348
|
var o, i;
|
|
348
349
|
if (n.sortPolicy === "dropUnrelatedSorts") {
|
|
349
350
|
const a = new Set(
|
|
@@ -362,7 +363,7 @@ function wo(e, t, n) {
|
|
|
362
363
|
...e,
|
|
363
364
|
groupByColumns: [t],
|
|
364
365
|
sortByColumns: (i = e.sortByColumns) == null ? void 0 : i.map(
|
|
365
|
-
(a) => r &&
|
|
366
|
+
(a) => r && Ao(a, r) ? {
|
|
366
367
|
...t,
|
|
367
368
|
role: "sortby",
|
|
368
369
|
direction: a.direction
|
|
@@ -391,17 +392,17 @@ function ae(e) {
|
|
|
391
392
|
} = e;
|
|
392
393
|
return Q(o);
|
|
393
394
|
}
|
|
394
|
-
function
|
|
395
|
+
function jt(e, t) {
|
|
395
396
|
return e == null ? void 0 : e.map(
|
|
396
397
|
(n) => dt(Q(ie([n])[0]), n.format, t)
|
|
397
398
|
);
|
|
398
399
|
}
|
|
399
|
-
function
|
|
400
|
+
function Bo(e, t) {
|
|
400
401
|
return e == null ? void 0 : e.map(
|
|
401
|
-
(n) =>
|
|
402
|
+
(n) => _n(Q(ie([n])[0]), n.format, t)
|
|
402
403
|
);
|
|
403
404
|
}
|
|
404
|
-
function
|
|
405
|
+
function Ro(e, t) {
|
|
405
406
|
const { dateFormat: n, customFormat: r, ...o } = ae(e.field);
|
|
406
407
|
return {
|
|
407
408
|
...e,
|
|
@@ -412,7 +413,7 @@ function me(e, t = !1) {
|
|
|
412
413
|
if (e)
|
|
413
414
|
return {
|
|
414
415
|
...e,
|
|
415
|
-
conditions: e.conditions.map((n) =>
|
|
416
|
+
conditions: e.conditions.map((n) => Ro(n, t)),
|
|
416
417
|
groups: e.groups.map((n) => me(n, t))
|
|
417
418
|
};
|
|
418
419
|
}
|
|
@@ -429,71 +430,71 @@ function Q(e) {
|
|
|
429
430
|
filters: me(t.parameters.filters)
|
|
430
431
|
}), t;
|
|
431
432
|
}
|
|
432
|
-
function
|
|
433
|
-
return t.cardType === "detailTable" || !
|
|
434
|
-
const r =
|
|
433
|
+
function qo(e, t) {
|
|
434
|
+
return t.cardType === "detailTable" || !An(t.cardType) || t.temporalResultOwner !== "config" ? jt(e, "grouped") : e == null ? void 0 : e.map((n) => {
|
|
435
|
+
const r = En(n), o = ae(r ?? n);
|
|
435
436
|
if (!r)
|
|
436
437
|
return o;
|
|
437
438
|
const { dateFormat: i, customFormat: a, ...s } = o;
|
|
438
439
|
return s;
|
|
439
440
|
});
|
|
440
441
|
}
|
|
441
|
-
function
|
|
442
|
+
function Nt(e, t) {
|
|
442
443
|
if (!e)
|
|
443
444
|
return;
|
|
444
445
|
const n = { type: t.cardType, config: e };
|
|
445
|
-
return Te(n) ?
|
|
446
|
+
return Te(n) ? jo(n, t) : e.matrix === void 0 ? {} : { matrix: e.matrix };
|
|
446
447
|
}
|
|
447
|
-
function
|
|
448
|
+
function jo(e, t = {}) {
|
|
448
449
|
var i, a, s;
|
|
449
450
|
const n = e.config;
|
|
450
451
|
if (!n) return;
|
|
451
452
|
const r = { ...t, cardType: e.type };
|
|
452
453
|
return {
|
|
453
454
|
...n,
|
|
454
|
-
groupByColumns:
|
|
455
|
+
groupByColumns: qo(n.groupByColumns, r),
|
|
455
456
|
metricColumns: (i = ie(n.metricColumns)) == null ? void 0 : i.map(
|
|
456
457
|
Q
|
|
457
458
|
),
|
|
458
|
-
pivotByColumns:
|
|
459
|
+
pivotByColumns: jt(n.pivotByColumns, "grouped"),
|
|
459
460
|
sortByColumns: (a = ie(n.sortByColumns)) == null ? void 0 : a.map(
|
|
460
461
|
Q
|
|
461
462
|
),
|
|
462
|
-
detailColumns:
|
|
463
|
+
detailColumns: Bo(n.detailColumns, (s = r.dataSource) == null ? void 0 : s.connectionType),
|
|
463
464
|
filters: me(n.filters)
|
|
464
465
|
};
|
|
465
466
|
}
|
|
466
467
|
function se(e) {
|
|
467
468
|
return (e == null ? void 0 : e.type) === "number" || (e == null ? void 0 : e.type) === "currency";
|
|
468
469
|
}
|
|
469
|
-
function
|
|
470
|
+
function No(e) {
|
|
470
471
|
return (e == null ? void 0 : e.type) === "number";
|
|
471
472
|
}
|
|
472
|
-
function
|
|
473
|
+
function zo(e) {
|
|
473
474
|
var n;
|
|
474
|
-
if (!
|
|
475
|
+
if (!No(e))
|
|
475
476
|
return !1;
|
|
476
477
|
const t = (n = e == null ? void 0 : e.numberFormat) == null ? void 0 : n.style;
|
|
477
478
|
return t === void 0 || t === "decimal" || t === "currency";
|
|
478
479
|
}
|
|
479
|
-
function
|
|
480
|
+
function Lo(e, t) {
|
|
480
481
|
const n = t == null ? void 0 : t.type;
|
|
481
482
|
if (n && n !== "none" && n !== "number")
|
|
482
483
|
return { currencyBindable: !1 };
|
|
483
|
-
const r = n === "number" ? t != null && t.numberFormat ?
|
|
484
|
+
const r = n === "number" ? t != null && t.numberFormat ? Rn(t.numberFormat, {
|
|
484
485
|
preserveOmittedProperties: !0
|
|
485
486
|
}) : { type: "number" } : void 0, o = re(e.format, {
|
|
486
487
|
preserveOmittedProperties: !0
|
|
487
|
-
}), i =
|
|
488
|
+
}), i = Z(e.dataType) === "number" ? { type: "number" } : void 0, s = (t == null ? void 0 : t.inheritMetricFormat) === !1 || !!(t != null && t.numberFormat) && (t == null ? void 0 : t.inheritMetricFormat) !== !0 ? r : o || i || r;
|
|
488
489
|
return {
|
|
489
490
|
authoredFormat: s,
|
|
490
491
|
currencyBindable: se(s)
|
|
491
492
|
};
|
|
492
493
|
}
|
|
493
|
-
function
|
|
494
|
+
function Ko(e, t) {
|
|
494
495
|
const n = re(t.format, {
|
|
495
496
|
preserveOmittedProperties: !0
|
|
496
|
-
}), r =
|
|
497
|
+
}), r = Z(t.dataType) === "number" ? { type: "number" } : void 0, o = n || r;
|
|
497
498
|
return {
|
|
498
499
|
authoredFormat: o,
|
|
499
500
|
source: n ? "semantic" : r ? "inferred" : void 0,
|
|
@@ -502,13 +503,13 @@ function No(e, t) {
|
|
|
502
503
|
}
|
|
503
504
|
function Fe(e, t = {}) {
|
|
504
505
|
var l, c, d;
|
|
505
|
-
const n = t.column ?? ((l =
|
|
506
|
+
const n = t.column ?? ((l = Bn(e)) == null ? void 0 : l.value);
|
|
506
507
|
if ((n == null ? void 0 : n.kind) === "sqlKpiValue") {
|
|
507
508
|
const u = t.resultColumnKey ? {
|
|
508
509
|
kind: "column",
|
|
509
510
|
columnKey: t.resultColumnKey
|
|
510
511
|
} : void 0, f = re(
|
|
511
|
-
|
|
512
|
+
Ur({ card: e, column: { kind: "sqlKpiValue" }, surface: "kpiValue" }).format,
|
|
512
513
|
{ preserveOmittedProperties: !0 }
|
|
513
514
|
);
|
|
514
515
|
return {
|
|
@@ -523,7 +524,7 @@ function Fe(e, t = {}) {
|
|
|
523
524
|
metricId: r.id
|
|
524
525
|
} : void 0, i = re(r == null ? void 0 : r.format, {
|
|
525
526
|
preserveOmittedProperties: !0
|
|
526
|
-
}), a =
|
|
527
|
+
}), a = Z(r == null ? void 0 : r.dataType) === "number" ? { type: "number" } : void 0, s = i || a;
|
|
527
528
|
return {
|
|
528
529
|
target: o,
|
|
529
530
|
authoredFormat: s,
|
|
@@ -531,46 +532,46 @@ function Fe(e, t = {}) {
|
|
|
531
532
|
currencyBindable: ut(e.type) && !!o && se(s)
|
|
532
533
|
};
|
|
533
534
|
}
|
|
534
|
-
function
|
|
535
|
+
function zt(e, t, n) {
|
|
535
536
|
var o;
|
|
536
537
|
const r = n(e, t);
|
|
537
538
|
return ((o = e.derivedField) == null ? void 0 : o.format) ?? (r == null ? void 0 : r.format) ?? (r == null ? void 0 : r.resolvedField.format);
|
|
538
539
|
}
|
|
539
|
-
function
|
|
540
|
-
return e.kind === "calculated" ? e.definition.format :
|
|
540
|
+
function Lt(e, t, n) {
|
|
541
|
+
return e.kind === "calculated" ? e.definition.format : zt(e.field, t, n);
|
|
541
542
|
}
|
|
542
|
-
function
|
|
543
|
+
function rs(e, t) {
|
|
543
544
|
const n = ft(t), r = (o, i) => Object.fromEntries(o.flatMap((a) => {
|
|
544
545
|
const s = i(a);
|
|
545
546
|
return s ? [[a.id, s]] : [];
|
|
546
547
|
}));
|
|
547
548
|
return {
|
|
548
|
-
measureFormats: r(e.measures, (o) =>
|
|
549
|
-
levelFormats: r([...e.rows, ...e.columns], (o) =>
|
|
549
|
+
measureFormats: r(e.measures, (o) => Lt(o, e.source, n)),
|
|
550
|
+
levelFormats: r([...e.rows, ...e.columns], (o) => zt(o.field, e.source, n))
|
|
550
551
|
};
|
|
551
552
|
}
|
|
552
|
-
function
|
|
553
|
+
function Kt(e, t = []) {
|
|
553
554
|
const n = Ve(e);
|
|
554
555
|
if (n.status !== "ready") return [];
|
|
555
556
|
const { spec: r, presentation: o } = n.config, i = ft(t);
|
|
556
557
|
return r.measures.map((a) => {
|
|
557
558
|
var m;
|
|
558
|
-
const s = a.kind === "aggregate" ? i(a.field, r.source) : void 0, l =
|
|
559
|
-
return { measureId: a.id, label:
|
|
559
|
+
const s = a.kind === "aggregate" ? i(a.field, r.source) : void 0, l = Qr(o.measureFormats[a.id], Lt(a, r.source, i)), c = a.kind === "calculated" ? a.definition.dataType : ["MIN", "MAX"].includes(a.aggregate) ? ((m = a.field.derivedField) == null ? void 0 : m.dataType) ?? (s == null ? void 0 : s.resolvedField.dataType) ?? a.field.dataType : "number", d = Z(c) === "number", u = a.kind === "calculated" || !!(s || a.field.derivedField || a.field.name === "*"), f = l && $r(l) ? l : !l && d && u ? { type: "number" } : void 0;
|
|
560
|
+
return { measureId: a.id, label: Zr(a, o), canonical: f };
|
|
560
561
|
});
|
|
561
562
|
}
|
|
562
|
-
function
|
|
563
|
+
function Go(e) {
|
|
563
564
|
var t, n;
|
|
564
565
|
return e.type === "detailTable" ? ((t = e.config) == null ? void 0 : t.detailColumns) || [] : ((n = e.config) == null ? void 0 : n.metricColumns) || [];
|
|
565
566
|
}
|
|
566
|
-
function
|
|
567
|
+
function Gt(e) {
|
|
567
568
|
return new Set(
|
|
568
|
-
|
|
569
|
+
xt(e).flatMap(
|
|
569
570
|
(t) => (t.controlBindings || []).filter(de).map((n) => n.controlId)
|
|
570
571
|
)
|
|
571
572
|
);
|
|
572
573
|
}
|
|
573
|
-
function
|
|
574
|
+
function Ho(e, t) {
|
|
574
575
|
const n = [
|
|
575
576
|
t.id,
|
|
576
577
|
t.alias,
|
|
@@ -598,13 +599,13 @@ function Xe(e) {
|
|
|
598
599
|
).values()
|
|
599
600
|
];
|
|
600
601
|
}
|
|
601
|
-
function
|
|
602
|
+
function Uo(e, t = [], n) {
|
|
602
603
|
var S;
|
|
603
|
-
const r = !!((S = e.sql) != null && S.trim()), o = ut(e.type), i = r && o && e.type !== "kpi" && e.type !== "matrixTable", a =
|
|
604
|
+
const r = !!((S = e.sql) != null && S.trim()), o = ut(e.type), i = r && o && e.type !== "kpi" && e.type !== "matrixTable", a = Go(e), s = qn(e), l = !r && e.type === "kpi" ? a.map(
|
|
604
605
|
(g) => Fe(e, {
|
|
605
606
|
column: { kind: "field", fieldId: g.id }
|
|
606
607
|
})
|
|
607
|
-
) : [], c = !r && e.type === "matrixTable" ?
|
|
608
|
+
) : [], c = !r && e.type === "matrixTable" ? Kt(e, n) : [], d = (r ? [] : a).map(
|
|
608
609
|
(g) => ({
|
|
609
610
|
kind: "metric",
|
|
610
611
|
metricId: g.id
|
|
@@ -625,10 +626,10 @@ function Lo(e, t = [], n) {
|
|
|
625
626
|
), m = e.type === "matrixTable" ? [] : e.type === "kpi" ? l.filter((g) => g.currencyBindable).flatMap(
|
|
626
627
|
(g) => g.target ? [g.target] : []
|
|
627
628
|
) : (r || !o ? [] : a).filter(
|
|
628
|
-
(g) => (
|
|
629
|
+
(g) => (jn(e.type) ? Lo(
|
|
629
630
|
g,
|
|
630
|
-
|
|
631
|
-
) :
|
|
631
|
+
Ho(s, g)
|
|
632
|
+
) : Ko(e, g)).currencyBindable
|
|
632
633
|
).map(
|
|
633
634
|
(g) => ({
|
|
634
635
|
kind: "metric",
|
|
@@ -640,7 +641,7 @@ function Lo(e, t = [], n) {
|
|
|
640
641
|
columnKey: g
|
|
641
642
|
})
|
|
642
643
|
), b = (i ? y : []).filter(
|
|
643
|
-
(g) =>
|
|
644
|
+
(g) => zo(
|
|
644
645
|
s[g]
|
|
645
646
|
)
|
|
646
647
|
).map(
|
|
@@ -653,9 +654,9 @@ function Lo(e, t = [], n) {
|
|
|
653
654
|
kind: "column",
|
|
654
655
|
columnKey: g
|
|
655
656
|
})
|
|
656
|
-
),
|
|
657
|
+
), C = r && e.type === "kpi" ? Fe(e, {
|
|
657
658
|
resultColumnKey: y[0]
|
|
658
|
-
}) : void 0,
|
|
659
|
+
}) : void 0, h = o && (C != null && C.currencyBindable) ? I : [];
|
|
659
660
|
return {
|
|
660
661
|
knownTargets: Xe([
|
|
661
662
|
...e.type === "matrixTable" ? u : d,
|
|
@@ -666,24 +667,24 @@ function Lo(e, t = [], n) {
|
|
|
666
667
|
...m,
|
|
667
668
|
...f,
|
|
668
669
|
...b,
|
|
669
|
-
...
|
|
670
|
+
...h
|
|
670
671
|
])
|
|
671
672
|
};
|
|
672
673
|
}
|
|
673
|
-
function
|
|
674
|
+
function os(e, t) {
|
|
674
675
|
const n = Fe(e, {
|
|
675
676
|
resultColumnKey: t
|
|
676
677
|
});
|
|
677
678
|
return n.currencyBindable ? n.target : void 0;
|
|
678
679
|
}
|
|
679
|
-
function
|
|
680
|
+
function is(e) {
|
|
680
681
|
var t;
|
|
681
682
|
return (t = e.card.sql) != null && t.trim() ? { kind: "column", columnKey: e.columnKey } : e.metricId ? { kind: "metric", metricId: e.metricId } : void 0;
|
|
682
683
|
}
|
|
683
684
|
function z(e) {
|
|
684
685
|
return e.kind === "metric" ? `metric:${e.metricId}` : e.kind === "column" ? `column:${e.columnKey}` : `matrix_measure:${e.measureId}`;
|
|
685
686
|
}
|
|
686
|
-
function
|
|
687
|
+
function Qo(e) {
|
|
687
688
|
if (!e || typeof e != "object" || Array.isArray(e))
|
|
688
689
|
return;
|
|
689
690
|
const t = e;
|
|
@@ -695,10 +696,10 @@ function Ko(e) {
|
|
|
695
696
|
return { kind: "matrix_measure", measureId: t.measureId };
|
|
696
697
|
}
|
|
697
698
|
function et(e) {
|
|
698
|
-
const t =
|
|
699
|
+
const t = Vt(e);
|
|
699
700
|
return typeof e == "string" && e === t ? t : void 0;
|
|
700
701
|
}
|
|
701
|
-
function
|
|
702
|
+
function Ht(e) {
|
|
702
703
|
if (e.type !== "enum" || e.source.kind !== "manual")
|
|
703
704
|
return { diagnostic: "invalid_control_type" };
|
|
704
705
|
const t = e.source.options.map(
|
|
@@ -716,11 +717,11 @@ function Kt(e) {
|
|
|
716
717
|
currencies: t
|
|
717
718
|
};
|
|
718
719
|
}
|
|
719
|
-
function
|
|
720
|
-
return "control" in
|
|
720
|
+
function as(e) {
|
|
721
|
+
return "control" in Ht(e);
|
|
721
722
|
}
|
|
722
|
-
function
|
|
723
|
-
const t =
|
|
723
|
+
function Ut(e) {
|
|
724
|
+
const t = Gt(e.dashboard);
|
|
724
725
|
if (t.size === 0)
|
|
725
726
|
return {
|
|
726
727
|
definitions: e.definitions || [],
|
|
@@ -742,8 +743,8 @@ function Gt(e) {
|
|
|
742
743
|
)
|
|
743
744
|
};
|
|
744
745
|
}
|
|
745
|
-
function
|
|
746
|
-
return
|
|
746
|
+
function ss(e) {
|
|
747
|
+
return Ut({
|
|
747
748
|
...e,
|
|
748
749
|
referencedControlIds: new Set(
|
|
749
750
|
Ae({
|
|
@@ -753,9 +754,9 @@ function ns(e) {
|
|
|
753
754
|
)
|
|
754
755
|
});
|
|
755
756
|
}
|
|
756
|
-
function
|
|
757
|
+
function ls(e) {
|
|
757
758
|
var t;
|
|
758
|
-
return
|
|
759
|
+
return Ut({
|
|
759
760
|
...e,
|
|
760
761
|
referencedControlIds: new Set(
|
|
761
762
|
Ae({
|
|
@@ -765,7 +766,7 @@ function rs(e) {
|
|
|
765
766
|
)
|
|
766
767
|
});
|
|
767
768
|
}
|
|
768
|
-
function
|
|
769
|
+
function Qt(e) {
|
|
769
770
|
return {
|
|
770
771
|
knownKeys: new Set(
|
|
771
772
|
e.knownTargets.map(z)
|
|
@@ -778,13 +779,13 @@ function Ht(e) {
|
|
|
778
779
|
)
|
|
779
780
|
};
|
|
780
781
|
}
|
|
781
|
-
function
|
|
782
|
+
function $t(e, t) {
|
|
782
783
|
if (!e || typeof e != "object" || e.target !== "presentation_currency")
|
|
783
784
|
return {};
|
|
784
785
|
const n = e, r = typeof n.controlId == "string" && n.controlId.trim() ? n.controlId : void 0;
|
|
785
786
|
if (!r)
|
|
786
787
|
return { diagnostic: { code: "invalid_binding_shape" } };
|
|
787
|
-
const o =
|
|
788
|
+
const o = Qo(
|
|
788
789
|
n.presentationTarget
|
|
789
790
|
);
|
|
790
791
|
if (!o)
|
|
@@ -805,7 +806,7 @@ function Ut(e, t) {
|
|
|
805
806
|
return {
|
|
806
807
|
diagnostic: { code: "missing_control", controlId: r }
|
|
807
808
|
};
|
|
808
|
-
const s =
|
|
809
|
+
const s = Ht(a);
|
|
809
810
|
return "diagnostic" in s ? {
|
|
810
811
|
diagnostic: { code: s.diagnostic, controlId: r }
|
|
811
812
|
} : {
|
|
@@ -817,18 +818,18 @@ function Ut(e, t) {
|
|
|
817
818
|
}
|
|
818
819
|
};
|
|
819
820
|
}
|
|
820
|
-
function
|
|
821
|
-
const t =
|
|
821
|
+
function cs(e) {
|
|
822
|
+
const t = Qt(e);
|
|
822
823
|
return (e.bindings || []).flatMap((n) => {
|
|
823
|
-
const r =
|
|
824
|
+
const r = $t(n, t);
|
|
824
825
|
return "diagnostic" in r ? [r.diagnostic] : [];
|
|
825
826
|
});
|
|
826
827
|
}
|
|
827
|
-
function
|
|
828
|
+
function $o(e) {
|
|
828
829
|
var o;
|
|
829
|
-
const t = [], n = z(e.target), r =
|
|
830
|
+
const t = [], n = z(e.target), r = Qt(e);
|
|
830
831
|
for (const i of e.bindings || []) {
|
|
831
|
-
const a =
|
|
832
|
+
const a = $t(i, r);
|
|
832
833
|
if ("diagnostic" in a) {
|
|
833
834
|
t.push(a.diagnostic);
|
|
834
835
|
continue;
|
|
@@ -837,7 +838,7 @@ function Go(e) {
|
|
|
837
838
|
if (!s || z(
|
|
838
839
|
s.presentationTarget
|
|
839
840
|
) !== n) continue;
|
|
840
|
-
const c =
|
|
841
|
+
const c = Vt(
|
|
841
842
|
(o = e.values) == null ? void 0 : o[s.control.id]
|
|
842
843
|
);
|
|
843
844
|
if (!(!c || !s.currencies.includes(c)))
|
|
@@ -845,10 +846,10 @@ function Go(e) {
|
|
|
845
846
|
}
|
|
846
847
|
return { diagnostics: t };
|
|
847
848
|
}
|
|
848
|
-
function
|
|
849
|
-
const o = { ...e, config: { ...e.config, matrix: t } }, i =
|
|
849
|
+
function Zo(e, t, n, r) {
|
|
850
|
+
const o = { ...e, config: { ...e.config, matrix: t } }, i = Uo(o, [], r), a = Kt(o, r), s = { ...t.presentation.measureFormats };
|
|
850
851
|
for (const l of a) {
|
|
851
|
-
const c = { kind: "matrix_measure", measureId: l.measureId }, { currency: d } =
|
|
852
|
+
const c = { kind: "matrix_measure", measureId: l.measureId }, { currency: d } = $o({
|
|
852
853
|
...n,
|
|
853
854
|
...i,
|
|
854
855
|
bindings: e.controlBindings,
|
|
@@ -860,7 +861,7 @@ function Ho(e, t, n, r) {
|
|
|
860
861
|
}
|
|
861
862
|
return { ...t.presentation, measureFormats: s };
|
|
862
863
|
}
|
|
863
|
-
function
|
|
864
|
+
function Wo(e, t) {
|
|
864
865
|
if (!e || typeof e != "object" || !("kind" in e))
|
|
865
866
|
return e;
|
|
866
867
|
switch (e.kind) {
|
|
@@ -905,12 +906,12 @@ function Uo(e, t) {
|
|
|
905
906
|
return e;
|
|
906
907
|
}
|
|
907
908
|
}
|
|
908
|
-
function
|
|
909
|
+
function Jo(e, t) {
|
|
909
910
|
return {
|
|
910
911
|
id: e.id,
|
|
911
912
|
scope: e.scope,
|
|
912
913
|
type: e.type,
|
|
913
|
-
source:
|
|
914
|
+
source: Wo(e.source, t),
|
|
914
915
|
initialValueStrategy: e.initialValueStrategy,
|
|
915
916
|
defaultValue: e.defaultValue,
|
|
916
917
|
requiredAtExecution: e.requiredAtExecution,
|
|
@@ -925,7 +926,7 @@ function Qo(e, t) {
|
|
|
925
926
|
} : {}
|
|
926
927
|
};
|
|
927
928
|
}
|
|
928
|
-
function
|
|
929
|
+
function Yo(e, t) {
|
|
929
930
|
return e.target === "sql_param" || e.target === "presentation_currency" ? e : e.target === "config_field_selector" && !(t != null && t.includePresentation) ? {
|
|
930
931
|
...e,
|
|
931
932
|
mapping: Object.fromEntries(
|
|
@@ -950,33 +951,33 @@ function $o(e, t) {
|
|
|
950
951
|
};
|
|
951
952
|
}
|
|
952
953
|
function tt(e = [], t) {
|
|
953
|
-
return [...e].map((n) =>
|
|
954
|
+
return [...e].map((n) => Jo(n, t)).sort(
|
|
954
955
|
(n, r) => n.id.localeCompare(r.id) || n.scope.localeCompare(r.scope) || n.type.localeCompare(r.type)
|
|
955
956
|
);
|
|
956
957
|
}
|
|
957
|
-
function
|
|
958
|
+
function Xo(e = [], t) {
|
|
958
959
|
return e.filter(
|
|
959
960
|
(n) => (t == null ? void 0 : t.includePresentation) || !de(n)
|
|
960
|
-
).map((n) =>
|
|
961
|
+
).map((n) => Yo(n, t)).sort(
|
|
961
962
|
(n, r) => _(n).localeCompare(_(r))
|
|
962
963
|
);
|
|
963
964
|
}
|
|
964
|
-
function
|
|
965
|
+
function ei(e, t) {
|
|
965
966
|
return e ? _({
|
|
966
967
|
controlDefinitions: tt(e.controlDefinitions, t),
|
|
967
968
|
cardControlDefinitions: tt(
|
|
968
969
|
e.cardControlDefinitions,
|
|
969
970
|
t
|
|
970
971
|
),
|
|
971
|
-
controlBindings:
|
|
972
|
+
controlBindings: Xo(e.controlBindings, t)
|
|
972
973
|
}) : "__none__";
|
|
973
974
|
}
|
|
974
|
-
const
|
|
975
|
-
function
|
|
975
|
+
const ti = ["table", "detailTable"], nt = (e) => ti.includes(e.type), ni = "calendar-context";
|
|
976
|
+
function ri(e) {
|
|
976
977
|
const { id: t, label: n, field: r, ...o } = e;
|
|
977
978
|
return {
|
|
978
979
|
...o,
|
|
979
|
-
field:
|
|
980
|
+
field: Ee(
|
|
980
981
|
r
|
|
981
982
|
)
|
|
982
983
|
};
|
|
@@ -987,11 +988,11 @@ function ge(e) {
|
|
|
987
988
|
const { id: t, conditions: n, groups: r, ...o } = e;
|
|
988
989
|
return {
|
|
989
990
|
...o,
|
|
990
|
-
conditions: n.map(
|
|
991
|
+
conditions: n.map(ri),
|
|
991
992
|
groups: r.map((i) => ge(i))
|
|
992
993
|
};
|
|
993
994
|
}
|
|
994
|
-
function
|
|
995
|
+
function Ee(e) {
|
|
995
996
|
var r, o;
|
|
996
997
|
const { label: t, ...n } = e;
|
|
997
998
|
return {
|
|
@@ -1000,7 +1001,7 @@ function Be(e) {
|
|
|
1000
1001
|
calculatedFormula: {
|
|
1001
1002
|
...e.calculatedFormula,
|
|
1002
1003
|
inputFields: e.calculatedFormula.inputFields.map(
|
|
1003
|
-
|
|
1004
|
+
Ee
|
|
1004
1005
|
)
|
|
1005
1006
|
}
|
|
1006
1007
|
} : {},
|
|
@@ -1014,8 +1015,8 @@ function Be(e) {
|
|
|
1014
1015
|
} : {}
|
|
1015
1016
|
};
|
|
1016
1017
|
}
|
|
1017
|
-
function
|
|
1018
|
-
const t = (n) => n == null ? void 0 : n.map(
|
|
1018
|
+
function oi(e) {
|
|
1019
|
+
const t = (n) => n == null ? void 0 : n.map(Ee);
|
|
1019
1020
|
return {
|
|
1020
1021
|
...e,
|
|
1021
1022
|
groupByColumns: t(e.groupByColumns),
|
|
@@ -1026,23 +1027,23 @@ function ei(e) {
|
|
|
1026
1027
|
filters: e.filters ? ge(e.filters) : void 0
|
|
1027
1028
|
};
|
|
1028
1029
|
}
|
|
1029
|
-
function
|
|
1030
|
+
function ii(e, t, n) {
|
|
1030
1031
|
if (!e)
|
|
1031
1032
|
return JSON.stringify(e);
|
|
1032
|
-
if (n === "matrixTable" && e.matrix) return _(
|
|
1033
|
-
const { matrix: r, ...o } = e, i = t ?
|
|
1033
|
+
if (n === "matrixTable" && e.matrix) return _(ro(e.matrix.spec));
|
|
1034
|
+
const { matrix: r, ...o } = e, i = t ? oi(o) : o;
|
|
1034
1035
|
return JSON.stringify({
|
|
1035
1036
|
...i,
|
|
1036
1037
|
filters: ge(i.filters)
|
|
1037
1038
|
});
|
|
1038
1039
|
}
|
|
1039
|
-
function
|
|
1040
|
+
function ai(e) {
|
|
1040
1041
|
if (!e)
|
|
1041
1042
|
return null;
|
|
1042
1043
|
const { format: t, ...n } = e;
|
|
1043
1044
|
return n;
|
|
1044
1045
|
}
|
|
1045
|
-
function
|
|
1046
|
+
function si(e, t) {
|
|
1046
1047
|
const n = /* @__PURE__ */ new Map();
|
|
1047
1048
|
for (const o of (t == null ? void 0 : t.controlDefinitions) || [])
|
|
1048
1049
|
n.set(o.id, o.type);
|
|
@@ -1058,7 +1059,7 @@ function ri(e, t) {
|
|
|
1058
1059
|
);
|
|
1059
1060
|
return _(r);
|
|
1060
1061
|
}
|
|
1061
|
-
function
|
|
1062
|
+
function li(e, {
|
|
1062
1063
|
finalFiltersKey: t,
|
|
1063
1064
|
cardFilterValues: n,
|
|
1064
1065
|
controlValues: r,
|
|
@@ -1071,13 +1072,13 @@ function oi(e, {
|
|
|
1071
1072
|
calendarContext: d
|
|
1072
1073
|
}) {
|
|
1073
1074
|
const { filterColumns: u, ...f } = e.queryConfig || {}, m = u == null ? void 0 : u.filter(
|
|
1074
|
-
(
|
|
1075
|
+
(h) => {
|
|
1075
1076
|
var S, g;
|
|
1076
|
-
return (g = (S = e.queryConfig) == null ? void 0 : S.filters) == null ? void 0 : g.some((V) => V.filterColumnName ===
|
|
1077
|
+
return (g = (S = e.queryConfig) == null ? void 0 : S.filters) == null ? void 0 : g.some((V) => V.filterColumnName === h.name);
|
|
1077
1078
|
}
|
|
1078
1079
|
), y = (e == null ? void 0 : e.sql) || "", p = Me((e == null ? void 0 : e.python) || ""), b = ["table", "detailTable", "matrixTable"].includes(
|
|
1079
1080
|
e.type
|
|
1080
|
-
) ? "table" : e.type === "kpi" ? "kpi" : "chart", I = s ||
|
|
1081
|
+
) ? "table" : e.type === "kpi" ? "kpi" : "chart", I = s || Nt(e.config, { cardType: e.type, dataSource: e.dataSource }), C = Nn.includes(
|
|
1081
1082
|
e.type
|
|
1082
1083
|
);
|
|
1083
1084
|
return [
|
|
@@ -1087,34 +1088,34 @@ function oi(e, {
|
|
|
1087
1088
|
y,
|
|
1088
1089
|
p,
|
|
1089
1090
|
JSON.stringify(n),
|
|
1090
|
-
|
|
1091
|
+
si(r, {
|
|
1091
1092
|
controlDefinitions: o,
|
|
1092
1093
|
cardControlDefinitions: i
|
|
1093
1094
|
}),
|
|
1094
|
-
|
|
1095
|
+
ei({
|
|
1095
1096
|
controlDefinitions: o,
|
|
1096
1097
|
cardControlDefinitions: i,
|
|
1097
1098
|
controlBindings: a
|
|
1098
1099
|
}),
|
|
1099
1100
|
_(
|
|
1100
|
-
|
|
1101
|
+
ai(l)
|
|
1101
1102
|
),
|
|
1102
1103
|
_(c ?? null),
|
|
1103
|
-
|
|
1104
|
+
ni,
|
|
1104
1105
|
_(d),
|
|
1105
1106
|
JSON.stringify(f),
|
|
1106
1107
|
JSON.stringify(m),
|
|
1107
|
-
|
|
1108
|
+
ii(
|
|
1108
1109
|
I,
|
|
1109
|
-
|
|
1110
|
+
C,
|
|
1110
1111
|
e.type
|
|
1111
1112
|
),
|
|
1112
1113
|
t
|
|
1113
1114
|
];
|
|
1114
1115
|
}
|
|
1115
|
-
function
|
|
1116
|
+
function ci(e, t, n) {
|
|
1116
1117
|
var s, l, c;
|
|
1117
|
-
const r =
|
|
1118
|
+
const r = li(e, t), o = _(r), i = ((s = n == null ? void 0 : n.resolvePaginationConfig) == null ? void 0 : s.call(n, o)) ?? e.paginationConfig, a = nt(e) && ue(e.config) || nt(e) && e.sql && ((c = (l = e.preferences) == null ? void 0 : l.tablePrefs) == null ? void 0 : c.enableDevModePagination);
|
|
1118
1119
|
return {
|
|
1119
1120
|
queryKey: [
|
|
1120
1121
|
...r,
|
|
@@ -1124,8 +1125,8 @@ function ii(e, t, n) {
|
|
|
1124
1125
|
paginationConfig: i
|
|
1125
1126
|
};
|
|
1126
1127
|
}
|
|
1127
|
-
function
|
|
1128
|
-
return
|
|
1128
|
+
function di(e, t, n, r) {
|
|
1129
|
+
return ci(
|
|
1129
1130
|
e,
|
|
1130
1131
|
{
|
|
1131
1132
|
finalFiltersKey: t.finalFiltersKey,
|
|
@@ -1142,32 +1143,32 @@ function ai(e, t, n, r) {
|
|
|
1142
1143
|
r
|
|
1143
1144
|
);
|
|
1144
1145
|
}
|
|
1145
|
-
const
|
|
1146
|
+
const ui = 500, fi = 250;
|
|
1146
1147
|
function De(e) {
|
|
1147
1148
|
return e.type === "table" || e.type === "detailTable";
|
|
1148
1149
|
}
|
|
1149
|
-
function
|
|
1150
|
+
function pi(e) {
|
|
1150
1151
|
var t, n, r;
|
|
1151
1152
|
return !!((t = e.sql) != null && t.trim() && De(e) && ((r = (n = e.preferences) == null ? void 0 : n.tablePrefs) != null && r.enableDevModePagination));
|
|
1152
1153
|
}
|
|
1153
|
-
function
|
|
1154
|
-
return e === "export-full-with-cap" ?
|
|
1154
|
+
function ds(e) {
|
|
1155
|
+
return e === "export-full-with-cap" ? ui : fi;
|
|
1155
1156
|
}
|
|
1156
|
-
function
|
|
1157
|
+
function mi({
|
|
1157
1158
|
card: e,
|
|
1158
1159
|
isTablePrintMode: t,
|
|
1159
1160
|
isDocumentSectionRuntime: n,
|
|
1160
1161
|
documentTableDataPolicy: r
|
|
1161
1162
|
}) {
|
|
1162
1163
|
var l, c;
|
|
1163
|
-
const o = n && r !== void 0 && De(e), i = t && !o, a = ue(e.config) && De(e) && !e.sql, s = o ?
|
|
1164
|
+
const o = n && r !== void 0 && De(e), i = t && !o, a = ue(e.config) && De(e) && !e.sql, s = o ? pi(e) : !!(e.sql && ((c = (l = e.preferences) == null ? void 0 : l.tablePrefs) != null && c.enableDevModePagination));
|
|
1164
1165
|
return !i && (a || s);
|
|
1165
1166
|
}
|
|
1166
|
-
function
|
|
1167
|
+
function gi(e) {
|
|
1167
1168
|
var t, n, r;
|
|
1168
1169
|
return ((t = e.paginationConfig) == null ? void 0 : t.pageSize) || ((r = (n = e.preferences) == null ? void 0 : n.tablePrefs) == null ? void 0 : r.pageSize) || 50;
|
|
1169
1170
|
}
|
|
1170
|
-
function
|
|
1171
|
+
function us({
|
|
1171
1172
|
current: e,
|
|
1172
1173
|
defaultPageSize: t,
|
|
1173
1174
|
queryInputIdentity: n
|
|
@@ -1180,10 +1181,10 @@ function as({
|
|
|
1180
1181
|
pageSize: (e == null ? void 0 : e.pageSize) ?? t
|
|
1181
1182
|
};
|
|
1182
1183
|
}
|
|
1183
|
-
function
|
|
1184
|
+
function fs(e, t, n) {
|
|
1184
1185
|
return (e == null ? void 0 : e.queryInputIdentity) === n && e.page === t.page && e.pageSize === t.pageSize;
|
|
1185
1186
|
}
|
|
1186
|
-
function
|
|
1187
|
+
function ps(e, t) {
|
|
1187
1188
|
return !e || !t || e.page === t.page && e.pageSize === t.pageSize ? e : {
|
|
1188
1189
|
...e,
|
|
1189
1190
|
page: t.page,
|
|
@@ -1191,20 +1192,20 @@ function ls(e, t) {
|
|
|
1191
1192
|
hasPrevPage: t.page > 1
|
|
1192
1193
|
};
|
|
1193
1194
|
}
|
|
1194
|
-
function
|
|
1195
|
-
return { page: 1, pageSize:
|
|
1195
|
+
function yi(e) {
|
|
1196
|
+
return { page: 1, pageSize: gi(e) };
|
|
1196
1197
|
}
|
|
1197
|
-
function
|
|
1198
|
+
function bi(e) {
|
|
1198
1199
|
var a, s, l, c, d;
|
|
1199
|
-
const { card: t } = e, n =
|
|
1200
|
+
const { card: t } = e, n = mi({
|
|
1200
1201
|
card: t,
|
|
1201
1202
|
isTablePrintMode: ((a = e.display) == null ? void 0 : a.isTablePrintMode) ?? !1,
|
|
1202
1203
|
isDocumentSectionRuntime: !!e.documentSection,
|
|
1203
1204
|
documentTableDataPolicy: (s = e.documentSection) == null ? void 0 : s.documentTableDataPolicy
|
|
1204
|
-
}), { page: r } = e, o = e.documentSection && !e.documentSection.totalsRow ? void 0 :
|
|
1205
|
+
}), { page: r } = e, o = e.documentSection && !e.documentSection.totalsRow ? void 0 : zn(t, e.finalConfig), i = !!((l = e.display) != null && l.deliveryStrict && e.display.isTablePrintMode && !e.documentSection && ao(t.type));
|
|
1205
1206
|
return {
|
|
1206
1207
|
...o ? { tableTotalsRequest: o } : {},
|
|
1207
|
-
...i ? { sourceRowProbe: { limit:
|
|
1208
|
+
...i ? { sourceRowProbe: { limit: so.maxTableRows } } : {},
|
|
1208
1209
|
...n ? {
|
|
1209
1210
|
pagination: {
|
|
1210
1211
|
page: (r == null ? void 0 : r.page) || 1,
|
|
@@ -1213,14 +1214,14 @@ function pi(e) {
|
|
|
1213
1214
|
} : {}
|
|
1214
1215
|
};
|
|
1215
1216
|
}
|
|
1216
|
-
function
|
|
1217
|
+
function Ii(e, t = {}) {
|
|
1217
1218
|
var o, i, a;
|
|
1218
1219
|
const n = ((o = e.connectionId) == null ? void 0 : o.trim()) || void 0;
|
|
1219
1220
|
if (t.editorDevMode) return n;
|
|
1220
1221
|
const r = ((a = (i = e.dataSource) == null ? void 0 : i.connectionId) == null ? void 0 : a.trim()) || void 0;
|
|
1221
1222
|
return e.sql ? n || r : r || n;
|
|
1222
1223
|
}
|
|
1223
|
-
function
|
|
1224
|
+
function Ci(e, t) {
|
|
1224
1225
|
var n;
|
|
1225
1226
|
return {
|
|
1226
1227
|
connectionId: t,
|
|
@@ -1229,8 +1230,8 @@ function gi(e, t) {
|
|
|
1229
1230
|
selectedEntities: []
|
|
1230
1231
|
};
|
|
1231
1232
|
}
|
|
1232
|
-
function
|
|
1233
|
-
const r =
|
|
1233
|
+
function ms(e, t, n = {}) {
|
|
1234
|
+
const r = Ii(e, n);
|
|
1234
1235
|
if (!r)
|
|
1235
1236
|
throw new Error("No connection ID found for card");
|
|
1236
1237
|
const o = t.cardDataSource || e.dataSource;
|
|
@@ -1238,11 +1239,11 @@ function cs(e, t, n = {}) {
|
|
|
1238
1239
|
connectionId: r,
|
|
1239
1240
|
requestPayloadBase: {
|
|
1240
1241
|
...t,
|
|
1241
|
-
cardDataSource: n.liveDataSource ? o : o ||
|
|
1242
|
+
cardDataSource: n.liveDataSource ? o : o || Ci(e, r)
|
|
1242
1243
|
}
|
|
1243
1244
|
};
|
|
1244
1245
|
}
|
|
1245
|
-
const
|
|
1246
|
+
const hi = /* @__PURE__ */ new Set([
|
|
1246
1247
|
"day",
|
|
1247
1248
|
"week",
|
|
1248
1249
|
"month",
|
|
@@ -1252,7 +1253,7 @@ const yi = /* @__PURE__ */ new Set([
|
|
|
1252
1253
|
"minute",
|
|
1253
1254
|
"second"
|
|
1254
1255
|
]);
|
|
1255
|
-
function
|
|
1256
|
+
function vi(e) {
|
|
1256
1257
|
let t = e.spec;
|
|
1257
1258
|
const n = pt(
|
|
1258
1259
|
e.controlDefinitions || [],
|
|
@@ -1269,25 +1270,25 @@ function bi(e) {
|
|
|
1269
1270
|
if (l) return l;
|
|
1270
1271
|
const p = e.catalog, b = /* @__PURE__ */ new Map();
|
|
1271
1272
|
for (const I of p) {
|
|
1272
|
-
const
|
|
1273
|
-
b.set(I.id, [...
|
|
1273
|
+
const C = b.get(I.id) ?? [];
|
|
1274
|
+
b.set(I.id, [...C, I]);
|
|
1274
1275
|
}
|
|
1275
1276
|
return l = { refs: p, byId: b }, l;
|
|
1276
1277
|
}, d = (p, b) => {
|
|
1277
|
-
throw new
|
|
1278
|
-
code:
|
|
1278
|
+
throw new Qn(p, {
|
|
1279
|
+
code: $n,
|
|
1279
1280
|
...b ? { controlId: b } : {}
|
|
1280
1281
|
});
|
|
1281
1282
|
}, u = (p, b) => {
|
|
1282
|
-
var
|
|
1283
|
+
var C;
|
|
1283
1284
|
if (p.derivedField) return p.derivedField.dataType;
|
|
1284
|
-
const I = c().refs.filter((
|
|
1285
|
-
return I.length > 1 ? d("The selected field is ambiguous in the authorized Matrix field catalog.", b) :
|
|
1286
|
-
}, f = (p, b) =>
|
|
1285
|
+
const I = c().refs.filter((h) => h.field.name === p.name && Ce(h.field.source ?? e.spec.source, p.source ?? e.spec.source));
|
|
1286
|
+
return I.length > 1 ? d("The selected field is ambiguous in the authorized Matrix field catalog.", b) : Z(((C = I[0]) == null ? void 0 : C.field.dataType) ?? p.dataType);
|
|
1287
|
+
}, f = (p, b) => Ln(p, b.target, (I) => u(I, b.controlId)), m = Rr.safeParse(t);
|
|
1287
1288
|
if (!m.success) return d(m.error.message);
|
|
1288
1289
|
t = m.data;
|
|
1289
1290
|
const y = [...o, ...i].map((p) => {
|
|
1290
|
-
const b = mt({ binding: p, definitions: n, controlValues: e.controlValues }), I = !p.matrixTargetId && b !== void 0 && b !==
|
|
1291
|
+
const b = mt({ binding: p, definitions: n, controlValues: e.controlValues }), I = !p.matrixTargetId && b !== void 0 && b !== he ? f(m.data, p) : [];
|
|
1291
1292
|
return {
|
|
1292
1293
|
binding: p,
|
|
1293
1294
|
selectedValue: b,
|
|
@@ -1295,26 +1296,26 @@ function bi(e) {
|
|
|
1295
1296
|
};
|
|
1296
1297
|
});
|
|
1297
1298
|
for (const { binding: p, targetId: b, selectedValue: I } of y) {
|
|
1298
|
-
if (I === void 0 || I ===
|
|
1299
|
+
if (I === void 0 || I === he)
|
|
1299
1300
|
continue;
|
|
1300
|
-
const
|
|
1301
|
-
(!b || !S.some((v) => v.id === b)) &&
|
|
1301
|
+
const C = (v) => d(v, p.controlId), h = p.target === "config_metric_selector" || p.target === "config_aggregation", S = f(t, p);
|
|
1302
|
+
(!b || !S.some((v) => v.id === b)) && C("Choose a valid Matrix level or measure target for this control.");
|
|
1302
1303
|
const g = `${p.target}:${b}`;
|
|
1303
|
-
a.has(g) &&
|
|
1304
|
+
a.has(g) && C("Multiple controls cannot replace the same Matrix target."), a.add(g);
|
|
1304
1305
|
const V = (v) => {
|
|
1305
|
-
const T = (c().byId.get(v.id) ?? []).filter((k) => !v.source ||
|
|
1306
|
-
if (T.length !== 1) return
|
|
1307
|
-
const M =
|
|
1308
|
-
return M.success ? M.data :
|
|
1306
|
+
const T = (c().byId.get(v.id) ?? []).filter((k) => !v.source || Ce(v.source, k.field.source ?? e.spec.source));
|
|
1307
|
+
if (T.length !== 1) return C(T.length ? "The selected field is ambiguous in the authorized Matrix field catalog." : "The selected field is not in the authorized Matrix field catalog.");
|
|
1308
|
+
const M = jr.safeParse(T[0].field);
|
|
1309
|
+
return M.success ? M.data : C(M.error.message);
|
|
1309
1310
|
}, P = p.target === "config_metric_selector" || p.target === "config_field_selector" ? p.mapping[I] : void 0, x = P && typeof P == "object" && "kind" in P && P.kind === "matrix_instance" ? P.id : void 0;
|
|
1310
|
-
if (
|
|
1311
|
+
if (h) {
|
|
1311
1312
|
s.set(b, p.controlId);
|
|
1312
1313
|
const v = x === void 0 ? void 0 : m.data.measures.find(
|
|
1313
1314
|
(F) => F.id === x && F.kind === "aggregate"
|
|
1314
1315
|
);
|
|
1315
|
-
x !== void 0 && !v &&
|
|
1316
|
-
const T = p.target === "config_metric_selector" && !v ?
|
|
1317
|
-
k && !k.success &&
|
|
1316
|
+
x !== void 0 && !v && C("The selected Matrix aggregate measure is no longer available.");
|
|
1317
|
+
const T = p.target === "config_metric_selector" && !v ? Kn({ binding: p, selectedValue: I }) : void 0, M = ((v == null ? void 0 : v.kind) === "aggregate" ? v.aggregate : T == null ? void 0 : T.aggregate) ?? (p.target === "config_aggregation" ? Ge({ binding: p, selectedValue: I }) : void 0), k = M === void 0 ? void 0 : qr.safeParse(M);
|
|
1318
|
+
k && !k.success && C("This aggregation is not supported by Matrix."), t = {
|
|
1318
1319
|
...t,
|
|
1319
1320
|
measures: t.measures.map(
|
|
1320
1321
|
(F) => F.id !== b || F.kind !== "aggregate" ? F : {
|
|
@@ -1329,13 +1330,13 @@ function bi(e) {
|
|
|
1329
1330
|
const v = x === void 0 ? void 0 : [...m.data.rows, ...m.data.columns].find(
|
|
1330
1331
|
(F) => F.id === x
|
|
1331
1332
|
);
|
|
1332
|
-
x !== void 0 && !v &&
|
|
1333
|
-
const T = p.target === "config_field_selector" && !v ?
|
|
1334
|
-
M !== void 0 && !
|
|
1333
|
+
x !== void 0 && !v && C("The selected Matrix level is no longer available.");
|
|
1334
|
+
const T = p.target === "config_field_selector" && !v ? Gn({ binding: p, selectedValue: I }) : void 0, M = p.target === "config_grain" ? Ge({ binding: p, selectedValue: I }) : v ? v.grain : T == null ? void 0 : T.granularity;
|
|
1335
|
+
M !== void 0 && !hi.has(M) && C("This time grain is not supported by Matrix.");
|
|
1335
1336
|
const k = (F) => F.map((D) => {
|
|
1336
1337
|
if (D.id !== b) return D;
|
|
1337
|
-
const w = (v == null ? void 0 : v.field) ?? (T ? V(T) : D.field),
|
|
1338
|
-
return R && !ne(
|
|
1338
|
+
const w = (v == null ? void 0 : v.field) ?? (T ? V(T) : D.field), B = u(w, p.controlId), R = M ?? (T && ne(B) ? D.grain : void 0);
|
|
1339
|
+
return R && !ne(B) && C("A time grain requires a temporal Matrix level."), { ...D, field: w, grain: R };
|
|
1339
1340
|
});
|
|
1340
1341
|
t = {
|
|
1341
1342
|
...t,
|
|
@@ -1345,22 +1346,22 @@ function bi(e) {
|
|
|
1345
1346
|
}
|
|
1346
1347
|
}
|
|
1347
1348
|
for (const [p, b] of Array.from(s)) {
|
|
1348
|
-
const I = t.measures.find((
|
|
1349
|
+
const I = t.measures.find((h) => h.id === p);
|
|
1349
1350
|
if (!I || I.kind !== "aggregate") continue;
|
|
1350
|
-
const
|
|
1351
|
-
|
|
1351
|
+
const C = u(I.field, b);
|
|
1352
|
+
Hn(C).some((h) => h.value === I.aggregate) || d(`Aggregation '${I.aggregate}' is not eligible for this Matrix field datatype.`, b);
|
|
1352
1353
|
}
|
|
1353
1354
|
try {
|
|
1354
|
-
return
|
|
1355
|
+
return Un(m.data, t);
|
|
1355
1356
|
} catch (p) {
|
|
1356
|
-
if (p instanceof
|
|
1357
|
+
if (p instanceof Hr) return d(p.message);
|
|
1357
1358
|
throw p;
|
|
1358
1359
|
}
|
|
1359
1360
|
}
|
|
1360
|
-
function
|
|
1361
|
+
function Zt(e, t) {
|
|
1361
1362
|
const n = [], r = (o) => {
|
|
1362
1363
|
if (o.source) {
|
|
1363
|
-
const i =
|
|
1364
|
+
const i = Nr.safeParse(o.source);
|
|
1364
1365
|
if (i.success) n.push(i.data);
|
|
1365
1366
|
else if (t) throw i.error;
|
|
1366
1367
|
}
|
|
@@ -1368,33 +1369,33 @@ function Qt(e, t) {
|
|
|
1368
1369
|
};
|
|
1369
1370
|
for (const o of e) {
|
|
1370
1371
|
if (o.target !== "config_field_selector" && o.target !== "config_metric_selector") continue;
|
|
1371
|
-
const i = t == null ? void 0 : t.get(o), a = t ? i && i !==
|
|
1372
|
+
const i = t == null ? void 0 : t.get(o), a = t ? i && i !== he ? [o.mapping[i]] : [] : Object.values(o.mapping);
|
|
1372
1373
|
for (const s of a)
|
|
1373
1374
|
s && "role" in s && r(s);
|
|
1374
1375
|
}
|
|
1375
1376
|
return n;
|
|
1376
1377
|
}
|
|
1377
|
-
function
|
|
1378
|
-
return
|
|
1378
|
+
function Fi(e, t = [], n = []) {
|
|
1379
|
+
return St([...gt(e), ...Zt(t), ...n]);
|
|
1379
1380
|
}
|
|
1380
|
-
function
|
|
1381
|
+
function Di(e, t = {}) {
|
|
1381
1382
|
const n = t.controlBindings ?? [], r = pt(t.controlDefinitions ?? [], t.cardControlDefinitions ?? []), o = new Map(n.filter((i) => i.target === "config_field_selector" || i.target === "config_metric_selector").map((i) => [i, mt({ binding: i, definitions: r, controlValues: t.controlValues })]));
|
|
1382
|
-
return
|
|
1383
|
+
return St([...gt(e), ...Zt(n, o)]);
|
|
1383
1384
|
}
|
|
1384
|
-
function
|
|
1385
|
-
return Te(e) ?
|
|
1385
|
+
function Wt(e, t) {
|
|
1386
|
+
return Te(e) ? Ti(e, t) : e.config ?? {};
|
|
1386
1387
|
}
|
|
1387
|
-
function
|
|
1388
|
-
return t != null && t.steps.length ? { ...e, config:
|
|
1388
|
+
function Si(e, t) {
|
|
1389
|
+
return t != null && t.steps.length ? { ...e, config: Wt(e, t) } : e;
|
|
1389
1390
|
}
|
|
1390
|
-
function
|
|
1391
|
+
function Ti(e, t) {
|
|
1391
1392
|
var r;
|
|
1392
1393
|
const n = (r = t == null ? void 0 : t.steps[t.steps.length - 1]) == null ? void 0 : r.toField;
|
|
1393
|
-
return n ?
|
|
1394
|
+
return n ? Eo(e.config ?? {}, n, {
|
|
1394
1395
|
sortPolicy: "retargetDimensionSort"
|
|
1395
1396
|
}) : e.config ?? {};
|
|
1396
1397
|
}
|
|
1397
|
-
function
|
|
1398
|
+
function Vi(e, t) {
|
|
1398
1399
|
const n = (e == null ? void 0 : e.steps) ?? [];
|
|
1399
1400
|
if (n.length !== 0)
|
|
1400
1401
|
return {
|
|
@@ -1413,7 +1414,7 @@ function Fi(e, t) {
|
|
|
1413
1414
|
logicalOperator: "AND",
|
|
1414
1415
|
negate: !1,
|
|
1415
1416
|
conditions: r.conditions.map(
|
|
1416
|
-
(i) =>
|
|
1417
|
+
(i) => lo(
|
|
1417
1418
|
i,
|
|
1418
1419
|
`${i.field.id}-${i.value}`
|
|
1419
1420
|
)
|
|
@@ -1428,16 +1429,16 @@ const ye = (e) => typeof e == "object" && e !== null && !Array.isArray(e);
|
|
|
1428
1429
|
function H(e) {
|
|
1429
1430
|
return e instanceof Date ? JSON.stringify(Number.isNaN(e.getTime()) ? null : e.toISOString()) : Array.isArray(e) ? `[${e.map(H).join(",")}]` : ye(e) ? `{${Object.keys(e).sort().filter((t) => e[t] !== void 0).map((t) => `${JSON.stringify(t)}:${H(e[t])}`).join(",")}}` : JSON.stringify(e) ?? "null";
|
|
1430
1431
|
}
|
|
1431
|
-
function
|
|
1432
|
+
function Mi(e) {
|
|
1432
1433
|
const t = e;
|
|
1433
1434
|
return t.valueType === "date" || t.relativeMeta !== void 0 || t.temporalBucket !== void 0 || ne(t.dataType);
|
|
1434
1435
|
}
|
|
1435
|
-
function
|
|
1436
|
+
function ki(e) {
|
|
1436
1437
|
const t = ye(e.field) ? e.field : void 0;
|
|
1437
1438
|
return e.temporalBucket !== void 0 || e.rawTemporal !== void 0 || e.relativeMeta !== void 0 || ne(t == null ? void 0 : t.dataType);
|
|
1438
1439
|
}
|
|
1439
|
-
function
|
|
1440
|
-
return e ? [...(e.conditions ?? []).filter(
|
|
1440
|
+
function Jt(e) {
|
|
1441
|
+
return e ? [...(e.conditions ?? []).filter(ki).map((n) => {
|
|
1441
1442
|
const r = ye(n.field) ? n.field : {};
|
|
1442
1443
|
return {
|
|
1443
1444
|
field: r.qualifiedFieldName ?? r.name,
|
|
@@ -1447,10 +1448,10 @@ function Wt(e) {
|
|
|
1447
1448
|
rawTemporal: n.rawTemporal,
|
|
1448
1449
|
relativeMeta: n.relativeMeta
|
|
1449
1450
|
};
|
|
1450
|
-
}), ...(e.groups ?? []).flatMap((n) =>
|
|
1451
|
+
}), ...(e.groups ?? []).flatMap((n) => Jt(n))] : [];
|
|
1451
1452
|
}
|
|
1452
1453
|
function rt(e) {
|
|
1453
|
-
const t = e.filterValues.filter(
|
|
1454
|
+
const t = e.filterValues.filter(Mi).map((r) => {
|
|
1454
1455
|
const o = r, i = ye(o.fieldMeta) ? o.fieldMeta : void 0;
|
|
1455
1456
|
return {
|
|
1456
1457
|
field: (i == null ? void 0 : i.qualifiedFieldName) ?? o.name,
|
|
@@ -1458,14 +1459,14 @@ function rt(e) {
|
|
|
1458
1459
|
...o.relativeMeta !== void 0 ? { relativeMeta: o.relativeMeta } : { values: o.values },
|
|
1459
1460
|
temporalBucket: o.temporalBucket
|
|
1460
1461
|
};
|
|
1461
|
-
}), n =
|
|
1462
|
+
}), n = Jt(e.selectionFilters);
|
|
1462
1463
|
return H({
|
|
1463
1464
|
values: t.map(H).sort(),
|
|
1464
1465
|
conditions: n.map(H).sort(),
|
|
1465
1466
|
...e.zoom ? { zoom: [e.zoom.from, e.zoom.to] } : {}
|
|
1466
1467
|
});
|
|
1467
1468
|
}
|
|
1468
|
-
function
|
|
1469
|
+
function xi(e, t, n) {
|
|
1469
1470
|
if (!t || n.drillActive || t.madeUnder !== n.currentFingerprint) return e;
|
|
1470
1471
|
const r = e.groupByColumns ?? [];
|
|
1471
1472
|
return r.some((o) => o.id === t.fieldId && o.grainMode === "automatic") ? {
|
|
@@ -1477,14 +1478,14 @@ function Ti(e, t, n) {
|
|
|
1477
1478
|
})
|
|
1478
1479
|
} : e;
|
|
1479
1480
|
}
|
|
1480
|
-
function
|
|
1481
|
+
function gs(e) {
|
|
1481
1482
|
var t;
|
|
1482
1483
|
return (((t = e.config) == null ? void 0 : t.groupByColumns) ?? []).find(
|
|
1483
|
-
(n) => n.grainMode === "automatic" &&
|
|
1484
|
+
(n) => n.grainMode === "automatic" && Zn({ cardType: e.type, configBacked: !0, shelf: "groupBy", dataType: n.dataType }).ok
|
|
1484
1485
|
);
|
|
1485
1486
|
}
|
|
1486
|
-
function
|
|
1487
|
-
if (!e || !t || t.id !== e.fieldId ||
|
|
1487
|
+
function Pi(e, t) {
|
|
1488
|
+
if (!e || !t || t.id !== e.fieldId || zr(t)) return;
|
|
1488
1489
|
const {
|
|
1489
1490
|
granularity: n,
|
|
1490
1491
|
grainMode: r,
|
|
@@ -1508,18 +1509,18 @@ function Vi(e, t) {
|
|
|
1508
1509
|
groups: []
|
|
1509
1510
|
};
|
|
1510
1511
|
}
|
|
1511
|
-
function
|
|
1512
|
+
function ys(e, t, n) {
|
|
1512
1513
|
const r = Ue(e, n), o = Ue(t, n);
|
|
1513
1514
|
if (!r || !o) return;
|
|
1514
1515
|
const [i, a] = r.first <= o.first ? [r, o] : [o, r];
|
|
1515
1516
|
return { from: i.first, to: a.last };
|
|
1516
1517
|
}
|
|
1517
|
-
function
|
|
1518
|
+
function wi(e, t, n) {
|
|
1518
1519
|
if (!e || e.madeUnder !== n) return;
|
|
1519
|
-
const r = t == null ? void 0 : t.find((i) => i.id === e.fieldId && i.grainMode === "automatic"), o =
|
|
1520
|
+
const r = t == null ? void 0 : t.find((i) => i.id === e.fieldId && i.grainMode === "automatic"), o = Pi(e, r);
|
|
1520
1521
|
return o ? { zoom: e, filterGroup: o } : void 0;
|
|
1521
1522
|
}
|
|
1522
|
-
function
|
|
1523
|
+
function bs(e, t, n) {
|
|
1523
1524
|
if (!e) return;
|
|
1524
1525
|
const [r, o] = t <= n ? [t, n] : [n, t];
|
|
1525
1526
|
if (r < 0 || o >= e.length) return;
|
|
@@ -1530,72 +1531,74 @@ function fs(e, t, n) {
|
|
|
1530
1531
|
(d, u) => (u < r || u > o) && typeof d == "string" && d > s && d < l
|
|
1531
1532
|
) ? void 0 : { first: s, last: l };
|
|
1532
1533
|
}
|
|
1533
|
-
function
|
|
1534
|
+
function Is(e, t, n) {
|
|
1534
1535
|
if (!t || !n) return { from: e.from, to: e.to };
|
|
1535
|
-
const r =
|
|
1536
|
+
const r = Ze(new Date(t.startInclusive), n), o = Ze(new Date(Date.parse(t.endExclusive) - 1), n), i = e.from < r ? r : e.from, a = e.to > o ? o : e.to;
|
|
1536
1537
|
return i <= a ? { from: i, to: a } : { from: e.from, to: e.to };
|
|
1537
1538
|
}
|
|
1538
|
-
function
|
|
1539
|
+
function Cs(e, t, n) {
|
|
1539
1540
|
const r = (i) => /* @__PURE__ */ new Date(`${i}T00:00:00.000Z`), o = new Intl.DateTimeFormat(t, { dateStyle: n, timeZone: "UTC" });
|
|
1540
1541
|
return e.from === e.to ? o.format(r(e.from)) : o.formatRange(r(e.from), r(e.to));
|
|
1541
1542
|
}
|
|
1542
|
-
function
|
|
1543
|
+
function Be(e) {
|
|
1543
1544
|
return e === "in" || e === "not in";
|
|
1544
1545
|
}
|
|
1545
1546
|
function Re(e) {
|
|
1546
1547
|
return e === "not in" ? "exclude" : "include";
|
|
1547
1548
|
}
|
|
1548
|
-
function
|
|
1549
|
+
function Oi(e) {
|
|
1549
1550
|
return e === "exclude" ? "not in" : "in";
|
|
1550
1551
|
}
|
|
1551
|
-
function
|
|
1552
|
+
function hs(e) {
|
|
1552
1553
|
var n;
|
|
1553
1554
|
const t = (n = e.liveValue) == null ? void 0 : n.operation;
|
|
1554
|
-
return
|
|
1555
|
+
return Be(t) ? Re(t) : e.pendingMode ?? e.authoredMode;
|
|
1555
1556
|
}
|
|
1556
|
-
function
|
|
1557
|
+
function _i(e) {
|
|
1557
1558
|
var r;
|
|
1558
1559
|
let t = !1;
|
|
1559
1560
|
const n = (r = e.inputs) == null ? void 0 : r.map((o) => {
|
|
1560
1561
|
if (o.kind !== "filter" || !o.filter) return o;
|
|
1561
|
-
const i =
|
|
1562
|
+
const i = Ai(
|
|
1562
1563
|
o.filter,
|
|
1563
|
-
new Set(
|
|
1564
|
+
new Set(Ei(e.defaultInputValues, o))
|
|
1564
1565
|
);
|
|
1565
1566
|
return i === o.filter ? o : (t = !0, { ...o, filter: i });
|
|
1566
1567
|
});
|
|
1567
1568
|
return t ? { ...e, inputs: n } : e;
|
|
1568
1569
|
}
|
|
1569
|
-
function
|
|
1570
|
-
if (t.size !== 1 || !
|
|
1570
|
+
function Ai(e, t) {
|
|
1571
|
+
if (t.size !== 1 || !Be(e.operation))
|
|
1571
1572
|
return e;
|
|
1572
1573
|
const [n] = t;
|
|
1573
|
-
return Re(e.operation) === n ? e : { ...e, operation:
|
|
1574
|
+
return Re(e.operation) === n ? e : { ...e, operation: Oi(n) };
|
|
1574
1575
|
}
|
|
1575
|
-
function
|
|
1576
|
+
function Ei(e, t) {
|
|
1576
1577
|
var o;
|
|
1577
1578
|
const n = (i) => Object.values(i ?? {}).map((a) => a[t.id]);
|
|
1578
1579
|
return (t.runtimeScope === "shared" ? [(o = e == null ? void 0 : e.shared) == null ? void 0 : o[t.id]] : t.runtimeScope === "perSheet" ? n(e == null ? void 0 : e.bySheetId) : t.runtimeScope === "perCard" ? n(e == null ? void 0 : e.byCardId) : t.runtimeScope === "perDocumentSection" ? n(e == null ? void 0 : e.byDocumentSectionId) : []).flatMap(
|
|
1579
|
-
(i) => (i == null ? void 0 : i.status) === "set" && i.value.kind === "filter" ?
|
|
1580
|
+
(i) => (i == null ? void 0 : i.status) === "set" && i.value.kind === "filter" ? Bi(i.value.filterValue) : []
|
|
1580
1581
|
);
|
|
1581
1582
|
}
|
|
1582
|
-
function
|
|
1583
|
-
return
|
|
1583
|
+
function Bi(e) {
|
|
1584
|
+
return Be(e.operation) ? [Re(e.operation)] : [];
|
|
1584
1585
|
}
|
|
1585
|
-
function
|
|
1586
|
-
const t =
|
|
1587
|
-
return
|
|
1588
|
-
|
|
1589
|
-
|
|
1586
|
+
function vs(e) {
|
|
1587
|
+
const t = Mt(e), r = A(t).issues.length ? t : Ba(t);
|
|
1588
|
+
return yt(
|
|
1589
|
+
_o(
|
|
1590
|
+
Wn(_i(r))
|
|
1591
|
+
).dashboard
|
|
1592
|
+
);
|
|
1590
1593
|
}
|
|
1591
1594
|
function qe(e, t) {
|
|
1592
1595
|
const n = {};
|
|
1593
|
-
for (const r of
|
|
1596
|
+
for (const r of xt(e)) {
|
|
1594
1597
|
if (!r.inlineFilters || r.inlineFilters.length === 0)
|
|
1595
1598
|
continue;
|
|
1596
1599
|
const o = [];
|
|
1597
1600
|
for (const i of r.inlineFilters) {
|
|
1598
|
-
const a =
|
|
1601
|
+
const a = Jn(i, t);
|
|
1599
1602
|
a && o.push(a);
|
|
1600
1603
|
}
|
|
1601
1604
|
o.length > 0 && (n[r.id] = o);
|
|
@@ -1621,8 +1624,8 @@ function le(e, t, n) {
|
|
|
1621
1624
|
const o = { ...r[t.scope] ?? {} };
|
|
1622
1625
|
o[t.target] = { ...o[t.target], [t.inputId]: n }, r[t.scope] = o;
|
|
1623
1626
|
}
|
|
1624
|
-
function
|
|
1625
|
-
const r =
|
|
1627
|
+
function Yt(e, t, n) {
|
|
1628
|
+
const r = bt(
|
|
1626
1629
|
e,
|
|
1627
1630
|
t.controlOverrides,
|
|
1628
1631
|
{ hasExplicitRuntimeOverrides: t.controlOverrides !== void 0 }
|
|
@@ -1635,18 +1638,18 @@ function Zt(e, t, n) {
|
|
|
1635
1638
|
inlineFilterValuesMap: t.inlineFilterValuesMap ?? qe(e, n)
|
|
1636
1639
|
};
|
|
1637
1640
|
}
|
|
1638
|
-
function
|
|
1639
|
-
return
|
|
1641
|
+
function je(e, t, n) {
|
|
1642
|
+
return Xt(
|
|
1640
1643
|
e,
|
|
1641
|
-
|
|
1644
|
+
Yt(e, t, n),
|
|
1642
1645
|
n
|
|
1643
1646
|
);
|
|
1644
1647
|
}
|
|
1645
|
-
function
|
|
1646
|
-
return
|
|
1648
|
+
function Fs(e, t, n) {
|
|
1649
|
+
return Xt(e, t, n);
|
|
1647
1650
|
}
|
|
1648
|
-
function
|
|
1649
|
-
const r = e.sheets ?? [], o = r.filter((s) => (s.kind ?? "dashboard") === "dashboard").map((s) => s.id), i = r.filter((s) => s.kind === "document"), a = o.length ?
|
|
1651
|
+
function Xt(e, t, n) {
|
|
1652
|
+
const r = e.sheets ?? [], o = r.filter((s) => (s.kind ?? "dashboard") === "dashboard").map((s) => s.id), i = r.filter((s) => s.kind === "document"), a = o.length ? er({
|
|
1650
1653
|
dashboard: e,
|
|
1651
1654
|
sheetIds: o,
|
|
1652
1655
|
mode: "dashboard",
|
|
@@ -1659,7 +1662,7 @@ function Jt(e, t, n) {
|
|
|
1659
1662
|
var c;
|
|
1660
1663
|
return xe(
|
|
1661
1664
|
s,
|
|
1662
|
-
|
|
1665
|
+
tr({
|
|
1663
1666
|
dashboard: e,
|
|
1664
1667
|
sheetId: l.id,
|
|
1665
1668
|
sheetKind: "document",
|
|
@@ -1676,7 +1679,7 @@ function Jt(e, t, n) {
|
|
|
1676
1679
|
a
|
|
1677
1680
|
);
|
|
1678
1681
|
}
|
|
1679
|
-
function
|
|
1682
|
+
function en(e, t) {
|
|
1680
1683
|
const n = {}, r = {}, o = /* @__PURE__ */ new Map();
|
|
1681
1684
|
for (const i of $(t)) {
|
|
1682
1685
|
const a = e.get(i.inputId), { slot: s } = i, l = () => s.status === "set" && s.value.kind === "filter" ? s.value.filterValue : s.status === "cleared" ? null : void 0;
|
|
@@ -1702,43 +1705,43 @@ function Yt(e, t) {
|
|
|
1702
1705
|
inlineFilterValues: o
|
|
1703
1706
|
};
|
|
1704
1707
|
}
|
|
1705
|
-
function
|
|
1708
|
+
function Ri(e, t) {
|
|
1706
1709
|
if (!t.size) return [...e];
|
|
1707
1710
|
const n = e.filter((o) => !t.has(o.filterId)), r = [...t.values()].filter(
|
|
1708
1711
|
(o) => o !== null
|
|
1709
1712
|
);
|
|
1710
|
-
return
|
|
1713
|
+
return nr(n, r);
|
|
1711
1714
|
}
|
|
1712
|
-
function
|
|
1715
|
+
function tn(e, t, n) {
|
|
1713
1716
|
if (!Object.keys(n).length) return t;
|
|
1714
|
-
const r =
|
|
1717
|
+
const r = bt(
|
|
1715
1718
|
e,
|
|
1716
1719
|
t,
|
|
1717
1720
|
{ hasExplicitRuntimeOverrides: t !== void 0 }
|
|
1718
1721
|
);
|
|
1719
1722
|
return {
|
|
1720
|
-
...
|
|
1723
|
+
...Yn({
|
|
1721
1724
|
dashboardValues: r.dashboardControlValues,
|
|
1722
1725
|
cardValuesMap: r.cardControlValuesMap
|
|
1723
1726
|
}),
|
|
1724
1727
|
...n
|
|
1725
1728
|
};
|
|
1726
1729
|
}
|
|
1727
|
-
function
|
|
1730
|
+
function qi(e, t) {
|
|
1728
1731
|
if (!t.size) return;
|
|
1729
1732
|
const n = Object.fromEntries(
|
|
1730
1733
|
Object.entries(e).map(([r, o]) => [r, [...o]])
|
|
1731
1734
|
);
|
|
1732
1735
|
for (const [r, o] of t)
|
|
1733
|
-
n[r] =
|
|
1736
|
+
n[r] = Ri(n[r] ?? [], o);
|
|
1734
1737
|
return n;
|
|
1735
1738
|
}
|
|
1736
|
-
function
|
|
1739
|
+
function ji(e, t, n) {
|
|
1737
1740
|
const r = new Map(
|
|
1738
|
-
|
|
1741
|
+
N(e).map(({ card: a }) => [
|
|
1739
1742
|
a.id,
|
|
1740
1743
|
// Column filters too (TCF-D4): a viewer's column filter survives a refetch.
|
|
1741
|
-
new Map(
|
|
1744
|
+
new Map(Xn(a).map((s) => [s.id, s]))
|
|
1742
1745
|
])
|
|
1743
1746
|
);
|
|
1744
1747
|
let o = !1;
|
|
@@ -1754,11 +1757,11 @@ function Bi(e, t, n) {
|
|
|
1754
1757
|
}
|
|
1755
1758
|
return o ? i : void 0;
|
|
1756
1759
|
}
|
|
1757
|
-
function
|
|
1758
|
-
const { dashboard: t, capture: n, calendar: r } = e, o =
|
|
1760
|
+
function Ds(e) {
|
|
1761
|
+
const { dashboard: t, capture: n, calendar: r } = e, o = Tn(t, n.filterValues, {
|
|
1759
1762
|
calendar: r
|
|
1760
1763
|
}), i = n.dashboardInputExecutionSnapshot, a = n.controlValues, s = {
|
|
1761
|
-
...
|
|
1764
|
+
...Yt(
|
|
1762
1765
|
t,
|
|
1763
1766
|
{
|
|
1764
1767
|
adHocFilterValues: o.adHocFilterValues,
|
|
@@ -1766,7 +1769,7 @@ function Is(e) {
|
|
|
1766
1769
|
// The snapshot replays exactly over the listed values.
|
|
1767
1770
|
dashboardInputValues: i ? xe(
|
|
1768
1771
|
o.slots,
|
|
1769
|
-
|
|
1772
|
+
or({
|
|
1770
1773
|
dashboard: t,
|
|
1771
1774
|
dashboardInputValues: i.dashboardInputValues,
|
|
1772
1775
|
sheetId: i.sheetId,
|
|
@@ -1776,23 +1779,23 @@ function Is(e) {
|
|
|
1776
1779
|
},
|
|
1777
1780
|
r
|
|
1778
1781
|
),
|
|
1779
|
-
cardViewState: i ?
|
|
1780
|
-
}, l = i ?
|
|
1782
|
+
cardViewState: i ? rr(i.cardViewState) : {}
|
|
1783
|
+
}, l = i ? ir(i.transientContexts) : void 0;
|
|
1781
1784
|
return {
|
|
1782
1785
|
runtimeValues: s,
|
|
1783
1786
|
controlOverrides: a,
|
|
1784
1787
|
...l != null && l.length ? { transientContexts: l } : {}
|
|
1785
1788
|
};
|
|
1786
1789
|
}
|
|
1787
|
-
function
|
|
1790
|
+
function Ss(e, t) {
|
|
1788
1791
|
const { controlContractOverrides: n, cardId: r } = t;
|
|
1789
1792
|
if (!n || (n.controlDefinitions !== void 0 && (e.controls = n.controlDefinitions), typeof r != "string" || r.trim().length === 0))
|
|
1790
1793
|
return e;
|
|
1791
|
-
const o =
|
|
1794
|
+
const o = W(e, r);
|
|
1792
1795
|
return o && (n.cardControlDefinitions !== void 0 && (o.controls = n.cardControlDefinitions), n.controlBindings !== void 0 && (o.controlBindings = n.controlBindings)), e;
|
|
1793
1796
|
}
|
|
1794
|
-
const
|
|
1795
|
-
function
|
|
1797
|
+
const Ni = ["bySheetId", "byCardId", "byDocumentSectionId"];
|
|
1798
|
+
function zi(e, t) {
|
|
1796
1799
|
const n = A(e);
|
|
1797
1800
|
let r = !1;
|
|
1798
1801
|
const o = (a) => {
|
|
@@ -1808,7 +1811,7 @@ function Ri(e, t) {
|
|
|
1808
1811
|
...t,
|
|
1809
1812
|
...t.shared ? { shared: o(t.shared) } : {}
|
|
1810
1813
|
};
|
|
1811
|
-
for (const a of
|
|
1814
|
+
for (const a of Ni) {
|
|
1812
1815
|
const s = t[a];
|
|
1813
1816
|
s && (i[a] = Object.fromEntries(
|
|
1814
1817
|
Object.entries(s).map(([l, c]) => [l, o(c) ?? {}])
|
|
@@ -1816,7 +1819,7 @@ function Ri(e, t) {
|
|
|
1816
1819
|
}
|
|
1817
1820
|
return r ? i : t;
|
|
1818
1821
|
}
|
|
1819
|
-
function
|
|
1822
|
+
function Li(e) {
|
|
1820
1823
|
var t, n;
|
|
1821
1824
|
return ((n = (t = e.sheets) == null ? void 0 : t[0]) == null ? void 0 : n.id) ?? null;
|
|
1822
1825
|
}
|
|
@@ -1824,16 +1827,16 @@ function J(e, t) {
|
|
|
1824
1827
|
var n;
|
|
1825
1828
|
return !!t && !!((n = e.sheets) != null && n.some((r) => r.id === t));
|
|
1826
1829
|
}
|
|
1827
|
-
function
|
|
1828
|
-
const { dashboard: t, host: n, calendar: r } = e, o =
|
|
1830
|
+
function Ts(e) {
|
|
1831
|
+
const { dashboard: t, host: n, calendar: r } = e, o = Tn(t, n.filterValues, {
|
|
1829
1832
|
calendar: r
|
|
1830
|
-
}).slots, i = n.controlValues, a = J(t, n.selectedSheetId) ? n.selectedSheetId :
|
|
1833
|
+
}).slots, i = n.controlValues, a = J(t, n.selectedSheetId) ? n.selectedSheetId : Li(t);
|
|
1831
1834
|
return {
|
|
1832
1835
|
hostInputValues: o,
|
|
1833
1836
|
controlOverrides: i,
|
|
1834
1837
|
selectedSheetId: a,
|
|
1835
1838
|
hostSelectedSheetId: n.selectedSheetId ?? null,
|
|
1836
|
-
materializedInputs: e.materializeInputs === !1 ? {} :
|
|
1839
|
+
materializedInputs: e.materializeInputs === !1 ? {} : je(
|
|
1837
1840
|
t,
|
|
1838
1841
|
{
|
|
1839
1842
|
adHocFilterValues: [],
|
|
@@ -1844,28 +1847,28 @@ function Cs(e) {
|
|
|
1844
1847
|
)
|
|
1845
1848
|
};
|
|
1846
1849
|
}
|
|
1847
|
-
function
|
|
1850
|
+
function nn(e) {
|
|
1848
1851
|
const t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map();
|
|
1849
1852
|
for (const o of Pe(e))
|
|
1850
1853
|
o.kind === "filter" && o.filter ? t.set(o.id, o.filter) : o.kind === "control" && n.add(o.id), o.compatibility && r.set(o.id, o.compatibility);
|
|
1851
1854
|
return { filterInputs: t, controlInputIds: n, compatibility: r };
|
|
1852
1855
|
}
|
|
1853
|
-
function
|
|
1854
|
-
const n =
|
|
1856
|
+
function rn(e, t) {
|
|
1857
|
+
const n = Tt(t);
|
|
1855
1858
|
if (!n) return;
|
|
1856
|
-
const r =
|
|
1857
|
-
return r ?
|
|
1859
|
+
const r = W(e, n);
|
|
1860
|
+
return r ? ar(r, e) ? "applies" : "not-eligible" : "removed";
|
|
1858
1861
|
}
|
|
1859
|
-
function
|
|
1860
|
-
const n =
|
|
1862
|
+
function Vs(e, t) {
|
|
1863
|
+
const n = rn(e, t);
|
|
1861
1864
|
return n ? n === "applies" : Pe(e).some(
|
|
1862
1865
|
(r) => r.id === t
|
|
1863
1866
|
);
|
|
1864
1867
|
}
|
|
1865
|
-
function
|
|
1868
|
+
function on(e, t, n, r) {
|
|
1866
1869
|
if (!n) return {};
|
|
1867
1870
|
const o = new Set((e.sheets ?? []).map((c) => c.id)), i = new Set(
|
|
1868
|
-
|
|
1871
|
+
N(e).map(({ card: c }) => c.id)
|
|
1869
1872
|
), a = A(e), s = (c) => {
|
|
1870
1873
|
var u;
|
|
1871
1874
|
if (!c) return;
|
|
@@ -1873,7 +1876,7 @@ function nn(e, t, n, r) {
|
|
|
1873
1876
|
for (const [f, m] of Object.entries(c)) {
|
|
1874
1877
|
const y = t.filterInputs.has(f) || t.controlInputIds.has(f) ? f : ((u = a.findFilterInput({ inputId: f })) == null ? void 0 : u.input.id) ?? f;
|
|
1875
1878
|
if (y !== f && c[y]) continue;
|
|
1876
|
-
const p =
|
|
1879
|
+
const p = rn(e, y);
|
|
1877
1880
|
if (p) {
|
|
1878
1881
|
if (p !== "applies") {
|
|
1879
1882
|
r.push({
|
|
@@ -1937,15 +1940,15 @@ function nn(e, t, n, r) {
|
|
|
1937
1940
|
}
|
|
1938
1941
|
function O(e, t, n, r = {}) {
|
|
1939
1942
|
const o = new Map(
|
|
1940
|
-
|
|
1943
|
+
N(e).map(({ card: a }) => [a.id, a])
|
|
1941
1944
|
), i = {};
|
|
1942
1945
|
for (const [a, s] of Object.entries(t ?? {})) {
|
|
1943
1946
|
const l = o.get(a);
|
|
1944
|
-
if (l &&
|
|
1945
|
-
|
|
1947
|
+
if (l && Jr(l)) {
|
|
1948
|
+
Yr(s) || (i[a] = s);
|
|
1946
1949
|
continue;
|
|
1947
1950
|
}
|
|
1948
|
-
if (l && r.sessionSorts &&
|
|
1951
|
+
if (l && r.sessionSorts && Xr(l)) {
|
|
1949
1952
|
s.sort && (i[a] = { sort: s.sort });
|
|
1950
1953
|
continue;
|
|
1951
1954
|
}
|
|
@@ -1953,12 +1956,12 @@ function O(e, t, n, r = {}) {
|
|
|
1953
1956
|
kind: "setting-no-longer-applies",
|
|
1954
1957
|
target: "card",
|
|
1955
1958
|
id: a,
|
|
1956
|
-
reason:
|
|
1959
|
+
reason: W(e, a) ? "not-eligible" : "removed"
|
|
1957
1960
|
});
|
|
1958
1961
|
}
|
|
1959
1962
|
return i;
|
|
1960
1963
|
}
|
|
1961
|
-
function
|
|
1964
|
+
function Ki(e, t, n) {
|
|
1962
1965
|
if (t) {
|
|
1963
1966
|
if (J(e, t)) return t;
|
|
1964
1967
|
n.push({
|
|
@@ -1969,8 +1972,8 @@ function Ni(e, t, n) {
|
|
|
1969
1972
|
});
|
|
1970
1973
|
}
|
|
1971
1974
|
}
|
|
1972
|
-
const
|
|
1973
|
-
function
|
|
1975
|
+
const Ne = (e, t) => pe(e ?? null, t ?? null);
|
|
1976
|
+
function an(e) {
|
|
1974
1977
|
return {
|
|
1975
1978
|
adHocFilterValues: e.adHocFilterValues,
|
|
1976
1979
|
controlOverrides: e.controlOverrides,
|
|
@@ -1989,34 +1992,34 @@ function X(e, t) {
|
|
|
1989
1992
|
tableSettings: t
|
|
1990
1993
|
};
|
|
1991
1994
|
}
|
|
1992
|
-
function
|
|
1995
|
+
function sn(e, t) {
|
|
1993
1996
|
const n = t.dashboardInputValues === e.baseline.hostInputValues && !t.inlineFilterValuesMap && !t.adHocFilterValues.length && t.controlOverrides === e.baseline.controlOverrides;
|
|
1994
1997
|
return {
|
|
1995
1998
|
selectedSheetId: t.selectedSheetId,
|
|
1996
1999
|
// Overlay: the bookmark's values on the baseline's runtime values.
|
|
1997
|
-
inputs: n ? e.baseline.materializedInputs :
|
|
2000
|
+
inputs: n ? e.baseline.materializedInputs : je(e.dashboard, t, e.calendar),
|
|
1998
2001
|
tableSettings: t.tableSettings
|
|
1999
2002
|
};
|
|
2000
2003
|
}
|
|
2001
|
-
function
|
|
2002
|
-
const n =
|
|
2004
|
+
function j(e, t) {
|
|
2005
|
+
const n = an(t), r = t.restore ?? n;
|
|
2003
2006
|
return {
|
|
2004
2007
|
...n,
|
|
2005
2008
|
appliedBookmarkId: t.appliedBookmarkId,
|
|
2006
2009
|
rememberedWrites: t.rememberedWrites ?? [],
|
|
2007
2010
|
notices: t.notices ?? [],
|
|
2008
|
-
opened:
|
|
2011
|
+
opened: sn(e, r),
|
|
2009
2012
|
restore: r
|
|
2010
2013
|
};
|
|
2011
2014
|
}
|
|
2012
2015
|
function ot(e, t, n, r) {
|
|
2013
|
-
const { dashboard: o, baseline: i } = e, a = [], s =
|
|
2016
|
+
const { dashboard: o, baseline: i } = e, a = [], s = Pt(t.state, _e), l = s.ok ? s.value : {};
|
|
2014
2017
|
for (const y of s.ok ? s.issues : [])
|
|
2015
|
-
a.push(
|
|
2016
|
-
const c =
|
|
2018
|
+
a.push(Gi(y));
|
|
2019
|
+
const c = nn(o), d = en(
|
|
2017
2020
|
c.compatibility,
|
|
2018
|
-
|
|
2019
|
-
), u =
|
|
2021
|
+
on(o, c, l.inputs, a)
|
|
2022
|
+
), u = Ki(o, l.selectedSheetId, a) ?? i.selectedSheetId, f = O(
|
|
2020
2023
|
o,
|
|
2021
2024
|
l.tableSettings,
|
|
2022
2025
|
a
|
|
@@ -2025,11 +2028,11 @@ function ot(e, t, n, r) {
|
|
|
2025
2028
|
n,
|
|
2026
2029
|
void 0
|
|
2027
2030
|
);
|
|
2028
|
-
return
|
|
2031
|
+
return j(e, {
|
|
2029
2032
|
appliedBookmarkId: t.id,
|
|
2030
2033
|
// A bookmark opens without ad-hoc values, as today (P4a-02 f).
|
|
2031
2034
|
adHocFilterValues: [],
|
|
2032
|
-
controlOverrides:
|
|
2035
|
+
controlOverrides: tn(
|
|
2033
2036
|
o,
|
|
2034
2037
|
i.controlOverrides,
|
|
2035
2038
|
d.controlValues
|
|
@@ -2039,8 +2042,8 @@ function ot(e, t, n, r) {
|
|
|
2039
2042
|
i.hostInputValues,
|
|
2040
2043
|
d.runtime
|
|
2041
2044
|
),
|
|
2042
|
-
...
|
|
2043
|
-
|
|
2045
|
+
...ln(
|
|
2046
|
+
qi(
|
|
2044
2047
|
qe(o, e.calendar),
|
|
2045
2048
|
d.inlineFilterValues
|
|
2046
2049
|
)
|
|
@@ -2051,7 +2054,7 @@ function ot(e, t, n, r) {
|
|
|
2051
2054
|
{ ...f, ...m }
|
|
2052
2055
|
),
|
|
2053
2056
|
rememberedWrites: r.writeRemembered ? Object.entries(f).filter(
|
|
2054
|
-
([y, p]) => !
|
|
2057
|
+
([y, p]) => !Ne(m[y], p)
|
|
2055
2058
|
).map(([y, p]) => ({
|
|
2056
2059
|
kind: "set",
|
|
2057
2060
|
cardId: y,
|
|
@@ -2060,7 +2063,7 @@ function ot(e, t, n, r) {
|
|
|
2060
2063
|
notices: a
|
|
2061
2064
|
});
|
|
2062
2065
|
}
|
|
2063
|
-
function
|
|
2066
|
+
function Gi(e) {
|
|
2064
2067
|
return {
|
|
2065
2068
|
kind: "setting-no-longer-applies",
|
|
2066
2069
|
target: e.target,
|
|
@@ -2068,7 +2071,7 @@ function ji(e) {
|
|
|
2068
2071
|
reason: "invalid"
|
|
2069
2072
|
};
|
|
2070
2073
|
}
|
|
2071
|
-
function
|
|
2074
|
+
function ln(e) {
|
|
2072
2075
|
return e ? { inlineFilterValuesMap: e } : {};
|
|
2073
2076
|
}
|
|
2074
2077
|
function it(e, t, n) {
|
|
@@ -2084,12 +2087,12 @@ function it(e, t, n) {
|
|
|
2084
2087
|
// Live slots stay, except a filter value this template no longer accepts:
|
|
2085
2088
|
// that filter loads its new default, as the old list did. The resolver
|
|
2086
2089
|
// ignores slots this template no longer has.
|
|
2087
|
-
dashboardInputValues:
|
|
2090
|
+
dashboardInputValues: zi(
|
|
2088
2091
|
r,
|
|
2089
2092
|
t.dashboardInputValues
|
|
2090
2093
|
),
|
|
2091
|
-
...
|
|
2092
|
-
|
|
2094
|
+
...ln(
|
|
2095
|
+
ji(
|
|
2093
2096
|
r,
|
|
2094
2097
|
qe(r, e.calendar),
|
|
2095
2098
|
t.inlineFilterValuesMap ?? {}
|
|
@@ -2104,13 +2107,13 @@ function it(e, t, n) {
|
|
|
2104
2107
|
)
|
|
2105
2108
|
};
|
|
2106
2109
|
}
|
|
2107
|
-
function
|
|
2110
|
+
function Ms(e) {
|
|
2108
2111
|
const { dashboard: t, baseline: n, event: r } = e, o = e.rememberedTableSettings;
|
|
2109
2112
|
switch (r.kind) {
|
|
2110
2113
|
case "initial-load":
|
|
2111
2114
|
return r.defaultBookmark ? ot(e, r.defaultBookmark, o, {
|
|
2112
2115
|
writeRemembered: !1
|
|
2113
|
-
}) :
|
|
2116
|
+
}) : j(e, {
|
|
2114
2117
|
appliedBookmarkId: null,
|
|
2115
2118
|
...X(
|
|
2116
2119
|
n,
|
|
@@ -2141,7 +2144,7 @@ function Fs(e) {
|
|
|
2141
2144
|
n,
|
|
2142
2145
|
O(t, o, void 0)
|
|
2143
2146
|
);
|
|
2144
|
-
return
|
|
2147
|
+
return j(e, {
|
|
2145
2148
|
appliedBookmarkId: (a == null ? void 0 : a.appliedBookmarkId) ?? null,
|
|
2146
2149
|
...l,
|
|
2147
2150
|
notices: (a == null ? void 0 : a.notices) ?? [],
|
|
@@ -2153,7 +2156,7 @@ function Fs(e) {
|
|
|
2153
2156
|
writeRemembered: !0
|
|
2154
2157
|
});
|
|
2155
2158
|
case "open-default-view":
|
|
2156
|
-
return
|
|
2159
|
+
return j(e, {
|
|
2157
2160
|
appliedBookmarkId: null,
|
|
2158
2161
|
...X(
|
|
2159
2162
|
n,
|
|
@@ -2161,7 +2164,7 @@ function Fs(e) {
|
|
|
2161
2164
|
)
|
|
2162
2165
|
});
|
|
2163
2166
|
case "reset-to-default-view":
|
|
2164
|
-
return
|
|
2167
|
+
return j(e, {
|
|
2165
2168
|
appliedBookmarkId: null,
|
|
2166
2169
|
...X(n, {}),
|
|
2167
2170
|
rememberedWrites: [{ kind: "clear-all" }]
|
|
@@ -2177,13 +2180,13 @@ function Fs(e) {
|
|
|
2177
2180
|
...Object.keys(l),
|
|
2178
2181
|
...Object.keys(s)
|
|
2179
2182
|
])) {
|
|
2180
|
-
if (
|
|
2183
|
+
if (Ne(l[d], s[d])) continue;
|
|
2181
2184
|
const u = s[d];
|
|
2182
2185
|
c.push(
|
|
2183
2186
|
u ? { kind: "set", cardId: d, settings: u } : { kind: "clear", cardId: d }
|
|
2184
2187
|
);
|
|
2185
2188
|
}
|
|
2186
|
-
return
|
|
2189
|
+
return j(e, {
|
|
2187
2190
|
appliedBookmarkId: r.applied.appliedBookmarkId,
|
|
2188
2191
|
...i,
|
|
2189
2192
|
selectedSheetId: J(t, i.selectedSheetId) ? i.selectedSheetId : n.selectedSheetId,
|
|
@@ -2195,11 +2198,11 @@ function Fs(e) {
|
|
|
2195
2198
|
}
|
|
2196
2199
|
}
|
|
2197
2200
|
}
|
|
2198
|
-
function
|
|
2201
|
+
function ks(e) {
|
|
2199
2202
|
const { dashboard: t, calendar: n } = e, r = e.hostControlValues, o = {
|
|
2200
2203
|
...e.baseline,
|
|
2201
2204
|
controlOverrides: r,
|
|
2202
|
-
materializedInputs:
|
|
2205
|
+
materializedInputs: je(
|
|
2203
2206
|
t,
|
|
2204
2207
|
{
|
|
2205
2208
|
adHocFilterValues: [],
|
|
@@ -2211,19 +2214,19 @@ function Ds(e) {
|
|
|
2211
2214
|
};
|
|
2212
2215
|
let i = r;
|
|
2213
2216
|
if (e.appliedBookmark) {
|
|
2214
|
-
const l =
|
|
2217
|
+
const l = Pt(
|
|
2215
2218
|
e.appliedBookmark.state,
|
|
2216
2219
|
_e
|
|
2217
|
-
), c =
|
|
2220
|
+
), c = nn(t), d = en(
|
|
2218
2221
|
c.compatibility,
|
|
2219
|
-
|
|
2222
|
+
on(
|
|
2220
2223
|
t,
|
|
2221
2224
|
c,
|
|
2222
2225
|
l.ok ? l.value.inputs : void 0,
|
|
2223
2226
|
[]
|
|
2224
2227
|
)
|
|
2225
2228
|
).controlValues;
|
|
2226
|
-
i =
|
|
2229
|
+
i = tn(t, r, d);
|
|
2227
2230
|
}
|
|
2228
2231
|
const a = e.applied;
|
|
2229
2232
|
if (!a) return { baseline: o, controlOverrides: i, applied: null };
|
|
@@ -2235,12 +2238,12 @@ function Ds(e) {
|
|
|
2235
2238
|
...a,
|
|
2236
2239
|
controlOverrides: i,
|
|
2237
2240
|
restore: s,
|
|
2238
|
-
opened:
|
|
2241
|
+
opened: sn({ dashboard: t, baseline: o, calendar: n }, s)
|
|
2239
2242
|
}
|
|
2240
2243
|
};
|
|
2241
2244
|
}
|
|
2242
|
-
function
|
|
2243
|
-
const r =
|
|
2245
|
+
function xs(e, t, n) {
|
|
2246
|
+
const r = an(n.values);
|
|
2244
2247
|
return {
|
|
2245
2248
|
...r,
|
|
2246
2249
|
appliedBookmarkId: t,
|
|
@@ -2254,7 +2257,7 @@ const at = (e) => JSON.stringify([e.scope, e.target, e.inputId]);
|
|
|
2254
2257
|
function ee(e) {
|
|
2255
2258
|
return !e || e.status === "cleared" && !e.comparisonSelection;
|
|
2256
2259
|
}
|
|
2257
|
-
function
|
|
2260
|
+
function cn(e, t) {
|
|
2258
2261
|
const n = new Map(
|
|
2259
2262
|
$(e).map((i) => [at(i), i])
|
|
2260
2263
|
), r = new Map(
|
|
@@ -2272,8 +2275,8 @@ function sn(e, t) {
|
|
|
2272
2275
|
r.has(i) || ee(a.slot) || le(o, a, { status: "cleared" });
|
|
2273
2276
|
return fe(o);
|
|
2274
2277
|
}
|
|
2275
|
-
function
|
|
2276
|
-
const { dashboard: t, baseline: n, current: r } = e, o =
|
|
2278
|
+
function Ps(e) {
|
|
2279
|
+
const { dashboard: t, baseline: n, current: r } = e, o = cn(n.materializedInputs, r.inputs), i = O(
|
|
2277
2280
|
t,
|
|
2278
2281
|
r.tableSettings,
|
|
2279
2282
|
void 0
|
|
@@ -2285,31 +2288,31 @@ function Ts(e) {
|
|
|
2285
2288
|
...Object.keys(i).length ? { tableSettings: i } : {}
|
|
2286
2289
|
};
|
|
2287
2290
|
}
|
|
2288
|
-
function
|
|
2291
|
+
function Hi(e) {
|
|
2289
2292
|
const t = /* @__PURE__ */ new Map();
|
|
2290
2293
|
for (const n of Pe(e))
|
|
2291
2294
|
n.label && t.set(n.id, n.label);
|
|
2292
2295
|
return t;
|
|
2293
2296
|
}
|
|
2294
|
-
function
|
|
2297
|
+
function Ui(e, t, n) {
|
|
2295
2298
|
var o, i;
|
|
2296
|
-
const r =
|
|
2299
|
+
const r = Tt(n);
|
|
2297
2300
|
if (r) {
|
|
2298
|
-
const a = (i = (o =
|
|
2301
|
+
const a = (i = (o = W(e, r)) == null ? void 0 : o.title) == null ? void 0 : i.trim();
|
|
2299
2302
|
return a ? `Selection in ${a}` : "Selection";
|
|
2300
2303
|
}
|
|
2301
2304
|
return t.get(n) ?? n;
|
|
2302
2305
|
}
|
|
2303
|
-
function
|
|
2306
|
+
function ws(e) {
|
|
2304
2307
|
var c, d;
|
|
2305
|
-
const { dashboard: t, opened: n, current: r } = e, o = [], i =
|
|
2308
|
+
const { dashboard: t, opened: n, current: r } = e, o = [], i = Hi(t), a = /* @__PURE__ */ new Set();
|
|
2306
2309
|
for (const u of $(
|
|
2307
|
-
|
|
2310
|
+
cn(n.inputs, r.inputs)
|
|
2308
2311
|
))
|
|
2309
2312
|
a.has(u.inputId) || (a.add(u.inputId), o.push({
|
|
2310
2313
|
target: "input",
|
|
2311
2314
|
inputId: u.inputId,
|
|
2312
|
-
label:
|
|
2315
|
+
label: Ui(t, i, u.inputId)
|
|
2313
2316
|
}));
|
|
2314
2317
|
(n.selectedSheetId ?? null) !== (r.selectedSheetId ?? null) && o.push({ target: "sheet" });
|
|
2315
2318
|
const s = O(
|
|
@@ -2325,10 +2328,10 @@ function Vs(e) {
|
|
|
2325
2328
|
...Object.keys(s),
|
|
2326
2329
|
...Object.keys(l)
|
|
2327
2330
|
]))
|
|
2328
|
-
|
|
2331
|
+
Ne(s[u], l[u]) || o.push({
|
|
2329
2332
|
target: "table",
|
|
2330
2333
|
cardId: u,
|
|
2331
|
-
cardTitle: ((d = (c =
|
|
2334
|
+
cardTitle: ((d = (c = W(t, u)) == null ? void 0 : c.title) == null ? void 0 : d.trim()) || "Table"
|
|
2332
2335
|
});
|
|
2333
2336
|
return o;
|
|
2334
2337
|
}
|
|
@@ -2346,7 +2349,7 @@ function st(e) {
|
|
|
2346
2349
|
}
|
|
2347
2350
|
};
|
|
2348
2351
|
}
|
|
2349
|
-
function
|
|
2352
|
+
function Qi(e) {
|
|
2350
2353
|
var o, i;
|
|
2351
2354
|
if ((o = e.card.sql) != null && o.trim())
|
|
2352
2355
|
return {
|
|
@@ -2356,7 +2359,7 @@ function Ki(e) {
|
|
|
2356
2359
|
};
|
|
2357
2360
|
const t = e.inputs.filter((a) => !U(a.filter)).map((a) => ({
|
|
2358
2361
|
input: a,
|
|
2359
|
-
resolution:
|
|
2362
|
+
resolution: sr({
|
|
2360
2363
|
filter: a.filter,
|
|
2361
2364
|
filterValue: a.filterValue,
|
|
2362
2365
|
effectiveFilterValue: a.effectiveFilterValue,
|
|
@@ -2370,7 +2373,7 @@ function Ki(e) {
|
|
|
2370
2373
|
const n = e.inputs.find(
|
|
2371
2374
|
(a) => U(a.filter)
|
|
2372
2375
|
);
|
|
2373
|
-
if (n && ((i = n.filterValue) == null ? void 0 : i.filterId) === n.filterId && n.effectiveFilterValue.filterId === n.filterId &&
|
|
2376
|
+
if (n && ((i = n.filterValue) == null ? void 0 : i.filterId) === n.filterId && n.effectiveFilterValue.filterId === n.filterId && lr(n.effectiveFilterValue))
|
|
2374
2377
|
return {
|
|
2375
2378
|
inputs: e.inputs,
|
|
2376
2379
|
fieldCandidates: t,
|
|
@@ -2400,7 +2403,7 @@ function Ki(e) {
|
|
|
2400
2403
|
}
|
|
2401
2404
|
} : { inputs: e.inputs, fieldCandidates: t, resolution: { status: "none" } };
|
|
2402
2405
|
}
|
|
2403
|
-
function
|
|
2406
|
+
function Os(e) {
|
|
2404
2407
|
const t = {
|
|
2405
2408
|
ownerCardCount: 0,
|
|
2406
2409
|
matchingCardCount: 0,
|
|
@@ -2418,7 +2421,7 @@ function Ms(e) {
|
|
|
2418
2421
|
}
|
|
2419
2422
|
return t;
|
|
2420
2423
|
}
|
|
2421
|
-
const
|
|
2424
|
+
const $i = /* @__PURE__ */ new Set([
|
|
2422
2425
|
"between",
|
|
2423
2426
|
"not between",
|
|
2424
2427
|
"=",
|
|
@@ -2429,36 +2432,36 @@ const Gi = /* @__PURE__ */ new Set([
|
|
|
2429
2432
|
"<=",
|
|
2430
2433
|
"is null",
|
|
2431
2434
|
"is not null"
|
|
2432
|
-
]),
|
|
2435
|
+
]), Zi = /^(\d{4}-\d{2}-\d{2})T/, Wi = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(?::\d{2}(?:\.\d{1,9})?)?(?:Z|[+-]\d{2}:\d{2})$/;
|
|
2433
2436
|
function ze(e) {
|
|
2434
|
-
return
|
|
2437
|
+
return $i.has(e);
|
|
2435
2438
|
}
|
|
2436
|
-
function
|
|
2439
|
+
function Ji(e, t) {
|
|
2437
2440
|
if (e instanceof Date)
|
|
2438
2441
|
return Number.isNaN(e.getTime()) ? e : t ? Qe(e, t, "yyyy-MM-dd") : e.toISOString().slice(0, 10);
|
|
2439
2442
|
if (typeof e != "string")
|
|
2440
2443
|
return e;
|
|
2441
2444
|
const n = e.trim();
|
|
2442
|
-
if (t &&
|
|
2445
|
+
if (t && Wi.test(n)) {
|
|
2443
2446
|
const o = new Date(n);
|
|
2444
2447
|
if (!Number.isNaN(o.getTime()))
|
|
2445
2448
|
return Qe(o, t, "yyyy-MM-dd");
|
|
2446
2449
|
}
|
|
2447
|
-
const r =
|
|
2450
|
+
const r = Zi.exec(n);
|
|
2448
2451
|
return r ? r[1] : e;
|
|
2449
2452
|
}
|
|
2450
|
-
function
|
|
2453
|
+
function dn(e, t) {
|
|
2451
2454
|
return Array.isArray(e) ? e.map(
|
|
2452
|
-
(n) =>
|
|
2455
|
+
(n) => Ji(n, t)
|
|
2453
2456
|
) : e;
|
|
2454
2457
|
}
|
|
2455
|
-
function
|
|
2458
|
+
function un(e) {
|
|
2456
2459
|
return typeof e.allowMinutePrecision == "boolean" ? e.allowMinutePrecision : we(
|
|
2457
2460
|
e.dashboard,
|
|
2458
2461
|
e.semanticExecutionPayload
|
|
2459
2462
|
).allEligibleTargetsAreDateTime;
|
|
2460
2463
|
}
|
|
2461
|
-
function
|
|
2464
|
+
function fn(e) {
|
|
2462
2465
|
const {
|
|
2463
2466
|
globalDateFilter: t,
|
|
2464
2467
|
globalDateFilterValue: n,
|
|
@@ -2472,7 +2475,7 @@ function dn(e) {
|
|
|
2472
2475
|
...n,
|
|
2473
2476
|
filterId: t.id
|
|
2474
2477
|
};
|
|
2475
|
-
const i = n, a = i.temporalPrecision === "minute" || te(i.relativeMeta) === "minute", s = !o && a, l = i.operation === "is null" || i.operation === "is not null" ? [] : s ?
|
|
2478
|
+
const i = n, a = i.temporalPrecision === "minute" || te(i.relativeMeta) === "minute", s = !o && a, l = i.operation === "is null" || i.operation === "is not null" ? [] : s ? dn(i.values, r) : i.values, c = o || te(i.relativeMeta) !== "minute" ? i.relativeMeta : void 0, d = o && i.temporalPrecision === "minute" ? i.temporalPrecision : void 0, {
|
|
2476
2479
|
relativeMeta: u,
|
|
2477
2480
|
temporalPrecision: f,
|
|
2478
2481
|
values: m,
|
|
@@ -2486,19 +2489,19 @@ function dn(e) {
|
|
|
2486
2489
|
...d ? { temporalPrecision: d } : {}
|
|
2487
2490
|
};
|
|
2488
2491
|
}
|
|
2489
|
-
function
|
|
2492
|
+
function Yi(e) {
|
|
2490
2493
|
const t = L(e.filters);
|
|
2491
2494
|
if (!t)
|
|
2492
2495
|
return e.filterValues;
|
|
2493
|
-
const n =
|
|
2494
|
-
return e.filterValues.map((r) => r.filterId !== t.id ? r :
|
|
2496
|
+
const n = un(e);
|
|
2497
|
+
return e.filterValues.map((r) => r.filterId !== t.id ? r : fn({
|
|
2495
2498
|
globalDateFilter: t,
|
|
2496
2499
|
globalDateFilterValue: r,
|
|
2497
2500
|
timezone: e.timezone,
|
|
2498
2501
|
allowMinutePrecision: n
|
|
2499
2502
|
}) || r);
|
|
2500
2503
|
}
|
|
2501
|
-
function
|
|
2504
|
+
function pn(e) {
|
|
2502
2505
|
const {
|
|
2503
2506
|
globalDateFilter: t,
|
|
2504
2507
|
globalDateFilterValue: n,
|
|
@@ -2509,7 +2512,7 @@ function un(e) {
|
|
|
2509
2512
|
} = e;
|
|
2510
2513
|
if (!t || !n || !r || !ze(n.operation))
|
|
2511
2514
|
return null;
|
|
2512
|
-
const s = n, l =
|
|
2515
|
+
const s = n, l = cr(
|
|
2513
2516
|
r.dataType
|
|
2514
2517
|
), c = a && l, d = s.temporalPrecision === "minute" || te(s.relativeMeta) === "minute", u = c && s.temporalPrecision === "minute" ? s.temporalPrecision : void 0, f = c || te(s.relativeMeta) !== "minute" ? s.relativeMeta : void 0, m = !c && d;
|
|
2515
2518
|
return {
|
|
@@ -2518,7 +2521,7 @@ function un(e) {
|
|
|
2518
2521
|
name: r.qualifiedFieldName || r.name,
|
|
2519
2522
|
operation: s.operation,
|
|
2520
2523
|
valueType: "date",
|
|
2521
|
-
values: s.operation === "is null" || s.operation === "is not null" ? [] : m ?
|
|
2524
|
+
values: s.operation === "is null" || s.operation === "is not null" ? [] : m ? dn(
|
|
2522
2525
|
s.values,
|
|
2523
2526
|
i
|
|
2524
2527
|
) : s.values,
|
|
@@ -2543,25 +2546,25 @@ function un(e) {
|
|
|
2543
2546
|
...u ? { temporalPrecision: u } : {}
|
|
2544
2547
|
};
|
|
2545
2548
|
}
|
|
2546
|
-
function
|
|
2549
|
+
function E(e) {
|
|
2547
2550
|
return typeof e == "string" ? e.trim() : "";
|
|
2548
2551
|
}
|
|
2549
|
-
function
|
|
2552
|
+
function Xi(e) {
|
|
2550
2553
|
var t;
|
|
2551
2554
|
return (((t = e.semanticContext) == null ? void 0 : t.selectedEntities) || []).filter((n) => typeof n == "object" && n !== null).filter((n) => n.type === "dataset").map((n) => {
|
|
2552
2555
|
var r;
|
|
2553
2556
|
return {
|
|
2554
|
-
domainId:
|
|
2555
|
-
datasetName:
|
|
2556
|
-
selectedEntityId:
|
|
2557
|
+
domainId: E(n.domainId) || E((r = e.semanticContext) == null ? void 0 : r.semanticDomainId),
|
|
2558
|
+
datasetName: E(n.name),
|
|
2559
|
+
selectedEntityId: E(n.id)
|
|
2557
2560
|
};
|
|
2558
2561
|
}).filter((n) => n.domainId && n.datasetName);
|
|
2559
2562
|
}
|
|
2560
|
-
function
|
|
2563
|
+
function ea(e) {
|
|
2561
2564
|
var l, c, d, u, f;
|
|
2562
2565
|
if (U(e) || (l = e.sql) != null && l.trim())
|
|
2563
2566
|
return null;
|
|
2564
|
-
const t =
|
|
2567
|
+
const t = Xi(e), n = E((c = e.semanticContext) == null ? void 0 : c.semanticDomainId), r = E((d = e.fieldMeta) == null ? void 0 : d.entityId), o = E((u = e.fieldMeta) == null ? void 0 : u.entityName), i = E((f = e.fieldMeta) == null ? void 0 : f.entityType) === "dataset", a = t.find(
|
|
2565
2568
|
(m) => r && m.selectedEntityId === r
|
|
2566
2569
|
);
|
|
2567
2570
|
if (a)
|
|
@@ -2574,22 +2577,22 @@ function Zi(e) {
|
|
|
2574
2577
|
datasetName: o
|
|
2575
2578
|
} : null);
|
|
2576
2579
|
}
|
|
2577
|
-
function
|
|
2580
|
+
function ta(e) {
|
|
2578
2581
|
var o, i;
|
|
2579
2582
|
const { filter: t, semanticExecutionPayload: n } = e;
|
|
2580
2583
|
if (!n)
|
|
2581
2584
|
return null;
|
|
2582
|
-
const r =
|
|
2585
|
+
const r = ea(t);
|
|
2583
2586
|
return r && ((i = (o = n.domainsById[r.domainId]) == null ? void 0 : o.datasetsByName[r.datasetName]) == null ? void 0 : i.primaryDateField) || null;
|
|
2584
2587
|
}
|
|
2585
|
-
function
|
|
2588
|
+
function mn(e) {
|
|
2586
2589
|
const t = L(e.filters);
|
|
2587
2590
|
return t ? e.filterValues.filter(
|
|
2588
2591
|
(n) => n.filterId !== t.id
|
|
2589
2592
|
) : e.filterValues;
|
|
2590
2593
|
}
|
|
2591
|
-
function
|
|
2592
|
-
const t = L(e.filters), n =
|
|
2594
|
+
function _s(e) {
|
|
2595
|
+
const t = L(e.filters), n = mn({
|
|
2593
2596
|
filters: e.filters,
|
|
2594
2597
|
filterValues: e.filterValues
|
|
2595
2598
|
});
|
|
@@ -2597,10 +2600,10 @@ function ks(e) {
|
|
|
2597
2600
|
return n;
|
|
2598
2601
|
const r = e.filterValues.find(
|
|
2599
2602
|
(a) => a.filterId === t.id
|
|
2600
|
-
), o =
|
|
2603
|
+
), o = ta({
|
|
2601
2604
|
filter: e.filter,
|
|
2602
2605
|
semanticExecutionPayload: e.semanticExecutionPayload
|
|
2603
|
-
}), i =
|
|
2606
|
+
}), i = pn({
|
|
2604
2607
|
globalDateFilter: t,
|
|
2605
2608
|
globalDateFilterValue: r,
|
|
2606
2609
|
resolvedPrimaryDateField: o || void 0,
|
|
@@ -2610,18 +2613,18 @@ function ks(e) {
|
|
|
2610
2613
|
});
|
|
2611
2614
|
return i ? [i, ...n] : n;
|
|
2612
2615
|
}
|
|
2613
|
-
function
|
|
2616
|
+
function na(e) {
|
|
2614
2617
|
var d;
|
|
2615
2618
|
const t = L(e.filters), n = t ? e.cardFilterValues.find(
|
|
2616
2619
|
(u) => u.filterId === t.id
|
|
2617
2620
|
) : void 0, r = t ? e.cardFilterValues.filter(
|
|
2618
2621
|
(u) => u.filterId !== t.id
|
|
2619
|
-
) : e.cardFilterValues, o = e.resolvedPrimaryDateField ??
|
|
2622
|
+
) : e.cardFilterValues, o = e.resolvedPrimaryDateField ?? It({
|
|
2620
2623
|
card: e.card,
|
|
2621
2624
|
cardConfig: e.cardConfig,
|
|
2622
2625
|
resolvedFields: e.resolvedFields,
|
|
2623
2626
|
semanticExecutionPayload: e.semanticExecutionPayload
|
|
2624
|
-
}), i =
|
|
2627
|
+
}), i = pn({
|
|
2625
2628
|
globalDateFilter: t,
|
|
2626
2629
|
globalDateFilterValue: n,
|
|
2627
2630
|
resolvedPrimaryDateField: o || void 0,
|
|
@@ -2642,7 +2645,7 @@ function Yi(e) {
|
|
|
2642
2645
|
effectiveFilterValue: f,
|
|
2643
2646
|
mappedFilterValue: (m = e.mappedFilterValuesByInputId) == null ? void 0 : m.get(u.inputId)
|
|
2644
2647
|
}] : [];
|
|
2645
|
-
})) || [], c =
|
|
2648
|
+
})) || [], c = Qi({
|
|
2646
2649
|
inputs: l,
|
|
2647
2650
|
temporalBinding: o,
|
|
2648
2651
|
card: e.card
|
|
@@ -2653,13 +2656,13 @@ function Yi(e) {
|
|
|
2653
2656
|
dateComparisonPlan: c
|
|
2654
2657
|
};
|
|
2655
2658
|
}
|
|
2656
|
-
function
|
|
2657
|
-
const t = L(e.filters), n =
|
|
2659
|
+
function As(e) {
|
|
2660
|
+
const t = L(e.filters), n = un(e), r = t ? e.filterValues.find(
|
|
2658
2661
|
(a) => a.filterId === t.id
|
|
2659
|
-
) : void 0, o =
|
|
2662
|
+
) : void 0, o = mn(e);
|
|
2660
2663
|
return !t || !r || !ze(r.operation) ? o : [
|
|
2661
2664
|
{
|
|
2662
|
-
...
|
|
2665
|
+
...fn({
|
|
2663
2666
|
globalDateFilter: t,
|
|
2664
2667
|
globalDateFilterValue: r,
|
|
2665
2668
|
timezone: e.timezone,
|
|
@@ -2671,26 +2674,26 @@ function xs(e) {
|
|
|
2671
2674
|
...o
|
|
2672
2675
|
];
|
|
2673
2676
|
}
|
|
2674
|
-
class
|
|
2677
|
+
class ra extends Error {
|
|
2675
2678
|
}
|
|
2676
|
-
function
|
|
2677
|
-
const n = new Map((e ?
|
|
2679
|
+
function Es(e, t) {
|
|
2680
|
+
const n = new Map((e ? N(e) : []).map(({ card: r }) => [r.id, r]));
|
|
2678
2681
|
return t && n.set(t.id, t), [...n.values()].flatMap((r) => {
|
|
2679
2682
|
const o = Ve(r);
|
|
2680
|
-
return o.status === "ready" ?
|
|
2683
|
+
return o.status === "ready" ? Fi(o.config.spec, r.controlBindings) : [];
|
|
2681
2684
|
});
|
|
2682
2685
|
}
|
|
2683
|
-
function
|
|
2684
|
-
const r =
|
|
2686
|
+
function oa(e, t, n) {
|
|
2687
|
+
const r = dr(e);
|
|
2685
2688
|
if (!r) throw new Error("Matrix card definition is required.");
|
|
2686
|
-
const o = n &&
|
|
2689
|
+
const o = n && vi({
|
|
2687
2690
|
...n,
|
|
2688
2691
|
spec: r.spec,
|
|
2689
2692
|
catalog: t.map((d) => ({ ...d, id: d.resolvedField.id }))
|
|
2690
|
-
}), i = o ? { ...r, spec: o.spec } : r, a =
|
|
2693
|
+
}), i = o ? { ...r, spec: o.spec } : r, a = ur(t), s = fr(t), l = (d) => {
|
|
2691
2694
|
const u = s(d, i.spec.source);
|
|
2692
2695
|
if (!(!u && d.derivedField)) {
|
|
2693
|
-
if (!u) throw new
|
|
2696
|
+
if (!u) throw new ra(`Matrix field metadata is unavailable: ${d.name}`);
|
|
2694
2697
|
return { ...u, ...d.derivedField ? { derivedField: d.derivedField } : {} };
|
|
2695
2698
|
}
|
|
2696
2699
|
}, c = {
|
|
@@ -2712,18 +2715,18 @@ function ea(e, t, n) {
|
|
|
2712
2715
|
};
|
|
2713
2716
|
return { config: i, fields: c, resolveField: a };
|
|
2714
2717
|
}
|
|
2715
|
-
function
|
|
2718
|
+
function ia(e) {
|
|
2716
2719
|
const t = e.filter(Boolean);
|
|
2717
2720
|
if (t.length !== 0)
|
|
2718
2721
|
return t.length === 1 ? t[0] : {
|
|
2719
|
-
id:
|
|
2722
|
+
id: Ct(),
|
|
2720
2723
|
logicalOperator: "AND",
|
|
2721
2724
|
negate: !1,
|
|
2722
2725
|
conditions: [],
|
|
2723
2726
|
groups: t
|
|
2724
2727
|
};
|
|
2725
2728
|
}
|
|
2726
|
-
function
|
|
2729
|
+
function aa(e) {
|
|
2727
2730
|
if (!e) return;
|
|
2728
2731
|
const t = (n) => ({
|
|
2729
2732
|
logicalOperator: n.logicalOperator,
|
|
@@ -2743,12 +2746,14 @@ function na(e) {
|
|
|
2743
2746
|
});
|
|
2744
2747
|
return JSON.stringify(t(e));
|
|
2745
2748
|
}
|
|
2746
|
-
function
|
|
2749
|
+
function sa(e, t, n = {}) {
|
|
2747
2750
|
const r = e.metricColumns || [];
|
|
2748
2751
|
if (r.length === 0) return e;
|
|
2749
|
-
|
|
2752
|
+
if (n.hidden)
|
|
2753
|
+
return { ...e, metricColumns: r.map((c) => ({ ...c, comparison: { mode: "off" } })) };
|
|
2754
|
+
const o = pr.includes(
|
|
2750
2755
|
t
|
|
2751
|
-
), i =
|
|
2756
|
+
), i = mr.includes(
|
|
2752
2757
|
t
|
|
2753
2758
|
), a = (c) => {
|
|
2754
2759
|
var d;
|
|
@@ -2764,7 +2769,7 @@ function ra(e, t, n = {}) {
|
|
|
2764
2769
|
const l = r.map(
|
|
2765
2770
|
(c) => {
|
|
2766
2771
|
var f;
|
|
2767
|
-
const d =
|
|
2772
|
+
const d = eo(c);
|
|
2768
2773
|
if (d === "none")
|
|
2769
2774
|
return c;
|
|
2770
2775
|
let u = c;
|
|
@@ -2779,43 +2784,45 @@ function ra(e, t, n = {}) {
|
|
|
2779
2784
|
metricColumns: l
|
|
2780
2785
|
} : e;
|
|
2781
2786
|
}
|
|
2782
|
-
function
|
|
2783
|
-
return
|
|
2787
|
+
function Bs(e, t = {}) {
|
|
2788
|
+
return gn(yn(e, t));
|
|
2784
2789
|
}
|
|
2785
|
-
function
|
|
2790
|
+
function gn(e) {
|
|
2786
2791
|
const t = [e.drill, e.selections, e.zoom, e.search];
|
|
2787
|
-
return e.authored ?
|
|
2792
|
+
return e.authored ? uo(e.authored, t, Ct()) : ia(t);
|
|
2788
2793
|
}
|
|
2789
|
-
function
|
|
2794
|
+
function yn(e, t = {}) {
|
|
2790
2795
|
return {
|
|
2791
|
-
authored: t.includeAuthoredFilters === !1 ? void 0 :
|
|
2792
|
-
drill:
|
|
2793
|
-
selections:
|
|
2796
|
+
authored: t.includeAuthoredFilters === !1 ? void 0 : gr(e),
|
|
2797
|
+
drill: Vi(t.drill, e.id),
|
|
2798
|
+
selections: co(t.selections ?? []),
|
|
2794
2799
|
...t.zoom ? { zoom: t.zoom } : {}
|
|
2795
2800
|
};
|
|
2796
2801
|
}
|
|
2797
|
-
function
|
|
2798
|
-
|
|
2799
|
-
|
|
2802
|
+
function la(e, t, n) {
|
|
2803
|
+
var o;
|
|
2804
|
+
const r = Wt(e, t);
|
|
2805
|
+
return Te(e) ? sa(
|
|
2800
2806
|
{ ...r, filters: n },
|
|
2801
2807
|
e.type,
|
|
2802
|
-
// A data variable's card keeps its own period comparison (P3b-03)
|
|
2803
|
-
|
|
2808
|
+
// A data variable's card keeps its own period comparison (P3b-03); a card saved
|
|
2809
|
+
// with its comparisons hidden runs none (compare-with CW-D28).
|
|
2810
|
+
{ keepsPeriodComparison: to(e), hidden: Et((o = e.preferences) == null ? void 0 : o.comparisonPresentation) }
|
|
2804
2811
|
) : r;
|
|
2805
2812
|
}
|
|
2806
|
-
function
|
|
2807
|
-
const t =
|
|
2813
|
+
function ca(e) {
|
|
2814
|
+
const t = yr(e);
|
|
2808
2815
|
return {
|
|
2809
2816
|
contextMode: t,
|
|
2810
2817
|
shouldApplyDashboardFilters: !t || t === "full"
|
|
2811
2818
|
};
|
|
2812
2819
|
}
|
|
2813
|
-
function
|
|
2820
|
+
function da(e) {
|
|
2814
2821
|
const t = e.dashboardControls || [], n = e.card.controls || [], r = /* @__PURE__ */ new Set([
|
|
2815
2822
|
...t.map((o) => o.id),
|
|
2816
2823
|
...n.map((o) => o.id)
|
|
2817
2824
|
]);
|
|
2818
|
-
return
|
|
2825
|
+
return bn(
|
|
2819
2826
|
e.card,
|
|
2820
2827
|
{
|
|
2821
2828
|
controlValues: ht({
|
|
@@ -2830,7 +2837,7 @@ function aa(e) {
|
|
|
2830
2837
|
e.presentationControlIds
|
|
2831
2838
|
);
|
|
2832
2839
|
}
|
|
2833
|
-
function
|
|
2840
|
+
function bn(e, t, n) {
|
|
2834
2841
|
const o = t.controlBindings.filter(
|
|
2835
2842
|
(f) => !de(f)
|
|
2836
2843
|
), i = new Set(
|
|
@@ -2862,35 +2869,35 @@ function gn(e, t, n) {
|
|
|
2862
2869
|
controlBindings: d
|
|
2863
2870
|
};
|
|
2864
2871
|
}
|
|
2865
|
-
function
|
|
2872
|
+
function ua(e, t) {
|
|
2866
2873
|
return !!t && e.endsWith(t);
|
|
2867
2874
|
}
|
|
2868
|
-
function
|
|
2875
|
+
function In(e, t) {
|
|
2869
2876
|
return (e ?? []).filter(
|
|
2870
|
-
(n) =>
|
|
2877
|
+
(n) => ua(n.filterId, t)
|
|
2871
2878
|
);
|
|
2872
2879
|
}
|
|
2873
|
-
function
|
|
2874
|
-
var r;
|
|
2875
|
-
if (t)
|
|
2880
|
+
function Cn(e, t, n) {
|
|
2881
|
+
var r, o;
|
|
2882
|
+
if (!(!t || e.dataVariableId || Et((r = e.preferences) == null ? void 0 : r.comparisonPresentation)))
|
|
2876
2883
|
return {
|
|
2877
2884
|
selection: t,
|
|
2878
|
-
...((
|
|
2885
|
+
...((o = e.preferences) == null ? void 0 : o.inheritGlobalComparison) === !1 ? { inheritGlobalComparison: !1 } : {},
|
|
2879
2886
|
...n ? { owner: n } : {}
|
|
2880
2887
|
};
|
|
2881
2888
|
}
|
|
2882
|
-
function
|
|
2889
|
+
function fa(e) {
|
|
2883
2890
|
if (e.resolution.status === "resolved")
|
|
2884
|
-
return
|
|
2891
|
+
return Cn(
|
|
2885
2892
|
e.card,
|
|
2886
2893
|
e.resolution.resolvedOwner.selection,
|
|
2887
2894
|
e.resolution.resolvedOwner.owner
|
|
2888
2895
|
);
|
|
2889
2896
|
}
|
|
2890
|
-
function
|
|
2897
|
+
function pa(e) {
|
|
2891
2898
|
return `Set ${e.join(", ")} to run this card.`;
|
|
2892
2899
|
}
|
|
2893
|
-
function
|
|
2900
|
+
function ma({
|
|
2894
2901
|
dashboardInputContext: e,
|
|
2895
2902
|
shouldApplyDashboardFilters: t
|
|
2896
2903
|
}) {
|
|
@@ -2898,14 +2905,14 @@ function da({
|
|
|
2898
2905
|
return e.activeFilters;
|
|
2899
2906
|
const n = new Set(
|
|
2900
2907
|
e.inputs.flatMap(
|
|
2901
|
-
(r) => r.kind === "filter" &&
|
|
2908
|
+
(r) => r.kind === "filter" && wt(r) ? [r.filter.id] : []
|
|
2902
2909
|
)
|
|
2903
2910
|
);
|
|
2904
2911
|
return e.activeFilters.filter(
|
|
2905
2912
|
(r) => n.has(r.filterId)
|
|
2906
2913
|
);
|
|
2907
2914
|
}
|
|
2908
|
-
function
|
|
2915
|
+
function ga({
|
|
2909
2916
|
dashboardInputFilterValues: e,
|
|
2910
2917
|
adHocFilterValues: t
|
|
2911
2918
|
}) {
|
|
@@ -2917,7 +2924,7 @@ function ua({
|
|
|
2917
2924
|
return n;
|
|
2918
2925
|
}
|
|
2919
2926
|
function ce(e, t) {
|
|
2920
|
-
const n = t.shouldApplyDashboardFilters ?
|
|
2927
|
+
const n = t.shouldApplyDashboardFilters ? In(t.adHocFilterValues, t.selectedSheetId) : [], r = t.selectionFilterValues ?? [];
|
|
2921
2928
|
if (!t.dashboardInputContext)
|
|
2922
2929
|
return {
|
|
2923
2930
|
status: "ready",
|
|
@@ -2935,14 +2942,14 @@ function ce(e, t) {
|
|
|
2935
2942
|
return u.kind === "filter" && ((f = u.compatibility) == null ? void 0 : f.source) === "cardInlineFilter" ? [u.filter.id] : [];
|
|
2936
2943
|
}
|
|
2937
2944
|
)
|
|
2938
|
-
), s =
|
|
2945
|
+
), s = ma({
|
|
2939
2946
|
dashboardInputContext: t.dashboardInputContext,
|
|
2940
2947
|
shouldApplyDashboardFilters: t.shouldApplyDashboardFilters
|
|
2941
2948
|
}).filter((u) => !i.has(u.filterId)), l = s.filter(
|
|
2942
2949
|
(u) => !a.has(u.filterId)
|
|
2943
2950
|
), c = s.filter(
|
|
2944
2951
|
(u) => a.has(u.filterId)
|
|
2945
|
-
), d =
|
|
2952
|
+
), d = br({
|
|
2946
2953
|
card: e,
|
|
2947
2954
|
inputs: o,
|
|
2948
2955
|
resolvedInputs: t.dashboardInputContext.resolvedInputs,
|
|
@@ -2955,7 +2962,7 @@ function ce(e, t) {
|
|
|
2955
2962
|
} : {
|
|
2956
2963
|
status: "ready",
|
|
2957
2964
|
filterValues: [
|
|
2958
|
-
...
|
|
2965
|
+
...ga({
|
|
2959
2966
|
dashboardInputFilterValues: [
|
|
2960
2967
|
...l,
|
|
2961
2968
|
...d.filterValues
|
|
@@ -2968,7 +2975,7 @@ function ce(e, t) {
|
|
|
2968
2975
|
mappingDispositions: d.dispositions
|
|
2969
2976
|
};
|
|
2970
2977
|
}
|
|
2971
|
-
function
|
|
2978
|
+
function ya(e, t) {
|
|
2972
2979
|
const n = e.dashboardInputContext;
|
|
2973
2980
|
if (!n) return [];
|
|
2974
2981
|
const r = new Set(
|
|
@@ -2979,10 +2986,10 @@ function fa(e, t) {
|
|
|
2979
2986
|
return n.resolvedInputs.flatMap((i) => {
|
|
2980
2987
|
if (!i.missingRequiredValue) return [];
|
|
2981
2988
|
const a = o.get(i.id);
|
|
2982
|
-
return a ? a.kind === "filter" && (!e.shouldApplyDashboardFilters && !
|
|
2989
|
+
return a ? a.kind === "filter" && (!e.shouldApplyDashboardFilters && !wt(a) || r.has(a.id)) ? [] : [i.label] : [];
|
|
2983
2990
|
});
|
|
2984
2991
|
}
|
|
2985
|
-
function
|
|
2992
|
+
function ba({
|
|
2986
2993
|
card: e,
|
|
2987
2994
|
cardConfig: t,
|
|
2988
2995
|
input: n,
|
|
@@ -2995,7 +3002,7 @@ function pa({
|
|
|
2995
3002
|
var p;
|
|
2996
3003
|
const l = n.dashboardInputContext ? n.dashboardInputContext.inputs.flatMap(
|
|
2997
3004
|
(b) => b.kind === "filter" ? [b.filter] : []
|
|
2998
|
-
) : [], c = ce(e, n), d =
|
|
3005
|
+
) : [], c = ce(e, n), d = ya(
|
|
2999
3006
|
n,
|
|
3000
3007
|
c.mappingDispositions
|
|
3001
3008
|
);
|
|
@@ -3015,7 +3022,7 @@ function pa({
|
|
|
3015
3022
|
mappingDispositions: c.mappingDispositions,
|
|
3016
3023
|
missingRequiredLabels: []
|
|
3017
3024
|
};
|
|
3018
|
-
const u =
|
|
3025
|
+
const u = na({
|
|
3019
3026
|
card: e,
|
|
3020
3027
|
cardConfig: t,
|
|
3021
3028
|
filters: l,
|
|
@@ -3033,10 +3040,10 @@ function pa({
|
|
|
3033
3040
|
)
|
|
3034
3041
|
}), f = L(l), m = !!(f && u.cardFilterValues.some(
|
|
3035
3042
|
(b) => b.filterId === f.id
|
|
3036
|
-
)), y = u.resolvedPrimaryDateField && !((p = e.sql) != null && p.trim()) ? u.dateComparisonPlan.inputs.length ?
|
|
3043
|
+
)), y = u.resolvedPrimaryDateField && !((p = e.sql) != null && p.trim()) ? u.dateComparisonPlan.inputs.length ? fa({
|
|
3037
3044
|
card: e,
|
|
3038
3045
|
resolution: u.dateComparisonPlan.resolution
|
|
3039
|
-
}) : m ?
|
|
3046
|
+
}) : m ? Cn(
|
|
3040
3047
|
e,
|
|
3041
3048
|
n.globalDateComparisonSelection
|
|
3042
3049
|
) : void 0 : void 0;
|
|
@@ -3048,7 +3055,7 @@ function pa({
|
|
|
3048
3055
|
mappingDispositions: c.mappingDispositions
|
|
3049
3056
|
};
|
|
3050
3057
|
}
|
|
3051
|
-
function
|
|
3058
|
+
function Ia({
|
|
3052
3059
|
card: e,
|
|
3053
3060
|
dashboard: t,
|
|
3054
3061
|
transientContexts: n,
|
|
@@ -3064,16 +3071,16 @@ function ma({
|
|
|
3064
3071
|
includeAuthoredFilters: f
|
|
3065
3072
|
}) {
|
|
3066
3073
|
var K, Y, Le, Ke;
|
|
3067
|
-
const m =
|
|
3074
|
+
const m = Gt(t);
|
|
3068
3075
|
for (const q of e.controlBindings || [])
|
|
3069
3076
|
de(q) && m.add(q.controlId);
|
|
3070
|
-
const { shouldApplyDashboardFilters: y } =
|
|
3077
|
+
const { shouldApplyDashboardFilters: y } = ca(n), p = u != null && u.inputs.length ? u : void 0, b = ((u == null ? void 0 : u.selections) ?? []).filter(
|
|
3071
3078
|
(q) => q.status === "apply"
|
|
3072
|
-
), I =
|
|
3079
|
+
), I = yn(e, {
|
|
3073
3080
|
includeAuthoredFilters: f,
|
|
3074
3081
|
selections: b,
|
|
3075
3082
|
drill: r == null ? void 0 : r.drill
|
|
3076
|
-
}),
|
|
3083
|
+
}), C = {
|
|
3077
3084
|
adHocFilterValues: i || [],
|
|
3078
3085
|
selectedSheetId: a,
|
|
3079
3086
|
inlineFilterValues: (s == null ? void 0 : s[e.id]) || [],
|
|
@@ -3094,33 +3101,33 @@ function ma({
|
|
|
3094
3101
|
...p != null && p.dateComparisonInputs ? {
|
|
3095
3102
|
dateComparisonInputs: p.dateComparisonInputs
|
|
3096
3103
|
} : {}
|
|
3097
|
-
},
|
|
3098
|
-
filterValues:
|
|
3104
|
+
}, h = ce(e, C), S = {
|
|
3105
|
+
filterValues: h.status === "ready" ? h.filterValues : [],
|
|
3099
3106
|
selectionFilters: I.selections
|
|
3100
|
-
}, g = rt(S), V =
|
|
3101
|
-
|
|
3107
|
+
}, g = rt(S), V = wi(r == null ? void 0 : r.zoom, (K = e.config) == null ? void 0 : K.groupByColumns, g), P = Ir(
|
|
3108
|
+
Si(e, r == null ? void 0 : r.drill),
|
|
3102
3109
|
(Y = r == null ? void 0 : r.search) == null ? void 0 : Y.text,
|
|
3103
3110
|
o
|
|
3104
3111
|
), x = {
|
|
3105
3112
|
...I,
|
|
3106
3113
|
...V ? { zoom: V.filterGroup } : {},
|
|
3107
3114
|
...P ? { search: P } : {}
|
|
3108
|
-
}, v = V ? rt({ ...S, zoom: V.zoom }) : g, T =
|
|
3115
|
+
}, v = V ? rt({ ...S, zoom: V.zoom }) : g, T = gn(x), M = f === !1 ? me(T, !0) : T, k = la(
|
|
3109
3116
|
e,
|
|
3110
3117
|
r == null ? void 0 : r.drill,
|
|
3111
3118
|
M
|
|
3112
|
-
), F =
|
|
3119
|
+
), F = xi(k, r == null ? void 0 : r.grainPick, {
|
|
3113
3120
|
currentFingerprint: v,
|
|
3114
3121
|
drillActive: (((Le = r == null ? void 0 : r.drill) == null ? void 0 : Le.steps.length) ?? 0) > 0
|
|
3115
|
-
}), D =
|
|
3122
|
+
}), D = Cr({ ...e, config: F }, o) ?? F, w = Nt(D, {
|
|
3116
3123
|
cardType: e.type,
|
|
3117
3124
|
dataSource: e.dataSource,
|
|
3118
|
-
temporalResultOwner:
|
|
3125
|
+
temporalResultOwner: vt({
|
|
3119
3126
|
hasExecutableConfig: ue(D, e.type),
|
|
3120
3127
|
sql: e.sql,
|
|
3121
3128
|
normalizedPython: Me(e.python || "")
|
|
3122
3129
|
})
|
|
3123
|
-
}) || D,
|
|
3130
|
+
}) || D, B = aa(M) || "", R = p ? bn(
|
|
3124
3131
|
e,
|
|
3125
3132
|
{
|
|
3126
3133
|
controlValues: p.controlValues,
|
|
@@ -3129,7 +3136,7 @@ function ma({
|
|
|
3129
3136
|
controlBindings: p.controlBindings
|
|
3130
3137
|
},
|
|
3131
3138
|
m
|
|
3132
|
-
) :
|
|
3139
|
+
) : da({
|
|
3133
3140
|
card: e,
|
|
3134
3141
|
presentationControlIds: m,
|
|
3135
3142
|
dashboardControls: l,
|
|
@@ -3137,21 +3144,21 @@ function ma({
|
|
|
3137
3144
|
cardControlValues: d == null ? void 0 : d[e.id]
|
|
3138
3145
|
});
|
|
3139
3146
|
return {
|
|
3140
|
-
filterCompilationInput:
|
|
3147
|
+
filterCompilationInput: C,
|
|
3141
3148
|
...R,
|
|
3142
3149
|
resolvedFilters: M,
|
|
3143
3150
|
resolvedFilterParts: x,
|
|
3144
|
-
drillSteps: ((Ke = r == null ? void 0 : r.drill) == null ? void 0 : Ke.steps) ??
|
|
3151
|
+
drillSteps: ((Ke = r == null ? void 0 : r.drill) == null ? void 0 : Ke.steps) ?? hr,
|
|
3145
3152
|
dateContextKey: v,
|
|
3146
3153
|
zoomContextKey: g,
|
|
3147
3154
|
...V ? { activeZoom: V.zoom } : {},
|
|
3148
3155
|
finalConfig: D,
|
|
3149
3156
|
queryRelevantConfig: w,
|
|
3150
|
-
finalFiltersKey:
|
|
3157
|
+
finalFiltersKey: B
|
|
3151
3158
|
};
|
|
3152
3159
|
}
|
|
3153
|
-
function
|
|
3154
|
-
const r =
|
|
3160
|
+
function hn(e, t, n) {
|
|
3161
|
+
const r = ba({
|
|
3155
3162
|
resolvedFields: t.resolvedDateFields,
|
|
3156
3163
|
...n,
|
|
3157
3164
|
card: e,
|
|
@@ -3170,8 +3177,8 @@ function In(e, t, n) {
|
|
|
3170
3177
|
dateComparisonInputs: o.dateComparisonInputs
|
|
3171
3178
|
}, compiledFilters: r };
|
|
3172
3179
|
}
|
|
3173
|
-
function
|
|
3174
|
-
const r =
|
|
3180
|
+
function Ca(e, t, n) {
|
|
3181
|
+
const r = vr(e), o = hn(e, t, {
|
|
3175
3182
|
resolvedPrimaryDateField: n.resolvedPrimaryDateField,
|
|
3176
3183
|
timezone: n.calendarContext.tz,
|
|
3177
3184
|
allowMinutePrecision: n.allowGlobalDateMinutePrecision
|
|
@@ -3182,12 +3189,12 @@ function ga(e, t, n) {
|
|
|
3182
3189
|
cardFilterValues: a,
|
|
3183
3190
|
resolvedPrimaryDateField: s,
|
|
3184
3191
|
globalDateComparison: l
|
|
3185
|
-
} = i, { queryKey: c, queryInputIdentity: d, paginationConfig: u } =
|
|
3192
|
+
} = i, { queryKey: c, queryInputIdentity: d, paginationConfig: u } = di(
|
|
3186
3193
|
e,
|
|
3187
3194
|
o.queryContext,
|
|
3188
3195
|
n.calendarContext,
|
|
3189
3196
|
{ resolvePaginationConfig: n.resolvePaginationConfig }
|
|
3190
|
-
), f = t.queryRelevantConfig, m = Me(e.python || ""), y =
|
|
3197
|
+
), f = t.queryRelevantConfig, m = Me(e.python || ""), y = vt({
|
|
3191
3198
|
hasExecutableConfig: ue(f, e.type),
|
|
3192
3199
|
sql: e.sql,
|
|
3193
3200
|
normalizedPython: m
|
|
@@ -3223,25 +3230,25 @@ function ga(e, t, n) {
|
|
|
3223
3230
|
}
|
|
3224
3231
|
};
|
|
3225
3232
|
}
|
|
3226
|
-
const lt = [],
|
|
3227
|
-
function
|
|
3233
|
+
const lt = [], ha = [], va = {};
|
|
3234
|
+
function Rs(e, t) {
|
|
3228
3235
|
return {
|
|
3229
3236
|
sheetId: e.sheetId,
|
|
3230
3237
|
sectionId: e.sectionId,
|
|
3231
3238
|
documentFilterValues: e.documentFilterValues ?? lt,
|
|
3232
|
-
documentControlDefinitions: e.documentControlDefinitions ??
|
|
3233
|
-
documentControlValues: e.documentControlValues ??
|
|
3239
|
+
documentControlDefinitions: e.documentControlDefinitions ?? ha,
|
|
3240
|
+
documentControlValues: e.documentControlValues ?? va,
|
|
3234
3241
|
editorFilterValues: t ?? lt
|
|
3235
3242
|
};
|
|
3236
3243
|
}
|
|
3237
|
-
function
|
|
3244
|
+
function Fa({
|
|
3238
3245
|
card: e,
|
|
3239
3246
|
dashboard: t,
|
|
3240
3247
|
runtime: n,
|
|
3241
3248
|
dashboardRuntimeValues: r,
|
|
3242
3249
|
calendar: o
|
|
3243
3250
|
}) {
|
|
3244
|
-
const i =
|
|
3251
|
+
const i = Ft({
|
|
3245
3252
|
dashboard: t,
|
|
3246
3253
|
dashboardInputValues: r.dashboardInputValues,
|
|
3247
3254
|
transientContexts: void 0
|
|
@@ -3262,7 +3269,7 @@ function Ia({
|
|
|
3262
3269
|
...n.documentFilterValues
|
|
3263
3270
|
];
|
|
3264
3271
|
return {
|
|
3265
|
-
card: s ? e :
|
|
3272
|
+
card: s ? e : Da(
|
|
3266
3273
|
e,
|
|
3267
3274
|
n.documentControlDefinitions
|
|
3268
3275
|
),
|
|
@@ -3280,7 +3287,7 @@ function Ia({
|
|
|
3280
3287
|
dashboardInputContext: a
|
|
3281
3288
|
};
|
|
3282
3289
|
}
|
|
3283
|
-
function
|
|
3290
|
+
function Da(e, t) {
|
|
3284
3291
|
if (t.length === 0)
|
|
3285
3292
|
return e;
|
|
3286
3293
|
const n = /* @__PURE__ */ new Map();
|
|
@@ -3293,11 +3300,12 @@ function ha(e, t) {
|
|
|
3293
3300
|
controls: Array.from(n.values())
|
|
3294
3301
|
};
|
|
3295
3302
|
}
|
|
3296
|
-
function
|
|
3303
|
+
function qs({
|
|
3297
3304
|
card: e,
|
|
3298
3305
|
place: t,
|
|
3299
3306
|
source: n
|
|
3300
3307
|
}) {
|
|
3308
|
+
({ card: e, place: t, source: n } = vn(e, t, n));
|
|
3301
3309
|
const r = Se(e, t, n);
|
|
3302
3310
|
return {
|
|
3303
3311
|
card: r.card,
|
|
@@ -3305,9 +3313,9 @@ function _s({
|
|
|
3305
3313
|
inputContext: r.inputContext
|
|
3306
3314
|
};
|
|
3307
3315
|
}
|
|
3308
|
-
function
|
|
3316
|
+
function Sa(e, t, n) {
|
|
3309
3317
|
return {
|
|
3310
|
-
calendarContext: n ??
|
|
3318
|
+
calendarContext: n ?? io,
|
|
3311
3319
|
allowGlobalDateMinutePrecision: we(
|
|
3312
3320
|
e,
|
|
3313
3321
|
t
|
|
@@ -3316,17 +3324,17 @@ function Ca(e, t, n) {
|
|
|
3316
3324
|
globalCacheConfig: e.globalCacheConfig
|
|
3317
3325
|
};
|
|
3318
3326
|
}
|
|
3319
|
-
function
|
|
3320
|
-
return
|
|
3327
|
+
function js(e, t) {
|
|
3328
|
+
return Sn(
|
|
3321
3329
|
e,
|
|
3322
3330
|
t,
|
|
3323
3331
|
t.allowGlobalDateMinutePrecision
|
|
3324
3332
|
);
|
|
3325
3333
|
}
|
|
3326
|
-
function
|
|
3327
|
-
const r =
|
|
3334
|
+
function Ta(e, t, n = {}) {
|
|
3335
|
+
const r = Dn(e, t);
|
|
3328
3336
|
return {
|
|
3329
|
-
...
|
|
3337
|
+
...Ca(e.card, e.context, {
|
|
3330
3338
|
resolvedPrimaryDateField: r,
|
|
3331
3339
|
calendarContext: t.calendarContext,
|
|
3332
3340
|
allowGlobalDateMinutePrecision: t.allowGlobalDateMinutePrecision,
|
|
@@ -3336,7 +3344,7 @@ function va(e, t, n = {}) {
|
|
|
3336
3344
|
resolvedPrimaryDateField: r
|
|
3337
3345
|
};
|
|
3338
3346
|
}
|
|
3339
|
-
function
|
|
3347
|
+
function Va({
|
|
3340
3348
|
card: e,
|
|
3341
3349
|
place: t,
|
|
3342
3350
|
source: n,
|
|
@@ -3345,35 +3353,36 @@ function Fa({
|
|
|
3345
3353
|
withRequest: i = !1
|
|
3346
3354
|
}) {
|
|
3347
3355
|
var p, b;
|
|
3348
|
-
|
|
3356
|
+
({ card: e, place: t, source: n } = vn(e, t, n));
|
|
3357
|
+
const { dashboard: a } = n, s = e.id, l = (I, C) => {
|
|
3349
3358
|
var S;
|
|
3350
|
-
let
|
|
3359
|
+
let h;
|
|
3351
3360
|
try {
|
|
3352
3361
|
const g = Ve(I);
|
|
3353
3362
|
if (g.status === "invalid") throw g.error;
|
|
3354
3363
|
const V = Se(
|
|
3355
3364
|
I,
|
|
3356
|
-
|
|
3365
|
+
C,
|
|
3357
3366
|
n,
|
|
3358
3367
|
g.status === "absent"
|
|
3359
3368
|
);
|
|
3360
|
-
if (
|
|
3369
|
+
if (h = V.context, g.status === "absent")
|
|
3361
3370
|
return { status: "ready", value: { assembled: V } };
|
|
3362
3371
|
if (!o)
|
|
3363
3372
|
return {
|
|
3364
3373
|
status: "blocked",
|
|
3365
3374
|
reason: "metadata",
|
|
3366
3375
|
message: "Matrix field metadata is required.",
|
|
3367
|
-
context:
|
|
3376
|
+
context: h
|
|
3368
3377
|
};
|
|
3369
|
-
const P =
|
|
3378
|
+
const P = Di(g.config.spec, h), x = o.filter(
|
|
3370
3379
|
(D) => D.field.source && P.some(
|
|
3371
|
-
(w) =>
|
|
3380
|
+
(w) => Ce(w, D.field.source)
|
|
3372
3381
|
)
|
|
3373
|
-
), v =
|
|
3382
|
+
), v = oa(I, x, h), { params: T } = V, M = T.dashboardInputContext;
|
|
3374
3383
|
v.config = {
|
|
3375
3384
|
...v.config,
|
|
3376
|
-
presentation:
|
|
3385
|
+
presentation: Zo(
|
|
3377
3386
|
I,
|
|
3378
3387
|
v.config,
|
|
3379
3388
|
{
|
|
@@ -3395,7 +3404,7 @@ function Fa({
|
|
|
3395
3404
|
const k = {
|
|
3396
3405
|
...I,
|
|
3397
3406
|
config: { matrix: v.config }
|
|
3398
|
-
}, F = Se(k,
|
|
3407
|
+
}, F = Se(k, C, n, !1);
|
|
3399
3408
|
return {
|
|
3400
3409
|
status: "ready",
|
|
3401
3410
|
value: {
|
|
@@ -3412,7 +3421,7 @@ function Fa({
|
|
|
3412
3421
|
status: "blocked",
|
|
3413
3422
|
reason: "configuration",
|
|
3414
3423
|
message: g instanceof Error ? g.message : "Card configuration is invalid.",
|
|
3415
|
-
context:
|
|
3424
|
+
context: h
|
|
3416
3425
|
};
|
|
3417
3426
|
}
|
|
3418
3427
|
}, c = l(e, t);
|
|
@@ -3425,22 +3434,22 @@ function Fa({
|
|
|
3425
3434
|
missingRequiredLabels: [],
|
|
3426
3435
|
message: c.message
|
|
3427
3436
|
};
|
|
3428
|
-
const { assembled: d, matrix: u } = c.value, f =
|
|
3437
|
+
const { assembled: d, matrix: u } = c.value, f = Sa(
|
|
3429
3438
|
a,
|
|
3430
3439
|
r,
|
|
3431
3440
|
n.calendar
|
|
3432
|
-
), m = d.context.filterCompilationInput, y =
|
|
3441
|
+
), m = d.context.filterCompilationInput, y = Fr(a);
|
|
3433
3442
|
try {
|
|
3434
|
-
const I = ce(d.card, m),
|
|
3435
|
-
let
|
|
3436
|
-
if (
|
|
3443
|
+
const I = ce(d.card, m), C = u && y && I.status === "ready" && I.filterValues.some((V) => V.filterId === y.id);
|
|
3444
|
+
let h = f.allowGlobalDateMinutePrecision;
|
|
3445
|
+
if (C) {
|
|
3437
3446
|
const V = (p = m.dashboardInputContext) == null ? void 0 : p.inputs.find(
|
|
3438
3447
|
(F) => F.kind === "filter" && F.filter.id === y.id
|
|
3439
|
-
), x =
|
|
3440
|
-
({ card: F, sheet: D }) => !V ||
|
|
3448
|
+
), x = Dr(a, y).filter(
|
|
3449
|
+
({ card: F, sheet: D }) => !V || no(V, {
|
|
3441
3450
|
cardId: F.id,
|
|
3442
3451
|
sheetId: D.id,
|
|
3443
|
-
sheetKind:
|
|
3452
|
+
sheetKind: Dt(D) ? "document" : "dashboard"
|
|
3444
3453
|
})
|
|
3445
3454
|
).map(({ card: F, sheet: D }) => ({
|
|
3446
3455
|
card: F,
|
|
@@ -3460,13 +3469,13 @@ function Fa({
|
|
|
3460
3469
|
})
|
|
3461
3470
|
), M = x.flatMap(
|
|
3462
3471
|
({ card: F, value: D }) => {
|
|
3463
|
-
const w = F.id,
|
|
3464
|
-
if (!
|
|
3472
|
+
const w = F.id, B = D.status === "ready" ? D.value.assembled.context : D.context;
|
|
3473
|
+
if (!B) return [w];
|
|
3465
3474
|
const R = D.status === "ready" ? D.value.assembled.card : F;
|
|
3466
3475
|
try {
|
|
3467
3476
|
const K = ce(
|
|
3468
3477
|
R,
|
|
3469
|
-
|
|
3478
|
+
B.filterCompilationInput
|
|
3470
3479
|
);
|
|
3471
3480
|
return K.status === "blocked" || K.filterValues.some((Y) => Y.filterId === y.id) ? [w] : [];
|
|
3472
3481
|
} catch {
|
|
@@ -3490,9 +3499,9 @@ function Fa({
|
|
|
3490
3499
|
missingRequiredLabels: [],
|
|
3491
3500
|
message: `Date precision requires field metadata and valid inputs for: ${k.unresolvedCardIds.join(", ")}.`
|
|
3492
3501
|
};
|
|
3493
|
-
|
|
3502
|
+
h = k.allEligibleTargetsAreDateTime;
|
|
3494
3503
|
}
|
|
3495
|
-
const S =
|
|
3504
|
+
const S = Sn(d, f, h);
|
|
3496
3505
|
if (S.status === "blocked")
|
|
3497
3506
|
return {
|
|
3498
3507
|
status: "blocked",
|
|
@@ -3500,10 +3509,10 @@ function Fa({
|
|
|
3500
3509
|
mappingDispositions: S.mappingDispositions,
|
|
3501
3510
|
reason: S.reason,
|
|
3502
3511
|
missingRequiredLabels: S.missingRequiredLabels,
|
|
3503
|
-
...S.reason === "requiredInput" ? { message:
|
|
3512
|
+
...S.reason === "requiredInput" ? { message: pa(S.missingRequiredLabels) } : {},
|
|
3504
3513
|
...S.resolvedPrimaryDateField ? { resolvedPrimaryDateField: S.resolvedPrimaryDateField } : {}
|
|
3505
3514
|
};
|
|
3506
|
-
const g = i && !u ?
|
|
3515
|
+
const g = i && !u ? Ta(d, f) : void 0;
|
|
3507
3516
|
return {
|
|
3508
3517
|
...S,
|
|
3509
3518
|
...u ? { matrix: u } : {},
|
|
@@ -3513,11 +3522,11 @@ function Fa({
|
|
|
3513
3522
|
...(g == null ? void 0 : g.status) === "ready" ? {
|
|
3514
3523
|
request: {
|
|
3515
3524
|
...g.requestPayloadBase,
|
|
3516
|
-
...
|
|
3525
|
+
...bi({
|
|
3517
3526
|
card: d.card,
|
|
3518
3527
|
finalConfig: d.context.finalConfig,
|
|
3519
3528
|
documentSection: t.kind === "documentSection" ? {} : void 0,
|
|
3520
|
-
page:
|
|
3529
|
+
page: yi(d.card)
|
|
3521
3530
|
})
|
|
3522
3531
|
}
|
|
3523
3532
|
} : {}
|
|
@@ -3533,7 +3542,25 @@ function Fa({
|
|
|
3533
3542
|
};
|
|
3534
3543
|
}
|
|
3535
3544
|
}
|
|
3536
|
-
function
|
|
3545
|
+
function vn(e, t, n) {
|
|
3546
|
+
var s, l, c;
|
|
3547
|
+
const r = ((s = n.editor) == null ? void 0 : s.calculatedFields) ?? n.dashboard.calculatedFields;
|
|
3548
|
+
if (!(r != null && r.length)) return { card: e, place: t, source: n };
|
|
3549
|
+
const o = (d) => Sr(d, r), i = {
|
|
3550
|
+
...n,
|
|
3551
|
+
dashboard: yt(n.dashboard, r),
|
|
3552
|
+
adHocFilterValues: o(n.adHocFilterValues),
|
|
3553
|
+
inlineFilterValuesMap: o(n.inlineFilterValuesMap),
|
|
3554
|
+
dashboardInputValues: o(n.dashboardInputValues),
|
|
3555
|
+
...n.editor ? { editor: { ...n.editor, inlineFilterValuesMap: o(n.editor.inlineFilterValuesMap) } } : {}
|
|
3556
|
+
}, a = i.dashboard === n.dashboard && i.adHocFilterValues === n.adHocFilterValues && i.inlineFilterValuesMap === n.inlineFilterValuesMap && i.dashboardInputValues === n.dashboardInputValues && ((l = i.editor) == null ? void 0 : l.inlineFilterValuesMap) === ((c = n.editor) == null ? void 0 : c.inlineFilterValuesMap);
|
|
3557
|
+
return {
|
|
3558
|
+
card: o(e),
|
|
3559
|
+
place: t.kind === "documentSection" ? { ...t, section: o(t.section) } : t,
|
|
3560
|
+
source: a ? n : i
|
|
3561
|
+
};
|
|
3562
|
+
}
|
|
3563
|
+
function Ma(e, t) {
|
|
3537
3564
|
const n = e.editor ? {
|
|
3538
3565
|
...e.inlineFilterValuesMap,
|
|
3539
3566
|
...Object.fromEntries(
|
|
@@ -3541,7 +3568,7 @@ function Da(e, t) {
|
|
|
3541
3568
|
(a) => a[1] !== void 0
|
|
3542
3569
|
)
|
|
3543
3570
|
)
|
|
3544
|
-
} : e.inlineFilterValuesMap, r = n == null ? void 0 : n[t.id], o =
|
|
3571
|
+
} : e.inlineFilterValuesMap, r = n == null ? void 0 : n[t.id], o = Tr(t, r), i = o === r ? n : { ...n, [t.id]: o };
|
|
3545
3572
|
return {
|
|
3546
3573
|
dashboardInputValues: e.dashboardInputValues,
|
|
3547
3574
|
adHocFilterValues: e.adHocFilterValues,
|
|
@@ -3552,8 +3579,8 @@ function Da(e, t) {
|
|
|
3552
3579
|
}
|
|
3553
3580
|
function Se(e, t, n, r) {
|
|
3554
3581
|
var c, d;
|
|
3555
|
-
const { dashboard: o } = n, i =
|
|
3556
|
-
...
|
|
3582
|
+
const { dashboard: o } = n, i = Ma(n, e), a = t.kind === "documentSection" ? {
|
|
3583
|
+
...Fa({
|
|
3557
3584
|
card: e,
|
|
3558
3585
|
dashboard: o,
|
|
3559
3586
|
runtime: t.section,
|
|
@@ -3562,20 +3589,20 @@ function Se(e, t, n, r) {
|
|
|
3562
3589
|
}),
|
|
3563
3590
|
selectedSheetId: t.section.sheetId,
|
|
3564
3591
|
includeAuthoredFilters: r
|
|
3565
|
-
} :
|
|
3566
|
-
return (d = e.sql) != null && d.trim() && l &&
|
|
3592
|
+
} : ka(e, t.sheetId, n, i, r), s = Ia(a), l = (c = e.config) == null ? void 0 : c.rowLimit;
|
|
3593
|
+
return (d = e.sql) != null && d.trim() && l && Fn(o, e.id) && (s.sqlRowLimit = l), {
|
|
3567
3594
|
card: a.card,
|
|
3568
3595
|
params: a,
|
|
3569
3596
|
context: s,
|
|
3570
3597
|
inputContext: a.dashboardInputContext
|
|
3571
3598
|
};
|
|
3572
3599
|
}
|
|
3573
|
-
function
|
|
3600
|
+
function Fn(e, t) {
|
|
3574
3601
|
return (e.variables ?? []).some((n) => n.id === t);
|
|
3575
3602
|
}
|
|
3576
|
-
function
|
|
3603
|
+
function ka(e, t, n, r, o) {
|
|
3577
3604
|
var c, d, u;
|
|
3578
|
-
const { dashboard: i } = n, a =
|
|
3605
|
+
const { dashboard: i } = n, a = Fn(i, e.id), s = a ? void 0 : n.transientContexts, l = Ft({
|
|
3579
3606
|
dashboard: i,
|
|
3580
3607
|
dashboardInputValues: r.dashboardInputValues,
|
|
3581
3608
|
transientContexts: s
|
|
@@ -3594,8 +3621,8 @@ function Sa(e, t, n, r, o) {
|
|
|
3594
3621
|
// The editor previews the card without a viewer's zoom (chart date zoom
|
|
3595
3622
|
// DZ-D1) or search (table column filters TCF-D10): it shows the
|
|
3596
3623
|
// dashboard's dates and every row, and its save never sees either.
|
|
3597
|
-
cardViewState: a ? void 0 : n.editor ?
|
|
3598
|
-
|
|
3624
|
+
cardViewState: a ? void 0 : n.editor ? Vr(
|
|
3625
|
+
Mr((c = n.cardViewStates) == null ? void 0 : c[e.id], null),
|
|
3599
3626
|
null
|
|
3600
3627
|
) : (d = n.cardViewStates) == null ? void 0 : d[e.id],
|
|
3601
3628
|
viewerTableSettings: n.editor || a || (u = n.viewerTableSettings) == null ? void 0 : u[e.id],
|
|
@@ -3610,16 +3637,16 @@ function Sa(e, t, n, r, o) {
|
|
|
3610
3637
|
includeAuthoredFilters: o
|
|
3611
3638
|
};
|
|
3612
3639
|
}
|
|
3613
|
-
function
|
|
3614
|
-
return
|
|
3640
|
+
function Dn({ card: e, context: t }, n) {
|
|
3641
|
+
return It({
|
|
3615
3642
|
card: e,
|
|
3616
3643
|
cardConfig: t.queryRelevantConfig,
|
|
3617
3644
|
resolvedFields: t.resolvedDateFields,
|
|
3618
3645
|
semanticExecutionPayload: n.semanticExecutionPayload
|
|
3619
3646
|
});
|
|
3620
3647
|
}
|
|
3621
|
-
function
|
|
3622
|
-
const { card: r } = e, o =
|
|
3648
|
+
function Sn(e, t, n) {
|
|
3649
|
+
const { card: r } = e, o = Dn(e, t), i = hn(r, e.context, {
|
|
3623
3650
|
resolvedPrimaryDateField: o,
|
|
3624
3651
|
timezone: t.calendarContext.tz,
|
|
3625
3652
|
allowMinutePrecision: n
|
|
@@ -3632,7 +3659,7 @@ function vn(e, t, n) {
|
|
|
3632
3659
|
resolvedPrimaryDateField: o
|
|
3633
3660
|
};
|
|
3634
3661
|
}
|
|
3635
|
-
function
|
|
3662
|
+
function Ns({
|
|
3636
3663
|
dashboard: e,
|
|
3637
3664
|
dashboardInputValues: t,
|
|
3638
3665
|
adHocFilterValues: n,
|
|
@@ -3644,37 +3671,37 @@ function Bs({
|
|
|
3644
3671
|
semanticExecutionPayload: l,
|
|
3645
3672
|
timezone: c
|
|
3646
3673
|
}) {
|
|
3647
|
-
const d = e ? [...
|
|
3648
|
-
var
|
|
3649
|
-
return e ?
|
|
3674
|
+
const d = e ? [...kr(e)] : void 0, u = o ?? null, f = (C) => {
|
|
3675
|
+
var h;
|
|
3676
|
+
return e ? wa({
|
|
3650
3677
|
dashboard: e,
|
|
3651
3678
|
runtimeValues: { dashboardInputValues: t },
|
|
3652
3679
|
adHocFilterValues: n,
|
|
3653
|
-
sheetId:
|
|
3654
|
-
sheetKind:
|
|
3655
|
-
(
|
|
3680
|
+
sheetId: C,
|
|
3681
|
+
sheetKind: Dt(
|
|
3682
|
+
(h = e.sheets) == null ? void 0 : h.find((S) => S.id === C)
|
|
3656
3683
|
) ? "document" : "dashboard",
|
|
3657
3684
|
calendar: r
|
|
3658
3685
|
}) : [];
|
|
3659
3686
|
}, m = i === "all" ? Array.from(
|
|
3660
3687
|
new Map(
|
|
3661
3688
|
((e == null ? void 0 : e.sheets) || []).flatMap(
|
|
3662
|
-
(
|
|
3663
|
-
(
|
|
3689
|
+
(C) => f(C.id).map(
|
|
3690
|
+
(h) => [h.filterId, h]
|
|
3664
3691
|
)
|
|
3665
3692
|
)
|
|
3666
3693
|
).values()
|
|
3667
3694
|
) : f(u), y = {
|
|
3668
3695
|
...a || {}
|
|
3669
|
-
}, p = i === "all" ?
|
|
3670
|
-
(
|
|
3696
|
+
}, p = i === "all" ? N({ sheets: (e == null ? void 0 : e.sheets) || [] }) : u ? N({ sheets: (e == null ? void 0 : e.sheets) || [] }).filter(
|
|
3697
|
+
(C) => C.sheet.id === u
|
|
3671
3698
|
) : [];
|
|
3672
|
-
for (const
|
|
3673
|
-
Object.assign(y, (s == null ? void 0 : s[
|
|
3674
|
-
const b =
|
|
3699
|
+
for (const C of p)
|
|
3700
|
+
Object.assign(y, (s == null ? void 0 : s[C.card.id]) || {});
|
|
3701
|
+
const b = xr({
|
|
3675
3702
|
filterDefinitions: d,
|
|
3676
3703
|
filterValues: m
|
|
3677
|
-
}), I =
|
|
3704
|
+
}), I = Yi({
|
|
3678
3705
|
filters: d,
|
|
3679
3706
|
filterValues: b,
|
|
3680
3707
|
dashboard: e,
|
|
@@ -3687,7 +3714,7 @@ function Bs({
|
|
|
3687
3714
|
controlValues: y
|
|
3688
3715
|
};
|
|
3689
3716
|
}
|
|
3690
|
-
function
|
|
3717
|
+
function zs({
|
|
3691
3718
|
dashboard: e,
|
|
3692
3719
|
cardId: t,
|
|
3693
3720
|
transientContexts: n,
|
|
@@ -3711,12 +3738,12 @@ function Es({
|
|
|
3711
3738
|
if (!e)
|
|
3712
3739
|
return null;
|
|
3713
3740
|
m && !$e(e, t) && y && (e = { ...e, sheets: (S = e.sheets) == null ? void 0 : S.map((g) => g.id === y ? { ...g, cards: [...g.cards ?? [], m] } : g) });
|
|
3714
|
-
const
|
|
3715
|
-
if (!
|
|
3741
|
+
const C = $e(e, t);
|
|
3742
|
+
if (!C)
|
|
3716
3743
|
return null;
|
|
3717
|
-
const
|
|
3718
|
-
card: m ??
|
|
3719
|
-
place: p ? { kind: "documentSection", section: p } : { kind: "sheet", sheetId:
|
|
3744
|
+
const h = Va({
|
|
3745
|
+
card: m ?? C.card,
|
|
3746
|
+
place: p ? { kind: "documentSection", section: p } : { kind: "sheet", sheetId: C.sheet.id },
|
|
3720
3747
|
source: {
|
|
3721
3748
|
dashboard: e,
|
|
3722
3749
|
adHocFilterValues: a,
|
|
@@ -3738,30 +3765,30 @@ function Es({
|
|
|
3738
3765
|
matrixCatalog: f,
|
|
3739
3766
|
withRequest: I
|
|
3740
3767
|
});
|
|
3741
|
-
return
|
|
3768
|
+
return h.status === "blocked" ? h : {
|
|
3742
3769
|
status: "ready",
|
|
3743
|
-
card: m ??
|
|
3744
|
-
sheetId:
|
|
3745
|
-
queryContext:
|
|
3746
|
-
compiledFilters:
|
|
3747
|
-
resolvedPrimaryDateField:
|
|
3748
|
-
...
|
|
3749
|
-
...
|
|
3770
|
+
card: m ?? C.card,
|
|
3771
|
+
sheetId: C.sheet.id,
|
|
3772
|
+
queryContext: h.queryContext,
|
|
3773
|
+
compiledFilters: h.compiledFilters,
|
|
3774
|
+
resolvedPrimaryDateField: h.resolvedPrimaryDateField,
|
|
3775
|
+
...h.matrix ? { matrix: h.matrix } : {},
|
|
3776
|
+
...h.request ? { request: h.request } : {}
|
|
3750
3777
|
};
|
|
3751
3778
|
}
|
|
3752
|
-
function
|
|
3753
|
-
const r = t === "date" && "relativeMeta" in e ?
|
|
3779
|
+
function xa(e, t, n) {
|
|
3780
|
+
const r = t === "date" && "relativeMeta" in e ? Lr(e.relativeMeta) : void 0;
|
|
3754
3781
|
if (!r) return { values: e.values };
|
|
3755
|
-
const o =
|
|
3782
|
+
const o = _r(r, n ?? void 0), i = Kr(String(e.operation), r);
|
|
3756
3783
|
return {
|
|
3757
|
-
values: o && i ?
|
|
3784
|
+
values: o && i ? Gr(String(e.operation), o) : e.values,
|
|
3758
3785
|
relativeMeta: r,
|
|
3759
3786
|
..."temporalPrecision" in e && e.temporalPrecision === "minute" ? { temporalPrecision: "minute" } : {}
|
|
3760
3787
|
};
|
|
3761
3788
|
}
|
|
3762
|
-
function
|
|
3763
|
-
const r = t, o =
|
|
3764
|
-
return
|
|
3789
|
+
function Pa(e, t, n) {
|
|
3790
|
+
const r = t, o = wr(e);
|
|
3791
|
+
return Or({
|
|
3765
3792
|
definition: e,
|
|
3766
3793
|
sourceValue: r,
|
|
3767
3794
|
value: {
|
|
@@ -3772,16 +3799,16 @@ function Va(e, t, n) {
|
|
|
3772
3799
|
dataType: e.dataType,
|
|
3773
3800
|
fieldMeta: e.fieldMeta,
|
|
3774
3801
|
semanticContext: e.semanticContext,
|
|
3775
|
-
...
|
|
3802
|
+
...xa(r, o, n)
|
|
3776
3803
|
}
|
|
3777
3804
|
});
|
|
3778
3805
|
}
|
|
3779
|
-
function
|
|
3806
|
+
function Tn(e, t, n) {
|
|
3780
3807
|
const r = A(e);
|
|
3781
3808
|
let o = {};
|
|
3782
3809
|
const i = [], a = [];
|
|
3783
3810
|
for (const s of t ?? []) {
|
|
3784
|
-
if (
|
|
3811
|
+
if (oo(s.filterId)) {
|
|
3785
3812
|
a.push(s.filterId);
|
|
3786
3813
|
continue;
|
|
3787
3814
|
}
|
|
@@ -3790,16 +3817,16 @@ function Fn(e, t, n) {
|
|
|
3790
3817
|
a.push(s.filterId);
|
|
3791
3818
|
continue;
|
|
3792
3819
|
}
|
|
3793
|
-
const d =
|
|
3794
|
-
|
|
3820
|
+
const d = Pr(
|
|
3821
|
+
Pa(c.filter, s, n.calendar)
|
|
3795
3822
|
);
|
|
3796
3823
|
if (d) {
|
|
3797
3824
|
if (c.runtimeScope === "shared") {
|
|
3798
3825
|
o = He(o, c, {}, d);
|
|
3799
3826
|
continue;
|
|
3800
3827
|
}
|
|
3801
|
-
for (const u of
|
|
3802
|
-
|
|
3828
|
+
for (const u of Ot(e).values())
|
|
3829
|
+
_t(c, u) && (o = He(
|
|
3803
3830
|
o,
|
|
3804
3831
|
c,
|
|
3805
3832
|
{ sheetId: u.sheetId },
|
|
@@ -3809,11 +3836,11 @@ function Fn(e, t, n) {
|
|
|
3809
3836
|
}
|
|
3810
3837
|
return { slots: o, adHocFilterValues: i, droppedFilterIds: a };
|
|
3811
3838
|
}
|
|
3812
|
-
function
|
|
3839
|
+
function wa(e) {
|
|
3813
3840
|
const { dashboard: t, sheetId: n } = e, r = [];
|
|
3814
3841
|
if (n)
|
|
3815
|
-
for (const { input: o } of
|
|
3816
|
-
const i =
|
|
3842
|
+
for (const { input: o } of Ar(t, n, e.sheetKind)) {
|
|
3843
|
+
const i = Er({
|
|
3817
3844
|
dashboard: t,
|
|
3818
3845
|
input: o,
|
|
3819
3846
|
runtimeValues: { dashboardInputValues: e.runtimeValues.dashboardInputValues },
|
|
@@ -3822,14 +3849,14 @@ function Ma(e) {
|
|
|
3822
3849
|
});
|
|
3823
3850
|
i.kind === "filter" && i.filterValue && r.push(i.filterValue);
|
|
3824
3851
|
}
|
|
3825
|
-
return [...r, ...
|
|
3852
|
+
return [...r, ...In(e.adHocFilterValues, n)];
|
|
3826
3853
|
}
|
|
3827
|
-
function
|
|
3854
|
+
function Ls(e, t) {
|
|
3828
3855
|
switch (t.runtimeScope) {
|
|
3829
3856
|
case "shared":
|
|
3830
3857
|
return [{}];
|
|
3831
3858
|
case "perSheet":
|
|
3832
|
-
return [...
|
|
3859
|
+
return [...Ot(e).values()].filter((n) => _t(t, n)).map((n) => ({ sheetId: n.sheetId }));
|
|
3833
3860
|
case "perCard": {
|
|
3834
3861
|
const n = A(e);
|
|
3835
3862
|
return [
|
|
@@ -3856,22 +3883,22 @@ function ct(e) {
|
|
|
3856
3883
|
...e.cards ?? [],
|
|
3857
3884
|
...(e.frames ?? []).flatMap((n) => n.cards),
|
|
3858
3885
|
...(((t = e.document) == null ? void 0 : t.sections) ?? []).flatMap(
|
|
3859
|
-
(n) =>
|
|
3886
|
+
(n) => At(n)
|
|
3860
3887
|
)
|
|
3861
3888
|
];
|
|
3862
3889
|
}
|
|
3863
|
-
function
|
|
3890
|
+
function Oa(e, t) {
|
|
3864
3891
|
var n, r;
|
|
3865
3892
|
return {
|
|
3866
3893
|
sheetId: e.id,
|
|
3867
3894
|
cardId: t.id,
|
|
3868
3895
|
sheetKind: e.kind ?? "dashboard",
|
|
3869
3896
|
sectionId: (r = (n = e.document) == null ? void 0 : n.sections.find(
|
|
3870
|
-
(o) =>
|
|
3897
|
+
(o) => At(o).some(({ id: i }) => i === t.id)
|
|
3871
3898
|
)) == null ? void 0 : r.id
|
|
3872
3899
|
};
|
|
3873
3900
|
}
|
|
3874
|
-
function
|
|
3901
|
+
function _a(e, t, n, r) {
|
|
3875
3902
|
var c, d, u;
|
|
3876
3903
|
const o = {}, i = (c = e.preferences) == null ? void 0 : c.textVisualOptions;
|
|
3877
3904
|
if (!i) return o;
|
|
@@ -3879,7 +3906,7 @@ function xa(e, t, n, r) {
|
|
|
3879
3906
|
// Authoring: carried drill context never applies to a dashboard being edited.
|
|
3880
3907
|
transientContexts: void 0,
|
|
3881
3908
|
dashboard: n,
|
|
3882
|
-
...
|
|
3909
|
+
...Oa(r, t),
|
|
3883
3910
|
card: t,
|
|
3884
3911
|
runtimeValues: {},
|
|
3885
3912
|
// Aliases only: no input value is read.
|
|
@@ -3893,7 +3920,7 @@ function xa(e, t, n, r) {
|
|
|
3893
3920
|
} : f;
|
|
3894
3921
|
return m && (o[f.variableName] = y), y;
|
|
3895
3922
|
}, l = (f) => {
|
|
3896
|
-
Object.assign(f,
|
|
3923
|
+
Object.assign(f, kt(f, (m) => s(m))), f.type === "link" && [...f.children, ...Array.isArray(f.url) ? f.url : []].forEach((m) => l(m)), f.type === "when" && [...f.then ?? [], ...f.else ?? []].forEach(l);
|
|
3897
3924
|
};
|
|
3898
3925
|
return (d = i.content) == null || d.forEach((f) => {
|
|
3899
3926
|
f.type === "variable" && (f.ref = s(f.ref));
|
|
@@ -3901,7 +3928,7 @@ function xa(e, t, n, r) {
|
|
|
3901
3928
|
f.type === "list" ? f.items.forEach((m) => m.forEach(l)) : f.children.forEach(l);
|
|
3902
3929
|
}), o;
|
|
3903
3930
|
}
|
|
3904
|
-
function
|
|
3931
|
+
function Aa(e, t) {
|
|
3905
3932
|
var i;
|
|
3906
3933
|
const n = ct(e);
|
|
3907
3934
|
if (!n.some((a) => {
|
|
@@ -3911,7 +3938,7 @@ function Pa(e, t) {
|
|
|
3911
3938
|
return e;
|
|
3912
3939
|
const r = oe(e), o = ct(r);
|
|
3913
3940
|
for (let a = 0; a < o.length; a++) {
|
|
3914
|
-
const s =
|
|
3941
|
+
const s = _a(
|
|
3915
3942
|
o[a],
|
|
3916
3943
|
n[a],
|
|
3917
3944
|
t,
|
|
@@ -3919,130 +3946,130 @@ function Pa(e, t) {
|
|
|
3919
3946
|
);
|
|
3920
3947
|
(i = e.frames) != null && i.some(
|
|
3921
3948
|
(l) => l.visualId && l.cards.some((c) => c.id === o[a].id)
|
|
3922
|
-
) && (o[a].linkedReferenceOverrides =
|
|
3949
|
+
) && (o[a].linkedReferenceOverrides = Vo(
|
|
3923
3950
|
o[a].linkedReferenceOverrides,
|
|
3924
3951
|
{ inputAliases: s }
|
|
3925
3952
|
));
|
|
3926
3953
|
}
|
|
3927
3954
|
return r;
|
|
3928
3955
|
}
|
|
3929
|
-
function
|
|
3956
|
+
function Ea(e) {
|
|
3930
3957
|
var n;
|
|
3931
3958
|
const t = (n = e.sheets) == null ? void 0 : n.map(
|
|
3932
|
-
(r) =>
|
|
3959
|
+
(r) => Aa(r, e)
|
|
3933
3960
|
);
|
|
3934
3961
|
return t && t.some((r, o) => r !== e.sheets[o]) ? { ...e, sheets: t } : e;
|
|
3935
3962
|
}
|
|
3936
|
-
function
|
|
3963
|
+
function Ba(e) {
|
|
3937
3964
|
const t = A(e);
|
|
3938
3965
|
return t.issues.length === 0 && !t.needsUpgrade ? e : t.issues.length ? t.toStoredDashboard() : A(
|
|
3939
|
-
|
|
3966
|
+
Ea(e)
|
|
3940
3967
|
).toStoredDashboard();
|
|
3941
3968
|
}
|
|
3942
3969
|
export {
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3970
|
+
Oa as $,
|
|
3971
|
+
ua as A,
|
|
3972
|
+
In as B,
|
|
3973
|
+
Vo as C,
|
|
3974
|
+
ts as D,
|
|
3975
|
+
Eo as E,
|
|
3976
|
+
vi as F,
|
|
3950
3977
|
nt as G,
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3978
|
+
Ko as H,
|
|
3979
|
+
Lo as I,
|
|
3980
|
+
No as J,
|
|
3981
|
+
is as K,
|
|
3982
|
+
Mo as L,
|
|
3983
|
+
Kt as M,
|
|
3957
3984
|
Fe as N,
|
|
3958
|
-
|
|
3985
|
+
Uo as O,
|
|
3959
3986
|
z as P,
|
|
3960
|
-
|
|
3987
|
+
$o as Q,
|
|
3961
3988
|
Re as R,
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3989
|
+
Be as S,
|
|
3990
|
+
fo as T,
|
|
3991
|
+
as as U,
|
|
3992
|
+
cs as V,
|
|
3993
|
+
Go as W,
|
|
3994
|
+
rs as X,
|
|
3995
|
+
js as Y,
|
|
3996
|
+
Sa as Z,
|
|
3970
3997
|
ct as _,
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3998
|
+
Ui as a,
|
|
3999
|
+
_a as a0,
|
|
4000
|
+
Aa as a1,
|
|
4001
|
+
xs as a2,
|
|
4002
|
+
Ms as a3,
|
|
4003
|
+
Yt as a4,
|
|
4004
|
+
ks as a5,
|
|
4005
|
+
ei as a6,
|
|
4006
|
+
pa as a7,
|
|
4007
|
+
Ns as a8,
|
|
4008
|
+
la as a9,
|
|
3982
4009
|
ce as aA,
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
4010
|
+
Va as aB,
|
|
4011
|
+
Es as aC,
|
|
4012
|
+
os as aD,
|
|
4013
|
+
ra as aE,
|
|
4014
|
+
Si as aF,
|
|
4015
|
+
pn as aG,
|
|
3989
4016
|
Ae as aH,
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
4017
|
+
ls as aI,
|
|
4018
|
+
ds as aJ,
|
|
4019
|
+
fi as aK,
|
|
3993
4020
|
$ as aL,
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4021
|
+
Fs as aM,
|
|
4022
|
+
ws as aN,
|
|
4023
|
+
Ps as aO,
|
|
4024
|
+
Bs as aa,
|
|
4025
|
+
qs as ab,
|
|
4026
|
+
mi as ac,
|
|
4027
|
+
gi as ad,
|
|
4028
|
+
Ta as ae,
|
|
4029
|
+
us as af,
|
|
4030
|
+
fs as ag,
|
|
4031
|
+
bi as ah,
|
|
4005
4032
|
De as ai,
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4033
|
+
pi as aj,
|
|
4034
|
+
Ii as ak,
|
|
4035
|
+
ps as al,
|
|
4036
|
+
Rs as am,
|
|
4037
|
+
As as an,
|
|
4038
|
+
gs as ao,
|
|
4039
|
+
bs as ap,
|
|
4040
|
+
ys as aq,
|
|
4041
|
+
Is as ar,
|
|
4042
|
+
Cs as as,
|
|
4043
|
+
Bt as at,
|
|
4044
|
+
ss as au,
|
|
4045
|
+
_s as av,
|
|
4046
|
+
hs as aw,
|
|
4047
|
+
Oi as ax,
|
|
4048
|
+
Os as ay,
|
|
4049
|
+
fn as az,
|
|
4050
|
+
ca as b,
|
|
4051
|
+
di as c,
|
|
4052
|
+
ms as d,
|
|
4053
|
+
So as e,
|
|
4054
|
+
Ss as f,
|
|
4028
4055
|
oe as g,
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4056
|
+
Vs as h,
|
|
4057
|
+
zs as i,
|
|
4058
|
+
Ts as j,
|
|
4059
|
+
Pa as k,
|
|
4060
|
+
Hi as l,
|
|
4061
|
+
je as m,
|
|
4062
|
+
Fi as n,
|
|
4063
|
+
Di as o,
|
|
4064
|
+
vs as p,
|
|
4065
|
+
ko as q,
|
|
4066
|
+
Ds as r,
|
|
4067
|
+
wo as s,
|
|
4068
|
+
qt as t,
|
|
4069
|
+
ns as u,
|
|
4070
|
+
_o as v,
|
|
4071
|
+
Ba as w,
|
|
4072
|
+
Tn as x,
|
|
4073
|
+
wa as y,
|
|
4074
|
+
Ls as z
|
|
4048
4075
|
};
|