@feedmepos/mf-report 5.33.1 → 5.33.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.
Files changed (34) hide show
  1. package/dist/{App-UhJDa13j.js → App-C9V0QnuM.js} +40 -40
  2. package/dist/{DateRangeSelect-B4-MgrD0.js → DateRangeSelect-CK-lr89g.js} +1 -1
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-GGtPfxs3.js → Default.vue_vue_type_script_setup_true_lang-CPUwwTWj.js} +1 -1
  4. package/dist/{DigestListView-BHz0b0o8.js → DigestListView-Bu5nfRiL.js} +3 -3
  5. package/dist/{DigestReaderView-j7SHeieI.js → DigestReaderView-JYQmxp2u.js} +4 -4
  6. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-CSQxSBH6.js → DynamicWidget.vue_vue_type_script_setup_true_lang-4kEtNYTy.js} +6 -6
  7. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CsX4EOdl.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BK9Xq2MT.js} +281 -277
  8. package/dist/{InsightView-BPaOKk4B.js → InsightView-Byc-dqGF.js} +5 -5
  9. package/dist/{Integration-Bm8wMPWD.js → Integration-0XpM2hmH.js} +3 -3
  10. package/dist/{Integrations-CyLLU8W8.js → Integrations-BYVy38vR.js} +2 -2
  11. package/dist/{Layout-B0PqazFQ.js → Layout-Bn2hoFyC.js} +1 -1
  12. package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-h1xIY9i5.js → LocationSelect.vue_vue_type_script_setup_true_lang-D1JJ7P_T.js} +2 -2
  13. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-gm7J8atP.js → MenuTab.vue_vue_type_script_setup_true_lang-CNlBxkYp.js} +5 -5
  14. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-SuWL1ncK.js → NavigationTab.vue_vue_type_script_setup_true_lang-rAjBVVza.js} +5 -5
  15. package/dist/{OverviewView-qKzND69V.js → OverviewView-CDR97jeQ.js} +5 -5
  16. package/dist/{Report-Ct4JeUQk.js → Report-BisFT72V.js} +3 -3
  17. package/dist/{ReportCanvasView-ClGwud-9.js → ReportCanvasView-Cf7gDL8L.js} +5 -5
  18. package/dist/{ReportEditor-B3tGyl-5.js → ReportEditor-aUAEHtrt.js} +724 -728
  19. package/dist/{ReportView-C-cmm-Fd.js → ReportView-BAPF1jzN.js} +6 -6
  20. package/dist/{ReportViewRoute-DnNFoHOw.js → ReportViewRoute-BFEQkhiQ.js} +2 -2
  21. package/dist/{Setting-CASVb8Rm.js → Setting-6FKXAqjA.js} +3 -3
  22. package/dist/{Template-BBUxUTFy.js → Template-BIBtJ5HV.js} +3 -3
  23. package/dist/{TileEditor-De_F-7ds.js → TileEditor-CddUDxJK.js} +6 -6
  24. package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-CdoiMoTQ.js → TilePageStack.vue_vue_type_script_setup_true_lang-BI89fGW4.js} +2 -2
  25. package/dist/{TransitionFade-TTr9MyTn.js → TransitionFade-tFbF4omJ.js} +5 -5
  26. package/dist/{app-hV8LtdmM.js → app-DEdFq5PZ.js} +16 -16
  27. package/dist/app.js +1 -1
  28. package/dist/{currency-NkW-Vt9H.js → currency-BY9-JUL6.js} +1 -1
  29. package/dist/{index-DT7UhcKk.js → index-C1QxNkqf.js} +1 -1
  30. package/dist/{report-Dxk_LHB_.js → report-CtINF6xC.js} +1 -1
  31. package/dist/{useDigestFont-lRnNGFKY.js → useDigestFont-cwSZsL1B.js} +1 -1
  32. package/dist/{useReportCanvasPanel-DEo12E93.js → useReportCanvasPanel-CbLaSlDa.js} +3 -3
  33. package/dist/{useRestaurantPermission-B22jfD3v.js → useRestaurantPermission-DTKnAUFJ.js} +1 -1
  34. package/package.json +1 -1
@@ -1,30 +1,30 @@
1
- import { ref as ye, computed as Se, defineComponent as yt, mergeModels as at, useModel as ft, watch as Ae, resolveComponent as te, createElementBlock as he, openBlock as X, createVNode as M, withCtx as ie, createElementVNode as Y, createCommentVNode as ht, Fragment as Le, renderList as bt, createBlock as De, unref as D, createTextVNode as st, withDirectives as xl, toDisplayString as ve, vShow as $l, renderSlot as jt, normalizeStyle as Gl, normalizeClass as Et, withModifiers as dt } from "vue";
2
- import { c as Qt, _ as Kt, D as El, e as Ll } from "./DateRangeSelect-B4-MgrD0.js";
3
- import { e as gt } from "./index-DT7UhcKk.js";
4
- import { d as E, u as ke, c as je, a as Pe, F as Oe, ah as St, w as $e, h as Pl, j as Ml, z as Bl, i as zl, t as Lt } from "./app-hV8LtdmM.js";
5
- import { b as B, C as j, Q as nt, u as Me, o as Ge, p as Ue, D as be, a as ql, x as Pt, W as Mt, A as Wl, S as Bt } from "./report-Dxk_LHB_.js";
1
+ import { ref as ye, computed as Se, defineComponent as yt, mergeModels as st, useModel as ft, watch as Ae, resolveComponent as te, createElementBlock as he, openBlock as X, createVNode as M, withCtx as ie, createElementVNode as Y, createCommentVNode as ht, Fragment as Le, renderList as bt, createBlock as De, unref as D, createTextVNode as rt, withDirectives as $l, toDisplayString as ve, vShow as Gl, renderSlot as Qt, normalizeStyle as El, normalizeClass as Lt, withModifiers as dt } from "vue";
2
+ import { c as Kt, _ as Jt, D as Ll, e as Pl } from "./DateRangeSelect-CK-lr89g.js";
3
+ import { e as gt } from "./index-C1QxNkqf.js";
4
+ import { d as E, u as ke, c as je, a as Pe, F as Oe, ah as St, w as $e, h as Ml, j as Bl, z as zl, i as ql, t as Pt } from "./app-DEdFq5PZ.js";
5
+ import { b as B, C as j, Q as at, u as Me, o as Ge, p as Ue, D as be, a as Wl, x as Mt, W as Bt, A as Ul, S as zt } from "./report-CtINF6xC.js";
6
6
  import { defineStore as Ft, storeToRefs as oe } from "pinia";
7
7
  import { detectLocale as xe } from "@feedmepos/mf-common";
8
- import { u as Jt } from "./_plugin-vue_export-helper-C6QDExPN.js";
9
- import { _ as Ul } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
10
- var Yt = /* @__PURE__ */ ((l) => (l.generating = "GENERATING", l.completed = "COMPLETED", l.failed = "FAILED", l.canceled = "CANCELLED", l))(Yt || {});
11
- const jl = "/assets/formatChartData.worker-DvK7K5ca.js", mt = /* @__PURE__ */ new Map();
12
- function zt(l) {
8
+ import { u as Yt } from "./_plugin-vue_export-helper-C6QDExPN.js";
9
+ import { _ as jl } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
10
+ var Ht = /* @__PURE__ */ ((l) => (l.generating = "GENERATING", l.completed = "COMPLETED", l.failed = "FAILED", l.canceled = "CANCELLED", l))(Ht || {});
11
+ const Ql = "/assets/formatChartData.worker-DvK7K5ca.js", mt = /* @__PURE__ */ new Map();
12
+ function qt(l) {
13
13
  return new Worker(l, { type: "module" });
14
14
  }
15
- async function Ql(l) {
15
+ async function Kl(l) {
16
16
  if (mt.has(l))
17
- return zt(mt.get(l));
17
+ return qt(mt.get(l));
18
18
  let n = l;
19
19
  if (location.hostname !== new URL(import.meta.url).hostname) {
20
20
  const d = new URL(l.replace(/^\//, ""), import.meta.url).href, p = await fetch(d).then((F) => F.text()), f = new Blob([p], { type: "application/javascript" });
21
21
  n = URL.createObjectURL(f);
22
22
  }
23
- const r = zt(n);
23
+ const r = qt(n);
24
24
  return mt.set(l, n), r;
25
25
  }
26
- async function Kl(l, n) {
27
- const s = await Ql(l);
26
+ async function Jl(l, n) {
27
+ const s = await Kl(l);
28
28
  return s.postMessage(n), await new Promise((r) => {
29
29
  s.onmessage = async (d) => {
30
30
  const p = d.data;
@@ -32,7 +32,7 @@ async function Kl(l, n) {
32
32
  };
33
33
  });
34
34
  }
35
- const Jl = "mf-reportreport-sort-store", Ht = Ft(Jl, () => {
35
+ const Yl = "mf-reportreport-sort-store", Zt = Ft(Yl, () => {
36
36
  const l = ye([]);
37
37
  function n(d, p) {
38
38
  if (d == null) return;
@@ -47,7 +47,7 @@ const Jl = "mf-reportreport-sort-store", Ht = Ft(Jl, () => {
47
47
  typeof d == "number" ? l.value = l.value.filter((p) => p.tileIndex !== d) : l.value = [];
48
48
  }
49
49
  return { tileSort: l, setTileSorts: n, getTileSorts: s, clearTileSorts: r };
50
- }), Yl = "mf-reportreport-search-store", Hl = Ft(Yl, () => {
50
+ }), Hl = "mf-reportreport-search-store", Zl = Ft(Hl, () => {
51
51
  const l = ye({});
52
52
  function n(r, d) {
53
53
  r != null && (d ? l.value[r] = d : delete l.value[r]);
@@ -57,11 +57,11 @@ const Jl = "mf-reportreport-sort-store", Ht = Ft(Jl, () => {
57
57
  return l.value[r] || void 0;
58
58
  }
59
59
  return { tileSearch: l, setTileSearch: n, getTileSearch: s };
60
- }), Zt = "__EMPTY__";
60
+ }), Xt = "__EMPTY__";
61
61
  function We(l = []) {
62
62
  return Array.from(new Set(l));
63
63
  }
64
- function Zl(l) {
64
+ function Xl(l) {
65
65
  return [
66
66
  l.schemaName,
67
67
  l.name,
@@ -70,14 +70,14 @@ function Zl(l) {
70
70
  l.operator
71
71
  ].join(":");
72
72
  }
73
- function Xl(l) {
73
+ function en(l) {
74
74
  const n = (s, r) => E().set("hour", s).set("minute", r).set("second", 0).set("millisecond", 0).toISOString();
75
75
  return !l.startTime || !l.endTime ? [] : [
76
76
  n(l.startTime.hour, l.startTime.minute),
77
77
  n(l.endTime.hour, l.endTime.minute)
78
78
  ];
79
79
  }
80
- function en(l, n) {
80
+ function tn(l, n) {
81
81
  return {
82
82
  schemaName: l.schemaName,
83
83
  name: l.name,
@@ -88,8 +88,8 @@ function en(l, n) {
88
88
  isGlobalFilter: !l.beforeAggregation
89
89
  };
90
90
  }
91
- function tn(l, n) {
92
- const s = Xl(n);
91
+ function ln(l, n) {
92
+ const s = en(n);
93
93
  return s.length !== 2 ? null : {
94
94
  schemaName: l.schemaName,
95
95
  name: l.name,
@@ -100,7 +100,7 @@ function tn(l, n) {
100
100
  isGlobalFilter: !l.beforeAggregation
101
101
  };
102
102
  }
103
- function ln(l) {
103
+ function nn(l) {
104
104
  var d, p, f, F;
105
105
  const n = (l.filters ?? []).map((v) => ({
106
106
  ...v,
@@ -109,7 +109,7 @@ function ln(l) {
109
109
  if (s.length === 1 && String(s[0]) === "EMPTY_GLOBAL_FILTER_VALUE") {
110
110
  const v = Object.values(B).includes(
111
111
  String(l.option ?? "")
112
- ), u = l.option === B.TimeOfDay ? ["1000-01-01T23:59:59.999Z", "1000-01-01T00:00:00.000Z"] : [v ? "-1" : Zt];
112
+ ), u = l.option === B.TimeOfDay ? ["1000-01-01T23:59:59.999Z", "1000-01-01T00:00:00.000Z"] : [v ? "-1" : Xt];
113
113
  return [
114
114
  ...n,
115
115
  {
@@ -130,7 +130,7 @@ function ln(l) {
130
130
  ...((p = l.customTimeRanges) == null ? void 0 : p.filter((u) => {
131
131
  const L = String(u.name ?? "");
132
132
  return v.has(L);
133
- }).map((u) => tn(l, u)).filter((u) => !!u)) ?? []
133
+ }).map((u) => ln(l, u)).filter((u) => !!u)) ?? []
134
134
  ];
135
135
  }
136
136
  if ((((f = l.customOptions) == null ? void 0 : f.length) ?? 0) > 0) {
@@ -140,7 +140,7 @@ function ln(l) {
140
140
  ...((F = l.customOptions) == null ? void 0 : F.filter((u) => {
141
141
  const L = String(u.label ?? "");
142
142
  return v.has(L);
143
- }).map((u) => en(l, u)).filter((u) => Array.isArray(u.values) && u.values.length > 0)) ?? []
143
+ }).map((u) => tn(l, u)).filter((u) => Array.isArray(u.values) && u.values.length > 0)) ?? []
144
144
  ];
145
145
  }
146
146
  return s.length === 0 ? n : [
@@ -156,7 +156,7 @@ function ln(l) {
156
156
  }
157
157
  ];
158
158
  }
159
- function qt({
159
+ function Wt({
160
160
  originalFilters: l,
161
161
  globalFilters: n,
162
162
  schemaNames: s
@@ -166,7 +166,7 @@ function qt({
166
166
  const m = Object.values(B).includes(
167
167
  String(c.option ?? "")
168
168
  );
169
- return c.option === B.TimeOfDay ? ["1000-01-01T23:59:59.999Z", "1000-01-01T00:00:00.000Z"] : [m ? "-1" : Zt];
169
+ return c.option === B.TimeOfDay ? ["1000-01-01T23:59:59.999Z", "1000-01-01T00:00:00.000Z"] : [m ? "-1" : Xt];
170
170
  }
171
171
  function u(c, m) {
172
172
  const b = typeof c == "number" ? c : Number(c), y = typeof m == "number" ? m : Number(m);
@@ -225,7 +225,7 @@ function qt({
225
225
  d.push(m);
226
226
  return;
227
227
  }
228
- const y = Zl(m), C = r.get(y);
228
+ const y = Xl(m), C = r.get(y);
229
229
  if (!C) {
230
230
  r.set(y, m);
231
231
  return;
@@ -244,12 +244,12 @@ function Qe(l, n, s) {
244
244
  const r = JSON.parse(JSON.stringify(l)), d = n.filter((f) => {
245
245
  var F;
246
246
  return (F = f.tileIds) == null ? void 0 : F.includes(s);
247
- }).flatMap((f) => ln(f));
247
+ }).flatMap((f) => nn(f));
248
248
  return {
249
249
  ...r,
250
250
  config: {
251
251
  ...r.config,
252
- filters: qt({
252
+ filters: Wt({
253
253
  originalFilters: r.config.filters ?? [],
254
254
  globalFilters: d ?? [],
255
255
  schemaNames: r.config.schemaNames
@@ -258,7 +258,7 @@ function Qe(l, n, s) {
258
258
  var v;
259
259
  return {
260
260
  ...f,
261
- filters: qt({
261
+ filters: Wt({
262
262
  originalFilters: f.filters ?? [],
263
263
  globalFilters: d ?? [],
264
264
  schemaNames: (v = r.config.joinDatasources) == null ? void 0 : v[F].schemaNames
@@ -268,10 +268,10 @@ function Qe(l, n, s) {
268
268
  }
269
269
  };
270
270
  }
271
- function nn(l) {
272
- return (l == null ? void 0 : l.queryDatasource) === nt.BigQuery ? nt.BigQuery : nt.Postgres;
271
+ function an(l) {
272
+ return (l == null ? void 0 : l.queryDatasource) === at.BigQuery ? at.BigQuery : at.Postgres;
273
273
  }
274
- const an = [
274
+ const sn = [
275
275
  "schemaNames",
276
276
  "schemas",
277
277
  "dimensions",
@@ -299,9 +299,9 @@ const an = [
299
299
  "isBlend",
300
300
  "periodType"
301
301
  ];
302
- function Xt(l) {
302
+ function el(l) {
303
303
  const n = { ...l.config };
304
- for (const s of an)
304
+ for (const s of sn)
305
305
  delete n[s];
306
306
  return n;
307
307
  }
@@ -315,12 +315,12 @@ function Ke({
315
315
  compareDateRange: r,
316
316
  timezone: d
317
317
  }) {
318
- const { canReadReportDateRange: p, canReadPageDateRange: f } = Ml(), F = (u) => n ? f(n, u, d) : l ? p(l, u, d) : !0, v = !!(r != null && r.startDate && (r != null && r.endDate));
318
+ const { canReadReportDateRange: p, canReadPageDateRange: f } = Bl(), F = (u) => n ? f(n, u, d) : l ? p(l, u, d) : !0, v = !!(r != null && r.startDate && (r != null && r.endDate));
319
319
  return F(s) && (!v || F(r));
320
320
  }
321
321
  function Je(l) {
322
322
  if (l === "overview")
323
- return Pl.report_accessOverview;
323
+ return Ml.report_accessOverview;
324
324
  }
325
325
  function wt({
326
326
  selectedNavigationTab: l,
@@ -331,7 +331,7 @@ function wt({
331
331
  }) {
332
332
  return l === "overview" && s ? s : n ? r ?? d : d;
333
333
  }
334
- async function el(l, n) {
334
+ async function tl(l, n) {
335
335
  for (let s = 0; s < l.length; s++)
336
336
  try {
337
337
  return await l[s]();
@@ -341,7 +341,7 @@ async function el(l, n) {
341
341
  }
342
342
  throw new Error("No callback");
343
343
  }
344
- const sn = async ({
344
+ const rn = async ({
345
345
  widget: l,
346
346
  signal: n,
347
347
  tileId: s,
@@ -402,7 +402,7 @@ const sn = async ({
402
402
  timezone: le,
403
403
  skipStringSpaceGrouping: !!(b != null && b.batch) || vt(b),
404
404
  reportId: b == null ? void 0 : b.id,
405
- queryDatasource: nn(b)
405
+ queryDatasource: an(b)
406
406
  },
407
407
  requestConfig: {
408
408
  timeout: 1e3 * 60 * 5,
@@ -411,8 +411,8 @@ const sn = async ({
411
411
  // A query is a read: a 502/503/504 from the gateway is safe to re-send.
412
412
  retry: 2
413
413
  };
414
- return await el([() => $e.fetch(ce)], 2e3);
415
- }, Wn = async ({
414
+ return await tl([() => $e.fetch(ce)], 2e3);
415
+ }, Un = async ({
416
416
  widget: l,
417
417
  signal: n,
418
418
  tileId: s,
@@ -455,7 +455,7 @@ const sn = async ({
455
455
  timezone: C,
456
456
  skipStringSpaceGrouping: !1,
457
457
  reportId: _ == null ? void 0 : _.id,
458
- queryDatasource: nt.BigQuery
458
+ queryDatasource: at.BigQuery
459
459
  },
460
460
  requestConfig: {
461
461
  timeout: 1e3 * 60,
@@ -463,7 +463,7 @@ const sn = async ({
463
463
  }
464
464
  };
465
465
  return $e.fetch(Z);
466
- }, rn = async ({
466
+ }, on = async ({
467
467
  widget: l,
468
468
  signal: n,
469
469
  tileId: s,
@@ -484,7 +484,7 @@ const sn = async ({
484
484
  currentReport: O
485
485
  }), C = Je(m);
486
486
  if (vt(y))
487
- return sn({
487
+ return rn({
488
488
  widget: l,
489
489
  signal: n,
490
490
  tileId: s,
@@ -548,14 +548,14 @@ const sn = async ({
548
548
  }
549
549
  }, re = [() => $e.fetch(ue)];
550
550
  R.length < 50 && re.push(() => $e.fetch(ue)), re.push(() => $e.fetch(ue));
551
- const Fe = await el(re, 2e3);
552
- return (await Kl(jl, {
551
+ const Fe = await tl(re, 2e3);
552
+ return (await Jl(Ql, {
553
553
  responses: Fe,
554
554
  widget: JSON.parse(JSON.stringify(l)),
555
555
  country: _.value,
556
556
  timezone: Z
557
557
  })).data;
558
- }, Un = async ({
558
+ }, jn = async ({
559
559
  fileType: l,
560
560
  index: n,
561
561
  orientationTypes: s,
@@ -565,7 +565,7 @@ const sn = async ({
565
565
  dateRange: f,
566
566
  globalFilters: F
567
567
  }) => {
568
- const { scopePath: v, requestBusinessIds: u } = oe(ke()), L = Pe(), { compareDateRange: Q } = oe(L), { restaurants: _, warehouses: O, timezone: S } = L, { globalFilters: c } = Ge(), { currentReport: m, overviewReport: b } = Me(), { selectedNavigationTab: y } = je(), { getTileSorts: C } = Ht(), { getTileSearch: R } = Hl();
568
+ const { scopePath: v, requestBusinessIds: u } = oe(ke()), L = Pe(), { compareDateRange: Q } = oe(L), { restaurants: _, warehouses: O, timezone: S } = L, { globalFilters: c } = Ge(), { currentReport: m, overviewReport: b } = Me(), { selectedNavigationTab: y } = je(), { getTileSorts: C } = Zt(), { getTileSearch: R } = Zl();
569
569
  let H = m == null ? void 0 : m.id, z = Ue(m == null ? void 0 : m.tiles);
570
570
  y === "overview" && b && (H = b == null ? void 0 : b.id, z = Ue(b == null ? void 0 : b.tiles));
571
571
  const q = y === "overview" && b ? b : m, ee = Je(y);
@@ -606,7 +606,7 @@ const sn = async ({
606
606
  requests: ce ? ue.map((ne) => ({ ...ne, search: ce })) : ue,
607
607
  index: n || k,
608
608
  drillDimension: null,
609
- ...Xt(x),
609
+ ...el(x),
610
610
  globalSorts: C(n ?? k)
611
611
  };
612
612
  })
@@ -622,7 +622,7 @@ const sn = async ({
622
622
  }
623
623
  }, { headers: W, data: ae } = await St.rawFetch(N), U = W["content-disposition"].split("filename=")[1].replaceAll('"', ""), K = window.URL.createObjectURL(new Blob([new Uint8Array(ae).buffer])), se = document.createElement("a");
624
624
  se.href = K, se.setAttribute("download", decodeURIComponent(U)), document.body.appendChild(se), se.click(), se.remove();
625
- }, jn = async ({
625
+ }, Qn = async ({
626
626
  emails: l,
627
627
  types: n,
628
628
  dateRange: s,
@@ -633,7 +633,7 @@ const sn = async ({
633
633
  attachFiles: F,
634
634
  globalFilters: v
635
635
  }) => {
636
- const { businessId: u, scopePath: L, requestBusinessIds: Q } = oe(ke()), { currentReport: _, overviewReport: O } = Me(), { selectedNavigationTab: S } = je(), c = Pe(), { compareDateRange: m } = oe(c), { restaurants: b, warehouses: y, timezone: C } = c, { globalFilters: R } = Ge(), { getTileSorts: H } = Ht();
636
+ const { businessId: u, scopePath: L, requestBusinessIds: Q } = oe(ke()), { currentReport: _, overviewReport: O } = Me(), { selectedNavigationTab: S } = je(), c = Pe(), { compareDateRange: m } = oe(c), { restaurants: b, warehouses: y, timezone: C } = c, { globalFilters: R } = Ge(), { getTileSorts: H } = Zt();
637
637
  if (l.length === 0) {
638
638
  console.error("No email addresses provided.");
639
639
  return;
@@ -651,7 +651,7 @@ const sn = async ({
651
651
  return;
652
652
  const N = v ?? R, W = ee.map((U) => Qe(U.widget, N, U.id)), ae = {
653
653
  businessId: u.value || void 0,
654
- status: Yt.generating,
654
+ status: Ht.generating,
655
655
  dateRange: {
656
656
  start: s.startDate,
657
657
  end: s.endDate
@@ -680,7 +680,7 @@ const sn = async ({
680
680
  }),
681
681
  index: K,
682
682
  drillDimension: null,
683
- ...Xt(U),
683
+ ...el(U),
684
684
  globalSorts: H(K)
685
685
  };
686
686
  }),
@@ -696,7 +696,7 @@ const sn = async ({
696
696
  data: ae,
697
697
  requestConfig: { timeout: 1e3 * 60 * 3 }
698
698
  });
699
- }, Qn = async (l) => {
699
+ }, Kn = async (l) => {
700
700
  const { scopePath: n } = oe(ke());
701
701
  await St.fetch({
702
702
  fetchType: Oe.Post,
@@ -704,20 +704,20 @@ const sn = async ({
704
704
  data: { jobId: l },
705
705
  requestConfig: { timeout: 1e3 * 60 * 3 }
706
706
  });
707
- }, Kn = async () => {
707
+ }, Jn = async () => {
708
708
  const { scopePath: l } = oe(ke());
709
709
  return await $e.fetch({
710
710
  fetchType: Oe.Get,
711
711
  url: `/${l.value}/reports/email-recipients`
712
712
  });
713
- }, Jn = async (l) => {
713
+ }, Yn = async (l) => {
714
714
  const { scopePath: n } = oe(ke());
715
715
  await $e.fetch({
716
716
  fetchType: Oe.Post,
717
717
  url: `/${n.value}/reports/email-recipient/delete`,
718
718
  data: { email: l }
719
719
  });
720
- }, on = "mf-reportwidget-result-store", un = Ft(on, () => {
720
+ }, un = "mf-reportwidget-result-store", cn = Ft(un, () => {
721
721
  const l = ye({}), n = ye(0), s = Se(() => n.value === 0);
722
722
  function r() {
723
723
  n.value += 1;
@@ -750,16 +750,16 @@ const sn = async ({
750
750
  getWidgetResult: f,
751
751
  clearAllWidgetResults: F
752
752
  };
753
- }), Wt = (l, n = "en") => E().set("hour", l.hour).set("minute", l.minute).locale(n).format("h:mm A"), cn = (l, n) => {
753
+ }), Ut = (l, n = "en") => E().set("hour", l.hour).set("minute", l.minute).locale(n).format("h:mm A"), dn = (l, n) => {
754
754
  const s = E().set("hour", l.hour).set("minute", l.minute);
755
755
  return E().set("hour", n.hour).set("minute", n.minute) < s ? "+1" : "";
756
756
  };
757
- function Ut(l, n) {
757
+ function jt(l, n) {
758
758
  return l.isSystem ? n("reportV5.reportHour.fullDay") : l.name;
759
759
  }
760
- const dn = { class: "px-24 py-16 rounded-lg shadow-light-300" }, mn = { class: "text-fm-color-typo-primary" }, pn = { class: "text-fm-color-typo-secondary" }, fn = { class: "fm-typo-en-body-lg-600 mb-8" }, hn = { class: "flex items-center justify-center w-full" }, bn = { class: "fm-typo-en-body-lg-600 mb-8" }, vn = { class: "flex items-center justify-center" }, yn = { class: "flex flex-row mb-4 px-4 gap-2" }, gn = /* @__PURE__ */ yt({
760
+ const mn = { class: "px-24 py-16 rounded-lg shadow-light-300" }, pn = { class: "text-fm-color-typo-primary" }, fn = { class: "text-fm-color-typo-secondary" }, hn = { class: "fm-typo-en-body-lg-600 mb-8" }, bn = { class: "flex items-center justify-center w-full" }, vn = { class: "fm-typo-en-body-lg-600 mb-8" }, yn = { class: "flex items-center justify-center" }, gn = { class: "flex flex-row mb-4 px-4 gap-2" }, Sn = /* @__PURE__ */ yt({
761
761
  __name: "TimeRangeSelect",
762
- props: /* @__PURE__ */ at({
762
+ props: /* @__PURE__ */ st({
763
763
  defaultDateRange: {
764
764
  type: Array,
765
765
  default: () => [
@@ -797,9 +797,9 @@ const dn = { class: "px-24 py-16 rounded-lg shadow-light-300" }, mn = { class: "
797
797
  },
798
798
  selectTimeDefaultModifiers: {}
799
799
  }),
800
- emits: /* @__PURE__ */ at(["update", "chip-closed"], ["update:timeRange", "update:selectTimeDefault"]),
800
+ emits: /* @__PURE__ */ st(["update", "chip-closed"], ["update:timeRange", "update:selectTimeDefault"]),
801
801
  setup(l, { emit: n }) {
802
- const { t: s, locale: r } = Jt(), d = ft(l, "timeRange"), p = n, f = ft(l, "selectTimeDefault");
802
+ const { t: s, locale: r } = Yt(), d = ft(l, "timeRange"), p = n, f = ft(l, "selectTimeDefault");
803
803
  function F(S) {
804
804
  S && (d.value = S, p("update", d.value)), Q.value = !1;
805
805
  }
@@ -834,7 +834,7 @@ const dn = { class: "px-24 py-16 rounded-lg shadow-light-300" }, mn = { class: "
834
834
  function _(S) {
835
835
  p("chip-closed", S);
836
836
  }
837
- const O = Se(() => l.label ? l.label : Qt({
837
+ const O = Se(() => l.label ? l.label : Kt({
838
838
  startTime: d.value.start,
839
839
  endTime: d.value.end,
840
840
  locale: r.value
@@ -848,7 +848,7 @@ const dn = { class: "px-24 py-16 rounded-lg shadow-light-300" }, mn = { class: "
848
848
  onPopoverChanged: c[6] || (c[6] = (q) => Q.value = q)
849
849
  }, {
850
850
  "popover-button": ie(() => [
851
- M(Kt, {
851
+ M(Jt, {
852
852
  "left-icon": l.label ? "filter_alt" : "schedule",
853
853
  label: O.value,
854
854
  removable: l.removable,
@@ -858,7 +858,7 @@ const dn = { class: "px-24 py-16 rounded-lg shadow-light-300" }, mn = { class: "
858
858
  default: ie(() => {
859
859
  var q, ee, le, Z;
860
860
  return [
861
- Y("div", dn, [
861
+ Y("div", mn, [
862
862
  M(C, {
863
863
  modelValue: f.value,
864
864
  "onUpdate:modelValue": c[1] || (c[1] = (N) => f.value = N)
@@ -867,21 +867,21 @@ const dn = { class: "px-24 py-16 rounded-lg shadow-light-300" }, mn = { class: "
867
867
  (X(!0), he(Le, null, bt(l.defaultDateRange, (N, W) => (X(), De(b, {
868
868
  key: `range_${W}`,
869
869
  value: W + 1,
870
- label: D(Ut)(N, D(s)),
870
+ label: D(jt)(N, D(s)),
871
871
  onClick: (ae) => L(N.startTime, N.endTime)
872
872
  }, {
873
873
  label: ie(() => [
874
- Y("p", mn, [
875
- st(ve(D(Ut)(N, D(s))) + " ", 1),
876
- xl(M(m, {
874
+ Y("p", pn, [
875
+ rt(ve(D(jt)(N, D(s))) + " ", 1),
876
+ $l(M(m, {
877
877
  label: D(s)("report.common.default"),
878
878
  class: "bg-fm-color-system-info-100 border-fm-color-typo-info text-fm-color-typo-info",
879
879
  compact: ""
880
880
  }, null, 8, ["label"]), [
881
- [$l, N.isDefault]
881
+ [Gl, N.isDefault]
882
882
  ])
883
883
  ]),
884
- Y("p", pn, ve(D(Wt)(N.startTime, D(xe)())) + " - " + ve(D(Wt)(N.endTime, D(xe)())) + " " + ve(D(cn)(N.startTime, N.endTime)), 1)
884
+ Y("p", fn, ve(D(Ut)(N.startTime, D(xe)())) + " - " + ve(D(Ut)(N.endTime, D(xe)())) + " " + ve(D(dn)(N.startTime, N.endTime)), 1)
885
885
  ]),
886
886
  _: 2
887
887
  }, 1032, ["value", "label", "onClick"]))), 128)),
@@ -895,8 +895,8 @@ const dn = { class: "px-24 py-16 rounded-lg shadow-light-300" }, mn = { class: "
895
895
  _: 1
896
896
  }, 8, ["modelValue"]),
897
897
  f.value === l.defaultDateRange.length + 1 ? (X(), he(Le, { key: 0 }, [
898
- Y("p", fn, ve(D(s)("report.date.startingTime")), 1),
899
- Y("div", hn, [
898
+ Y("p", hn, ve(D(s)("report.date.startingTime")), 1),
899
+ Y("div", bn, [
900
900
  M(R, {
901
901
  "model-value": v(`${(q = u.value.start) == null ? void 0 : q.hour}:${(ee = u.value.start) == null ? void 0 : ee.minute}`),
902
902
  "onUpdate:modelValue": c[2] || (c[2] = (N) => {
@@ -909,8 +909,8 @@ const dn = { class: "px-24 py-16 rounded-lg shadow-light-300" }, mn = { class: "
909
909
  })
910
910
  }, null, 8, ["model-value"])
911
911
  ]),
912
- Y("p", bn, ve(D(s)("report.date.endingTime")), 1),
913
- Y("div", vn, [
912
+ Y("p", vn, ve(D(s)("report.date.endingTime")), 1),
913
+ Y("div", yn, [
914
914
  M(R, {
915
915
  "model-value": v(`${(le = u.value.end) == null ? void 0 : le.hour}:${(Z = u.value.end) == null ? void 0 : Z.minute}`),
916
916
  "onUpdate:modelValue": c[3] || (c[3] = (N) => {
@@ -924,7 +924,7 @@ const dn = { class: "px-24 py-16 rounded-lg shadow-light-300" }, mn = { class: "
924
924
  }, null, 8, ["model-value"])
925
925
  ])
926
926
  ], 64)) : ht("", !0),
927
- Y("div", yn, [
927
+ Y("div", gn, [
928
928
  c[7] || (c[7] = Y("div", { class: "grow" }, null, -1)),
929
929
  M(H, {
930
930
  label: D(s)("report.common.cancel"),
@@ -944,9 +944,9 @@ const dn = { class: "px-24 py-16 rounded-lg shadow-light-300" }, mn = { class: "
944
944
  ]);
945
945
  };
946
946
  }
947
- }), Yn = /* @__PURE__ */ yt({
947
+ }), Hn = /* @__PURE__ */ yt({
948
948
  __name: "BaseDialog",
949
- props: /* @__PURE__ */ at({
949
+ props: /* @__PURE__ */ st({
950
950
  title: {
951
951
  type: String,
952
952
  default: "Title"
@@ -963,7 +963,7 @@ const dn = { class: "px-24 py-16 rounded-lg shadow-light-300" }, mn = { class: "
963
963
  modelValue: { type: Boolean, required: !0 },
964
964
  modelModifiers: {}
965
965
  }),
966
- emits: /* @__PURE__ */ at(["confirm"], ["update:modelValue"]),
966
+ emits: /* @__PURE__ */ st(["confirm"], ["update:modelValue"]),
967
967
  setup(l, { emit: n }) {
968
968
  const s = ft(l, "modelValue"), r = l, d = n;
969
969
  return Ae(s, () => {
@@ -976,10 +976,10 @@ const dn = { class: "px-24 py-16 rounded-lg shadow-light-300" }, mn = { class: "
976
976
  overlay: ""
977
977
  }, {
978
978
  "dialog-header": ie(() => [
979
- st(ve(r.title), 1)
979
+ rt(ve(r.title), 1)
980
980
  ]),
981
981
  default: ie(() => [
982
- jt(p.$slots, "content")
982
+ Qt(p.$slots, "content")
983
983
  ]),
984
984
  "dialog-footer": ie(() => [
985
985
  f[3] || (f[3] = Y("div", { class: "grow" }, null, -1)),
@@ -1000,7 +1000,7 @@ const dn = { class: "px-24 py-16 rounded-lg shadow-light-300" }, mn = { class: "
1000
1000
  }
1001
1001
  });
1002
1002
  var Ie = /* @__PURE__ */ ((l) => (l.Select = "Select", l.TextField = "TextField", l.Timestamp = "Timestamp", l))(Ie || {});
1003
- function Sn(l) {
1003
+ function Fn(l) {
1004
1004
  let n = !1, s = 1;
1005
1005
  switch (l) {
1006
1006
  case j.Equal:
@@ -1024,13 +1024,13 @@ function Sn(l) {
1024
1024
  count: s
1025
1025
  };
1026
1026
  }
1027
- function Hn({
1027
+ function Zn({
1028
1028
  operator: l,
1029
1029
  dimensionOption: n,
1030
1030
  dataType: s,
1031
1031
  t: r
1032
1032
  }) {
1033
- const { fixed: d, count: p } = Sn(l);
1033
+ const { fixed: d, count: p } = Fn(l);
1034
1034
  switch (s) {
1035
1035
  case be.String:
1036
1036
  return {
@@ -1060,7 +1060,7 @@ function Hn({
1060
1060
  default: !0
1061
1061
  };
1062
1062
  case be.Timestamp:
1063
- return tl({
1063
+ return ll({
1064
1064
  dimensionOption: n,
1065
1065
  fixed: d,
1066
1066
  count: p,
@@ -1075,7 +1075,7 @@ function Hn({
1075
1075
  default: ""
1076
1076
  };
1077
1077
  }
1078
- function Zn(l) {
1078
+ function Xn(l) {
1079
1079
  switch (l) {
1080
1080
  case B.HourOfDay:
1081
1081
  return 0;
@@ -1085,7 +1085,7 @@ function Zn(l) {
1085
1085
  return;
1086
1086
  }
1087
1087
  }
1088
- function Xn(l) {
1088
+ function ea(l) {
1089
1089
  switch (l) {
1090
1090
  case B.HourOfDay:
1091
1091
  return 23;
@@ -1095,7 +1095,7 @@ function Xn(l) {
1095
1095
  return;
1096
1096
  }
1097
1097
  }
1098
- function tl({
1098
+ function ll({
1099
1099
  dimensionOption: l,
1100
1100
  fixed: n,
1101
1101
  count: s,
@@ -1174,7 +1174,7 @@ function pt({
1174
1174
  dimensionOption: l,
1175
1175
  t: n
1176
1176
  }) {
1177
- const s = tl({
1177
+ const s = ll({
1178
1178
  dimensionOption: l,
1179
1179
  fixed: !1,
1180
1180
  count: 1,
@@ -1182,10 +1182,10 @@ function pt({
1182
1182
  });
1183
1183
  return s.type !== Ie.Select ? [] : [{ label: n("report.input.unknown"), value: "" }, ...s.options];
1184
1184
  }
1185
- const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-flex max-w-[460px]" }, Dn = {
1185
+ const wn = { class: "flex flex-row flex-wrap gap-2" }, Dn = { class: "inline-flex max-w-[460px]" }, Tn = {
1186
1186
  key: 0,
1187
1187
  class: "flex justify-center my-2"
1188
- }, Tn = { class: "px-2 pb-8" }, Vn = { class: "flex-1 overflow-y-auto overflow-x-hidden" }, Nn = { class: "px-2 pb-8" }, Cn = { class: "flex items-start w-full" }, kn = ["onClick"], On = { class: "fm-typo-en-body-md-400" }, _n = { key: 0 }, Rn = { class: "px-12 py-3" }, An = { class: "flex items-center justify-between" }, In = { class: "text-xs max-w-[200px]" }, xn = { class: "px-4 py-3 flex flex-row justify-end gap-2 bg-white" }, Ce = "__EMPTY__", we = "__NO_SELECTION__", ea = /* @__PURE__ */ yt({
1188
+ }, Vn = { class: "px-2 pb-8" }, Nn = { class: "flex-1 overflow-y-auto overflow-x-hidden" }, Cn = { class: "px-2 pb-8" }, kn = { class: "flex items-start w-full" }, On = ["onClick"], _n = { class: "fm-typo-en-body-md-400" }, Rn = { key: 0 }, An = { class: "px-12 py-3" }, In = { class: "flex items-center justify-between" }, xn = { class: "text-xs max-w-[200px]" }, $n = { class: "px-4 py-3 flex flex-row justify-end gap-2 bg-white" }, Ce = "__EMPTY__", we = "__NO_SELECTION__", ta = /* @__PURE__ */ yt({
1189
1189
  __name: "GlobalFilterSelect",
1190
1190
  props: {
1191
1191
  globalFilterId: {},
@@ -1197,8 +1197,8 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1197
1197
  isDialogGlobalFilter: { type: Boolean }
1198
1198
  },
1199
1199
  setup(l) {
1200
- const n = l, { t: s, locale: r } = Jt(), { currentReport: d, editingTile: p } = oe(Me());
1201
- let { timeRange: f, dateRange: F, selectedLocationIds: v, timezone: u } = oe(Pe()), { globalFilters: L } = oe(Ge()), { schemas: Q } = oe(ql()), {
1200
+ const n = l, { t: s, locale: r } = Yt(), { currentReport: d, editingTile: p } = oe(Me());
1201
+ let { timeRange: f, dateRange: F, selectedLocationIds: v, timezone: u } = oe(Pe()), { globalFilters: L } = oe(Ge()), { schemas: Q } = oe(Wl()), {
1202
1202
  showMore: _,
1203
1203
  getGlobalFilter: O,
1204
1204
  setGlobalFilter: S,
@@ -1210,7 +1210,7 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1210
1210
  } = Ge();
1211
1211
  const R = Se(() => s("report.input.empty")), H = ["NULL", "", " "];
1212
1212
  let z;
1213
- const q = un(), { getWidgetResult: ee } = q, { widgetResults: le, isAllWidgetResultLoaded: Z } = oe(q), N = ye(!1), W = ye(!1), ae = ye(""), U = ye({}), K = Se(() => {
1213
+ const q = cn(), { getWidgetResult: ee } = q, { widgetResults: le, isAllWidgetResultLoaded: Z } = oe(q), N = ye(!1), W = ye(!1), ae = ye(""), U = ye({}), K = Se(() => {
1214
1214
  var e;
1215
1215
  return n.globalFilterId ?? ((e = d.value) == null ? void 0 : e.id) ?? "";
1216
1216
  }), se = Se(() => n.report ?? d.value), x = ye([]);
@@ -1237,7 +1237,7 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1237
1237
  return ue(t, F.value) && re(o, f.value) && Fe(a, v.value);
1238
1238
  });
1239
1239
  function ge(e) {
1240
- return e ? [...e.tileIds ?? []] : Array.from(new Set(Xe.value.flatMap((t) => t.tileIds ?? [])));
1240
+ return e ? [...e.tileIds ?? []] : Array.from(new Set(et.value.flatMap((t) => t.tileIds ?? [])));
1241
1241
  }
1242
1242
  function ne(e) {
1243
1243
  n.isDialogGlobalFilter || C(ge(e));
@@ -1263,23 +1263,23 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1263
1263
  function Be(e) {
1264
1264
  e.selectedValues = [], e.globalFilter.values = [], S(e.globalFilter, k(e.id), { selectedValues: [] });
1265
1265
  }
1266
- function rt(e) {
1266
+ function ot(e) {
1267
1267
  const t = Ye(e);
1268
- e.selectedValues = [...t], e.globalFilter.values = ul(e), S(e.globalFilter, k(e.id), {
1268
+ e.selectedValues = [...t], e.globalFilter.values = cl(e), S(e.globalFilter, k(e.id), {
1269
1269
  selectedValues: t
1270
1270
  });
1271
1271
  }
1272
- function ll(e) {
1272
+ function nl(e) {
1273
1273
  e.options = [], Be(e);
1274
1274
  }
1275
1275
  function Dt(e) {
1276
1276
  e.keepSelection || Be(e);
1277
1277
  }
1278
- function nl(e) {
1278
+ function al(e) {
1279
1279
  const t = P(me(e));
1280
1280
  U.value[e.id] = [...t], Be(e);
1281
1281
  }
1282
- function al() {
1282
+ function sl() {
1283
1283
  var a, h, T, g;
1284
1284
  const e = F.value, t = f.value, o = v.value || [];
1285
1285
  return JSON.stringify({
@@ -1306,7 +1306,7 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1306
1306
  );
1307
1307
  return o.length ? o.map((a) => String(a)) : (e.globalFilter.values ?? []).map((a) => String(a));
1308
1308
  }
1309
- function sl(e) {
1309
+ function rl(e) {
1310
1310
  if (Ve(e.selectedValues || []))
1311
1311
  return [we];
1312
1312
  const t = P(e.selectedValues || []);
@@ -1324,7 +1324,7 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1324
1324
  function Tt(e) {
1325
1325
  return e === Ce || String(e ?? "").trim() === "";
1326
1326
  }
1327
- function ot(e) {
1327
+ function it(e) {
1328
1328
  return [...e].sort((t, o) => {
1329
1329
  const a = Tt(t.value), h = Tt(o.value);
1330
1330
  return a !== h ? a ? -1 : 1 : t.label.localeCompare(o.label, r.value, {
@@ -1336,45 +1336,45 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1336
1336
  function Vt(e) {
1337
1337
  return e.type === be.String && !ze(e.globalFilter);
1338
1338
  }
1339
- function it(e) {
1339
+ function He(e) {
1340
1340
  return (e.options || []).map((t) => t.value);
1341
1341
  }
1342
1342
  function ut(e) {
1343
- return it(e).length > 0;
1343
+ return He(e).length > 0;
1344
1344
  }
1345
1345
  function Ee(e) {
1346
1346
  const t = P(e.selectedValues || []);
1347
- return t.length ? t : Ve(e.selectedValues || []) ? [] : ut(e) ? it(e) : [];
1347
+ return t.length ? t : Ve(e.selectedValues || []) ? [] : ut(e) ? He(e) : [];
1348
1348
  }
1349
- function He(e, t) {
1349
+ function Ze(e, t) {
1350
1350
  const o = new Set((e.options || []).map((a) => a.value));
1351
1351
  return P(t).filter((a) => o.has(a));
1352
1352
  }
1353
- function rl(e) {
1354
- const o = O(e.globalFilter, k(e.id)).selectedValues, a = n.isDialogGlobalFilter ? sl(e) : [];
1353
+ function ol(e) {
1354
+ const o = O(e.globalFilter, k(e.id)).selectedValues, a = n.isDialogGlobalFilter ? rl(e) : [];
1355
1355
  if (Ve(e.selectedValues || []))
1356
1356
  return [we];
1357
1357
  if (Ve(o || []))
1358
1358
  return [we];
1359
1359
  if ((e.options || []).map((T) => T.value).length > 0) {
1360
- const T = He(
1360
+ const T = Ze(
1361
1361
  e,
1362
1362
  a
1363
1363
  );
1364
1364
  if (T.length)
1365
1365
  return T;
1366
- const g = He(e, o);
1366
+ const g = Ze(e, o);
1367
1367
  if (g.length)
1368
1368
  return g;
1369
1369
  if (e.keepSelection) {
1370
- const A = He(
1370
+ const A = Ze(
1371
1371
  e,
1372
1372
  me(e)
1373
1373
  );
1374
1374
  if (A.length)
1375
1375
  return A;
1376
1376
  }
1377
- const $ = He(
1377
+ const $ = Ze(
1378
1378
  e,
1379
1379
  e.globalFilter.defaultValues ?? []
1380
1380
  );
@@ -1382,21 +1382,21 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1382
1382
  }
1383
1383
  return a.length ? [...a] : o.length ? [...o] : e.keepSelection ? me(e) : [];
1384
1384
  }
1385
- function ol(e, t) {
1385
+ function il(e, t) {
1386
1386
  const o = new Set(P(t));
1387
1387
  if (!o.size) return !1;
1388
1388
  const a = (e.options || []).map((h) => h.value);
1389
1389
  return a.length ? a.every((h) => o.has(h)) : !1;
1390
1390
  }
1391
- function il(e) {
1391
+ function ul(e) {
1392
1392
  const t = e.selectedValues || [];
1393
1393
  return Ve(t) || !ut(e) ? !1 : P(t).length === 0;
1394
1394
  }
1395
- function ul(e) {
1395
+ function cl(e) {
1396
1396
  const t = Ye(e), o = P(t), a = Te(o), h = Ve(t);
1397
- if (il(e))
1397
+ if (ul(e))
1398
1398
  return [];
1399
- if (ol(e, t))
1399
+ if (il(e, t))
1400
1400
  return [];
1401
1401
  if (!e.keepSelection || n.isDialogGlobalFilter)
1402
1402
  return a.length ? a : h ? [Ce] : [];
@@ -1409,31 +1409,31 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1409
1409
  ), $ = Te(g);
1410
1410
  return $.length ? $ : h ? [Ce] : [];
1411
1411
  }
1412
- function Ze(e) {
1412
+ function Xe(e) {
1413
1413
  const t = U.value[e.id];
1414
1414
  if (t) {
1415
- e.selectedValues = [...t], rt(e), delete U.value[e.id];
1415
+ e.selectedValues = [...t], ot(e), delete U.value[e.id];
1416
1416
  return;
1417
1417
  }
1418
- e.selectedValues = rl(e), rt(e);
1418
+ e.selectedValues = ol(e), ot(e);
1419
1419
  }
1420
- function cl() {
1420
+ function dl() {
1421
1421
  x.value.forEach((e) => {
1422
1422
  de.value || Dt(e);
1423
1423
  });
1424
1424
  }
1425
- function dl() {
1426
- const e = al();
1425
+ function ml() {
1426
+ const e = sl();
1427
1427
  ae.value !== e && x.value.forEach((o) => {
1428
1428
  if (o.keepSelection) {
1429
- nl(o);
1429
+ al(o);
1430
1430
  return;
1431
1431
  }
1432
1432
  Dt(o);
1433
1433
  }), ae.value = e;
1434
1434
  }
1435
- const Xe = Se(() => n.globalFilters ?? L.value);
1436
- function ml(e) {
1435
+ const et = Se(() => n.globalFilters ?? L.value);
1436
+ function pl(e) {
1437
1437
  return {
1438
1438
  schemaName: e.schemaName,
1439
1439
  name: e.name,
@@ -1446,10 +1446,10 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1446
1446
  customTimeRanges: e.customTimeRanges ?? []
1447
1447
  };
1448
1448
  }
1449
- function pl(e) {
1450
- return e.map((t) => ml(t));
1449
+ function fl(e) {
1450
+ return e.map((t) => pl(t));
1451
1451
  }
1452
- function fl(e, t) {
1452
+ function hl(e, t) {
1453
1453
  const o = `${m(e, K.value)}|${t}`, a = O(e, k(o)), h = a.selectedValues.length ? [...a.selectedValues] : [...e.values ?? []];
1454
1454
  return {
1455
1455
  id: o,
@@ -1463,16 +1463,16 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1463
1463
  showAdvanced: a.showAdvanced
1464
1464
  };
1465
1465
  }
1466
- function hl() {
1467
- x.value = Xe.value.map(
1468
- (e, t) => fl(e, t)
1466
+ function bl() {
1467
+ x.value = et.value.map(
1468
+ (e, t) => hl(e, t)
1469
1469
  );
1470
1470
  }
1471
- const bl = Se(
1472
- () => JSON.stringify(pl(Xe.value))
1473
- ), vl = Se(() => {
1474
- const e = Xe.value.map(
1475
- (t) => Pt(t, At())
1471
+ const vl = Se(
1472
+ () => JSON.stringify(fl(et.value))
1473
+ ), yl = Se(() => {
1474
+ const e = et.value.map(
1475
+ (t) => Mt(t, It())
1476
1476
  );
1477
1477
  return JSON.stringify(
1478
1478
  e.map((t) => ({
@@ -1484,12 +1484,12 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1484
1484
  Ae(
1485
1485
  () => ({
1486
1486
  globalFilterId: K.value,
1487
- globalFiltersConfigSignature: bl.value
1487
+ globalFiltersConfigSignature: vl.value
1488
1488
  }),
1489
1489
  (e, t) => {
1490
1490
  t && t.globalFilterId !== e.globalFilterId && x.value.forEach((o) => {
1491
1491
  o.options = [];
1492
- }), hl(), t && t.globalFiltersConfigSignature !== e.globalFiltersConfigSignature && ne(), Z.value && tt();
1492
+ }), bl(), t && t.globalFiltersConfigSignature !== e.globalFiltersConfigSignature && ne(), Z.value && lt();
1493
1493
  },
1494
1494
  { immediate: !0 }
1495
1495
  ), Ae(
@@ -1503,7 +1503,7 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1503
1503
  () => n.locationIds
1504
1504
  ],
1505
1505
  async () => {
1506
- n.isDialogGlobalFilter ? cl() : dl(), await tt();
1506
+ n.isDialogGlobalFilter ? dl() : ml(), await lt();
1507
1507
  },
1508
1508
  { immediate: !0 }
1509
1509
  ), Ae(
@@ -1511,18 +1511,18 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1511
1511
  async () => {
1512
1512
  x.value.forEach((e) => {
1513
1513
  e.options = [];
1514
- }), await tt();
1514
+ }), await lt();
1515
1515
  },
1516
1516
  { deep: !0 }
1517
1517
  ), Ae(
1518
- () => vl.value,
1518
+ () => yl.value,
1519
1519
  async (e, t) => {
1520
- e !== t && t && (n.isDialogGlobalFilter || Rt() || await tt());
1520
+ e !== t && t && (n.isDialogGlobalFilter || At() || await lt());
1521
1521
  }
1522
1522
  ), Ae(
1523
1523
  () => r.value,
1524
1524
  () => {
1525
- yl();
1525
+ gl();
1526
1526
  }
1527
1527
  );
1528
1528
  function Nt(e, t) {
@@ -1532,14 +1532,14 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1532
1532
  t: s
1533
1533
  }).find((h) => String(h.value) === String(t))) == null ? void 0 : o.label) ?? String(t) : String(t);
1534
1534
  }
1535
- function yl() {
1535
+ function gl() {
1536
1536
  x.value.forEach((e) => {
1537
1537
  if (!e.options.length) return;
1538
1538
  const t = e.options.map((o) => ({
1539
1539
  ...o,
1540
1540
  label: Nt(e, o.value)
1541
1541
  }));
1542
- e.options = Vt(e) ? ot(t) : t;
1542
+ e.options = Vt(e) ? it(t) : t;
1543
1543
  });
1544
1544
  }
1545
1545
  function Ct(e) {
@@ -1547,7 +1547,7 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1547
1547
  const t = (o = Q.value.find((a) => a.name === e.schemaName)) == null ? void 0 : o.fields.find((a) => a.name === e.name);
1548
1548
  return t == null ? void 0 : t.type;
1549
1549
  }
1550
- function gl(e) {
1550
+ function Sl(e) {
1551
1551
  var $, A;
1552
1552
  if (!se.value && !p.value) return [];
1553
1553
  if (!(($ = e.tileIds) != null && $.length)) return [];
@@ -1584,7 +1584,7 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1584
1584
  };
1585
1585
  };
1586
1586
  return h.reduce((I, G) => {
1587
- var qe, Gt;
1587
+ var qe, Et;
1588
1588
  const i = (qe = G == null ? void 0 : G.widget) == null ? void 0 : qe.config;
1589
1589
  if (!i) return I;
1590
1590
  const J = g(i), V = (i.dimensions ?? []).some((Ne) => Ne.schemaName === a) || (i.schemaNames ?? []).includes(a), pe = T(
@@ -1593,7 +1593,7 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1593
1593
  var Re;
1594
1594
  return (Re = i.schemaNames) == null ? void 0 : Re.includes(Ne.schemaName);
1595
1595
  })
1596
- ), w = (Gt = i.joinDatasources) == null ? void 0 : Gt.find(
1596
+ ), w = (Et = i.joinDatasources) == null ? void 0 : Et.find(
1597
1597
  (Ne) => (Ne.schemaNames ?? []).includes(a) || (Ne.dimensions ?? []).some((Re) => Re.schemaName === a)
1598
1598
  ), _e = T(
1599
1599
  (w == null ? void 0 : w.filters) ?? [],
@@ -1603,14 +1603,14 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1603
1603
  })
1604
1604
  );
1605
1605
  return I.push({
1606
- type: Mt.Table,
1606
+ type: Bt.Table,
1607
1607
  title: "Global Filter",
1608
1608
  config: {
1609
1609
  schemaNames: i.schemaNames,
1610
1610
  schemas: i.schemas,
1611
1611
  dimensions: V ? [J] : [],
1612
1612
  filters: pe,
1613
- sorts: V ? [{ name: o, schemaName: a, type: Bt.Asc, aggregation: null, dimensionOption: null }] : [],
1613
+ sorts: V ? [{ name: o, schemaName: a, type: zt.Asc, aggregation: null, dimensionOption: null }] : [],
1614
1614
  joinDatasources: !V && w ? [
1615
1615
  {
1616
1616
  ...w,
@@ -1619,7 +1619,7 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1619
1619
  {
1620
1620
  name: o,
1621
1621
  schemaName: a,
1622
- type: Bt.Asc,
1622
+ type: zt.Asc,
1623
1623
  aggregation: null,
1624
1624
  dimensionOption: null
1625
1625
  }
@@ -1648,13 +1648,17 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1648
1648
  const t = new Set(Ee(e));
1649
1649
  return e.options.every((o) => t.has(o.value));
1650
1650
  }
1651
- function Sl(e) {
1652
- kt(e) ? e.selectedValues = [we] : e.selectedValues = [];
1651
+ function Ot(e) {
1652
+ var t;
1653
+ return (t = e.globalFilter.defaultValues) != null && t.length ? He(e) : [];
1654
+ }
1655
+ function Fl(e) {
1656
+ kt(e) ? e.selectedValues = [we] : e.selectedValues = Ot(e);
1653
1657
  }
1654
- function Ot(e, t) {
1658
+ function _t(e, t) {
1655
1659
  return Ee(e).includes(t);
1656
1660
  }
1657
- const _t = Se(
1661
+ const Rt = Se(
1658
1662
  () => x.value.map((e) => {
1659
1663
  const t = e.options, o = e.search.toLowerCase() ?? "";
1660
1664
  return t.filter(
@@ -1662,10 +1666,10 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1662
1666
  ).slice(0, e.visibleCount);
1663
1667
  })
1664
1668
  );
1665
- function Fl(e) {
1669
+ function wl(e) {
1666
1670
  e.visibleCount += 50, _(e.globalFilter, k(e.id), 50);
1667
1671
  }
1668
- function wl(e, t) {
1672
+ function Dl(e, t) {
1669
1673
  S(e.globalFilter, k(e.id), { search: t });
1670
1674
  }
1671
1675
  function ze(e) {
@@ -1676,29 +1680,29 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1676
1680
  var t;
1677
1681
  return !((t = e.globalFilter.tileIds) != null && t.length);
1678
1682
  }
1679
- function Rt() {
1683
+ function At() {
1680
1684
  return (n.isDialogGlobalFilter || !!p.value) && !de.value;
1681
1685
  }
1682
- function At() {
1686
+ function It() {
1683
1687
  var e;
1684
1688
  return n.isDialogGlobalFilter && de.value && ((e = d.value) != null && e.id) ? d.value.id : K.value;
1685
1689
  }
1686
- function et(e) {
1690
+ function tt(e) {
1687
1691
  return String(e ?? "").trim() === "" ? Ce : String(e);
1688
1692
  }
1689
- function Dl(e) {
1693
+ function Tl(e) {
1690
1694
  var t, o;
1691
1695
  return (((t = e.customTimeRanges) == null ? void 0 : t.length) ?? 0) > 0 ? e.customTimeRanges.map((a) => ({
1692
- label: et(a.name),
1693
- value: et(a.name),
1696
+ label: tt(a.name),
1697
+ value: tt(a.name),
1694
1698
  available: !0
1695
1699
  })) : (((o = e.customOptions) == null ? void 0 : o.length) ?? 0) > 0 ? e.customOptions.map((a) => ({
1696
- label: et(a.label),
1697
- value: et(a.label),
1700
+ label: tt(a.label),
1701
+ value: tt(a.label),
1698
1702
  available: !0
1699
1703
  })) : [];
1700
1704
  }
1701
- function Tl(e) {
1705
+ function Vl(e) {
1702
1706
  const t = P(e.selectedValues || []);
1703
1707
  if (!t.length) return;
1704
1708
  const o = new Set(e.options.map((h) => h.value)), a = t.filter((h) => !o.has(h)).map((h) => ({
@@ -1708,12 +1712,12 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1708
1712
  }));
1709
1713
  if (a.length) {
1710
1714
  const h = [...e.options, ...a];
1711
- e.options = Vt(e) ? ot(h) : h;
1715
+ e.options = Vt(e) ? it(h) : h;
1712
1716
  }
1713
1717
  }
1714
- function Vl(e) {
1718
+ function Nl(e) {
1715
1719
  if (e.keepSelection) {
1716
- Tl(e);
1720
+ Vl(e);
1717
1721
  const o = me(e);
1718
1722
  e.selectedValues = o.length ? [...o] : [...e.selectedValues || []];
1719
1723
  } else {
@@ -1729,30 +1733,30 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1729
1733
  selectedValues: t
1730
1734
  });
1731
1735
  }
1732
- async function Nl(e, t) {
1736
+ async function Cl(e, t) {
1733
1737
  var o;
1734
1738
  if (e.options = [], !((o = e.globalFilter.tileIds) != null && o.length)) {
1735
- ll(e);
1739
+ nl(e);
1736
1740
  return;
1737
1741
  }
1738
1742
  if (!(!e.type && (e.type = Ct(e.globalFilter), !e.type))) {
1739
1743
  if (ze(e.globalFilter)) {
1740
- e.options = Dl(e.globalFilter), Ze(e);
1744
+ e.options = Tl(e.globalFilter), Xe(e);
1741
1745
  return;
1742
1746
  }
1743
1747
  switch (e.type) {
1744
1748
  case be.String:
1745
1749
  try {
1746
- const a = gl(e.globalFilter);
1750
+ const a = Sl(e.globalFilter);
1747
1751
  if (!a.length) {
1748
1752
  e.options = [];
1749
1753
  return;
1750
1754
  }
1751
- const h = Rt(), T = [];
1755
+ const h = At(), T = [];
1752
1756
  for (const i of a) {
1753
1757
  if (t.aborted) return;
1754
1758
  if (h) {
1755
- const V = await rn({
1759
+ const V = await on({
1756
1760
  widget: i,
1757
1761
  signal: t,
1758
1762
  scopedLocationIds: n.locationIds,
@@ -1760,24 +1764,24 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1760
1764
  scopedDateRange: n.dateRange,
1761
1765
  scopedGlobalFilters: n.globalFilters
1762
1766
  });
1763
- (V == null ? void 0 : V.type) === Mt.Table && T.push(...V.rows.map((pe) => {
1767
+ (V == null ? void 0 : V.type) === Bt.Table && T.push(...V.rows.map((pe) => {
1764
1768
  var w;
1765
1769
  return ((w = pe.cells) == null ? void 0 : w[0]) ?? " ";
1766
1770
  }));
1767
1771
  continue;
1768
1772
  }
1769
1773
  const J = ee(
1770
- Pt(e.globalFilter, At())
1774
+ Mt(e.globalFilter, It())
1771
1775
  );
1772
1776
  T.push(...J);
1773
1777
  }
1774
1778
  const g = Array.from(new Set(T)), $ = me(e), A = e.keepSelection ? Array.from(/* @__PURE__ */ new Set([...g, ...$])) : g, I = new Set(T), G = new Set(g);
1775
- e.options = ot(
1776
- Wl(A, {
1779
+ e.options = it(
1780
+ Ul(A, {
1777
1781
  unknownLabel: R.value,
1778
1782
  getAvailable: (i) => e.keepSelection ? I.has(i) : G.has(i)
1779
1783
  })
1780
- ), Ze(e);
1784
+ ), Xe(e);
1781
1785
  } catch (a) {
1782
1786
  if ((a == null ? void 0 : a.code) === "ERR_CANCELED" || (a == null ? void 0 : a.name) === "CanceledError")
1783
1787
  return;
@@ -1788,7 +1792,7 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1788
1792
  e.options = [
1789
1793
  { label: s("report.common.yes"), value: !0 },
1790
1794
  { label: s("report.common.no"), value: !1 }
1791
- ], Ze(e);
1795
+ ], Xe(e);
1792
1796
  break;
1793
1797
  }
1794
1798
  case be.Timestamp:
@@ -1796,14 +1800,14 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1796
1800
  const a = e.globalFilter.option;
1797
1801
  e.options = pt({ dimensionOption: a, t: s }), e.globalFilter.values = e.options.length ? e.options.map((h) => h.value) : ["NULL"];
1798
1802
  }
1799
- Ze(e);
1803
+ Xe(e);
1800
1804
  break;
1801
1805
  case be.Numeric:
1802
1806
  break;
1803
1807
  }
1804
1808
  }
1805
1809
  }
1806
- async function tt() {
1810
+ async function lt() {
1807
1811
  if (!K.value || !x.value.length) return;
1808
1812
  z && z.abort();
1809
1813
  const e = new AbortController();
@@ -1811,50 +1815,50 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1811
1815
  try {
1812
1816
  await Promise.all(
1813
1817
  x.value.map(
1814
- (t) => Nl(t, e.signal)
1818
+ (t) => Cl(t, e.signal)
1815
1819
  )
1816
1820
  );
1817
1821
  } finally {
1818
1822
  z === e && (N.value = !1), n.isDialogGlobalFilter && z === e && (W.value = !1);
1819
1823
  }
1820
1824
  }
1821
- function It(e, t) {
1822
- const o = it(e), a = Ee(e);
1825
+ function xt(e, t) {
1826
+ const o = He(e), a = Ee(e);
1823
1827
  if (a.includes(t)) {
1824
1828
  const g = a.filter(($) => $ !== t);
1825
1829
  e.selectedValues = g.length > 0 ? g : [we];
1826
1830
  } else {
1827
1831
  const g = [...a, t], $ = o.length > 0 && o.every((A) => g.includes(A));
1828
- e.selectedValues = $ ? [] : g;
1832
+ e.selectedValues = $ ? Ot(e) : g;
1829
1833
  }
1830
1834
  const T = Ye(e);
1831
1835
  e.selectedValues = [...T], S(e.globalFilter, k(e.id), {
1832
1836
  selectedValues: T
1833
1837
  });
1834
1838
  }
1835
- function xt(e, t) {
1839
+ function $t(e, t) {
1836
1840
  const o = e.globalFilter, a = t ? [
1837
- Bl(Lt(t.startDate, u.value), u.value),
1838
- zl(Lt(t.endDate, u.value), u.value)
1841
+ zl(Pt(t.startDate, u.value), u.value),
1842
+ ql(Pt(t.endDate, u.value), u.value)
1839
1843
  ] : [];
1840
1844
  t === null ? o.values = [] : o.values = a, e.selectedValues = [...a], e.keepSelection = t !== null, S(e.globalFilter, k(e.id), {
1841
1845
  keepSelection: e.keepSelection,
1842
1846
  selectedValues: [...a]
1843
1847
  }), ne(e.globalFilter);
1844
1848
  }
1845
- function Cl(e) {
1849
+ function kl(e) {
1846
1850
  const t = Ee(e);
1847
1851
  return `${s("report.section.filter.selectAll")} (${t.length}/${e.options.length})`;
1848
1852
  }
1849
- function kl() {
1853
+ function Ol() {
1850
1854
  return s("report.section.filter.search");
1851
1855
  }
1852
- function lt(e) {
1856
+ function nt(e) {
1853
1857
  const t = y(e.globalFilter), o = e.options.length > 0 ? "(0 selected)" : "";
1854
1858
  if (e.type === be.Timestamp && !ze(e.globalFilter)) {
1855
1859
  const g = fe(e), $ = g.length === 2;
1856
1860
  if (e.globalFilter.option === B.DateTime)
1857
- return { preview: $ ? `${t} is between ${Ll({
1861
+ return { preview: $ ? `${t} is between ${Pl({
1858
1862
  startDate: g[0] || null,
1859
1863
  endDate: g[1] || null,
1860
1864
  locale: r.value,
@@ -1862,7 +1866,7 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1862
1866
  })}` : t, suffix: "" };
1863
1867
  if (e.globalFilter.option === B.TimeOfDay) {
1864
1868
  const A = g[0] ? E(g[0]).tz(u.value) : null, I = g[1] ? E(g[1]).tz(u.value) : null, G = (J) => J && J.isValid() ? { hour: J.hour(), minute: J.minute() } : null;
1865
- return { preview: $ ? `${t} is between ${Qt({
1869
+ return { preview: $ ? `${t} is between ${Kt({
1866
1870
  startTime: G(A),
1867
1871
  endTime: G(I),
1868
1872
  locale: r.value
@@ -1885,10 +1889,10 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1885
1889
  suffix: `(${h.length} selected)`
1886
1890
  } : { preview: t, suffix: o };
1887
1891
  }
1888
- function Ol(e) {
1889
- rt(e), ne(e.globalFilter), document.body.click();
1890
- }
1891
1892
  function _l(e) {
1893
+ ot(e), ne(e.globalFilter), document.body.click();
1894
+ }
1895
+ function Rl(e) {
1892
1896
  const t = O(
1893
1897
  e.globalFilter,
1894
1898
  k(e.id)
@@ -1897,20 +1901,20 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1897
1901
  selectedValues: e.selectedValues
1898
1902
  }), document.body.click();
1899
1903
  }
1900
- function Rl(e) {
1904
+ function Al(e) {
1901
1905
  e.showAdvanced = !e.showAdvanced, S(e.globalFilter, k(e.id), {
1902
1906
  showAdvanced: e.showAdvanced
1903
1907
  });
1904
1908
  }
1905
- function Al(e) {
1909
+ function Il(e) {
1906
1910
  e.keepSelection = !e.keepSelection, c(e.keepSelection), S(e.globalFilter, k(e.id), {
1907
1911
  keepSelection: e.keepSelection
1908
- }), Vl(e);
1912
+ }), Nl(e);
1909
1913
  }
1910
- function Il(e, t) {
1914
+ function xl(e, t) {
1911
1915
  return e ? e.length > t ? `${e.slice(0, t)}…` : e : R.value;
1912
1916
  }
1913
- function $t(e, t) {
1917
+ function Gt(e, t) {
1914
1918
  var h, T, g, $;
1915
1919
  const o = e.globalFilter;
1916
1920
  let a = [];
@@ -1927,22 +1931,22 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1927
1931
  }
1928
1932
  return (e, t) => {
1929
1933
  const o = te("FmCircularProgress"), a = te("FmTextField"), h = te("FmMenuItem"), T = te("FmTooltip"), g = te("FmIcon"), $ = te("FmMenuDivider"), A = te("FmSwitch"), I = te("FmButton"), G = te("FmMenu");
1930
- return X(), he("div", Fn, [
1934
+ return X(), he("div", wn, [
1931
1935
  (X(!0), he(Le, null, bt(x.value, (i, J) => (X(), he("div", {
1932
1936
  key: i.id
1933
1937
  }, [
1934
- i.globalFilter.option === D(B).DateTime && !ze(i.globalFilter) ? (X(), De(El, {
1938
+ i.globalFilter.option === D(B).DateTime && !ze(i.globalFilter) ? (X(), De(Ll, {
1935
1939
  key: 0,
1936
1940
  "date-range": {
1937
1941
  startDate: fe(i)[0],
1938
1942
  endDate: fe(i)[1]
1939
1943
  },
1940
1944
  class: "w-full",
1941
- label: lt(i).preview,
1945
+ label: nt(i).preview,
1942
1946
  removable: fe(i).length === 2,
1943
- onUpdate: (V) => xt(i, V),
1944
- onChipClosed: () => xt(i, null)
1945
- }, null, 8, ["date-range", "label", "removable", "onUpdate", "onChipClosed"])) : i.globalFilter.option === D(B).TimeOfDay && !ze(i.globalFilter) ? (X(), De(gn, {
1947
+ onUpdate: (V) => $t(i, V),
1948
+ onChipClosed: () => $t(i, null)
1949
+ }, null, 8, ["date-range", "label", "removable", "onUpdate", "onChipClosed"])) : i.globalFilter.option === D(B).TimeOfDay && !ze(i.globalFilter) ? (X(), De(Sn, {
1946
1950
  key: 1,
1947
1951
  "time-range": {
1948
1952
  start: fe(i)[0] ? {
@@ -1955,10 +1959,10 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1955
1959
  } : null
1956
1960
  },
1957
1961
  class: "w-full",
1958
- label: lt(i).preview,
1962
+ label: nt(i).preview,
1959
1963
  removable: fe(i).length === 2,
1960
- onUpdate: (V) => $t(i, V),
1961
- onChipClosed: () => $t(i, null)
1964
+ onUpdate: (V) => Gt(i, V),
1965
+ onChipClosed: () => Gt(i, null)
1962
1966
  }, null, 8, ["time-range", "label", "removable", "onUpdate", "onChipClosed"])) : (X(), De(G, {
1963
1967
  key: 2,
1964
1968
  "close-on-click": !1,
@@ -1966,16 +1970,16 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1966
1970
  open: D(b)(i.id)
1967
1971
  }, {
1968
1972
  "menu-button": ie(() => [
1969
- Y("div", wn, [
1970
- M(Kt, {
1973
+ Y("div", Dn, [
1974
+ M(Jt, {
1971
1975
  "left-icon": "filter_alt",
1972
1976
  "trailing-icon": "expand_more",
1973
1977
  loading: ce(i),
1974
- label: lt(i).preview,
1978
+ label: nt(i).preview,
1975
1979
  class: "w-full"
1976
1980
  }, {
1977
1981
  default: ie(() => [
1978
- st(ve(lt(i).suffix), 1)
1982
+ rt(ve(nt(i).suffix), 1)
1979
1983
  ]),
1980
1984
  _: 2
1981
1985
  }, 1032, ["loading", "label"])
@@ -1984,31 +1988,31 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1984
1988
  "menu-wrapper": ie(({ maxHeight: V, width: pe }) => [
1985
1989
  Y("div", {
1986
1990
  class: "flex flex-col bg-fm-color-neutral-white p-2 rounded-lg shadow-light-300",
1987
- style: Gl({ maxHeight: `${V}px`, width: pe })
1991
+ style: El({ maxHeight: `${V}px`, width: pe })
1988
1992
  }, [
1989
- ce(i) ? (X(), he("div", Dn, [
1993
+ ce(i) ? (X(), he("div", Tn, [
1990
1994
  M(o)
1991
1995
  ])) : i.options.length > 0 ? (X(), he(Le, { key: 1 }, [
1992
- Y("div", Tn, [
1996
+ Y("div", Vn, [
1993
1997
  M(a, {
1994
1998
  modelValue: i.search,
1995
- "onUpdate:modelValue": [(w) => i.search = w, (w) => wl(i, w)],
1999
+ "onUpdate:modelValue": [(w) => i.search = w, (w) => Dl(i, w)],
1996
2000
  type: "text",
1997
2001
  "prepend-icon": "search",
1998
- placeholder: kl(),
2002
+ placeholder: Ol(),
1999
2003
  class: "border px-2 pb-8 text-sm mb-1 rounded"
2000
2004
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
2001
2005
  ]),
2002
- Y("div", Vn, [
2003
- Y("div", Nn, [
2006
+ Y("div", Nn, [
2007
+ Y("div", Cn, [
2004
2008
  M(h, {
2005
- label: Cl(i),
2009
+ label: kl(i),
2006
2010
  "has-checkbox": !0,
2007
2011
  "model-value": kt(i),
2008
2012
  indeterminate: !0,
2009
- onClick: (w) => Sl(i)
2013
+ onClick: (w) => Fl(i)
2010
2014
  }, null, 8, ["label", "model-value", "onClick"]),
2011
- (X(!0), he(Le, null, bt(_t.value[J], (w) => (X(), he(Le, {
2015
+ (X(!0), he(Le, null, bt(Rt.value[J], (w) => (X(), he(Le, {
2012
2016
  key: w.value
2013
2017
  }, [
2014
2018
  w.label && w.label.length > 110 ? (X(), De(T, {
@@ -2018,19 +2022,19 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
2018
2022
  "z-index": 2e3
2019
2023
  }, {
2020
2024
  content: ie(() => [
2021
- st(ve(w.label), 1)
2025
+ rt(ve(w.label), 1)
2022
2026
  ]),
2023
2027
  default: ie(() => [
2024
- Y("div", Cn, [
2028
+ Y("div", kn, [
2025
2029
  M(h, {
2026
- label: Il(w.label, 110),
2030
+ label: xl(w.label, 110),
2027
2031
  "has-checkbox": !0,
2028
- "model-value": Ot(i, w.value),
2029
- class: Et([
2032
+ "model-value": _t(i, w.value),
2033
+ class: Lt([
2030
2034
  "flex-1 text-left",
2031
2035
  { "bg-gray-200": w.available === !1 }
2032
2036
  ]),
2033
- onClick: () => It(i, w.value)
2037
+ onClick: () => xt(i, w.value)
2034
2038
  }, null, 8, ["label", "model-value", "class", "onClick"])
2035
2039
  ])
2036
2040
  ]),
@@ -2039,47 +2043,47 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
2039
2043
  key: 1,
2040
2044
  label: w.label,
2041
2045
  "has-checkbox": !0,
2042
- "model-value": Ot(i, w.value),
2043
- class: Et(["flex-1 text-left", { "bg-gray-100": w.available === !1 }]),
2044
- onClick: () => It(i, w.value)
2046
+ "model-value": _t(i, w.value),
2047
+ class: Lt(["flex-1 text-left", { "bg-gray-100": w.available === !1 }]),
2048
+ onClick: () => xt(i, w.value)
2045
2049
  }, null, 8, ["label", "model-value", "class", "onClick"]))
2046
2050
  ], 64))), 128)),
2047
- _t.value[J].length < i.options.length && !i.search ? (X(), De(h, {
2051
+ Rt.value[J].length < i.options.length && !i.search ? (X(), De(h, {
2048
2052
  key: 0,
2049
2053
  class: "fm-typo-en-body-md-400 -ml-2",
2050
2054
  label: D(s)("report.section.filter.loadMore"),
2051
- onClick: dt((w) => Fl(i), ["stop"]),
2055
+ onClick: dt((w) => wl(i), ["stop"]),
2052
2056
  icon: "autorenew"
2053
2057
  }, null, 8, ["label", "onClick"])) : ht("", !0)
2054
2058
  ])
2055
2059
  ]),
2056
2060
  Y("div", {
2057
2061
  class: "px-12 py-2 flex items-center gap-2 cursor-pointer hover:bg-fm-color-neutral-50 transition-colors",
2058
- onClick: (w) => Rl(i)
2062
+ onClick: (w) => Al(i)
2059
2063
  }, [
2060
2064
  M(g, {
2061
2065
  name: i.showAdvanced ? "keyboard_arrow_up" : "keyboard_arrow_down",
2062
2066
  size: "md",
2063
2067
  class: ""
2064
2068
  }, null, 8, ["name"]),
2065
- Y("span", On, ve(D(s)("report.section.filter.advanced")), 1)
2066
- ], 8, kn),
2069
+ Y("span", _n, ve(D(s)("report.section.filter.advanced")), 1)
2070
+ ], 8, On),
2067
2071
  M($),
2068
- i.showAdvanced ? (X(), he("div", _n, [
2069
- Y("div", Rn, [
2070
- Y("div", An, [
2072
+ i.showAdvanced ? (X(), he("div", Rn, [
2073
+ Y("div", An, [
2074
+ Y("div", In, [
2071
2075
  M(A, {
2072
2076
  "model-value": i.keepSelection,
2073
2077
  label: D(s)("report.section.filter.keepSelection"),
2074
2078
  labelPlacement: "right",
2075
- "onUpdate:modelValue": () => Al(i)
2079
+ "onUpdate:modelValue": () => Il(i)
2076
2080
  }, null, 8, ["model-value", "label", "onUpdate:modelValue"]),
2077
2081
  M(T, {
2078
2082
  placement: "top",
2079
2083
  "z-index": 2e3
2080
2084
  }, {
2081
2085
  content: ie(() => [
2082
- Y("div", In, ve(D(s)("report.section.filter.keepSelectionTooltip")), 1)
2086
+ Y("div", xn, ve(D(s)("report.section.filter.keepSelectionTooltip")), 1)
2083
2087
  ]),
2084
2088
  default: ie(() => [
2085
2089
  M(g, {
@@ -2093,19 +2097,19 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
2093
2097
  ])
2094
2098
  ])
2095
2099
  ])) : ht("", !0),
2096
- Y("div", xn, [
2100
+ Y("div", $n, [
2097
2101
  M(I, {
2098
2102
  variant: "tertiary",
2099
2103
  label: D(s)("report.common.cancel"),
2100
- onClick: dt((w) => _l(i), ["stop"])
2104
+ onClick: dt((w) => Rl(i), ["stop"])
2101
2105
  }, null, 8, ["label", "onClick"]),
2102
2106
  M(I, {
2103
2107
  color: "primary",
2104
- onClick: dt((w) => Ol(i), ["stop"]),
2108
+ onClick: dt((w) => _l(i), ["stop"]),
2105
2109
  label: D(s)("report.common.apply")
2106
2110
  }, null, 8, ["onClick", "label"])
2107
2111
  ])
2108
- ], 64)) : (X(), De(Ul, {
2112
+ ], 64)) : (X(), De(jl, {
2109
2113
  key: 2,
2110
2114
  title: ct(i) ? D(s)("report.messages.noWidgetsApplied") : void 0,
2111
2115
  "sub-title": ct(i) ? D(s)("report.messages.assignWidgetsToUseThisFilter") : void 0
@@ -2115,32 +2119,32 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
2115
2119
  _: 2
2116
2120
  }, 1032, ["open"]))
2117
2121
  ]))), 128)),
2118
- jt(e.$slots, "default")
2122
+ Qt(e.$slots, "default")
2119
2123
  ]);
2120
2124
  };
2121
2125
  }
2122
2126
  });
2123
2127
  export {
2124
2128
  Ie as I,
2125
- Yt as R,
2126
- ea as _,
2127
- Yn as a,
2128
- Zn as b,
2129
- Xn as c,
2130
- Wn as d,
2131
- Ut as e,
2132
- gn as f,
2133
- Hn as g,
2134
- Kl as h,
2135
- Un as i,
2136
- un as j,
2137
- Hl as k,
2138
- Jn as l,
2139
- Kn as m,
2140
- jn as n,
2141
- rn as q,
2142
- Qn as r,
2143
- cn as s,
2144
- Wt as t,
2145
- Ht as u
2129
+ Ht as R,
2130
+ ta as _,
2131
+ Hn as a,
2132
+ Xn as b,
2133
+ ea as c,
2134
+ Un as d,
2135
+ jt as e,
2136
+ Sn as f,
2137
+ Zn as g,
2138
+ Jl as h,
2139
+ jn as i,
2140
+ cn as j,
2141
+ Zl as k,
2142
+ Yn as l,
2143
+ Jn as m,
2144
+ Qn as n,
2145
+ on as q,
2146
+ Kn as r,
2147
+ dn as s,
2148
+ Ut as t,
2149
+ Zt as u
2146
2150
  };