@feedmepos/mf-report 5.30.1 → 5.30.2-beta.0
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/{App-CxNecVsw.js → App-UqLbjMzR.js} +34 -34
- package/dist/{DateRangeSelect-BI_D4Ipz.js → DateRangeSelect-B8A52DC0.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-BxcJSQhM.js → Default.vue_vue_type_script_setup_true_lang-B9jjUnq3.js} +1 -1
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-D-KPQrPq.js → DynamicWidget.vue_vue_type_script_setup_true_lang-CnJS3cSP.js} +888 -879
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BvvfKZNr.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-Cfg1BpKR.js} +571 -558
- package/dist/{InsightView-DxYqCScx.js → InsightView-C69Tmxwy.js} +5 -5
- package/dist/Integration-DGTR1WRu.js +8817 -0
- package/dist/{Integrations-DcV_v5Du.js → Integrations-BF5rCuoM.js} +2 -2
- package/dist/{Layout-DemHMNuZ.js → Layout-Bvh_gFyZ.js} +1 -1
- package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-CYgy4A1o.js → LocationSelect.vue_vue_type_script_setup_true_lang-Cuwu38b-.js} +2 -2
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-CWAgCUv_.js → MenuTab.vue_vue_type_script_setup_true_lang-2JqcdvN_.js} +5 -5
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-C-5fNiYo.js → NavigationTab.vue_vue_type_script_setup_true_lang-9_OMGPIX.js} +5 -5
- package/dist/{OverviewView-BZPCDGUE.js → OverviewView-CjNVFPWJ.js} +5 -5
- package/dist/{Report-7pwAySr_.js → Report-Dr1Sx0Ts.js} +3 -3
- package/dist/{ReportCanvasView-pLudoc2O.js → ReportCanvasView-Nvb66I-O.js} +5 -5
- package/dist/{ReportEditor-C3Hi49MD.js → ReportEditor-Db6FXQA1.js} +7 -7
- package/dist/{ReportView-GVcf2UPH.js → ReportView-NdCuRkec.js} +6 -6
- package/dist/{ReportViewRoute-CM9QOfnk.js → ReportViewRoute-DDz5Ra0M.js} +2 -2
- package/dist/{Setting-DbNvny2j.js → Setting-CqrKjbaQ.js} +3 -3
- package/dist/{Template-DDmro22I.js → Template-Cg8t7FxY.js} +3 -3
- package/dist/{TileEditor-Blbbg1V4.js → TileEditor-DhmsnhU7.js} +6 -6
- package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-DuxN8oe_.js → TilePageStack.vue_vue_type_script_setup_true_lang-CnqR8BWz.js} +2 -2
- package/dist/{TransitionFade-Bwj-Hupm.js → TransitionFade-DepIvKK1.js} +5 -5
- package/dist/{app-DNuUgxBX.js → app-CzVuX1vd.js} +354 -322
- package/dist/app.js +1 -1
- package/dist/{currency-Bn6Bcs8d.js → currency-B9ot0g_A.js} +1 -1
- package/dist/{index-B-AfP_nO.js → index-BfP21yLe.js} +1 -1
- package/dist/{report-3-5_1WdK.js → report-DDuwJj0g.js} +1 -1
- package/dist/{useRestaurantPermission-BSGZVb0X.js → useRestaurantPermission-BAZfuUiJ.js} +1 -1
- package/package.json +1 -1
- package/dist/Integration-DIsAxhsM.js +0 -8626
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { computed as c, defineComponent as ze, ref as k, watch as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as Ln,
|
|
4
|
-
import { W as Z, S as Je, v as Kt, F as Ot, c as gn, w as Hn, d as
|
|
5
|
-
import { c as Dn, w as Et } from "./currency-
|
|
6
|
-
import { d as
|
|
1
|
+
import { computed as c, defineComponent as ze, ref as k, watch as Le, onMounted as Gt, onBeforeUnmount as Eo, resolveComponent as be, createBlock as ye, openBlock as j, Transition as Ya, withCtx as Re, createElementBlock as pe, createCommentVNode as we, createElementVNode as Q, unref as l, normalizeStyle as Ve, withModifiers as Cn, toDisplayString as Me, createVNode as Ce, Fragment as Ye, renderList as St, normalizeClass as Fe, nextTick as jo, mergeModels as ot, useModel as at, renderSlot as gt, h as Pt, createSlots as Xa, resolveDynamicComponent as Go, markRaw as So, toRaw as Ea, createTextVNode as ja, onUnmounted as Yn, provide as Ga, inject as qa, withDirectives as Ja, vShow as Za } from "vue";
|
|
2
|
+
import { u as Qa, h as er, i as qo, j as tr, q as ko, k as nr } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-Cfg1BpKR.js";
|
|
3
|
+
import { u as Ln, Y as xn, a as _n, Z as or } from "./app-CzVuX1vd.js";
|
|
4
|
+
import { W as Z, S as Je, v as Kt, F as Ot, c as gn, w as Hn, d as ar, o as rr, x as lr, E as Mt, y as sr } from "./report-DDuwJj0g.js";
|
|
5
|
+
import { c as Dn, w as Et } from "./currency-B9ot0g_A.js";
|
|
6
|
+
import { d as Xn } from "./DateRangeSelect-B8A52DC0.js";
|
|
7
7
|
import { storeToRefs as At } from "pinia";
|
|
8
|
-
import { detectLocale as
|
|
9
|
-
import "./index-
|
|
10
|
-
import { C as
|
|
11
|
-
import { useBreakpoints as qt, useSnackbar as Sn, components as
|
|
12
|
-
import { u as
|
|
13
|
-
import { r as
|
|
8
|
+
import { detectLocale as oo } from "@feedmepos/mf-common";
|
|
9
|
+
import "./index-BfP21yLe.js";
|
|
10
|
+
import { C as En, t as ir } from "./chart-BywXiz4O.js";
|
|
11
|
+
import { useBreakpoints as qt, useSnackbar as Sn, components as ur } from "@feedmepos/ui-library";
|
|
12
|
+
import { u as kt, _ as Jo } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
13
|
+
import { r as wt } from "./i18n-DbyciK4x.js";
|
|
14
14
|
import { _ as Wn } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
|
|
15
|
-
var Yt = /* @__PURE__ */ ((e) => (e.line = "LINECHART", e.bar = "BARCHART", e.stackedBar = "STACKBARCHART", e.progress = "PROGRESS", e))(Yt || {}), qe = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(qe || {}),
|
|
15
|
+
var Yt = /* @__PURE__ */ ((e) => (e.line = "LINECHART", e.bar = "BARCHART", e.stackedBar = "STACKBARCHART", e.progress = "PROGRESS", e))(Yt || {}), qe = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(qe || {}), jn = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(jn || {}), Gn = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(Gn || {}), qn = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(qn || {}), Jn = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(Jn || {}), Zn = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(Zn || {}), Be = /* @__PURE__ */ ((e) => (e.series = "SERIES", e.metric = "METRIC", e.breakdown = "BREAKDOWN", e))(Be || {});
|
|
16
16
|
Z.Circular, Z.Table, Z.BarChart, Z.LineChart, Z.StackBarChart, Z.ClusteredStackBarChart, Z.StackLineChart, Z.Scorecard, Z.Spacer;
|
|
17
|
-
const
|
|
17
|
+
const cr = [
|
|
18
18
|
{
|
|
19
19
|
type: Z.Circular,
|
|
20
20
|
showLabel: !1,
|
|
@@ -85,7 +85,7 @@ const ir = [
|
|
|
85
85
|
showSearchBar: !1
|
|
86
86
|
}
|
|
87
87
|
];
|
|
88
|
-
function
|
|
88
|
+
function dr(e, t) {
|
|
89
89
|
switch (e) {
|
|
90
90
|
case Z.BarChart:
|
|
91
91
|
case Z.LineChart:
|
|
@@ -115,14 +115,14 @@ const Ft = [
|
|
|
115
115
|
"#8358D4",
|
|
116
116
|
"#9B5046"
|
|
117
117
|
];
|
|
118
|
-
function
|
|
118
|
+
function Zo(e) {
|
|
119
119
|
const t = Math.max(1, Math.floor(e));
|
|
120
120
|
return Array.from({ length: t }, (n, o) => {
|
|
121
121
|
const r = Ft[o % Ft.length], i = Math.floor(o / Ft.length);
|
|
122
122
|
return i === 0 ? r : kn(r, Math.min(0.18 * i, 0.72));
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
|
-
const
|
|
125
|
+
const mi = Ft.map(() => "solid");
|
|
126
126
|
function Bt({
|
|
127
127
|
datasetIndex: e,
|
|
128
128
|
label: t
|
|
@@ -130,13 +130,13 @@ function Bt({
|
|
|
130
130
|
const n = typeof t == "string" ? t.trim().toLowerCase().replace(/\s+/g, " ") : "";
|
|
131
131
|
return `${e}:${n}`;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function fr(e) {
|
|
134
134
|
return e === "dashed" || e === "dotted" ? e : "solid";
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function mr(e, t = !1) {
|
|
137
137
|
if (e == null)
|
|
138
138
|
return t ? [5, 5] : void 0;
|
|
139
|
-
const n =
|
|
139
|
+
const n = fr(e);
|
|
140
140
|
if (n === "dashed")
|
|
141
141
|
return [8, 6];
|
|
142
142
|
if (n === "dotted")
|
|
@@ -153,7 +153,7 @@ function Oe({
|
|
|
153
153
|
const r = Number.isFinite(n) ? Number(n) : 0;
|
|
154
154
|
return r <= 0 ? e : t ? e >= r ? (e - r) % r : Math.max(0, (e - 1 + r) % r) : e % r;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function Qo({
|
|
157
157
|
datasets: e,
|
|
158
158
|
datasetIndex: t
|
|
159
159
|
}) {
|
|
@@ -181,7 +181,7 @@ function Jt({
|
|
|
181
181
|
datasetIndex: t
|
|
182
182
|
}) {
|
|
183
183
|
var r;
|
|
184
|
-
const n =
|
|
184
|
+
const n = Qo({
|
|
185
185
|
datasets: e,
|
|
186
186
|
datasetIndex: t
|
|
187
187
|
});
|
|
@@ -194,12 +194,12 @@ function Jt({
|
|
|
194
194
|
}
|
|
195
195
|
return n;
|
|
196
196
|
}
|
|
197
|
-
const
|
|
197
|
+
const pr = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;
|
|
198
198
|
function jt(e) {
|
|
199
199
|
if (!e)
|
|
200
200
|
return null;
|
|
201
201
|
const t = e.trim();
|
|
202
|
-
if (!
|
|
202
|
+
if (!pr.test(t))
|
|
203
203
|
return null;
|
|
204
204
|
if (t.length === 4) {
|
|
205
205
|
const [, n, o, r] = t;
|
|
@@ -207,7 +207,7 @@ function jt(e) {
|
|
|
207
207
|
}
|
|
208
208
|
return t.toUpperCase();
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function gr(e) {
|
|
211
211
|
const t = jt(e) ?? "#000000";
|
|
212
212
|
return {
|
|
213
213
|
red: Number.parseInt(t.slice(1, 3), 16),
|
|
@@ -215,15 +215,15 @@ function mr(e) {
|
|
|
215
215
|
blue: Number.parseInt(t.slice(5, 7), 16)
|
|
216
216
|
};
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function ea(e) {
|
|
219
219
|
const t = Math.max(
|
|
220
220
|
Ft.length,
|
|
221
221
|
Array.isArray(e) ? e.length : 0
|
|
222
|
-
), n =
|
|
222
|
+
), n = Zo(t);
|
|
223
223
|
return !Array.isArray(e) || e.length === 0 ? n : n.map((o, r) => jt(e[r]) ?? o);
|
|
224
224
|
}
|
|
225
|
-
function
|
|
226
|
-
const { red: n, green: o, blue: r } =
|
|
225
|
+
function ta(e, t) {
|
|
226
|
+
const { red: n, green: o, blue: r } = gr(e);
|
|
227
227
|
return `rgba(${n}, ${o}, ${r}, ${t})`;
|
|
228
228
|
}
|
|
229
229
|
function kn(e, t) {
|
|
@@ -233,11 +233,11 @@ function kn(e, t) {
|
|
|
233
233
|
};
|
|
234
234
|
return `#${o(1)}${o(3)}${o(5)}`;
|
|
235
235
|
}
|
|
236
|
-
const
|
|
237
|
-
function
|
|
238
|
-
return kn(e,
|
|
236
|
+
const hr = 0.25, na = 0.7;
|
|
237
|
+
function oa(e) {
|
|
238
|
+
return kn(e, hr);
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function To(e) {
|
|
241
241
|
return Math.min(0.55 + (e - 1) * 0.18, 0.95);
|
|
242
242
|
}
|
|
243
243
|
function dt({
|
|
@@ -246,9 +246,9 @@ function dt({
|
|
|
246
246
|
opacity: n,
|
|
247
247
|
customColors: o
|
|
248
248
|
}) {
|
|
249
|
-
const r =
|
|
249
|
+
const r = ea(o), i = r[e % r.length], a = t ? oa(i) : i;
|
|
250
250
|
let u = typeof n == "number" ? n : 1;
|
|
251
|
-
return t && (u = u *
|
|
251
|
+
return t && (u = u * na), ta(a, u);
|
|
252
252
|
}
|
|
253
253
|
function Vt({
|
|
254
254
|
fallbackIndex: e,
|
|
@@ -265,29 +265,29 @@ function zt({
|
|
|
265
265
|
breakdownColors: i,
|
|
266
266
|
useSecondaryMetricShades: a,
|
|
267
267
|
colorMode: u,
|
|
268
|
-
customColors:
|
|
268
|
+
customColors: m
|
|
269
269
|
}) {
|
|
270
|
-
const v = Number.isInteger(n) && Number(n) > 0 ? Number(n) : 1,
|
|
270
|
+
const v = Number.isInteger(n) && Number(n) > 0 ? Number(n) : 1, x = Number.isInteger(t) && Number(t) >= 0 ? Number(t) : 0, Y = a !== !1, H = e * v + x, d = u === "clustered" ? Zo(Math.max(Ft.length, e + 1)) : ea(m), b = jt(i == null ? void 0 : i[e * v]) ?? d[e % d.length], w = Y && x > 0 ? kn(b, To(x)) : jt(i == null ? void 0 : i[H]) ?? (x > 0 ? kn(b, To(x)) : b), h = o ? oa(w) : w;
|
|
271
271
|
let I = typeof r == "number" ? r : 1;
|
|
272
|
-
return o && (I = I *
|
|
272
|
+
return o && (I = I * na), ta(h, I);
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function aa(e, t, n) {
|
|
275
275
|
if (e === "" || t === "")
|
|
276
276
|
return null;
|
|
277
|
-
let o = (
|
|
278
|
-
n === "ID" && (o = (
|
|
277
|
+
let o = (m) => m == null ? void 0 : m.replace(/,/g, "");
|
|
278
|
+
n === "ID" && (o = (m) => m == null ? void 0 : m.replace(/\./g, "").replace(/,/g, "."));
|
|
279
279
|
const r = Number(o(e)), i = Number(o(t));
|
|
280
280
|
if (isNaN(r) || isNaN(i))
|
|
281
281
|
return null;
|
|
282
282
|
let a = 0;
|
|
283
283
|
i === 0 ? r === 0 ? a = 0 : a = 1 : a = (r - i) / i;
|
|
284
|
-
const u =
|
|
284
|
+
const u = vr(a);
|
|
285
285
|
return {
|
|
286
286
|
value: isNaN(a) ? "" : `${(a * 100).toFixed(0)}%`,
|
|
287
287
|
icon: u
|
|
288
288
|
};
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function vr(e) {
|
|
291
291
|
return e > 0 ? {
|
|
292
292
|
name: "moving",
|
|
293
293
|
color: "#1F7735",
|
|
@@ -302,19 +302,19 @@ function gr(e) {
|
|
|
302
302
|
tailwind: "fm-color-neutral-gray-100"
|
|
303
303
|
};
|
|
304
304
|
}
|
|
305
|
-
const
|
|
306
|
-
function
|
|
307
|
-
return
|
|
305
|
+
const yr = "en-US";
|
|
306
|
+
function ra() {
|
|
307
|
+
return oo() || yr;
|
|
308
308
|
}
|
|
309
309
|
function Xt(e) {
|
|
310
310
|
if (e == null || e === "")
|
|
311
311
|
return "";
|
|
312
312
|
const t = String(e), n = Number(t);
|
|
313
313
|
if (isNaN(n)) return t;
|
|
314
|
-
const [o, r] = t.split("."), i = new Intl.NumberFormat(
|
|
314
|
+
const [o, r] = t.split("."), i = new Intl.NumberFormat(ra()).format(Number(o));
|
|
315
315
|
return r !== void 0 ? `${i}.${r}` : i;
|
|
316
316
|
}
|
|
317
|
-
function
|
|
317
|
+
function Lo(e, t) {
|
|
318
318
|
if (e == null || e === "")
|
|
319
319
|
return "";
|
|
320
320
|
const n = typeof e == "string" ? e.replace(/,/g, "") : e, o = Number(n);
|
|
@@ -322,7 +322,7 @@ function ko(e, t) {
|
|
|
322
322
|
return typeof e == "string" ? e : "";
|
|
323
323
|
if (Math.abs(o) < 1e3)
|
|
324
324
|
return String(o);
|
|
325
|
-
const r =
|
|
325
|
+
const r = ra();
|
|
326
326
|
return new Intl.NumberFormat(r, {
|
|
327
327
|
notation: "compact",
|
|
328
328
|
compactDisplay: "short",
|
|
@@ -332,7 +332,7 @@ function ko(e, t) {
|
|
|
332
332
|
function Zt(e) {
|
|
333
333
|
return Object.entries(e).map(([t, n]) => `${t}:${n}`).join(";");
|
|
334
334
|
}
|
|
335
|
-
function
|
|
335
|
+
function la(e) {
|
|
336
336
|
return {
|
|
337
337
|
mode: "index",
|
|
338
338
|
intersect: !1,
|
|
@@ -368,7 +368,7 @@ function ra(e) {
|
|
|
368
368
|
titleMarginBottom: 6
|
|
369
369
|
};
|
|
370
370
|
}
|
|
371
|
-
const
|
|
371
|
+
const br = Zt({
|
|
372
372
|
display: "block",
|
|
373
373
|
padding: "0",
|
|
374
374
|
background: "none",
|
|
@@ -379,7 +379,7 @@ const vr = Zt({
|
|
|
379
379
|
cursor: "pointer",
|
|
380
380
|
"text-align": "left",
|
|
381
381
|
"pointer-events": "auto"
|
|
382
|
-
}),
|
|
382
|
+
}), Cr = {
|
|
383
383
|
"font-size": "13px",
|
|
384
384
|
"font-weight": "600",
|
|
385
385
|
color: "#111827",
|
|
@@ -387,7 +387,7 @@ const vr = Zt({
|
|
|
387
387
|
"white-space": "normal",
|
|
388
388
|
"word-break": "break-word",
|
|
389
389
|
"overflow-wrap": "anywhere"
|
|
390
|
-
},
|
|
390
|
+
}, xr = Zt({
|
|
391
391
|
display: "flex",
|
|
392
392
|
"align-items": "flex-start",
|
|
393
393
|
"font-size": "13px",
|
|
@@ -397,13 +397,13 @@ const vr = Zt({
|
|
|
397
397
|
"line-height": "1.35",
|
|
398
398
|
margin: "0 0 3px",
|
|
399
399
|
overflow: "hidden"
|
|
400
|
-
}),
|
|
400
|
+
}), wr = Zt({
|
|
401
401
|
flex: "1 1 auto",
|
|
402
402
|
"min-width": "0",
|
|
403
403
|
"white-space": "normal",
|
|
404
404
|
"word-break": "break-word",
|
|
405
405
|
"overflow-wrap": "anywhere"
|
|
406
|
-
}),
|
|
406
|
+
}), _r = {
|
|
407
407
|
display: "inline-block",
|
|
408
408
|
width: "10px",
|
|
409
409
|
height: "10px",
|
|
@@ -412,7 +412,7 @@ const vr = Zt({
|
|
|
412
412
|
"box-sizing": "border-box",
|
|
413
413
|
"margin-right": "8px",
|
|
414
414
|
flex: "0 0 auto"
|
|
415
|
-
},
|
|
415
|
+
}, Sr = {
|
|
416
416
|
display: "inline-block",
|
|
417
417
|
width: "10px",
|
|
418
418
|
height: "10px",
|
|
@@ -423,9 +423,9 @@ const vr = Zt({
|
|
|
423
423
|
"margin-right": "8px",
|
|
424
424
|
flex: "0 0 auto"
|
|
425
425
|
};
|
|
426
|
-
function
|
|
426
|
+
function kr() {
|
|
427
427
|
return {
|
|
428
|
-
...
|
|
428
|
+
...la(),
|
|
429
429
|
mode: "nearest",
|
|
430
430
|
intersect: !0,
|
|
431
431
|
usePointStyle: !0,
|
|
@@ -437,8 +437,8 @@ function _r() {
|
|
|
437
437
|
}
|
|
438
438
|
};
|
|
439
439
|
}
|
|
440
|
-
const
|
|
441
|
-
function
|
|
440
|
+
const Tr = "rgba(0, 0, 0, 0.3)";
|
|
441
|
+
function Do(e) {
|
|
442
442
|
if (typeof document > "u" || typeof window > "u")
|
|
443
443
|
return;
|
|
444
444
|
const t = String((e == null ? void 0 : e.id) ?? "");
|
|
@@ -451,9 +451,9 @@ function To(e) {
|
|
|
451
451
|
}
|
|
452
452
|
function On(e, t, n, o) {
|
|
453
453
|
const { left: r, right: i, top: a, bottom: u } = n;
|
|
454
|
-
e.save(), e.beginPath(), e.lineWidth = 1, e.strokeStyle =
|
|
454
|
+
e.save(), e.beginPath(), e.lineWidth = 1, e.strokeStyle = Tr, e.setLineDash([5, 5]), t ? (e.moveTo(r, o), e.lineTo(i, o)) : (e.moveTo(o, a), e.lineTo(o, u)), e.stroke(), e.restore();
|
|
455
455
|
}
|
|
456
|
-
function
|
|
456
|
+
function Lr(e, t) {
|
|
457
457
|
if (typeof document > "u")
|
|
458
458
|
return;
|
|
459
459
|
const n = String((e == null ? void 0 : e.id) ?? "");
|
|
@@ -467,30 +467,30 @@ function kr(e, t) {
|
|
|
467
467
|
const r = Number(t ? o.dataset.caretY : o.dataset.caretX);
|
|
468
468
|
return Number.isFinite(r) ? r : void 0;
|
|
469
469
|
}
|
|
470
|
-
function
|
|
470
|
+
function Dr(e, t, n) {
|
|
471
471
|
var b;
|
|
472
472
|
if (!n)
|
|
473
473
|
return;
|
|
474
474
|
const o = ((b = e.options) == null ? void 0 : b.indexAxis) === "y", r = e.tooltip, i = (r == null ? void 0 : r.getActiveElements()) ?? [];
|
|
475
475
|
if (i.length === 0) {
|
|
476
|
-
const
|
|
477
|
-
|
|
476
|
+
const w = Lr(e, o);
|
|
477
|
+
w !== void 0 && On(e.ctx, o, e.chartArea, w);
|
|
478
478
|
return;
|
|
479
479
|
}
|
|
480
480
|
const a = e.scales.x, u = e.scales.y;
|
|
481
481
|
if (!a || !u)
|
|
482
482
|
return;
|
|
483
|
-
const
|
|
484
|
-
if (!
|
|
483
|
+
const m = i[0];
|
|
484
|
+
if (!m)
|
|
485
485
|
return;
|
|
486
486
|
if (t === "bar") {
|
|
487
|
-
const h = (o ? u : a).getPixelForValue(
|
|
487
|
+
const h = (o ? u : a).getPixelForValue(m.index);
|
|
488
488
|
On(e.ctx, o, e.chartArea, h);
|
|
489
489
|
return;
|
|
490
490
|
}
|
|
491
|
-
if (!
|
|
491
|
+
if (!m.element)
|
|
492
492
|
return;
|
|
493
|
-
const v =
|
|
493
|
+
const v = m.element, x = o ? u : a, Y = o ? v.y : v.x, H = x.getPixelForValue(m.index), d = Y ?? H;
|
|
494
494
|
On(e.ctx, o, e.chartArea, d);
|
|
495
495
|
}
|
|
496
496
|
function Qt(e) {
|
|
@@ -498,7 +498,7 @@ function Qt(e) {
|
|
|
498
498
|
return {
|
|
499
499
|
id: "crosshair",
|
|
500
500
|
afterDatasetsDraw: (o) => {
|
|
501
|
-
|
|
501
|
+
Dr(o, e, n);
|
|
502
502
|
},
|
|
503
503
|
afterEvent: (o, r) => {
|
|
504
504
|
n = r.inChartArea === !0;
|
|
@@ -512,33 +512,33 @@ function Qt(e) {
|
|
|
512
512
|
t && (o.ctx.restore(), t = !1);
|
|
513
513
|
},
|
|
514
514
|
beforeDestroy: (o) => {
|
|
515
|
-
|
|
515
|
+
Do(o);
|
|
516
516
|
},
|
|
517
517
|
afterDestroy: (o) => {
|
|
518
|
-
|
|
518
|
+
Do(o);
|
|
519
519
|
}
|
|
520
520
|
};
|
|
521
521
|
}
|
|
522
|
-
const
|
|
523
|
-
let
|
|
524
|
-
const
|
|
525
|
-
function
|
|
526
|
-
window.dispatchEvent(new Event(
|
|
522
|
+
const Ir = Number.POSITIVE_INFINITY, Qn = 2, Pr = 1, Mr = 0.2, Br = 120, Ar = 320, Rr = 24, { breakpoints: Rt } = qt(), ao = "report-v5:locationchange";
|
|
523
|
+
let Io = !1;
|
|
524
|
+
const Fr = "report.widget.comparisonTooltip";
|
|
525
|
+
function Po() {
|
|
526
|
+
window.dispatchEvent(new Event(ao));
|
|
527
527
|
}
|
|
528
|
-
function
|
|
529
|
-
if (
|
|
528
|
+
function Nr() {
|
|
529
|
+
if (Io)
|
|
530
530
|
return;
|
|
531
|
-
|
|
531
|
+
Io = !0;
|
|
532
532
|
const e = window.history.pushState.bind(window.history), t = window.history.replaceState.bind(window.history);
|
|
533
533
|
window.history.pushState = function(...o) {
|
|
534
534
|
const r = e(...o);
|
|
535
|
-
return
|
|
535
|
+
return Po(), r;
|
|
536
536
|
}, window.history.replaceState = function(...o) {
|
|
537
537
|
const r = t(...o);
|
|
538
|
-
return
|
|
538
|
+
return Po(), r;
|
|
539
539
|
};
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function Vr(e, t) {
|
|
542
542
|
const n = t.split(".");
|
|
543
543
|
let o = e;
|
|
544
544
|
for (const r of n) {
|
|
@@ -548,63 +548,63 @@ function Fr(e, t) {
|
|
|
548
548
|
}
|
|
549
549
|
return typeof o == "string" ? o : void 0;
|
|
550
550
|
}
|
|
551
|
-
function
|
|
552
|
-
const t = `${
|
|
553
|
-
return
|
|
551
|
+
function ro(e) {
|
|
552
|
+
const t = `${Fr}.${e}`, n = oo(), o = xn[n];
|
|
553
|
+
return Vr(o, t) ?? t;
|
|
554
554
|
}
|
|
555
|
-
function
|
|
556
|
-
return
|
|
555
|
+
function sa() {
|
|
556
|
+
return ro("viewBreakdown");
|
|
557
557
|
}
|
|
558
|
-
function
|
|
559
|
-
return
|
|
558
|
+
function Mo() {
|
|
559
|
+
return ro("current");
|
|
560
560
|
}
|
|
561
|
-
function
|
|
562
|
-
return
|
|
561
|
+
function Bo() {
|
|
562
|
+
return ro("compared");
|
|
563
563
|
}
|
|
564
564
|
function hn(e, t) {
|
|
565
565
|
const n = e.trim();
|
|
566
566
|
return n.length === 0 ? t : `${n} · ${t}`;
|
|
567
567
|
}
|
|
568
|
-
function
|
|
568
|
+
function $r(e, t, n, o) {
|
|
569
569
|
var v;
|
|
570
|
-
const r =
|
|
570
|
+
const r = zr(e), i = (r == null ? void 0 : r[0]) ?? "", a = r == null ? void 0 : r[1], u = t.some((x) => ia(x)), m = typeof n == "number" ? (v = o == null ? void 0 : o[n]) == null ? void 0 : v.trim() : void 0;
|
|
571
571
|
return a ? {
|
|
572
|
-
firstTitle: hn(i,
|
|
573
|
-
secondTitle: hn(a,
|
|
572
|
+
firstTitle: hn(i, Mo()),
|
|
573
|
+
secondTitle: hn(a, Bo())
|
|
574
574
|
} : u ? {
|
|
575
|
-
firstTitle: hn(i,
|
|
575
|
+
firstTitle: hn(i, Mo()),
|
|
576
576
|
secondTitle: hn(
|
|
577
|
-
|
|
578
|
-
|
|
577
|
+
m && m.length > 0 ? m : i,
|
|
578
|
+
Bo()
|
|
579
579
|
)
|
|
580
580
|
} : {
|
|
581
581
|
firstTitle: i
|
|
582
582
|
};
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function zr(e) {
|
|
585
585
|
return e == null ? null : typeof e != "string" ? [] : e.split("#").map((t) => t.trim()).filter((t) => t.length > 0);
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function ia(e) {
|
|
588
588
|
return e.dash === !0 || e.isCompare === !0;
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function Hr(e) {
|
|
591
591
|
return typeof e.label == "string" ? e.label : "N/A";
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function ua(e, t) {
|
|
594
594
|
let n;
|
|
595
595
|
return Array.isArray(e.data) && t < e.data.length && (n = e.data[t]), typeof n != "number" ? NaN : n;
|
|
596
596
|
}
|
|
597
|
-
function
|
|
597
|
+
function ca(e, t, n) {
|
|
598
598
|
return `${e}: ${Number.isNaN(t) ? "" : Et(t.toLocaleString(), n)}`;
|
|
599
599
|
}
|
|
600
|
-
function
|
|
600
|
+
function Wr(e, t) {
|
|
601
601
|
return e.type === "bar" ? !0 : t === "bar";
|
|
602
602
|
}
|
|
603
|
-
function
|
|
603
|
+
function Or(e, t, n) {
|
|
604
604
|
const o = Ut(e.borderColor, t) || Ut(e.color, t), r = Ut(e.backgroundColor, t), i = Ut(e.pointBorderColor, t), a = Ut(e.pointBackgroundColor, t);
|
|
605
|
-
return n ?
|
|
605
|
+
return n ? Ao(r, a, o, i) : Ao(o, i, r, a);
|
|
606
606
|
}
|
|
607
|
-
function
|
|
607
|
+
function Ur(e) {
|
|
608
608
|
return e.trim().toLowerCase();
|
|
609
609
|
}
|
|
610
610
|
function Ut(e, t) {
|
|
@@ -614,81 +614,81 @@ function Ut(e, t) {
|
|
|
614
614
|
return typeof n == "string" ? n : void 0;
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
|
-
function
|
|
617
|
+
function Kr(e) {
|
|
618
618
|
if (typeof e != "string") return "#9ca3af";
|
|
619
619
|
const t = e.trim();
|
|
620
620
|
return /^[-#(),.%\sa-zA-Z0-9]+$/.test(t) ? t : "#9ca3af";
|
|
621
621
|
}
|
|
622
|
-
function
|
|
622
|
+
function Yr(e) {
|
|
623
623
|
const t = e.replace(/\s+/g, "").toLowerCase();
|
|
624
624
|
return !!(t === "transparent" || /^rgba\([^)]*,0(?:\.0+)?\)$/.test(t) || /^hsla\([^)]*,0(?:\.0+)?\)$/.test(t) || t === "#0000" || t === "#00000000");
|
|
625
625
|
}
|
|
626
|
-
function
|
|
626
|
+
function Ao(...e) {
|
|
627
627
|
for (const t of e) {
|
|
628
628
|
if (!t) continue;
|
|
629
|
-
const n =
|
|
630
|
-
if (!
|
|
629
|
+
const n = Kr(t);
|
|
630
|
+
if (!Yr(n))
|
|
631
631
|
return n;
|
|
632
632
|
}
|
|
633
633
|
return "#9ca3af";
|
|
634
634
|
}
|
|
635
|
-
function
|
|
635
|
+
function Xr(e) {
|
|
636
636
|
const t = e.dataset, n = typeof e.dataIndex == "number" ? e.dataIndex : 0;
|
|
637
|
-
return Number.isFinite(
|
|
637
|
+
return Number.isFinite(ua(t, n));
|
|
638
638
|
}
|
|
639
|
-
function
|
|
639
|
+
function eo(e) {
|
|
640
640
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/\"/g, """).replace(/'/g, "'");
|
|
641
641
|
}
|
|
642
|
-
function
|
|
642
|
+
function Er(e) {
|
|
643
643
|
const t = typeof e == "number" ? e : typeof e == "string" ? Number(e) : Number.NaN;
|
|
644
|
-
return Number.isFinite(t) ? Math.max(
|
|
644
|
+
return Number.isFinite(t) ? Math.max(Qn, Math.floor(t)) : Ir;
|
|
645
645
|
}
|
|
646
|
-
function
|
|
646
|
+
function jr(e) {
|
|
647
647
|
return e <= 0 ? 320 : Rt.value.xs || Rt.value.sm || e <= 640 ? Math.max(160, Math.floor(e * 0.38)) : Rt.value.md || e <= 900 ? Math.max(200, Math.floor(e * 0.46)) : Rt.value.lg || e <= 1200 ? Math.max(240, Math.floor(e * 0.54)) : Math.max(280, Math.floor(e * 0.62));
|
|
648
648
|
}
|
|
649
|
-
function
|
|
650
|
-
const n = window.innerHeight, o =
|
|
649
|
+
function lo(e, t) {
|
|
650
|
+
const n = window.innerHeight, o = jr(n), r = t ? Math.max(120, t.clientHeight - 16) : Number.POSITIVE_INFINITY, i = Math.max(120, Math.min(o, r));
|
|
651
651
|
e.style.maxHeight = `${i}px`;
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function _t() {
|
|
654
654
|
return Rt.value.xs || Rt.value.sm;
|
|
655
655
|
}
|
|
656
656
|
function Nt(e) {
|
|
657
657
|
return e.dataset.pinned === "true";
|
|
658
658
|
}
|
|
659
|
-
function
|
|
659
|
+
function da(e, t) {
|
|
660
660
|
if (t) {
|
|
661
661
|
e.dataset.pinned = "true";
|
|
662
662
|
return;
|
|
663
663
|
}
|
|
664
664
|
delete e.dataset.pinned;
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function fa(e) {
|
|
667
667
|
return {
|
|
668
|
-
maxTooltipItems:
|
|
668
|
+
maxTooltipItems: Er(e == null ? void 0 : e.maxTooltipItems)
|
|
669
669
|
};
|
|
670
670
|
}
|
|
671
|
-
function
|
|
671
|
+
function Gr(e) {
|
|
672
672
|
e.__lastPhoneTapAt = void 0, e.__lastPhoneTapX = void 0, e.__lastPhoneTapY = void 0, e.__lastPhoneTapDatasetIndex = void 0, e.__lastPhoneTapDataIndex = void 0;
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function qr(e, t, n, o, r, i) {
|
|
675
675
|
e.__lastPhoneTapAt = o, e.__lastPhoneTapX = t, e.__lastPhoneTapY = n, e.__lastPhoneTapDatasetIndex = r, e.__lastPhoneTapDataIndex = i;
|
|
676
676
|
}
|
|
677
|
-
function
|
|
677
|
+
function Jr(e, t, n) {
|
|
678
678
|
return e.__lastPhoneTapDatasetIndex === t && e.__lastPhoneTapDataIndex === n;
|
|
679
679
|
}
|
|
680
|
-
function
|
|
680
|
+
function Zr(e, t, n, o) {
|
|
681
681
|
if (!Number.isFinite(e.__lastPhoneTapAt) || !Number.isFinite(e.__lastPhoneTapX) || !Number.isFinite(e.__lastPhoneTapY))
|
|
682
682
|
return !1;
|
|
683
683
|
const r = o - e.__lastPhoneTapAt;
|
|
684
|
-
if (r < 0 || r >
|
|
684
|
+
if (r < 0 || r > Ar)
|
|
685
685
|
return !1;
|
|
686
686
|
const i = t - e.__lastPhoneTapX, a = n - e.__lastPhoneTapY;
|
|
687
|
-
return Math.hypot(i, a) <=
|
|
687
|
+
return Math.hypot(i, a) <= Rr;
|
|
688
688
|
}
|
|
689
|
-
function
|
|
689
|
+
function Ro(e) {
|
|
690
690
|
return {
|
|
691
|
-
text:
|
|
691
|
+
text: ca(e.datasetLabel, 0, e.currency),
|
|
692
692
|
color: "#cbd5e1",
|
|
693
693
|
isBar: e.isBar,
|
|
694
694
|
value: "-",
|
|
@@ -696,28 +696,28 @@ function Bo(e) {
|
|
|
696
696
|
matchingKey: e.matchingKey
|
|
697
697
|
};
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function Qr(e) {
|
|
700
700
|
return Zt({
|
|
701
|
-
...
|
|
701
|
+
...Cr,
|
|
702
702
|
margin: `${e ? "8px" : "0"} 0 4px`
|
|
703
703
|
});
|
|
704
704
|
}
|
|
705
|
-
function
|
|
705
|
+
function el(e, t) {
|
|
706
706
|
return Zt({
|
|
707
|
-
...e ?
|
|
707
|
+
...e ? _r : Sr,
|
|
708
708
|
background: t
|
|
709
709
|
});
|
|
710
710
|
}
|
|
711
|
-
function
|
|
712
|
-
return `<button type="button" data-tooltip-full-details="true" style="${
|
|
711
|
+
function tl(e) {
|
|
712
|
+
return `<button type="button" data-tooltip-full-details="true" style="${br}">${eo(e)}</button>`;
|
|
713
713
|
}
|
|
714
|
-
function
|
|
714
|
+
function ma(e, t, n, o, r, i, a, u, m) {
|
|
715
715
|
var $;
|
|
716
|
-
const { firstTitle: v, secondTitle:
|
|
716
|
+
const { firstTitle: v, secondTitle: x } = $r(
|
|
717
717
|
($ = e[0]) == null ? void 0 : $.label,
|
|
718
718
|
i,
|
|
719
719
|
a,
|
|
720
|
-
|
|
720
|
+
m
|
|
721
721
|
), Y = [], H = [], d = /* @__PURE__ */ new Set(), b = i.some((C) => (C == null ? void 0 : C.formatter) === "CURRENCY") ? Dn(Ln().country) : void 0;
|
|
722
722
|
i.forEach((C, z) => {
|
|
723
723
|
if (d.has(z))
|
|
@@ -725,25 +725,25 @@ function fa(e, t, n, o, r, i, a, u, f) {
|
|
|
725
725
|
const O = C ?? {};
|
|
726
726
|
if (O.isSpacer === !0 || typeof O.xAxisIndex == "number" && O.xAxisIndex !== a)
|
|
727
727
|
return;
|
|
728
|
-
const ue =
|
|
728
|
+
const ue = Hr(O), R = ua(O, a);
|
|
729
729
|
if (!Number.isFinite(R))
|
|
730
730
|
return;
|
|
731
|
-
const A =
|
|
732
|
-
text:
|
|
733
|
-
color:
|
|
731
|
+
const A = Wr(O, u), T = O.formatter === "CURRENCY" ? b : void 0, q = {
|
|
732
|
+
text: ca(ue, R, T),
|
|
733
|
+
color: Or(O, a, A),
|
|
734
734
|
isBar: A,
|
|
735
735
|
value: R,
|
|
736
736
|
datasetLabel: ue,
|
|
737
|
-
matchingKey:
|
|
737
|
+
matchingKey: Ur(ue),
|
|
738
738
|
currency: T
|
|
739
739
|
};
|
|
740
|
-
if (
|
|
740
|
+
if (x && ia(O)) {
|
|
741
741
|
H.push(q);
|
|
742
742
|
return;
|
|
743
743
|
}
|
|
744
744
|
Y.push(q);
|
|
745
745
|
});
|
|
746
|
-
const
|
|
746
|
+
const w = Y.slice(0, o), h = /* @__PURE__ */ new Map();
|
|
747
747
|
H.forEach((C) => {
|
|
748
748
|
const z = h.get(C.matchingKey);
|
|
749
749
|
if (!z) {
|
|
@@ -752,22 +752,22 @@ function fa(e, t, n, o, r, i, a, u, f) {
|
|
|
752
752
|
}
|
|
753
753
|
z.push(C);
|
|
754
754
|
});
|
|
755
|
-
const I =
|
|
755
|
+
const I = x ? w.map((C) => {
|
|
756
756
|
const z = h.get(C.matchingKey);
|
|
757
|
-
return !z || z.length === 0 ?
|
|
758
|
-
}) : [], P = Y.length >
|
|
759
|
-
const z =
|
|
760
|
-
return `<div style="${
|
|
757
|
+
return !z || z.length === 0 ? Ro(C) : z.shift() ?? Ro(C);
|
|
758
|
+
}) : [], P = Y.length > w.length || H.length > I.length, W = (C, z = !1) => `<div style="${Qr(z)}">${eo(C)}</div>`, M = (C) => {
|
|
759
|
+
const z = el(C.isBar, C.color);
|
|
760
|
+
return `<div style="${xr}"><span style="${z}"></span><span style="${wr}">${eo(C.text)}</span></div>`;
|
|
761
761
|
};
|
|
762
762
|
let S = "";
|
|
763
|
-
v.length > 0 && (S += W(v)), S +=
|
|
763
|
+
v.length > 0 && (S += W(v)), S += w.map((C) => M(C)).join(""), x && I.length > 0 && (S += W(x, S.length > 0), S += I.map((C) => M(C)).join("")), r && P && (S += tl(n));
|
|
764
764
|
const D = [
|
|
765
765
|
{
|
|
766
766
|
title: v,
|
|
767
767
|
values: Y
|
|
768
768
|
},
|
|
769
769
|
{
|
|
770
|
-
title:
|
|
770
|
+
title: x ?? "",
|
|
771
771
|
values: H
|
|
772
772
|
}
|
|
773
773
|
].filter((C) => C.values.length > 0);
|
|
@@ -777,11 +777,11 @@ function fa(e, t, n, o, r, i, a, u, f) {
|
|
|
777
777
|
hasCollapsedValues: P
|
|
778
778
|
};
|
|
779
779
|
}
|
|
780
|
-
function
|
|
781
|
-
return e.scrollHeight - e.clientHeight >
|
|
780
|
+
function Fo(e) {
|
|
781
|
+
return e.scrollHeight - e.clientHeight > Pr;
|
|
782
782
|
}
|
|
783
|
-
function vn(e, t, n, o, r, i, a, u,
|
|
784
|
-
const
|
|
783
|
+
function vn(e, t, n, o, r, i, a, u, m, v) {
|
|
784
|
+
const x = ma(
|
|
785
785
|
t,
|
|
786
786
|
n,
|
|
787
787
|
o,
|
|
@@ -789,12 +789,12 @@ function vn(e, t, n, o, r, i, a, u, f, v) {
|
|
|
789
789
|
i,
|
|
790
790
|
a,
|
|
791
791
|
u,
|
|
792
|
-
|
|
792
|
+
m,
|
|
793
793
|
v
|
|
794
794
|
);
|
|
795
|
-
return e.innerHTML !==
|
|
795
|
+
return e.innerHTML !== x.html && (e.innerHTML = x.html, gl(e)), x;
|
|
796
796
|
}
|
|
797
|
-
function
|
|
797
|
+
function nl(e, t, n, o, r, i, a, u, m, v) {
|
|
798
798
|
if (Number.isFinite(r))
|
|
799
799
|
return {
|
|
800
800
|
markup: vn(
|
|
@@ -806,30 +806,30 @@ function el(e, t, n, o, r, i, a, u, f, v) {
|
|
|
806
806
|
i,
|
|
807
807
|
a,
|
|
808
808
|
u,
|
|
809
|
-
|
|
809
|
+
m,
|
|
810
810
|
v
|
|
811
811
|
),
|
|
812
812
|
maxTooltipItems: r
|
|
813
813
|
};
|
|
814
|
-
const
|
|
815
|
-
let Y =
|
|
814
|
+
const x = Math.max(Qn, t.length);
|
|
815
|
+
let Y = x, H = vn(
|
|
816
816
|
e,
|
|
817
817
|
t,
|
|
818
818
|
n,
|
|
819
819
|
o,
|
|
820
|
-
|
|
820
|
+
x,
|
|
821
821
|
i,
|
|
822
822
|
a,
|
|
823
823
|
u,
|
|
824
|
-
|
|
824
|
+
m,
|
|
825
825
|
v
|
|
826
826
|
);
|
|
827
|
-
if (!
|
|
827
|
+
if (!Fo(e))
|
|
828
828
|
return {
|
|
829
829
|
markup: H,
|
|
830
|
-
maxTooltipItems:
|
|
830
|
+
maxTooltipItems: x
|
|
831
831
|
};
|
|
832
|
-
let d =
|
|
832
|
+
let d = Qn, b = x;
|
|
833
833
|
for (; d <= b; ) {
|
|
834
834
|
const h = Math.floor((d + b) / 2), I = vn(
|
|
835
835
|
e,
|
|
@@ -840,17 +840,17 @@ function el(e, t, n, o, r, i, a, u, f, v) {
|
|
|
840
840
|
i,
|
|
841
841
|
a,
|
|
842
842
|
u,
|
|
843
|
-
|
|
843
|
+
m,
|
|
844
844
|
v
|
|
845
845
|
);
|
|
846
|
-
if (
|
|
846
|
+
if (Fo(e)) {
|
|
847
847
|
b = h - 1;
|
|
848
848
|
continue;
|
|
849
849
|
}
|
|
850
850
|
Y = h, H = I, d = h + 1;
|
|
851
851
|
}
|
|
852
852
|
return {
|
|
853
|
-
markup: Y ===
|
|
853
|
+
markup: Y === x ? H : vn(
|
|
854
854
|
e,
|
|
855
855
|
t,
|
|
856
856
|
n,
|
|
@@ -859,45 +859,45 @@ function el(e, t, n, o, r, i, a, u, f, v) {
|
|
|
859
859
|
i,
|
|
860
860
|
a,
|
|
861
861
|
u,
|
|
862
|
-
|
|
862
|
+
m,
|
|
863
863
|
v
|
|
864
864
|
),
|
|
865
865
|
maxTooltipItems: Y
|
|
866
866
|
};
|
|
867
867
|
}
|
|
868
|
-
function
|
|
868
|
+
function No(e, t) {
|
|
869
869
|
const n = Math.max(0, Math.min(1, t)), o = e.trim();
|
|
870
870
|
if (o.startsWith("#")) {
|
|
871
871
|
const a = o.slice(1), u = a.length === 3 ? `${a[0]}${a[0]}${a[1]}${a[1]}${a[2]}${a[2]}` : a.length === 4 ? `${a[0]}${a[0]}${a[1]}${a[1]}${a[2]}${a[2]}` : a.length >= 6 ? a.slice(0, 6) : "";
|
|
872
872
|
if (/^[0-9a-fA-F]{6}$/.test(u)) {
|
|
873
|
-
const
|
|
874
|
-
return `rgba(${
|
|
873
|
+
const m = Number.parseInt(u.slice(0, 2), 16), v = Number.parseInt(u.slice(2, 4), 16), x = Number.parseInt(u.slice(4, 6), 16);
|
|
874
|
+
return `rgba(${m}, ${v}, ${x}, ${n})`;
|
|
875
875
|
}
|
|
876
876
|
}
|
|
877
877
|
const r = o.match(/^rgba?\(([^)]+)\)$/i);
|
|
878
878
|
if (r) {
|
|
879
879
|
const a = r[1].split(",").map((u) => u.trim());
|
|
880
880
|
if (a.length >= 3) {
|
|
881
|
-
const [u,
|
|
882
|
-
return `rgba(${u}, ${
|
|
881
|
+
const [u, m, v] = a;
|
|
882
|
+
return `rgba(${u}, ${m}, ${v}, ${n})`;
|
|
883
883
|
}
|
|
884
884
|
}
|
|
885
885
|
const i = o.match(/^hsla?\(([^)]+)\)$/i);
|
|
886
886
|
if (i) {
|
|
887
887
|
const a = i[1].split(",").map((u) => u.trim());
|
|
888
888
|
if (a.length >= 3) {
|
|
889
|
-
const [u,
|
|
890
|
-
return `hsla(${u}, ${
|
|
889
|
+
const [u, m, v] = a;
|
|
890
|
+
return `hsla(${u}, ${m}, ${v}, ${n})`;
|
|
891
891
|
}
|
|
892
892
|
}
|
|
893
893
|
return e;
|
|
894
894
|
}
|
|
895
895
|
function yn(e, t) {
|
|
896
|
-
return typeof e == "string" ?
|
|
897
|
-
(n) => typeof n == "string" ?
|
|
896
|
+
return typeof e == "string" ? No(e, t) : Array.isArray(e) ? e.map(
|
|
897
|
+
(n) => typeof n == "string" ? No(n, t) : n
|
|
898
898
|
) : e;
|
|
899
899
|
}
|
|
900
|
-
function
|
|
900
|
+
function ol(e) {
|
|
901
901
|
e.__tooltipOriginalStyle || (e.__tooltipOriginalStyle = {
|
|
902
902
|
borderColor: Reflect.get(e, "borderColor"),
|
|
903
903
|
backgroundColor: Reflect.get(e, "backgroundColor"),
|
|
@@ -905,11 +905,11 @@ function tl(e) {
|
|
|
905
905
|
pointBackgroundColor: Reflect.get(e, "pointBackgroundColor")
|
|
906
906
|
});
|
|
907
907
|
}
|
|
908
|
-
function
|
|
908
|
+
function al(e) {
|
|
909
909
|
const t = e.__tooltipOriginalStyle;
|
|
910
910
|
t && (Reflect.set(e, "borderColor", t.borderColor), Reflect.set(e, "backgroundColor", t.backgroundColor), Reflect.set(e, "pointBorderColor", t.pointBorderColor), Reflect.set(e, "pointBackgroundColor", t.pointBackgroundColor));
|
|
911
911
|
}
|
|
912
|
-
function
|
|
912
|
+
function rl(e, t) {
|
|
913
913
|
const n = e.__tooltipOriginalStyle;
|
|
914
914
|
n && (Reflect.set(e, "borderColor", yn(n.borderColor, t)), Reflect.set(e, "backgroundColor", yn(n.backgroundColor, t)), Reflect.set(e, "pointBorderColor", yn(n.pointBorderColor, t)), Reflect.set(
|
|
915
915
|
e,
|
|
@@ -917,7 +917,7 @@ function ol(e, t) {
|
|
|
917
917
|
yn(n.pointBackgroundColor, t)
|
|
918
918
|
));
|
|
919
919
|
}
|
|
920
|
-
function
|
|
920
|
+
function to(e) {
|
|
921
921
|
var o;
|
|
922
922
|
if (!e || typeof e != "object")
|
|
923
923
|
return !1;
|
|
@@ -928,12 +928,12 @@ function eo(e) {
|
|
|
928
928
|
return !(n != null && (!n.isConnected || !n.ownerDocument));
|
|
929
929
|
}
|
|
930
930
|
function wn(e, t) {
|
|
931
|
-
if (!
|
|
931
|
+
if (!to(e))
|
|
932
932
|
return;
|
|
933
933
|
const n = e.data.datasets;
|
|
934
934
|
if (n.length !== 0) {
|
|
935
935
|
if (n.forEach((o, r) => {
|
|
936
|
-
|
|
936
|
+
ol(o), !t || r === t.datasetIndex ? al(o) : rl(o, Mr);
|
|
937
937
|
}), typeof e.setActiveElements == "function")
|
|
938
938
|
try {
|
|
939
939
|
t ? e.setActiveElements([
|
|
@@ -952,9 +952,9 @@ function wn(e, t) {
|
|
|
952
952
|
}
|
|
953
953
|
}
|
|
954
954
|
}
|
|
955
|
-
function
|
|
955
|
+
function pa(e) {
|
|
956
956
|
const t = e, n = t == null ? void 0 : t.chart;
|
|
957
|
-
if (
|
|
957
|
+
if (to(n))
|
|
958
958
|
return n;
|
|
959
959
|
const o = t == null ? void 0 : t.$el;
|
|
960
960
|
if (!o)
|
|
@@ -962,128 +962,128 @@ function ma(e) {
|
|
|
962
962
|
const r = o.querySelector("canvas");
|
|
963
963
|
if (!(r instanceof HTMLCanvasElement))
|
|
964
964
|
return null;
|
|
965
|
-
const i =
|
|
966
|
-
return
|
|
965
|
+
const i = En.getChart(r);
|
|
966
|
+
return to(i) ? i : null;
|
|
967
967
|
}
|
|
968
|
-
function
|
|
968
|
+
function ll(e) {
|
|
969
969
|
const t = window.getComputedStyle(e);
|
|
970
970
|
return [t.overflow, t.overflowX, t.overflowY].some((o) => o !== "visible");
|
|
971
971
|
}
|
|
972
|
-
function
|
|
972
|
+
function so(e) {
|
|
973
973
|
let t = e.parentElement ?? e, n = t;
|
|
974
974
|
for (; n && n.parentElement && n.parentElement !== document.body && n.parentElement !== document.documentElement; )
|
|
975
|
-
|
|
975
|
+
ll(n) && (t = n.parentElement), n = n.parentElement;
|
|
976
976
|
return window.getComputedStyle(t).position === "static" && (t.style.position = "relative"), t;
|
|
977
977
|
}
|
|
978
|
-
function
|
|
979
|
-
const
|
|
978
|
+
function io(e, t, n, o, r, i, a = "center", u = !1) {
|
|
979
|
+
const m = t.getBoundingClientRect(), v = n.getBoundingClientRect(), x = n.scrollLeft, Y = n.scrollTop, H = n.clientWidth, d = n.clientHeight, b = e;
|
|
980
980
|
(!Number.isFinite(b.__cachedWidth) || !Number.isFinite(b.__cachedHeight) || b.__measurementHostWidth !== H || b.__measurementHostHeight !== d) && (b.__cachedWidth = e.offsetWidth, b.__cachedHeight = e.offsetHeight, b.__measurementHostWidth = H, b.__measurementHostHeight = d);
|
|
981
|
-
const h = b.__cachedWidth ?? e.offsetWidth, I = b.__cachedHeight ?? e.offsetHeight, P = 8, W =
|
|
981
|
+
const h = b.__cachedWidth ?? e.offsetWidth, I = b.__cachedHeight ?? e.offsetHeight, P = 8, W = m.left - v.left + x + o, M = m.top - v.top + Y + r, S = u ? a === "left" ? W - h - P : W + P : a === "left" ? W - h - P : a === "right" ? W + P : W - h / 2, D = u ? M + P : i ? M - I / 2 : M + P, $ = x + P;
|
|
982
982
|
let C = Y + P;
|
|
983
983
|
const z = document.querySelector('[data-menu-tab="true"]');
|
|
984
984
|
if (z) {
|
|
985
985
|
const q = z.getBoundingClientRect().bottom - v.top + Y + P;
|
|
986
986
|
C = Math.max(C, q);
|
|
987
987
|
}
|
|
988
|
-
const O = Math.max($,
|
|
988
|
+
const O = Math.max($, x + H - h - P), ue = Math.max(C, Y + d - I - P), R = Math.round(Math.min(Math.max($, S), O)), A = Math.round(Math.min(Math.max(C, D), ue));
|
|
989
989
|
b.__lastLeftPx === R && b.__lastTopPx === A || (b.__lastLeftPx = R, b.__lastTopPx = A, e.style.left = `${R}px`, e.style.top = `${A}px`);
|
|
990
990
|
}
|
|
991
|
-
function
|
|
991
|
+
function ga(e) {
|
|
992
992
|
return e.dataset.anchorDirection === "left" ? "left" : e.dataset.anchorDirection === "right" ? "right" : "center";
|
|
993
993
|
}
|
|
994
|
-
function
|
|
995
|
-
const u = t.getBoundingClientRect(),
|
|
996
|
-
!Number.isFinite(
|
|
994
|
+
function sl(e, t, n, o, r, i, a) {
|
|
995
|
+
const u = t.getBoundingClientRect(), m = o - u.left, v = r - u.top;
|
|
996
|
+
!Number.isFinite(m) || !Number.isFinite(v) || (e.dataset.cursorCanvasX = String(m), e.dataset.cursorCanvasY = String(v), e.dataset.caretX = String(m), e.dataset.caretY = String(v), e.dataset.anchorDirection = a, io(
|
|
997
997
|
e,
|
|
998
998
|
t,
|
|
999
999
|
n,
|
|
1000
|
-
|
|
1000
|
+
m,
|
|
1001
1001
|
v,
|
|
1002
1002
|
i,
|
|
1003
1003
|
a,
|
|
1004
1004
|
!0
|
|
1005
1005
|
));
|
|
1006
1006
|
}
|
|
1007
|
-
function
|
|
1007
|
+
function il(e) {
|
|
1008
1008
|
const t = document.createElement("div");
|
|
1009
|
-
return t.id = e, t.dataset.comparisonTooltip = "true", t.style.background = "linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86))", t.style.border = "1px solid rgba(255, 255, 255, 0.58)", t.style.borderRadius = "10px", t.style.boxShadow = "0 8px 24px rgba(15, 23, 42, 0.18)", t.style.color = "#111827", t.style.left = "0", t.style.opacity = "0",
|
|
1009
|
+
return t.id = e, t.dataset.comparisonTooltip = "true", t.style.background = "linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86))", t.style.border = "1px solid rgba(255, 255, 255, 0.58)", t.style.borderRadius = "10px", t.style.boxShadow = "0 8px 24px rgba(15, 23, 42, 0.18)", t.style.color = "#111827", t.style.left = "0", t.style.opacity = "0", lo(t), t.style.maxWidth = "min(360px, calc(100% - 16px))", t.style.overflow = "hidden", t.style.padding = "8px 10px", t.style.pointerEvents = "none", t.style.position = "absolute", t.style.textAlign = "left", t.style.top = "0", t.style.transform = "none", t.style.willChange = "left, top", t.style.whiteSpace = "normal", t.style.wordBreak = "normal", t.style.overflowWrap = "normal", t.style.zIndex = "10", t;
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1011
|
+
function ul(e) {
|
|
1012
1012
|
e.__onViewportChange && (window.removeEventListener("scroll", e.__onViewportChange, !0), window.removeEventListener("resize", e.__onViewportChange));
|
|
1013
1013
|
}
|
|
1014
|
-
function
|
|
1015
|
-
e.__onNavigationChange && (window.removeEventListener(
|
|
1014
|
+
function cl(e) {
|
|
1015
|
+
e.__onNavigationChange && (window.removeEventListener(ao, e.__onNavigationChange), window.removeEventListener("popstate", e.__onNavigationChange), window.removeEventListener("hashchange", e.__onNavigationChange), window.removeEventListener("beforeunload", e.__onNavigationChange));
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1017
|
+
function dl(e) {
|
|
1018
1018
|
e.__disconnectObserver && (e.__disconnectObserver.disconnect(), e.__disconnectObserver = void 0);
|
|
1019
1019
|
}
|
|
1020
|
-
function
|
|
1021
|
-
$t(e),
|
|
1020
|
+
function uo(e, t) {
|
|
1021
|
+
$t(e), ha(e), ul(e), cl(e), dl(e), e.__onDetailsClick && e.removeEventListener("click", e.__onDetailsClick), e.__onTooltipPointerEnter && e.removeEventListener("pointerenter", e.__onTooltipPointerEnter), e.__onTooltipPointerLeave && e.removeEventListener("pointerleave", e.__onTooltipPointerLeave), t && e.__onCanvasPointerEnter && t.removeEventListener("pointerenter", e.__onCanvasPointerEnter), t && e.__onCanvasPointerMove && t.removeEventListener("pointermove", e.__onCanvasPointerMove), t && e.__onCanvasPointerLeave && t.removeEventListener("pointerleave", e.__onCanvasPointerLeave), t && e.__onCanvasClick && t.removeEventListener("click", e.__onCanvasClick), t && e.__onCanvasPointerUp && t.removeEventListener("pointerup", e.__onCanvasPointerUp), e.remove();
|
|
1022
1022
|
}
|
|
1023
|
-
function
|
|
1024
|
-
e.__onNavigationChange || (
|
|
1023
|
+
function fl(e, t, n) {
|
|
1024
|
+
e.__onNavigationChange || (Nr(), e.__onNavigationChange = () => {
|
|
1025
1025
|
if (!n.isConnected) {
|
|
1026
|
-
|
|
1026
|
+
uo(e, n);
|
|
1027
1027
|
return;
|
|
1028
1028
|
}
|
|
1029
1029
|
ct(e, t, !0);
|
|
1030
|
-
}, window.addEventListener(
|
|
1030
|
+
}, window.addEventListener(ao, e.__onNavigationChange), window.addEventListener("popstate", e.__onNavigationChange), window.addEventListener("hashchange", e.__onNavigationChange), window.addEventListener("beforeunload", e.__onNavigationChange));
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1032
|
+
function ml(e, t) {
|
|
1033
1033
|
e.__disconnectObserver || document.body && (e.__disconnectObserver = new MutationObserver(() => {
|
|
1034
|
-
t.isConnected ||
|
|
1034
|
+
t.isConnected || uo(e, t);
|
|
1035
1035
|
}), e.__disconnectObserver.observe(document.body, {
|
|
1036
1036
|
childList: !0,
|
|
1037
1037
|
subtree: !0
|
|
1038
1038
|
}));
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1040
|
+
function pl(e, t, n) {
|
|
1041
1041
|
Array.from(
|
|
1042
1042
|
e.querySelectorAll('[data-comparison-tooltip="true"]')
|
|
1043
1043
|
).forEach((r) => {
|
|
1044
|
-
r.id !== t &&
|
|
1044
|
+
r.id !== t && uo(r, n);
|
|
1045
1045
|
});
|
|
1046
1046
|
}
|
|
1047
1047
|
function $t(e) {
|
|
1048
1048
|
typeof e.__hideTimeoutId == "number" && (window.clearTimeout(e.__hideTimeoutId), e.__hideTimeoutId = void 0);
|
|
1049
1049
|
}
|
|
1050
|
-
function
|
|
1050
|
+
function ha(e) {
|
|
1051
1051
|
typeof e.__cursorRafId == "number" && (window.cancelAnimationFrame(e.__cursorRafId), e.__cursorRafId = void 0);
|
|
1052
1052
|
}
|
|
1053
|
-
function
|
|
1053
|
+
function gl(e) {
|
|
1054
1054
|
e.__cachedWidth = void 0, e.__cachedHeight = void 0, e.__measurementHostWidth = void 0, e.__measurementHostHeight = void 0;
|
|
1055
1055
|
}
|
|
1056
|
-
function
|
|
1056
|
+
function Vo(e, t, n, o, r) {
|
|
1057
1057
|
const i = t.getBoundingClientRect(), a = o - i.left, u = r - i.top;
|
|
1058
1058
|
!Number.isFinite(a) || !Number.isFinite(u) || (e.dataset.cursorCanvasX = String(a), e.dataset.cursorCanvasY = String(u), e.dataset.caretX = String(a), e.dataset.caretY = String(u), e.__pendingCursorClientX = o, e.__pendingCursorClientY = r, typeof e.__cursorRafId != "number" && (e.__cursorRafId = window.requestAnimationFrame(() => {
|
|
1059
1059
|
e.__cursorRafId = void 0;
|
|
1060
|
-
const
|
|
1061
|
-
if (e.__pendingCursorClientX = void 0, e.__pendingCursorClientY = void 0, !Number.isFinite(
|
|
1060
|
+
const m = e.__pendingCursorClientX, v = e.__pendingCursorClientY;
|
|
1061
|
+
if (e.__pendingCursorClientX = void 0, e.__pendingCursorClientY = void 0, !Number.isFinite(m) || !Number.isFinite(v))
|
|
1062
1062
|
return;
|
|
1063
|
-
const
|
|
1064
|
-
e.parentElement !==
|
|
1063
|
+
const x = so(t);
|
|
1064
|
+
e.parentElement !== x && x.appendChild(e), sl(
|
|
1065
1065
|
e,
|
|
1066
1066
|
t,
|
|
1067
|
-
|
|
1068
|
-
|
|
1067
|
+
x,
|
|
1068
|
+
m,
|
|
1069
1069
|
v,
|
|
1070
1070
|
n,
|
|
1071
|
-
|
|
1071
|
+
ga(e)
|
|
1072
1072
|
);
|
|
1073
1073
|
})));
|
|
1074
1074
|
}
|
|
1075
1075
|
function ct(e, t, n = !1) {
|
|
1076
|
-
Nt(e) && !n || ($t(e),
|
|
1076
|
+
Nt(e) && !n || ($t(e), ha(e), da(e, !1), Gr(e), e.__pendingCursorClientX = void 0, e.__pendingCursorClientY = void 0, e.__detailsPayload = void 0, e.__lastLeftPx = void 0, e.__lastTopPx = void 0, delete e.dataset.cursorCanvasX, delete e.dataset.cursorCanvasY, e.__isTooltipHovered = !1, e.style.pointerEvents = "none", e.style.opacity = "0", wn(t));
|
|
1077
1077
|
}
|
|
1078
|
-
function Tn(e, t, n =
|
|
1078
|
+
function Tn(e, t, n = Br) {
|
|
1079
1079
|
e.__isTooltipHovered || ($t(e), e.__hideTimeoutId = window.setTimeout(() => {
|
|
1080
1080
|
e.__isTooltipHovered || ct(e, t);
|
|
1081
1081
|
}, n));
|
|
1082
1082
|
}
|
|
1083
|
-
function
|
|
1084
|
-
const { maxTooltipItems: i } =
|
|
1083
|
+
function hl(e, t, n, o, r) {
|
|
1084
|
+
const { maxTooltipItems: i } = fa(r);
|
|
1085
1085
|
e.__onCanvasPointerEnter || (e.__onCanvasPointerEnter = (a) => {
|
|
1086
|
-
if (!(
|
|
1086
|
+
if (!(_t() && Nt(e)) && (Vo(
|
|
1087
1087
|
e,
|
|
1088
1088
|
t,
|
|
1089
1089
|
o,
|
|
@@ -1098,7 +1098,7 @@ function pl(e, t, n, o, r) {
|
|
|
1098
1098
|
}, t.addEventListener("pointerenter", e.__onCanvasPointerEnter, {
|
|
1099
1099
|
passive: !0
|
|
1100
1100
|
})), e.__onCanvasPointerMove || (e.__onCanvasPointerMove = (a) => {
|
|
1101
|
-
|
|
1101
|
+
_t() && Nt(e) || Vo(
|
|
1102
1102
|
e,
|
|
1103
1103
|
t,
|
|
1104
1104
|
o,
|
|
@@ -1108,12 +1108,12 @@ function pl(e, t, n, o, r) {
|
|
|
1108
1108
|
}, t.addEventListener("pointermove", e.__onCanvasPointerMove, {
|
|
1109
1109
|
passive: !0
|
|
1110
1110
|
})), e.__onCanvasPointerLeave || (e.__onCanvasPointerLeave = () => {
|
|
1111
|
-
|
|
1111
|
+
_t() && Nt(e) || Tn(e, n);
|
|
1112
1112
|
}, t.addEventListener("pointerleave", e.__onCanvasPointerLeave, {
|
|
1113
1113
|
passive: !0
|
|
1114
1114
|
})), e.__onCanvasClick || (e.__onCanvasClick = (a) => {
|
|
1115
1115
|
var h, I;
|
|
1116
|
-
if (
|
|
1116
|
+
if (_t() || !(r != null && r.onViewFullDetails) || !e.__detailsPayload || e.style.opacity !== "1")
|
|
1117
1117
|
return;
|
|
1118
1118
|
const u = (P) => {
|
|
1119
1119
|
var $, C, z, O;
|
|
@@ -1121,10 +1121,10 @@ function pl(e, t, n, o, r) {
|
|
|
1121
1121
|
return !1;
|
|
1122
1122
|
const W = ($ = P.find(
|
|
1123
1123
|
(ue) => typeof ue.dataIndex == "number"
|
|
1124
|
-
)) == null ? void 0 : $.dataIndex, M = ((C = n == null ? void 0 : n.data) == null ? void 0 : C.datasets) ?? [], S = (z = n == null ? void 0 : n.config) == null ? void 0 : z.type, D =
|
|
1124
|
+
)) == null ? void 0 : $.dataIndex, M = ((C = n == null ? void 0 : n.data) == null ? void 0 : C.datasets) ?? [], S = (z = n == null ? void 0 : n.config) == null ? void 0 : z.type, D = ma(
|
|
1125
1125
|
P,
|
|
1126
1126
|
o,
|
|
1127
|
-
(r == null ? void 0 : r.viewFullDetailsLabel) ??
|
|
1127
|
+
(r == null ? void 0 : r.viewFullDetailsLabel) ?? sa(),
|
|
1128
1128
|
i,
|
|
1129
1129
|
!0,
|
|
1130
1130
|
M,
|
|
@@ -1133,13 +1133,13 @@ function pl(e, t, n, o, r) {
|
|
|
1133
1133
|
r == null ? void 0 : r.comparisonXAxis
|
|
1134
1134
|
).detailsPayload;
|
|
1135
1135
|
return (O = r.onViewFullDetails) == null || O.call(r, D, n), ct(e, n), !0;
|
|
1136
|
-
},
|
|
1137
|
-
if (u(
|
|
1136
|
+
}, m = ((h = n == null ? void 0 : n.tooltip) == null ? void 0 : h.dataPoints) ?? [];
|
|
1137
|
+
if (u(m))
|
|
1138
1138
|
return;
|
|
1139
1139
|
const v = n == null ? void 0 : n.getElementsAtEventForMode;
|
|
1140
1140
|
if (typeof v != "function")
|
|
1141
1141
|
return;
|
|
1142
|
-
const
|
|
1142
|
+
const x = v.call(
|
|
1143
1143
|
n,
|
|
1144
1144
|
a,
|
|
1145
1145
|
"nearest",
|
|
@@ -1151,7 +1151,7 @@ function pl(e, t, n, o, r) {
|
|
|
1151
1151
|
"index",
|
|
1152
1152
|
{ intersect: !1 },
|
|
1153
1153
|
!1
|
|
1154
|
-
), d = (
|
|
1154
|
+
), d = (x.length > 0 ? x : Y).filter((P) => typeof P.datasetIndex == "number" && typeof P.index == "number").map((P) => ({ datasetIndex: P.datasetIndex, index: P.index }));
|
|
1155
1155
|
if (d.length === 0)
|
|
1156
1156
|
return;
|
|
1157
1157
|
const b = n == null ? void 0 : n.tooltip;
|
|
@@ -1166,12 +1166,12 @@ function pl(e, t, n, o, r) {
|
|
|
1166
1166
|
} catch {
|
|
1167
1167
|
return;
|
|
1168
1168
|
}
|
|
1169
|
-
const
|
|
1170
|
-
u(
|
|
1169
|
+
const w = ((I = n == null ? void 0 : n.tooltip) == null ? void 0 : I.dataPoints) ?? [];
|
|
1170
|
+
u(w);
|
|
1171
1171
|
}, t.addEventListener("click", e.__onCanvasClick)), e.__onCanvasPointerUp || (e.__onCanvasPointerUp = (a) => {
|
|
1172
|
-
if (
|
|
1173
|
-
const u = n == null ? void 0 : n.getElementsAtEventForMode,
|
|
1174
|
-
if (typeof u != "function" || typeof (
|
|
1172
|
+
if (_t()) {
|
|
1173
|
+
const u = n == null ? void 0 : n.getElementsAtEventForMode, m = n == null ? void 0 : n.tooltip;
|
|
1174
|
+
if (typeof u != "function" || typeof (m == null ? void 0 : m.setActiveElements) != "function")
|
|
1175
1175
|
return;
|
|
1176
1176
|
const v = u.call(
|
|
1177
1177
|
n,
|
|
@@ -1179,13 +1179,13 @@ function pl(e, t, n, o, r) {
|
|
|
1179
1179
|
"nearest",
|
|
1180
1180
|
{ intersect: !0 },
|
|
1181
1181
|
!1
|
|
1182
|
-
),
|
|
1182
|
+
), x = u.call(
|
|
1183
1183
|
n,
|
|
1184
1184
|
a,
|
|
1185
1185
|
"index",
|
|
1186
1186
|
{ intersect: !1 },
|
|
1187
1187
|
!1
|
|
1188
|
-
), H = (v.length > 0 ? v :
|
|
1188
|
+
), H = (v.length > 0 ? v : x).filter((I) => typeof I.datasetIndex == "number" && typeof I.index == "number").map((I) => ({
|
|
1189
1189
|
datasetIndex: I.datasetIndex,
|
|
1190
1190
|
index: I.index
|
|
1191
1191
|
}));
|
|
@@ -1193,16 +1193,16 @@ function pl(e, t, n, o, r) {
|
|
|
1193
1193
|
ct(e, n, !0);
|
|
1194
1194
|
return;
|
|
1195
1195
|
}
|
|
1196
|
-
const d = H[0], b =
|
|
1196
|
+
const d = H[0], b = Jr(
|
|
1197
1197
|
e,
|
|
1198
1198
|
d.datasetIndex,
|
|
1199
1199
|
d.index
|
|
1200
|
-
),
|
|
1201
|
-
if (
|
|
1200
|
+
), w = Number.isFinite(e.__lastPhoneTapAt), h = b && Zr(e, a.offsetX, a.offsetY, a.timeStamp);
|
|
1201
|
+
if (w && !h && b) {
|
|
1202
1202
|
ct(e, n, !0);
|
|
1203
1203
|
return;
|
|
1204
1204
|
}
|
|
1205
|
-
|
|
1205
|
+
da(e, !0), $t(e), e.dataset.cursorCanvasX = String(a.offsetX), e.dataset.cursorCanvasY = String(a.offsetY), e.dataset.caretX = String(a.offsetX), e.dataset.caretY = String(a.offsetY), m.setActiveElements(H, {
|
|
1206
1206
|
x: a.offsetX,
|
|
1207
1207
|
y: a.offsetY
|
|
1208
1208
|
});
|
|
@@ -1215,7 +1215,7 @@ function pl(e, t, n, o, r) {
|
|
|
1215
1215
|
r.onViewFullDetails(e.__detailsPayload, n), ct(e, n);
|
|
1216
1216
|
return;
|
|
1217
1217
|
}
|
|
1218
|
-
|
|
1218
|
+
qr(
|
|
1219
1219
|
e,
|
|
1220
1220
|
a.offsetX,
|
|
1221
1221
|
a.offsetY,
|
|
@@ -1236,17 +1236,17 @@ function pl(e, t, n, o, r) {
|
|
|
1236
1236
|
e.__isTooltipHovered = !1, Tn(e, n);
|
|
1237
1237
|
}, e.addEventListener("pointerleave", e.__onTooltipPointerLeave)));
|
|
1238
1238
|
}
|
|
1239
|
-
function
|
|
1239
|
+
function vl(e, t, n) {
|
|
1240
1240
|
e.__onViewportChange || (e.__onViewportChange = () => {
|
|
1241
1241
|
if (e.style.opacity !== "1")
|
|
1242
1242
|
return;
|
|
1243
|
-
const o = Number(e.dataset.caretX), r = Number(e.dataset.caretY), i =
|
|
1243
|
+
const o = Number(e.dataset.caretX), r = Number(e.dataset.caretY), i = ga(e);
|
|
1244
1244
|
if (!Number.isFinite(o) || !Number.isFinite(r)) {
|
|
1245
1245
|
e.style.opacity = "0";
|
|
1246
1246
|
return;
|
|
1247
1247
|
}
|
|
1248
|
-
const a =
|
|
1249
|
-
e.parentElement !== a && a.appendChild(e),
|
|
1248
|
+
const a = so(t);
|
|
1249
|
+
e.parentElement !== a && a.appendChild(e), lo(e, a), io(
|
|
1250
1250
|
e,
|
|
1251
1251
|
t,
|
|
1252
1252
|
a,
|
|
@@ -1263,8 +1263,8 @@ function gl(e, t, n) {
|
|
|
1263
1263
|
passive: !0
|
|
1264
1264
|
}));
|
|
1265
1265
|
}
|
|
1266
|
-
function
|
|
1267
|
-
const { maxTooltipItems: n } =
|
|
1266
|
+
function yl(e, t) {
|
|
1267
|
+
const { maxTooltipItems: n } = fa(t);
|
|
1268
1268
|
return ({ chart: o, tooltip: r }) => {
|
|
1269
1269
|
var R, A, T, q;
|
|
1270
1270
|
if (typeof document > "u" || typeof window > "u")
|
|
@@ -1272,29 +1272,29 @@ function hl(e, t) {
|
|
|
1272
1272
|
const i = o == null ? void 0 : o.canvas;
|
|
1273
1273
|
if (!(i instanceof HTMLCanvasElement))
|
|
1274
1274
|
return;
|
|
1275
|
-
const a =
|
|
1276
|
-
let
|
|
1277
|
-
if (
|
|
1278
|
-
if (
|
|
1275
|
+
const a = so(i), u = `comparison-tooltip-${String(o.id)}`;
|
|
1276
|
+
let m = document.querySelector(`#${u}`);
|
|
1277
|
+
if (m || (m = il(u)), m.parentElement !== a && a.appendChild(m), lo(m, a), vl(m, i, e), fl(m, o, i), ml(m, i), hl(m, i, o, e, t), ((r == null ? void 0 : r.opacity) ?? 0) === 0) {
|
|
1278
|
+
if (_t() && Nt(m))
|
|
1279
1279
|
return;
|
|
1280
|
-
t != null && t.onViewFullDetails ? Tn(
|
|
1280
|
+
t != null && t.onViewFullDetails ? Tn(m, o) : ct(m, o);
|
|
1281
1281
|
return;
|
|
1282
1282
|
}
|
|
1283
1283
|
const v = (r == null ? void 0 : r.dataPoints) ?? [];
|
|
1284
1284
|
if (v.length === 0) {
|
|
1285
|
-
if (
|
|
1285
|
+
if (_t() && Nt(m))
|
|
1286
1286
|
return;
|
|
1287
|
-
t != null && t.onViewFullDetails ? Tn(
|
|
1287
|
+
t != null && t.onViewFullDetails ? Tn(m, o) : ct(m, o);
|
|
1288
1288
|
return;
|
|
1289
1289
|
}
|
|
1290
|
-
|
|
1291
|
-
const
|
|
1292
|
-
markup: { detailsPayload:
|
|
1293
|
-
} =
|
|
1294
|
-
|
|
1290
|
+
pl(a, u, i), $t(m);
|
|
1291
|
+
const x = (t == null ? void 0 : t.viewFullDetailsLabel) ?? sa(), Y = !!(t != null && t.onViewFullDetails), H = (R = v.find((U) => typeof U.dataIndex == "number")) == null ? void 0 : R.dataIndex, d = ((A = o == null ? void 0 : o.data) == null ? void 0 : A.datasets) ?? [], b = (T = o == null ? void 0 : o.config) == null ? void 0 : T.type, {
|
|
1292
|
+
markup: { detailsPayload: w, hasCollapsedValues: h }
|
|
1293
|
+
} = nl(
|
|
1294
|
+
m,
|
|
1295
1295
|
v,
|
|
1296
1296
|
e,
|
|
1297
|
-
|
|
1297
|
+
x,
|
|
1298
1298
|
n,
|
|
1299
1299
|
Y,
|
|
1300
1300
|
d,
|
|
@@ -1302,10 +1302,10 @@ function hl(e, t) {
|
|
|
1302
1302
|
b,
|
|
1303
1303
|
t == null ? void 0 : t.comparisonXAxis
|
|
1304
1304
|
), I = Y && h;
|
|
1305
|
-
|
|
1306
|
-
const P = typeof (r == null ? void 0 : r.caretX) == "number" ? r.caretX : 0, W = Number(
|
|
1305
|
+
m.__detailsPayload = I ? w : void 0, m.style.pointerEvents = I ? "auto" : "none";
|
|
1306
|
+
const P = typeof (r == null ? void 0 : r.caretX) == "number" ? r.caretX : 0, W = Number(m.dataset.cursorCanvasX), M = Number(m.dataset.cursorCanvasY);
|
|
1307
1307
|
if (!(Number.isFinite(W) && Number.isFinite(M))) {
|
|
1308
|
-
|
|
1308
|
+
m.style.opacity = "0";
|
|
1309
1309
|
return;
|
|
1310
1310
|
}
|
|
1311
1311
|
const D = (q = o == null ? void 0 : o.scales) == null ? void 0 : q.x, $ = D && typeof D.getPixelForValue == "function" ? D.getPixelForValue(0) : NaN, C = e ? v.reduce((U, X) => {
|
|
@@ -1317,8 +1317,8 @@ function hl(e, t) {
|
|
|
1317
1317
|
const oe = Number.isFinite($) ? $ : P, ce = Math.abs(U - oe);
|
|
1318
1318
|
return Math.abs(K - oe) > ce ? K : U;
|
|
1319
1319
|
}, Number.NaN) : Number.NaN, z = W, O = M, ue = e ? Number.isFinite($) && Number.isFinite(C) && C < $ ? "left" : "right" : "center";
|
|
1320
|
-
|
|
1321
|
-
|
|
1320
|
+
io(
|
|
1321
|
+
m,
|
|
1322
1322
|
i,
|
|
1323
1323
|
a,
|
|
1324
1324
|
z,
|
|
@@ -1326,19 +1326,19 @@ function hl(e, t) {
|
|
|
1326
1326
|
e,
|
|
1327
1327
|
ue,
|
|
1328
1328
|
!0
|
|
1329
|
-
),
|
|
1329
|
+
), m.dataset.caretX = String(z), m.dataset.caretY = String(O), m.dataset.anchorDirection = ue, m.style.opacity = "1";
|
|
1330
1330
|
};
|
|
1331
1331
|
}
|
|
1332
|
-
function
|
|
1332
|
+
function no(e = !1, t) {
|
|
1333
1333
|
return {
|
|
1334
|
-
...
|
|
1334
|
+
...la(e ? "y" : "x"),
|
|
1335
1335
|
enabled: !1,
|
|
1336
|
-
filter:
|
|
1337
|
-
external:
|
|
1336
|
+
filter: Xr,
|
|
1337
|
+
external: yl(e, t)
|
|
1338
1338
|
};
|
|
1339
1339
|
}
|
|
1340
|
-
const
|
|
1341
|
-
function
|
|
1340
|
+
const $o = "en-US";
|
|
1341
|
+
function zo(e, t) {
|
|
1342
1342
|
const n = t.split(".");
|
|
1343
1343
|
let o = e;
|
|
1344
1344
|
for (const r of n) {
|
|
@@ -1348,43 +1348,43 @@ function Vo(e, t) {
|
|
|
1348
1348
|
}
|
|
1349
1349
|
return typeof o == "string" ? o : void 0;
|
|
1350
1350
|
}
|
|
1351
|
-
function
|
|
1352
|
-
const e =
|
|
1353
|
-
return `(${
|
|
1351
|
+
function bl() {
|
|
1352
|
+
const e = oo(), t = "report.widget.legend.comparison";
|
|
1353
|
+
return `(${zo(xn[e] ?? xn[$o], t) ?? zo(xn[$o], t) ?? "Comparison"})`;
|
|
1354
1354
|
}
|
|
1355
|
-
function
|
|
1356
|
-
function o(d, b,
|
|
1357
|
-
if (d.measureText(b).width <=
|
|
1355
|
+
function va(e) {
|
|
1356
|
+
function o(d, b, w) {
|
|
1357
|
+
if (d.measureText(b).width <= w) return b;
|
|
1358
1358
|
const h = "…";
|
|
1359
1359
|
let I = 0, P = b.length;
|
|
1360
1360
|
for (; I < P; ) {
|
|
1361
1361
|
const W = Math.floor((I + P) / 2), M = b.slice(0, W) + h;
|
|
1362
|
-
d.measureText(M).width <=
|
|
1362
|
+
d.measureText(M).width <= w ? I = W + 1 : P = W;
|
|
1363
1363
|
}
|
|
1364
1364
|
return b.slice(0, I - 1) + h;
|
|
1365
1365
|
}
|
|
1366
1366
|
function r(d, b) {
|
|
1367
|
-
const
|
|
1368
|
-
if (!
|
|
1369
|
-
|
|
1370
|
-
const h = b.reduce((I, P) => Math.max(I,
|
|
1371
|
-
return
|
|
1367
|
+
const w = d == null ? void 0 : d.ctx;
|
|
1368
|
+
if (!w || !(d.width > 0)) return !1;
|
|
1369
|
+
w.save(), w.font = ir(d.options.ticks.font).string;
|
|
1370
|
+
const h = b.reduce((I, P) => Math.max(I, w.measureText(P).width), 0);
|
|
1371
|
+
return w.restore(), h + 8 <= d.width / b.length;
|
|
1372
1372
|
}
|
|
1373
1373
|
function i(d) {
|
|
1374
|
-
const b = d == null ? "" : String(d), [
|
|
1375
|
-
return (
|
|
1374
|
+
const b = d == null ? "" : String(d), [w] = b.split("#");
|
|
1375
|
+
return (w ?? b).trim();
|
|
1376
1376
|
}
|
|
1377
1377
|
function a(d, b) {
|
|
1378
|
-
const
|
|
1379
|
-
return h.length > 0 ? Et(h, b) :
|
|
1378
|
+
const w = i(d), h = Lo(w);
|
|
1379
|
+
return h.length > 0 ? Et(h, b) : w;
|
|
1380
1380
|
}
|
|
1381
1381
|
function u(d, b) {
|
|
1382
|
-
const
|
|
1383
|
-
if (
|
|
1384
|
-
const h =
|
|
1385
|
-
return
|
|
1382
|
+
const w = d == null ? "" : String(d).trim();
|
|
1383
|
+
if (w.length === 0) return w;
|
|
1384
|
+
const h = bl();
|
|
1385
|
+
return w.endsWith(` ${h}`) || w.endsWith(h) ? w : (b == null ? void 0 : b.dash) === !0 || (b == null ? void 0 : b.isCompare) === !0 ? `${w} ${h}` : w;
|
|
1386
1386
|
}
|
|
1387
|
-
const
|
|
1387
|
+
const m = c(() => ({
|
|
1388
1388
|
display: e.showLabel,
|
|
1389
1389
|
align: e.labelAlign,
|
|
1390
1390
|
anchor: e.labelAnchor,
|
|
@@ -1397,7 +1397,7 @@ function ha(e) {
|
|
|
1397
1397
|
const b = d.chart.data.datasets[d.datasetIndex];
|
|
1398
1398
|
return b.borderColor ? Array.isArray(b.borderColor) ? b.borderColor[d.dataIndex] : b.borderColor : b.backgroundColor ? Array.isArray(b.backgroundColor) ? b.backgroundColor[d.dataIndex] : b.backgroundColor : "#000";
|
|
1399
1399
|
},
|
|
1400
|
-
formatter: (d) => Et(
|
|
1400
|
+
formatter: (d) => Et(Lo(d), e.valueCurrency)
|
|
1401
1401
|
})), v = c(() => ({
|
|
1402
1402
|
display: e.showX,
|
|
1403
1403
|
position: e.xPosition,
|
|
@@ -1409,18 +1409,18 @@ function ha(e) {
|
|
|
1409
1409
|
padding: 8,
|
|
1410
1410
|
callback: function(d) {
|
|
1411
1411
|
if ((e == null ? void 0 : e.isTransposed) === !0) return a(d, e.valueCurrency);
|
|
1412
|
-
let
|
|
1412
|
+
let w = String(d);
|
|
1413
1413
|
const h = this;
|
|
1414
|
-
if (h && typeof h.getLabelForValue == "function" && (
|
|
1415
|
-
return a(
|
|
1416
|
-
|
|
1414
|
+
if (h && typeof h.getLabelForValue == "function" && (w = h.getLabelForValue(d)), h != null && h.type && h.type !== "category")
|
|
1415
|
+
return a(w);
|
|
1416
|
+
w = i(w);
|
|
1417
1417
|
const I = h == null ? void 0 : h.chart, P = h == null ? void 0 : h.ctx, W = I.height * 0.25;
|
|
1418
1418
|
if (P && W > 0) {
|
|
1419
1419
|
P.save();
|
|
1420
|
-
const S = P.measureText(
|
|
1420
|
+
const S = P.measureText(w).width > W ? o(P, w, W) : w;
|
|
1421
1421
|
return P.restore(), S;
|
|
1422
1422
|
}
|
|
1423
|
-
return
|
|
1423
|
+
return w;
|
|
1424
1424
|
},
|
|
1425
1425
|
font: {
|
|
1426
1426
|
size: e.xTickFontSize
|
|
@@ -1436,8 +1436,8 @@ function ha(e) {
|
|
|
1436
1436
|
afterBuildTicks: (d) => {
|
|
1437
1437
|
const b = Array.isArray(d == null ? void 0 : d.ticks) ? d.ticks : [];
|
|
1438
1438
|
if (b.length === 0) return;
|
|
1439
|
-
const
|
|
1440
|
-
d.options.ticks.minRotation = h || b.length < 10 || r(d,
|
|
1439
|
+
const w = b.map((I) => i(d.getLabelForValue(I.value))), h = !isNaN(Number(w[0]));
|
|
1440
|
+
d.options.ticks.minRotation = h || b.length < 10 || r(d, w) ? 0 : 90;
|
|
1441
1441
|
},
|
|
1442
1442
|
afterFit: (d) => {
|
|
1443
1443
|
if (!(e != null && e.isTransposed)) {
|
|
@@ -1445,7 +1445,7 @@ function ha(e) {
|
|
|
1445
1445
|
d.height > b && (d.height = b);
|
|
1446
1446
|
}
|
|
1447
1447
|
}
|
|
1448
|
-
})),
|
|
1448
|
+
})), x = c(() => ({
|
|
1449
1449
|
display: e.showY,
|
|
1450
1450
|
position: e.yPosition,
|
|
1451
1451
|
grid: {
|
|
@@ -1459,18 +1459,18 @@ function ha(e) {
|
|
|
1459
1459
|
},
|
|
1460
1460
|
callback: function(d) {
|
|
1461
1461
|
if (!((e == null ? void 0 : e.isTransposed) === !0)) return a(d, e.valueCurrency);
|
|
1462
|
-
let
|
|
1462
|
+
let w = String(d);
|
|
1463
1463
|
const h = this;
|
|
1464
|
-
if (h && typeof h.getLabelForValue == "function" && (
|
|
1465
|
-
return a(
|
|
1466
|
-
|
|
1464
|
+
if (h && typeof h.getLabelForValue == "function" && (w = h.getLabelForValue(d)), h != null && h.type && h.type !== "category")
|
|
1465
|
+
return a(w);
|
|
1466
|
+
w = i(w);
|
|
1467
1467
|
const I = h == null ? void 0 : h.chart, P = h == null ? void 0 : h.ctx, W = I.width * 0.4;
|
|
1468
1468
|
if (P && W > 0) {
|
|
1469
1469
|
P.save();
|
|
1470
|
-
const S = P.measureText(
|
|
1470
|
+
const S = P.measureText(w).width > W ? o(P, w, W) : w;
|
|
1471
1471
|
return P.restore(), S;
|
|
1472
1472
|
}
|
|
1473
|
-
return
|
|
1473
|
+
return w;
|
|
1474
1474
|
}
|
|
1475
1475
|
},
|
|
1476
1476
|
title: {
|
|
@@ -1493,10 +1493,10 @@ function ha(e) {
|
|
|
1493
1493
|
},
|
|
1494
1494
|
generateLabels: (d) => {
|
|
1495
1495
|
var h;
|
|
1496
|
-
const b = e.legendColor ?? "#6b6b6b",
|
|
1497
|
-
if (
|
|
1498
|
-
if (
|
|
1499
|
-
const I =
|
|
1496
|
+
const b = e.legendColor ?? "#6b6b6b", w = ((h = d == null ? void 0 : d.data) == null ? void 0 : h.datasets) || [];
|
|
1497
|
+
if (w.length === 0) return [];
|
|
1498
|
+
if (w.length === 1 && Array.isArray(w[0].backgroundColor) && w[0].backgroundColor.length > 1 && Array.isArray(w[0].data)) {
|
|
1499
|
+
const I = w[0];
|
|
1500
1500
|
return d.data.labels.map((W, M) => {
|
|
1501
1501
|
const S = I.backgroundColor[M];
|
|
1502
1502
|
return {
|
|
@@ -1526,18 +1526,18 @@ function ha(e) {
|
|
|
1526
1526
|
}
|
|
1527
1527
|
}
|
|
1528
1528
|
})), H = c(() => e.isTransposed);
|
|
1529
|
-
return { datalabels:
|
|
1529
|
+
return { datalabels: m, xCfg: v, yCfg: x, isTransposed: H, legend: Y };
|
|
1530
1530
|
}
|
|
1531
|
-
const
|
|
1531
|
+
const Cl = {
|
|
1532
1532
|
key: 0,
|
|
1533
1533
|
class: "pointer-events-none fixed inset-0 z-[120] flex justify-end"
|
|
1534
|
-
},
|
|
1534
|
+
}, xl = ["aria-label"], wl = { class: "relative z-20 flex shrink-0 items-center bg-fm-color-neutral-white justify-between sm:px-5" }, _l = { class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary min-w-0 flex-1 pr-3" }, Sl = { class: "flex items-center gap-1.5" }, kl = {
|
|
1535
1535
|
key: 0,
|
|
1536
1536
|
class: "pb-2 fm-typo-en-body-lg-600 text-fm-color-typo-primary"
|
|
1537
|
-
},
|
|
1537
|
+
}, Tl = ["onMouseenter", "onFocus"], Ll = { class: "min-w-0 flex flex-1 items-center gap-2.5 pr-2" }, Dl = { class: "min-w-0 break-all text-fm-color-typo-secondary" }, Il = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-secondary shrink-0 text-right tabular-nums" }, Pl = {
|
|
1538
1538
|
key: 1,
|
|
1539
1539
|
class: "flex justify-center px-2 pt-2"
|
|
1540
|
-
},
|
|
1540
|
+
}, Ho = 500, Ml = 320, bn = 30, en = /* @__PURE__ */ ze({
|
|
1541
1541
|
__name: "TooltipDetailSidesheet",
|
|
1542
1542
|
props: {
|
|
1543
1543
|
modelValue: { type: Boolean },
|
|
@@ -1545,15 +1545,15 @@ const yl = {
|
|
|
1545
1545
|
},
|
|
1546
1546
|
emits: ["update:modelValue", "value-hover", "value-leave"],
|
|
1547
1547
|
setup(e, { emit: t }) {
|
|
1548
|
-
const n = e, o = t, { t: r } =
|
|
1548
|
+
const n = e, o = t, { t: r } = kt(), i = k(null), a = k(Ho), u = k(!1), m = k({}), v = c({
|
|
1549
1549
|
get: () => n.modelValue,
|
|
1550
1550
|
set: (T) => o("update:modelValue", T)
|
|
1551
|
-
}),
|
|
1551
|
+
}), x = c(() => {
|
|
1552
1552
|
var T;
|
|
1553
1553
|
return (((T = n.detailsPayload) == null ? void 0 : T.sections) ?? []).filter((q) => q.values.length > 0);
|
|
1554
1554
|
}), Y = c(
|
|
1555
|
-
() =>
|
|
1556
|
-
const U = I(T.title, q), X = Math.min(
|
|
1555
|
+
() => x.value.map((T, q) => {
|
|
1556
|
+
const U = I(T.title, q), X = Math.min(m.value[U] ?? bn, T.values.length);
|
|
1557
1557
|
return {
|
|
1558
1558
|
...T,
|
|
1559
1559
|
key: U,
|
|
@@ -1573,7 +1573,7 @@ const yl = {
|
|
|
1573
1573
|
const q = T.text ?? "", U = q.lastIndexOf(":");
|
|
1574
1574
|
return U > -1 ? q.slice(0, U).trim() : q;
|
|
1575
1575
|
}
|
|
1576
|
-
function
|
|
1576
|
+
function w(T) {
|
|
1577
1577
|
o("value-hover", T);
|
|
1578
1578
|
}
|
|
1579
1579
|
function h() {
|
|
@@ -1583,25 +1583,25 @@ const yl = {
|
|
|
1583
1583
|
return `${T || "section"}-${q}`;
|
|
1584
1584
|
}
|
|
1585
1585
|
function P() {
|
|
1586
|
-
|
|
1586
|
+
m.value = x.value.reduce(
|
|
1587
1587
|
(T, q, U) => (T[I(q.title, U)] = bn, T),
|
|
1588
1588
|
{}
|
|
1589
1589
|
);
|
|
1590
1590
|
}
|
|
1591
1591
|
function W(T) {
|
|
1592
|
-
|
|
1593
|
-
...
|
|
1594
|
-
[T]: (
|
|
1592
|
+
m.value = {
|
|
1593
|
+
...m.value,
|
|
1594
|
+
[T]: (m.value[T] ?? bn) + bn
|
|
1595
1595
|
};
|
|
1596
1596
|
}
|
|
1597
1597
|
function M() {
|
|
1598
1598
|
h(), v.value = !1;
|
|
1599
1599
|
}
|
|
1600
1600
|
function S() {
|
|
1601
|
-
return typeof window > "u" ?
|
|
1601
|
+
return typeof window > "u" ? Ho : Math.floor(window.innerWidth * 0.94);
|
|
1602
1602
|
}
|
|
1603
1603
|
function D(T) {
|
|
1604
|
-
const q = S(), U = Math.min(
|
|
1604
|
+
const q = S(), U = Math.min(Ml, q);
|
|
1605
1605
|
return Math.min(q, Math.max(U, Math.floor(T)));
|
|
1606
1606
|
}
|
|
1607
1607
|
function $(T) {
|
|
@@ -1632,15 +1632,15 @@ const yl = {
|
|
|
1632
1632
|
function A(T) {
|
|
1633
1633
|
v.value && T.key === "Escape" && M();
|
|
1634
1634
|
}
|
|
1635
|
-
return
|
|
1635
|
+
return Le([x, v], () => {
|
|
1636
1636
|
v.value && P();
|
|
1637
1637
|
}), Gt(() => {
|
|
1638
1638
|
a.value = D(a.value), P(), document.addEventListener("pointerdown", R, !0), document.addEventListener("keydown", A), window.addEventListener("resize", ue);
|
|
1639
|
-
}),
|
|
1639
|
+
}), Eo(() => {
|
|
1640
1640
|
C(), document.removeEventListener("pointerdown", R, !0), document.removeEventListener("keydown", A), window.removeEventListener("resize", ue);
|
|
1641
1641
|
}), (T, q) => {
|
|
1642
1642
|
const U = be("FmButton");
|
|
1643
|
-
return j(), ye(
|
|
1643
|
+
return j(), ye(Ya, {
|
|
1644
1644
|
"enter-active-class": "transform transition duration-200 ease-out",
|
|
1645
1645
|
"enter-from-class": "translate-x-full opacity-0",
|
|
1646
1646
|
"enter-to-class": "translate-x-0 opacity-100",
|
|
@@ -1649,7 +1649,7 @@ const yl = {
|
|
|
1649
1649
|
"leave-to-class": "translate-x-full opacity-0"
|
|
1650
1650
|
}, {
|
|
1651
1651
|
default: Re(() => [
|
|
1652
|
-
v.value ? (j(), pe("div",
|
|
1652
|
+
v.value ? (j(), pe("div", Cl, [
|
|
1653
1653
|
Q("div", {
|
|
1654
1654
|
ref_key: "panelRef",
|
|
1655
1655
|
ref: i,
|
|
@@ -1663,9 +1663,9 @@ const yl = {
|
|
|
1663
1663
|
class: "absolute left-0 top-0 z-40 h-full w-3 -translate-x-1/2 cursor-ew-resize",
|
|
1664
1664
|
onPointerdown: Cn(O, ["prevent"])
|
|
1665
1665
|
}, null, 32),
|
|
1666
|
-
Q("div",
|
|
1667
|
-
Q("div",
|
|
1668
|
-
Q("div",
|
|
1666
|
+
Q("div", wl, [
|
|
1667
|
+
Q("div", _l, Me(l(r)("report.widget.comparisonTooltip.fullBreakdownTitle")), 1),
|
|
1668
|
+
Q("div", Sl, [
|
|
1669
1669
|
Ce(U, {
|
|
1670
1670
|
class: "relative z-30 h-9 w-9 shrink-0",
|
|
1671
1671
|
variant: "tertiary",
|
|
@@ -1679,21 +1679,21 @@ const yl = {
|
|
|
1679
1679
|
class: "flex flex-1 flex-col gap-4 overflow-y-auto px-4 py-4 sm:px-5",
|
|
1680
1680
|
onMouseleave: h
|
|
1681
1681
|
}, [
|
|
1682
|
-
(j(!0), pe(Ye, null,
|
|
1682
|
+
(j(!0), pe(Ye, null, St(Y.value, (X, B) => (j(), pe("div", {
|
|
1683
1683
|
key: X.key,
|
|
1684
1684
|
class: "flex flex-col gap-2 rounded-2xl bg-fm-color-neutral-white/45 py-3"
|
|
1685
1685
|
}, [
|
|
1686
|
-
X.title ? (j(), pe("p",
|
|
1687
|
-
(j(!0), pe(Ye, null,
|
|
1686
|
+
X.title ? (j(), pe("p", kl, Me(X.title), 1)) : we("", !0),
|
|
1687
|
+
(j(!0), pe(Ye, null, St(X.visibleValues, (K, oe) => (j(), pe("button", {
|
|
1688
1688
|
key: `${K.text}-${oe}`,
|
|
1689
1689
|
type: "button",
|
|
1690
1690
|
class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary flex w-full items-start justify-between gap-3 bg-transparent px-2 py-1.5 text-left transition-colors hover:bg-fm-color-opacity-sm focus-visible:bg-fm-color-opacity-sm focus-visible:outline-none",
|
|
1691
|
-
onMouseenter: (ce) =>
|
|
1692
|
-
onFocus: (ce) =>
|
|
1691
|
+
onMouseenter: (ce) => w(K),
|
|
1692
|
+
onFocus: (ce) => w(K),
|
|
1693
1693
|
onMouseleave: h,
|
|
1694
1694
|
onBlur: h
|
|
1695
1695
|
}, [
|
|
1696
|
-
Q("span",
|
|
1696
|
+
Q("span", Ll, [
|
|
1697
1697
|
Q("span", {
|
|
1698
1698
|
class: Fe([
|
|
1699
1699
|
"inline-block h-3 w-3 shrink-0 box-border",
|
|
@@ -1701,11 +1701,11 @@ const yl = {
|
|
|
1701
1701
|
]),
|
|
1702
1702
|
style: Ve({ backgroundColor: K.color })
|
|
1703
1703
|
}, null, 6),
|
|
1704
|
-
Q("span",
|
|
1704
|
+
Q("span", Dl, Me(b(K)), 1)
|
|
1705
1705
|
]),
|
|
1706
|
-
Q("span",
|
|
1707
|
-
], 40,
|
|
1708
|
-
X.hasMore ? (j(), pe("div",
|
|
1706
|
+
Q("span", Il, Me(d(K)), 1)
|
|
1707
|
+
], 40, Tl))), 128)),
|
|
1708
|
+
X.hasMore ? (j(), pe("div", Pl, [
|
|
1709
1709
|
Ce(U, {
|
|
1710
1710
|
class: "w-full",
|
|
1711
1711
|
variant: "tertiary",
|
|
@@ -1716,21 +1716,21 @@ const yl = {
|
|
|
1716
1716
|
])) : we("", !0)
|
|
1717
1717
|
]))), 128))
|
|
1718
1718
|
], 32)
|
|
1719
|
-
], 12,
|
|
1719
|
+
], 12, xl)
|
|
1720
1720
|
])) : we("", !0)
|
|
1721
1721
|
]),
|
|
1722
1722
|
_: 1
|
|
1723
1723
|
});
|
|
1724
1724
|
};
|
|
1725
1725
|
}
|
|
1726
|
-
}),
|
|
1726
|
+
}), Bl = {
|
|
1727
1727
|
type: "button",
|
|
1728
1728
|
class: "inline-flex cursor-pointer select-none items-center gap-1 rounded px-1 py-0.5 border-none bg-transparent text-fm-color-system-info-300 leading-[1.4]",
|
|
1729
1729
|
style: { fontSize: "var(--legend-font-size)" }
|
|
1730
|
-
},
|
|
1730
|
+
}, Al = ["aria-pressed", "onClick"], Rl = ["title"], Fl = {
|
|
1731
1731
|
key: 0,
|
|
1732
1732
|
class: "chart-legend-item relative z-[2] inline-flex max-w-full cursor-pointer select-none pointer-events-auto"
|
|
1733
|
-
},
|
|
1733
|
+
}, Nl = 36, Wo = 2, Oo = 16, Vl = 50, $l = 6, zl = /* @__PURE__ */ ze({
|
|
1734
1734
|
__name: "ChartLegendPanel",
|
|
1735
1735
|
props: {
|
|
1736
1736
|
chartRef: {},
|
|
@@ -1750,10 +1750,10 @@ const yl = {
|
|
|
1750
1750
|
},
|
|
1751
1751
|
emits: ["toggleDatasetVisibility", "toggleDataPointVisibility"],
|
|
1752
1752
|
setup(e, { emit: t }) {
|
|
1753
|
-
const n = e, o = t, { t: r, locale: i } =
|
|
1753
|
+
const n = e, o = t, { t: r, locale: i } = kt(), a = k([]), u = k(0), m = k(!1), v = k(!1), x = k(0), Y = k(null), H = k(null), d = k(null), b = k(null), w = k(!1), h = k(0), I = k(0), P = k(!1), W = k(0), M = k(0), S = c(() => n.enabled !== !1), D = c(() => n.position === "left" || n.position === "right");
|
|
1754
1754
|
let $ = null;
|
|
1755
1755
|
const C = c(
|
|
1756
|
-
() =>
|
|
1756
|
+
() => m.value && v.value && w.value
|
|
1757
1757
|
), z = c(() => ({
|
|
1758
1758
|
height: `${Math.max(0, h.value)}px`,
|
|
1759
1759
|
transform: `translateY(${Math.max(0, I.value)}px)`
|
|
@@ -1773,7 +1773,7 @@ const yl = {
|
|
|
1773
1773
|
$ != null && (window.clearTimeout($), $ = null);
|
|
1774
1774
|
}
|
|
1775
1775
|
function q() {
|
|
1776
|
-
const s =
|
|
1776
|
+
const s = pa(
|
|
1777
1777
|
n.chartRef
|
|
1778
1778
|
);
|
|
1779
1779
|
if (s)
|
|
@@ -1785,7 +1785,7 @@ const yl = {
|
|
|
1785
1785
|
const V = y.querySelector("canvas");
|
|
1786
1786
|
if (!(V instanceof HTMLCanvasElement))
|
|
1787
1787
|
continue;
|
|
1788
|
-
const N =
|
|
1788
|
+
const N = En.getChart(V);
|
|
1789
1789
|
if (N)
|
|
1790
1790
|
return N;
|
|
1791
1791
|
}
|
|
@@ -1809,11 +1809,11 @@ const yl = {
|
|
|
1809
1809
|
function B() {
|
|
1810
1810
|
const s = d.value;
|
|
1811
1811
|
if (!s) {
|
|
1812
|
-
|
|
1812
|
+
w.value = !1, h.value = 0, I.value = 0;
|
|
1813
1813
|
return;
|
|
1814
1814
|
}
|
|
1815
1815
|
const g = s.clientHeight, p = s.scrollHeight, y = s.scrollTop, V = p > g + 1;
|
|
1816
|
-
if (
|
|
1816
|
+
if (w.value = V, !V || g <= 0) {
|
|
1817
1817
|
h.value = 0, I.value = 0;
|
|
1818
1818
|
return;
|
|
1819
1819
|
}
|
|
@@ -1825,13 +1825,13 @@ const yl = {
|
|
|
1825
1825
|
}
|
|
1826
1826
|
function oe(s) {
|
|
1827
1827
|
const g = d.value, p = H.value;
|
|
1828
|
-
if (!g || !p || !
|
|
1828
|
+
if (!g || !p || !w.value)
|
|
1829
1829
|
return;
|
|
1830
1830
|
const y = p.getBoundingClientRect(), V = s.clientY - y.top, N = Math.max(0, V - h.value / 2), te = Math.max(1, g.clientHeight - h.value), se = Math.min(1, N / te), E = Math.max(0, g.scrollHeight - g.clientHeight);
|
|
1831
1831
|
g.scrollTop = se * E, B();
|
|
1832
1832
|
}
|
|
1833
1833
|
function ce(s) {
|
|
1834
|
-
|
|
1834
|
+
w.value && (P.value = !0, W.value = s.clientY, M.value = I.value);
|
|
1835
1835
|
}
|
|
1836
1836
|
function ge(s) {
|
|
1837
1837
|
if (!P.value)
|
|
@@ -1914,9 +1914,9 @@ const yl = {
|
|
|
1914
1914
|
function F() {
|
|
1915
1915
|
const s = q(), g = Number(s == null ? void 0 : s.height), p = _();
|
|
1916
1916
|
if (D.value)
|
|
1917
|
-
return Number.isFinite(g) && g > 0 ? Math.max(0, Math.floor(g -
|
|
1917
|
+
return Number.isFinite(g) && g > 0 ? Math.max(0, Math.floor(g - Oo)) : p != null ? Math.max(0, Math.floor(p - Oo)) : 120;
|
|
1918
1918
|
if (p != null) {
|
|
1919
|
-
const y = p * 0.3, V = p -
|
|
1919
|
+
const y = p * 0.3, V = p - Nl, N = Math.min(y, V);
|
|
1920
1920
|
return Math.max(0, Math.floor(N));
|
|
1921
1921
|
}
|
|
1922
1922
|
return Number.isFinite(g) && g > 0 ? Math.max(0, Math.floor(g * 0.3)) : 120;
|
|
@@ -2051,7 +2051,7 @@ const yl = {
|
|
|
2051
2051
|
const p = Ie(g == null ? void 0 : g.legendItems);
|
|
2052
2052
|
if (p.length > 0)
|
|
2053
2053
|
return p;
|
|
2054
|
-
const y = (ve = (E = s == null ? void 0 : s.options) == null ? void 0 : E.plugins) == null ? void 0 : ve.legend, V = y == null ? void 0 : y.labels, N = V == null ? void 0 : V.generateLabels, te = (fe = (ae = (Se = (_e =
|
|
2054
|
+
const y = (ve = (E = s == null ? void 0 : s.options) == null ? void 0 : E.plugins) == null ? void 0 : ve.legend, V = y == null ? void 0 : y.labels, N = V == null ? void 0 : V.generateLabels, te = (fe = (ae = (Se = (_e = En.defaults) == null ? void 0 : _e.plugins) == null ? void 0 : Se.legend) == null ? void 0 : ae.labels) == null ? void 0 : fe.generateLabels;
|
|
2055
2055
|
let se = Ie(
|
|
2056
2056
|
typeof N == "function" ? N(s) : []
|
|
2057
2057
|
);
|
|
@@ -2114,7 +2114,7 @@ const yl = {
|
|
|
2114
2114
|
) : !!(E != null && E.hidden)
|
|
2115
2115
|
}));
|
|
2116
2116
|
}
|
|
2117
|
-
function
|
|
2117
|
+
function Tt() {
|
|
2118
2118
|
var g;
|
|
2119
2119
|
const s = (g = n.chartRef) == null ? void 0 : g.datasets;
|
|
2120
2120
|
return Array.isArray(s) ? s : [];
|
|
@@ -2135,7 +2135,7 @@ const yl = {
|
|
|
2135
2135
|
const p = d.value;
|
|
2136
2136
|
if (!p || s.length === 0)
|
|
2137
2137
|
return 0;
|
|
2138
|
-
const y = Math.max(0, g -
|
|
2138
|
+
const y = Math.max(0, g - Wo), V = window.getComputedStyle(p);
|
|
2139
2139
|
if (V.flexDirection.startsWith("column")) {
|
|
2140
2140
|
const ae = Number.parseFloat(V.rowGap || V.gap || "0") || 0, fe = rn();
|
|
2141
2141
|
let ke = 0, $e = 0;
|
|
@@ -2173,21 +2173,21 @@ const yl = {
|
|
|
2173
2173
|
function Ht() {
|
|
2174
2174
|
const s = d.value;
|
|
2175
2175
|
if (!s) {
|
|
2176
|
-
v.value = !1,
|
|
2176
|
+
v.value = !1, x.value = 0, u.value = 0, U(), B();
|
|
2177
2177
|
return;
|
|
2178
2178
|
}
|
|
2179
2179
|
const g = Array.from(
|
|
2180
2180
|
s.querySelectorAll(".chart-legend-item[data-legend-data='true']")
|
|
2181
2181
|
);
|
|
2182
2182
|
if (g.length === 0) {
|
|
2183
|
-
v.value = !1,
|
|
2183
|
+
v.value = !1, x.value = 0, u.value = 0, U(), B();
|
|
2184
2184
|
return;
|
|
2185
2185
|
}
|
|
2186
|
-
const p = Array.from(new Set(g.map((ae) => ae.offsetTop))).sort((ae, fe) => ae - fe), y = !
|
|
2187
|
-
if ((V ||
|
|
2186
|
+
const p = Array.from(new Set(g.map((ae) => ae.offsetTop))).sort((ae, fe) => ae - fe), y = !m.value && a.value.length > g.length, V = !m.value && !y, N = V || x.value <= 0 ? F() : x.value;
|
|
2187
|
+
if ((V || x.value <= 0) && (x.value = N), y) {
|
|
2188
2188
|
const ae = F();
|
|
2189
|
-
if (ae > 0 && (
|
|
2190
|
-
const $e = Math.max(0,
|
|
2189
|
+
if (ae > 0 && (x.value = ae), window.getComputedStyle(s).flexDirection.startsWith("column") && u.value < a.value.length) {
|
|
2190
|
+
const $e = Math.max(0, x.value - Wo), Ee = s.scrollHeight;
|
|
2191
2191
|
if (Ee + 1 < $e) {
|
|
2192
2192
|
const je = g.map((Ue) => Ue.offsetHeight).filter((Ue) => Number.isFinite(Ue) && Ue > 0), tt = je.length > 0 ? je.reduce((Ue, Ge) => Ue + Ge, 0) / je.length : 0;
|
|
2193
2193
|
if (tt > 0) {
|
|
@@ -2209,7 +2209,7 @@ const yl = {
|
|
|
2209
2209
|
(V || u.value <= 0) && (u.value = Math.max(0, Se)), v.value = _e > N, U(), B();
|
|
2210
2210
|
}
|
|
2211
2211
|
function mt() {
|
|
2212
|
-
|
|
2212
|
+
jo(() => {
|
|
2213
2213
|
Ht(), window.requestAnimationFrame(() => {
|
|
2214
2214
|
Ht(), X(), B();
|
|
2215
2215
|
});
|
|
@@ -2237,11 +2237,11 @@ const yl = {
|
|
|
2237
2237
|
flex: "0 0 auto"
|
|
2238
2238
|
};
|
|
2239
2239
|
}), Wt = c(() => {
|
|
2240
|
-
if (
|
|
2240
|
+
if (m.value || !v.value)
|
|
2241
2241
|
return a.value;
|
|
2242
2242
|
const s = Math.max(1, u.value), g = D.value ? s : Math.max(0, s - 1);
|
|
2243
2243
|
return a.value.slice(0, Math.min(g, a.value.length));
|
|
2244
|
-
}),
|
|
2244
|
+
}), vt = c(() => S.value ? v.value && m.value ? {
|
|
2245
2245
|
flex: "1 1 auto",
|
|
2246
2246
|
minHeight: "0",
|
|
2247
2247
|
overflowY: "auto"
|
|
@@ -2251,10 +2251,10 @@ const yl = {
|
|
|
2251
2251
|
function it() {
|
|
2252
2252
|
var y;
|
|
2253
2253
|
if (!S.value) {
|
|
2254
|
-
a.value = [], u.value = 0,
|
|
2254
|
+
a.value = [], u.value = 0, m.value = !1, v.value = !1, x.value = 0, A({ height: 0, width: 0 });
|
|
2255
2255
|
return;
|
|
2256
2256
|
}
|
|
2257
|
-
u.value = 0, v.value = !1,
|
|
2257
|
+
u.value = 0, v.value = !1, x.value = 0;
|
|
2258
2258
|
const s = q();
|
|
2259
2259
|
if (!s) {
|
|
2260
2260
|
a.value = Te(
|
|
@@ -2272,7 +2272,7 @@ const yl = {
|
|
|
2272
2272
|
const p = Array.isArray(n.legendUpdateKey) && n.legendUpdateKey.length > 0 || !Array.isArray(n.legendUpdateKey) && !!n.legendUpdateKey;
|
|
2273
2273
|
a.value.length === 0 && !(g.length > 0 || p) && R(0), mt();
|
|
2274
2274
|
}
|
|
2275
|
-
function
|
|
2275
|
+
function yt(s) {
|
|
2276
2276
|
return Array.isArray(s.datasetIndexes) && s.datasetIndexes.length > 0 ? s.datasetIndexes.filter((g) => Number.isInteger(g)) : typeof s.datasetIndex == "number" ? [s.datasetIndex] : [];
|
|
2277
2277
|
}
|
|
2278
2278
|
function un(s, g) {
|
|
@@ -2312,13 +2312,13 @@ const yl = {
|
|
|
2312
2312
|
function cn(s = 0) {
|
|
2313
2313
|
it();
|
|
2314
2314
|
const g = q(), p = a.value.length > 0;
|
|
2315
|
-
if (g || p || s >=
|
|
2315
|
+
if (g || p || s >= $l) {
|
|
2316
2316
|
T();
|
|
2317
2317
|
return;
|
|
2318
2318
|
}
|
|
2319
2319
|
T(), $ = window.setTimeout(() => {
|
|
2320
2320
|
cn(s + 1);
|
|
2321
|
-
},
|
|
2321
|
+
}, Vl);
|
|
2322
2322
|
}
|
|
2323
2323
|
function Pn(s, g) {
|
|
2324
2324
|
var _e;
|
|
@@ -2336,7 +2336,7 @@ const yl = {
|
|
|
2336
2336
|
);
|
|
2337
2337
|
return;
|
|
2338
2338
|
}
|
|
2339
|
-
const se =
|
|
2339
|
+
const se = yt(s), E = un(s, se);
|
|
2340
2340
|
if (Array.isArray(n.hiddenDatasetKeys) && se.length > 0) {
|
|
2341
2341
|
se.forEach((Se, ae) => {
|
|
2342
2342
|
o("toggleDatasetVisibility", {
|
|
@@ -2349,7 +2349,7 @@ const yl = {
|
|
|
2349
2349
|
});
|
|
2350
2350
|
return;
|
|
2351
2351
|
}
|
|
2352
|
-
const ve =
|
|
2352
|
+
const ve = Tt();
|
|
2353
2353
|
if (!p) {
|
|
2354
2354
|
if (se.length > 0) {
|
|
2355
2355
|
const Se = s.hidden !== !0;
|
|
@@ -2378,14 +2378,14 @@ const yl = {
|
|
|
2378
2378
|
}
|
|
2379
2379
|
}
|
|
2380
2380
|
function Mn() {
|
|
2381
|
-
|
|
2381
|
+
m.value = !0, mt();
|
|
2382
2382
|
}
|
|
2383
2383
|
function ut() {
|
|
2384
|
-
|
|
2384
|
+
m.value = !1, d.value && (d.value.scrollTop = 0), mt();
|
|
2385
2385
|
}
|
|
2386
2386
|
return Gt(() => {
|
|
2387
2387
|
cn(), window.addEventListener("mousemove", ge), window.addEventListener("mouseup", G);
|
|
2388
|
-
}),
|
|
2388
|
+
}), Le(
|
|
2389
2389
|
() => [
|
|
2390
2390
|
n.enabled,
|
|
2391
2391
|
n.legendUpdateKey,
|
|
@@ -2396,7 +2396,7 @@ const yl = {
|
|
|
2396
2396
|
() => {
|
|
2397
2397
|
it();
|
|
2398
2398
|
}
|
|
2399
|
-
),
|
|
2399
|
+
), Eo(() => {
|
|
2400
2400
|
P.value = !1, T(), A({ height: 0, width: 0 }), window.removeEventListener("mousemove", ge), window.removeEventListener("mouseup", G);
|
|
2401
2401
|
}), (s, g) => S.value ? (j(), pe("div", {
|
|
2402
2402
|
key: 0,
|
|
@@ -2419,7 +2419,7 @@ const yl = {
|
|
|
2419
2419
|
ref: b,
|
|
2420
2420
|
class: "absolute invisible pointer-events-none left-0 top-0 z-[2] inline-flex max-w-full select-none"
|
|
2421
2421
|
}, [
|
|
2422
|
-
Q("button",
|
|
2422
|
+
Q("button", Bl, Me(l(r)("report.widget.legend.viewMore")), 1)
|
|
2423
2423
|
], 512),
|
|
2424
2424
|
Q("ul", {
|
|
2425
2425
|
ref_key: "legendListRef",
|
|
@@ -2427,10 +2427,10 @@ const yl = {
|
|
|
2427
2427
|
class: Fe(["chart-legend-list m-0 flex list-none p-0", [
|
|
2428
2428
|
D.value ? "flex-row flex-wrap justify-start gap-x-3 gap-y-2 pt-1" : "flex-wrap justify-center gap-x-2 gap-y-1 pt-1"
|
|
2429
2429
|
]]),
|
|
2430
|
-
style: Ve(
|
|
2430
|
+
style: Ve(vt.value),
|
|
2431
2431
|
onScroll: K
|
|
2432
2432
|
}, [
|
|
2433
|
-
(j(!0), pe(Ye, null,
|
|
2433
|
+
(j(!0), pe(Ye, null, St(Wt.value, (p, y) => (j(), pe("li", {
|
|
2434
2434
|
key: et(p, y),
|
|
2435
2435
|
class: Fe(["chart-legend-item relative z-[2] inline-flex max-w-full cursor-pointer select-none pointer-events-auto", {
|
|
2436
2436
|
"opacity-45": p.hidden
|
|
@@ -2462,16 +2462,16 @@ const yl = {
|
|
|
2462
2462
|
"line-through": p.hidden
|
|
2463
2463
|
}]),
|
|
2464
2464
|
title: p.text ?? ""
|
|
2465
|
-
}, Me(p.text), 11,
|
|
2466
|
-
], 10,
|
|
2465
|
+
}, Me(p.text), 11, Rl)
|
|
2466
|
+
], 10, Al)
|
|
2467
2467
|
], 2))), 128)),
|
|
2468
|
-
v.value ? (j(), pe("li",
|
|
2468
|
+
v.value ? (j(), pe("li", Fl, [
|
|
2469
2469
|
Q("button", {
|
|
2470
2470
|
type: "button",
|
|
2471
2471
|
class: "inline-flex max-w-full cursor-pointer select-none underline items-center gap-1 rounded px-1 py-0.5 border-none bg-transparent text-fm-color-system-info-300 leading-[1.4] transition-colors hover:bg-black/5",
|
|
2472
2472
|
style: { fontSize: "var(--legend-font-size)" },
|
|
2473
|
-
onClick: g[0] || (g[0] = Cn((p) =>
|
|
2474
|
-
}, Me(
|
|
2473
|
+
onClick: g[0] || (g[0] = Cn((p) => m.value ? ut() : Mn(), ["stop"]))
|
|
2474
|
+
}, Me(m.value ? l(r)("report.widget.legend.viewLess") : l(r)("report.widget.legend.viewMore")), 1)
|
|
2475
2475
|
])) : we("", !0)
|
|
2476
2476
|
], 38),
|
|
2477
2477
|
C.value ? (j(), pe("div", {
|
|
@@ -2488,19 +2488,19 @@ const yl = {
|
|
|
2488
2488
|
], 512)
|
|
2489
2489
|
], 6)) : we("", !0);
|
|
2490
2490
|
}
|
|
2491
|
-
}), Xe = /* @__PURE__ */
|
|
2492
|
-
function
|
|
2493
|
-
const { t: n } =
|
|
2491
|
+
}), Xe = /* @__PURE__ */ Jo(zl, [["__scopeId", "data-v-706fa016"]]);
|
|
2492
|
+
function Hl(e, t) {
|
|
2493
|
+
const { t: n } = kt(), { breakpoints: o } = qt(), r = k(!1), i = k(null), a = k(null);
|
|
2494
2494
|
function u() {
|
|
2495
|
-
return
|
|
2495
|
+
return pa(e.value) ?? a.value;
|
|
2496
2496
|
}
|
|
2497
|
-
function
|
|
2497
|
+
function m(d) {
|
|
2498
2498
|
r.value = d, !d && (i.value = null, wn(u()), a.value = null);
|
|
2499
2499
|
}
|
|
2500
2500
|
function v(d, b) {
|
|
2501
2501
|
i.value = d, a.value = b ?? u(), r.value = !0;
|
|
2502
2502
|
}
|
|
2503
|
-
function
|
|
2503
|
+
function x(d) {
|
|
2504
2504
|
wn(u(), d.focusTarget);
|
|
2505
2505
|
}
|
|
2506
2506
|
function Y() {
|
|
@@ -2516,12 +2516,12 @@ function $l(e, t) {
|
|
|
2516
2516
|
isTooltipDetailsSheetOpen: r,
|
|
2517
2517
|
tooltipDetailsPayload: i,
|
|
2518
2518
|
tooltipOptions: H,
|
|
2519
|
-
handleTooltipDetailsSheetVisibility:
|
|
2520
|
-
handleTooltipDetailsHover:
|
|
2519
|
+
handleTooltipDetailsSheetVisibility: m,
|
|
2520
|
+
handleTooltipDetailsHover: x,
|
|
2521
2521
|
handleTooltipDetailsLeave: Y
|
|
2522
2522
|
};
|
|
2523
2523
|
}
|
|
2524
|
-
function
|
|
2524
|
+
function Wl(e) {
|
|
2525
2525
|
const t = k([]), n = c(() => new Set(t.value));
|
|
2526
2526
|
function o(a, u) {
|
|
2527
2527
|
return Bt({
|
|
@@ -2533,20 +2533,20 @@ function zl(e) {
|
|
|
2533
2533
|
return n.value.has(o(a, u));
|
|
2534
2534
|
}
|
|
2535
2535
|
function i({ datasetIndex: a, datasetKey: u }) {
|
|
2536
|
-
const
|
|
2537
|
-
if (n.value.has(
|
|
2538
|
-
t.value = t.value.filter((v) => v !==
|
|
2536
|
+
const m = u ?? o(e.value[a], a);
|
|
2537
|
+
if (n.value.has(m)) {
|
|
2538
|
+
t.value = t.value.filter((v) => v !== m);
|
|
2539
2539
|
return;
|
|
2540
2540
|
}
|
|
2541
|
-
t.value = [...t.value,
|
|
2541
|
+
t.value = [...t.value, m];
|
|
2542
2542
|
}
|
|
2543
|
-
return
|
|
2543
|
+
return Le(
|
|
2544
2544
|
e,
|
|
2545
2545
|
(a) => {
|
|
2546
2546
|
const u = new Set(
|
|
2547
|
-
a.map((v,
|
|
2548
|
-
),
|
|
2549
|
-
|
|
2547
|
+
a.map((v, x) => o(v, x))
|
|
2548
|
+
), m = t.value.filter((v) => u.has(v));
|
|
2549
|
+
m.length !== t.value.length && (t.value = m);
|
|
2550
2550
|
},
|
|
2551
2551
|
{ immediate: !0 }
|
|
2552
2552
|
), {
|
|
@@ -2561,16 +2561,16 @@ function tn({ chartRef: e, model: t, baseDatasets: n }) {
|
|
|
2561
2561
|
tooltipDetailsPayload: i,
|
|
2562
2562
|
tooltipOptions: a,
|
|
2563
2563
|
handleTooltipDetailsSheetVisibility: u,
|
|
2564
|
-
handleTooltipDetailsHover:
|
|
2564
|
+
handleTooltipDetailsHover: m,
|
|
2565
2565
|
handleTooltipDetailsLeave: v
|
|
2566
|
-
} =
|
|
2566
|
+
} = Hl(e, {
|
|
2567
2567
|
maxTooltipItems: o,
|
|
2568
2568
|
comparisonXAxis: c(() => {
|
|
2569
2569
|
var C;
|
|
2570
2570
|
return (C = t.value.data) == null ? void 0 : C.comparisonXAxis;
|
|
2571
2571
|
})
|
|
2572
|
-
}), { datalabels:
|
|
2573
|
-
() =>
|
|
2572
|
+
}), { datalabels: x, xCfg: Y, yCfg: H, isTransposed: d, legend: b } = va(t.value), w = c(
|
|
2573
|
+
() => no(t.value.isTransposed === !0, a.value)
|
|
2574
2574
|
), h = c(() => {
|
|
2575
2575
|
const C = b.value.position;
|
|
2576
2576
|
return !C || C === "top" || C === "bottom" || C === "left" || C === "right";
|
|
@@ -2578,7 +2578,7 @@ function tn({ chartRef: e, model: t, baseDatasets: n }) {
|
|
|
2578
2578
|
() => I.value === "left" || I.value === "right"
|
|
2579
2579
|
), W = c(
|
|
2580
2580
|
() => I.value === "top" || I.value === "left"
|
|
2581
|
-
), { hiddenDatasetKeys: M, isDatasetHidden: S, toggleDatasetVisibility: D } =
|
|
2581
|
+
), { hiddenDatasetKeys: M, isDatasetHidden: S, toggleDatasetVisibility: D } = Wl(n), $ = c(() => n.value.map((C, z) => ({
|
|
2582
2582
|
...C,
|
|
2583
2583
|
hidden: S(C, z)
|
|
2584
2584
|
})));
|
|
@@ -2586,10 +2586,10 @@ function tn({ chartRef: e, model: t, baseDatasets: n }) {
|
|
|
2586
2586
|
isTooltipDetailsSheetOpen: r,
|
|
2587
2587
|
tooltipDetailsPayload: i,
|
|
2588
2588
|
handleTooltipDetailsSheetVisibility: u,
|
|
2589
|
-
handleTooltipDetailsHover:
|
|
2589
|
+
handleTooltipDetailsHover: m,
|
|
2590
2590
|
handleTooltipDetailsLeave: v,
|
|
2591
|
-
comparisonTooltip:
|
|
2592
|
-
datalabels:
|
|
2591
|
+
comparisonTooltip: w,
|
|
2592
|
+
datalabels: x,
|
|
2593
2593
|
xCfg: Y,
|
|
2594
2594
|
yCfg: H,
|
|
2595
2595
|
isTransposed: d,
|
|
@@ -2603,28 +2603,28 @@ function tn({ chartRef: e, model: t, baseDatasets: n }) {
|
|
|
2603
2603
|
datasets: $
|
|
2604
2604
|
};
|
|
2605
2605
|
}
|
|
2606
|
-
const
|
|
2607
|
-
function
|
|
2606
|
+
const Uo = /* @__PURE__ */ new WeakMap();
|
|
2607
|
+
function ya(e) {
|
|
2608
2608
|
return typeof e == "number" && Number.isFinite(e);
|
|
2609
2609
|
}
|
|
2610
2610
|
function nn(e) {
|
|
2611
|
-
return e.map((t) =>
|
|
2611
|
+
return e.map((t) => ya(t) ? t : null);
|
|
2612
2612
|
}
|
|
2613
|
-
function
|
|
2613
|
+
function co(e) {
|
|
2614
2614
|
return e.reduce((t, n, o) => (n === null && t.push(o), t), []);
|
|
2615
2615
|
}
|
|
2616
2616
|
function on(e, t) {
|
|
2617
2617
|
const n = e[t];
|
|
2618
2618
|
if (!n || n.xAxisIndex === void 0)
|
|
2619
2619
|
return t;
|
|
2620
|
-
let o =
|
|
2620
|
+
let o = Uo.get(e);
|
|
2621
2621
|
return o || (o = /* @__PURE__ */ new Map(), e.forEach((r, i) => {
|
|
2622
2622
|
o.has(r.name) || o.set(r.name, i);
|
|
2623
|
-
}),
|
|
2623
|
+
}), Uo.set(e, o)), o.get(n.name) ?? t;
|
|
2624
2624
|
}
|
|
2625
2625
|
function an(e, t, n) {
|
|
2626
2626
|
return e.some((o) => o.xAxisIndex !== void 0) ? e.filter(
|
|
2627
|
-
(o) => o.xAxisIndex === void 0 ||
|
|
2627
|
+
(o) => o.xAxisIndex === void 0 || ya(o.values[0]) || (n == null ? void 0 : n.preserveNullableValues) === !0 && o.values[0] === null
|
|
2628
2628
|
).map((o) => o.xAxisIndex === void 0 ? o : {
|
|
2629
2629
|
...o,
|
|
2630
2630
|
values: Array.from(
|
|
@@ -2633,7 +2633,7 @@ function an(e, t, n) {
|
|
|
2633
2633
|
)
|
|
2634
2634
|
}) : e;
|
|
2635
2635
|
}
|
|
2636
|
-
const
|
|
2636
|
+
const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /* @__PURE__ */ ze({
|
|
2637
2637
|
__name: "WidgetBarchart",
|
|
2638
2638
|
props: /* @__PURE__ */ ot({
|
|
2639
2639
|
tileIndex: {}
|
|
@@ -2655,15 +2655,15 @@ const Hl = { class: "widget-content" }, Un = 1, Oo = "rgba(0, 0, 0, 0)", Wl = /*
|
|
|
2655
2655
|
() => an(o.value, r.value.length, {
|
|
2656
2656
|
preserveNullableValues: t.value.hasNullableMetric
|
|
2657
2657
|
})
|
|
2658
|
-
), u = c(() => !i.value && r.value.length === 1 && o.value.length > 1 && o.value.every((B) => B.values.length === 1 && B.isCompare !== !0)),
|
|
2659
|
-
categories:
|
|
2660
|
-
})),
|
|
2658
|
+
), u = c(() => !i.value && r.value.length === 1 && o.value.length > 1 && o.value.every((B) => B.values.length === 1 && B.isCompare !== !0)), m = c(() => u.value ? o.value.map((B) => B.name) : r.value), v = c(() => ({
|
|
2659
|
+
categories: m.value
|
|
2660
|
+
})), x = c(() => !i.value && r.value.length === 1 && o.value.some((B) => B.isCompare === !0)), Y = Qt("bar");
|
|
2661
2661
|
function H(B) {
|
|
2662
2662
|
return {
|
|
2663
2663
|
label: `__comparison_gap__${B}`,
|
|
2664
2664
|
data: [0],
|
|
2665
|
-
backgroundColor:
|
|
2666
|
-
borderColor:
|
|
2665
|
+
backgroundColor: Ko,
|
|
2666
|
+
borderColor: Ko,
|
|
2667
2667
|
minBarLength: 0,
|
|
2668
2668
|
barPercentage: Un,
|
|
2669
2669
|
isSpacer: !0
|
|
@@ -2698,14 +2698,14 @@ const Hl = { class: "widget-content" }, Un = 1, Oo = "rgba(0, 0, 0, 0)", Wl = /*
|
|
|
2698
2698
|
formatter: B.formatter,
|
|
2699
2699
|
data: _,
|
|
2700
2700
|
xAxisIndex: B.xAxisIndex,
|
|
2701
|
-
emptyValueIndexes: t.value.hasNullableMetric ? B.xAxisIndex === void 0 ?
|
|
2701
|
+
emptyValueIndexes: t.value.hasNullableMetric ? B.xAxisIndex === void 0 ? co(ne) : ne[B.xAxisIndex] === null ? [B.xAxisIndex] : void 0 : void 0,
|
|
2702
2702
|
dash: !!B.isCompare,
|
|
2703
2703
|
// A SQL row only owns one X-axis bucket. Skip its generated nulls in
|
|
2704
2704
|
// every other bucket so an earlier date cannot reserve a bar slot
|
|
2705
2705
|
// ahead of the current date's SQL-sorted rows.
|
|
2706
2706
|
skipNull: i.value,
|
|
2707
2707
|
minBarLength: void 0,
|
|
2708
|
-
barPercentage:
|
|
2708
|
+
barPercentage: x.value ? Un : void 0,
|
|
2709
2709
|
backgroundColor: re ? zt({
|
|
2710
2710
|
breakdownIndex: he,
|
|
2711
2711
|
metricIndex: G,
|
|
@@ -2723,7 +2723,7 @@ const Hl = { class: "widget-content" }, Un = 1, Oo = "rgba(0, 0, 0, 0)", Wl = /*
|
|
|
2723
2723
|
})
|
|
2724
2724
|
] : []), {
|
|
2725
2725
|
isTooltipDetailsSheetOpen: b,
|
|
2726
|
-
tooltipDetailsPayload:
|
|
2726
|
+
tooltipDetailsPayload: w,
|
|
2727
2727
|
handleTooltipDetailsSheetVisibility: h,
|
|
2728
2728
|
handleTooltipDetailsHover: I,
|
|
2729
2729
|
handleTooltipDetailsLeave: P,
|
|
@@ -2745,7 +2745,7 @@ const Hl = { class: "widget-content" }, Un = 1, Oo = "rgba(0, 0, 0, 0)", Wl = /*
|
|
|
2745
2745
|
model: t,
|
|
2746
2746
|
baseDatasets: d
|
|
2747
2747
|
}), U = c(() => {
|
|
2748
|
-
if (!
|
|
2748
|
+
if (!x.value)
|
|
2749
2749
|
return q.value;
|
|
2750
2750
|
const B = [];
|
|
2751
2751
|
return q.value.forEach((K, oe) => {
|
|
@@ -2769,7 +2769,7 @@ const Hl = { class: "widget-content" }, Un = 1, Oo = "rgba(0, 0, 0, 0)", Wl = /*
|
|
|
2769
2769
|
var ce, ge, G, ne, re, he;
|
|
2770
2770
|
const oe = be("FmBarChart");
|
|
2771
2771
|
return j(), pe(Ye, null, [
|
|
2772
|
-
Q("div",
|
|
2772
|
+
Q("div", Ol, [
|
|
2773
2773
|
gt(B.$slots, "menu"),
|
|
2774
2774
|
Q("div", {
|
|
2775
2775
|
class: Fe(["chart-layout", {
|
|
@@ -2829,7 +2829,7 @@ const Hl = { class: "widget-content" }, Un = 1, Oo = "rgba(0, 0, 0, 0)", Wl = /*
|
|
|
2829
2829
|
]),
|
|
2830
2830
|
Ce(en, {
|
|
2831
2831
|
"model-value": l(b),
|
|
2832
|
-
"details-payload": l(
|
|
2832
|
+
"details-payload": l(w),
|
|
2833
2833
|
"onUpdate:modelValue": l(h),
|
|
2834
2834
|
onValueHover: l(I),
|
|
2835
2835
|
onValueLeave: l(P)
|
|
@@ -2837,7 +2837,7 @@ const Hl = { class: "widget-content" }, Un = 1, Oo = "rgba(0, 0, 0, 0)", Wl = /*
|
|
|
2837
2837
|
], 64);
|
|
2838
2838
|
};
|
|
2839
2839
|
}
|
|
2840
|
-
}),
|
|
2840
|
+
}), Kl = { class: "widget-content" }, Yl = /* @__PURE__ */ ze({
|
|
2841
2841
|
__name: "WidgetCircular",
|
|
2842
2842
|
props: /* @__PURE__ */ ot({
|
|
2843
2843
|
tileIndex: {}
|
|
@@ -2847,10 +2847,10 @@ const Hl = { class: "widget-content" }, Un = 1, Oo = "rgba(0, 0, 0, 0)", Wl = /*
|
|
|
2847
2847
|
}),
|
|
2848
2848
|
emits: ["update:modelValue"],
|
|
2849
2849
|
setup(e) {
|
|
2850
|
-
const t = at(e, "modelValue"), { breakpoints: n } = qt(), o = k(null), r = k([]), { datalabels: i, legend: a } =
|
|
2850
|
+
const t = at(e, "modelValue"), { breakpoints: n } = qt(), o = k(null), r = k([]), { datalabels: i, legend: a } = va(t.value), u = c(() => {
|
|
2851
2851
|
const S = Array.isArray(t.value.data.datasets) ? t.value.data.datasets.map((D) => D.name) : [];
|
|
2852
2852
|
return S.length > 0 ? S : Array.isArray(t.value.data.metrics) ? t.value.data.metrics.map((D) => String(D)) : [];
|
|
2853
|
-
}),
|
|
2853
|
+
}), m = c(() => {
|
|
2854
2854
|
let S = [];
|
|
2855
2855
|
return Array.isArray(t.value.data.datasets) && t.value.data.datasets.length > 0 && (S = [
|
|
2856
2856
|
{
|
|
@@ -2865,7 +2865,7 @@ const Hl = { class: "widget-content" }, Un = 1, Oo = "rgba(0, 0, 0, 0)", Wl = /*
|
|
|
2865
2865
|
}
|
|
2866
2866
|
]), S;
|
|
2867
2867
|
});
|
|
2868
|
-
|
|
2868
|
+
Le(
|
|
2869
2869
|
() => t.value.data.datasets,
|
|
2870
2870
|
(S) => {
|
|
2871
2871
|
const D = new Set(
|
|
@@ -2877,12 +2877,12 @@ const Hl = { class: "widget-content" }, Un = 1, Oo = "rgba(0, 0, 0, 0)", Wl = /*
|
|
|
2877
2877
|
},
|
|
2878
2878
|
{ deep: !0 }
|
|
2879
2879
|
);
|
|
2880
|
-
const v = c(() => typeof t.value.legendFontSize == "number" ? t.value.legendFontSize : n.value.lg ? 12 : 8),
|
|
2880
|
+
const v = c(() => typeof t.value.legendFontSize == "number" ? t.value.legendFontSize : n.value.lg ? 12 : 8), x = c(() => {
|
|
2881
2881
|
const S = a.value.position;
|
|
2882
2882
|
return !S || S === "top" || S === "bottom" || S === "left" || S === "right";
|
|
2883
|
-
}), Y = c(() => a.value.display !== !1), H = c(() =>
|
|
2883
|
+
}), Y = c(() => a.value.display !== !1), H = c(() => x.value && Y.value), d = c(() => a.value.position ?? "top"), b = c(
|
|
2884
2884
|
() => d.value === "left" || d.value === "right"
|
|
2885
|
-
),
|
|
2885
|
+
), w = c(
|
|
2886
2886
|
() => d.value === "top" || d.value === "left"
|
|
2887
2887
|
), h = c(() => {
|
|
2888
2888
|
var D;
|
|
@@ -2890,7 +2890,7 @@ const Hl = { class: "widget-content" }, Un = 1, Oo = "rgba(0, 0, 0, 0)", Wl = /*
|
|
|
2890
2890
|
return typeof S == "string" && S.trim().length > 0 ? S : t.value.legendColor ?? "#6b6b6b";
|
|
2891
2891
|
}), I = c(() => v.value), P = c(() => ({
|
|
2892
2892
|
display: !1
|
|
2893
|
-
})), W =
|
|
2893
|
+
})), W = kr();
|
|
2894
2894
|
function M({ itemIndex: S }) {
|
|
2895
2895
|
if (r.value.includes(S)) {
|
|
2896
2896
|
r.value = r.value.filter(
|
|
@@ -2902,21 +2902,21 @@ const Hl = { class: "widget-content" }, Un = 1, Oo = "rgba(0, 0, 0, 0)", Wl = /*
|
|
|
2902
2902
|
}
|
|
2903
2903
|
return (S, D) => {
|
|
2904
2904
|
const $ = be("FmPieChart");
|
|
2905
|
-
return j(), pe("div",
|
|
2905
|
+
return j(), pe("div", Kl, [
|
|
2906
2906
|
gt(S.$slots, "menu"),
|
|
2907
2907
|
Q("div", {
|
|
2908
2908
|
class: Fe(["chart-layout", {
|
|
2909
2909
|
"chart-layout--side": H.value && b.value
|
|
2910
2910
|
}])
|
|
2911
2911
|
}, [
|
|
2912
|
-
H.value &&
|
|
2912
|
+
H.value && w.value ? (j(), ye(Xe, {
|
|
2913
2913
|
key: 0,
|
|
2914
2914
|
"chart-ref": o.value,
|
|
2915
2915
|
enabled: Y.value,
|
|
2916
2916
|
position: d.value,
|
|
2917
2917
|
"text-color": h.value,
|
|
2918
2918
|
"font-size": I.value,
|
|
2919
|
-
"legend-update-key":
|
|
2919
|
+
"legend-update-key": m.value,
|
|
2920
2920
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
2921
2921
|
"chart-color-binding": t.value.chartColorBinding,
|
|
2922
2922
|
"chart-colors": t.value.chartColors,
|
|
@@ -2931,7 +2931,7 @@ const Hl = { class: "widget-content" }, Un = 1, Oo = "rgba(0, 0, 0, 0)", Wl = /*
|
|
|
2931
2931
|
ref: o,
|
|
2932
2932
|
class: "circular",
|
|
2933
2933
|
percentage: "70%",
|
|
2934
|
-
datasets:
|
|
2934
|
+
datasets: m.value,
|
|
2935
2935
|
metrics: u.value,
|
|
2936
2936
|
tooltip: l(W),
|
|
2937
2937
|
variant: "doughnut",
|
|
@@ -2939,14 +2939,14 @@ const Hl = { class: "widget-content" }, Un = 1, Oo = "rgba(0, 0, 0, 0)", Wl = /*
|
|
|
2939
2939
|
datalabels: l(i),
|
|
2940
2940
|
"maintain-aspect-ratio": !1
|
|
2941
2941
|
}, null, 8, ["datasets", "metrics", "tooltip", "legend", "datalabels"]),
|
|
2942
|
-
H.value && !
|
|
2942
|
+
H.value && !w.value ? (j(), ye(Xe, {
|
|
2943
2943
|
key: 1,
|
|
2944
2944
|
"chart-ref": o.value,
|
|
2945
2945
|
enabled: Y.value,
|
|
2946
2946
|
position: d.value,
|
|
2947
2947
|
"text-color": h.value,
|
|
2948
2948
|
"font-size": I.value,
|
|
2949
|
-
"legend-update-key":
|
|
2949
|
+
"legend-update-key": m.value,
|
|
2950
2950
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
2951
2951
|
"chart-color-binding": t.value.chartColorBinding,
|
|
2952
2952
|
"chart-colors": t.value.chartColors,
|
|
@@ -2960,10 +2960,10 @@ const Hl = { class: "widget-content" }, Un = 1, Oo = "rgba(0, 0, 0, 0)", Wl = /*
|
|
|
2960
2960
|
]);
|
|
2961
2961
|
};
|
|
2962
2962
|
}
|
|
2963
|
-
}),
|
|
2963
|
+
}), Xl = { class: "h-full flex flex-col gap-2 justify-end" }, El = { class: "flex flex-wrap gap-x-4 gap-y-2" }, jl = { class: "flex items-center gap-1" }, Gl = ["title"], ql = { class: "fm-typo-en-body-lg-600" }, Jl = {
|
|
2964
2964
|
class: "flex w-full h-3 shrink-0 rounded-full overflow-hidden",
|
|
2965
2965
|
style: { "background-color": "#f2f2f7" }
|
|
2966
|
-
},
|
|
2966
|
+
}, Zl = /* @__PURE__ */ ze({
|
|
2967
2967
|
__name: "ScorecardStackedBar",
|
|
2968
2968
|
props: {
|
|
2969
2969
|
dimensions: {},
|
|
@@ -2983,13 +2983,13 @@ const Hl = { class: "widget-content" }, Un = 1, Oo = "rgba(0, 0, 0, 0)", Wl = /*
|
|
|
2983
2983
|
};
|
|
2984
2984
|
});
|
|
2985
2985
|
});
|
|
2986
|
-
return (o, r) => (j(), pe("div",
|
|
2987
|
-
Q("div",
|
|
2988
|
-
(j(!0), pe(Ye, null,
|
|
2986
|
+
return (o, r) => (j(), pe("div", Xl, [
|
|
2987
|
+
Q("div", El, [
|
|
2988
|
+
(j(!0), pe(Ye, null, St(n.value, (i, a) => (j(), pe("div", {
|
|
2989
2989
|
key: a,
|
|
2990
2990
|
class: "flex flex-col gap-1 flex-1 min-w-[80px]"
|
|
2991
2991
|
}, [
|
|
2992
|
-
Q("div",
|
|
2992
|
+
Q("div", jl, [
|
|
2993
2993
|
Q("span", {
|
|
2994
2994
|
class: "inline-block w-3 h-3 rounded-sm shrink-0",
|
|
2995
2995
|
style: Ve({ backgroundColor: i.color })
|
|
@@ -2997,29 +2997,29 @@ const Hl = { class: "widget-content" }, Un = 1, Oo = "rgba(0, 0, 0, 0)", Wl = /*
|
|
|
2997
2997
|
Q("p", {
|
|
2998
2998
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary truncate",
|
|
2999
2999
|
title: i.label
|
|
3000
|
-
}, Me(i.label), 9,
|
|
3000
|
+
}, Me(i.label), 9, Gl)
|
|
3001
3001
|
]),
|
|
3002
|
-
Q("p",
|
|
3002
|
+
Q("p", ql, Me(i.display), 1)
|
|
3003
3003
|
]))), 128))
|
|
3004
3004
|
]),
|
|
3005
|
-
Q("div",
|
|
3006
|
-
(j(!0), pe(Ye, null,
|
|
3005
|
+
Q("div", Jl, [
|
|
3006
|
+
(j(!0), pe(Ye, null, St(n.value, (i, a) => (j(), pe("div", {
|
|
3007
3007
|
key: a,
|
|
3008
3008
|
style: Ve({ width: `${i.width}%`, backgroundColor: i.color })
|
|
3009
3009
|
}, null, 4))), 128))
|
|
3010
3010
|
])
|
|
3011
3011
|
]));
|
|
3012
3012
|
}
|
|
3013
|
-
}),
|
|
3013
|
+
}), Ql = { class: "flex flex-col h-full" }, es = { class: "fm-typo-en-title-md-600" }, ts = { class: "flex gap-2 mt-2" }, ns = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, os = {
|
|
3014
3014
|
key: 0,
|
|
3015
3015
|
class: "mt-auto pt-4"
|
|
3016
|
-
},
|
|
3016
|
+
}, as = { class: "flex justify-between gap-2 text-fm-color-typo-secondary fm-typo-en-body-sm-600" }, rs = { class: "text-right" }, ls = ["aria-valuenow", "aria-valuetext"], ss = { class: "mt-1 text-fm-color-typo-secondary fm-typo-en-body-sm-600" }, is = {
|
|
3017
3017
|
key: 1,
|
|
3018
3018
|
class: "grow min-h-0 mt-2"
|
|
3019
|
-
},
|
|
3019
|
+
}, us = {
|
|
3020
3020
|
key: 2,
|
|
3021
3021
|
class: "mt-2"
|
|
3022
|
-
},
|
|
3022
|
+
}, cs = /* @__PURE__ */ ze({
|
|
3023
3023
|
__name: "WidgetScorecard",
|
|
3024
3024
|
props: {
|
|
3025
3025
|
modelValue: { required: !0 },
|
|
@@ -3027,20 +3027,20 @@ const Hl = { class: "widget-content" }, Un = 1, Oo = "rgba(0, 0, 0, 0)", Wl = /*
|
|
|
3027
3027
|
},
|
|
3028
3028
|
emits: ["update:modelValue"],
|
|
3029
3029
|
setup(e) {
|
|
3030
|
-
const t = at(e, "modelValue"), { t: n } =
|
|
3030
|
+
const t = at(e, "modelValue"), { t: n } = kt(), { compareDateRange: o, defaultDateSetting: r } = At(_n()), { country: i } = Ln(), a = c(() => {
|
|
3031
3031
|
var R;
|
|
3032
3032
|
return ((R = t.value.data) == null ? void 0 : R.value) || "";
|
|
3033
3033
|
}), u = c(() => {
|
|
3034
3034
|
var A;
|
|
3035
3035
|
const R = ((A = t.value.data) == null ? void 0 : A.formatter) === "CURRENCY" ? Dn(l(i)) : "";
|
|
3036
3036
|
return Et(Xt(a.value), R);
|
|
3037
|
-
}),
|
|
3037
|
+
}), m = c(
|
|
3038
3038
|
() => {
|
|
3039
3039
|
var R, A;
|
|
3040
3040
|
return ((A = (R = t.value.data) == null ? void 0 : R.sparkline) == null ? void 0 : A.type) === Yt.progress;
|
|
3041
3041
|
}
|
|
3042
3042
|
), v = c(() => t.value.sparklineTargetValue);
|
|
3043
|
-
function
|
|
3043
|
+
function x(R) {
|
|
3044
3044
|
if (R === void 0 || R === "") return NaN;
|
|
3045
3045
|
const A = String(R);
|
|
3046
3046
|
return Number(A.replace(/,/g, ""));
|
|
@@ -3050,9 +3050,9 @@ const Hl = { class: "widget-content" }, Un = 1, Oo = "rgba(0, 0, 0, 0)", Wl = /*
|
|
|
3050
3050
|
return R === void 0 || R === "" ? 0 : ((A = String(R).split(".")[1]) == null ? void 0 : A.length) ?? 0;
|
|
3051
3051
|
}
|
|
3052
3052
|
const H = c(() => {
|
|
3053
|
-
const R =
|
|
3053
|
+
const R = x(a.value), A = v.value;
|
|
3054
3054
|
return !Number.isFinite(R) || A == null || A <= 0 ? null : R / A * 100;
|
|
3055
|
-
}), d = c(() => H.value === null ? 0 : Math.min(Math.max(H.value, 0), 100)), b = c(() => Xt(v.value)),
|
|
3055
|
+
}), d = c(() => H.value === null ? 0 : Math.min(Math.max(H.value, 0), 100)), b = c(() => Xt(v.value)), w = c(
|
|
3056
3056
|
() => n("report.widget.scorecardProgress.achieved", {
|
|
3057
3057
|
percentage: H.value === null ? "" : H.value.toFixed(2)
|
|
3058
3058
|
})
|
|
@@ -3063,13 +3063,13 @@ const Hl = { class: "widget-content" }, Un = 1, Oo = "rgba(0, 0, 0, 0)", Wl = /*
|
|
|
3063
3063
|
value: P.value || n("report.widget.scorecardProgress.emptyValue")
|
|
3064
3064
|
})
|
|
3065
3065
|
), P = c(() => {
|
|
3066
|
-
const R =
|
|
3066
|
+
const R = x(a.value), A = v.value;
|
|
3067
3067
|
if (!Number.isFinite(R) || A == null || A <= 0) return "";
|
|
3068
3068
|
const T = Math.max(Y(a.value), Y(A));
|
|
3069
3069
|
return Xt(Math.max(A - R, 0).toFixed(T));
|
|
3070
3070
|
}), W = c(() => {
|
|
3071
3071
|
const { data: R } = t.value;
|
|
3072
|
-
return R != null && R.comparison ?
|
|
3072
|
+
return R != null && R.comparison ? aa(a.value, R.comparison, i) : null;
|
|
3073
3073
|
});
|
|
3074
3074
|
function M(R) {
|
|
3075
3075
|
switch (R) {
|
|
@@ -3098,14 +3098,14 @@ const Hl = { class: "widget-content" }, Un = 1, Oo = "rgba(0, 0, 0, 0)", Wl = /*
|
|
|
3098
3098
|
color: "#36a2eb"
|
|
3099
3099
|
}))), z = c(
|
|
3100
3100
|
() => C.value.map((R) => ({ ...R, backgroundColor: "rgba(54,162,235,0.25)" }))
|
|
3101
|
-
), O = c(() =>
|
|
3101
|
+
), O = c(() => no(!1)), ue = c(() => no(!1));
|
|
3102
3102
|
return (R, A) => {
|
|
3103
3103
|
var K;
|
|
3104
3104
|
const T = be("FmIcon"), q = be("FmChip"), U = be("FmTooltip"), X = be("FmLineChart"), B = be("FmBarChart");
|
|
3105
|
-
return j(), pe("div",
|
|
3105
|
+
return j(), pe("div", Ql, [
|
|
3106
3106
|
gt(R.$slots, "menu"),
|
|
3107
|
-
Q("p",
|
|
3108
|
-
Q("div",
|
|
3107
|
+
Q("p", es, Me(u.value), 1),
|
|
3108
|
+
Q("div", ts, [
|
|
3109
3109
|
Ce(U, {
|
|
3110
3110
|
disabled: W.value === null,
|
|
3111
3111
|
placement: "right",
|
|
@@ -3115,7 +3115,7 @@ const Hl = { class: "widget-content" }, Un = 1, Oo = "rgba(0, 0, 0, 0)", Wl = /*
|
|
|
3115
3115
|
content: Re(() => {
|
|
3116
3116
|
var oe;
|
|
3117
3117
|
return [
|
|
3118
|
-
Q("span",
|
|
3118
|
+
Q("span", ns, Me(`vs. ${(oe = l(r).defaultCompareType) == null ? void 0 : oe.split("_").join(" ")}`), 1)
|
|
3119
3119
|
];
|
|
3120
3120
|
}),
|
|
3121
3121
|
default: Re(() => [
|
|
@@ -3156,12 +3156,12 @@ const Hl = { class: "widget-content" }, Un = 1, Oo = "rgba(0, 0, 0, 0)", Wl = /*
|
|
|
3156
3156
|
_: 1
|
|
3157
3157
|
}, 8, ["disabled"])
|
|
3158
3158
|
]),
|
|
3159
|
-
|
|
3160
|
-
Q("div",
|
|
3159
|
+
m.value ? (j(), pe("div", os, [
|
|
3160
|
+
Q("div", as, [
|
|
3161
3161
|
Q("span", {
|
|
3162
3162
|
class: Fe(H.value === null ? "" : "text-fm-color-primary-500")
|
|
3163
|
-
}, Me(
|
|
3164
|
-
Q("span",
|
|
3163
|
+
}, Me(w.value), 3),
|
|
3164
|
+
Q("span", rs, Me(u.value) + " / " + Me(h.value), 1)
|
|
3165
3165
|
]),
|
|
3166
3166
|
Q("div", {
|
|
3167
3167
|
class: "h-8 mt-1 overflow-hidden rounded-full bg-fm-color-neutral-gray-100",
|
|
@@ -3169,15 +3169,15 @@ const Hl = { class: "widget-content" }, Un = 1, Oo = "rgba(0, 0, 0, 0)", Wl = /*
|
|
|
3169
3169
|
"aria-valuenow": d.value,
|
|
3170
3170
|
"aria-valuemin": "0",
|
|
3171
3171
|
"aria-valuemax": "100",
|
|
3172
|
-
"aria-valuetext":
|
|
3172
|
+
"aria-valuetext": w.value
|
|
3173
3173
|
}, [
|
|
3174
3174
|
Q("div", {
|
|
3175
3175
|
class: "h-full rounded-full bg-[#36A2EB] transition-[width] duration-300",
|
|
3176
3176
|
style: Ve({ width: `${d.value}%` })
|
|
3177
3177
|
}, null, 4)
|
|
3178
|
-
], 8,
|
|
3179
|
-
Q("p",
|
|
3180
|
-
])) : S.value ? (j(), pe("div",
|
|
3178
|
+
], 8, ls),
|
|
3179
|
+
Q("p", ss, Me(I.value), 1)
|
|
3180
|
+
])) : S.value ? (j(), pe("div", is, [
|
|
3181
3181
|
M(S.value.type) === "line" ? (j(), ye(X, {
|
|
3182
3182
|
key: 0,
|
|
3183
3183
|
class: "sparkline sparkline-chart",
|
|
@@ -3204,13 +3204,13 @@ const Hl = { class: "widget-content" }, Un = 1, Oo = "rgba(0, 0, 0, 0)", Wl = /*
|
|
|
3204
3204
|
"x-cfg": { display: !1 },
|
|
3205
3205
|
tooltip: ue.value,
|
|
3206
3206
|
"maintain-aspect-ratio": !1
|
|
3207
|
-
}, null, 8, ["datasets", "x-axis", "y-cfg", "tooltip"])) : (j(), ye(
|
|
3207
|
+
}, null, 8, ["datasets", "x-axis", "y-cfg", "tooltip"])) : (j(), ye(Zl, {
|
|
3208
3208
|
key: 2,
|
|
3209
3209
|
dimensions: S.value.dimensions,
|
|
3210
3210
|
values: ((K = S.value.datasets[0]) == null ? void 0 : K.values) ?? [],
|
|
3211
3211
|
"percent-of-total": S.value.percentOfTotal === !0
|
|
3212
3212
|
}, null, 8, ["dimensions", "values", "percent-of-total"]))
|
|
3213
|
-
])) : (j(), pe("div",
|
|
3213
|
+
])) : (j(), pe("div", us, A[1] || (A[1] = [
|
|
3214
3214
|
Q("div", { class: "sparkline" }, [
|
|
3215
3215
|
Q("div", { class: "flex flex-col gap-8" }, [
|
|
3216
3216
|
Q("div"),
|
|
@@ -3222,15 +3222,15 @@ const Hl = { class: "widget-content" }, Un = 1, Oo = "rgba(0, 0, 0, 0)", Wl = /*
|
|
|
3222
3222
|
]);
|
|
3223
3223
|
};
|
|
3224
3224
|
}
|
|
3225
|
-
}),
|
|
3226
|
-
function
|
|
3225
|
+
}), ds = {};
|
|
3226
|
+
function fs(e, t) {
|
|
3227
3227
|
const n = be("FmMenuDivider");
|
|
3228
3228
|
return j(), ye(n);
|
|
3229
3229
|
}
|
|
3230
|
-
const
|
|
3230
|
+
const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableData.worker-JSjN8c44.js", gs = { class: "flex h-full flex-col" }, hs = { class: "my-4 shrink-0" }, vs = {
|
|
3231
3231
|
class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
|
|
3232
3232
|
style: { backgroundColor: "#f9f9f9" }
|
|
3233
|
-
},
|
|
3233
|
+
}, ys = { class: "font-bold" }, bs = { class: "text-fm-color-neutral-gray-300" }, Cs = /* @__PURE__ */ ze({
|
|
3234
3234
|
__name: "WidgetTable",
|
|
3235
3235
|
props: /* @__PURE__ */ ot({
|
|
3236
3236
|
tileIndex: {}
|
|
@@ -3240,17 +3240,17 @@ const ds = /* @__PURE__ */ qo(us, [["render", cs]]), fs = "/assets/processTableD
|
|
|
3240
3240
|
}),
|
|
3241
3241
|
emits: ["update:modelValue"],
|
|
3242
3242
|
setup(e) {
|
|
3243
|
-
const { t, te: n } =
|
|
3243
|
+
const { t, te: n } = kt(), o = at(e, "modelValue"), { country: r } = Ln(), { clearTileSorts: i, setTileSorts: a } = Qa(), u = Sn(), m = e, v = k([]), x = k(null), Y = c(() => {
|
|
3244
3244
|
var _;
|
|
3245
3245
|
return ((_ = o.value.data) == null ? void 0 : _.columns) || [{ label: "", key: "" }];
|
|
3246
3246
|
}), H = c(() => {
|
|
3247
3247
|
var _;
|
|
3248
3248
|
return ((_ = o.value.data) == null ? void 0 : _.rows) || [];
|
|
3249
|
-
}), d = c(() => o.value.paged ?? null), b = c(() => o.value.colWidths ?? null),
|
|
3249
|
+
}), d = c(() => o.value.paged ?? null), b = c(() => o.value.colWidths ?? null), w = c(
|
|
3250
3250
|
() => o.value.rowHeight && o.value.rowHeight > 0 ? o.value.rowHeight : 48
|
|
3251
3251
|
);
|
|
3252
3252
|
function h() {
|
|
3253
|
-
const _ = `${
|
|
3253
|
+
const _ = `${w.value}px`;
|
|
3254
3254
|
return {
|
|
3255
3255
|
height: _,
|
|
3256
3256
|
minHeight: _
|
|
@@ -3275,7 +3275,7 @@ const ds = /* @__PURE__ */ qo(us, [["render", cs]]), fs = "/assets/processTableD
|
|
|
3275
3275
|
const W = c(() => o.value.filterText), M = c(() => {
|
|
3276
3276
|
var L;
|
|
3277
3277
|
const _ = (L = o.value.grandTotalLabel) == null ? void 0 : L.trim();
|
|
3278
|
-
return _ && _.length > 0 ? _ :
|
|
3278
|
+
return _ && _.length > 0 ? _ : wt(t, n, "Grand total", "other");
|
|
3279
3279
|
}), S = c(
|
|
3280
3280
|
() => o.value.rollupPosition === qe.bottom ? qe.bottom : qe.top
|
|
3281
3281
|
), D = c(() => {
|
|
@@ -3292,7 +3292,7 @@ const ds = /* @__PURE__ */ qo(us, [["render", cs]]), fs = "/assets/processTableD
|
|
|
3292
3292
|
return qe.bottom;
|
|
3293
3293
|
}
|
|
3294
3294
|
}), C = c(() => {
|
|
3295
|
-
const _ =
|
|
3295
|
+
const _ = w.value, L = 34.5, F = 32, le = $.value !== void 0 ? 1 : 0, de = (x.value ? x.value.$el.offsetHeight : 0) - _, ee = Math.floor((de - L - F) / _) - le;
|
|
3296
3296
|
return ee > 0 ? ee : 10;
|
|
3297
3297
|
}), z = c(() => {
|
|
3298
3298
|
let _ = [];
|
|
@@ -3318,7 +3318,7 @@ const ds = /* @__PURE__ */ qo(us, [["render", cs]]), fs = "/assets/processTableD
|
|
|
3318
3318
|
} : (L.includes("#") && !L.startsWith("#") && (L = L.split("#")[0]), {
|
|
3319
3319
|
main: L,
|
|
3320
3320
|
comparison: _ == null ? void 0 : _.comparison,
|
|
3321
|
-
difference:
|
|
3321
|
+
difference: aa(_.main, _.comparison, l(r))
|
|
3322
3322
|
});
|
|
3323
3323
|
}
|
|
3324
3324
|
Gt(() => {
|
|
@@ -3347,7 +3347,7 @@ const ds = /* @__PURE__ */ qo(us, [["render", cs]]), fs = "/assets/processTableD
|
|
|
3347
3347
|
return;
|
|
3348
3348
|
}
|
|
3349
3349
|
if (d.value) {
|
|
3350
|
-
A++, R.value =
|
|
3350
|
+
A++, R.value = So(q());
|
|
3351
3351
|
return;
|
|
3352
3352
|
}
|
|
3353
3353
|
const _ = ++A, L = (o.value.data.rows || []).map((ee) => ({
|
|
@@ -3363,7 +3363,7 @@ const ds = /* @__PURE__ */ qo(us, [["render", cs]]), fs = "/assets/processTableD
|
|
|
3363
3363
|
rows: L,
|
|
3364
3364
|
columns: F,
|
|
3365
3365
|
filter: W.value ?? "",
|
|
3366
|
-
globalSorts:
|
|
3366
|
+
globalSorts: Ea(v.value).map((ee) => ({
|
|
3367
3367
|
key: ee.key,
|
|
3368
3368
|
type: ee.type
|
|
3369
3369
|
})),
|
|
@@ -3371,14 +3371,14 @@ const ds = /* @__PURE__ */ qo(us, [["render", cs]]), fs = "/assets/processTableD
|
|
|
3371
3371
|
rollupPosition: S.value,
|
|
3372
3372
|
pageSize: C.value
|
|
3373
3373
|
};
|
|
3374
|
-
|
|
3375
|
-
_ === A && (ee != null && ee.error ? (u.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(ee.error), R.value = []) : R.value =
|
|
3374
|
+
er(ps, le).then((ee) => {
|
|
3375
|
+
_ === A && (ee != null && ee.error ? (u.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(ee.error), R.value = []) : R.value = So(ee.data || []));
|
|
3376
3376
|
});
|
|
3377
3377
|
}
|
|
3378
|
-
|
|
3378
|
+
Le(
|
|
3379
3379
|
() => v.value,
|
|
3380
3380
|
(_) => {
|
|
3381
|
-
|
|
3381
|
+
m.tileIndex === void 0 || m.tileIndex === null || a(m.tileIndex, _);
|
|
3382
3382
|
},
|
|
3383
3383
|
{ immediate: !0, deep: !0 }
|
|
3384
3384
|
);
|
|
@@ -3399,7 +3399,7 @@ const ds = /* @__PURE__ */ qo(us, [["render", cs]]), fs = "/assets/processTableD
|
|
|
3399
3399
|
serverSorts: ((de = d.value) == null ? void 0 : de.serverSorts) ?? null
|
|
3400
3400
|
});
|
|
3401
3401
|
});
|
|
3402
|
-
|
|
3402
|
+
Le(
|
|
3403
3403
|
() => X.value,
|
|
3404
3404
|
() => {
|
|
3405
3405
|
clearTimeout(T), T = setTimeout(U, 200);
|
|
@@ -3425,12 +3425,12 @@ const ds = /* @__PURE__ */ qo(us, [["render", cs]]), fs = "/assets/processTableD
|
|
|
3425
3425
|
}
|
|
3426
3426
|
const oe = c(() => {
|
|
3427
3427
|
var de;
|
|
3428
|
-
const _ = (de =
|
|
3428
|
+
const _ = (de = x.value) == null ? void 0 : de.$el, L = (_ == null ? void 0 : _.offsetHeight) ?? 0;
|
|
3429
3429
|
if (L <= 0) return 0;
|
|
3430
|
-
const F =
|
|
3430
|
+
const F = w.value, le = Math.floor((L - F - 34.5 - 32) / F) - ($.value ? 1 : 0);
|
|
3431
3431
|
return le > 0 ? le : 0;
|
|
3432
3432
|
}), ce = k(0);
|
|
3433
|
-
|
|
3433
|
+
Le(
|
|
3434
3434
|
oe,
|
|
3435
3435
|
(_) => {
|
|
3436
3436
|
_ > 0 && ce.value === 0 && (ce.value = _);
|
|
@@ -3447,7 +3447,7 @@ const ds = /* @__PURE__ */ qo(us, [["render", cs]]), fs = "/assets/processTableD
|
|
|
3447
3447
|
const F = d.value;
|
|
3448
3448
|
!F || L <= 0 || await F.goTo(F.rowOffset + _ * L, L);
|
|
3449
3449
|
}
|
|
3450
|
-
|
|
3450
|
+
Le(
|
|
3451
3451
|
() => {
|
|
3452
3452
|
var _;
|
|
3453
3453
|
return [((_ = d.value) == null ? void 0 : _.windowSize) ?? 0, ge.value];
|
|
@@ -3461,7 +3461,7 @@ const ds = /* @__PURE__ */ qo(us, [["render", cs]]), fs = "/assets/processTableD
|
|
|
3461
3461
|
const he = c(() => {
|
|
3462
3462
|
var _;
|
|
3463
3463
|
return (_ = o.value.data) != null && _.columns ? o.value.data.columns.map((L, F) => {
|
|
3464
|
-
const le =
|
|
3464
|
+
const le = wt(t, n, L.label, "other"), de = d.value ? d.value.serverSorts.find((Te) => Te.key === L.key) : v.value.find((Te) => Te.key === L.key), ee = !!de, Ne = P(L.key), Ie = ee ? de.type === Je.Asc ? "arrow_upward" : "arrow_downward" : "unfold_more";
|
|
3465
3465
|
return {
|
|
3466
3466
|
accessorKey: L.key,
|
|
3467
3467
|
header: () => {
|
|
@@ -3516,13 +3516,13 @@ const ds = /* @__PURE__ */ qo(us, [["render", cs]]), fs = "/assets/processTableD
|
|
|
3516
3516
|
});
|
|
3517
3517
|
return (_, L) => {
|
|
3518
3518
|
const F = be("FmTable");
|
|
3519
|
-
return j(), pe("div",
|
|
3520
|
-
Q("div",
|
|
3519
|
+
return j(), pe("div", gs, [
|
|
3520
|
+
Q("div", hs, [
|
|
3521
3521
|
gt(_.$slots, "menu")
|
|
3522
3522
|
]),
|
|
3523
3523
|
Ce(F, {
|
|
3524
3524
|
ref_key: "table",
|
|
3525
|
-
ref:
|
|
3525
|
+
ref: x,
|
|
3526
3526
|
"column-defs": he.value,
|
|
3527
3527
|
"row-data": R.value,
|
|
3528
3528
|
"search-value": W.value,
|
|
@@ -3536,14 +3536,14 @@ const ds = /* @__PURE__ */ qo(us, [["render", cs]]), fs = "/assets/processTableD
|
|
|
3536
3536
|
"row-count": d.value ? d.value.pageableRows : void 0,
|
|
3537
3537
|
"fetch-fn": d.value ? re : void 0,
|
|
3538
3538
|
loading: d.value ? d.value.loading : void 0
|
|
3539
|
-
},
|
|
3539
|
+
}, Xa({ _: 2 }, [
|
|
3540
3540
|
$.value ? {
|
|
3541
3541
|
name: "pin-top",
|
|
3542
3542
|
fn: Re(() => [
|
|
3543
|
-
(j(), ye(
|
|
3543
|
+
(j(), ye(Go($.value === l(qe).bottom ? "tfoot" : "tbody"), null, {
|
|
3544
3544
|
default: Re(() => [
|
|
3545
|
-
Q("tr",
|
|
3546
|
-
(j(!0), pe(Ye, null,
|
|
3545
|
+
Q("tr", vs, [
|
|
3546
|
+
(j(!0), pe(Ye, null, St(z.value, (le, de) => {
|
|
3547
3547
|
var ee, Ne;
|
|
3548
3548
|
return j(), pe("td", {
|
|
3549
3549
|
key: `${l(Kt)()}_${de}`,
|
|
@@ -3562,8 +3562,8 @@ const ds = /* @__PURE__ */ qo(us, [["render", cs]]), fs = "/assets/processTableD
|
|
|
3562
3562
|
]),
|
|
3563
3563
|
style: Ve(h())
|
|
3564
3564
|
}, [
|
|
3565
|
-
Q("p",
|
|
3566
|
-
Q("p",
|
|
3565
|
+
Q("p", ys, Me(O(le.main, Y.value[de])), 1),
|
|
3566
|
+
Q("p", bs, Me(le.comparison && ((Ne = Y.value[de]) != null && Ne.aggregationType) ? `(${O(le.comparison, Y.value[de])})` : ""), 1)
|
|
3567
3567
|
], 6)
|
|
3568
3568
|
], 4);
|
|
3569
3569
|
}), 128))
|
|
@@ -3578,7 +3578,7 @@ const ds = /* @__PURE__ */ qo(us, [["render", cs]]), fs = "/assets/processTableD
|
|
|
3578
3578
|
]);
|
|
3579
3579
|
};
|
|
3580
3580
|
}
|
|
3581
|
-
}),
|
|
3581
|
+
}), xs = { class: "widget-content" }, ws = /* @__PURE__ */ ze({
|
|
3582
3582
|
__name: "WidgetStackBarChart",
|
|
3583
3583
|
props: /* @__PURE__ */ ot({
|
|
3584
3584
|
tileIndex: {}
|
|
@@ -3602,12 +3602,12 @@ const ds = /* @__PURE__ */ qo(us, [["render", cs]]), fs = "/assets/processTableD
|
|
|
3602
3602
|
() => an(i.value, o.value.length, {
|
|
3603
3603
|
preserveNullableValues: t.value.hasNullableMetric
|
|
3604
3604
|
})
|
|
3605
|
-
),
|
|
3605
|
+
), m = Qt("bar"), v = c(() => t.value.stackBarOverlap === !0), x = c(() => v.value === !1), Y = c(() => ({
|
|
3606
3606
|
...$.value,
|
|
3607
|
-
stacked:
|
|
3607
|
+
stacked: x.value
|
|
3608
3608
|
})), H = c(() => ({
|
|
3609
3609
|
...C.value,
|
|
3610
|
-
stacked:
|
|
3610
|
+
stacked: x.value
|
|
3611
3611
|
})), d = c(() => ({
|
|
3612
3612
|
display: !1
|
|
3613
3613
|
}));
|
|
@@ -3620,7 +3620,7 @@ const ds = /* @__PURE__ */ qo(us, [["render", cs]]), fs = "/assets/processTableD
|
|
|
3620
3620
|
const ce = t.value.chartColorBinding === Be.metric ? K : t.value.chartColorBinding === Be.breakdown ? oe : B, ge = (ne = t.value.chartColorLayers) == null ? void 0 : ne[ce], G = Number(ge);
|
|
3621
3621
|
return Number.isInteger(G) && G > 0 ? G : ce + 1;
|
|
3622
3622
|
}
|
|
3623
|
-
const
|
|
3623
|
+
const w = c(() => {
|
|
3624
3624
|
if (i.value.length > 0) {
|
|
3625
3625
|
const B = u.value.map((K, oe) => {
|
|
3626
3626
|
const ce = Jt({
|
|
@@ -3652,7 +3652,7 @@ const ds = /* @__PURE__ */ qo(us, [["render", cs]]), fs = "/assets/processTableD
|
|
|
3652
3652
|
formatter: K.formatter,
|
|
3653
3653
|
data: L,
|
|
3654
3654
|
xAxisIndex: K.xAxisIndex,
|
|
3655
|
-
emptyValueIndexes: t.value.hasNullableMetric ? K.xAxisIndex === void 0 ?
|
|
3655
|
+
emptyValueIndexes: t.value.hasNullableMetric ? K.xAxisIndex === void 0 ? co(_) : _[K.xAxisIndex] === null ? [K.xAxisIndex] : void 0 : void 0,
|
|
3656
3656
|
dash: !!K.isCompare,
|
|
3657
3657
|
skipNull: a.value,
|
|
3658
3658
|
minBarLength: void 0,
|
|
@@ -3699,13 +3699,13 @@ const ds = /* @__PURE__ */ qo(us, [["render", cs]]), fs = "/assets/processTableD
|
|
|
3699
3699
|
} = tn({
|
|
3700
3700
|
chartRef: n,
|
|
3701
3701
|
model: t,
|
|
3702
|
-
baseDatasets:
|
|
3702
|
+
baseDatasets: w
|
|
3703
3703
|
});
|
|
3704
3704
|
return (B, K) => {
|
|
3705
3705
|
var ce, ge, G, ne, re, he;
|
|
3706
3706
|
const oe = be("FmBarChart");
|
|
3707
3707
|
return j(), pe(Ye, null, [
|
|
3708
|
-
Q("div",
|
|
3708
|
+
Q("div", xs, [
|
|
3709
3709
|
gt(B.$slots, "menu"),
|
|
3710
3710
|
Q("div", {
|
|
3711
3711
|
class: Fe(["chart-layout", {
|
|
@@ -3738,10 +3738,10 @@ const ds = /* @__PURE__ */ qo(us, [["render", cs]]), fs = "/assets/processTableD
|
|
|
3738
3738
|
"x-cfg": Y.value,
|
|
3739
3739
|
"y-cfg": H.value,
|
|
3740
3740
|
transpose: l(z),
|
|
3741
|
-
stacked:
|
|
3741
|
+
stacked: x.value,
|
|
3742
3742
|
legend: d.value,
|
|
3743
3743
|
tooltip: l(S),
|
|
3744
|
-
plugins: [l(
|
|
3744
|
+
plugins: [l(m)],
|
|
3745
3745
|
datalabels: l(D),
|
|
3746
3746
|
"maintain-aspect-ratio": !1
|
|
3747
3747
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "stacked", "legend", "tooltip", "plugins", "datalabels"]),
|
|
@@ -3774,7 +3774,7 @@ const ds = /* @__PURE__ */ qo(us, [["render", cs]]), fs = "/assets/processTableD
|
|
|
3774
3774
|
], 64);
|
|
3775
3775
|
};
|
|
3776
3776
|
}
|
|
3777
|
-
}),
|
|
3777
|
+
}), _s = { class: "widget-content" }, Kn = 1, Yo = "rgba(0, 0, 0, 0)", Ss = /* @__PURE__ */ ze({
|
|
3778
3778
|
__name: "WidgetClusteredStackBarchart",
|
|
3779
3779
|
props: /* @__PURE__ */ ot({
|
|
3780
3780
|
tileIndex: {}
|
|
@@ -3798,12 +3798,12 @@ const ds = /* @__PURE__ */ qo(us, [["render", cs]]), fs = "/assets/processTableD
|
|
|
3798
3798
|
() => an(i.value, o.value.length, {
|
|
3799
3799
|
preserveNullableValues: t.value.hasNullableMetric
|
|
3800
3800
|
})
|
|
3801
|
-
),
|
|
3801
|
+
), m = Qt("bar"), v = c(() => t.value.stackBarOverlap === !0), x = c(() => v.value === !1), Y = c(() => !a.value && o.value.length === 1 && i.value.some((G) => G.isCompare === !0)), H = c(() => ({
|
|
3802
3802
|
...O.value,
|
|
3803
|
-
stacked:
|
|
3803
|
+
stacked: x.value
|
|
3804
3804
|
})), d = c(() => ({
|
|
3805
3805
|
...ue.value,
|
|
3806
|
-
stacked:
|
|
3806
|
+
stacked: x.value
|
|
3807
3807
|
}));
|
|
3808
3808
|
function b(G) {
|
|
3809
3809
|
const ne = " - ", re = G.lastIndexOf(ne);
|
|
@@ -3815,7 +3815,7 @@ const ds = /* @__PURE__ */ qo(us, [["render", cs]]), fs = "/assets/processTableD
|
|
|
3815
3815
|
metricLabel: G.slice(re + ne.length)
|
|
3816
3816
|
};
|
|
3817
3817
|
}
|
|
3818
|
-
function
|
|
3818
|
+
function w(G, ne) {
|
|
3819
3819
|
if (typeof G == "string") {
|
|
3820
3820
|
const re = G.trim();
|
|
3821
3821
|
if (re.length > 0)
|
|
@@ -3838,8 +3838,8 @@ const ds = /* @__PURE__ */ qo(us, [["render", cs]]), fs = "/assets/processTableD
|
|
|
3838
3838
|
data: [0],
|
|
3839
3839
|
grouped: !0,
|
|
3840
3840
|
stack: `__comparison_gap__${G}`,
|
|
3841
|
-
backgroundColor:
|
|
3842
|
-
borderColor:
|
|
3841
|
+
backgroundColor: Yo,
|
|
3842
|
+
borderColor: Yo,
|
|
3843
3843
|
minBarLength: 0,
|
|
3844
3844
|
barPercentage: Kn,
|
|
3845
3845
|
isSpacer: !0
|
|
@@ -3851,7 +3851,7 @@ const ds = /* @__PURE__ */ qo(us, [["render", cs]]), fs = "/assets/processTableD
|
|
|
3851
3851
|
const G = u.value.map((F, le) => ({
|
|
3852
3852
|
source: F,
|
|
3853
3853
|
index: le,
|
|
3854
|
-
name:
|
|
3854
|
+
name: w(F == null ? void 0 : F.name, le),
|
|
3855
3855
|
values: (F == null ? void 0 : F.values) ?? []
|
|
3856
3856
|
})), ne = /* @__PURE__ */ new Map(), re = /* @__PURE__ */ new Map();
|
|
3857
3857
|
for (const F of G) {
|
|
@@ -3864,7 +3864,7 @@ const ds = /* @__PURE__ */ qo(us, [["render", cs]]), fs = "/assets/processTableD
|
|
|
3864
3864
|
const le = Jt({
|
|
3865
3865
|
datasets: u.value,
|
|
3866
3866
|
datasetIndex: F.index
|
|
3867
|
-
}), de = a.value ? on(u.value, le) : le, ee =
|
|
3867
|
+
}), de = a.value ? on(u.value, le) : le, ee = Qo({
|
|
3868
3868
|
datasets: u.value,
|
|
3869
3869
|
datasetIndex: F.index
|
|
3870
3870
|
}), Ne = Oe({
|
|
@@ -3884,7 +3884,7 @@ const ds = /* @__PURE__ */ qo(us, [["render", cs]]), fs = "/assets/processTableD
|
|
|
3884
3884
|
index: Ne,
|
|
3885
3885
|
isCompare: F.source.isCompare,
|
|
3886
3886
|
customColors: t.value.chartColors
|
|
3887
|
-
}),
|
|
3887
|
+
}), Tt = h({
|
|
3888
3888
|
datasetIndex: de,
|
|
3889
3889
|
colorIndex: Ne
|
|
3890
3890
|
}), et = nn(F.values);
|
|
@@ -3894,13 +3894,13 @@ const ds = /* @__PURE__ */ qo(us, [["render", cs]]), fs = "/assets/processTableD
|
|
|
3894
3894
|
tooltipLabel: `${Ie} - ${Te}`,
|
|
3895
3895
|
data: et,
|
|
3896
3896
|
xAxisIndex: F.source.xAxisIndex,
|
|
3897
|
-
emptyValueIndexes: t.value.hasNullableMetric ? F.source.xAxisIndex === void 0 ?
|
|
3897
|
+
emptyValueIndexes: t.value.hasNullableMetric ? F.source.xAxisIndex === void 0 ? co(F.values) : F.values[F.source.xAxisIndex] === null ? [F.source.xAxisIndex] : void 0 : void 0,
|
|
3898
3898
|
dash: !!F.source.isCompare,
|
|
3899
3899
|
skipNull: a.value,
|
|
3900
3900
|
minBarLength: void 0,
|
|
3901
3901
|
barPercentage: Y.value ? Kn : void 0,
|
|
3902
3902
|
grouped: !0,
|
|
3903
|
-
order: v.value ?
|
|
3903
|
+
order: v.value ? Tt : void 0,
|
|
3904
3904
|
stack: F.source.isCompare ? `${Ie}__compare` : `${Ie}__main`,
|
|
3905
3905
|
backgroundColor: st
|
|
3906
3906
|
};
|
|
@@ -3953,7 +3953,7 @@ const ds = /* @__PURE__ */ qo(us, [["render", cs]]), fs = "/assets/processTableD
|
|
|
3953
3953
|
var he, _, L, F, le, de;
|
|
3954
3954
|
const re = be("FmBarChart");
|
|
3955
3955
|
return j(), pe(Ye, null, [
|
|
3956
|
-
Q("div",
|
|
3956
|
+
Q("div", _s, [
|
|
3957
3957
|
gt(G.$slots, "menu"),
|
|
3958
3958
|
Q("div", {
|
|
3959
3959
|
class: Fe(["chart-layout", {
|
|
@@ -3986,10 +3986,10 @@ const ds = /* @__PURE__ */ qo(us, [["render", cs]]), fs = "/assets/processTableD
|
|
|
3986
3986
|
"x-cfg": H.value,
|
|
3987
3987
|
"y-cfg": d.value,
|
|
3988
3988
|
transpose: l(R),
|
|
3989
|
-
stacked:
|
|
3989
|
+
stacked: x.value,
|
|
3990
3990
|
legend: ge.value,
|
|
3991
3991
|
tooltip: l(C),
|
|
3992
|
-
plugins: [l(
|
|
3992
|
+
plugins: [l(m)],
|
|
3993
3993
|
datalabels: l(z),
|
|
3994
3994
|
"maintain-aspect-ratio": !1
|
|
3995
3995
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "stacked", "legend", "tooltip", "plugins", "datalabels"]),
|
|
@@ -4023,23 +4023,23 @@ const ds = /* @__PURE__ */ qo(us, [["render", cs]]), fs = "/assets/processTableD
|
|
|
4023
4023
|
};
|
|
4024
4024
|
}
|
|
4025
4025
|
});
|
|
4026
|
-
function
|
|
4026
|
+
function ks(e) {
|
|
4027
4027
|
const t = Reflect.get(e, "lineStyle"), n = Reflect.get(e, "dash") === !0;
|
|
4028
|
-
return
|
|
4028
|
+
return mr(t, n);
|
|
4029
4029
|
}
|
|
4030
|
-
function
|
|
4030
|
+
function ba(e = "report-line-style-plugin") {
|
|
4031
4031
|
return {
|
|
4032
4032
|
id: e,
|
|
4033
4033
|
beforeDatasetsUpdate(t) {
|
|
4034
4034
|
var o;
|
|
4035
4035
|
(((o = t == null ? void 0 : t.data) == null ? void 0 : o.datasets) ?? []).forEach((r) => {
|
|
4036
4036
|
const i = r;
|
|
4037
|
-
Reflect.set(i, "borderDash",
|
|
4037
|
+
Reflect.set(i, "borderDash", ks(i));
|
|
4038
4038
|
});
|
|
4039
4039
|
}
|
|
4040
4040
|
};
|
|
4041
4041
|
}
|
|
4042
|
-
const
|
|
4042
|
+
const Ts = { class: "widget-content" }, Ls = /* @__PURE__ */ ze({
|
|
4043
4043
|
__name: "WidgetStackLineChart",
|
|
4044
4044
|
props: /* @__PURE__ */ ot({
|
|
4045
4045
|
tileIndex: {}
|
|
@@ -4059,11 +4059,11 @@ const Ss = { class: "widget-content" }, ks = /* @__PURE__ */ ze({
|
|
|
4059
4059
|
() => r.value.some((U) => U.xAxisIndex !== void 0)
|
|
4060
4060
|
), a = c(() => an(r.value, o.value.length)), u = c(
|
|
4061
4061
|
() => !i.value && o.value.length === 1 && r.value.length > 0 && r.value.every((U) => U.values.length === 1)
|
|
4062
|
-
),
|
|
4063
|
-
categories:
|
|
4064
|
-
})),
|
|
4062
|
+
), m = c(() => u.value ? ["", o.value[0], ""] : o.value), v = c(() => ({
|
|
4063
|
+
categories: m.value
|
|
4064
|
+
})), x = c(() => ({
|
|
4065
4065
|
display: !1
|
|
4066
|
-
})), Y = Qt("line"), H =
|
|
4066
|
+
})), Y = Qt("line"), H = ba("report-line-style-plugin-stack-line"), d = c(() => r.value.length > 0 ? [
|
|
4067
4067
|
...a.value.map((U, X) => {
|
|
4068
4068
|
var F;
|
|
4069
4069
|
const B = Jt({
|
|
@@ -4120,7 +4120,7 @@ const Ss = { class: "widget-content" }, ks = /* @__PURE__ */ ze({
|
|
|
4120
4120
|
})
|
|
4121
4121
|
] : []), {
|
|
4122
4122
|
isTooltipDetailsSheetOpen: b,
|
|
4123
|
-
tooltipDetailsPayload:
|
|
4123
|
+
tooltipDetailsPayload: w,
|
|
4124
4124
|
handleTooltipDetailsSheetVisibility: h,
|
|
4125
4125
|
handleTooltipDetailsHover: I,
|
|
4126
4126
|
handleTooltipDetailsLeave: P,
|
|
@@ -4146,7 +4146,7 @@ const Ss = { class: "widget-content" }, ks = /* @__PURE__ */ ze({
|
|
|
4146
4146
|
var K, oe, ce, ge, G, ne;
|
|
4147
4147
|
const B = be("FmLineChart");
|
|
4148
4148
|
return j(), pe(Ye, null, [
|
|
4149
|
-
Q("div",
|
|
4149
|
+
Q("div", Ts, [
|
|
4150
4150
|
gt(U.$slots, "menu"),
|
|
4151
4151
|
Q("div", {
|
|
4152
4152
|
class: Fe(["chart-layout", {
|
|
@@ -4179,7 +4179,7 @@ const Ss = { class: "widget-content" }, ks = /* @__PURE__ */ ze({
|
|
|
4179
4179
|
"x-cfg": l(S),
|
|
4180
4180
|
"y-cfg": l(D),
|
|
4181
4181
|
transpose: l($),
|
|
4182
|
-
legend:
|
|
4182
|
+
legend: x.value,
|
|
4183
4183
|
tooltip: l(W),
|
|
4184
4184
|
plugins: [l(Y), l(H)],
|
|
4185
4185
|
stacked: !0,
|
|
@@ -4207,7 +4207,7 @@ const Ss = { class: "widget-content" }, ks = /* @__PURE__ */ ze({
|
|
|
4207
4207
|
]),
|
|
4208
4208
|
Ce(en, {
|
|
4209
4209
|
"model-value": l(b),
|
|
4210
|
-
"details-payload": l(
|
|
4210
|
+
"details-payload": l(w),
|
|
4211
4211
|
"onUpdate:modelValue": l(h),
|
|
4212
4212
|
onValueHover: l(I),
|
|
4213
4213
|
onValueLeave: l(P)
|
|
@@ -4215,27 +4215,27 @@ const Ss = { class: "widget-content" }, ks = /* @__PURE__ */ ze({
|
|
|
4215
4215
|
], 64);
|
|
4216
4216
|
};
|
|
4217
4217
|
}
|
|
4218
|
-
}),
|
|
4219
|
-
function
|
|
4220
|
-
return e.startsWith(
|
|
4218
|
+
}), fo = "data:image/svg+xml;base64,";
|
|
4219
|
+
function Ca(e) {
|
|
4220
|
+
return e.startsWith(fo);
|
|
4221
4221
|
}
|
|
4222
|
-
function
|
|
4222
|
+
function Ds(e) {
|
|
4223
4223
|
if (!e.trim()) return "";
|
|
4224
4224
|
const t = new TextEncoder().encode(e);
|
|
4225
4225
|
let n = "";
|
|
4226
4226
|
for (const o of t) n += String.fromCharCode(o);
|
|
4227
|
-
return `${
|
|
4227
|
+
return `${fo}${btoa(n)}`;
|
|
4228
4228
|
}
|
|
4229
|
-
function
|
|
4230
|
-
if (!
|
|
4229
|
+
function pi(e) {
|
|
4230
|
+
if (!Ca(e)) return e;
|
|
4231
4231
|
try {
|
|
4232
|
-
const t = atob(e.slice(
|
|
4232
|
+
const t = atob(e.slice(fo.length));
|
|
4233
4233
|
return new TextDecoder().decode(Uint8Array.from(t, (n) => n.charCodeAt(0)));
|
|
4234
4234
|
} catch {
|
|
4235
4235
|
return "";
|
|
4236
4236
|
}
|
|
4237
4237
|
}
|
|
4238
|
-
const
|
|
4238
|
+
const Is = ["src"], Ps = /* @__PURE__ */ ze({
|
|
4239
4239
|
__name: "TitleIcon",
|
|
4240
4240
|
props: {
|
|
4241
4241
|
icon: {},
|
|
@@ -4252,7 +4252,7 @@ const Ls = ["src"], Ds = /* @__PURE__ */ ze({
|
|
|
4252
4252
|
})[t.size ?? Ot.Small]
|
|
4253
4253
|
), o = c(
|
|
4254
4254
|
() => t.type ?? (t.icon.trim().startsWith("<svg") ? gn.Custom : gn.Material)
|
|
4255
|
-
), r = c(() => o.value !== gn.Custom || !t.icon.trim() ? "" :
|
|
4255
|
+
), r = c(() => o.value !== gn.Custom || !t.icon.trim() ? "" : Ca(t.icon) ? t.icon : Ds(t.icon));
|
|
4256
4256
|
return (i, a) => {
|
|
4257
4257
|
const u = be("FmIcon");
|
|
4258
4258
|
return o.value === l(gn).Material && i.icon ? (j(), ye(u, {
|
|
@@ -4268,10 +4268,10 @@ const Ls = ["src"], Ds = /* @__PURE__ */ ze({
|
|
|
4268
4268
|
style: Ve({ width: `${n.value}px`, height: `${n.value}px` }),
|
|
4269
4269
|
alt: "",
|
|
4270
4270
|
"aria-hidden": "true"
|
|
4271
|
-
}, null, 12,
|
|
4271
|
+
}, null, 12, Is)) : we("", !0);
|
|
4272
4272
|
};
|
|
4273
4273
|
}
|
|
4274
|
-
}),
|
|
4274
|
+
}), mo = [
|
|
4275
4275
|
"col-span-1",
|
|
4276
4276
|
"col-span-2",
|
|
4277
4277
|
"col-span-3",
|
|
@@ -4285,29 +4285,29 @@ const Ls = ["src"], Ds = /* @__PURE__ */ ze({
|
|
|
4285
4285
|
"col-span-11",
|
|
4286
4286
|
"col-span-12"
|
|
4287
4287
|
];
|
|
4288
|
-
function
|
|
4288
|
+
function Ms(e) {
|
|
4289
4289
|
return Math.min(12, e);
|
|
4290
4290
|
}
|
|
4291
|
-
function
|
|
4291
|
+
function Bs(e) {
|
|
4292
4292
|
return Math.min(12, e * 2);
|
|
4293
4293
|
}
|
|
4294
|
-
function
|
|
4294
|
+
function As(e) {
|
|
4295
4295
|
return Math.min(12, e * 3);
|
|
4296
4296
|
}
|
|
4297
|
-
function
|
|
4298
|
-
return
|
|
4297
|
+
function Rs(e) {
|
|
4298
|
+
return mo[Ms(e) - 1];
|
|
4299
4299
|
}
|
|
4300
|
-
function
|
|
4301
|
-
return
|
|
4300
|
+
function Fs(e) {
|
|
4301
|
+
return mo[Bs(e) - 1];
|
|
4302
4302
|
}
|
|
4303
|
-
function
|
|
4304
|
-
return
|
|
4303
|
+
function Ns(e) {
|
|
4304
|
+
return mo[As(e) - 1];
|
|
4305
4305
|
}
|
|
4306
|
-
const
|
|
4307
|
-
function
|
|
4308
|
-
return (t === "SCORECARD" ?
|
|
4306
|
+
const Vs = 150, $s = 200;
|
|
4307
|
+
function zs(e, t) {
|
|
4308
|
+
return (t === "SCORECARD" ? $s : Vs) * e;
|
|
4309
4309
|
}
|
|
4310
|
-
const
|
|
4310
|
+
const Hs = { class: "widget-content" }, Ws = /* @__PURE__ */ ze({
|
|
4311
4311
|
__name: "WidgetLinechart",
|
|
4312
4312
|
props: /* @__PURE__ */ ot({
|
|
4313
4313
|
tileIndex: {}
|
|
@@ -4325,13 +4325,13 @@ const $s = { class: "widget-content" }, zs = /* @__PURE__ */ ze({
|
|
|
4325
4325
|
return ((X = t.value.data) == null ? void 0 : X.xAxis) ?? [];
|
|
4326
4326
|
}), i = c(
|
|
4327
4327
|
() => o.value.some((X) => X.xAxisIndex !== void 0)
|
|
4328
|
-
), a = c(() => an(o.value, r.value.length)), u = c(() => !i.value && r.value.length === 1 && o.value.length > 1 && o.value.every((X) => X.values.length === 1 && X.isCompare !== !0)),
|
|
4328
|
+
), a = c(() => an(o.value, r.value.length)), u = c(() => !i.value && r.value.length === 1 && o.value.length > 1 && o.value.every((X) => X.values.length === 1 && X.isCompare !== !0)), m = c(
|
|
4329
4329
|
() => !i.value && r.value.length === 1 && o.value.length > 0 && o.value.every((X) => X.values.length === 1)
|
|
4330
|
-
), v = c(() => u.value ? o.value.map((X) => X.name) :
|
|
4330
|
+
), v = c(() => u.value ? o.value.map((X) => X.name) : m.value ? ["", r.value[0], ""] : r.value), x = c(() => ({
|
|
4331
4331
|
categories: v.value
|
|
4332
4332
|
})), Y = c(() => ({
|
|
4333
4333
|
display: !1
|
|
4334
|
-
})), H = Qt("line"), d =
|
|
4334
|
+
})), H = Qt("line"), d = ba("report-line-style-plugin-line"), b = c(() => o.value.length > 0 ? [
|
|
4335
4335
|
...a.value.map((X, B) => {
|
|
4336
4336
|
var ee;
|
|
4337
4337
|
const K = Jt({
|
|
@@ -4366,8 +4366,8 @@ const $s = { class: "widget-content" }, zs = /* @__PURE__ */ ze({
|
|
|
4366
4366
|
let _ = X.values;
|
|
4367
4367
|
u.value ? _ = a.value.map(
|
|
4368
4368
|
(Ne, Ie) => Ie === B ? X.values[0] : NaN
|
|
4369
|
-
) :
|
|
4370
|
-
const L = nn(_), F =
|
|
4369
|
+
) : m.value && (_ = [NaN, _[0], NaN]);
|
|
4370
|
+
const L = nn(_), F = m.value || u.value, le = Oe({
|
|
4371
4371
|
datasetIndex: B,
|
|
4372
4372
|
isCompare: X.isCompare,
|
|
4373
4373
|
metricCount: t.value.metricCount,
|
|
@@ -4389,7 +4389,7 @@ const $s = { class: "widget-content" }, zs = /* @__PURE__ */ ze({
|
|
|
4389
4389
|
};
|
|
4390
4390
|
})
|
|
4391
4391
|
] : []), {
|
|
4392
|
-
isTooltipDetailsSheetOpen:
|
|
4392
|
+
isTooltipDetailsSheetOpen: w,
|
|
4393
4393
|
tooltipDetailsPayload: h,
|
|
4394
4394
|
handleTooltipDetailsSheetVisibility: I,
|
|
4395
4395
|
handleTooltipDetailsHover: P,
|
|
@@ -4416,7 +4416,7 @@ const $s = { class: "widget-content" }, zs = /* @__PURE__ */ ze({
|
|
|
4416
4416
|
var oe, ce, ge, G, ne, re;
|
|
4417
4417
|
const K = be("FmLineChart");
|
|
4418
4418
|
return j(), pe(Ye, null, [
|
|
4419
|
-
Q("div",
|
|
4419
|
+
Q("div", Hs, [
|
|
4420
4420
|
gt(X.$slots, "menu"),
|
|
4421
4421
|
Q("div", {
|
|
4422
4422
|
class: Fe(["chart-layout", {
|
|
@@ -4445,7 +4445,7 @@ const $s = { class: "widget-content" }, zs = /* @__PURE__ */ ze({
|
|
|
4445
4445
|
ref: n,
|
|
4446
4446
|
class: "line-chart",
|
|
4447
4447
|
datasets: l(U),
|
|
4448
|
-
"x-axis":
|
|
4448
|
+
"x-axis": x.value,
|
|
4449
4449
|
"x-cfg": l(D),
|
|
4450
4450
|
"y-cfg": l($),
|
|
4451
4451
|
transpose: l(C),
|
|
@@ -4475,7 +4475,7 @@ const $s = { class: "widget-content" }, zs = /* @__PURE__ */ ze({
|
|
|
4475
4475
|
], 2)
|
|
4476
4476
|
]),
|
|
4477
4477
|
Ce(en, {
|
|
4478
|
-
"model-value": l(
|
|
4478
|
+
"model-value": l(w),
|
|
4479
4479
|
"details-payload": l(h),
|
|
4480
4480
|
"onUpdate:modelValue": l(I),
|
|
4481
4481
|
onValueHover: l(P),
|
|
@@ -4484,7 +4484,7 @@ const $s = { class: "widget-content" }, zs = /* @__PURE__ */ ze({
|
|
|
4484
4484
|
], 64);
|
|
4485
4485
|
};
|
|
4486
4486
|
}
|
|
4487
|
-
}),
|
|
4487
|
+
}), Os = { class: "flex flex-col gap-16" }, Us = { class: "flex flex-row" }, Ks = /* @__PURE__ */ ze({
|
|
4488
4488
|
__name: "PdfOrientationDialog",
|
|
4489
4489
|
props: /* @__PURE__ */ ot({
|
|
4490
4490
|
fileType: {},
|
|
@@ -4495,30 +4495,30 @@ const $s = { class: "widget-content" }, zs = /* @__PURE__ */ ze({
|
|
|
4495
4495
|
}),
|
|
4496
4496
|
emits: ["update:modelValue"],
|
|
4497
4497
|
setup(e) {
|
|
4498
|
-
const { t } =
|
|
4498
|
+
const { t } = kt(), { FmForm: n } = ur, o = e, r = k(), i = at(e, "modelValue"), a = k(!0), u = k(!1), m = Sn(), { selectedLocationIds: v, dateRange: x, timeRange: Y } = At(_n()), H = k(Hn.PORTRAIT);
|
|
4499
4499
|
function d() {
|
|
4500
|
-
var
|
|
4501
|
-
(
|
|
4500
|
+
var w;
|
|
4501
|
+
(w = r.value) == null || w.validateInputs();
|
|
4502
4502
|
}
|
|
4503
4503
|
async function b() {
|
|
4504
4504
|
u.value = !0;
|
|
4505
4505
|
try {
|
|
4506
|
-
o.index != null && await
|
|
4506
|
+
o.index != null && await qo({
|
|
4507
4507
|
fileType: o.fileType,
|
|
4508
4508
|
index: o.index,
|
|
4509
4509
|
orientationTypes: [H.value],
|
|
4510
4510
|
isCombinedLocationLayout: a.value,
|
|
4511
4511
|
timeRange: Y.value,
|
|
4512
|
-
dateRange:
|
|
4512
|
+
dateRange: x.value,
|
|
4513
4513
|
locationIds: v.value
|
|
4514
4514
|
});
|
|
4515
|
-
} catch (
|
|
4516
|
-
|
|
4515
|
+
} catch (w) {
|
|
4516
|
+
m.open({ message: w.message, type: "error" });
|
|
4517
4517
|
} finally {
|
|
4518
4518
|
u.value = !1;
|
|
4519
4519
|
}
|
|
4520
4520
|
}
|
|
4521
|
-
return (
|
|
4521
|
+
return (w, h) => {
|
|
4522
4522
|
const I = be("FmRadio"), P = be("FmRadioGroup"), W = be("FmButton"), M = be("FmDialog");
|
|
4523
4523
|
return j(), ye(M, {
|
|
4524
4524
|
modelValue: i.value,
|
|
@@ -4527,7 +4527,7 @@ const $s = { class: "widget-content" }, zs = /* @__PURE__ */ ze({
|
|
|
4527
4527
|
"z-index": 10
|
|
4528
4528
|
}, {
|
|
4529
4529
|
"dialog-header": Re(() => h[3] || (h[3] = [
|
|
4530
|
-
|
|
4530
|
+
ja("Select Orientation")
|
|
4531
4531
|
])),
|
|
4532
4532
|
default: Re(() => [
|
|
4533
4533
|
Ce(l(n), {
|
|
@@ -4536,7 +4536,7 @@ const $s = { class: "widget-content" }, zs = /* @__PURE__ */ ze({
|
|
|
4536
4536
|
onValidationSuccess: b
|
|
4537
4537
|
}, {
|
|
4538
4538
|
default: Re(() => [
|
|
4539
|
-
Q("div",
|
|
4539
|
+
Q("div", Os, [
|
|
4540
4540
|
Ce(P, {
|
|
4541
4541
|
modelValue: H.value,
|
|
4542
4542
|
"onUpdate:modelValue": h[0] || (h[0] = (S) => H.value = S)
|
|
@@ -4554,7 +4554,7 @@ const $s = { class: "widget-content" }, zs = /* @__PURE__ */ ze({
|
|
|
4554
4554
|
_: 1
|
|
4555
4555
|
}, 8, ["modelValue"])
|
|
4556
4556
|
]),
|
|
4557
|
-
Q("div",
|
|
4557
|
+
Q("div", Us, [
|
|
4558
4558
|
h[4] || (h[4] = Q("div", { class: "grow" }, null, -1)),
|
|
4559
4559
|
Ce(W, {
|
|
4560
4560
|
label: l(t)("report.common.cancel"),
|
|
@@ -4578,9 +4578,9 @@ const $s = { class: "widget-content" }, zs = /* @__PURE__ */ ze({
|
|
|
4578
4578
|
};
|
|
4579
4579
|
}
|
|
4580
4580
|
});
|
|
4581
|
-
function
|
|
4581
|
+
function Ys(e) {
|
|
4582
4582
|
const { breakpoints: t } = qt(), { containerRef: n, isTable: o = k(!0) } = e;
|
|
4583
|
-
let r = k(1), i = null, a = null, u = null,
|
|
4583
|
+
let r = k(1), i = null, a = null, u = null, m = null, v = null, x = null;
|
|
4584
4584
|
function Y() {
|
|
4585
4585
|
return n.value ? n.value.querySelector("table") : null;
|
|
4586
4586
|
}
|
|
@@ -4649,7 +4649,7 @@ function Us(e) {
|
|
|
4649
4649
|
};
|
|
4650
4650
|
});
|
|
4651
4651
|
}
|
|
4652
|
-
function
|
|
4652
|
+
function w() {
|
|
4653
4653
|
const D = t.value.xs || t.value.sm, $ = document.querySelector('[data-editor-header="true"]'), C = document.querySelector('[data-menu-tab="true"]');
|
|
4654
4654
|
if (D && !$)
|
|
4655
4655
|
return 1;
|
|
@@ -4672,7 +4672,7 @@ function Us(e) {
|
|
|
4672
4672
|
i.style.visibility = "hidden";
|
|
4673
4673
|
return;
|
|
4674
4674
|
}
|
|
4675
|
-
const D = n.value.getBoundingClientRect(), $ = a.getBoundingClientRect(), C = u.getBoundingClientRect(), z = H(), O = Math.max(
|
|
4675
|
+
const D = n.value.getBoundingClientRect(), $ = a.getBoundingClientRect(), C = u.getBoundingClientRect(), z = H(), O = Math.max(w(), z.top), ue = Math.min($.bottom, z.bottom);
|
|
4676
4676
|
if (!(C.top < O && ue >= O + C.height)) {
|
|
4677
4677
|
i.style.visibility = "hidden";
|
|
4678
4678
|
return;
|
|
@@ -4690,7 +4690,7 @@ function Us(e) {
|
|
|
4690
4690
|
v = () => requestAnimationFrame(h), document.addEventListener("scroll", v, { capture: !0, passive: !0 }), window.addEventListener("resize", v, { passive: !0 });
|
|
4691
4691
|
}
|
|
4692
4692
|
function P() {
|
|
4693
|
-
|
|
4693
|
+
m = new ResizeObserver(() => {
|
|
4694
4694
|
if (u && i) {
|
|
4695
4695
|
const D = i.querySelector("thead");
|
|
4696
4696
|
D && b(u, D);
|
|
@@ -4698,19 +4698,19 @@ function Us(e) {
|
|
|
4698
4698
|
$ && a && ($.style.width = `${a.offsetWidth}px`);
|
|
4699
4699
|
}
|
|
4700
4700
|
h();
|
|
4701
|
-
}), n.value &&
|
|
4701
|
+
}), n.value && m.observe(n.value), a && m.observe(a);
|
|
4702
4702
|
}
|
|
4703
4703
|
function W() {
|
|
4704
4704
|
if (!u) return;
|
|
4705
|
-
const D =
|
|
4705
|
+
const D = Xn(() => d(), 100), $ = () => {
|
|
4706
4706
|
if (u && i) {
|
|
4707
4707
|
const C = i.querySelector("thead");
|
|
4708
4708
|
C && b(u, C), h();
|
|
4709
4709
|
}
|
|
4710
4710
|
};
|
|
4711
|
-
|
|
4711
|
+
x = new MutationObserver((C) => {
|
|
4712
4712
|
C.some((O) => O.type === "childList" ? O.addedNodes.length > 0 || O.removedNodes.length > 0 : !1) ? D() : $();
|
|
4713
|
-
}),
|
|
4713
|
+
}), x.observe(u, {
|
|
4714
4714
|
childList: !0,
|
|
4715
4715
|
subtree: !0,
|
|
4716
4716
|
attributes: !0,
|
|
@@ -4718,31 +4718,31 @@ function Us(e) {
|
|
|
4718
4718
|
});
|
|
4719
4719
|
}
|
|
4720
4720
|
function M() {
|
|
4721
|
-
i && (i.remove(), i = null), v && (document.removeEventListener("scroll", v, !0), window.removeEventListener("resize", v), v = null),
|
|
4721
|
+
i && (i.remove(), i = null), v && (document.removeEventListener("scroll", v, !0), window.removeEventListener("resize", v), v = null), m && (m.disconnect(), m = null), x && (x.disconnect(), x = null), a = null, u = null;
|
|
4722
4722
|
}
|
|
4723
4723
|
function S() {
|
|
4724
4724
|
d();
|
|
4725
4725
|
}
|
|
4726
|
-
return
|
|
4726
|
+
return Le(o, (D) => {
|
|
4727
4727
|
D ? d() : M();
|
|
4728
|
-
}),
|
|
4728
|
+
}), Le(r, () => {
|
|
4729
4729
|
i && (i.style.top = `${r.value}px`, h());
|
|
4730
|
-
}),
|
|
4730
|
+
}), Le(n, () => {
|
|
4731
4731
|
n.value && o.value && setTimeout(d, 100);
|
|
4732
4732
|
}), Gt(() => {
|
|
4733
4733
|
o.value && setTimeout(d, 100);
|
|
4734
|
-
}),
|
|
4734
|
+
}), Yn(() => {
|
|
4735
4735
|
M();
|
|
4736
4736
|
}), { refresh: S, cleanup: M };
|
|
4737
4737
|
}
|
|
4738
|
-
const
|
|
4739
|
-
function
|
|
4740
|
-
|
|
4738
|
+
const xa = Symbol("report-page-nav");
|
|
4739
|
+
function gi(e) {
|
|
4740
|
+
Ga(xa, e);
|
|
4741
4741
|
}
|
|
4742
|
-
function
|
|
4743
|
-
return
|
|
4742
|
+
function Xs() {
|
|
4743
|
+
return qa(xa, void 0);
|
|
4744
4744
|
}
|
|
4745
|
-
function
|
|
4745
|
+
function Es(e) {
|
|
4746
4746
|
let t, n, o, r;
|
|
4747
4747
|
switch (e) {
|
|
4748
4748
|
case Z.Table:
|
|
@@ -4775,7 +4775,7 @@ function Ys(e) {
|
|
|
4775
4775
|
joinDatasources: t
|
|
4776
4776
|
};
|
|
4777
4777
|
}
|
|
4778
|
-
function
|
|
4778
|
+
function hi(e, t) {
|
|
4779
4779
|
let n = 1, o = 1;
|
|
4780
4780
|
switch (e) {
|
|
4781
4781
|
case Z.Scorecard:
|
|
@@ -4806,19 +4806,19 @@ function pi(e, t) {
|
|
|
4806
4806
|
widget: {
|
|
4807
4807
|
title: t || "New widget",
|
|
4808
4808
|
type: e,
|
|
4809
|
-
config:
|
|
4809
|
+
config: Es(e)
|
|
4810
4810
|
}
|
|
4811
4811
|
};
|
|
4812
4812
|
}
|
|
4813
|
-
function
|
|
4813
|
+
function vi(e, t) {
|
|
4814
4814
|
return e.filter((n, o) => o !== t);
|
|
4815
4815
|
}
|
|
4816
|
-
function
|
|
4816
|
+
function Xo(e) {
|
|
4817
4817
|
const t = [e.schemaName, e.name];
|
|
4818
4818
|
return "option" in e && e.option && t.push(e.option), "aggregation" in e && e.aggregation && t.push(e.aggregation), t.push(e.label.replace(/[^\p{L}\p{N}_]+/gu, "")), t.join("_").toLowerCase();
|
|
4819
4819
|
}
|
|
4820
|
-
function
|
|
4821
|
-
var b,
|
|
4820
|
+
function js(e, t, n = []) {
|
|
4821
|
+
var b, w, h, I, P, W;
|
|
4822
4822
|
if (!e || !Array.isArray(e.columns) || !Array.isArray(e.rows))
|
|
4823
4823
|
return [];
|
|
4824
4824
|
const o = (M) => M.schemaName === t.schemaName && M.name === t.name && (t.option ? M.option === t.option : !0), r = n.findIndex(o);
|
|
@@ -4826,7 +4826,7 @@ function Xs(e, t, n = []) {
|
|
|
4826
4826
|
return [];
|
|
4827
4827
|
if (((b = n[r]) == null ? void 0 : b.hide) === !0)
|
|
4828
4828
|
return [];
|
|
4829
|
-
if (((
|
|
4829
|
+
if (((w = n[r]) == null ? void 0 : w.moveToColumn) === !0)
|
|
4830
4830
|
return [];
|
|
4831
4831
|
const i = n.filter(
|
|
4832
4832
|
(M) => M.hide !== !0 && M.moveToColumn !== !0
|
|
@@ -4842,7 +4842,7 @@ function Xs(e, t, n = []) {
|
|
|
4842
4842
|
var S;
|
|
4843
4843
|
return (S = M == null ? void 0 : M.cells) == null ? void 0 : S[v];
|
|
4844
4844
|
}).filter((M) => M != null);
|
|
4845
|
-
const
|
|
4845
|
+
const x = e.columns.reduce((M, S, D) => (String((S == null ? void 0 : S.type) ?? (S == null ? void 0 : S.dataType) ?? "").toUpperCase() === "STRING" && M.push(D), M), []), H = i.reduce(
|
|
4846
4846
|
(M, S, D) => {
|
|
4847
4847
|
var C, z, O, ue;
|
|
4848
4848
|
return String(
|
|
@@ -4850,7 +4850,7 @@ function Xs(e, t, n = []) {
|
|
|
4850
4850
|
).toUpperCase() === "STRING" && M.push(D), M;
|
|
4851
4851
|
},
|
|
4852
4852
|
[]
|
|
4853
|
-
).indexOf(u), d = H >= 0 ?
|
|
4853
|
+
).indexOf(u), d = H >= 0 ? x[H] ?? -1 : String(
|
|
4854
4854
|
((I = (h = e.columns) == null ? void 0 : h[u]) == null ? void 0 : I.type) ?? ((W = (P = e.columns) == null ? void 0 : P[u]) == null ? void 0 : W.dataType) ?? ""
|
|
4855
4855
|
).toUpperCase() === "STRING" ? u : -1;
|
|
4856
4856
|
return d === -1 ? [] : a.map((M) => {
|
|
@@ -4858,19 +4858,19 @@ function Xs(e, t, n = []) {
|
|
|
4858
4858
|
return (S = M == null ? void 0 : M.cells) == null ? void 0 : S[d];
|
|
4859
4859
|
}).filter((M) => M != null);
|
|
4860
4860
|
}
|
|
4861
|
-
const
|
|
4861
|
+
const Gs = {
|
|
4862
4862
|
key: 0,
|
|
4863
4863
|
class: "h-full"
|
|
4864
|
-
},
|
|
4864
|
+
}, qs = {
|
|
4865
4865
|
key: 0,
|
|
4866
4866
|
class: "flex min-w-0 items-center gap-1"
|
|
4867
|
-
},
|
|
4867
|
+
}, Js = {
|
|
4868
4868
|
key: 1,
|
|
4869
4869
|
class: "grow"
|
|
4870
|
-
},
|
|
4870
|
+
}, Zs = {
|
|
4871
4871
|
key: 2,
|
|
4872
4872
|
class: "flex"
|
|
4873
|
-
},
|
|
4873
|
+
}, yi = /* @__PURE__ */ ze({
|
|
4874
4874
|
__name: "DynamicWidget",
|
|
4875
4875
|
props: /* @__PURE__ */ ot({
|
|
4876
4876
|
reportId: {
|
|
@@ -4910,18 +4910,18 @@ const Es = {
|
|
|
4910
4910
|
}),
|
|
4911
4911
|
emits: /* @__PURE__ */ ot(["update:table-response"], ["update:modelValue"]),
|
|
4912
4912
|
setup(e, { emit: t }) {
|
|
4913
|
-
const n = k(!0), o = k(!1), r = at(e, "modelValue"), i = t, a = r.value.widget.config, { t: u, te:
|
|
4914
|
-
var
|
|
4915
|
-
return (
|
|
4916
|
-
}), { refresh: b } =
|
|
4913
|
+
const n = k(!0), o = k(!1), r = at(e, "modelValue"), i = t, a = r.value.widget.config, { t: u, te: m, locale: v } = kt(), x = e, Y = k(null), H = c(() => r.value.widget.type === Z.Table), d = c(() => {
|
|
4914
|
+
var f;
|
|
4915
|
+
return (f = Y.value) == null ? void 0 : f.$el;
|
|
4916
|
+
}), { refresh: b } = Ys({
|
|
4917
4917
|
containerRef: d,
|
|
4918
4918
|
isTable: H
|
|
4919
|
-
}),
|
|
4919
|
+
}), w = k(a.rollup), h = k(Kt()), I = k(a.drillDimension), P = c(() => {
|
|
4920
4920
|
if (pt.value.length > 0) {
|
|
4921
|
-
const
|
|
4921
|
+
const f = pt.value.findIndex(
|
|
4922
4922
|
(J) => J.value === I.value
|
|
4923
4923
|
);
|
|
4924
|
-
return
|
|
4924
|
+
return f >= 0 ? f : 0;
|
|
4925
4925
|
} else
|
|
4926
4926
|
return -1;
|
|
4927
4927
|
}), W = c(() => P.value !== 0), M = c(
|
|
@@ -4934,52 +4934,52 @@ const Es = {
|
|
|
4934
4934
|
Array.isArray(a.chartBreakdownColors) ? [...a.chartBreakdownColors] : void 0
|
|
4935
4935
|
), A = k(a.chartUseSecondaryMetricShades ?? !0), T = k(a.chartColorBinding), q = k(
|
|
4936
4936
|
Array.isArray(a.lineStyles) ? [...a.lineStyles] : void 0
|
|
4937
|
-
), U = k(a.lineStyleBinding), X = k(a.showLabel ?? !1), B = k(a.labelAlign ??
|
|
4937
|
+
), U = k(a.lineStyleBinding), X = k(a.showLabel ?? !1), B = k(a.labelAlign ?? Gn.center), K = k(a.labelAnchor ?? jn.center), oe = k(a.labelRotation ?? 0), ce = k(a.labelOffset ?? 0), ge = k(a.labelFontSize ?? 12), G = Sn(), ne = c(
|
|
4938
4938
|
() => {
|
|
4939
|
-
var
|
|
4940
|
-
return ((
|
|
4939
|
+
var f;
|
|
4940
|
+
return ((f = ut.value) == null ? void 0 : f.showSearchBar) === !0 && (me.value.config.showSearchBar ?? !0);
|
|
4941
4941
|
}
|
|
4942
|
-
), re = k(a.showX ?? !0), he = k(a.xPosition ??
|
|
4943
|
-
() =>
|
|
4942
|
+
), re = k(a.showX ?? !0), he = k(a.xPosition ?? qn.bottom), _ = k(a.showXGrid ?? !1), L = k(a.showXTick ?? !0), F = k(a.xTickFontSize ?? 12), le = k(a.showXTitle ?? !1), de = k(a.xTitle ?? ""), ee = k(a.xTitleFontSize ?? 12), Ne = k(a.showY ?? !0), Ie = k(a.yPosition ?? Jn.left), Te = k(a.showYGrid ?? !1), Ze = k(a.showYTick ?? !0), ft = k(a.yTickFontSize ?? 12), rt = k(a.showYTitle ?? !1), lt = k(a.yTitle ?? ""), Qe = k(a.yTitleFontSize ?? 12), st = k(a.showLegend ?? void 0), Tt = k(a.legendPosition ?? Zn.top), et = k(a.usePointStyle ?? !0), ht = k(a.legendFontSize), rn = k(a.legendColor ?? "#6b6b6b"), ln = k(a.maxTooltipItems), Ht = k(a.stackBarOverlap ?? !1), mt = k(a.rowHeight ?? null), sn = k(a.colWidths ?? null), Wt = k(!1), vt = k(""), { breakpoints: it, getBreakpointsBoundary: yt } = qt(), un = k(), Lt = k(window.innerWidth), Ae = c(
|
|
4943
|
+
() => x.customScreenWidth === void 0 ? Lt.value : x.customScreenWidth
|
|
4944
4944
|
), In = c(
|
|
4945
|
-
() => (Ae == null ? void 0 : Ae.value) >
|
|
4945
|
+
() => (Ae == null ? void 0 : Ae.value) > yt("xs")[1] && (Ae == null ? void 0 : Ae.value) <= yt("sm")[1]
|
|
4946
4946
|
), cn = c(
|
|
4947
|
-
() => (Ae == null ? void 0 : Ae.value) >
|
|
4948
|
-
), Pn = c(() => (Ae == null ? void 0 : Ae.value) >
|
|
4949
|
-
const
|
|
4950
|
-
return Pn.value || cn.value ?
|
|
4947
|
+
() => (Ae == null ? void 0 : Ae.value) > yt("sm")[1] && (Ae == null ? void 0 : Ae.value) <= yt("md")[1]
|
|
4948
|
+
), Pn = c(() => (Ae == null ? void 0 : Ae.value) > yt("md")[1]), Mn = c(() => {
|
|
4949
|
+
const f = r.value.size.width;
|
|
4950
|
+
return Pn.value || cn.value ? Rs(f) : In.value ? Fs(f) : Ns(f);
|
|
4951
4951
|
}), ut = c(
|
|
4952
|
-
() =>
|
|
4953
|
-
), s =
|
|
4952
|
+
() => cr.find((f) => f.type === r.value.widget.type)
|
|
4953
|
+
), s = Xs(), g = c(() => !!s && ar(r.value)), p = c(
|
|
4954
4954
|
() => {
|
|
4955
|
-
var
|
|
4956
|
-
return S.value || ne.value || g.value || (((
|
|
4955
|
+
var f, J, ie;
|
|
4956
|
+
return S.value || ne.value || g.value || (((f = ut.value) == null ? void 0 : f.showLabel) ?? !1) || (((J = ut.value) == null ? void 0 : J.showDrillDimension) ?? !1) && pt.value.length > 0 || (((ie = ut.value) == null ? void 0 : ie.showRollup) ?? !1) && $n.value.length > 0;
|
|
4957
4957
|
}
|
|
4958
|
-
), y =
|
|
4959
|
-
Lt.value = window.innerWidth, un.value =
|
|
4958
|
+
), y = Xn(async () => {
|
|
4959
|
+
Lt.value = window.innerWidth, un.value = $a(), h.value = Kt(), await jo(), b();
|
|
4960
4960
|
}), V = c(() => {
|
|
4961
4961
|
if (o.value)
|
|
4962
4962
|
return Wn;
|
|
4963
|
-
if (
|
|
4963
|
+
if (dr(me.value.type, N.value))
|
|
4964
4964
|
switch (r.value.widget.type) {
|
|
4965
4965
|
case Z.BarChart:
|
|
4966
|
-
return
|
|
4966
|
+
return Ul;
|
|
4967
4967
|
case Z.StackBarChart:
|
|
4968
|
-
return Cs;
|
|
4969
|
-
case Z.ClusteredStackBarChart:
|
|
4970
4968
|
return ws;
|
|
4969
|
+
case Z.ClusteredStackBarChart:
|
|
4970
|
+
return Ss;
|
|
4971
4971
|
case Z.LineChart:
|
|
4972
|
-
return
|
|
4972
|
+
return Ws;
|
|
4973
4973
|
case Z.StackLineChart:
|
|
4974
|
-
return
|
|
4974
|
+
return Ls;
|
|
4975
4975
|
case Z.Circular:
|
|
4976
|
-
return
|
|
4976
|
+
return Yl;
|
|
4977
4977
|
case Z.Scorecard:
|
|
4978
|
-
return
|
|
4978
|
+
return cs;
|
|
4979
4979
|
case Z.Spacer:
|
|
4980
|
-
return
|
|
4980
|
+
return ms;
|
|
4981
4981
|
case Z.Table:
|
|
4982
|
-
return
|
|
4982
|
+
return Cs;
|
|
4983
4983
|
default:
|
|
4984
4984
|
return Wn;
|
|
4985
4985
|
}
|
|
@@ -4989,74 +4989,74 @@ const Es = {
|
|
|
4989
4989
|
let fe = null;
|
|
4990
4990
|
const ke = k(0), $e = c(
|
|
4991
4991
|
() => {
|
|
4992
|
-
var
|
|
4993
|
-
return me.value.type === Z.Table ? ((
|
|
4992
|
+
var f;
|
|
4993
|
+
return me.value.type === Z.Table ? ((f = N.value) == null ? void 0 : f.paging) ?? null : null;
|
|
4994
4994
|
}
|
|
4995
4995
|
), Ee = c(() => $e.value != null || se.value), je = c(() => Se.value ? 1 : 0);
|
|
4996
4996
|
function tt() {
|
|
4997
4997
|
Se.value = null, ae.value = { startIndex: 0, count: ae.value.count }, fe = null;
|
|
4998
4998
|
}
|
|
4999
|
-
function Ue(
|
|
4999
|
+
function Ue(f) {
|
|
5000
5000
|
var xe, Pe;
|
|
5001
|
-
const J =
|
|
5001
|
+
const J = f, ie = J == null ? void 0 : J.paging;
|
|
5002
5002
|
if (!ie) {
|
|
5003
5003
|
if (tt(), se.value && J) {
|
|
5004
|
-
const
|
|
5005
|
-
Se.value = (xe =
|
|
5004
|
+
const De = J.rows;
|
|
5005
|
+
Se.value = (xe = De[0]) != null && xe.isRollup ? De[0] : null, ke.value = De.length, fe = { jobId: "whole", blocks: /* @__PURE__ */ new Map([[0, De]]) }, Ge(je.value, ae.value.count || De.length);
|
|
5006
5006
|
}
|
|
5007
5007
|
return;
|
|
5008
5008
|
}
|
|
5009
5009
|
se.value = !0, ke.value = ie.totalRows, Se.value = (Pe = J.rows[0]) != null && Pe.isRollup ? J.rows[0] : null, fe = { jobId: ie.jobId, blocks: /* @__PURE__ */ new Map([[0, J.rows]]) }, Ge(je.value, ae.value.count || Math.min(J.rows.length, 25));
|
|
5010
5010
|
}
|
|
5011
|
-
function Ge(
|
|
5012
|
-
var
|
|
5011
|
+
function Ge(f, J) {
|
|
5012
|
+
var De;
|
|
5013
5013
|
const ie = N.value;
|
|
5014
5014
|
if (!ie || !fe) return;
|
|
5015
|
-
const xe = ((
|
|
5016
|
-
for (let Ke =
|
|
5017
|
-
const He = fe.blocks.get(Math.floor(Ke / xe) * xe),
|
|
5018
|
-
if (!
|
|
5019
|
-
Pe.push(
|
|
5015
|
+
const xe = ((De = $e.value) == null ? void 0 : De.pageSize) ?? te, Pe = [];
|
|
5016
|
+
for (let Ke = f; Ke < f + J; Ke++) {
|
|
5017
|
+
const He = fe.blocks.get(Math.floor(Ke / xe) * xe), bt = He == null ? void 0 : He[Ke % xe];
|
|
5018
|
+
if (!bt) break;
|
|
5019
|
+
Pe.push(bt);
|
|
5020
5020
|
}
|
|
5021
|
-
ae.value = { startIndex:
|
|
5021
|
+
ae.value = { startIndex: f, count: J }, N.value = { ...ie, rows: Pe };
|
|
5022
5022
|
}
|
|
5023
|
-
function Bn(
|
|
5023
|
+
function Bn(f, J) {
|
|
5024
5024
|
const ie = N.value;
|
|
5025
|
-
ie != null && ie.paging && (N.value = { ...ie, paging: { ...ie.paging, jobId:
|
|
5025
|
+
ie != null && ie.paging && (N.value = { ...ie, paging: { ...ie.paging, jobId: f } }), J && (ke.value = J), fe = { jobId: f, blocks: /* @__PURE__ */ new Map() };
|
|
5026
5026
|
}
|
|
5027
|
-
async function An(
|
|
5028
|
-
var
|
|
5027
|
+
async function An(f, J) {
|
|
5028
|
+
var bt, mn, pn;
|
|
5029
5029
|
const ie = $e.value;
|
|
5030
5030
|
if (!ie) {
|
|
5031
|
-
Ge(
|
|
5031
|
+
Ge(f, J);
|
|
5032
5032
|
return;
|
|
5033
5033
|
}
|
|
5034
|
-
const xe = ie.pageSize, Pe = Math.floor(
|
|
5035
|
-
for (let We = Pe; We <=
|
|
5034
|
+
const xe = ie.pageSize, Pe = Math.floor(f / xe) * xe, De = Math.floor((f + J - 1) / xe) * xe, Ke = [];
|
|
5035
|
+
for (let We = Pe; We <= De && We < ke.value; We += xe)
|
|
5036
5036
|
((fe == null ? void 0 : fe.jobId) !== ie.jobId || !fe.blocks.has(We)) && Ke.push(We);
|
|
5037
5037
|
if (Ke.length === 0) {
|
|
5038
|
-
Ge(
|
|
5038
|
+
Ge(f, J);
|
|
5039
5039
|
return;
|
|
5040
5040
|
}
|
|
5041
5041
|
ve.value = !0;
|
|
5042
5042
|
let He = ie.jobId;
|
|
5043
5043
|
try {
|
|
5044
5044
|
for (const We of Ke) {
|
|
5045
|
-
const
|
|
5046
|
-
widget:
|
|
5045
|
+
const xt = await ko({
|
|
5046
|
+
widget: po(),
|
|
5047
5047
|
signal: new AbortController().signal,
|
|
5048
5048
|
tileId: r.value.id,
|
|
5049
5049
|
pageRead: { jobId: He, startIndex: We, maxResults: xe },
|
|
5050
5050
|
// The search is part of the SQL, so it has to match on every page read.
|
|
5051
5051
|
search: E.value || void 0
|
|
5052
5052
|
});
|
|
5053
|
-
if (!
|
|
5054
|
-
const It = (mn =
|
|
5055
|
-
It && It !== He && (He = It, Bn(He, (pn =
|
|
5053
|
+
if (!xt || ((bt = $e.value) == null ? void 0 : bt.jobId) !== He) return;
|
|
5054
|
+
const It = (mn = xt.paging) == null ? void 0 : mn.jobId;
|
|
5055
|
+
It && It !== He && (He = It, Bn(He, (pn = xt.paging) == null ? void 0 : pn.totalRows)), (fe == null ? void 0 : fe.jobId) !== He && (fe = { jobId: He, blocks: /* @__PURE__ */ new Map() }), fe.blocks.set(We, xt.rows);
|
|
5056
5056
|
}
|
|
5057
|
-
Ge(
|
|
5057
|
+
Ge(f, J);
|
|
5058
5058
|
} catch (We) {
|
|
5059
|
-
if (
|
|
5059
|
+
if (or(We) === 410) {
|
|
5060
5060
|
tt(), await Dt();
|
|
5061
5061
|
return;
|
|
5062
5062
|
}
|
|
@@ -5065,16 +5065,16 @@ const Es = {
|
|
|
5065
5065
|
ve.value = !1;
|
|
5066
5066
|
}
|
|
5067
5067
|
}
|
|
5068
|
-
function dn(
|
|
5068
|
+
function dn(f) {
|
|
5069
5069
|
const J = me.value.config, ie = [J, ...J.joinDatasources ?? []];
|
|
5070
5070
|
for (const xe of ie)
|
|
5071
5071
|
for (const Pe of [...xe.dimensions ?? [], ...xe.metrics ?? []])
|
|
5072
|
-
if (
|
|
5072
|
+
if (Xo(Pe) === f) return Pe;
|
|
5073
5073
|
return null;
|
|
5074
5074
|
}
|
|
5075
|
-
function
|
|
5075
|
+
function po() {
|
|
5076
5076
|
if (_e.value.length === 0) return me.value;
|
|
5077
|
-
const
|
|
5077
|
+
const f = _e.value.map((J) => {
|
|
5078
5078
|
const ie = dn(J.key);
|
|
5079
5079
|
return ie ? {
|
|
5080
5080
|
schemaName: ie.schemaName,
|
|
@@ -5084,63 +5084,63 @@ const Es = {
|
|
|
5084
5084
|
type: J.type === Je.Desc ? Je.Desc : Je.Asc
|
|
5085
5085
|
} : null;
|
|
5086
5086
|
}).filter((J) => J != null);
|
|
5087
|
-
return
|
|
5087
|
+
return f.length === 0 ? me.value : {
|
|
5088
5088
|
...me.value,
|
|
5089
|
-
config: { ...me.value.config, sorts:
|
|
5089
|
+
config: { ...me.value.config, sorts: f }
|
|
5090
5090
|
};
|
|
5091
5091
|
}
|
|
5092
|
-
let
|
|
5093
|
-
|
|
5094
|
-
() =>
|
|
5095
|
-
(
|
|
5096
|
-
Ee.value && (clearTimeout(
|
|
5092
|
+
let go;
|
|
5093
|
+
Le(
|
|
5094
|
+
() => vt.value,
|
|
5095
|
+
(f) => {
|
|
5096
|
+
Ee.value && (clearTimeout(go), go = setTimeout(() => ho(f.trim()), 500));
|
|
5097
5097
|
}
|
|
5098
5098
|
);
|
|
5099
|
-
function
|
|
5100
|
-
|
|
5099
|
+
function ho(f) {
|
|
5100
|
+
f !== E.value && (E.value = f, tt(), Dt());
|
|
5101
5101
|
}
|
|
5102
|
-
function
|
|
5103
|
-
_e.value =
|
|
5102
|
+
function wa(f) {
|
|
5103
|
+
_e.value = f, tt(), Dt();
|
|
5104
5104
|
}
|
|
5105
|
-
const { selectedLocationIds: Rn, dateRange: Fn, compareDateRange:
|
|
5106
|
-
const
|
|
5105
|
+
const { selectedLocationIds: Rn, dateRange: Fn, compareDateRange: _a, timeRange: Nn } = At(_n()), Sa = rr(), { globalFilters: ka, lastAppliedTileFilterIds: Ta } = At(Sa), { businessDataVersion: Vn, dateSettingLoaded: vo } = At(_n()), { country: La } = At(Ln()), Da = k(!0), me = c(() => {
|
|
5106
|
+
const f = JSON.parse(JSON.stringify(r.value.widget));
|
|
5107
5107
|
return {
|
|
5108
|
-
...
|
|
5108
|
+
...f,
|
|
5109
5109
|
config: {
|
|
5110
|
-
...
|
|
5111
|
-
rollup:
|
|
5110
|
+
...f.config,
|
|
5111
|
+
rollup: w.value,
|
|
5112
5112
|
drillDimension: I.value,
|
|
5113
5113
|
showGrandTotal: !1
|
|
5114
5114
|
}
|
|
5115
5115
|
};
|
|
5116
|
-
}),
|
|
5116
|
+
}), Ia = c(() => {
|
|
5117
5117
|
var ie;
|
|
5118
|
-
const
|
|
5118
|
+
const f = ((ie = me.value.config.metrics) == null ? void 0 : ie.length) ?? 0;
|
|
5119
5119
|
if (!me.value.config.isBlend)
|
|
5120
|
-
return
|
|
5120
|
+
return f;
|
|
5121
5121
|
const J = (me.value.config.joinDatasources ?? []).reduce(
|
|
5122
5122
|
(xe, Pe) => {
|
|
5123
|
-
var
|
|
5124
|
-
return xe + (((
|
|
5123
|
+
var De;
|
|
5124
|
+
return xe + (((De = Pe.metrics) == null ? void 0 : De.length) ?? 0);
|
|
5125
5125
|
},
|
|
5126
5126
|
0
|
|
5127
5127
|
);
|
|
5128
|
-
return
|
|
5129
|
-
}),
|
|
5128
|
+
return f + J;
|
|
5129
|
+
}), Pa = c(() => [
|
|
5130
5130
|
me.value.config,
|
|
5131
5131
|
...me.value.config.isBlend ? me.value.config.joinDatasources ?? [] : []
|
|
5132
5132
|
].some((J) => {
|
|
5133
5133
|
var ie;
|
|
5134
5134
|
return (ie = J.metrics) == null ? void 0 : ie.some((xe) => xe.nullable);
|
|
5135
|
-
})),
|
|
5135
|
+
})), Ma = c(() => {
|
|
5136
5136
|
var ie;
|
|
5137
|
-
const
|
|
5138
|
-
return !!(
|
|
5137
|
+
const f = (ie = N.value) == null ? void 0 : ie.datasets;
|
|
5138
|
+
return !!(f != null && f.length) && f.every((xe) => xe.formatter === "CURRENCY") ? Dn(La.value) : void 0;
|
|
5139
5139
|
});
|
|
5140
|
-
function
|
|
5140
|
+
function Ba() {
|
|
5141
5141
|
return {
|
|
5142
5142
|
data: N.value,
|
|
5143
|
-
valueCurrency:
|
|
5143
|
+
valueCurrency: Ma.value,
|
|
5144
5144
|
showTitle: S.value,
|
|
5145
5145
|
titleFontSize: D.value,
|
|
5146
5146
|
titleBold: $.value,
|
|
@@ -5151,8 +5151,8 @@ const Es = {
|
|
|
5151
5151
|
chartBreakdownColors: R.value,
|
|
5152
5152
|
chartUseSecondaryMetricShades: A.value,
|
|
5153
5153
|
chartColorBinding: T.value,
|
|
5154
|
-
metricCount:
|
|
5155
|
-
hasNullableMetric:
|
|
5154
|
+
metricCount: Ia.value,
|
|
5155
|
+
hasNullableMetric: Pa.value,
|
|
5156
5156
|
lineStyles: q.value,
|
|
5157
5157
|
lineStyleBinding: U.value,
|
|
5158
5158
|
showLabel: X.value,
|
|
@@ -5179,7 +5179,7 @@ const Es = {
|
|
|
5179
5179
|
yTickFontSize: ft.value,
|
|
5180
5180
|
isTransposed: me.value.config.isTransposed,
|
|
5181
5181
|
showLegend: st.value,
|
|
5182
|
-
legendPosition:
|
|
5182
|
+
legendPosition: Tt.value,
|
|
5183
5183
|
usePointStyle: et.value,
|
|
5184
5184
|
legendFontSize: ht.value,
|
|
5185
5185
|
legendColor: rn.value,
|
|
@@ -5187,7 +5187,7 @@ const Es = {
|
|
|
5187
5187
|
stackBarOverlap: Ht.value
|
|
5188
5188
|
};
|
|
5189
5189
|
}
|
|
5190
|
-
function
|
|
5190
|
+
function Aa() {
|
|
5191
5191
|
return {
|
|
5192
5192
|
data: N.value,
|
|
5193
5193
|
paged: Ee.value ? {
|
|
@@ -5198,29 +5198,29 @@ const Es = {
|
|
|
5198
5198
|
loading: ve.value,
|
|
5199
5199
|
grandTotalRow: Se.value,
|
|
5200
5200
|
goTo: An,
|
|
5201
|
-
setServerSorts:
|
|
5201
|
+
setServerSorts: wa,
|
|
5202
5202
|
serverSorts: _e.value,
|
|
5203
|
-
setServerSearch:
|
|
5203
|
+
setServerSearch: ho,
|
|
5204
5204
|
serverSearch: E.value
|
|
5205
5205
|
} : void 0,
|
|
5206
|
-
filterText: Ee.value ? "" :
|
|
5206
|
+
filterText: Ee.value ? "" : vt.value,
|
|
5207
5207
|
rollupPosition: me.value.config.rollupPosition,
|
|
5208
5208
|
grandTotalLabel: me.value.config.grandTotalLabel,
|
|
5209
5209
|
rowHeight: mt.value,
|
|
5210
5210
|
colWidths: sn.value
|
|
5211
5211
|
};
|
|
5212
5212
|
}
|
|
5213
|
-
const
|
|
5213
|
+
const yo = c(() => {
|
|
5214
5214
|
switch (me.value.type) {
|
|
5215
5215
|
case Z.Table:
|
|
5216
|
-
return
|
|
5216
|
+
return Aa();
|
|
5217
5217
|
case Z.BarChart:
|
|
5218
5218
|
case Z.LineChart:
|
|
5219
5219
|
case Z.StackBarChart:
|
|
5220
5220
|
case Z.ClusteredStackBarChart:
|
|
5221
5221
|
case Z.StackLineChart:
|
|
5222
5222
|
case Z.Circular:
|
|
5223
|
-
return
|
|
5223
|
+
return Ba();
|
|
5224
5224
|
case Z.Scorecard:
|
|
5225
5225
|
return {
|
|
5226
5226
|
data: N.value,
|
|
@@ -5230,42 +5230,42 @@ const Es = {
|
|
|
5230
5230
|
return { data: N.value };
|
|
5231
5231
|
}
|
|
5232
5232
|
}), $n = c(() => {
|
|
5233
|
-
const { config:
|
|
5234
|
-
if (
|
|
5235
|
-
const J = [...
|
|
5233
|
+
const { config: f } = r.value.widget;
|
|
5234
|
+
if (f.rollup != null) {
|
|
5235
|
+
const J = [...f.dimensions].filter((ie) => !ie.hide);
|
|
5236
5236
|
return [
|
|
5237
|
-
{ label:
|
|
5238
|
-
{ label:
|
|
5237
|
+
{ label: wt(u, m, "None", "other"), value: "none" },
|
|
5238
|
+
{ label: wt(u, m, "Grand Total", "other"), value: 0 },
|
|
5239
5239
|
...[...J].slice(0, J.length - 1).map((ie, xe) => ({
|
|
5240
|
-
label:
|
|
5240
|
+
label: wt(u, m, ie.label, "other"),
|
|
5241
5241
|
value: xe + 1
|
|
5242
5242
|
}))
|
|
5243
5243
|
];
|
|
5244
5244
|
}
|
|
5245
5245
|
return [];
|
|
5246
5246
|
}), pt = c(() => {
|
|
5247
|
-
const { config:
|
|
5248
|
-
return
|
|
5249
|
-
label:
|
|
5250
|
-
value:
|
|
5247
|
+
const { config: f } = me.value;
|
|
5248
|
+
return f.isDrillable ? f.dimensions.map((J) => ({
|
|
5249
|
+
label: wt(u, m, J.label, "other"),
|
|
5250
|
+
value: Xo(J)
|
|
5251
5251
|
})) : [];
|
|
5252
|
-
}),
|
|
5252
|
+
}), Ra = c(
|
|
5253
5253
|
() => `${(Rn.value || []).join("|")}|${JSON.stringify(Fn.value)}|${JSON.stringify(
|
|
5254
5254
|
Nn.value
|
|
5255
5255
|
)}`
|
|
5256
5256
|
), zn = c(() => {
|
|
5257
|
-
const
|
|
5258
|
-
return (
|
|
5259
|
-
(J) => Array.isArray(J.tileIds) && J.tileIds.includes(
|
|
5257
|
+
const f = r.value.id;
|
|
5258
|
+
return (ka.value || []).filter(
|
|
5259
|
+
(J) => Array.isArray(J.tileIds) && J.tileIds.includes(f)
|
|
5260
5260
|
);
|
|
5261
5261
|
});
|
|
5262
|
-
|
|
5262
|
+
Le(
|
|
5263
5263
|
() => r.value.widget.config,
|
|
5264
|
-
(
|
|
5265
|
-
|
|
5264
|
+
(f) => {
|
|
5265
|
+
w.value = f.rollup, S.value = f.showTitle ?? !0, D.value = f.titleFontSize ?? 14, $.value = f.titleBold ?? !1, C.value = f.titleItalic ?? !1, z.value = f.titleUnderline ?? !1, O.value = Array.isArray(f.chartColors) ? [...f.chartColors] : void 0, ue.value = Array.isArray(f.chartColorLayers) ? [...f.chartColorLayers] : void 0, R.value = Array.isArray(f.chartBreakdownColors) ? [...f.chartBreakdownColors] : void 0, A.value = f.chartUseSecondaryMetricShades ?? !0, T.value = f.chartColorBinding, q.value = Array.isArray(f.lineStyles) ? [...f.lineStyles] : void 0, U.value = f.lineStyleBinding, X.value = f.showLabel ?? !1, B.value = f.labelAlign ?? Gn.center, K.value = f.labelAnchor ?? jn.center, oe.value = f.labelRotation ?? 0, ce.value = f.labelOffset ?? 0, ge.value = f.labelFontSize ?? 12, re.value = f.showX ?? !0, he.value = f.xPosition ?? qn.bottom, _.value = f.showXGrid ?? !1, L.value = f.showXTick ?? !0, F.value = f.xTickFontSize ?? 12, le.value = f.showXTitle ?? !1, de.value = f.xTitle ?? "", ee.value = f.xTitleFontSize ?? 12, Ne.value = f.showY ?? !0, Ie.value = f.yPosition ?? Jn.left, Te.value = f.showYGrid ?? !1, Ze.value = f.showYTick ?? !0, ft.value = f.yTickFontSize ?? 12, rt.value = f.showYTitle ?? !1, lt.value = f.yTitle ?? "", Qe.value = f.yTitleFontSize ?? 12, st.value = f.showLegend ?? void 0, Tt.value = f.legendPosition ?? Zn.top, et.value = f.usePointStyle ?? !0, ht.value = f.legendFontSize, rn.value = f.legendColor ?? "#6b6b6b", ln.value = f.maxTooltipItems, Ht.value = f.stackBarOverlap ?? !1, mt.value = f.rowHeight ?? null, sn.value = f.colWidths ?? null, h.value = Kt();
|
|
5266
5266
|
},
|
|
5267
5267
|
{ deep: !0, immediate: !0 }
|
|
5268
|
-
),
|
|
5268
|
+
), Le(
|
|
5269
5269
|
[H, N],
|
|
5270
5270
|
() => {
|
|
5271
5271
|
i(
|
|
@@ -5274,41 +5274,41 @@ const Es = {
|
|
|
5274
5274
|
);
|
|
5275
5275
|
},
|
|
5276
5276
|
{ immediate: !0 }
|
|
5277
|
-
),
|
|
5278
|
-
|
|
5279
|
-
}),
|
|
5280
|
-
|
|
5281
|
-
(
|
|
5282
|
-
J !== void 0 &&
|
|
5277
|
+
), Le([() => w.value], () => {
|
|
5278
|
+
w.value !== null && (r.value.widget.config.rollup = w.value);
|
|
5279
|
+
}), Le(
|
|
5280
|
+
Ra,
|
|
5281
|
+
(f, J) => {
|
|
5282
|
+
J !== void 0 && f !== J && zn.value.length > 0 && Co();
|
|
5283
5283
|
},
|
|
5284
5284
|
{ flush: "pre" }
|
|
5285
|
-
),
|
|
5285
|
+
), Le(
|
|
5286
5286
|
() => r.value,
|
|
5287
|
-
(
|
|
5288
|
-
!
|
|
5287
|
+
(f, J) => {
|
|
5288
|
+
!x.isTileEditor || !f || J !== void 0 && Co();
|
|
5289
5289
|
},
|
|
5290
5290
|
{ deep: !0, flush: "pre" }
|
|
5291
|
-
),
|
|
5291
|
+
), Le(
|
|
5292
5292
|
[
|
|
5293
5293
|
() => me.value,
|
|
5294
5294
|
() => Fn.value,
|
|
5295
5295
|
() => Nn.value,
|
|
5296
|
-
() =>
|
|
5296
|
+
() => _a.value,
|
|
5297
5297
|
() => Rn.value,
|
|
5298
5298
|
() => Vn.value,
|
|
5299
|
-
() =>
|
|
5299
|
+
() => vo.value
|
|
5300
5300
|
],
|
|
5301
5301
|
() => {
|
|
5302
|
-
|
|
5302
|
+
x.isEditingStyle || Dt();
|
|
5303
5303
|
},
|
|
5304
5304
|
{ deep: !0, flush: "post" }
|
|
5305
|
-
),
|
|
5306
|
-
() =>
|
|
5307
|
-
(
|
|
5308
|
-
|
|
5305
|
+
), Le(
|
|
5306
|
+
() => Ta.value,
|
|
5307
|
+
(f) => {
|
|
5308
|
+
x.isEditingStyle || f.includes(r.value.id) && Dt();
|
|
5309
5309
|
},
|
|
5310
5310
|
{ flush: "post" }
|
|
5311
|
-
),
|
|
5311
|
+
), Le(
|
|
5312
5312
|
[() => r.value.size],
|
|
5313
5313
|
() => {
|
|
5314
5314
|
y();
|
|
@@ -5316,34 +5316,34 @@ const Es = {
|
|
|
5316
5316
|
{ deep: !0 }
|
|
5317
5317
|
), Gt(() => {
|
|
5318
5318
|
y(), it.value.sm || it.value.md || it.value.xs ? (console.log("Ignoring resize event due to keyboard"), addEventListener("change", y)) : addEventListener("resize", y), Dt();
|
|
5319
|
-
}),
|
|
5319
|
+
}), Yn(() => {
|
|
5320
5320
|
it.value.sm || it.value.md || it.value.xs ? (console.log("Ignoring resize event due to keyboard"), removeEventListener("change", y)) : removeEventListener("resize", y);
|
|
5321
5321
|
});
|
|
5322
|
-
const
|
|
5323
|
-
setWidgetResult:
|
|
5324
|
-
startWidgetResultLoading:
|
|
5325
|
-
finishWidgetResultLoading:
|
|
5326
|
-
clearAllWidgetResults:
|
|
5327
|
-
} =
|
|
5322
|
+
const bo = Sn(), {
|
|
5323
|
+
setWidgetResult: Fa,
|
|
5324
|
+
startWidgetResultLoading: Na,
|
|
5325
|
+
finishWidgetResultLoading: Va,
|
|
5326
|
+
clearAllWidgetResults: Co
|
|
5327
|
+
} = tr();
|
|
5328
5328
|
let fn;
|
|
5329
5329
|
async function Dt() {
|
|
5330
|
-
if (o.value = !1, !
|
|
5330
|
+
if (o.value = !1, !x.isEditingStyle && vo.value) {
|
|
5331
5331
|
if (me.value.config.schemaNames.length <= 0 && !(me.value.config.dimensions.length <= 0 || me.value.config.metrics.length <= 0)) {
|
|
5332
|
-
|
|
5332
|
+
bo.open({
|
|
5333
5333
|
message: "schema must not be empty and dimension or metrics must have at least 1 column",
|
|
5334
5334
|
type: "info"
|
|
5335
5335
|
}), n.value = !1;
|
|
5336
5336
|
return;
|
|
5337
5337
|
}
|
|
5338
|
-
|
|
5338
|
+
Na();
|
|
5339
5339
|
try {
|
|
5340
5340
|
n.value = !0, fn && fn.abort(), fn = new AbortController();
|
|
5341
|
-
const
|
|
5342
|
-
|
|
5341
|
+
const f = fn.signal, J = Vn.value, ie = await Xn(
|
|
5342
|
+
ko,
|
|
5343
5343
|
500
|
|
5344
5344
|
)({
|
|
5345
|
-
widget:
|
|
5346
|
-
signal:
|
|
5345
|
+
widget: po(),
|
|
5346
|
+
signal: f,
|
|
5347
5347
|
tileId: r.value.id,
|
|
5348
5348
|
// A table asks to be paged; the backend only pages when the result is
|
|
5349
5349
|
// bigger than one block, so small tables come back whole as before.
|
|
@@ -5357,66 +5357,75 @@ const Es = {
|
|
|
5357
5357
|
...(me.value.config.joinDatasources ?? []).flatMap((Pe) => Pe.dimensions ?? [])
|
|
5358
5358
|
];
|
|
5359
5359
|
zn.value.length > 0 && zn.value.forEach((Pe) => {
|
|
5360
|
-
const
|
|
5361
|
-
|
|
5360
|
+
const De = js(ie, Pe, xe), Ke = Array.from(new Set(De));
|
|
5361
|
+
Fa(lr(Pe, x.reportId), Ke);
|
|
5362
5362
|
}), h.value = Kt(), setTimeout(() => b(), 100);
|
|
5363
5363
|
}
|
|
5364
5364
|
n.value = !1;
|
|
5365
|
-
} catch (
|
|
5366
|
-
(
|
|
5365
|
+
} catch (f) {
|
|
5366
|
+
(f == null ? void 0 : f.code) !== "ERR_CANCELED" && (f == null ? void 0 : f.name) !== "CanceledError" && (N.value = null, o.value = !0, bo.open({ message: u("report.messages.errorLoading"), type: "error" }), console.error(f), n.value = !1);
|
|
5367
5367
|
} finally {
|
|
5368
|
-
|
|
5368
|
+
Va();
|
|
5369
5369
|
}
|
|
5370
5370
|
}
|
|
5371
5371
|
}
|
|
5372
|
-
function Va() {
|
|
5373
|
-
if (r.value.widget.type !== "SPACER")
|
|
5374
|
-
return `${Vs(r.value.size.height, r.value.widget.type)}px`;
|
|
5375
|
-
}
|
|
5376
5372
|
function $a() {
|
|
5377
|
-
|
|
5378
|
-
|
|
5373
|
+
if (r.value.widget.type !== "SPACER")
|
|
5374
|
+
return `${zs(r.value.size.height, r.value.widget.type)}px`;
|
|
5379
5375
|
}
|
|
5380
5376
|
function za() {
|
|
5381
|
-
const
|
|
5382
|
-
|
|
5383
|
-
}
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
value
|
|
5377
|
+
const f = P.value - 1;
|
|
5378
|
+
f >= 0 && (I.value = pt.value[f].value);
|
|
5379
|
+
}
|
|
5380
|
+
function Ha() {
|
|
5381
|
+
const f = P.value + 1;
|
|
5382
|
+
f >= 0 && f < pt.value.length && (I.value = pt.value[f].value);
|
|
5383
|
+
}
|
|
5384
|
+
const xo = k(Mt.EXCEL), wo = k(), { setTileSearch: _o } = nr();
|
|
5385
|
+
Le(
|
|
5386
|
+
() => vt.value,
|
|
5387
|
+
(f) => {
|
|
5388
|
+
x.isTileEditor || _o(x.index, f);
|
|
5389
|
+
}
|
|
5390
|
+
), Yn(() => {
|
|
5391
|
+
x.isTileEditor || _o(x.index, "");
|
|
5392
|
+
});
|
|
5393
|
+
const Wa = Object.values(Mt).map((f) => ({
|
|
5394
|
+
label: sr(f),
|
|
5395
|
+
value: f,
|
|
5387
5396
|
onClick: async () => {
|
|
5388
|
-
|
|
5389
|
-
fileType:
|
|
5390
|
-
index:
|
|
5391
|
-
isCombinedLocationLayout:
|
|
5397
|
+
f === Mt.EXCEL || f === Mt.PDFFULLSIZE || f === Mt.PDFRECEIPT ? await qo({
|
|
5398
|
+
fileType: f,
|
|
5399
|
+
index: x.index,
|
|
5400
|
+
isCombinedLocationLayout: Da.value,
|
|
5392
5401
|
timeRange: Nn.value,
|
|
5393
5402
|
dateRange: Fn.value,
|
|
5394
5403
|
locationIds: Rn.value
|
|
5395
|
-
}) :
|
|
5404
|
+
}) : f === Mt.PDF && (xo.value = f, wo.value = x.index, Wt.value = !0);
|
|
5396
5405
|
}
|
|
5397
|
-
})),
|
|
5398
|
-
return (
|
|
5399
|
-
const ie = be("FmTooltip"), xe = be("FmSearch"), Pe = be("FmCheckbox"),
|
|
5406
|
+
})), Oa = x.flat || me.value.type === Z.Spacer ? "flat" : "outlined", Ua = me.value.type === Z.Spacer ? "p-0" : "p-16", Ka = c(() => x.flat ? "w-full" : Mn.value);
|
|
5407
|
+
return (f, J) => {
|
|
5408
|
+
const ie = be("FmTooltip"), xe = be("FmSearch"), Pe = be("FmCheckbox"), De = be("FmButton"), Ke = be("FmSelect"), He = be("FmMenuItem"), bt = be("FmMenu"), mn = be("FmForm"), pn = be("FmCircularProgress"), We = be("FmCard");
|
|
5400
5409
|
return j(), ye(We, {
|
|
5401
5410
|
ref_key: "tileCard",
|
|
5402
5411
|
ref: Y,
|
|
5403
|
-
class: Fe(`${
|
|
5404
|
-
variant: l(
|
|
5412
|
+
class: Fe(`${Ka.value} ${l(Ua)}`),
|
|
5413
|
+
variant: l(Oa),
|
|
5405
5414
|
style: Ve({ height: un.value })
|
|
5406
5415
|
}, {
|
|
5407
5416
|
default: Re(() => [
|
|
5408
|
-
Ce(
|
|
5417
|
+
Ce(Ks, {
|
|
5409
5418
|
modelValue: Wt.value,
|
|
5410
|
-
"onUpdate:modelValue": J[0] || (J[0] = (
|
|
5411
|
-
"file-type":
|
|
5412
|
-
index:
|
|
5419
|
+
"onUpdate:modelValue": J[0] || (J[0] = (Ct) => Wt.value = Ct),
|
|
5420
|
+
"file-type": xo.value,
|
|
5421
|
+
index: wo.value
|
|
5413
5422
|
}, null, 8, ["modelValue", "file-type", "index"]),
|
|
5414
|
-
n.value ? (j(), ye(pn, { key: 1 })) : (j(), pe("div",
|
|
5415
|
-
(j(), ye(
|
|
5423
|
+
n.value ? (j(), ye(pn, { key: 1 })) : (j(), pe("div", Gs, [
|
|
5424
|
+
(j(), ye(Go(V.value), {
|
|
5416
5425
|
key: h.value,
|
|
5417
|
-
modelValue:
|
|
5418
|
-
"onUpdate:modelValue": J[5] || (J[5] = (
|
|
5419
|
-
"tile-index":
|
|
5426
|
+
modelValue: yo.value,
|
|
5427
|
+
"onUpdate:modelValue": J[5] || (J[5] = (Ct) => yo.value = Ct),
|
|
5428
|
+
"tile-index": x.index,
|
|
5420
5429
|
title: o.value ? l(u)("report.messages.errorLoading") : void 0,
|
|
5421
5430
|
"sub-title": o.value ? l(u)("report.messages.errorLoadingHint") : void 0
|
|
5422
5431
|
}, {
|
|
@@ -5426,7 +5435,7 @@ const Es = {
|
|
|
5426
5435
|
class: "flex items-center gap-2"
|
|
5427
5436
|
}, {
|
|
5428
5437
|
default: Re(() => {
|
|
5429
|
-
var
|
|
5438
|
+
var Ct, xt, It;
|
|
5430
5439
|
return [
|
|
5431
5440
|
Ce(ie, {
|
|
5432
5441
|
variant: "plain",
|
|
@@ -5437,8 +5446,8 @@ const Es = {
|
|
|
5437
5446
|
"z-index": 99
|
|
5438
5447
|
}, {
|
|
5439
5448
|
default: Re(() => [
|
|
5440
|
-
S.value !== !1 ? (j(), pe("div",
|
|
5441
|
-
me.value.type === l(Z).Scorecard && me.value.config.titleIcon !== "" ? (j(), ye(
|
|
5449
|
+
S.value !== !1 ? (j(), pe("div", qs, [
|
|
5450
|
+
me.value.type === l(Z).Scorecard && me.value.config.titleIcon !== "" ? (j(), ye(Ps, {
|
|
5442
5451
|
key: 0,
|
|
5443
5452
|
icon: me.value.config.titleIcon || "",
|
|
5444
5453
|
type: me.value.config.titleIconType,
|
|
@@ -5457,65 +5466,65 @@ const Es = {
|
|
|
5457
5466
|
D.value <= 18 ? "fm-typo-en-body-md-400" : "",
|
|
5458
5467
|
me.value.description ? "border-b-2 border-dashed border-gray-300" : ""
|
|
5459
5468
|
]])
|
|
5460
|
-
}, Me(l(
|
|
5469
|
+
}, Me(l(wt)(l(u), l(m), me.value.title, "other")), 7)
|
|
5461
5470
|
])) : we("", !0)
|
|
5462
5471
|
]),
|
|
5463
5472
|
_: 1
|
|
5464
5473
|
}, 8, ["content", "disabled"]),
|
|
5465
5474
|
ne.value ? (j(), ye(xe, {
|
|
5466
5475
|
key: 0,
|
|
5467
|
-
modelValue:
|
|
5468
|
-
"onUpdate:modelValue": J[1] || (J[1] = (nt) =>
|
|
5476
|
+
modelValue: vt.value,
|
|
5477
|
+
"onUpdate:modelValue": J[1] || (J[1] = (nt) => vt.value = nt),
|
|
5469
5478
|
class: "grow"
|
|
5470
|
-
}, null, 8, ["modelValue"])) : (j(), pe("div",
|
|
5471
|
-
|
|
5479
|
+
}, null, 8, ["modelValue"])) : (j(), pe("div", Js)),
|
|
5480
|
+
Ja(Ce(Pe, {
|
|
5472
5481
|
modelValue: X.value,
|
|
5473
5482
|
"onUpdate:modelValue": J[2] || (J[2] = (nt) => X.value = nt),
|
|
5474
5483
|
label: "Label",
|
|
5475
5484
|
value: !1
|
|
5476
5485
|
}, null, 8, ["modelValue"]), [
|
|
5477
|
-
[
|
|
5486
|
+
[Za, (Ct = ut.value) == null ? void 0 : Ct.showLabel]
|
|
5478
5487
|
]),
|
|
5479
|
-
(
|
|
5480
|
-
Ce(
|
|
5488
|
+
(xt = ut.value) != null && xt.showDrillDimension && pt.value.length > 0 ? (j(), pe("div", Zs, [
|
|
5489
|
+
Ce(De, {
|
|
5481
5490
|
icon: "arrow_upward",
|
|
5482
5491
|
variant: "tertiary",
|
|
5483
5492
|
disabled: !W.value,
|
|
5484
|
-
onClick:
|
|
5493
|
+
onClick: za
|
|
5485
5494
|
}, null, 8, ["disabled"]),
|
|
5486
|
-
Ce(
|
|
5495
|
+
Ce(De, {
|
|
5487
5496
|
icon: "arrow_downward",
|
|
5488
5497
|
variant: "tertiary",
|
|
5489
5498
|
disabled: !M.value,
|
|
5490
|
-
onClick:
|
|
5499
|
+
onClick: Ha
|
|
5491
5500
|
}, null, 8, ["disabled"])
|
|
5492
5501
|
])) : we("", !0),
|
|
5493
5502
|
(It = ut.value) != null && It.showRollup && $n.value.length > 0 ? (j(), ye(Ke, {
|
|
5494
5503
|
key: `rollup-${l(v)}`,
|
|
5495
|
-
modelValue:
|
|
5496
|
-
"onUpdate:modelValue": J[3] || (J[3] = (nt) =>
|
|
5504
|
+
modelValue: w.value,
|
|
5505
|
+
"onUpdate:modelValue": J[3] || (J[3] = (nt) => w.value = nt),
|
|
5497
5506
|
class: "w-[150px]",
|
|
5498
5507
|
items: $n.value
|
|
5499
5508
|
}, null, 8, ["modelValue", "items"])) : we("", !0),
|
|
5500
|
-
g.value ? (j(), ye(
|
|
5509
|
+
g.value ? (j(), ye(De, {
|
|
5501
5510
|
key: 4,
|
|
5502
5511
|
icon: "arrow_forward",
|
|
5503
5512
|
variant: "tertiary",
|
|
5504
5513
|
title: l(u)("report.common.openPage"),
|
|
5505
5514
|
onClick: J[4] || (J[4] = (nt) => l(s).openPage(r.value))
|
|
5506
5515
|
}, null, 8, ["title"])) : we("", !0),
|
|
5507
|
-
|
|
5516
|
+
x.hideExport ? we("", !0) : (j(), ye(bt, {
|
|
5508
5517
|
key: 5,
|
|
5509
5518
|
shift: !0
|
|
5510
5519
|
}, {
|
|
5511
5520
|
"menu-button": Re(() => [
|
|
5512
|
-
Ce(
|
|
5521
|
+
Ce(De, {
|
|
5513
5522
|
icon: "more_vert",
|
|
5514
5523
|
variant: "tertiary"
|
|
5515
5524
|
})
|
|
5516
5525
|
]),
|
|
5517
5526
|
default: Re(() => [
|
|
5518
|
-
(j(!0), pe(Ye, null,
|
|
5527
|
+
(j(!0), pe(Ye, null, St(l(Wa), (nt) => (j(), ye(He, {
|
|
5519
5528
|
key: nt.value,
|
|
5520
5529
|
label: nt.label,
|
|
5521
5530
|
onClick: nt.onClick
|
|
@@ -5538,24 +5547,24 @@ const Es = {
|
|
|
5538
5547
|
}
|
|
5539
5548
|
});
|
|
5540
5549
|
export {
|
|
5541
|
-
|
|
5550
|
+
Gn as L,
|
|
5542
5551
|
qe as R,
|
|
5543
5552
|
Be as S,
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5553
|
+
yi as _,
|
|
5554
|
+
Es as a,
|
|
5555
|
+
jn as b,
|
|
5547
5556
|
Ft as c,
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5557
|
+
pi as d,
|
|
5558
|
+
Ds as e,
|
|
5559
|
+
Zo as f,
|
|
5560
|
+
Xo as g,
|
|
5561
|
+
vi as h,
|
|
5562
|
+
hi as i,
|
|
5563
|
+
mi as j,
|
|
5564
|
+
Ps as k,
|
|
5565
|
+
Rs as l,
|
|
5566
|
+
Fs as m,
|
|
5567
|
+
Ns as n,
|
|
5568
|
+
gi as p,
|
|
5569
|
+
zs as t
|
|
5561
5570
|
};
|