@feedmepos/mf-report 5.34.2 → 5.35.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 (39) hide show
  1. package/dist/{App-D-YQ3yMW.js → App-Dv36-JBr.js} +4 -4
  2. package/dist/{DateRangeSelect-OTyc3v5_.js → DateRangeSelect-CSuWTBDR.js} +1 -1
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-CxIN_bfu.js → Default.vue_vue_type_script_setup_true_lang-BFuav3fL.js} +1 -1
  4. package/dist/{DigestListView-DCpIQY1v.js → DigestListView-lWXR-Yqe.js} +3 -3
  5. package/dist/DigestReaderView-cKRrj4qw.js +489 -0
  6. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-iRcCryhy.js → DynamicWidget.vue_vue_type_script_setup_true_lang-D0OTyDep.js} +173 -173
  7. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-VTI9bq-3.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-lFm4G3pA.js} +175 -175
  8. package/dist/{InsightView-WQ3IXr2b.js → InsightView-BO2y0s6E.js} +5 -5
  9. package/dist/{Integration-Bx6Xt8rm.js → Integration-DZR0sg3Y.js} +3 -3
  10. package/dist/{Integrations-BSsJGc4e.js → Integrations-C8IJSs8_.js} +2 -2
  11. package/dist/{Layout-CmTYhuDW.js → Layout-DKE_UPyV.js} +1 -1
  12. package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-SjaEdhpI.js → LocationSelect.vue_vue_type_script_setup_true_lang-pKBQdsry.js} +1553 -1547
  13. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-CtJRTkuw.js → MenuTab.vue_vue_type_script_setup_true_lang-DsTCV4je.js} +5 -5
  14. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DERX_GCc.js → NavigationTab.vue_vue_type_script_setup_true_lang-uFKb4Unh.js} +5 -5
  15. package/dist/{OverviewView-BXuqus0r.js → OverviewView--6juk8Ny.js} +5 -5
  16. package/dist/{Report-Cj7xHOMI.js → Report-B7tYzV-u.js} +3 -3
  17. package/dist/ReportCanvasView-DJZItxK4.js +1066 -0
  18. package/dist/{ReportEditor-v3CRHflb.js → ReportEditor-lP1wy7eF.js} +7 -7
  19. package/dist/{ReportView-IbQC8Qf1.js → ReportView-BFdf3j2m.js} +6 -6
  20. package/dist/{ReportViewRoute-NwvXWZDf.js → ReportViewRoute-D5tZcb3A.js} +2 -2
  21. package/dist/{Setting-GyFSTgFs.js → Setting-CdOGOX1H.js} +94 -94
  22. package/dist/{Template-DLVGn41O.js → Template-CcNz2aVR.js} +3 -3
  23. package/dist/{TileEditor-DT4ayXKN.js → TileEditor-D8QsUytE.js} +6 -6
  24. package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-Bh0NcO-n.js → TilePageStack.vue_vue_type_script_setup_true_lang-D2Tz0EW3.js} +2 -2
  25. package/dist/{TransitionFade-DIDahT3W.js → TransitionFade-qKsTOksI.js} +5 -5
  26. package/dist/{app-X-tKojve.js → app-D9WJwZyu.js} +19 -19
  27. package/dist/app.js +1 -1
  28. package/dist/assets/{formatChartData.worker-Cpgnh20a.js → formatChartData.worker-Bt8turfo.js} +22 -22
  29. package/dist/assets/{processTableData.worker-B7I6PElJ.js → processTableData.worker-MGb36f8J.js} +22 -22
  30. package/dist/{currency-Cebf4JT_.js → currency-Dx3wVA1Q.js} +1 -1
  31. package/dist/{index-Brvkpnxl.js → index-c2QQydke.js} +503 -473
  32. package/dist/{report-CoK9Yl1E.js → report-tffVXl4d.js} +1 -1
  33. package/dist/style.css +1 -1
  34. package/dist/{useDigestFont-DUUhWR6u.js → useDigestFont-DfORxCFz.js} +1 -1
  35. package/dist/{useReportCanvasPanel-B8qruqY0.js → useReportCanvasPicks-D1IdA31H.js} +1353 -1264
  36. package/dist/{useRestaurantPermission-BTBg_goI.js → useRestaurantPermission-CrqMkVed.js} +1 -1
  37. package/package.json +2 -2
  38. package/dist/DigestReaderView-W6sW8h9Q.js +0 -526
  39. package/dist/ReportCanvasView-CGt4ayU2.js +0 -1035
@@ -1,14 +1,14 @@
1
- import { ref as ye, computed as Se, defineComponent as yt, useModel as ft, watch as Ae, resolveComponent as te, openBlock as X, createElementBlock as he, createVNode as M, withCtx as ie, createElementVNode as Y, Fragment as Le, renderList as ht, createBlock as De, unref as D, createTextVNode as st, toDisplayString as be, withDirectives as $l, vShow as Gl, createCommentVNode as vt, mergeModels as rt, renderSlot as Qt, normalizeStyle as El, normalizeClass as Lt, withModifiers as mt } from "vue";
2
- import { c as Kt, _ as Jt, D as Ll, e as Pl } from "./DateRangeSelect-OTyc3v5_.js";
3
- import { e as gt } from "./index-Brvkpnxl.js";
4
- import { d as E, u as ke, c as je, a as Pe, F as Oe, ai as St, w as $e, h as Ml, j as Bl, z as zl, t as Pt, i as ql } from "./app-X-tKojve.js";
5
- import { b as B, C as j, Q as nt, u as Me, o as Ge, p as Ue, D as ve, a as Wl, x as Mt, W as Bt, A as Ul, S as zt } from "./report-CoK9Yl1E.js";
1
+ import { ref as ye, computed as Se, defineComponent as yt, useModel as ft, watch as Ae, resolveComponent as te, openBlock as X, createElementBlock as ve, createVNode as M, withCtx as ie, createElementVNode as Y, Fragment as Le, renderList as vt, createBlock as De, unref as D, createTextVNode as st, toDisplayString as be, withDirectives as $l, vShow as Gl, createCommentVNode as ht, mergeModels as rt, renderSlot as Qt, normalizeStyle as El, normalizeClass as Lt, withModifiers as mt } from "vue";
2
+ import { c as Kt, _ as Jt, D as Ll, e as Pl } from "./DateRangeSelect-CSuWTBDR.js";
3
+ import { e as gt } from "./index-c2QQydke.js";
4
+ import { d as E, u as ke, c as je, a as Pe, F as Oe, ai as St, w as $e, h as Ml, j as Bl, z as zl, t as Pt, i as ql } from "./app-D9WJwZyu.js";
5
+ import { b as B, C as j, Q as nt, u as Me, o as Ge, p as Ue, D as he, a as Wl, x as Mt, W as Bt, A as Ul, S as zt } from "./report-tffVXl4d.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 Yt } from "./_plugin-vue_export-helper-Bx7s49ra.js";
9
9
  import { _ as jl } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Cxx-TQz9.js";
10
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-Cpgnh20a.js", dt = /* @__PURE__ */ new Map();
11
+ const Ql = "/assets/formatChartData.worker-Bt8turfo.js", dt = /* @__PURE__ */ new Map();
12
12
  function qt(l) {
13
13
  return new Worker(l, { type: "module" });
14
14
  }
@@ -169,47 +169,47 @@ function Wt({
169
169
  return c.option === B.TimeOfDay ? ["1000-01-01T23:59:59.999Z", "1000-01-01T00:00:00.000Z"] : [d ? "-1" : Xt];
170
170
  }
171
171
  function u(c, d) {
172
- const v = typeof c == "number" ? c : Number(c), y = typeof d == "number" ? d : Number(d);
173
- return Number.isFinite(v) && Number.isFinite(y) ? v - y : typeof c == "string" && typeof d == "string" ? c.localeCompare(d) : null;
172
+ const h = typeof c == "number" ? c : Number(c), y = typeof d == "number" ? d : Number(d);
173
+ return Number.isFinite(h) && Number.isFinite(y) ? h - y : typeof c == "string" && typeof d == "string" ? c.localeCompare(d) : null;
174
174
  }
175
175
  function L(c, d) {
176
176
  if (c.length === 0 || d.length === 0) return null;
177
- const v = u(c[0], d[0]);
178
- return v == null ? null : [v >= 0 ? c[0] : d[0]];
177
+ const h = u(c[0], d[0]);
178
+ return h == null ? null : [h >= 0 ? c[0] : d[0]];
179
179
  }
180
180
  function Q(c, d) {
181
181
  if (c.length === 0 || d.length === 0) return null;
182
- const v = u(c[0], d[0]);
183
- return v == null ? null : [v <= 0 ? c[0] : d[0]];
182
+ const h = u(c[0], d[0]);
183
+ return h == null ? null : [h <= 0 ? c[0] : d[0]];
184
184
  }
185
185
  function _(c, d) {
186
186
  if (c.length < 2 || d.length < 2) return null;
187
- const v = u(c[0], d[0]), y = u(c[1], d[1]);
188
- if (v == null || y == null) return null;
189
- const N = v >= 0 ? c[0] : d[0], R = y <= 0 ? c[1] : d[1];
190
- return u(N, R) == null ? null : [N, R];
187
+ const h = u(c[0], d[0]), y = u(c[1], d[1]);
188
+ if (h == null || y == null) return null;
189
+ const C = h >= 0 ? c[0] : d[0], R = y <= 0 ? c[1] : d[1];
190
+ return u(C, R) == null ? null : [C, R];
191
191
  }
192
192
  function O(c, d) {
193
- const v = We(c.values), y = We(d.values);
193
+ const h = We(c.values), y = We(d.values);
194
194
  switch (d.operator) {
195
195
  case j.Equal: {
196
- const N = new Set(y), R = v.filter((H) => N.has(H));
196
+ const C = new Set(y), R = h.filter((H) => C.has(H));
197
197
  return R.length ? R : b(c);
198
198
  }
199
199
  case j.NotEqual:
200
200
  case j.NotLike:
201
201
  return We([
202
- ...v,
202
+ ...h,
203
203
  ...y
204
204
  ]);
205
205
  case j.GreaterThan:
206
206
  case j.GreaterThanOrEqual:
207
- return L(v, y);
207
+ return L(h, y);
208
208
  case j.LessThan:
209
209
  case j.LessThanOrEqual:
210
- return Q(v, y);
210
+ return Q(h, y);
211
211
  case j.Between:
212
- return _(v, y);
212
+ return _(h, y);
213
213
  default:
214
214
  return null;
215
215
  }
@@ -225,17 +225,17 @@ function Wt({
225
225
  m.push(d);
226
226
  return;
227
227
  }
228
- const y = Xl(d), N = r.get(y);
229
- if (!N) {
228
+ const y = Xl(d), C = r.get(y);
229
+ if (!C) {
230
230
  r.set(y, d);
231
231
  return;
232
232
  }
233
- const R = O(N, d);
233
+ const R = O(C, d);
234
234
  if (R == null) {
235
235
  m.push(d);
236
236
  return;
237
237
  }
238
- N.values = R, r.set(y, N);
238
+ C.values = R, r.set(y, C);
239
239
  };
240
240
  return l.forEach(S), F.forEach(S), [...Array.from(r.values()), ...m];
241
241
  }
@@ -354,14 +354,14 @@ const ra = async ({
354
354
  search: u
355
355
  }) => {
356
356
  var re, Fe, me, ge;
357
- const { scopePath: L, requestBusinessIds: Q } = oe(ke()), { currentReport: _, editingReport: O, overviewReport: S } = Me(), { selectedNavigationTab: c, isEditorRoute: d } = je(), v = wt({
357
+ const { scopePath: L, requestBusinessIds: Q } = oe(ke()), { currentReport: _, editingReport: O, overviewReport: S } = Me(), { selectedNavigationTab: c, isEditorRoute: d } = je(), h = wt({
358
358
  selectedNavigationTab: c,
359
359
  isEditorRoute: d,
360
360
  overviewReport: S,
361
361
  editingReport: O,
362
362
  currentReport: _
363
363
  }), y = Je(c), {
364
- selectedRestaurantIds: N,
364
+ selectedRestaurantIds: C,
365
365
  selectedWarehouseIds: R,
366
366
  selectedLocationIds: H,
367
367
  dateRange: z,
@@ -369,20 +369,20 @@ const ra = async ({
369
369
  timeRange: ee,
370
370
  timezone: le,
371
371
  restaurants: Z,
372
- warehouses: C
372
+ warehouses: N
373
373
  } = Pe(), { globalFilters: W } = Ge();
374
374
  if (H.length === 0)
375
375
  return null;
376
376
  const ne = p ?? z, U = m ?? ee, K = f ?? W;
377
377
  if (!Ke({
378
- report: v,
378
+ report: h,
379
379
  pageSubject: y,
380
380
  dateRange: ne,
381
381
  compareDateRange: q,
382
382
  timezone: le
383
383
  }))
384
384
  return null;
385
- const se = (r == null ? void 0 : r.filter((ae) => Z.some((P) => P.id === ae))) ?? N, x = (r == null ? void 0 : r.filter((ae) => C.some((P) => P.id === ae))) ?? R, k = Qe(l, K, s ?? ""), ce = {
385
+ const se = (r == null ? void 0 : r.filter((ae) => Z.some((P) => P.id === ae))) ?? C, x = (r == null ? void 0 : r.filter((ae) => N.some((P) => P.id === ae))) ?? R, k = Qe(l, K, s ?? ""), ce = {
386
386
  fetchType: Oe.Post,
387
387
  url: b ? `/${L.value}/v2/query/page` : `/${L.value}/v2/query`,
388
388
  data: {
@@ -400,9 +400,9 @@ const ra = async ({
400
400
  restaurantIds: se,
401
401
  warehouseIds: x,
402
402
  timezone: le,
403
- skipStringSpaceGrouping: !!(v != null && v.batch) || bt(v),
404
- reportId: v == null ? void 0 : v.id,
405
- queryDatasource: na(v)
403
+ skipStringSpaceGrouping: !!(h != null && h.batch) || bt(h),
404
+ reportId: h == null ? void 0 : h.id,
405
+ queryDatasource: na(h)
406
406
  },
407
407
  requestConfig: {
408
408
  timeout: 1e3 * 60 * 5,
@@ -419,23 +419,23 @@ const ra = async ({
419
419
  scopedDateRange: r,
420
420
  scopedCompareDateRange: m
421
421
  }) => {
422
- var C, W, ne, U;
422
+ var N, W, ne, U;
423
423
  const { scopePath: p, requestBusinessIds: f } = oe(ke()), { currentReport: F, editingReport: b, overviewReport: u } = Me(), { selectedNavigationTab: L, isEditorRoute: Q } = je(), _ = wt({
424
424
  selectedNavigationTab: L,
425
425
  isEditorRoute: Q,
426
426
  overviewReport: u,
427
427
  editingReport: b,
428
428
  currentReport: F
429
- }), O = Je(L), { restaurants: S, warehouses: c, dateRange: d, compareDateRange: v, timeRange: y, timezone: N } = Pe(), { globalFilters: R } = Ge();
429
+ }), O = Je(L), { restaurants: S, warehouses: c, dateRange: d, compareDateRange: h, timeRange: y, timezone: C } = Pe(), { globalFilters: R } = Ge();
430
430
  if (S.length === 0 && c.length === 0)
431
431
  return { totalBytesProcessed: 0 };
432
- const H = r ?? d, z = m ?? v;
432
+ const H = r ?? d, z = m ?? h;
433
433
  if (!Ke({
434
434
  report: _,
435
435
  pageSubject: O,
436
436
  dateRange: H,
437
437
  compareDateRange: z,
438
- timezone: N
438
+ timezone: C
439
439
  }))
440
440
  return { totalBytesProcessed: 0 };
441
441
  const q = S.map((K) => K.id), ee = c.map((K) => K.id), le = Qe(l, R, s ?? ""), Z = {
@@ -446,13 +446,13 @@ const ra = 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
- E().tz(N).hour(Number((C = y.start) == null ? void 0 : C.hour)).minute(Number((W = y.start) == null ? void 0 : W.minute)).toISOString(),
450
- E().tz(N).hour(Number((ne = y.end) == null ? void 0 : ne.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((ne = y.end) == null ? void 0 : ne.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,
454
454
  warehouseIds: ee,
455
- timezone: N,
455
+ timezone: C,
456
456
  skipStringSpaceGrouping: !1,
457
457
  reportId: _ == null ? void 0 : _.id,
458
458
  queryDatasource: nt.BigQuery
@@ -476,13 +476,13 @@ const ra = async ({
476
476
  search: u
477
477
  }) => {
478
478
  var me, ge, ae, P;
479
- const { scopePath: L, requestBusinessIds: Q, country: _ } = oe(ke()), { currentReport: O, editingReport: S, overviewReport: c } = Me(), { selectedNavigationTab: d, isEditorRoute: v } = je(), y = wt({
479
+ const { scopePath: L, requestBusinessIds: Q, country: _ } = oe(ke()), { currentReport: O, editingReport: S, overviewReport: c } = Me(), { selectedNavigationTab: d, isEditorRoute: h } = je(), y = wt({
480
480
  selectedNavigationTab: d,
481
- isEditorRoute: v,
481
+ isEditorRoute: h,
482
482
  overviewReport: c,
483
483
  editingReport: S,
484
484
  currentReport: O
485
- }), N = Je(d);
485
+ }), C = Je(d);
486
486
  if (bt(y))
487
487
  return ra({
488
488
  widget: l,
@@ -504,7 +504,7 @@ const ra = async ({
504
504
  compareDateRange: ee,
505
505
  timeRange: le,
506
506
  timezone: Z,
507
- restaurants: C,
507
+ restaurants: N,
508
508
  warehouses: W
509
509
  } = Pe(), { globalFilters: ne } = Ge();
510
510
  if (z.length === 0)
@@ -512,13 +512,13 @@ const ra = async ({
512
512
  const U = p ?? q, K = m ?? le, se = f ?? ne;
513
513
  if (!Ke({
514
514
  report: y,
515
- pageSubject: N,
515
+ pageSubject: C,
516
516
  dateRange: U,
517
517
  compareDateRange: ee,
518
518
  timezone: Z
519
519
  }))
520
520
  return null;
521
- const x = (r == null ? void 0 : r.filter((Te) => C.some((de) => de.id === Te))) ?? R, k = (r == null ? void 0 : r.filter((Te) => W.some((de) => de.id === Te))) ?? H, ce = Qe(l, se, s ?? ""), ue = {
521
+ const x = (r == null ? void 0 : r.filter((Te) => N.some((de) => de.id === Te))) ?? R, k = (r == null ? void 0 : r.filter((Te) => W.some((de) => de.id === Te))) ?? H, ce = Qe(l, se, s ?? ""), ue = {
522
522
  fetchType: Oe.Post,
523
523
  url: `/${L.value}/postgres-query`,
524
524
  data: gt.getQueryRequests({
@@ -565,10 +565,10 @@ const ra = async ({
565
565
  dateRange: f,
566
566
  globalFilters: F
567
567
  }) => {
568
- const { scopePath: b, requestBusinessIds: u } = oe(ke()), L = Pe(), { compareDateRange: Q } = oe(L), { restaurants: _, warehouses: O, timezone: S } = L, { globalFilters: c } = Ge(), { currentReport: d, overviewReport: v } = Me(), { selectedNavigationTab: y } = je(), { getTileSorts: N } = Zt(), { getTileSearch: R } = Zl();
568
+ const { scopePath: b, requestBusinessIds: u } = oe(ke()), L = Pe(), { compareDateRange: Q } = oe(L), { restaurants: _, warehouses: O, timezone: S } = L, { globalFilters: c } = Ge(), { currentReport: d, overviewReport: h } = Me(), { selectedNavigationTab: y } = je(), { getTileSorts: C } = Zt(), { getTileSearch: R } = Zl();
569
569
  let H = d == null ? void 0 : d.id, z = Ue(d == null ? void 0 : d.tiles);
570
- y === "overview" && v && (H = v == null ? void 0 : v.id, z = Ue(v == null ? void 0 : v.tiles));
571
- const q = y === "overview" && v ? v : d, ee = Je(y);
570
+ y === "overview" && h && (H = h == null ? void 0 : h.id, z = Ue(h == null ? void 0 : h.tiles));
571
+ const q = y === "overview" && h ? h : d, ee = Je(y);
572
572
  if (!Ke({
573
573
  report: q,
574
574
  pageSubject: ee,
@@ -577,7 +577,7 @@ const ra = async ({
577
577
  timezone: S
578
578
  }))
579
579
  return;
580
- const le = F ?? c, Z = z.filter((x, k) => typeof a == "number" ? k === a : !0).map((x) => Qe(x.widget, le, x.id)), C = {
580
+ const le = F ?? c, Z = z.filter((x, k) => typeof a == "number" ? k === a : !0).map((x) => Qe(x.widget, le, x.id)), N = {
581
581
  fetchType: Oe.Post,
582
582
  url: `/${b.value}/file?lang=${xe()}`,
583
583
  data: {
@@ -607,7 +607,7 @@ const ra = async ({
607
607
  index: a || k,
608
608
  drillDimension: null,
609
609
  ...el(x),
610
- globalSorts: N(a ?? k)
610
+ globalSorts: C(a ?? k)
611
611
  };
612
612
  })
613
613
  ],
@@ -620,7 +620,7 @@ const ra = async ({
620
620
  responseType: "arraybuffer",
621
621
  timeout: 1e3 * 60 * 60 * 24
622
622
  }
623
- }, { headers: W, data: ne } = await St.rawFetch(C), U = W["content-disposition"].split("filename=")[1].replaceAll('"', ""), K = window.URL.createObjectURL(new Blob([new Uint8Array(ne).buffer])), se = document.createElement("a");
623
+ }, { headers: W, data: ne } = await St.rawFetch(N), U = W["content-disposition"].split("filename=")[1].replaceAll('"', ""), K = window.URL.createObjectURL(new Blob([new Uint8Array(ne).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
  }, ja = async ({
626
626
  emails: l,
@@ -633,7 +633,7 @@ const ra = async ({
633
633
  attachFiles: F,
634
634
  globalFilters: b
635
635
  }) => {
636
- const { businessId: u, scopePath: L, requestBusinessIds: Q } = oe(ke()), { currentReport: _, overviewReport: O } = Me(), { selectedNavigationTab: S } = je(), c = Pe(), { compareDateRange: d } = oe(c), { restaurants: v, warehouses: y, timezone: N } = c, { globalFilters: R } = Ge(), { getTileSorts: H } = Zt();
636
+ const { businessId: u, scopePath: L, requestBusinessIds: Q } = oe(ke()), { currentReport: _, overviewReport: O } = Me(), { selectedNavigationTab: S } = je(), c = Pe(), { compareDateRange: d } = oe(c), { restaurants: h, 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;
@@ -646,10 +646,10 @@ const ra = async ({
646
646
  pageSubject: Z,
647
647
  dateRange: s,
648
648
  compareDateRange: d.value,
649
- timezone: N
649
+ timezone: C
650
650
  }))
651
651
  return;
652
- const C = b ?? R, W = ee.map((U) => Qe(U.widget, C, U.id)), ne = {
652
+ const N = b ?? R, W = ee.map((U) => Qe(U.widget, N, U.id)), ne = {
653
653
  businessId: u.value || void 0,
654
654
  status: Ht.generating,
655
655
  dateRange: {
@@ -666,17 +666,17 @@ const ra = async ({
666
666
  dateRange: [s.startDate, s.endDate],
667
667
  compareDateRange: d.value.startDate && d.value.endDate ? [d.value.startDate, d.value.endDate] : void 0,
668
668
  timeRange: [
669
- E().tz(N).hour(Number((se = r.start) == null ? void 0 : se.hour)).minute(Number((x = r.start) == null ? void 0 : x.minute)).toISOString(),
670
- E().tz(N).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: m.filter(
674
- (ue) => v.find((re) => re.id === ue)
674
+ (ue) => h.find((re) => re.id === ue)
675
675
  ),
676
676
  warehouseIds: m.filter(
677
677
  (ue) => y.find((re) => re.id === ue)
678
678
  ),
679
- timezone: N
679
+ timezone: C
680
680
  }),
681
681
  index: K,
682
682
  drillDimension: null,
@@ -757,7 +757,7 @@ const ra = async ({
757
757
  function jt(l, a) {
758
758
  return l.isSystem ? a("reportV5.reportHour.fullDay") : l.name;
759
759
  }
760
- const ma = { class: "px-24 py-16 rounded-lg shadow-light-300" }, da = { class: "text-fm-color-typo-primary" }, pa = { class: "text-fm-color-typo-secondary" }, fa = { class: "fm-typo-en-body-lg-600 mb-8" }, ha = { class: "flex items-center justify-center w-full" }, va = { class: "fm-typo-en-body-lg-600 mb-8" }, ba = { class: "flex items-center justify-center" }, ya = { class: "flex flex-row mb-4 px-4 gap-2" }, ga = /* @__PURE__ */ yt({
760
+ const ma = { class: "px-24 py-16 rounded-lg shadow-light-300" }, da = { class: "text-fm-color-typo-primary" }, pa = { class: "text-fm-color-typo-secondary" }, fa = { class: "fm-typo-en-body-lg-600 mb-8" }, va = { class: "flex items-center justify-center w-full" }, ha = { class: "fm-typo-en-body-lg-600 mb-8" }, ba = { class: "flex items-center justify-center" }, ya = { class: "flex flex-row mb-4 px-4 gap-2" }, ga = /* @__PURE__ */ yt({
761
761
  __name: "TimeRangeSelect",
762
762
  props: /* @__PURE__ */ rt({
763
763
  defaultDateRange: {
@@ -821,8 +821,8 @@ const ma = { class: "px-24 py-16 rounded-lg shadow-light-300" }, da = { class: "
821
821
  if (m.value) {
822
822
  const S = l.defaultDateRange.findIndex(
823
823
  (c) => {
824
- var d, v, y, N;
825
- return c.startTime.hour === ((d = m.value.start) == null ? void 0 : d.hour) && c.startTime.minute === ((v = m.value.start) == null ? void 0 : v.minute) && c.endTime.hour === ((y = m.value.end) == null ? void 0 : y.hour) && c.endTime.minute === ((N = m.value.end) == null ? void 0 : N.minute);
824
+ var d, h, y, C;
825
+ return c.startTime.hour === ((d = m.value.start) == null ? void 0 : d.hour) && c.startTime.minute === ((h = m.value.start) == null ? void 0 : h.minute) && c.endTime.hour === ((y = m.value.end) == null ? void 0 : y.hour) && c.endTime.minute === ((C = m.value.end) == null ? void 0 : C.minute);
826
826
  }
827
827
  ) + 1;
828
828
  S !== 0 ? f.value = S : f.value = l.defaultDateRange.length + 1;
@@ -840,8 +840,8 @@ const ma = { class: "px-24 py-16 rounded-lg shadow-light-300" }, da = { class: "
840
840
  locale: r.value
841
841
  }));
842
842
  return (S, c) => {
843
- const d = te("FmChip"), v = te("FmRadio"), y = te("FmMenuDivider"), N = te("FmRadioGroup"), R = te("FmTimeInput"), H = te("FmButton"), z = te("FmPopover");
844
- return X(), he("div", null, [
843
+ const d = te("FmChip"), h = te("FmRadio"), y = te("FmMenuDivider"), C = te("FmRadioGroup"), R = te("FmTimeInput"), H = te("FmButton"), z = te("FmPopover");
844
+ return X(), ve("div", null, [
845
845
  M(z, {
846
846
  "show-popover": Q.value,
847
847
  placement: "bottom",
@@ -859,34 +859,34 @@ const ma = { class: "px-24 py-16 rounded-lg shadow-light-300" }, da = { class: "
859
859
  var q, ee, le, Z;
860
860
  return [
861
861
  Y("div", ma, [
862
- M(N, {
862
+ M(C, {
863
863
  modelValue: f.value,
864
- "onUpdate:modelValue": c[1] || (c[1] = (C) => f.value = C)
864
+ "onUpdate:modelValue": c[1] || (c[1] = (N) => f.value = N)
865
865
  }, {
866
866
  default: ie(() => [
867
- (X(!0), he(Le, null, ht(l.defaultDateRange, (C, W) => (X(), De(v, {
867
+ (X(!0), ve(Le, null, vt(l.defaultDateRange, (N, W) => (X(), De(h, {
868
868
  key: `range_${W}`,
869
869
  value: W + 1,
870
- label: D(jt)(C, D(s)),
871
- onClick: (ne) => L(C.startTime, C.endTime)
870
+ label: D(jt)(N, D(s)),
871
+ onClick: (ne) => L(N.startTime, N.endTime)
872
872
  }, {
873
873
  label: ie(() => [
874
874
  Y("p", da, [
875
- st(be(D(jt)(C, D(s))) + " ", 1),
875
+ st(be(D(jt)(N, D(s))) + " ", 1),
876
876
  $l(M(d, {
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
- [Gl, C.isDefault]
881
+ [Gl, N.isDefault]
882
882
  ])
883
883
  ]),
884
- Y("p", pa, be(D(Ut)(C.startTime, D(xe)())) + " - " + be(D(Ut)(C.endTime, D(xe)())) + " " + be(D(ca)(C.startTime, C.endTime)), 1)
884
+ Y("p", pa, be(D(Ut)(N.startTime, D(xe)())) + " - " + be(D(Ut)(N.endTime, D(xe)())) + " " + be(D(ca)(N.startTime, N.endTime)), 1)
885
885
  ]),
886
886
  _: 2
887
887
  }, 1032, ["value", "label", "onClick"]))), 128)),
888
888
  M(y),
889
- M(v, {
889
+ M(h, {
890
890
  key: "range_custom",
891
891
  label: D(s)("report.common.custom"),
892
892
  value: l.defaultDateRange.length + 1
@@ -894,14 +894,14 @@ const ma = { class: "px-24 py-16 rounded-lg shadow-light-300" }, da = { class: "
894
894
  ]),
895
895
  _: 1
896
896
  }, 8, ["modelValue"]),
897
- f.value === l.defaultDateRange.length + 1 ? (X(), he(Le, { key: 0 }, [
897
+ f.value === l.defaultDateRange.length + 1 ? (X(), ve(Le, { key: 0 }, [
898
898
  Y("p", fa, be(D(s)("report.date.startingTime")), 1),
899
- Y("div", ha, [
899
+ Y("div", va, [
900
900
  M(R, {
901
901
  "model-value": b(`${(q = u.value.start) == null ? void 0 : q.hour}:${(ee = u.value.start) == null ? void 0 : ee.minute}`),
902
- "onUpdate:modelValue": c[2] || (c[2] = (C) => {
902
+ "onUpdate:modelValue": c[2] || (c[2] = (N) => {
903
903
  if (u.value.start) {
904
- const W = D(E)(`${C.hours}:${C.minutes} ${C.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");
@@ -909,13 +909,13 @@ const ma = { class: "px-24 py-16 rounded-lg shadow-light-300" }, da = { class: "
909
909
  })
910
910
  }, null, 8, ["model-value"])
911
911
  ]),
912
- Y("p", va, be(D(s)("report.date.endingTime")), 1),
912
+ Y("p", ha, be(D(s)("report.date.endingTime")), 1),
913
913
  Y("div", ba, [
914
914
  M(R, {
915
915
  "model-value": b(`${(le = u.value.end) == null ? void 0 : le.hour}:${(Z = u.value.end) == null ? void 0 : Z.minute}`),
916
- "onUpdate:modelValue": c[3] || (c[3] = (C) => {
916
+ "onUpdate:modelValue": c[3] || (c[3] = (N) => {
917
917
  if (u.value.end) {
918
- const W = D(E)(`${C.hours}:${C.minutes} ${C.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");
@@ -923,13 +923,13 @@ const ma = { class: "px-24 py-16 rounded-lg shadow-light-300" }, da = { class: "
923
923
  })
924
924
  }, null, 8, ["model-value"])
925
925
  ])
926
- ], 64)) : vt("", !0),
926
+ ], 64)) : ht("", !0),
927
927
  Y("div", ya, [
928
928
  c[7] || (c[7] = Y("div", { class: "grow" }, null, -1)),
929
929
  M(H, {
930
930
  label: D(s)("report.common.cancel"),
931
931
  variant: "tertiary",
932
- onClick: c[4] || (c[4] = (C) => Q.value = !1)
932
+ onClick: c[4] || (c[4] = (N) => Q.value = !1)
933
933
  }, null, 8, ["label"]),
934
934
  M(H, {
935
935
  label: D(s)("report.common.apply"),
@@ -1032,7 +1032,7 @@ function Ha({
1032
1032
  }) {
1033
1033
  const { fixed: m, count: p } = Sa(l);
1034
1034
  switch (s) {
1035
- case ve.String:
1035
+ case he.String:
1036
1036
  return {
1037
1037
  type: "TextField",
1038
1038
  fixed: m,
@@ -1040,7 +1040,7 @@ function Ha({
1040
1040
  dataType: void 0,
1041
1041
  default: ""
1042
1042
  };
1043
- case ve.Numeric:
1043
+ case he.Numeric:
1044
1044
  return {
1045
1045
  type: "TextField",
1046
1046
  fixed: m,
@@ -1048,7 +1048,7 @@ function Ha({
1048
1048
  dataType: "number",
1049
1049
  default: 0
1050
1050
  };
1051
- case ve.Bool:
1051
+ case he.Bool:
1052
1052
  return {
1053
1053
  type: "Select",
1054
1054
  fixed: m,
@@ -1059,7 +1059,7 @@ function Ha({
1059
1059
  ],
1060
1060
  default: !0
1061
1061
  };
1062
- case ve.Timestamp:
1062
+ case he.Timestamp:
1063
1063
  return ll({
1064
1064
  dimensionOption: a,
1065
1065
  fixed: m,
@@ -1185,7 +1185,7 @@ function pt({
1185
1185
  const Fa = { class: "flex flex-row flex-wrap gap-2" }, wa = { class: "inline-flex max-w-[460px]" }, Da = {
1186
1186
  key: 0,
1187
1187
  class: "flex justify-center my-2"
1188
- }, Ta = { class: "px-2 pb-8" }, Va = { class: "flex-1 overflow-y-auto overflow-x-hidden" }, Ca = { class: "px-2 pb-8" }, Na = { class: "flex items-start w-full" }, ka = ["onClick"], Oa = { class: "fm-typo-en-body-md-400" }, _a = { key: 0 }, Ra = { class: "px-12 py-3" }, Aa = { class: "flex items-center justify-between" }, Ia = { class: "text-xs max-w-[200px]" }, xa = { class: "px-4 py-3 flex flex-row justify-end gap-2 bg-white" }, Ne = "__EMPTY__", we = "__NO_SELECTION__", en = /* @__PURE__ */ yt({
1188
+ }, Ta = { class: "px-2 pb-8" }, Va = { class: "flex-1 overflow-y-auto overflow-x-hidden" }, Na = { class: "px-2 pb-8" }, Ca = { class: "flex items-start w-full" }, ka = ["onClick"], Oa = { class: "fm-typo-en-body-md-400" }, _a = { key: 0 }, Ra = { class: "px-12 py-3" }, Aa = { class: "flex items-center justify-between" }, Ia = { class: "text-xs max-w-[200px]" }, xa = { class: "px-4 py-3 flex flex-row justify-end gap-2 bg-white" }, Ce = "__EMPTY__", we = "__NO_SELECTION__", en = /* @__PURE__ */ yt({
1189
1189
  __name: "GlobalFilterSelect",
1190
1190
  props: {
1191
1191
  globalFilterId: {},
@@ -1204,13 +1204,13 @@ const Fa = { class: "flex flex-row flex-wrap gap-2" }, wa = { class: "inline-fle
1204
1204
  setGlobalFilter: S,
1205
1205
  setIncludeUnavailable: c,
1206
1206
  getGlobalFilterKey: d,
1207
- isMenuOpen: v,
1207
+ isMenuOpen: h,
1208
1208
  getGlobalFilterLabel: y,
1209
- incrementAppliedTilesFiltersVersion: N
1209
+ incrementAppliedTilesFiltersVersion: C
1210
1210
  } = Ge();
1211
1211
  const R = Se(() => s("report.input.empty")), H = ["NULL", "", " "];
1212
1212
  let z;
1213
- const q = ua(), { getWidgetResult: ee } = q, { widgetResults: le, isAllWidgetResultLoaded: Z } = oe(q), C = ye(!1), W = ye(!1), ne = ye(""), U = ye({}), K = Se(() => {
1213
+ const q = ua(), { getWidgetResult: ee } = q, { widgetResults: le, isAllWidgetResultLoaded: Z } = oe(q), N = ye(!1), W = ye(!1), ne = ye(""), U = ye({}), K = Se(() => {
1214
1214
  var e;
1215
1215
  return a.globalFilterId ?? ((e = m.value) == null ? void 0 : e.id) ?? "";
1216
1216
  }), se = Se(() => a.report ?? m.value), x = ye([]);
@@ -1218,14 +1218,14 @@ const Fa = { class: "flex flex-row flex-wrap gap-2" }, wa = { class: "inline-fle
1218
1218
  return `${K.value}|instance:${e}`;
1219
1219
  }
1220
1220
  function ce(e) {
1221
- return ct(e) ? !1 : C.value ? !0 : a.isDialogGlobalFilter ? W.value : !Z.value && e.options.length === 0;
1221
+ return ct(e) ? !1 : N.value ? !0 : a.isDialogGlobalFilter ? W.value : !Z.value && e.options.length === 0;
1222
1222
  }
1223
1223
  function ue(e, t) {
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, n, h, T, g, $, A, I;
1228
- return ((o = e == null ? void 0 : e.start) == null ? void 0 : o.hour) === ((n = t == null ? void 0 : t.start) == null ? void 0 : n.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);
1227
+ var o, n, v, T, g, $, A, I;
1228
+ return ((o = e == null ? void 0 : e.start) == null ? void 0 : o.hour) === ((n = t == null ? void 0 : t.start) == null ? void 0 : n.hour) && ((v = e == null ? void 0 : e.start) == null ? void 0 : v.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, n) => o === t[n]);
@@ -1240,16 +1240,16 @@ const Fa = { class: "flex flex-row flex-wrap gap-2" }, wa = { class: "inline-fle
1240
1240
  return e ? [...e.tileIds ?? []] : Array.from(new Set(et.value.flatMap((t) => t.tileIds ?? [])));
1241
1241
  }
1242
1242
  function ae(e) {
1243
- a.isDialogGlobalFilter || N(ge(e));
1243
+ a.isDialogGlobalFilter || C(ge(e));
1244
1244
  }
1245
1245
  function P(e) {
1246
1246
  return e.filter((t) => t !== we);
1247
1247
  }
1248
1248
  function Te(e) {
1249
1249
  const t = e.some(
1250
- (n) => n === Ne || n === "NULL" || typeof n == "string" && (n === "" || n === " ")
1250
+ (n) => n === Ce || n === "NULL" || typeof n == "string" && (n === "" || n === " ")
1251
1251
  ), o = e.flatMap(
1252
- (n) => n === Ne ? [...H] : [n]
1252
+ (n) => n === Ce ? [...H] : [n]
1253
1253
  );
1254
1254
  return Array.from(t ? /* @__PURE__ */ new Set([...o, ...H]) : new Set(o));
1255
1255
  }
@@ -1280,14 +1280,14 @@ const Fa = { class: "flex flex-row flex-wrap gap-2" }, wa = { class: "inline-fle
1280
1280
  U.value[e.id] = [...t], Be(e);
1281
1281
  }
1282
1282
  function sl() {
1283
- var n, h, T, g;
1283
+ var n, v, T, g;
1284
1284
  const e = F.value, t = f.value, o = b.value || [];
1285
1285
  return JSON.stringify({
1286
1286
  globalFilterId: K.value,
1287
1287
  startDate: (e == null ? void 0 : e.startDate) ?? null,
1288
1288
  endDate: (e == null ? void 0 : e.endDate) ?? null,
1289
1289
  startHour: ((n = t == null ? void 0 : t.start) == null ? void 0 : n.hour) ?? null,
1290
- startMinute: ((h = t == null ? void 0 : t.start) == null ? void 0 : h.minute) ?? null,
1290
+ startMinute: ((v = t == null ? void 0 : t.start) == null ? void 0 : v.minute) ?? null,
1291
1291
  endHour: ((T = t == null ? void 0 : t.end) == null ? void 0 : T.hour) ?? null,
1292
1292
  endMinute: ((g = t == null ? void 0 : t.end) == null ? void 0 : g.minute) ?? null,
1293
1293
  locationIds: o
@@ -1322,19 +1322,19 @@ const Fa = { class: "flex flex-row flex-wrap gap-2" }, wa = { class: "inline-fle
1322
1322
  return e.includes(we);
1323
1323
  }
1324
1324
  function Tt(e) {
1325
- return e === Ne || String(e ?? "").trim() === "";
1325
+ return e === Ce || String(e ?? "").trim() === "";
1326
1326
  }
1327
1327
  function it(e) {
1328
1328
  return [...e].sort((t, o) => {
1329
- const n = Tt(t.value), h = Tt(o.value);
1330
- return n !== h ? n ? -1 : 1 : t.label.localeCompare(o.label, r.value, {
1329
+ const n = Tt(t.value), v = Tt(o.value);
1330
+ return n !== v ? n ? -1 : 1 : t.label.localeCompare(o.label, r.value, {
1331
1331
  numeric: !0,
1332
1332
  sensitivity: "base"
1333
1333
  });
1334
1334
  });
1335
1335
  }
1336
1336
  function Vt(e) {
1337
- return e.type === ve.String && !ze(e.globalFilter);
1337
+ return e.type === he.String && !ze(e.globalFilter);
1338
1338
  }
1339
1339
  function He(e) {
1340
1340
  return (e.options || []).map((t) => t.value);
@@ -1385,29 +1385,29 @@ const Fa = { class: "flex flex-row flex-wrap gap-2" }, wa = { class: "inline-fle
1385
1385
  function il(e, t) {
1386
1386
  const o = new Set(P(t));
1387
1387
  if (!o.size) return !1;
1388
- const n = (e.options || []).map((h) => h.value);
1389
- return n.length ? n.every((h) => o.has(h)) : !1;
1388
+ const n = (e.options || []).map((v) => v.value);
1389
+ return n.length ? n.every((v) => o.has(v)) : !1;
1390
1390
  }
1391
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
1395
  function cl(e) {
1396
- const t = Ye(e), o = P(t), n = Te(o), h = Ve(t);
1396
+ const t = Ye(e), o = P(t), n = Te(o), v = Ve(t);
1397
1397
  if (ul(e))
1398
1398
  return [];
1399
1399
  if (il(e, t))
1400
1400
  return [];
1401
1401
  if (!e.keepSelection || a.isDialogGlobalFilter)
1402
- return n.length ? n : h ? [Ne] : [];
1402
+ return n.length ? n : v ? [Ce] : [];
1403
1403
  if (!ut(e))
1404
- return n.length ? n : h ? [Ne] : [];
1404
+ return n.length ? n : v ? [Ce] : [];
1405
1405
  const T = new Set(
1406
1406
  (e.options || []).filter((A) => A.available !== !1).map((A) => A.value)
1407
1407
  ), g = o.filter(
1408
1408
  (A) => T.has(A)
1409
1409
  ), $ = Te(g);
1410
- return $.length ? $ : h ? [Ne] : [];
1410
+ return $.length ? $ : v ? [Ce] : [];
1411
1411
  }
1412
1412
  function Xe(e) {
1413
1413
  const t = U.value[e.id];
@@ -1449,23 +1449,23 @@ const Fa = { class: "flex flex-row flex-wrap gap-2" }, wa = { class: "inline-fle
1449
1449
  function fl(e) {
1450
1450
  return e.map((t) => pl(t));
1451
1451
  }
1452
- function hl(e, t) {
1453
- const o = `${d(e, K.value)}|${t}`, n = O(e, k(o)), h = n.selectedValues.length ? [...n.selectedValues] : [...e.values ?? []];
1452
+ function vl(e, t) {
1453
+ const o = `${d(e, K.value)}|${t}`, n = O(e, k(o)), v = n.selectedValues.length ? [...n.selectedValues] : [...e.values ?? []];
1454
1454
  return {
1455
1455
  id: o,
1456
1456
  globalFilter: e,
1457
1457
  search: n.search,
1458
1458
  options: n.options,
1459
- type: Nt(e),
1460
- selectedValues: h,
1459
+ type: Ct(e),
1460
+ selectedValues: v,
1461
1461
  visibleCount: n.visibleCount,
1462
1462
  keepSelection: n.keepSelection,
1463
1463
  showAdvanced: n.showAdvanced
1464
1464
  };
1465
1465
  }
1466
- function vl() {
1466
+ function hl() {
1467
1467
  x.value = et.value.map(
1468
- (e, t) => hl(e, t)
1468
+ (e, t) => vl(e, t)
1469
1469
  );
1470
1470
  }
1471
1471
  const bl = Se(
@@ -1489,7 +1489,7 @@ const Fa = { class: "flex flex-row flex-wrap gap-2" }, wa = { class: "inline-fle
1489
1489
  (e, t) => {
1490
1490
  t && t.globalFilterId !== e.globalFilterId && x.value.forEach((o) => {
1491
1491
  o.options = [];
1492
- }), vl(), t && t.globalFiltersConfigSignature !== e.globalFiltersConfigSignature && ae(), Z.value && lt();
1492
+ }), hl(), t && t.globalFiltersConfigSignature !== e.globalFiltersConfigSignature && ae(), Z.value && lt();
1493
1493
  },
1494
1494
  { immediate: !0 }
1495
1495
  ), Ae(
@@ -1525,24 +1525,24 @@ const Fa = { class: "flex flex-row flex-wrap gap-2" }, wa = { class: "inline-fle
1525
1525
  gl();
1526
1526
  }
1527
1527
  );
1528
- function Ct(e, t) {
1528
+ function Nt(e, t) {
1529
1529
  var o;
1530
- return t === !0 ? s("report.common.yes") || "Yes" : t === !1 ? s("report.common.no") || "No" : String(t).trim() === "" || t === Ne ? R.value : e.type === ve.Timestamp && e.globalFilter.option !== B.DateTime && e.globalFilter.option !== B.TimeOfDay ? ((o = pt({
1530
+ return t === !0 ? s("report.common.yes") || "Yes" : t === !1 ? s("report.common.no") || "No" : String(t).trim() === "" || t === Ce ? R.value : e.type === he.Timestamp && e.globalFilter.option !== B.DateTime && e.globalFilter.option !== B.TimeOfDay ? ((o = pt({
1531
1531
  dimensionOption: e.globalFilter.option,
1532
1532
  t: s
1533
- }).find((h) => String(h.value) === String(t))) == null ? void 0 : o.label) ?? String(t) : String(t);
1533
+ }).find((v) => String(v.value) === String(t))) == null ? void 0 : o.label) ?? String(t) : String(t);
1534
1534
  }
1535
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
- label: Ct(e, o.value)
1540
+ label: Nt(e, o.value)
1541
1541
  }));
1542
1542
  e.options = Vt(e) ? it(t) : t;
1543
1543
  });
1544
1544
  }
1545
- function Nt(e) {
1545
+ function Ct(e) {
1546
1546
  var o;
1547
1547
  const t = (o = Q.value.find((n) => n.name === e.schemaName)) == null ? void 0 : o.fields.find((n) => n.name === e.name);
1548
1548
  return t == null ? void 0 : t.type;
@@ -1551,7 +1551,7 @@ const Fa = { class: "flex flex-row flex-wrap gap-2" }, wa = { class: "inline-fle
1551
1551
  var $, A;
1552
1552
  if (!se.value && !p.value) return [];
1553
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: n = "" } = e, h = t.filter((I) => {
1554
+ const t = p.value ? [p.value] : Ue((A = se.value) == null ? void 0 : A.tiles), { name: o = "", schemaName: n = "" } = e, v = t.filter((I) => {
1555
1555
  var pe, w;
1556
1556
  const G = (pe = I == null ? void 0 : I.widget) == null ? void 0 : pe.config;
1557
1557
  if (!G || (w = e.tileIds) != null && w.length && !e.tileIds.includes(I.id)) return !1;
@@ -1562,7 +1562,7 @@ const Fa = { class: "flex flex-row flex-wrap gap-2" }, wa = { class: "inline-fle
1562
1562
  ), V = (G.schemaNames ?? []).includes(n);
1563
1563
  return i || J || V;
1564
1564
  });
1565
- if (!h.length) return [];
1565
+ if (!v.length) return [];
1566
1566
  const T = (I, G) => {
1567
1567
  const i = /* @__PURE__ */ new Map(), J = (V) => {
1568
1568
  const pe = `${V.schemaName}:${V.name}:${V.operator}:${V.option ?? ""}:${V.dataFormula ?? ""}`, w = i.get(pe);
@@ -1583,23 +1583,23 @@ const Fa = { class: "flex flex-row flex-wrap gap-2" }, wa = { class: "inline-fle
1583
1583
  dataFormula: G == null ? void 0 : G.dataFormula
1584
1584
  };
1585
1585
  };
1586
- return h.reduce((I, G) => {
1586
+ return v.reduce((I, G) => {
1587
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
- const J = g(i), V = (i.dimensions ?? []).some((Ce) => Ce.schemaName === n) || (i.schemaNames ?? []).includes(n), pe = T(
1590
+ const J = g(i), V = (i.dimensions ?? []).some((Ne) => Ne.schemaName === n) || (i.schemaNames ?? []).includes(n), pe = T(
1591
1591
  i.filters ?? [],
1592
- (e.filters ?? []).filter((Ce) => {
1592
+ (e.filters ?? []).filter((Ne) => {
1593
1593
  var Re;
1594
- return (Re = i.schemaNames) == null ? void 0 : Re.includes(Ce.schemaName);
1594
+ return (Re = i.schemaNames) == null ? void 0 : Re.includes(Ne.schemaName);
1595
1595
  })
1596
1596
  ), w = (Et = i.joinDatasources) == null ? void 0 : Et.find(
1597
- (Ce) => (Ce.schemaNames ?? []).includes(n) || (Ce.dimensions ?? []).some((Re) => Re.schemaName === n)
1597
+ (Ne) => (Ne.schemaNames ?? []).includes(n) || (Ne.dimensions ?? []).some((Re) => Re.schemaName === n)
1598
1598
  ), _e = T(
1599
1599
  (w == null ? void 0 : w.filters) ?? [],
1600
- (e.filters ?? []).filter((Ce) => {
1600
+ (e.filters ?? []).filter((Ne) => {
1601
1601
  var Re;
1602
- return (Re = w == null ? void 0 : w.schemaNames) == null ? void 0 : Re.includes(Ce.schemaName);
1602
+ return (Re = w == null ? void 0 : w.schemaNames) == null ? void 0 : Re.includes(Ne.schemaName);
1603
1603
  })
1604
1604
  );
1605
1605
  return I.push({
@@ -1662,7 +1662,7 @@ const Fa = { class: "flex flex-row flex-wrap gap-2" }, wa = { class: "inline-fle
1662
1662
  () => x.value.map((e) => {
1663
1663
  const t = e.options, o = e.search.toLowerCase() ?? "";
1664
1664
  return t.filter(
1665
- (h) => h.label.toLowerCase().includes(o.toLowerCase())
1665
+ (v) => v.label.toLowerCase().includes(o.toLowerCase())
1666
1666
  ).slice(0, e.visibleCount);
1667
1667
  })
1668
1668
  );
@@ -1688,7 +1688,7 @@ const Fa = { class: "flex flex-row flex-wrap gap-2" }, wa = { class: "inline-fle
1688
1688
  return a.isDialogGlobalFilter && me.value && ((e = m.value) != null && e.id) ? m.value.id : K.value;
1689
1689
  }
1690
1690
  function tt(e) {
1691
- return String(e ?? "").trim() === "" ? Ne : String(e);
1691
+ return String(e ?? "").trim() === "" ? Ce : String(e);
1692
1692
  }
1693
1693
  function Tl(e) {
1694
1694
  var t, o;
@@ -1705,17 +1705,17 @@ const Fa = { class: "flex flex-row flex-wrap gap-2" }, wa = { class: "inline-fle
1705
1705
  function Vl(e) {
1706
1706
  const t = P(e.selectedValues || []);
1707
1707
  if (!t.length) return;
1708
- const o = new Set(e.options.map((h) => h.value)), n = t.filter((h) => !o.has(h)).map((h) => ({
1709
- value: h,
1710
- label: Ct(e, h),
1708
+ const o = new Set(e.options.map((v) => v.value)), n = t.filter((v) => !o.has(v)).map((v) => ({
1709
+ value: v,
1710
+ label: Nt(e, v),
1711
1711
  available: !1
1712
1712
  }));
1713
1713
  if (n.length) {
1714
- const h = [...e.options, ...n];
1715
- e.options = Vt(e) ? it(h) : h;
1714
+ const v = [...e.options, ...n];
1715
+ e.options = Vt(e) ? it(v) : v;
1716
1716
  }
1717
1717
  }
1718
- function Cl(e) {
1718
+ function Nl(e) {
1719
1719
  if (e.keepSelection) {
1720
1720
  Vl(e);
1721
1721
  const o = de(e);
@@ -1723,39 +1723,39 @@ const Fa = { class: "flex flex-row flex-wrap gap-2" }, wa = { class: "inline-fle
1723
1723
  } else {
1724
1724
  const o = P(de(e));
1725
1725
  e.options = e.options.filter((T) => T.available !== !1);
1726
- const n = new Set(e.options.map((T) => T.value)), h = o.filter(
1726
+ const n = new Set(e.options.map((T) => T.value)), v = o.filter(
1727
1727
  (T) => n.has(T)
1728
1728
  );
1729
- e.selectedValues = h;
1729
+ e.selectedValues = v;
1730
1730
  }
1731
1731
  const t = Ye(e);
1732
1732
  e.selectedValues = [...t], S(e.globalFilter, k(e.id), {
1733
1733
  selectedValues: t
1734
1734
  });
1735
1735
  }
1736
- async function Nl(e, t) {
1736
+ async function Cl(e, t) {
1737
1737
  var o;
1738
1738
  if (e.options = [], !((o = e.globalFilter.tileIds) != null && o.length)) {
1739
1739
  al(e);
1740
1740
  return;
1741
1741
  }
1742
- if (!(!e.type && (e.type = Nt(e.globalFilter), !e.type))) {
1742
+ if (!(!e.type && (e.type = Ct(e.globalFilter), !e.type))) {
1743
1743
  if (ze(e.globalFilter)) {
1744
1744
  e.options = Tl(e.globalFilter), Xe(e);
1745
1745
  return;
1746
1746
  }
1747
1747
  switch (e.type) {
1748
- case ve.String:
1748
+ case he.String:
1749
1749
  try {
1750
1750
  const n = Sl(e.globalFilter);
1751
1751
  if (!n.length) {
1752
1752
  e.options = [];
1753
1753
  return;
1754
1754
  }
1755
- const h = At(), T = [];
1755
+ const v = At(), T = [];
1756
1756
  for (const i of n) {
1757
1757
  if (t.aborted) return;
1758
- if (h) {
1758
+ if (v) {
1759
1759
  const V = await oa({
1760
1760
  widget: i,
1761
1761
  signal: t,
@@ -1788,21 +1788,21 @@ const Fa = { class: "flex flex-row flex-wrap gap-2" }, wa = { class: "inline-fle
1788
1788
  throw n;
1789
1789
  }
1790
1790
  break;
1791
- case ve.Bool: {
1791
+ case he.Bool: {
1792
1792
  e.options = [
1793
1793
  { label: s("report.common.yes"), value: !0 },
1794
1794
  { label: s("report.common.no"), value: !1 }
1795
1795
  ], Xe(e);
1796
1796
  break;
1797
1797
  }
1798
- case ve.Timestamp:
1798
+ case he.Timestamp:
1799
1799
  if (e.globalFilter.option !== B.DateTime && e.globalFilter.option !== B.TimeOfDay) {
1800
1800
  const n = e.globalFilter.option;
1801
- e.options = pt({ dimensionOption: n, t: s }), e.globalFilter.values = e.options.length ? e.options.map((h) => h.value) : ["NULL"];
1801
+ e.options = pt({ dimensionOption: n, t: s }), e.globalFilter.values = e.options.length ? e.options.map((v) => v.value) : ["NULL"];
1802
1802
  }
1803
1803
  Xe(e);
1804
1804
  break;
1805
- case ve.Numeric:
1805
+ case he.Numeric:
1806
1806
  break;
1807
1807
  }
1808
1808
  }
@@ -1811,15 +1811,15 @@ const Fa = { class: "flex flex-row flex-wrap gap-2" }, wa = { class: "inline-fle
1811
1811
  if (!K.value || !x.value.length) return;
1812
1812
  z && z.abort();
1813
1813
  const e = new AbortController();
1814
- z = e, C.value = !0, a.isDialogGlobalFilter && (W.value = !0);
1814
+ z = e, N.value = !0, a.isDialogGlobalFilter && (W.value = !0);
1815
1815
  try {
1816
1816
  await Promise.all(
1817
1817
  x.value.map(
1818
- (t) => Nl(t, e.signal)
1818
+ (t) => Cl(t, e.signal)
1819
1819
  )
1820
1820
  );
1821
1821
  } finally {
1822
- z === e && (C.value = !1), a.isDialogGlobalFilter && z === e && (W.value = !1);
1822
+ z === e && (N.value = !1), a.isDialogGlobalFilter && z === e && (W.value = !1);
1823
1823
  }
1824
1824
  }
1825
1825
  function xt(e, t) {
@@ -1855,7 +1855,7 @@ const Fa = { class: "flex flex-row flex-wrap gap-2" }, wa = { class: "inline-fle
1855
1855
  }
1856
1856
  function at(e) {
1857
1857
  const t = y(e.globalFilter), o = e.options.length > 0 ? "(0 selected)" : "";
1858
- if (e.type === ve.Timestamp && !ze(e.globalFilter)) {
1858
+ if (e.type === he.Timestamp && !ze(e.globalFilter)) {
1859
1859
  const g = fe(e), $ = g.length === 2;
1860
1860
  if (e.globalFilter.option === B.DateTime)
1861
1861
  return { preview: $ ? `${t} is between ${Pl({
@@ -1883,10 +1883,10 @@ const Fa = { class: "flex flex-row flex-wrap gap-2" }, wa = { class: "inline-fle
1883
1883
  } : { preview: t, suffix: o };
1884
1884
  }
1885
1885
  }
1886
- 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(", ");
1887
- return h.length ? {
1886
+ const v = 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 = v.map((g) => g.length > 20 ? `${g.slice(0, 20)}…` : g).join(", ");
1887
+ return v.length ? {
1888
1888
  preview: `${t}: ${T}`,
1889
- suffix: `(${h.length} selected)`
1889
+ suffix: `(${v.length} selected)`
1890
1890
  } : { preview: t, suffix: o };
1891
1891
  }
1892
1892
  function _l(e) {
@@ -1909,19 +1909,19 @@ const Fa = { class: "flex flex-row flex-wrap gap-2" }, wa = { class: "inline-fle
1909
1909
  function Il(e) {
1910
1910
  e.keepSelection = !e.keepSelection, c(e.keepSelection), S(e.globalFilter, k(e.id), {
1911
1911
  keepSelection: e.keepSelection
1912
- }), Cl(e);
1912
+ }), Nl(e);
1913
1913
  }
1914
1914
  function xl(e, t) {
1915
1915
  return e ? e.length > t ? `${e.slice(0, t)}…` : e : R.value;
1916
1916
  }
1917
1917
  function Gt(e, t) {
1918
- var h, T, g, $;
1918
+ var v, T, g, $;
1919
1919
  const o = e.globalFilter;
1920
1920
  let n = [];
1921
1921
  if (t === null)
1922
1922
  o.values = [];
1923
1923
  else {
1924
- 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();
1924
+ const A = E().tz(u.value).set("hour", Number((v = t.start) == null ? void 0 : v.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();
1925
1925
  n = [A, I], o.values = n;
1926
1926
  }
1927
1927
  e.selectedValues = [...n], e.keepSelection = t !== null, S(e.globalFilter, k(e.id), {
@@ -1930,9 +1930,9 @@ const Fa = { class: "flex flex-row flex-wrap gap-2" }, wa = { class: "inline-fle
1930
1930
  }), ae(e.globalFilter);
1931
1931
  }
1932
1932
  return (e, t) => {
1933
- const o = te("FmCircularProgress"), n = te("FmTextField"), h = te("FmMenuItem"), T = te("FmTooltip"), g = te("FmIcon"), $ = te("FmMenuDivider"), A = te("FmSwitch"), I = te("FmButton"), G = te("FmMenu");
1934
- return X(), he("div", Fa, [
1935
- (X(!0), he(Le, null, ht(x.value, (i, J) => (X(), he("div", {
1933
+ const o = te("FmCircularProgress"), n = te("FmTextField"), v = te("FmMenuItem"), T = te("FmTooltip"), g = te("FmIcon"), $ = te("FmMenuDivider"), A = te("FmSwitch"), I = te("FmButton"), G = te("FmMenu");
1934
+ return X(), ve("div", Fa, [
1935
+ (X(!0), ve(Le, null, vt(x.value, (i, J) => (X(), ve("div", {
1936
1936
  key: i.id
1937
1937
  }, [
1938
1938
  i.globalFilter.option === D(B).DateTime && !ze(i.globalFilter) ? (X(), De(Ll, {
@@ -1967,7 +1967,7 @@ const Fa = { class: "flex flex-row flex-wrap gap-2" }, wa = { class: "inline-fle
1967
1967
  key: 2,
1968
1968
  "close-on-click": !1,
1969
1969
  shift: !0,
1970
- open: D(v)(i.id)
1970
+ open: D(h)(i.id)
1971
1971
  }, {
1972
1972
  "menu-button": ie(() => [
1973
1973
  Y("div", wa, [
@@ -1990,9 +1990,9 @@ const Fa = { class: "flex flex-row flex-wrap gap-2" }, wa = { class: "inline-fle
1990
1990
  class: "flex flex-col bg-fm-color-neutral-white p-2 rounded-lg shadow-light-300",
1991
1991
  style: El({ maxHeight: `${V}px`, width: pe })
1992
1992
  }, [
1993
- ce(i) ? (X(), he("div", Da, [
1993
+ ce(i) ? (X(), ve("div", Da, [
1994
1994
  M(o)
1995
- ])) : i.options.length > 0 ? (X(), he(Le, { key: 1 }, [
1995
+ ])) : i.options.length > 0 ? (X(), ve(Le, { key: 1 }, [
1996
1996
  Y("div", Ta, [
1997
1997
  M(n, {
1998
1998
  modelValue: i.search,
@@ -2004,15 +2004,15 @@ const Fa = { class: "flex flex-row flex-wrap gap-2" }, wa = { class: "inline-fle
2004
2004
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
2005
2005
  ]),
2006
2006
  Y("div", Va, [
2007
- Y("div", Ca, [
2008
- M(h, {
2007
+ Y("div", Na, [
2008
+ M(v, {
2009
2009
  label: kl(i),
2010
2010
  "has-checkbox": !0,
2011
2011
  "model-value": kt(i),
2012
2012
  indeterminate: !0,
2013
2013
  onClick: (w) => Fl(i)
2014
2014
  }, null, 8, ["label", "model-value", "onClick"]),
2015
- (X(!0), he(Le, null, ht(Rt.value[J], (w) => (X(), he(Le, {
2015
+ (X(!0), ve(Le, null, vt(Rt.value[J], (w) => (X(), ve(Le, {
2016
2016
  key: w.value
2017
2017
  }, [
2018
2018
  w.label && w.label.length > 110 ? (X(), De(T, {
@@ -2025,8 +2025,8 @@ const Fa = { class: "flex flex-row flex-wrap gap-2" }, wa = { class: "inline-fle
2025
2025
  st(be(w.label), 1)
2026
2026
  ]),
2027
2027
  default: ie(() => [
2028
- Y("div", Na, [
2029
- M(h, {
2028
+ Y("div", Ca, [
2029
+ M(v, {
2030
2030
  label: xl(w.label, 110),
2031
2031
  "has-checkbox": !0,
2032
2032
  "model-value": _t(i, w.value),
@@ -2039,7 +2039,7 @@ const Fa = { class: "flex flex-row flex-wrap gap-2" }, wa = { class: "inline-fle
2039
2039
  ])
2040
2040
  ]),
2041
2041
  _: 2
2042
- }, 1024)) : (X(), De(h, {
2042
+ }, 1024)) : (X(), De(v, {
2043
2043
  key: 1,
2044
2044
  label: w.label,
2045
2045
  "has-checkbox": !0,
@@ -2048,13 +2048,13 @@ const Fa = { class: "flex flex-row flex-wrap gap-2" }, wa = { class: "inline-fle
2048
2048
  onClick: () => xt(i, w.value)
2049
2049
  }, null, 8, ["label", "model-value", "class", "onClick"]))
2050
2050
  ], 64))), 128)),
2051
- Rt.value[J].length < i.options.length && !i.search ? (X(), De(h, {
2051
+ Rt.value[J].length < i.options.length && !i.search ? (X(), De(v, {
2052
2052
  key: 0,
2053
2053
  class: "fm-typo-en-body-md-400 -ml-2",
2054
2054
  label: D(s)("report.section.filter.loadMore"),
2055
2055
  onClick: mt((w) => wl(i), ["stop"]),
2056
2056
  icon: "autorenew"
2057
- }, null, 8, ["label", "onClick"])) : vt("", !0)
2057
+ }, null, 8, ["label", "onClick"])) : ht("", !0)
2058
2058
  ])
2059
2059
  ]),
2060
2060
  Y("div", {
@@ -2069,7 +2069,7 @@ const Fa = { class: "flex flex-row flex-wrap gap-2" }, wa = { class: "inline-fle
2069
2069
  Y("span", Oa, be(D(s)("report.section.filter.advanced")), 1)
2070
2070
  ], 8, ka),
2071
2071
  M($),
2072
- i.showAdvanced ? (X(), he("div", _a, [
2072
+ i.showAdvanced ? (X(), ve("div", _a, [
2073
2073
  Y("div", Ra, [
2074
2074
  Y("div", Aa, [
2075
2075
  M(A, {
@@ -2096,7 +2096,7 @@ const Fa = { class: "flex flex-row flex-wrap gap-2" }, wa = { class: "inline-fle
2096
2096
  })
2097
2097
  ])
2098
2098
  ])
2099
- ])) : vt("", !0),
2099
+ ])) : ht("", !0),
2100
2100
  Y("div", xa, [
2101
2101
  M(I, {
2102
2102
  variant: "tertiary",