@feedmepos/mf-report 5.33.0-beta.0 → 5.33.1-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 (37) hide show
  1. package/dist/{App-ZE1kA1jU.js → App-DyT6nh_L.js} +4 -4
  2. package/dist/{DateRangeSelect-B10B3ZaN.js → DateRangeSelect-BBw7T_aW.js} +1 -1
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-dtu8Gum_.js → Default.vue_vue_type_script_setup_true_lang-Dnk_TnQR.js} +1 -1
  4. package/dist/{DigestListView-CqyxDNR_.js → DigestListView-21gr8OcT.js} +3 -3
  5. package/dist/{DigestReaderView-ILhtZ6ke.js → DigestReaderView-CE-6PrMO.js} +4 -4
  6. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-Dk6NA-nL.js → DynamicWidget.vue_vue_type_script_setup_true_lang-DFn0SFrY.js} +7 -7
  7. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-Do8UrF5k.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-C7qNbWLB.js} +299 -295
  8. package/dist/{InsightView-cZx4gAxG.js → InsightView-CPepuPPZ.js} +5 -5
  9. package/dist/{Integration-CgEy3mhX.js → Integration-CWUcfGh4.js} +3 -3
  10. package/dist/{Integrations-BTy2r5Au.js → Integrations-H2xaMwLN.js} +2 -2
  11. package/dist/{Layout-B3MnHb6_.js → Layout-DlNzbAzE.js} +1 -1
  12. package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-DqPi50ty.js → LocationSelect.vue_vue_type_script_setup_true_lang-DHV1khX0.js} +2 -2
  13. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-DGMEWWMl.js → MenuTab.vue_vue_type_script_setup_true_lang-CSyIdEay.js} +5 -5
  14. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-CS-gvEAf.js → NavigationTab.vue_vue_type_script_setup_true_lang-BBI48702.js} +5 -5
  15. package/dist/{OverviewView-CnsSS3dA.js → OverviewView-DGn9Ly3V.js} +5 -5
  16. package/dist/{Report-aCXfcgbD.js → Report-BQu6bcXX.js} +3 -3
  17. package/dist/{ReportCanvasView-DJiD7cHf.js → ReportCanvasView-ICjkqj1z.js} +5 -5
  18. package/dist/ReportEditor-CYKIOEDv.js +2117 -0
  19. package/dist/{ReportView-DHxQQHdv.js → ReportView-Cs9oLsT3.js} +6 -6
  20. package/dist/{ReportViewRoute-R7QAQx-y.js → ReportViewRoute-Oes7NDR_.js} +2 -2
  21. package/dist/{Setting-C3q0gsVs.js → Setting-K4gm_mgo.js} +3 -3
  22. package/dist/{Template-DulgV4HH.js → Template-DvmIdKuP.js} +3 -3
  23. package/dist/{TileEditor-B04Vkqd4.js → TileEditor-BeSPXxDU.js} +6 -6
  24. package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-Cn6yji3z.js → TilePageStack.vue_vue_type_script_setup_true_lang-D8d93Bzw.js} +2 -2
  25. package/dist/{TransitionFade-B0IFIQeH.js → TransitionFade-Da9yU0De.js} +5 -5
  26. package/dist/{app-60Wbr-Yr.js → app-B91tkGfv.js} +30 -14
  27. package/dist/app.js +1 -1
  28. package/dist/assets/{formatChartData.worker-o6kHvamD.js → formatChartData.worker-DvK7K5ca.js} +9 -9
  29. package/dist/assets/{processTableData.worker-B7UZDrcg.js → processTableData.worker-C3l4iUXL.js} +9 -9
  30. package/dist/{currency-JlsW9tkr.js → currency-DUjqeVZg.js} +1 -1
  31. package/dist/{index-BcttP7wp.js → index-CpEIHYgq.js} +231 -230
  32. package/dist/{report-CN9S4Zga.js → report-BtUlq8BM.js} +1 -1
  33. package/dist/{useDigestFont-CyF_Sl2L.js → useDigestFont-BU0GGO11.js} +1 -1
  34. package/dist/{useReportCanvasPanel-DHUVpFYD.js → useReportCanvasPanel-CF2qKhDY.js} +3 -3
  35. package/dist/{useRestaurantPermission-BjxYCII1.js → useRestaurantPermission-Dsp8l6vP.js} +1 -1
  36. package/package.json +1 -1
  37. package/dist/ReportEditor-D6VOw4xg.js +0 -2094
@@ -1,14 +1,14 @@
1
- import { ref as ye, computed as ge, defineComponent as yt, mergeModels as nt, useModel as ft, watch as Ie, 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 at, withDirectives as xl, toDisplayString as ve, vShow as Al, 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-B10B3ZaN.js";
3
- import { e as St } from "./index-BcttP7wp.js";
4
- import { d as G, u as ke, c as je, a as Pe, F as Oe, ah as gt, w as Ae, h as Pl, j as Ml, z as Bl, i as zl, t as Lt } from "./app-60Wbr-Yr.js";
5
- import { b as B, C as j, Q as lt, 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-CN9S4Zga.js";
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-BBw7T_aW.js";
3
+ import { e as gt } from "./index-CpEIHYgq.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-B91tkGfv.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-BtUlq8BM.js";
6
6
  import { defineStore as Ft, storeToRefs as oe } from "pinia";
7
7
  import { detectLocale as xe } from "@feedmepos/mf-common";
8
8
  import { u as Jt } from "./_plugin-vue_export-helper-C6QDExPN.js";
9
9
  import { _ as Ul } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
10
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-o6kHvamD.js", mt = /* @__PURE__ */ new Map();
11
+ const jl = "/assets/formatChartData.worker-DvK7K5ca.js", mt = /* @__PURE__ */ new Map();
12
12
  function zt(l) {
13
13
  return new Worker(l, { type: "module" });
14
14
  }
@@ -71,7 +71,7 @@ function Zl(l) {
71
71
  ].join(":");
72
72
  }
73
73
  function Xl(l) {
74
- const n = (s, r) => G().set("hour", s).set("minute", r).set("second", 0).set("millisecond", 0).toISOString();
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)
@@ -85,7 +85,7 @@ function en(l, n) {
85
85
  option: l.option ?? null,
86
86
  values: We(n.values),
87
87
  dataFormula: l.dataFormula,
88
- isGlobalFilter: !0
88
+ isGlobalFilter: !l.beforeAggregation
89
89
  };
90
90
  }
91
91
  function tn(l, n) {
@@ -97,14 +97,14 @@ function tn(l, n) {
97
97
  option: l.option ?? B.TimeOfDay,
98
98
  values: s,
99
99
  dataFormula: l.dataFormula,
100
- isGlobalFilter: !0
100
+ isGlobalFilter: !l.beforeAggregation
101
101
  };
102
102
  }
103
103
  function ln(l) {
104
104
  var d, p, f, F;
105
105
  const n = (l.filters ?? []).map((v) => ({
106
106
  ...v,
107
- isGlobalFilter: !0
107
+ isGlobalFilter: !l.beforeAggregation
108
108
  })), s = Array.from(new Set(l.values ?? []));
109
109
  if (s.length === 1 && String(s[0]) === "EMPTY_GLOBAL_FILTER_VALUE") {
110
110
  const v = Object.values(B).includes(
@@ -119,7 +119,7 @@ function ln(l) {
119
119
  option: l.option ?? null,
120
120
  values: u,
121
121
  dataFormula: l.dataFormula,
122
- isGlobalFilter: !0
122
+ isGlobalFilter: !l.beforeAggregation
123
123
  }
124
124
  ];
125
125
  }
@@ -128,8 +128,8 @@ function ln(l) {
128
128
  return [
129
129
  ...n,
130
130
  ...((p = l.customTimeRanges) == null ? void 0 : p.filter((u) => {
131
- const E = String(u.name ?? "");
132
- return v.has(E);
131
+ const L = String(u.name ?? "");
132
+ return v.has(L);
133
133
  }).map((u) => tn(l, u)).filter((u) => !!u)) ?? []
134
134
  ];
135
135
  }
@@ -138,8 +138,8 @@ function ln(l) {
138
138
  return [
139
139
  ...n,
140
140
  ...((F = l.customOptions) == null ? void 0 : F.filter((u) => {
141
- const E = String(u.label ?? "");
142
- return v.has(E);
141
+ const L = String(u.label ?? "");
142
+ return v.has(L);
143
143
  }).map((u) => en(l, u)).filter((u) => Array.isArray(u.values) && u.values.length > 0)) ?? []
144
144
  ];
145
145
  }
@@ -152,7 +152,7 @@ function ln(l) {
152
152
  option: l.option ?? null,
153
153
  values: s,
154
154
  dataFormula: l.dataFormula,
155
- isGlobalFilter: !0
155
+ isGlobalFilter: !l.beforeAggregation
156
156
  }
157
157
  ];
158
158
  }
@@ -172,7 +172,7 @@ function qt({
172
172
  const b = typeof c == "number" ? c : Number(c), y = typeof m == "number" ? m : Number(m);
173
173
  return Number.isFinite(b) && Number.isFinite(y) ? b - y : typeof c == "string" && typeof m == "string" ? c.localeCompare(m) : null;
174
174
  }
175
- function E(c, m) {
175
+ function L(c, m) {
176
176
  if (c.length === 0 || m.length === 0) return null;
177
177
  const b = u(c[0], m[0]);
178
178
  return b == null ? null : [b >= 0 ? c[0] : m[0]];
@@ -204,7 +204,7 @@ function qt({
204
204
  ]);
205
205
  case j.GreaterThan:
206
206
  case j.GreaterThanOrEqual:
207
- return E(b, y);
207
+ return L(b, y);
208
208
  case j.LessThan:
209
209
  case j.LessThanOrEqual:
210
210
  return Q(b, y);
@@ -214,7 +214,7 @@ function qt({
214
214
  return null;
215
215
  }
216
216
  }
217
- const g = (c) => {
217
+ const S = (c) => {
218
218
  if (!c || !f(c) || !Array.isArray(c.values) || c.values.length === 0)
219
219
  return;
220
220
  const m = {
@@ -237,7 +237,7 @@ function qt({
237
237
  }
238
238
  C.values = R, r.set(y, C);
239
239
  };
240
- return l.forEach(g), F.forEach(g), [...Array.from(r.values()), ...d];
240
+ return l.forEach(S), F.forEach(S), [...Array.from(r.values()), ...d];
241
241
  }
242
242
  function Qe(l, n, s) {
243
243
  var p;
@@ -269,7 +269,7 @@ function Qe(l, n, s) {
269
269
  };
270
270
  }
271
271
  function nn(l) {
272
- return (l == null ? void 0 : l.queryDatasource) === lt.BigQuery ? lt.BigQuery : lt.Postgres;
272
+ return (l == null ? void 0 : l.queryDatasource) === nt.BigQuery ? nt.BigQuery : nt.Postgres;
273
273
  }
274
274
  const an = [
275
275
  "schemaNames",
@@ -353,11 +353,11 @@ const sn = async ({
353
353
  pageRead: v,
354
354
  search: u
355
355
  }) => {
356
- var re, Fe, de, Se;
357
- const { scopePath: E, requestBusinessIds: Q } = oe(ke()), { currentReport: _, editingReport: O, overviewReport: g } = Me(), { selectedNavigationTab: c, isEditorRoute: m } = je(), b = wt({
356
+ var re, Fe, de, ge;
357
+ const { scopePath: L, requestBusinessIds: Q } = oe(ke()), { currentReport: _, editingReport: O, overviewReport: S } = Me(), { selectedNavigationTab: c, isEditorRoute: m } = je(), b = wt({
358
358
  selectedNavigationTab: c,
359
359
  isEditorRoute: m,
360
- overviewReport: g,
360
+ overviewReport: S,
361
361
  editingReport: O,
362
362
  currentReport: _
363
363
  }), y = Je(c), {
@@ -382,9 +382,9 @@ const sn = async ({
382
382
  timezone: le
383
383
  }))
384
384
  return null;
385
- const se = (r == null ? void 0 : r.filter((ne) => Z.some((L) => L.id === ne))) ?? C, $ = (r == null ? void 0 : r.filter((ne) => N.some((L) => L.id === ne))) ?? R, k = Qe(l, K, s ?? ""), ce = {
385
+ const se = (r == null ? void 0 : r.filter((ne) => Z.some((P) => P.id === ne))) ?? C, x = (r == null ? void 0 : r.filter((ne) => N.some((P) => P.id === ne))) ?? R, k = Qe(l, K, s ?? ""), ce = {
386
386
  fetchType: Oe.Post,
387
- url: v ? `/${E.value}/v2/query/page` : `/${E.value}/v2/query`,
387
+ url: v ? `/${L.value}/v2/query/page` : `/${L.value}/v2/query`,
388
388
  data: {
389
389
  ...F ? { page: F } : {},
390
390
  ...v ?? {},
@@ -393,12 +393,12 @@ const sn = async ({
393
393
  dateRange: [ae.startDate, ae.endDate],
394
394
  compareDateRange: q.startDate && q.endDate ? [q.startDate, q.endDate] : void 0,
395
395
  timeRange: [
396
- G().tz(le).hour(Number((re = U.start) == null ? void 0 : re.hour)).minute(Number((Fe = U.start) == null ? void 0 : Fe.minute)).toISOString(),
397
- G().tz(le).hour(Number((de = U.end) == null ? void 0 : de.hour)).minute(Number((Se = U.end) == null ? void 0 : Se.minute)).endOf("minutes").toISOString()
396
+ E().tz(le).hour(Number((re = U.start) == null ? void 0 : re.hour)).minute(Number((Fe = U.start) == null ? void 0 : Fe.minute)).toISOString(),
397
+ E().tz(le).hour(Number((de = U.end) == null ? void 0 : de.hour)).minute(Number((ge = U.end) == null ? void 0 : ge.minute)).endOf("minutes").toISOString()
398
398
  ],
399
399
  businessIds: Q.value,
400
400
  restaurantIds: se,
401
- warehouseIds: $,
401
+ warehouseIds: x,
402
402
  timezone: le,
403
403
  skipStringSpaceGrouping: !!(b != null && b.batch) || vt(b),
404
404
  reportId: b == null ? void 0 : b.id,
@@ -411,7 +411,7 @@ 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([() => Ae.fetch(ce)], 2e3);
414
+ return await el([() => $e.fetch(ce)], 2e3);
415
415
  }, Wn = async ({
416
416
  widget: l,
417
417
  signal: n,
@@ -420,14 +420,14 @@ const sn = async ({
420
420
  scopedCompareDateRange: d
421
421
  }) => {
422
422
  var N, W, ae, U;
423
- const { scopePath: p, requestBusinessIds: f } = oe(ke()), { currentReport: F, editingReport: v, overviewReport: u } = Me(), { selectedNavigationTab: E, isEditorRoute: Q } = je(), _ = wt({
424
- selectedNavigationTab: E,
423
+ const { scopePath: p, requestBusinessIds: f } = oe(ke()), { currentReport: F, editingReport: v, overviewReport: u } = Me(), { selectedNavigationTab: L, isEditorRoute: Q } = je(), _ = wt({
424
+ selectedNavigationTab: L,
425
425
  isEditorRoute: Q,
426
426
  overviewReport: u,
427
427
  editingReport: v,
428
428
  currentReport: F
429
- }), O = Je(E), { restaurants: g, warehouses: c, dateRange: m, compareDateRange: b, timeRange: y, timezone: C } = Pe(), { globalFilters: R } = Ge();
430
- if (g.length === 0 && c.length === 0)
429
+ }), O = Je(L), { restaurants: S, warehouses: c, dateRange: m, compareDateRange: b, timeRange: y, timezone: C } = Pe(), { globalFilters: R } = Ge();
430
+ if (S.length === 0 && c.length === 0)
431
431
  return { totalBytesProcessed: 0 };
432
432
  const H = r ?? m, z = d ?? b;
433
433
  if (!Ke({
@@ -438,7 +438,7 @@ const sn = async ({
438
438
  timezone: C
439
439
  }))
440
440
  return { totalBytesProcessed: 0 };
441
- const q = g.map((K) => K.id), ee = c.map((K) => K.id), le = Qe(l, R, s ?? ""), Z = {
441
+ const q = S.map((K) => K.id), ee = c.map((K) => K.id), le = Qe(l, R, s ?? ""), Z = {
442
442
  fetchType: Oe.Post,
443
443
  url: `/${p.value}/v2/query/dry-run`,
444
444
  data: {
@@ -446,8 +446,8 @@ const sn = async ({
446
446
  dateRange: [H.startDate, H.endDate],
447
447
  compareDateRange: z.startDate && z.endDate ? [z.startDate, z.endDate] : void 0,
448
448
  timeRange: [
449
- G().tz(C).hour(Number((N = y.start) == null ? void 0 : N.hour)).minute(Number((W = y.start) == null ? void 0 : W.minute)).toISOString(),
450
- G().tz(C).hour(Number((ae = y.end) == null ? void 0 : ae.hour)).minute(Number((U = y.end) == null ? void 0 : U.minute)).endOf("minutes").toISOString()
449
+ E().tz(C).hour(Number((N = y.start) == null ? void 0 : N.hour)).minute(Number((W = y.start) == null ? void 0 : W.minute)).toISOString(),
450
+ E().tz(C).hour(Number((ae = y.end) == null ? void 0 : ae.hour)).minute(Number((U = y.end) == null ? void 0 : U.minute)).endOf("minutes").toISOString()
451
451
  ],
452
452
  businessIds: f.value,
453
453
  restaurantIds: q,
@@ -455,14 +455,14 @@ const sn = async ({
455
455
  timezone: C,
456
456
  skipStringSpaceGrouping: !1,
457
457
  reportId: _ == null ? void 0 : _.id,
458
- queryDatasource: lt.BigQuery
458
+ queryDatasource: nt.BigQuery
459
459
  },
460
460
  requestConfig: {
461
461
  timeout: 1e3 * 60,
462
462
  signal: n
463
463
  }
464
464
  };
465
- return Ae.fetch(Z);
465
+ return $e.fetch(Z);
466
466
  }, rn = async ({
467
467
  widget: l,
468
468
  signal: n,
@@ -475,12 +475,12 @@ const sn = async ({
475
475
  pageRead: v,
476
476
  search: u
477
477
  }) => {
478
- var de, Se, ne, L;
479
- const { scopePath: E, requestBusinessIds: Q, country: _ } = oe(ke()), { currentReport: O, editingReport: g, overviewReport: c } = Me(), { selectedNavigationTab: m, isEditorRoute: b } = je(), y = wt({
478
+ var de, ge, ne, P;
479
+ const { scopePath: L, requestBusinessIds: Q, country: _ } = oe(ke()), { currentReport: O, editingReport: S, overviewReport: c } = Me(), { selectedNavigationTab: m, isEditorRoute: b } = je(), y = wt({
480
480
  selectedNavigationTab: m,
481
481
  isEditorRoute: b,
482
482
  overviewReport: c,
483
- editingReport: g,
483
+ editingReport: S,
484
484
  currentReport: O
485
485
  }), C = Je(m);
486
486
  if (vt(y))
@@ -518,26 +518,26 @@ const sn = async ({
518
518
  timezone: Z
519
519
  }))
520
520
  return null;
521
- const $ = (r == null ? void 0 : r.filter((Te) => N.some((me) => me.id === Te))) ?? R, k = (r == null ? void 0 : r.filter((Te) => W.some((me) => me.id === Te))) ?? H, ce = Qe(l, se, s ?? ""), ue = {
521
+ const x = (r == null ? void 0 : r.filter((Te) => N.some((me) => me.id === Te))) ?? R, k = (r == null ? void 0 : r.filter((Te) => W.some((me) => me.id === Te))) ?? H, ce = Qe(l, se, s ?? ""), ue = {
522
522
  fetchType: Oe.Post,
523
- url: `/${E.value}/postgres-query`,
524
- data: St.getQueryRequests({
523
+ url: `/${L.value}/postgres-query`,
524
+ data: gt.getQueryRequests({
525
525
  widget: ce,
526
526
  dateRange: [U.startDate, U.endDate],
527
527
  compareDateRange: ee.startDate && ee.endDate ? [ee.startDate, ee.endDate] : void 0,
528
528
  timeRange: [
529
- G().tz(Z).hour(Number((de = K.start) == null ? void 0 : de.hour)).minute(Number((Se = K.start) == null ? void 0 : Se.minute)).toISOString(),
530
- G().tz(Z).hour(Number((ne = K.end) == null ? void 0 : ne.hour)).minute(Number((L = K.end) == null ? void 0 : L.minute)).endOf("minutes").toISOString()
529
+ E().tz(Z).hour(Number((de = K.start) == null ? void 0 : de.hour)).minute(Number((ge = K.start) == null ? void 0 : ge.minute)).toISOString(),
530
+ E().tz(Z).hour(Number((ne = K.end) == null ? void 0 : ne.hour)).minute(Number((P = K.end) == null ? void 0 : P.minute)).endOf("minutes").toISOString()
531
531
  ],
532
532
  businessIds: Q.value,
533
- restaurantIds: $,
533
+ restaurantIds: x,
534
534
  warehouseIds: k,
535
535
  timezone: Z
536
536
  }).map((Te, me) => {
537
537
  const Be = me === 0 ? 3e3 : 12e3;
538
538
  return {
539
539
  ...Te,
540
- limit: $.length > 50 ? l.config.limit || Be : l.config.limit,
540
+ limit: x.length > 50 ? l.config.limit || Be : l.config.limit,
541
541
  skipStringSpaceGrouping: !!(y != null && y.batch) || vt(y),
542
542
  reportId: y == null ? void 0 : y.id
543
543
  };
@@ -546,8 +546,8 @@ const sn = async ({
546
546
  timeout: 1e3 * 60 * 5,
547
547
  signal: n
548
548
  }
549
- }, re = [() => Ae.fetch(ue)];
550
- R.length < 50 && re.push(() => Ae.fetch(ue)), re.push(() => Ae.fetch(ue));
549
+ }, re = [() => $e.fetch(ue)];
550
+ R.length < 50 && re.push(() => $e.fetch(ue)), re.push(() => $e.fetch(ue));
551
551
  const Fe = await el(re, 2e3);
552
552
  return (await Kl(jl, {
553
553
  responses: Fe,
@@ -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()), E = Pe(), { compareDateRange: Q } = oe(E), { restaurants: _, warehouses: O, timezone: g } = E, { 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 } = Ht(), { getTileSearch: R } = Hl();
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);
@@ -574,39 +574,39 @@ const sn = async ({
574
574
  pageSubject: ee,
575
575
  dateRange: f,
576
576
  compareDateRange: Q.value,
577
- timezone: g
577
+ timezone: S
578
578
  }))
579
579
  return;
580
- const le = F ?? c, Z = z.filter(($, k) => typeof n == "number" ? k === n : !0).map(($) => Qe($.widget, le, $.id)), N = {
580
+ const le = F ?? c, Z = z.filter((x, k) => typeof n == "number" ? k === n : !0).map((x) => Qe(x.widget, le, x.id)), N = {
581
581
  fetchType: Oe.Post,
582
582
  url: `/${v.value}/file?lang=${xe()}`,
583
583
  data: {
584
584
  configs: [
585
- ...Z.map(($, k) => {
586
- var re, Fe, de, Se;
587
- const ce = R(n ?? k), ue = St.getQueryRequests({
588
- widget: $,
585
+ ...Z.map((x, k) => {
586
+ var re, Fe, de, ge;
587
+ const ce = R(n ?? k), ue = gt.getQueryRequests({
588
+ widget: x,
589
589
  dateRange: [f.startDate, f.endDate],
590
590
  compareDateRange: Q.value.startDate && Q.value.endDate ? [Q.value.startDate, Q.value.endDate] : void 0,
591
591
  timeRange: [
592
- G().tz(g).set("hour", Number((re = p.start) == null ? void 0 : re.hour)).set("minute", Number((Fe = p.start) == null ? void 0 : Fe.minute)).toISOString(),
593
- G().tz(g).set("hour", Number((de = p.end) == null ? void 0 : de.hour)).set("minute", Number((Se = p.end) == null ? void 0 : Se.minute)).toISOString()
592
+ E().tz(S).set("hour", Number((re = p.start) == null ? void 0 : re.hour)).set("minute", Number((Fe = p.start) == null ? void 0 : Fe.minute)).toISOString(),
593
+ E().tz(S).set("hour", Number((de = p.end) == null ? void 0 : de.hour)).set("minute", Number((ge = p.end) == null ? void 0 : ge.minute)).toISOString()
594
594
  ],
595
595
  businessIds: u.value,
596
596
  restaurantIds: d.filter(
597
- (ne) => _.find((L) => L.id === ne)
597
+ (ne) => _.find((P) => P.id === ne)
598
598
  ),
599
599
  warehouseIds: d.filter(
600
- (ne) => O.find((L) => L.id === ne)
600
+ (ne) => O.find((P) => P.id === ne)
601
601
  ),
602
- timezone: g
602
+ timezone: S
603
603
  });
604
604
  return {
605
605
  // Every request, like the query API's search; the file service filters it in memory.
606
606
  requests: ce ? ue.map((ne) => ({ ...ne, search: ce })) : ue,
607
607
  index: n || k,
608
608
  drillDimension: null,
609
- ...Xt($),
609
+ ...Xt(x),
610
610
  globalSorts: C(n ?? k)
611
611
  };
612
612
  })
@@ -620,7 +620,7 @@ const sn = async ({
620
620
  responseType: "arraybuffer",
621
621
  timeout: 1e3 * 60 * 60 * 24
622
622
  }
623
- }, { headers: W, data: ae } = await gt.rawFetch(N), U = W["content-disposition"].split("filename=")[1].replaceAll('"', ""), K = window.URL.createObjectURL(new Blob([new Uint8Array(ae).buffer])), se = document.createElement("a");
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
625
  }, jn = async ({
626
626
  emails: l,
@@ -633,14 +633,14 @@ const sn = async ({
633
633
  attachFiles: F,
634
634
  globalFilters: v
635
635
  }) => {
636
- const { businessId: u, scopePath: E, requestBusinessIds: Q } = oe(ke()), { currentReport: _, overviewReport: O } = Me(), { selectedNavigationTab: g } = 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 } = Ht();
637
637
  if (l.length === 0) {
638
638
  console.error("No email addresses provided.");
639
639
  return;
640
640
  }
641
641
  let z = (_ == null ? void 0 : _.id) || "", q = (_ == null ? void 0 : _.name) || "", ee = Ue(_ == null ? void 0 : _.tiles);
642
- g === "overview" && O && (z = O == null ? void 0 : O.id, q = O.name, ee = Ue(O == null ? void 0 : O.tiles));
643
- const le = g === "overview" && O ? O : _, Z = Je(g);
642
+ S === "overview" && O && (z = O == null ? void 0 : O.id, q = O.name, ee = Ue(O == null ? void 0 : O.tiles));
643
+ const le = S === "overview" && O ? O : _, Z = Je(S);
644
644
  if (!Ke({
645
645
  report: le,
646
646
  pageSubject: Z,
@@ -659,15 +659,15 @@ const sn = async ({
659
659
  reportName: q,
660
660
  emails: l,
661
661
  configs: W.map((U, K) => {
662
- var se, $, k, ce;
662
+ var se, x, k, ce;
663
663
  return {
664
- requests: St.getQueryRequests({
664
+ requests: gt.getQueryRequests({
665
665
  widget: U,
666
666
  dateRange: [s.startDate, s.endDate],
667
667
  compareDateRange: m.value.startDate && m.value.endDate ? [m.value.startDate, m.value.endDate] : void 0,
668
668
  timeRange: [
669
- G().tz(C).hour(Number((se = r.start) == null ? void 0 : se.hour)).minute(Number(($ = r.start) == null ? void 0 : $.minute)).toISOString(),
670
- G().tz(C).hour(Number((k = r.end) == null ? void 0 : k.hour)).minute(Number((ce = r.end) == null ? void 0 : ce.minute)).endOf("minutes").toISOString()
669
+ E().tz(C).hour(Number((se = r.start) == null ? void 0 : se.hour)).minute(Number((x = r.start) == null ? void 0 : x.minute)).toISOString(),
670
+ E().tz(C).hour(Number((k = r.end) == null ? void 0 : k.hour)).minute(Number((ce = r.end) == null ? void 0 : ce.minute)).endOf("minutes").toISOString()
671
671
  ],
672
672
  businessIds: Q.value,
673
673
  restaurantIds: d.filter(
@@ -690,15 +690,15 @@ const sn = async ({
690
690
  isCombinedLocationLayout: f,
691
691
  attachFiles: F
692
692
  };
693
- await gt.fetch({
693
+ await St.fetch({
694
694
  fetchType: Oe.Post,
695
- url: `/${E.value}/reports/email?lang=${xe()}`,
695
+ url: `/${L.value}/reports/email?lang=${xe()}`,
696
696
  data: ae,
697
697
  requestConfig: { timeout: 1e3 * 60 * 3 }
698
698
  });
699
699
  }, Qn = async (l) => {
700
700
  const { scopePath: n } = oe(ke());
701
- await gt.fetch({
701
+ await St.fetch({
702
702
  fetchType: Oe.Post,
703
703
  url: `/${n.value}/reports/resend-email?lang=${xe()}`,
704
704
  data: { jobId: l },
@@ -706,19 +706,19 @@ const sn = async ({
706
706
  });
707
707
  }, Kn = async () => {
708
708
  const { scopePath: l } = oe(ke());
709
- return await Ae.fetch({
709
+ return await $e.fetch({
710
710
  fetchType: Oe.Get,
711
711
  url: `/${l.value}/reports/email-recipients`
712
712
  });
713
713
  }, Jn = async (l) => {
714
714
  const { scopePath: n } = oe(ke());
715
- await Ae.fetch({
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
720
  }, on = "mf-reportwidget-result-store", un = Ft(on, () => {
721
- const l = ye({}), n = ye(0), s = ge(() => n.value === 0);
721
+ const l = ye({}), n = ye(0), s = Se(() => n.value === 0);
722
722
  function r() {
723
723
  n.value += 1;
724
724
  }
@@ -730,8 +730,8 @@ const sn = async ({
730
730
  if (u === null)
731
731
  l.value[v] = [];
732
732
  else {
733
- const E = l.value[v] ?? [];
734
- l.value[v] = Array.from(/* @__PURE__ */ new Set([...E, ...u]));
733
+ const L = l.value[v] ?? [];
734
+ l.value[v] = Array.from(/* @__PURE__ */ new Set([...L, ...u]));
735
735
  }
736
736
  }
737
737
  function f(v) {
@@ -750,16 +750,16 @@ const sn = async ({
750
750
  getWidgetResult: f,
751
751
  clearAllWidgetResults: F
752
752
  };
753
- }), Wt = (l, n = "en") => G().set("hour", l.hour).set("minute", l.minute).locale(n).format("h:mm A"), cn = (l, n) => {
754
- const s = G().set("hour", l.hour).set("minute", l.minute);
755
- return G().set("hour", n.hour).set("minute", n.minute) < s ? "+1" : "";
753
+ }), Wt = (l, n = "en") => E().set("hour", l.hour).set("minute", l.minute).locale(n).format("h:mm A"), cn = (l, n) => {
754
+ const s = E().set("hour", l.hour).set("minute", l.minute);
755
+ return E().set("hour", n.hour).set("minute", n.minute) < s ? "+1" : "";
756
756
  };
757
757
  function Ut(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" }, Sn = /* @__PURE__ */ yt({
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({
761
761
  __name: "TimeRangeSelect",
762
- props: /* @__PURE__ */ nt({
762
+ props: /* @__PURE__ */ at({
763
763
  defaultDateRange: {
764
764
  type: Array,
765
765
  default: () => [
@@ -797,14 +797,14 @@ const dn = { class: "px-24 py-16 rounded-lg shadow-light-300" }, mn = { class: "
797
797
  },
798
798
  selectTimeDefaultModifiers: {}
799
799
  }),
800
- emits: /* @__PURE__ */ nt(["update", "chip-closed"], ["update:timeRange", "update:selectTimeDefault"]),
800
+ emits: /* @__PURE__ */ at(["update", "chip-closed"], ["update:timeRange", "update:selectTimeDefault"]),
801
801
  setup(l, { emit: n }) {
802
802
  const { t: s, locale: r } = Jt(), d = ft(l, "timeRange"), p = n, f = ft(l, "selectTimeDefault");
803
- function F(g) {
804
- g && (d.value = g, p("update", d.value)), Q.value = !1;
803
+ function F(S) {
804
+ S && (d.value = S, p("update", d.value)), Q.value = !1;
805
805
  }
806
- function v(g) {
807
- const c = g.split(":"), m = G().set("hour", Number(c[0])).set("minute", Number(c[1]));
806
+ function v(S) {
807
+ const c = S.split(":"), m = E().set("hour", Number(c[0])).set("minute", Number(c[1]));
808
808
  return {
809
809
  hours: Number(m.format("h")),
810
810
  minutes: Number(m.format("m")),
@@ -812,34 +812,34 @@ const dn = { class: "px-24 py-16 rounded-lg shadow-light-300" }, mn = { class: "
812
812
  };
813
813
  }
814
814
  const u = ye(JSON.parse(JSON.stringify(d.value)));
815
- function E(g, c) {
816
- u.value.start = JSON.parse(JSON.stringify(g)), u.value.end = JSON.parse(JSON.stringify(c));
815
+ function L(S, c) {
816
+ u.value.start = JSON.parse(JSON.stringify(S)), u.value.end = JSON.parse(JSON.stringify(c));
817
817
  }
818
- Ie(
818
+ Ae(
819
819
  () => [d.value, l.defaultDateRange],
820
820
  () => {
821
821
  if (d.value) {
822
- const g = l.defaultDateRange.findIndex(
822
+ const S = l.defaultDateRange.findIndex(
823
823
  (c) => {
824
824
  var m, b, y, C;
825
825
  return c.startTime.hour === ((m = d.value.start) == null ? void 0 : m.hour) && c.startTime.minute === ((b = d.value.start) == null ? void 0 : b.minute) && c.endTime.hour === ((y = d.value.end) == null ? void 0 : y.hour) && c.endTime.minute === ((C = d.value.end) == null ? void 0 : C.minute);
826
826
  }
827
827
  ) + 1;
828
- g !== 0 ? f.value = g : f.value = l.defaultDateRange.length + 1;
828
+ S !== 0 ? f.value = S : f.value = l.defaultDateRange.length + 1;
829
829
  }
830
830
  },
831
831
  { deep: !0, immediate: !0 }
832
832
  );
833
833
  const Q = ye(!1);
834
- function _(g) {
835
- p("chip-closed", g);
834
+ function _(S) {
835
+ p("chip-closed", S);
836
836
  }
837
- const O = ge(() => l.label ? l.label : Qt({
837
+ const O = Se(() => l.label ? l.label : Qt({
838
838
  startTime: d.value.start,
839
839
  endTime: d.value.end,
840
840
  locale: r.value
841
841
  }));
842
- return (g, c) => {
842
+ return (S, c) => {
843
843
  const m = te("FmChip"), b = te("FmRadio"), y = te("FmMenuDivider"), C = te("FmRadioGroup"), R = te("FmTimeInput"), H = te("FmButton"), z = te("FmPopover");
844
844
  return X(), he("div", null, [
845
845
  M(z, {
@@ -868,17 +868,17 @@ const dn = { class: "px-24 py-16 rounded-lg shadow-light-300" }, mn = { class: "
868
868
  key: `range_${W}`,
869
869
  value: W + 1,
870
870
  label: D(Ut)(N, D(s)),
871
- onClick: (ae) => E(N.startTime, N.endTime)
871
+ onClick: (ae) => L(N.startTime, N.endTime)
872
872
  }, {
873
873
  label: ie(() => [
874
874
  Y("p", mn, [
875
- at(ve(D(Ut)(N, D(s))) + " ", 1),
875
+ st(ve(D(Ut)(N, D(s))) + " ", 1),
876
876
  xl(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
- [Al, N.isDefault]
881
+ [$l, N.isDefault]
882
882
  ])
883
883
  ]),
884
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)
@@ -901,7 +901,7 @@ const dn = { class: "px-24 py-16 rounded-lg shadow-light-300" }, mn = { class: "
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) => {
903
903
  if (u.value.start) {
904
- const W = D(G)(`${N.hours}:${N.minutes} ${N.period}`, "h:m A").locale(
904
+ const W = D(E)(`${N.hours}:${N.minutes} ${N.period}`, "h:m A").locale(
905
905
  D(xe)()
906
906
  );
907
907
  u.value.start.hour = W.get("hour"), u.value.start.minute = W.get("minute");
@@ -915,7 +915,7 @@ const dn = { class: "px-24 py-16 rounded-lg shadow-light-300" }, mn = { class: "
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) => {
917
917
  if (u.value.end) {
918
- const W = D(G)(`${N.hours}:${N.minutes} ${N.period}`, "h:m A").locale(
918
+ const W = D(E)(`${N.hours}:${N.minutes} ${N.period}`, "h:m A").locale(
919
919
  D(xe)()
920
920
  );
921
921
  u.value.end.hour = W.get("hour"), u.value.end.minute = W.get("minute");
@@ -946,7 +946,7 @@ const dn = { class: "px-24 py-16 rounded-lg shadow-light-300" }, mn = { class: "
946
946
  }
947
947
  }), Yn = /* @__PURE__ */ yt({
948
948
  __name: "BaseDialog",
949
- props: /* @__PURE__ */ nt({
949
+ props: /* @__PURE__ */ at({
950
950
  title: {
951
951
  type: String,
952
952
  default: "Title"
@@ -963,10 +963,10 @@ 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__ */ nt(["confirm"], ["update:modelValue"]),
966
+ emits: /* @__PURE__ */ at(["confirm"], ["update:modelValue"]),
967
967
  setup(l, { emit: n }) {
968
968
  const s = ft(l, "modelValue"), r = l, d = n;
969
- return Ie(s, () => {
969
+ return Ae(s, () => {
970
970
  s.value ? document.body.style.overflow = "hidden" : document.body.style.overflow = "scroll";
971
971
  }), (p, f) => {
972
972
  const F = te("FmButton"), v = te("FmDialog");
@@ -976,7 +976,7 @@ 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
- at(ve(r.title), 1)
979
+ st(ve(r.title), 1)
980
980
  ]),
981
981
  default: ie(() => [
982
982
  jt(p.$slots, "content")
@@ -999,8 +999,8 @@ const dn = { class: "px-24 py-16 rounded-lg shadow-light-300" }, mn = { class: "
999
999
  };
1000
1000
  }
1001
1001
  });
1002
- var $e = /* @__PURE__ */ ((l) => (l.Select = "Select", l.TextField = "TextField", l.Timestamp = "Timestamp", l))($e || {});
1003
- function gn(l) {
1002
+ var Ie = /* @__PURE__ */ ((l) => (l.Select = "Select", l.TextField = "TextField", l.Timestamp = "Timestamp", l))(Ie || {});
1003
+ function Sn(l) {
1004
1004
  let n = !1, s = 1;
1005
1005
  switch (l) {
1006
1006
  case j.Equal:
@@ -1030,7 +1030,7 @@ function Hn({
1030
1030
  dataType: s,
1031
1031
  t: r
1032
1032
  }) {
1033
- const { fixed: d, count: p } = gn(l);
1033
+ const { fixed: d, count: p } = Sn(l);
1034
1034
  switch (s) {
1035
1035
  case be.String:
1036
1036
  return {
@@ -1104,7 +1104,7 @@ function tl({
1104
1104
  switch (l) {
1105
1105
  case B.HourOfDay:
1106
1106
  return {
1107
- type: $e.Select,
1107
+ type: Ie.Select,
1108
1108
  fixed: n,
1109
1109
  count: s,
1110
1110
  options: Array.from({ length: 24 }, (d, p) => ({
@@ -1115,7 +1115,7 @@ function tl({
1115
1115
  };
1116
1116
  case B.DayOfWeek:
1117
1117
  return {
1118
- type: $e.Select,
1118
+ type: Ie.Select,
1119
1119
  fixed: n,
1120
1120
  count: s,
1121
1121
  options: [
@@ -1131,7 +1131,7 @@ function tl({
1131
1131
  };
1132
1132
  case B.DayOfMonth:
1133
1133
  return {
1134
- type: $e.Select,
1134
+ type: Ie.Select,
1135
1135
  fixed: n,
1136
1136
  count: s,
1137
1137
  options: Array.from({ length: 31 }, (d, p) => ({
@@ -1142,7 +1142,7 @@ function tl({
1142
1142
  };
1143
1143
  case B.MonthOfYear:
1144
1144
  return {
1145
- type: $e.Select,
1145
+ type: Ie.Select,
1146
1146
  fixed: n,
1147
1147
  count: s,
1148
1148
  options: [
@@ -1163,7 +1163,7 @@ function tl({
1163
1163
  };
1164
1164
  default:
1165
1165
  return {
1166
- type: $e.Timestamp,
1166
+ type: Ie.Timestamp,
1167
1167
  fixed: n,
1168
1168
  count: s,
1169
1169
  default: (/* @__PURE__ */ new Date()).toISOString()
@@ -1180,12 +1180,12 @@ function pt({
1180
1180
  count: 1,
1181
1181
  t: n
1182
1182
  });
1183
- return s.type !== $e.Select ? [] : [{ label: n("report.input.unknown"), value: "" }, ...s.options];
1183
+ return s.type !== Ie.Select ? [] : [{ label: n("report.input.unknown"), value: "" }, ...s.options];
1184
1184
  }
1185
1185
  const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-flex max-w-[460px]" }, Dn = {
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" }, In = { class: "flex items-center justify-between" }, $n = { 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
+ }, 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({
1189
1189
  __name: "GlobalFilterSelect",
1190
1190
  props: {
1191
1191
  globalFilterId: {},
@@ -1198,22 +1198,22 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1198
1198
  },
1199
1199
  setup(l) {
1200
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: E } = oe(Ge()), { schemas: Q } = oe(ql()), {
1201
+ let { timeRange: f, dateRange: F, selectedLocationIds: v, timezone: u } = oe(Pe()), { globalFilters: L } = oe(Ge()), { schemas: Q } = oe(ql()), {
1202
1202
  showMore: _,
1203
1203
  getGlobalFilter: O,
1204
- setGlobalFilter: g,
1204
+ setGlobalFilter: S,
1205
1205
  setIncludeUnavailable: c,
1206
1206
  getGlobalFilterKey: m,
1207
1207
  isMenuOpen: b,
1208
1208
  getGlobalFilterLabel: y,
1209
1209
  incrementAppliedTilesFiltersVersion: C
1210
1210
  } = Ge();
1211
- const R = ge(() => s("report.input.empty")), H = ["NULL", "", " "];
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 = ge(() => {
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(() => {
1214
1214
  var e;
1215
1215
  return n.globalFilterId ?? ((e = d.value) == null ? void 0 : e.id) ?? "";
1216
- }), se = ge(() => n.report ?? d.value), $ = ye([]);
1216
+ }), se = Se(() => n.report ?? d.value), x = ye([]);
1217
1217
  function k(e) {
1218
1218
  return `${K.value}|instance:${e}`;
1219
1219
  }
@@ -1224,25 +1224,25 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1224
1224
  return (e == null ? void 0 : e.startDate) === (t == null ? void 0 : t.startDate) && (e == null ? void 0 : e.endDate) === (t == null ? void 0 : t.endDate);
1225
1225
  }
1226
1226
  function re(e, t) {
1227
- var o, a, h, T, S, x, P, I;
1228
- return ((o = e == null ? void 0 : e.start) == null ? void 0 : o.hour) === ((a = t == null ? void 0 : t.start) == null ? void 0 : a.hour) && ((h = e == null ? void 0 : e.start) == null ? void 0 : h.minute) === ((T = t == null ? void 0 : t.start) == null ? void 0 : T.minute) && ((S = e == null ? void 0 : e.end) == null ? void 0 : S.hour) === ((x = t == null ? void 0 : t.end) == null ? void 0 : x.hour) && ((P = e == null ? void 0 : e.end) == null ? void 0 : P.minute) === ((I = t == null ? void 0 : t.end) == null ? void 0 : I.minute);
1227
+ var o, a, h, T, g, $, A, I;
1228
+ return ((o = e == null ? void 0 : e.start) == null ? void 0 : o.hour) === ((a = t == null ? void 0 : t.start) == null ? void 0 : a.hour) && ((h = e == null ? void 0 : e.start) == null ? void 0 : h.minute) === ((T = t == null ? void 0 : t.start) == null ? void 0 : T.minute) && ((g = e == null ? void 0 : e.end) == null ? void 0 : g.hour) === (($ = t == null ? void 0 : t.end) == null ? void 0 : $.hour) && ((A = e == null ? void 0 : e.end) == null ? void 0 : A.minute) === ((I = t == null ? void 0 : t.end) == null ? void 0 : I.minute);
1229
1229
  }
1230
1230
  function Fe(e, t) {
1231
1231
  return !e || !t ? e === t : e.length === t.length && e.every((o, a) => o === t[a]);
1232
1232
  }
1233
- const de = ge(() => {
1233
+ const de = Se(() => {
1234
1234
  if (!(n.isDialogGlobalFilter || !!p.value))
1235
1235
  return !1;
1236
1236
  const t = n.dateRange ?? F.value, o = n.timeRange ?? f.value, a = n.locationIds ?? v.value;
1237
1237
  return ue(t, F.value) && re(o, f.value) && Fe(a, v.value);
1238
1238
  });
1239
- function Se(e) {
1240
- return e ? [...e.tileIds ?? []] : Array.from(new Set(Ze.value.flatMap((t) => t.tileIds ?? [])));
1239
+ function ge(e) {
1240
+ return e ? [...e.tileIds ?? []] : Array.from(new Set(Xe.value.flatMap((t) => t.tileIds ?? [])));
1241
1241
  }
1242
1242
  function ne(e) {
1243
- n.isDialogGlobalFilter || C(Se(e));
1243
+ n.isDialogGlobalFilter || C(ge(e));
1244
1244
  }
1245
- function L(e) {
1245
+ function P(e) {
1246
1246
  return e.filter((t) => t !== we);
1247
1247
  }
1248
1248
  function Te(e) {
@@ -1261,11 +1261,11 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1261
1261
  return t != null && t.length ? t : e.selectedValues || [];
1262
1262
  }
1263
1263
  function Be(e) {
1264
- e.selectedValues = [], e.globalFilter.values = [], g(e.globalFilter, k(e.id), { selectedValues: [] });
1264
+ e.selectedValues = [], e.globalFilter.values = [], S(e.globalFilter, k(e.id), { selectedValues: [] });
1265
1265
  }
1266
- function st(e) {
1266
+ function rt(e) {
1267
1267
  const t = Ye(e);
1268
- e.selectedValues = [...t], e.globalFilter.values = ul(e), g(e.globalFilter, k(e.id), {
1268
+ e.selectedValues = [...t], e.globalFilter.values = ul(e), S(e.globalFilter, k(e.id), {
1269
1269
  selectedValues: t
1270
1270
  });
1271
1271
  }
@@ -1276,11 +1276,11 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1276
1276
  e.keepSelection || Be(e);
1277
1277
  }
1278
1278
  function nl(e) {
1279
- const t = L(me(e));
1279
+ const t = P(me(e));
1280
1280
  U.value[e.id] = [...t], Be(e);
1281
1281
  }
1282
1282
  function al() {
1283
- var a, h, T, S;
1283
+ var a, h, T, g;
1284
1284
  const e = F.value, t = f.value, o = v.value || [];
1285
1285
  return JSON.stringify({
1286
1286
  globalFilterId: K.value,
@@ -1289,19 +1289,19 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1289
1289
  startHour: ((a = t == null ? void 0 : t.start) == null ? void 0 : a.hour) ?? null,
1290
1290
  startMinute: ((h = t == null ? void 0 : t.start) == null ? void 0 : h.minute) ?? null,
1291
1291
  endHour: ((T = t == null ? void 0 : t.end) == null ? void 0 : T.hour) ?? null,
1292
- endMinute: ((S = t == null ? void 0 : t.end) == null ? void 0 : S.minute) ?? null,
1292
+ endMinute: ((g = t == null ? void 0 : t.end) == null ? void 0 : g.minute) ?? null,
1293
1293
  locationIds: o
1294
1294
  });
1295
1295
  }
1296
1296
  function Ye(e) {
1297
1297
  const t = e.selectedValues || [];
1298
- return Ve(t) ? [we] : e.keepSelection ? L(t) : t;
1298
+ return Ve(t) ? [we] : e.keepSelection ? P(t) : t;
1299
1299
  }
1300
1300
  function fe(e) {
1301
- const t = L(e.selectedValues || []);
1301
+ const t = P(e.selectedValues || []);
1302
1302
  if (t.length)
1303
1303
  return t.map((a) => String(a));
1304
- const o = L(
1304
+ const o = P(
1305
1305
  O(e.globalFilter, k(e.id)).selectedValues
1306
1306
  );
1307
1307
  return o.length ? o.map((a) => String(a)) : (e.globalFilter.values ?? []).map((a) => String(a));
@@ -1309,14 +1309,14 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1309
1309
  function sl(e) {
1310
1310
  if (Ve(e.selectedValues || []))
1311
1311
  return [we];
1312
- const t = L(e.selectedValues || []);
1312
+ const t = P(e.selectedValues || []);
1313
1313
  if (t.length)
1314
1314
  return t;
1315
1315
  const o = O(
1316
1316
  e.globalFilter,
1317
1317
  k(e.id)
1318
1318
  ).selectedValues;
1319
- return Ve(o || []) ? [we] : L(o);
1319
+ return Ve(o || []) ? [we] : P(o);
1320
1320
  }
1321
1321
  function Ve(e) {
1322
1322
  return e.includes(we);
@@ -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 rt(e) {
1327
+ function ot(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,19 +1336,19 @@ 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 ot(e) {
1339
+ function it(e) {
1340
1340
  return (e.options || []).map((t) => t.value);
1341
1341
  }
1342
- function it(e) {
1343
- return ot(e).length > 0;
1342
+ function ut(e) {
1343
+ return it(e).length > 0;
1344
1344
  }
1345
1345
  function Ee(e) {
1346
- const t = L(e.selectedValues || []);
1347
- return t.length ? t : Ve(e.selectedValues || []) ? [] : it(e) ? ot(e) : [];
1346
+ const t = P(e.selectedValues || []);
1347
+ return t.length ? t : Ve(e.selectedValues || []) ? [] : ut(e) ? it(e) : [];
1348
1348
  }
1349
- function ut(e, t) {
1349
+ function He(e, t) {
1350
1350
  const o = new Set((e.options || []).map((a) => a.value));
1351
- return L(t).filter((a) => o.has(a));
1351
+ return P(t).filter((a) => o.has(a));
1352
1352
  }
1353
1353
  function rl(e) {
1354
1354
  const o = O(e.globalFilter, k(e.id)).selectedValues, a = n.isDialogGlobalFilter ? sl(e) : [];
@@ -1357,70 +1357,74 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1357
1357
  if (Ve(o || []))
1358
1358
  return [we];
1359
1359
  if ((e.options || []).map((T) => T.value).length > 0) {
1360
- const T = ut(
1360
+ const T = He(
1361
1361
  e,
1362
1362
  a
1363
1363
  );
1364
1364
  if (T.length)
1365
1365
  return T;
1366
- const S = ut(e, o);
1367
- if (S.length)
1368
- return S;
1366
+ const g = He(e, o);
1367
+ if (g.length)
1368
+ return g;
1369
1369
  if (e.keepSelection) {
1370
- const x = ut(
1370
+ const A = He(
1371
1371
  e,
1372
1372
  me(e)
1373
1373
  );
1374
- if (x.length)
1375
- return x;
1374
+ if (A.length)
1375
+ return A;
1376
1376
  }
1377
- return [];
1377
+ const $ = He(
1378
+ e,
1379
+ e.globalFilter.defaultValues ?? []
1380
+ );
1381
+ return $.length ? $ : [];
1378
1382
  }
1379
1383
  return a.length ? [...a] : o.length ? [...o] : e.keepSelection ? me(e) : [];
1380
1384
  }
1381
1385
  function ol(e, t) {
1382
- const o = new Set(L(t));
1386
+ const o = new Set(P(t));
1383
1387
  if (!o.size) return !1;
1384
1388
  const a = (e.options || []).map((h) => h.value);
1385
1389
  return a.length ? a.every((h) => o.has(h)) : !1;
1386
1390
  }
1387
1391
  function il(e) {
1388
1392
  const t = e.selectedValues || [];
1389
- return Ve(t) || !it(e) ? !1 : L(t).length === 0;
1393
+ return Ve(t) || !ut(e) ? !1 : P(t).length === 0;
1390
1394
  }
1391
1395
  function ul(e) {
1392
- const t = Ye(e), o = L(t), a = Te(o), h = Ve(t);
1396
+ const t = Ye(e), o = P(t), a = Te(o), h = Ve(t);
1393
1397
  if (il(e))
1394
1398
  return [];
1395
1399
  if (ol(e, t))
1396
1400
  return [];
1397
1401
  if (!e.keepSelection || n.isDialogGlobalFilter)
1398
1402
  return a.length ? a : h ? [Ce] : [];
1399
- if (!it(e))
1403
+ if (!ut(e))
1400
1404
  return a.length ? a : h ? [Ce] : [];
1401
1405
  const T = new Set(
1402
- (e.options || []).filter((P) => P.available !== !1).map((P) => P.value)
1403
- ), S = o.filter(
1404
- (P) => T.has(P)
1405
- ), x = Te(S);
1406
- return x.length ? x : h ? [Ce] : [];
1406
+ (e.options || []).filter((A) => A.available !== !1).map((A) => A.value)
1407
+ ), g = o.filter(
1408
+ (A) => T.has(A)
1409
+ ), $ = Te(g);
1410
+ return $.length ? $ : h ? [Ce] : [];
1407
1411
  }
1408
- function He(e) {
1412
+ function Ze(e) {
1409
1413
  const t = U.value[e.id];
1410
1414
  if (t) {
1411
- e.selectedValues = [...t], st(e), delete U.value[e.id];
1415
+ e.selectedValues = [...t], rt(e), delete U.value[e.id];
1412
1416
  return;
1413
1417
  }
1414
- e.selectedValues = rl(e), st(e);
1418
+ e.selectedValues = rl(e), rt(e);
1415
1419
  }
1416
1420
  function cl() {
1417
- $.value.forEach((e) => {
1421
+ x.value.forEach((e) => {
1418
1422
  de.value || Dt(e);
1419
1423
  });
1420
1424
  }
1421
1425
  function dl() {
1422
1426
  const e = al();
1423
- ae.value !== e && $.value.forEach((o) => {
1427
+ ae.value !== e && x.value.forEach((o) => {
1424
1428
  if (o.keepSelection) {
1425
1429
  nl(o);
1426
1430
  return;
@@ -1428,7 +1432,7 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1428
1432
  Dt(o);
1429
1433
  }), ae.value = e;
1430
1434
  }
1431
- const Ze = ge(() => n.globalFilters ?? E.value);
1435
+ const Xe = Se(() => n.globalFilters ?? L.value);
1432
1436
  function ml(e) {
1433
1437
  return {
1434
1438
  schemaName: e.schemaName,
@@ -1460,15 +1464,15 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1460
1464
  };
1461
1465
  }
1462
1466
  function hl() {
1463
- $.value = Ze.value.map(
1467
+ x.value = Xe.value.map(
1464
1468
  (e, t) => fl(e, t)
1465
1469
  );
1466
1470
  }
1467
- const bl = ge(
1468
- () => JSON.stringify(pl(Ze.value))
1469
- ), vl = ge(() => {
1470
- const e = Ze.value.map(
1471
- (t) => Pt(t, It())
1471
+ const bl = Se(
1472
+ () => JSON.stringify(pl(Xe.value))
1473
+ ), vl = Se(() => {
1474
+ const e = Xe.value.map(
1475
+ (t) => Pt(t, At())
1472
1476
  );
1473
1477
  return JSON.stringify(
1474
1478
  e.map((t) => ({
@@ -1477,18 +1481,18 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1477
1481
  }))
1478
1482
  );
1479
1483
  });
1480
- Ie(
1484
+ Ae(
1481
1485
  () => ({
1482
1486
  globalFilterId: K.value,
1483
1487
  globalFiltersConfigSignature: bl.value
1484
1488
  }),
1485
1489
  (e, t) => {
1486
- t && t.globalFilterId !== e.globalFilterId && $.value.forEach((o) => {
1490
+ t && t.globalFilterId !== e.globalFilterId && x.value.forEach((o) => {
1487
1491
  o.options = [];
1488
- }), hl(), t && t.globalFiltersConfigSignature !== e.globalFiltersConfigSignature && ne(), Z.value && et();
1492
+ }), hl(), t && t.globalFiltersConfigSignature !== e.globalFiltersConfigSignature && ne(), Z.value && tt();
1489
1493
  },
1490
1494
  { immediate: !0 }
1491
- ), Ie(
1495
+ ), Ae(
1492
1496
  [
1493
1497
  Z,
1494
1498
  f,
@@ -1499,23 +1503,23 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1499
1503
  () => n.locationIds
1500
1504
  ],
1501
1505
  async () => {
1502
- n.isDialogGlobalFilter ? cl() : dl(), await et();
1506
+ n.isDialogGlobalFilter ? cl() : dl(), await tt();
1503
1507
  },
1504
1508
  { immediate: !0 }
1505
- ), Ie(
1509
+ ), Ae(
1506
1510
  [() => p.value],
1507
1511
  async () => {
1508
- $.value.forEach((e) => {
1512
+ x.value.forEach((e) => {
1509
1513
  e.options = [];
1510
- }), await et();
1514
+ }), await tt();
1511
1515
  },
1512
1516
  { deep: !0 }
1513
- ), Ie(
1517
+ ), Ae(
1514
1518
  () => vl.value,
1515
1519
  async (e, t) => {
1516
- e !== t && t && (n.isDialogGlobalFilter || Rt() || await et());
1520
+ e !== t && t && (n.isDialogGlobalFilter || Rt() || await tt());
1517
1521
  }
1518
- ), Ie(
1522
+ ), Ae(
1519
1523
  () => r.value,
1520
1524
  () => {
1521
1525
  yl();
@@ -1529,13 +1533,13 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1529
1533
  }).find((h) => String(h.value) === String(t))) == null ? void 0 : o.label) ?? String(t) : String(t);
1530
1534
  }
1531
1535
  function yl() {
1532
- $.value.forEach((e) => {
1536
+ x.value.forEach((e) => {
1533
1537
  if (!e.options.length) return;
1534
1538
  const t = e.options.map((o) => ({
1535
1539
  ...o,
1536
1540
  label: Nt(e, o.value)
1537
1541
  }));
1538
- e.options = Vt(e) ? rt(t) : t;
1542
+ e.options = Vt(e) ? ot(t) : t;
1539
1543
  });
1540
1544
  }
1541
1545
  function Ct(e) {
@@ -1543,47 +1547,47 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1543
1547
  const t = (o = Q.value.find((a) => a.name === e.schemaName)) == null ? void 0 : o.fields.find((a) => a.name === e.name);
1544
1548
  return t == null ? void 0 : t.type;
1545
1549
  }
1546
- function Sl(e) {
1547
- var x, P;
1550
+ function gl(e) {
1551
+ var $, A;
1548
1552
  if (!se.value && !p.value) return [];
1549
- if (!((x = e.tileIds) != null && x.length)) return [];
1550
- const t = p.value ? [p.value] : Ue((P = se.value) == null ? void 0 : P.tiles), { name: o = "", schemaName: a = "" } = e, h = t.filter((I) => {
1553
+ if (!(($ = e.tileIds) != null && $.length)) return [];
1554
+ const t = p.value ? [p.value] : Ue((A = se.value) == null ? void 0 : A.tiles), { name: o = "", schemaName: a = "" } = e, h = t.filter((I) => {
1551
1555
  var pe, w;
1552
- const A = (pe = I == null ? void 0 : I.widget) == null ? void 0 : pe.config;
1553
- if (!A || (w = e.tileIds) != null && w.length && !e.tileIds.includes(I.id)) return !1;
1554
- const i = (A.dimensions ?? []).some(
1556
+ const G = (pe = I == null ? void 0 : I.widget) == null ? void 0 : pe.config;
1557
+ if (!G || (w = e.tileIds) != null && w.length && !e.tileIds.includes(I.id)) return !1;
1558
+ const i = (G.dimensions ?? []).some(
1555
1559
  (_e) => _e.schemaName === a && _e.name === o
1556
- ), J = (A.joinDatasources ?? []).some(
1560
+ ), J = (G.joinDatasources ?? []).some(
1557
1561
  (_e) => (_e.dimensions ?? []).some((qe) => qe.schemaName === a && qe.name === o)
1558
- ), V = (A.schemaNames ?? []).includes(a);
1562
+ ), V = (G.schemaNames ?? []).includes(a);
1559
1563
  return i || J || V;
1560
1564
  });
1561
1565
  if (!h.length) return [];
1562
- const T = (I, A) => {
1566
+ const T = (I, G) => {
1563
1567
  const i = /* @__PURE__ */ new Map(), J = (V) => {
1564
1568
  const pe = `${V.schemaName}:${V.name}:${V.operator}:${V.option ?? ""}:${V.dataFormula ?? ""}`, w = i.get(pe);
1565
1569
  w ? [j.Like, j.NotLike].includes(V.operator) ? w.values = Array.from(/* @__PURE__ */ new Set([...w.values ?? [], ...V.values ?? []])) : i.set(pe, { ...V }) : i.set(pe, { ...V });
1566
1570
  };
1567
- return I.forEach(J), A.forEach(J), Array.from(i.values());
1568
- }, S = (I) => {
1571
+ return I.forEach(J), G.forEach(J), Array.from(i.values());
1572
+ }, g = (I) => {
1569
1573
  var i;
1570
- const A = (i = I.dimensions) == null ? void 0 : i.find(
1574
+ const G = (i = I.dimensions) == null ? void 0 : i.find(
1571
1575
  (J) => J.schemaName === a && J.name === o
1572
1576
  );
1573
1577
  return {
1574
1578
  name: o,
1575
1579
  schemaName: a,
1576
- label: (A == null ? void 0 : A.label) ?? o,
1580
+ label: (G == null ? void 0 : G.label) ?? o,
1577
1581
  hide: !1,
1578
1582
  option: e.option ?? null,
1579
- dataFormula: A == null ? void 0 : A.dataFormula
1583
+ dataFormula: G == null ? void 0 : G.dataFormula
1580
1584
  };
1581
1585
  };
1582
- return h.reduce((I, A) => {
1586
+ return h.reduce((I, G) => {
1583
1587
  var qe, Gt;
1584
- const i = (qe = A == null ? void 0 : A.widget) == null ? void 0 : qe.config;
1588
+ const i = (qe = G == null ? void 0 : G.widget) == null ? void 0 : qe.config;
1585
1589
  if (!i) return I;
1586
- const J = S(i), V = (i.dimensions ?? []).some((Ne) => Ne.schemaName === a) || (i.schemaNames ?? []).includes(a), pe = T(
1590
+ const J = g(i), V = (i.dimensions ?? []).some((Ne) => Ne.schemaName === a) || (i.schemaNames ?? []).includes(a), pe = T(
1587
1591
  i.filters ?? [],
1588
1592
  (e.filters ?? []).filter((Ne) => {
1589
1593
  var Re;
@@ -1644,14 +1648,14 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1644
1648
  const t = new Set(Ee(e));
1645
1649
  return e.options.every((o) => t.has(o.value));
1646
1650
  }
1647
- function gl(e) {
1651
+ function Sl(e) {
1648
1652
  kt(e) ? e.selectedValues = [we] : e.selectedValues = [];
1649
1653
  }
1650
1654
  function Ot(e, t) {
1651
1655
  return Ee(e).includes(t);
1652
1656
  }
1653
- const _t = ge(
1654
- () => $.value.map((e) => {
1657
+ const _t = Se(
1658
+ () => x.value.map((e) => {
1655
1659
  const t = e.options, o = e.search.toLowerCase() ?? "";
1656
1660
  return t.filter(
1657
1661
  (h) => h.label.toLowerCase().includes(o.toLowerCase())
@@ -1662,7 +1666,7 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1662
1666
  e.visibleCount += 50, _(e.globalFilter, k(e.id), 50);
1663
1667
  }
1664
1668
  function wl(e, t) {
1665
- g(e.globalFilter, k(e.id), { search: t });
1669
+ S(e.globalFilter, k(e.id), { search: t });
1666
1670
  }
1667
1671
  function ze(e) {
1668
1672
  var t, o;
@@ -1675,27 +1679,27 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1675
1679
  function Rt() {
1676
1680
  return (n.isDialogGlobalFilter || !!p.value) && !de.value;
1677
1681
  }
1678
- function It() {
1682
+ function At() {
1679
1683
  var e;
1680
1684
  return n.isDialogGlobalFilter && de.value && ((e = d.value) != null && e.id) ? d.value.id : K.value;
1681
1685
  }
1682
- function Xe(e) {
1686
+ function et(e) {
1683
1687
  return String(e ?? "").trim() === "" ? Ce : String(e);
1684
1688
  }
1685
1689
  function Dl(e) {
1686
1690
  var t, o;
1687
1691
  return (((t = e.customTimeRanges) == null ? void 0 : t.length) ?? 0) > 0 ? e.customTimeRanges.map((a) => ({
1688
- label: Xe(a.name),
1689
- value: Xe(a.name),
1692
+ label: et(a.name),
1693
+ value: et(a.name),
1690
1694
  available: !0
1691
1695
  })) : (((o = e.customOptions) == null ? void 0 : o.length) ?? 0) > 0 ? e.customOptions.map((a) => ({
1692
- label: Xe(a.label),
1693
- value: Xe(a.label),
1696
+ label: et(a.label),
1697
+ value: et(a.label),
1694
1698
  available: !0
1695
1699
  })) : [];
1696
1700
  }
1697
1701
  function Tl(e) {
1698
- const t = L(e.selectedValues || []);
1702
+ const t = P(e.selectedValues || []);
1699
1703
  if (!t.length) return;
1700
1704
  const o = new Set(e.options.map((h) => h.value)), a = t.filter((h) => !o.has(h)).map((h) => ({
1701
1705
  value: h,
@@ -1704,7 +1708,7 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1704
1708
  }));
1705
1709
  if (a.length) {
1706
1710
  const h = [...e.options, ...a];
1707
- e.options = Vt(e) ? rt(h) : h;
1711
+ e.options = Vt(e) ? ot(h) : h;
1708
1712
  }
1709
1713
  }
1710
1714
  function Vl(e) {
@@ -1713,7 +1717,7 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1713
1717
  const o = me(e);
1714
1718
  e.selectedValues = o.length ? [...o] : [...e.selectedValues || []];
1715
1719
  } else {
1716
- const o = L(me(e));
1720
+ const o = P(me(e));
1717
1721
  e.options = e.options.filter((T) => T.available !== !1);
1718
1722
  const a = new Set(e.options.map((T) => T.value)), h = o.filter(
1719
1723
  (T) => a.has(T)
@@ -1721,7 +1725,7 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1721
1725
  e.selectedValues = h;
1722
1726
  }
1723
1727
  const t = Ye(e);
1724
- e.selectedValues = [...t], g(e.globalFilter, k(e.id), {
1728
+ e.selectedValues = [...t], S(e.globalFilter, k(e.id), {
1725
1729
  selectedValues: t
1726
1730
  });
1727
1731
  }
@@ -1733,13 +1737,13 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1733
1737
  }
1734
1738
  if (!(!e.type && (e.type = Ct(e.globalFilter), !e.type))) {
1735
1739
  if (ze(e.globalFilter)) {
1736
- e.options = Dl(e.globalFilter), He(e);
1740
+ e.options = Dl(e.globalFilter), Ze(e);
1737
1741
  return;
1738
1742
  }
1739
1743
  switch (e.type) {
1740
1744
  case be.String:
1741
1745
  try {
1742
- const a = Sl(e.globalFilter);
1746
+ const a = gl(e.globalFilter);
1743
1747
  if (!a.length) {
1744
1748
  e.options = [];
1745
1749
  return;
@@ -1763,17 +1767,17 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1763
1767
  continue;
1764
1768
  }
1765
1769
  const J = ee(
1766
- Pt(e.globalFilter, It())
1770
+ Pt(e.globalFilter, At())
1767
1771
  );
1768
1772
  T.push(...J);
1769
1773
  }
1770
- const S = Array.from(new Set(T)), x = me(e), P = e.keepSelection ? Array.from(/* @__PURE__ */ new Set([...S, ...x])) : S, I = new Set(T), A = new Set(S);
1771
- e.options = rt(
1772
- Wl(P, {
1774
+ 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, {
1773
1777
  unknownLabel: R.value,
1774
- getAvailable: (i) => e.keepSelection ? I.has(i) : A.has(i)
1778
+ getAvailable: (i) => e.keepSelection ? I.has(i) : G.has(i)
1775
1779
  })
1776
- ), He(e);
1780
+ ), Ze(e);
1777
1781
  } catch (a) {
1778
1782
  if ((a == null ? void 0 : a.code) === "ERR_CANCELED" || (a == null ? void 0 : a.name) === "CanceledError")
1779
1783
  return;
@@ -1784,7 +1788,7 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1784
1788
  e.options = [
1785
1789
  { label: s("report.common.yes"), value: !0 },
1786
1790
  { label: s("report.common.no"), value: !1 }
1787
- ], He(e);
1791
+ ], Ze(e);
1788
1792
  break;
1789
1793
  }
1790
1794
  case be.Timestamp:
@@ -1792,21 +1796,21 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1792
1796
  const a = e.globalFilter.option;
1793
1797
  e.options = pt({ dimensionOption: a, t: s }), e.globalFilter.values = e.options.length ? e.options.map((h) => h.value) : ["NULL"];
1794
1798
  }
1795
- He(e);
1799
+ Ze(e);
1796
1800
  break;
1797
1801
  case be.Numeric:
1798
1802
  break;
1799
1803
  }
1800
1804
  }
1801
1805
  }
1802
- async function et() {
1803
- if (!K.value || !$.value.length) return;
1806
+ async function tt() {
1807
+ if (!K.value || !x.value.length) return;
1804
1808
  z && z.abort();
1805
1809
  const e = new AbortController();
1806
1810
  z = e, N.value = !0, n.isDialogGlobalFilter && (W.value = !0);
1807
1811
  try {
1808
1812
  await Promise.all(
1809
- $.value.map(
1813
+ x.value.map(
1810
1814
  (t) => Nl(t, e.signal)
1811
1815
  )
1812
1816
  );
@@ -1814,17 +1818,17 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1814
1818
  z === e && (N.value = !1), n.isDialogGlobalFilter && z === e && (W.value = !1);
1815
1819
  }
1816
1820
  }
1817
- function $t(e, t) {
1818
- const o = ot(e), a = Ee(e);
1821
+ function It(e, t) {
1822
+ const o = it(e), a = Ee(e);
1819
1823
  if (a.includes(t)) {
1820
- const S = a.filter((x) => x !== t);
1821
- e.selectedValues = S.length > 0 ? S : [we];
1824
+ const g = a.filter(($) => $ !== t);
1825
+ e.selectedValues = g.length > 0 ? g : [we];
1822
1826
  } else {
1823
- const S = [...a, t], x = o.length > 0 && o.every((P) => S.includes(P));
1824
- e.selectedValues = x ? [] : S;
1827
+ const g = [...a, t], $ = o.length > 0 && o.every((A) => g.includes(A));
1828
+ e.selectedValues = $ ? [] : g;
1825
1829
  }
1826
1830
  const T = Ye(e);
1827
- e.selectedValues = [...T], g(e.globalFilter, k(e.id), {
1831
+ e.selectedValues = [...T], S(e.globalFilter, k(e.id), {
1828
1832
  selectedValues: T
1829
1833
  });
1830
1834
  }
@@ -1833,7 +1837,7 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1833
1837
  Bl(Lt(t.startDate, u.value), u.value),
1834
1838
  zl(Lt(t.endDate, u.value), u.value)
1835
1839
  ] : [];
1836
- t === null ? o.values = [] : o.values = a, e.selectedValues = [...a], e.keepSelection = t !== null, g(e.globalFilter, k(e.id), {
1840
+ t === null ? o.values = [] : o.values = a, e.selectedValues = [...a], e.keepSelection = t !== null, S(e.globalFilter, k(e.id), {
1837
1841
  keepSelection: e.keepSelection,
1838
1842
  selectedValues: [...a]
1839
1843
  }), ne(e.globalFilter);
@@ -1845,86 +1849,86 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1845
1849
  function kl() {
1846
1850
  return s("report.section.filter.search");
1847
1851
  }
1848
- function tt(e) {
1852
+ function lt(e) {
1849
1853
  const t = y(e.globalFilter), o = e.options.length > 0 ? "(0 selected)" : "";
1850
1854
  if (e.type === be.Timestamp && !ze(e.globalFilter)) {
1851
- const S = fe(e), x = S.length === 2;
1855
+ const g = fe(e), $ = g.length === 2;
1852
1856
  if (e.globalFilter.option === B.DateTime)
1853
- return { preview: x ? `${t} is between ${Ll({
1854
- startDate: S[0] || null,
1855
- endDate: S[1] || null,
1857
+ return { preview: $ ? `${t} is between ${Ll({
1858
+ startDate: g[0] || null,
1859
+ endDate: g[1] || null,
1856
1860
  locale: r.value,
1857
1861
  timezone: u.value
1858
1862
  })}` : t, suffix: "" };
1859
1863
  if (e.globalFilter.option === B.TimeOfDay) {
1860
- const P = S[0] ? G(S[0]).tz(u.value) : null, I = S[1] ? G(S[1]).tz(u.value) : null, A = (J) => J && J.isValid() ? { hour: J.hour(), minute: J.minute() } : null;
1861
- return { preview: x ? `${t} is between ${Qt({
1862
- startTime: A(P),
1863
- endTime: A(I),
1864
+ 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({
1866
+ startTime: G(A),
1867
+ endTime: G(I),
1864
1868
  locale: r.value
1865
1869
  })}` : t, suffix: "" };
1866
1870
  }
1867
1871
  if (e.globalFilter.option !== B.DateTime && e.globalFilter.option !== B.TimeOfDay) {
1868
- const P = pt({
1872
+ const A = pt({
1869
1873
  dimensionOption: e.globalFilter.option,
1870
1874
  t: s
1871
- }), I = new Map(P.map((V) => [String(V.value), V.label])), i = Ee(e).map((V) => I.get(String(V)) ?? String(V)), J = i.map((V) => V.length > 20 ? `${V.slice(0, 20)}…` : V).join(", ");
1875
+ }), I = new Map(A.map((V) => [String(V.value), V.label])), i = Ee(e).map((V) => I.get(String(V)) ?? String(V)), J = i.map((V) => V.length > 20 ? `${V.slice(0, 20)}…` : V).join(", ");
1872
1876
  return i.length ? {
1873
1877
  preview: `${t}: ${J}`,
1874
1878
  suffix: `(${i.length} selected)`
1875
1879
  } : { preview: t, suffix: o };
1876
1880
  }
1877
1881
  }
1878
- const h = Ee(e).map((S) => S === !0 ? s("report.common.yes") || "Yes" : S === !1 ? s("report.common.no") || "No" : String(S).trim() === "" ? R.value : String(S)), T = h.map((S) => S.length > 20 ? `${S.slice(0, 20)}…` : S).join(", ");
1882
+ const h = Ee(e).map((g) => g === !0 ? s("report.common.yes") || "Yes" : g === !1 ? s("report.common.no") || "No" : String(g).trim() === "" ? R.value : String(g)), T = h.map((g) => g.length > 20 ? `${g.slice(0, 20)}…` : g).join(", ");
1879
1883
  return h.length ? {
1880
1884
  preview: `${t}: ${T}`,
1881
1885
  suffix: `(${h.length} selected)`
1882
1886
  } : { preview: t, suffix: o };
1883
1887
  }
1884
1888
  function Ol(e) {
1885
- st(e), ne(e.globalFilter), document.body.click();
1889
+ rt(e), ne(e.globalFilter), document.body.click();
1886
1890
  }
1887
1891
  function _l(e) {
1888
1892
  const t = O(
1889
1893
  e.globalFilter,
1890
1894
  k(e.id)
1891
1895
  ).selectedValues;
1892
- e.selectedValues = t.length ? [...t] : [...e.globalFilter.values || []], g(e.globalFilter, k(e.id), {
1896
+ e.selectedValues = t.length ? [...t] : [...e.globalFilter.values || []], S(e.globalFilter, k(e.id), {
1893
1897
  selectedValues: e.selectedValues
1894
1898
  }), document.body.click();
1895
1899
  }
1896
1900
  function Rl(e) {
1897
- e.showAdvanced = !e.showAdvanced, g(e.globalFilter, k(e.id), {
1901
+ e.showAdvanced = !e.showAdvanced, S(e.globalFilter, k(e.id), {
1898
1902
  showAdvanced: e.showAdvanced
1899
1903
  });
1900
1904
  }
1901
- function Il(e) {
1902
- e.keepSelection = !e.keepSelection, c(e.keepSelection), g(e.globalFilter, k(e.id), {
1905
+ function Al(e) {
1906
+ e.keepSelection = !e.keepSelection, c(e.keepSelection), S(e.globalFilter, k(e.id), {
1903
1907
  keepSelection: e.keepSelection
1904
1908
  }), Vl(e);
1905
1909
  }
1906
- function $l(e, t) {
1910
+ function Il(e, t) {
1907
1911
  return e ? e.length > t ? `${e.slice(0, t)}…` : e : R.value;
1908
1912
  }
1909
- function At(e, t) {
1910
- var h, T, S, x;
1913
+ function $t(e, t) {
1914
+ var h, T, g, $;
1911
1915
  const o = e.globalFilter;
1912
1916
  let a = [];
1913
1917
  if (t === null)
1914
1918
  o.values = [];
1915
1919
  else {
1916
- const P = G().tz(u.value).set("hour", Number((h = t.start) == null ? void 0 : h.hour)).set("minute", Number((T = t.start) == null ? void 0 : T.minute)).toISOString(), I = G().tz(u.value).set("hour", Number((S = t.end) == null ? void 0 : S.hour)).set("minute", Number((x = t.end) == null ? void 0 : x.minute)).toISOString();
1917
- a = [P, I], o.values = a;
1920
+ const A = E().tz(u.value).set("hour", Number((h = t.start) == null ? void 0 : h.hour)).set("minute", Number((T = t.start) == null ? void 0 : T.minute)).toISOString(), I = E().tz(u.value).set("hour", Number((g = t.end) == null ? void 0 : g.hour)).set("minute", Number(($ = t.end) == null ? void 0 : $.minute)).toISOString();
1921
+ a = [A, I], o.values = a;
1918
1922
  }
1919
- e.selectedValues = [...a], e.keepSelection = t !== null, g(e.globalFilter, k(e.id), {
1923
+ e.selectedValues = [...a], e.keepSelection = t !== null, S(e.globalFilter, k(e.id), {
1920
1924
  keepSelection: e.keepSelection,
1921
1925
  selectedValues: [...a]
1922
1926
  }), ne(e.globalFilter);
1923
1927
  }
1924
1928
  return (e, t) => {
1925
- const o = te("FmCircularProgress"), a = te("FmTextField"), h = te("FmMenuItem"), T = te("FmTooltip"), S = te("FmIcon"), x = te("FmMenuDivider"), P = te("FmSwitch"), I = te("FmButton"), A = te("FmMenu");
1929
+ 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");
1926
1930
  return X(), he("div", Fn, [
1927
- (X(!0), he(Le, null, bt($.value, (i, J) => (X(), he("div", {
1931
+ (X(!0), he(Le, null, bt(x.value, (i, J) => (X(), he("div", {
1928
1932
  key: i.id
1929
1933
  }, [
1930
1934
  i.globalFilter.option === D(B).DateTime && !ze(i.globalFilter) ? (X(), De(El, {
@@ -1934,28 +1938,28 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1934
1938
  endDate: fe(i)[1]
1935
1939
  },
1936
1940
  class: "w-full",
1937
- label: tt(i).preview,
1941
+ label: lt(i).preview,
1938
1942
  removable: fe(i).length === 2,
1939
1943
  onUpdate: (V) => xt(i, V),
1940
1944
  onChipClosed: () => xt(i, null)
1941
- }, null, 8, ["date-range", "label", "removable", "onUpdate", "onChipClosed"])) : i.globalFilter.option === D(B).TimeOfDay && !ze(i.globalFilter) ? (X(), De(Sn, {
1945
+ }, null, 8, ["date-range", "label", "removable", "onUpdate", "onChipClosed"])) : i.globalFilter.option === D(B).TimeOfDay && !ze(i.globalFilter) ? (X(), De(gn, {
1942
1946
  key: 1,
1943
1947
  "time-range": {
1944
1948
  start: fe(i)[0] ? {
1945
- hour: D(G)(fe(i)[0]).tz(D(u)).hour(),
1946
- minute: D(G)(fe(i)[0]).tz(D(u)).minute()
1949
+ hour: D(E)(fe(i)[0]).tz(D(u)).hour(),
1950
+ minute: D(E)(fe(i)[0]).tz(D(u)).minute()
1947
1951
  } : null,
1948
1952
  end: fe(i)[1] ? {
1949
- hour: D(G)(fe(i)[1]).tz(D(u)).hour(),
1950
- minute: D(G)(fe(i)[1]).tz(D(u)).minute()
1953
+ hour: D(E)(fe(i)[1]).tz(D(u)).hour(),
1954
+ minute: D(E)(fe(i)[1]).tz(D(u)).minute()
1951
1955
  } : null
1952
1956
  },
1953
1957
  class: "w-full",
1954
- label: tt(i).preview,
1958
+ label: lt(i).preview,
1955
1959
  removable: fe(i).length === 2,
1956
- onUpdate: (V) => At(i, V),
1957
- onChipClosed: () => At(i, null)
1958
- }, null, 8, ["time-range", "label", "removable", "onUpdate", "onChipClosed"])) : (X(), De(A, {
1960
+ onUpdate: (V) => $t(i, V),
1961
+ onChipClosed: () => $t(i, null)
1962
+ }, null, 8, ["time-range", "label", "removable", "onUpdate", "onChipClosed"])) : (X(), De(G, {
1959
1963
  key: 2,
1960
1964
  "close-on-click": !1,
1961
1965
  shift: !0,
@@ -1967,11 +1971,11 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1967
1971
  "left-icon": "filter_alt",
1968
1972
  "trailing-icon": "expand_more",
1969
1973
  loading: ce(i),
1970
- label: tt(i).preview,
1974
+ label: lt(i).preview,
1971
1975
  class: "w-full"
1972
1976
  }, {
1973
1977
  default: ie(() => [
1974
- at(ve(tt(i).suffix), 1)
1978
+ st(ve(lt(i).suffix), 1)
1975
1979
  ]),
1976
1980
  _: 2
1977
1981
  }, 1032, ["loading", "label"])
@@ -2002,7 +2006,7 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
2002
2006
  "has-checkbox": !0,
2003
2007
  "model-value": kt(i),
2004
2008
  indeterminate: !0,
2005
- onClick: (w) => gl(i)
2009
+ onClick: (w) => Sl(i)
2006
2010
  }, null, 8, ["label", "model-value", "onClick"]),
2007
2011
  (X(!0), he(Le, null, bt(_t.value[J], (w) => (X(), he(Le, {
2008
2012
  key: w.value
@@ -2014,19 +2018,19 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
2014
2018
  "z-index": 2e3
2015
2019
  }, {
2016
2020
  content: ie(() => [
2017
- at(ve(w.label), 1)
2021
+ st(ve(w.label), 1)
2018
2022
  ]),
2019
2023
  default: ie(() => [
2020
2024
  Y("div", Cn, [
2021
2025
  M(h, {
2022
- label: $l(w.label, 110),
2026
+ label: Il(w.label, 110),
2023
2027
  "has-checkbox": !0,
2024
2028
  "model-value": Ot(i, w.value),
2025
2029
  class: Et([
2026
2030
  "flex-1 text-left",
2027
2031
  { "bg-gray-200": w.available === !1 }
2028
2032
  ]),
2029
- onClick: () => $t(i, w.value)
2033
+ onClick: () => It(i, w.value)
2030
2034
  }, null, 8, ["label", "model-value", "class", "onClick"])
2031
2035
  ])
2032
2036
  ]),
@@ -2037,7 +2041,7 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
2037
2041
  "has-checkbox": !0,
2038
2042
  "model-value": Ot(i, w.value),
2039
2043
  class: Et(["flex-1 text-left", { "bg-gray-100": w.available === !1 }]),
2040
- onClick: () => $t(i, w.value)
2044
+ onClick: () => It(i, w.value)
2041
2045
  }, null, 8, ["label", "model-value", "class", "onClick"]))
2042
2046
  ], 64))), 128)),
2043
2047
  _t.value[J].length < i.options.length && !i.search ? (X(), De(h, {
@@ -2053,32 +2057,32 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
2053
2057
  class: "px-12 py-2 flex items-center gap-2 cursor-pointer hover:bg-fm-color-neutral-50 transition-colors",
2054
2058
  onClick: (w) => Rl(i)
2055
2059
  }, [
2056
- M(S, {
2060
+ M(g, {
2057
2061
  name: i.showAdvanced ? "keyboard_arrow_up" : "keyboard_arrow_down",
2058
2062
  size: "md",
2059
2063
  class: ""
2060
2064
  }, null, 8, ["name"]),
2061
2065
  Y("span", On, ve(D(s)("report.section.filter.advanced")), 1)
2062
2066
  ], 8, kn),
2063
- M(x),
2067
+ M($),
2064
2068
  i.showAdvanced ? (X(), he("div", _n, [
2065
2069
  Y("div", Rn, [
2066
- Y("div", In, [
2067
- M(P, {
2070
+ Y("div", An, [
2071
+ M(A, {
2068
2072
  "model-value": i.keepSelection,
2069
2073
  label: D(s)("report.section.filter.keepSelection"),
2070
2074
  labelPlacement: "right",
2071
- "onUpdate:modelValue": () => Il(i)
2075
+ "onUpdate:modelValue": () => Al(i)
2072
2076
  }, null, 8, ["model-value", "label", "onUpdate:modelValue"]),
2073
2077
  M(T, {
2074
2078
  placement: "top",
2075
2079
  "z-index": 2e3
2076
2080
  }, {
2077
2081
  content: ie(() => [
2078
- Y("div", $n, ve(D(s)("report.section.filter.keepSelectionTooltip")), 1)
2082
+ Y("div", In, ve(D(s)("report.section.filter.keepSelectionTooltip")), 1)
2079
2083
  ]),
2080
2084
  default: ie(() => [
2081
- M(S, {
2085
+ M(g, {
2082
2086
  name: "info",
2083
2087
  size: "md",
2084
2088
  class: "text-fm-color-primary"
@@ -2117,7 +2121,7 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
2117
2121
  }
2118
2122
  });
2119
2123
  export {
2120
- $e as I,
2124
+ Ie as I,
2121
2125
  Yt as R,
2122
2126
  ea as _,
2123
2127
  Yn as a,
@@ -2125,7 +2129,7 @@ export {
2125
2129
  Xn as c,
2126
2130
  Wn as d,
2127
2131
  Ut as e,
2128
- Sn as f,
2132
+ gn as f,
2129
2133
  Hn as g,
2130
2134
  Kl as h,
2131
2135
  Un as i,