@feedmepos/mf-report 5.22.21 → 5.22.22-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 (25) hide show
  1. package/dist/{App-BDOKRDlB.js → App-D5a8IHZa.js} +34 -34
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-SlRLX1gF.js → BaseDialog.vue_vue_type_script_setup_true_lang-D1xJ4PTe.js} +418 -421
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-vgSunprg.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-DGK40ohz.js} +2 -2
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-Dd2wp79k.js → Default.vue_vue_type_script_setup_true_lang-jV7Hx33c.js} +2 -2
  5. package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-DB3pGihd.js → FilterSelector.vue_vue_type_script_setup_true_lang-DfVO8M8l.js} +6 -6
  6. package/dist/{InsightView-ODs4l4ti.js → InsightView-5-cPbOQw.js} +6 -6
  7. package/dist/{Integration-CQi-77Jd.js → Integration-CVygTOLM.js} +4 -4
  8. package/dist/{Integrations-DYw_IUm2.js → Integrations-Cxh6IZu8.js} +4 -4
  9. package/dist/{Layout-BnMhL99c.js → Layout-CXjNWhIS.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-BEHz6I2P.js → MenuTab.vue_vue_type_script_setup_true_lang-Bw4suNRn.js} +5 -5
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BUHwdh8Q.js → NavigationTab.vue_vue_type_script_setup_true_lang-bhLYpD2W.js} +5 -5
  12. package/dist/{NoData.vue_vue_type_script_setup_true_lang-C6zwR2kY.js → NoData.vue_vue_type_script_setup_true_lang-BdBvHv_z.js} +1 -1
  13. package/dist/{OverviewView-Dy_7MUm-.js → OverviewView-B_H_9POH.js} +5 -5
  14. package/dist/{Report-tVLL1DVH.js → Report-Cc6rxF4j.js} +4 -4
  15. package/dist/{ReportEditor-CT649CF-.js → ReportEditor-B4Vg3Fhm.js} +6 -6
  16. package/dist/{ReportView-BmS3IZDq.js → ReportView-BcOjF_vW.js} +8 -8
  17. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-BoiZUiO-.js → SelectComponent.vue_vue_type_script_setup_true_lang-CXpPKej9.js} +1 -1
  18. package/dist/{Setting-CondOj9g.js → Setting-C2Mm4L-e.js} +5 -5
  19. package/dist/{TileEditor-D_dISsyB.js → TileEditor-BdqOp7fg.js} +10 -10
  20. package/dist/{TransitionFade-zIA2rKed.js → TransitionFade-KpxCLOag.js} +6 -6
  21. package/dist/{app-wSvkNO87.js → app-xBMkS4m_.js} +11 -11
  22. package/dist/app.js +1 -1
  23. package/dist/{useRestaurantPermission-CzHqhgp5.js → useRestaurantPermission-1wC9pGor.js} +1 -1
  24. package/dist/{vue-i18n-BMc5RusE.js → vue-i18n-zZpn3jcZ.js} +2 -2
  25. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
- import { a as $0, F as m0, l as E0, m as Oe, c as $e, k as Z0, n as C0, A as ee, b as G0, d as we, r as re, u as ve } from "./vue-i18n-BMc5RusE.js";
1
+ import { a as $0, F as m0, l as E0, m as Oe, c as $e, k as Z0, n as C0, A as ee, b as G0, d as we, r as re, u as ve } from "./vue-i18n-zZpn3jcZ.js";
2
2
  import { storeToRefs as d0, defineStore as Q0 } from "pinia";
3
3
  import { ref as _0, computed as R0, watch as z0, h as Be, defineComponent as ye, mergeModels as Y0, useModel as te, resolveComponent as v0, createElementBlock as W0, openBlock as U0, createVNode as b0, withCtx as J0, createElementVNode as w0, createCommentVNode as Pe, Fragment as oe, renderList as Je, createBlock as me, createTextVNode as ge, withDirectives as He, toDisplayString as P0, unref as S0, vShow as Ne, renderSlot as ke } from "vue";
4
4
  import { useSnackbar as he, components as Ue } from "@feedmepos/ui-library";
5
5
  import { useCoreStore as ne, detectLocale as H0 } from "@feedmepos/mf-common";
6
- import { d as A0 } from "./app-wSvkNO87.js";
6
+ import { d as A0 } from "./app-xBMkS4m_.js";
7
7
  import { useRouter as qe } from "vue-router";
8
- import { c as Qe, a as Xe } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-vgSunprg.js";
8
+ import { c as Qe, a as Xe } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-DGK40ohz.js";
9
9
  function Se(A) {
10
10
  throw new Error('Could not dynamically require "' + A + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
11
11
  }
@@ -37,13 +37,13 @@ var Ee = {};
37
37
  function N() {
38
38
  try {
39
39
  throw new Error();
40
- } catch (X) {
41
- var H = X.stack, k = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), Q = null;
40
+ } catch (Y) {
41
+ var U = Y.stack, q = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), H = null;
42
42
  do {
43
- var V = k.exec(H);
44
- V != null && (Q = V);
45
- } while (V != null);
46
- return Q[1];
43
+ var X = q.exec(U);
44
+ X != null && (H = X);
45
+ } while (X != null);
46
+ return H[1];
47
47
  }
48
48
  }
49
49
  var J = null;
@@ -54,11 +54,11 @@ var Ee = {};
54
54
  }
55
55
  }
56
56
  });
57
- }(), O.dartDeferredLibraryLoader = function(N, J, H) {
57
+ }(), O.dartDeferredLibraryLoader = function(N, J, U) {
58
58
  try {
59
59
  load(N), J();
60
- } catch (k) {
61
- H(k);
60
+ } catch (q) {
61
+ U(q);
62
62
  }
63
63
  };
64
64
  }
@@ -69,16 +69,16 @@ var Ee = {};
69
69
  e[a] = r[a];
70
70
  }
71
71
  }
72
- function H(r, e) {
72
+ function U(r, e) {
73
73
  for (var n = Object.keys(r), i = 0; i < n.length; i++) {
74
74
  var a = n[i];
75
75
  e.hasOwnProperty(a) || (e[a] = r[a]);
76
76
  }
77
77
  }
78
- function k(r, e) {
78
+ function q(r, e) {
79
79
  Object.assign(e, r);
80
80
  }
81
- var Q = function() {
81
+ var H = function() {
82
82
  var r = function() {
83
83
  };
84
84
  r.prototype = { p: {} };
@@ -97,9 +97,9 @@ var Ee = {};
97
97
  }
98
98
  return !1;
99
99
  }();
100
- function V(r, e) {
100
+ function X(r, e) {
101
101
  if (r.prototype.constructor = r, r.prototype["$is" + r.name] = r, e != null) {
102
- if (Q) {
102
+ if (H) {
103
103
  r.prototype.__proto__ = e.prototype;
104
104
  return;
105
105
  }
@@ -107,15 +107,15 @@ var Ee = {};
107
107
  J(r.prototype, n), r.prototype = n;
108
108
  }
109
109
  }
110
- function X(r, e) {
110
+ function Y(r, e) {
111
111
  for (var n = 0; n < e.length; n++)
112
- V(e[n], r);
112
+ X(e[n], r);
113
113
  }
114
- function r0(r, e) {
115
- k(e.prototype, r.prototype), r.prototype.constructor = r;
114
+ function Z(r, e) {
115
+ q(e.prototype, r.prototype), r.prototype.constructor = r;
116
116
  }
117
- function z(r, e) {
118
- H(e.prototype, r.prototype), r.prototype.constructor = r;
117
+ function G(r, e) {
118
+ U(e.prototype, r.prototype), r.prototype.constructor = r;
119
119
  }
120
120
  function K(r, e, n, i) {
121
121
  var a = r;
@@ -134,7 +134,7 @@ var Ee = {};
134
134
  return s;
135
135
  };
136
136
  }
137
- function q(r, e, n, i) {
137
+ function Q(r, e, n, i) {
138
138
  var a = r;
139
139
  r[e] = a, r[n] = function() {
140
140
  return r[e] === a && (r[e] = i()), r[n] = function() {
@@ -142,7 +142,7 @@ var Ee = {};
142
142
  }, r[e];
143
143
  };
144
144
  }
145
- function Z(r, e, n, i) {
145
+ function e0(r, e, n, i) {
146
146
  var a = r;
147
147
  r[e] = a, r[n] = function() {
148
148
  if (r[e] === a) {
@@ -179,17 +179,17 @@ var Ee = {};
179
179
  return e === null && (e = t.closureFromTearOff(r).prototype), e;
180
180
  };
181
181
  }
182
- var Y = 0;
183
- function G(r, e, n, i, a, s, o, l, D, d) {
184
- return typeof l == "number" && (l += Y), { co: r, iS: e, iI: n, rC: i, dV: a, cs: s, fs: o, fT: l, aI: D || 0, nDA: d };
182
+ var V = 0;
183
+ function z(r, e, n, i, a, s, o, l, D, d) {
184
+ return typeof l == "number" && (l += V), { co: r, iS: e, iI: n, rC: i, dV: a, cs: s, fs: o, fT: l, aI: D || 0, nDA: d };
185
185
  }
186
186
  function i0(r, e, n, i, a, s, o, l) {
187
- var D = G(r, !0, !1, n, i, a, s, o, l, !1), d = p0(D);
187
+ var D = z(r, !0, !1, n, i, a, s, o, l, !1), d = p0(D);
188
188
  r[e] = d;
189
189
  }
190
- function t0(r, e, n, i, a, s, o, l, D, d) {
190
+ function r0(r, e, n, i, a, s, o, l, D, d) {
191
191
  n = !!n;
192
- var c = G(r, !1, n, i, a, s, o, l, D, !!d), p = c0(n, c);
192
+ var c = z(r, !1, n, i, a, s, o, l, D, !!d), p = c0(n, c);
193
193
  r[e] = p;
194
194
  }
195
195
  function a0(r) {
@@ -215,17 +215,17 @@ var Ee = {};
215
215
  function D0(r, e) {
216
216
  return J(e, r), r;
217
217
  }
218
- var e0 = function() {
218
+ var t0 = function() {
219
219
  var r = function(n, i, a, s, o) {
220
220
  return function(l, D, d, c) {
221
- return t0(l, D, n, i, a, s, [d], c, o, !1);
221
+ return r0(l, D, n, i, a, s, [d], c, o, !1);
222
222
  };
223
223
  }, e = function(n, i, a, s) {
224
224
  return function(o, l, D, d) {
225
225
  return i0(o, l, n, i, a, [D], d, s);
226
226
  };
227
227
  };
228
- return { inherit: V, inheritMany: X, mixin: r0, mixinHard: z, installStaticTearOff: i0, installInstanceTearOff: t0, _instance_0u: r(0, 0, null, ["call$0"], 0), _instance_1u: r(0, 1, null, ["call$1"], 0), _instance_2u: r(0, 2, null, ["call$2"], 0), _instance_0i: r(1, 0, null, ["call$0"], 0), _instance_1i: r(1, 1, null, ["call$1"], 0), _instance_2i: r(1, 2, null, ["call$2"], 0), _static_0: e(0, null, ["call$0"], 0), _static_1: e(1, null, ["call$1"], 0), _static_2: e(2, null, ["call$2"], 0), makeConstList: u0, lazy: q, lazyFinal: Z, lazyOld: K, updateHolder: D0, convertToFastObject: s0, updateTypes: n0, setOrUpdateInterceptorsByTag: a0, setOrUpdateLeafTags: W };
228
+ return { inherit: X, inheritMany: Y, mixin: Z, mixinHard: G, installStaticTearOff: i0, installInstanceTearOff: r0, _instance_0u: r(0, 0, null, ["call$0"], 0), _instance_1u: r(0, 1, null, ["call$1"], 0), _instance_2u: r(0, 2, null, ["call$2"], 0), _instance_0i: r(1, 0, null, ["call$0"], 0), _instance_1i: r(1, 1, null, ["call$1"], 0), _instance_2i: r(1, 2, null, ["call$2"], 0), _static_0: e(0, null, ["call$0"], 0), _static_1: e(1, null, ["call$1"], 0), _static_2: e(2, null, ["call$2"], 0), makeConstList: u0, lazy: Q, lazyFinal: e0, lazyOld: K, updateHolder: D0, convertToFastObject: s0, updateTypes: n0, setOrUpdateInterceptorsByTag: a0, setOrUpdateLeafTags: W };
229
229
  }(), t = {
230
230
  JS_CONST: function() {
231
231
  },
@@ -272,8 +272,8 @@ var Ee = {};
272
272
  }
273
273
  },
274
274
  Sort__dualPivotQuicksort(r, e, n, i) {
275
- var a, s, o, l, D, d, c, p, y, m, g = _.JSInt_methods._tdivFast$1(n - e + 1, 6), h = e + g, E = n - g, C = _.JSInt_methods._tdivFast$1(e + n, 2), F = C - g, M = C + g, x = u.getInterceptor$asx(r), R = x.$index(r, h), L = x.$index(r, F), w = x.$index(r, C), v = x.$index(r, M), U = x.$index(r, E);
276
- if (i.call$2(R, L) > 0 && (a = L, L = R, R = a), i.call$2(v, U) > 0 && (a = U, U = v, v = a), i.call$2(R, w) > 0 && (a = w, w = R, R = a), i.call$2(L, w) > 0 && (a = w, w = L, L = a), i.call$2(R, v) > 0 && (a = v, v = R, R = a), i.call$2(w, v) > 0 && (a = v, v = w, w = a), i.call$2(L, U) > 0 && (a = U, U = L, L = a), i.call$2(L, w) > 0 && (a = w, w = L, L = a), i.call$2(v, U) > 0 && (a = U, U = v, v = a), x.$indexSet(r, h, R), x.$indexSet(r, C, w), x.$indexSet(r, E, U), x.$indexSet(r, F, x.$index(r, e)), x.$indexSet(r, M, x.$index(r, n)), s = e + 1, o = n - 1, u.$eq$(i.call$2(L, v), 0)) {
275
+ var a, s, o, l, D, d, c, p, y, m, g = _.JSInt_methods._tdivFast$1(n - e + 1, 6), h = e + g, E = n - g, C = _.JSInt_methods._tdivFast$1(e + n, 2), F = C - g, M = C + g, x = u.getInterceptor$asx(r), R = x.$index(r, h), L = x.$index(r, F), w = x.$index(r, C), v = x.$index(r, M), k = x.$index(r, E);
276
+ if (i.call$2(R, L) > 0 && (a = L, L = R, R = a), i.call$2(v, k) > 0 && (a = k, k = v, v = a), i.call$2(R, w) > 0 && (a = w, w = R, R = a), i.call$2(L, w) > 0 && (a = w, w = L, L = a), i.call$2(R, v) > 0 && (a = v, v = R, R = a), i.call$2(w, v) > 0 && (a = v, v = w, w = a), i.call$2(L, k) > 0 && (a = k, k = L, L = a), i.call$2(L, w) > 0 && (a = w, w = L, L = a), i.call$2(v, k) > 0 && (a = k, k = v, v = a), x.$indexSet(r, h, R), x.$indexSet(r, C, w), x.$indexSet(r, E, k), x.$indexSet(r, F, x.$index(r, e)), x.$indexSet(r, M, x.$index(r, n)), s = e + 1, o = n - 1, u.$eq$(i.call$2(L, v), 0)) {
277
277
  for (l = s; l <= o; ++l)
278
278
  if (D = x.$index(r, l), d = i.call$2(D, L), d !== 0)
279
279
  if (d < 0)
@@ -1811,7 +1811,7 @@ var Ee = {};
1811
1811
  return D === 12 ? e === f.JavaScriptFunction ? !0 : s ? !1 : t._isFunctionSubtype(r, e, n, i, a) : o === 9 ? D !== 9 ? !1 : t._isInterfaceSubtype(r, e, n, i, a) : (s = o === 11, s && i === f.Record ? !0 : s && D === 11 ? t._isRecordSubtype(r, e, n, i, a) : !1);
1812
1812
  },
1813
1813
  _isFunctionSubtype(r, e, n, i, a) {
1814
- var s, o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R, L, w, v, U, j;
1814
+ var s, o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R, L, w, v, k, j;
1815
1815
  if (!t._isSubtype(r, e._primary, n, i._primary, a) || (s = e._rest, o = i._rest, l = s._requiredPositional, D = o._requiredPositional, d = l.length, c = D.length, d > c) || (p = c - d, y = s._optionalPositional, m = o._optionalPositional, g = y.length, h = m.length, d + g < c + h))
1816
1816
  return !1;
1817
1817
  for (E = 0; E < d; ++E)
@@ -1825,9 +1825,9 @@ var Ee = {};
1825
1825
  return !1;
1826
1826
  for (F = s._named, M = o._named, x = F.length, R = M.length, L = 0, w = 0; w < R; w += 3)
1827
1827
  for (v = M[w]; ; ) {
1828
- if (L >= x || (U = F[L], L += 3, v < U))
1828
+ if (L >= x || (k = F[L], L += 3, v < k))
1829
1829
  return !1;
1830
- if (j = F[L - 2], U < v) {
1830
+ if (j = F[L - 2], k < v) {
1831
1831
  if (j)
1832
1832
  return !1;
1833
1833
  continue;
@@ -2987,8 +2987,8 @@ select
2987
2987
  return t.Schema$(r, e, n, i, a, w, o, l, D ?? 300, d, c, p, y, m, v, h, E, C, F, M, x, R, L);
2988
2988
  },
2989
2989
  Schema_fromJson(r) {
2990
- var e, n, i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, F = null, M = u.map$1$ax(r.$index(0, "fields"), new t.Schema_fromJson_closure()).toList$0(0), x = r.$index(0, "label"), R = t.EnumByName_byName(_.List_qFQ, r.$index(0, "name")), L = u.map$1$ax(r.$index(0, "joins"), new t.Schema_fromJson_closure0()).toList$0(0), w = t.TopLevelFilters_fromJson(r.$index(0, "topLevelFilters")), v = r.$index(0, "source"), U = t.EnumByName_byName(_.List_ytA, v.$index(0, "type")), j = v.$index(0, "table"), f0 = v.$index(0, "field"), g0 = v.$index(0, "dataset"), o0 = f.nullable_List_dynamic, h0 = o0._as(v.$index(0, "uniqueKey"));
2991
- return h0 = h0 == null ? F : u.cast$1$0$ax(h0, f.String), e = v.$index(0, "timeColumn"), v = o0._as(v.$index(0, "dateColumns")), v = v == null ? F : u.cast$1$0$ax(v, f.String), n = r.$index(0, "rawTableName"), i = r.$index(0, "dynamicRawTable"), a = r.$index(0, "materializedTableName"), s = r.$index(0, "materializedPostgresqlTableName"), o = r.$index(0, "isJoinOnly"), l = r.$index(0, "isMaterializeOnly"), D = r.$index(0, "isContinuousUpdate"), d = r.$index(0, "interval"), c = r.$index(0, "partition"), p = r.$index(0, "clusters"), p == null && (p = t._setArrayType([], f.JSArray_String)), y = r.$index(0, "indexes"), y = y == null ? F : u.map$1$ax(y, new t.Schema_fromJson_closure1()), y == null && (y = t._setArrayType([], f.JSArray_Index)), m = r.$index(0, "filters"), m = m == null ? F : u.map$1$ax(m, new t.Schema_fromJson_closure2()).toList$0(0), m == null && (m = t._setArrayType([], f.JSArray_QueryRequestFilter)), g = r.$index(0, "isGlobal"), g == null && (g = !1), h = r.$index(0, "isAiHidden"), h == null && (h = !1), o0 = o0._as(r.$index(0, "aiKeywords")), o0 = o0 == null ? F : u.cast$1$0$ax(o0, f.String), o0 == null && (o0 = t._setArrayType([], f.JSArray_String)), E = r.$index(0, "aiCategory"), C = r.$index(0, "aiPriority"), C == null && (C = 3), t.Schema$(E, o0, C, p, i, M, m, y, d, h, D, g, o, l, L, x, s, a, R, c, n, new t.Source(U, j, f0, g0, h0, e, v), w);
2990
+ var e, n, i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, F = null, M = u.map$1$ax(r.$index(0, "fields"), new t.Schema_fromJson_closure()).toList$0(0), x = r.$index(0, "label"), R = t.EnumByName_byName(_.List_qFQ, r.$index(0, "name")), L = u.map$1$ax(r.$index(0, "joins"), new t.Schema_fromJson_closure0()).toList$0(0), w = t.TopLevelFilters_fromJson(r.$index(0, "topLevelFilters")), v = r.$index(0, "source"), k = t.EnumByName_byName(_.List_ytA, v.$index(0, "type")), j = v.$index(0, "table"), f0 = v.$index(0, "field"), g0 = v.$index(0, "dataset"), o0 = f.nullable_List_dynamic, h0 = o0._as(v.$index(0, "uniqueKey"));
2991
+ return h0 = h0 == null ? F : u.cast$1$0$ax(h0, f.String), e = v.$index(0, "timeColumn"), v = o0._as(v.$index(0, "dateColumns")), v = v == null ? F : u.cast$1$0$ax(v, f.String), n = r.$index(0, "rawTableName"), i = r.$index(0, "dynamicRawTable"), a = r.$index(0, "materializedTableName"), s = r.$index(0, "materializedPostgresqlTableName"), o = r.$index(0, "isJoinOnly"), l = r.$index(0, "isMaterializeOnly"), D = r.$index(0, "isContinuousUpdate"), d = r.$index(0, "interval"), c = r.$index(0, "partition"), p = r.$index(0, "clusters"), p == null && (p = t._setArrayType([], f.JSArray_String)), y = r.$index(0, "indexes"), y = y == null ? F : u.map$1$ax(y, new t.Schema_fromJson_closure1()), y == null && (y = t._setArrayType([], f.JSArray_Index)), m = r.$index(0, "filters"), m = m == null ? F : u.map$1$ax(m, new t.Schema_fromJson_closure2()).toList$0(0), m == null && (m = t._setArrayType([], f.JSArray_QueryRequestFilter)), g = r.$index(0, "isGlobal"), g == null && (g = !1), h = r.$index(0, "isAiHidden"), h == null && (h = !1), o0 = o0._as(r.$index(0, "aiKeywords")), o0 = o0 == null ? F : u.cast$1$0$ax(o0, f.String), o0 == null && (o0 = t._setArrayType([], f.JSArray_String)), E = r.$index(0, "aiCategory"), C = r.$index(0, "aiPriority"), C == null && (C = 3), t.Schema$(E, o0, C, p, i, M, m, y, d, h, D, g, o, l, L, x, s, a, R, c, n, new t.Source(k, j, f0, g0, h0, e, v), w);
2992
2992
  },
2993
2993
  Field_Field$numeric(r, e, n, i, a, s, o, l, D) {
2994
2994
  return new t._NumericField(s, o, _.DATA_TYPE_3, e, a, l, n, D, i, !1, r);
@@ -9046,10 +9046,10 @@ Arguments: [` + D + "]";
9046
9046
  $signature: 1
9047
9047
  }, t.flattenItemSchema_closure.prototype = {
9048
9048
  call$1(r) {
9049
- var e = null, n = "itemCreatedAt", i = "billCompletedAt", a = "perXUnit", s = "takeawayId", o = "takeawayName", l = "productId", D = "isRefund", d = "servedAt", c = "isTakeaway", p = "quantity", y = "unitQuantity", m = "billAdjustmentTotal", g = "itemAdjustmentTotal", h = "grossTotal", E = "takeawayPrice", C = "nettTotal", F = "layerNettTotal", M = "layerBillAdjustmentTotal", x = "layerItemAdjustmentTotal", R = "layerGrossTotal", L = "layerTakeawayPrice", w = "layerTaxTotal", v = "layerScTotal", U = "layerOtherChargeTotal", j = "customAttributes", f0 = "layerZeroParentId", g0 = "collectedAt", o0 = "subCategories", h0 = "billAdjustmentInclusiveTaxTotal", I0 = "itemAdjustmentInclusiveTaxTotal", x0 = "layerBillAdjustmentInclusiveTaxTotal", L0 = "layerItemAdjustmentInclusiveTaxTotal", T0 = "billAdjustmentExclusiveTaxTotal", F0 = "itemAdjustmentExclusiveTaxTotal", O0 = "layerBillAdjustmentExclusiveTaxTotal", M0 = "layerItemAdjustmentExclusiveTaxTotal";
9049
+ var e = null, n = "itemCreatedAt", i = "billCompletedAt", a = "perXUnit", s = "takeawayId", o = "takeawayName", l = "productId", D = "isRefund", d = "servedAt", c = "isTakeaway", p = "quantity", y = "unitQuantity", m = "billAdjustmentTotal", g = "itemAdjustmentTotal", h = "grossTotal", E = "takeawayPrice", C = "nettTotal", F = "layerNettTotal", M = "layerBillAdjustmentTotal", x = "layerItemAdjustmentTotal", R = "layerGrossTotal", L = "layerTakeawayPrice", w = "layerTaxTotal", v = "layerScTotal", k = "layerOtherChargeTotal", j = "customAttributes", f0 = "layerZeroParentId", g0 = "collectedAt", o0 = "subCategories", h0 = "billAdjustmentInclusiveTaxTotal", I0 = "itemAdjustmentInclusiveTaxTotal", x0 = "layerBillAdjustmentInclusiveTaxTotal", L0 = "layerItemAdjustmentInclusiveTaxTotal", T0 = "billAdjustmentExclusiveTaxTotal", F0 = "itemAdjustmentExclusiveTaxTotal", O0 = "layerBillAdjustmentExclusiveTaxTotal", M0 = "layerItemAdjustmentExclusiveTaxTotal";
9050
9050
  return t._setArrayType([t.Field_Field$string(e, e, !1, !1, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", "_docId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Item time", n, n, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Bill close time", i, i, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Bill ID", "billId", "billId", e, r), t.Field_Field$string("Values: DRAFT, VOIDED, SENT. DRAFT and SENT both considered valid sales.", e, !1, !1, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, e, !1, !1, !0, "Name", "name", "name", e, r), t.Field_Field$numeric(e, e, !1, !1, "Per unit", a, a, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Unit", "unit", "unit", e, r), t.Field_Field$string(e, `IF(@categoryName IS NULL OR @productId IS NULL OR REGEXP_CONTAINS(@productId, r'^\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)$'), 'Other', @categoryName)
9051
9051
  `, !1, !1, !0, "Category", "categoryName", "category", `CASE WHEN @category_name IS NULL OR @product_id IS NULL OR @product_id ~ '^\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)$' THEN 'Other' ELSE @category_name END
9052
- `, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway ID", s, s, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway name", o, o, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Code", "code", "code", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Product ID", l, l, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant ID", "variantId", "variant.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant", "variantName", "variant.name", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", D, D, e, r), t.Field_Field$string(e, e, !1, !1, !1, "User id", "createdById", "createdBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "User", "createdByName", "createdBy.name", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Sent time", "sentAt", "sentAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Served time", d, d, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Printed time", "printedAt", "printBy.printAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Void time", "voidAt", "void.voidAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void reason", "voidReason", "void.reason", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidedById", "void.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void user", "voidedByName", "void.by.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidApprovedById", "void.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", e, r), t.Field_Field$bool(e, e, !0, !1, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", e, r), t.Field_Field$bool(e, e, !0, !1, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", e, r), t.Field_Field$bool(e, e, !1, !1, "Takeaway", c, c, e, r), t.Field_Field$numeric(e, "@quantity*IF(@isRefund, -1, 1)", !1, !1, "Qty", p, p, T.x40quant, r), t.Field_Field$numeric(e, "@unitQuantity*IF(@isRefund, -1, 1)", !1, !1, "Unit qty", y, y, T.x40unit_, r), t.Field_Field$numeric(e, "@sstTotal*IF(@isRefund, -1, 1)", !1, !1, "SST", "sstTotal", "sst.total", T.x40sst_t, r), t.Field_Field$numeric(e, e, !0, !1, "SST %", "sstPercentage", "sst.percentage", e, r), t.Field_Field$numeric(e, e, !0, !1, "SC %", "serviceChargePercentage", "sc.percentage", e, r), t.Field_Field$numeric(e, "@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "SC", "serviceChargeTotal", "sc.total", T.x40servi, r), t.Field_Field$numeric(e, "@otherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Other charge", "otherChargeTotal", "otherCharge.total", T.x40other, r), t.Field_Field$numeric(e, T.x40billA, !1, !1, "Bill discount", m, m, T.x40bill_, r), t.Field_Field$numeric(e, T.x40itemA, !1, !1, "Item discount", g, g, T.x40item_, r), t.Field_Field$numeric(e, "@grossTotal*IF(@isRefund, -1, 1)", !1, !1, "Gross", h, h, T.x40gross, r), t.Field_Field$numeric(e, T.x28_grosT, !1, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, T.x28_gros_, r), t.Field_Field$numeric(e, "@takeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Takeaway price", E, E, T.x40takea, r), t.Field_Field$numeric(e, "@nettTotal*IF(@isRefund, -1, 1)", !1, !1, "Nett", C, C, T.x40nett_, r), t.Field_Field$string(e, e, !1, !1, !1, "Parent ID", "parentId", "parent.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Parent name", "parentName", "parent.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Addon type", "addonType", "addon.type", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Addon ID", "addonId", "addon.selectionId", e, r), t.Field_Field$string(e, "SPLIT(@addonId, '/')[OFFSET(0)]", !1, !1, !1, "Group ID", "groupId", e, "SPLIT_PART(@addon_id, '/',1)", r), t.Field_Field$numeric("Item depth: 0 = main item. 1+ = addon/modifier level. -1 = bill level modifier, usually not consider item sales.", e, !1, !1, "Layer", "layer", "layer", e, r), t.Field_Field$numeric(e, "@addonPrice*IF(@isRefund, -1, 1)", !1, !1, "Addon price", "addonPrice", "addon.price", T.x40addon, r), t.Field_Field$numeric(e, "@taxTotal*IF(@isRefund, -1, 1)", !1, !1, "Tax", "taxTotal", "tax.total", "@tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, T.x28IFNULb, !1, !1, "Discount", "discountTotal", e, T.x28COALEb, r), t.Field_Field$numeric(e, T.x28IFNULgx2bb, !1, !1, "Gross before charges", "grossBeforeCharges", e, T.x28COALEgx2bb, r), t.Field_Field$string(e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING([IF(@code='', NULL, @code), @name], ' '))", !1, !1, !1, "Summary", "summary", e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN @code='' THEN NULL ELSE @code END, @name], ' '))", r), t.Field_Field$numeric(e, "@layerNettTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer nett", F, F, "@layer_nett_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount", M, M, "@layer_bill_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount", x, x, "@layer_item_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerGrossTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer gross total", R, R, "@layer_gross_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerTakeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Layer takeaway price", L, L, "@layer_takeaway_price*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer tax total", w, w, "@layer_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerScTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer sc", v, v, "@layer_sc_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerOtherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer other charge", U, U, "@layer_other_charge_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "(IFNULL(@layerGrossTotal,0)+IFNULL(@layerBillAdjustmentTotal,0)+IFNULL(@layerItemAdjustmentTotal,0))*IF(@isRefund, -1, 1)", !1, !1, "Layer gross before charges", "layerGrossBeforeCharges", e, "(COALESCE(@layer_gross_total,0)+COALESCE(@layer_bill_adjustment_total,0)+COALESCE(@layer_item_adjustment_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$string(e, e, !1, !1, !1, "Custom attributes", j, j, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent ID", f0, f0, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Charge variant", "chargeVariant", e, "(select variant from charges where charges.parent_id=@layer_zero_parent_id and charges.restaurant_id=@restaurant_id and charges.bill_id=@bill_id and charges.code != 'SERVICE_CHARGE')", r), t.Field_Field$timestamp(e, e, !1, !1, "Collected time", g0, g0, e, r), t.Field_Field$numeric(e, e, !1, !1, "Costing", "costing", "costing", e, r), t.Field_Field$numeric(e, "ROUND(TIMESTAMP_DIFF(IFNULL(@servedAt, CURRENT_TIMESTAMP), @sentAt, SECOND),0)", !1, !1, "Preparation seconds", "preparationSeconds", e, "ROUND(EXTRACT(EPOCH FROM AGE(COALESCE(@served_at, CURRENT_TIMESTAMP),@sent_at)),0)", r), t.Field_Field$numeric("Computed: nett total minus costing", "(@nettTotal-coalesce(@costing, 0))", !1, !1, "Profit", "profit", e, "(@nett_total-coalesce(@costing, 0))", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent name", "layerZeroParentName", e, "(select name from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent code", "layerZeroParentCode", e, "(select code from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent category", "layerZeroParentCategory", e, "(select category_name from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Sub categories", o0, o0, e, r), t.Field_Field$numeric(e, "@billAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Bill discount inc tax", h0, h0, "@bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@itemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Item discount inc tax", I0, I0, "@item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount inc tax", x0, x0, "@layer_bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount inc tax", L0, L0, "@layer_item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@billAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Bill discount exc tax", T0, T0, "@bill_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@itemAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Item discount exc tax", F0, F0, "@item_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount exc tax", O0, O0, "@layer_bill_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount exc tax", M0, M0, "@layer_item_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r)], f.JSArray_Field);
9052
+ `, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway ID", s, s, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway name", o, o, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Code", "code", "code", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Product ID", l, l, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant ID", "variantId", "variant.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant", "variantName", "variant.name", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", D, D, e, r), t.Field_Field$string(e, e, !1, !1, !1, "User id", "createdById", "createdBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "User", "createdByName", "createdBy.name", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Sent time", "sentAt", "sentAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Served time", d, d, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Printed time", "printedAt", "printBy.printAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Void time", "voidAt", "void.voidAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void reason", "voidReason", "void.reason", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidedById", "void.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void user", "voidedByName", "void.by.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidApprovedById", "void.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", e, r), t.Field_Field$bool(e, e, !0, !1, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", e, r), t.Field_Field$bool(e, e, !0, !1, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", e, r), t.Field_Field$bool(e, e, !1, !1, "Takeaway", c, c, e, r), t.Field_Field$numeric(e, "@quantity*IF(@isRefund, -1, 1)", !1, !1, "Qty", p, p, T.x40quant, r), t.Field_Field$numeric(e, "@unitQuantity*IF(@isRefund, -1, 1)", !1, !1, "Unit qty", y, y, T.x40unit_, r), t.Field_Field$numeric(e, "@sstTotal*IF(@isRefund, -1, 1)", !1, !1, "SST", "sstTotal", "sst.total", T.x40sst_t, r), t.Field_Field$numeric(e, e, !0, !1, "SST %", "sstPercentage", "sst.percentage", e, r), t.Field_Field$numeric(e, e, !0, !1, "SC %", "serviceChargePercentage", "sc.percentage", e, r), t.Field_Field$numeric(e, "@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "SC", "serviceChargeTotal", "sc.total", T.x40servi, r), t.Field_Field$numeric(e, "@otherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Other charge", "otherChargeTotal", "otherCharge.total", T.x40other, r), t.Field_Field$numeric(e, T.x40billA, !1, !1, "Bill discount", m, m, T.x40bill_, r), t.Field_Field$numeric(e, T.x40itemA, !1, !1, "Item discount", g, g, T.x40item_, r), t.Field_Field$numeric(e, "@grossTotal*IF(@isRefund, -1, 1)", !1, !1, "Gross", h, h, T.x40gross, r), t.Field_Field$numeric(e, T.x28_grosT, !1, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, T.x28_gros_, r), t.Field_Field$numeric(e, "@takeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Takeaway price", E, E, T.x40takea, r), t.Field_Field$numeric(e, "@nettTotal*IF(@isRefund, -1, 1)", !1, !1, "Nett", C, C, T.x40nett_, r), t.Field_Field$string(e, e, !1, !1, !1, "Parent ID", "parentId", "parent.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Parent name", "parentName", "parent.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Addon type", "addonType", "addon.type", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Addon ID", "addonId", "addon.selectionId", e, r), t.Field_Field$string(e, "SPLIT(@addonId, '/')[OFFSET(0)]", !1, !1, !1, "Group ID", "groupId", e, "SPLIT_PART(@addon_id, '/',1)", r), t.Field_Field$numeric("Item depth: 0 = main item. 1+ = addon/modifier level. -1 = bill level modifier, usually not consider item sales.", e, !1, !1, "Layer", "layer", "layer", e, r), t.Field_Field$numeric(e, "@addonPrice*IF(@isRefund, -1, 1)", !1, !1, "Addon price", "addonPrice", "addon.price", T.x40addon, r), t.Field_Field$numeric(e, "@taxTotal*IF(@isRefund, -1, 1)", !1, !1, "Tax", "taxTotal", "tax.total", "@tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, T.x28IFNULb, !1, !1, "Discount", "discountTotal", e, T.x28COALEb, r), t.Field_Field$numeric(e, T.x28IFNULgx2bb, !1, !1, "Gross before charges", "grossBeforeCharges", e, T.x28COALEgx2bb, r), t.Field_Field$string(e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING([IF(@code='', NULL, @code), @name], ' '))", !1, !1, !1, "Summary", "summary", e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN @code='' THEN NULL ELSE @code END, @name], ' '))", r), t.Field_Field$numeric(e, "@layerNettTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer nett", F, F, "@layer_nett_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount", M, M, "@layer_bill_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount", x, x, "@layer_item_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerGrossTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer gross total", R, R, "@layer_gross_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerTakeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Layer takeaway price", L, L, "@layer_takeaway_price*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer tax total", w, w, "@layer_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerScTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer sc", v, v, "@layer_sc_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerOtherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer other charge", k, k, "@layer_other_charge_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "(IFNULL(@layerGrossTotal,0)+IFNULL(@layerBillAdjustmentTotal,0)+IFNULL(@layerItemAdjustmentTotal,0))*IF(@isRefund, -1, 1)", !1, !1, "Layer gross before charges", "layerGrossBeforeCharges", e, "(COALESCE(@layer_gross_total,0)+COALESCE(@layer_bill_adjustment_total,0)+COALESCE(@layer_item_adjustment_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$string(e, e, !1, !1, !1, "Custom attributes", j, j, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent ID", f0, f0, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Charge variant", "chargeVariant", e, "(select variant from charges where charges.parent_id=@layer_zero_parent_id and charges.restaurant_id=@restaurant_id and charges.bill_id=@bill_id and charges.code != 'SERVICE_CHARGE')", r), t.Field_Field$timestamp(e, e, !1, !1, "Collected time", g0, g0, e, r), t.Field_Field$numeric(e, e, !1, !1, "Costing", "costing", "costing", e, r), t.Field_Field$numeric(e, "ROUND(TIMESTAMP_DIFF(IFNULL(@servedAt, CURRENT_TIMESTAMP), @sentAt, SECOND),0)", !1, !1, "Preparation seconds", "preparationSeconds", e, "ROUND(EXTRACT(EPOCH FROM AGE(COALESCE(@served_at, CURRENT_TIMESTAMP),@sent_at)),0)", r), t.Field_Field$numeric("Computed: nett total minus costing", "(@nettTotal-coalesce(@costing, 0))", !1, !1, "Profit", "profit", e, "(@nett_total-coalesce(@costing, 0))", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent name", "layerZeroParentName", e, "(select name from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent code", "layerZeroParentCode", e, "(select code from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent category", "layerZeroParentCategory", e, "(select category_name from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Sub categories", o0, o0, e, r), t.Field_Field$numeric(e, "@billAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Bill discount inc tax", h0, h0, "@bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@itemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Item discount inc tax", I0, I0, "@item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount inc tax", x0, x0, "@layer_bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount inc tax", L0, L0, "@layer_item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@billAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Bill discount exc tax", T0, T0, "@bill_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@itemAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Item discount exc tax", F0, F0, "@item_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount exc tax", O0, O0, "@layer_bill_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount exc tax", M0, M0, "@layer_item_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r)], f.JSArray_Field);
9053
9053
  },
9054
9054
  $signature: 0
9055
9055
  }, t.flattenItemSchema_closure0.prototype = {
@@ -10506,12 +10506,12 @@ limit 1) when @tier is null then null else @tier::numeric end)`, r), t.Field_Fie
10506
10506
  var e = u.LegacyJavaScriptObject.prototype;
10507
10507
  e.super$LegacyJavaScriptObject$toString = e.toString$0, e = t.JsLinkedHashMap.prototype, e.super$JsLinkedHashMap$internalContainsKey = e.internalContainsKey$1, e.super$JsLinkedHashMap$internalGet = e.internalGet$1, e.super$JsLinkedHashMap$internalSet = e.internalSet$2, e = t.ListMixin.prototype, e.super$ListMixin$setRange = e.setRange$4, e = t.Field.prototype, e.super$Field$getSql = e.getSql$3$option$schema$value, e = t.BaseDatasourceConfigModel.prototype, e.super$BaseDatasourceConfigModel$toRequests = e.toRequests$1, e.super$BaseDatasourceConfigModel$toJson = e.toJson$0;
10508
10508
  }(), function() {
10509
- var e = e0._static_2, n = e0._static_1, i = e0._instance_1u, a = e0._instance_0u;
10509
+ var e = t0._static_2, n = t0._static_1, i = t0._instance_1u, a = t0._instance_0u;
10510
10510
  e(u, "_interceptors_JSArray__compareAny$closure", "JSArray__compareAny", 114), e(t, "collection___defaultEquals$closure", "_defaultEquals", 49), n(t, "collection___defaultHashCode$closure", "_defaultHashCode", 37), n(t, "convert___defaultToEncodable$closure", "_defaultToEncodable", 4), n(t, "core__identityHashCode$closure", "identityHashCode", 37), n(t, "core_RegExp_escape$closure", "RegExp_escape", 3), e(t, "core__identical$closure", "identical", 49);
10511
10511
  var s;
10512
10512
  i(s = t.DateBuilder.prototype, "get$setYear", "setYear$1", 7), i(s, "get$setMonth", "setMonth$1", 7), i(s, "get$setDay", "setDay$1", 7), i(s, "get$setDayOfYear", "setDayOfYear$1", 7), i(s, "get$setHour", "setHour$1", 7), i(s, "get$setMinute", "setMinute$1", 7), i(s, "get$setSecond", "setSecond$1", 7), i(s, "get$setFractionalSecond", "setFractionalSecond$1", 7), n(t, "date_format_DateFormat_localeExists$closure", "DateFormat_localeExists", 77), a(t.DateFormat.prototype, "get$_initDigitMatcher", "_initDigitMatcher$0", 75), i(t.ReCase.prototype, "get$_upperCaseFirstLetter", "_upperCaseFirstLetter$1", 3), n(t, "js_compiler__getMergeInfoSql$closure", "getMergeInfoSql", 4), n(t, "js_compiler__getClearTableSql$closure", "getClearTableSql", 4), n(t, "js_compiler__getMergeSql$closure", "getMergeSql", 4), n(t, "js_compiler__getSchemas$closure", "getSchemas", 4), n(t, "js_compiler__getVisualizationSchemas$closure", "getVisualizationSchemas", 4), n(t, "js_compiler__requestJsonToSql$closure", "requestJsonToSql", 4), n(t, "js_compiler__sqlResponsesToQueryResponses$closure", "sqlResponsesToQueryResponses", 4), n(t, "js_compiler__getQueryRequests$closure", "getQueryRequests", 4), n(t, "js_compiler__getCreateMaterializedTableSql$closure", "getCreateMaterializedTableSql", 4);
10513
10513
  }(), function() {
10514
- var e = e0.mixin, n = e0.inherit, i = e0.inheritMany;
10514
+ var e = t0.mixin, n = t0.inherit, i = t0.inheritMany;
10515
10515
  n(t.Object, null), i(t.Object, [t.JS_CONST, u.Interceptor, u.ArrayIterator, t.Iterable, t.CastIterator, t.Error, t._ListBase_Object_ListMixin, t.ListIterator, t.Iterator, t.EmptyIterator, t.FixedLengthListMixin, t.UnmodifiableListMixin, t.Symbol, t.MapView, t.ConstantMap, t.Closure, t.JSInvocationMirror, t.TypeErrorDecoder, t.NullThrownFromJavaScriptException, t._Required, t.MapMixin, t.LinkedHashMapCell, t.LinkedHashMapKeyIterator, t.JSSyntaxRegExp, t._MatchImplementation, t._AllMatchesIterator, t.StringMatch, t._StringAllMatchesIterator, t._Cell, t.Rti, t._FunctionParameters, t._Type, t._IterationMarker, t._SyncStarIterator, t.StreamTransformerBase, t.__SetBase_Object_SetMixin, t._LinkedHashSetCell, t._LinkedHashSetIterator, t.ListMixin, t._UnmodifiableMapMixin, t.SetMixin, t.Codec, t._JsonStringifier, t._Utf8Encoder, t.DateTime, t.Duration, t._Enum, t.OutOfMemoryError, t.StackOverflowError, t._Exception, t.FormatException, t.MapEntry, t.Null, t.Sink, t.StringBuffer, t.Endian, t.Digest, t.HashSink, t.DateSymbols, t.DateBuilder, t.DateFormat, t._DateFormatField, t.StringStack, t.UninitializedLocaleData, t.LocaleDataException, t.Jiffy, t.Locale, t.JiffyException, t.Connection, t.SchemaLibrary, t.QueryEngineContext, t.Permission, t.TopLevelFilters, t.Source, t.Index, t.Schema, t.Field, t.Join, t.JoinLateralSort, t.JoinLateral, t.JoinCondition, t.QueryRequestComparisonTarget, t.QueryRequestComparison, t.QueryRequestCommonField, t._GetSourceTableResponse, t._PlainSqlColumn, t.QueryRequest, t.QueryRequestTimeDimension, t.QueryResponseColumn, t.DateTimeRange, t.QueryResponse, t.QueryResponseRow, t.VisualizationSchema, t.VisualizationField, t.QueryEngine, t.BaseDatasourceConfigModel, t.DataSourceDrillConfig, t.DataSourceRowColumnConfig, t.JoinDatasourceCondition, t.GlobalFilterModel, t.ReportWidgetModel, t.ReCase, t.TZDateTime, t.TimeZoneInitException, t.LocationNotFoundException, t.Location, t.TimeZone, t.TzInstant, t.LocationDatabase]), i(u.Interceptor, [u.JSBool, u.JSNull, u.JavaScriptObject, u.JSArray, u.JSNumber, u.JSString, t.NativeTypedData]), n(u.LegacyJavaScriptObject, u.JavaScriptObject), i(u.LegacyJavaScriptObject, [u.PlainJavaScriptObject, u.UnknownJavaScriptObject, u.JavaScriptFunction, t.BufferModule, t.BufferConstants, t.Buffer, t.ConsoleModule, t.Console, t.EventEmitter, t.Promise, t.Date, t.JsError, t.Atomics, t.Modules, t.Module, t.Net, t.Socket, t.NetAddress, t.NetServer, t.NodeJsError, t.Process, t.CPUUsage, t.Release, t.StreamModule, t.Readable, t.Writable, t.Duplex, t.Transform, t.WritableOptions, t.ReadableOptions, t.Immediate, t.Timeout, t.TTY, t.Util, t.Exports, t._Exports]), n(u.JSUnmodifiableArray, u.JSArray), i(u.JSNumber, [u.JSInt, u.JSNumNotInt]), i(t.Iterable, [t._CastIterableBase, t.EfficientLengthIterable, t.MappedIterable, t.WhereIterable, t.SkipIterable, t._ConstantMapKeyIterable, t.IterableBase, t._StringAllMatchesIterable]), i(t._CastIterableBase, [t.CastIterable, t.__CastListBase__CastIterableBase_ListMixin]), n(t._EfficientLengthCastIterable, t.CastIterable), n(t._CastListBase, t.__CastListBase__CastIterableBase_ListMixin), n(t.CastList, t._CastListBase), i(t.Error, [t.LateError, t.TypeError, t.JsNoSuchMethodError, t.UnknownJsTypeError, t.RuntimeError, t._Error, t.JsonUnsupportedObjectError, t.AssertionError, t.NullThrownError, t.ArgumentError, t.NoSuchMethodError, t.UnsupportedError, t.UnimplementedError, t.StateError, t.ConcurrentModificationError, t.CyclicInitializationError]), n(t.ListBase, t._ListBase_Object_ListMixin), i(t.ListBase, [t.UnmodifiableListBase, t.TypedDataBuffer]), n(t.CodeUnits, t.UnmodifiableListBase), i(t.EfficientLengthIterable, [t.ListIterable, t.EmptyIterable, t.LinkedHashMapKeyIterable]), i(t.ListIterable, [t.SubListIterable, t.MappedListIterable, t.ReversedListIterable, t._JsonMapKeyIterable, t._GeneratorIterable]), n(t.EfficientLengthMappedIterable, t.MappedIterable), i(t.Iterator, [t.MappedIterator, t.WhereIterator, t.SkipIterator]), n(t.EfficientLengthSkipIterable, t.SkipIterable), n(t._UnmodifiableMapView_MapView__UnmodifiableMapMixin, t.MapView), n(t.UnmodifiableMapView, t._UnmodifiableMapView_MapView__UnmodifiableMapMixin), n(t.ConstantMapView, t.UnmodifiableMapView), i(t.Closure, [t.Closure2Args, t.Closure0Args, t.TearOffClosure, t.initHooks_closure, t.initHooks_closure1, t._LinkedCustomHashMap_closure, t.MapMixin_entries_closure, t.DateTime_parse_parseIntOrZero, t.DateTime_parse_parseMilliAndMicroseconds, t.DateFormat_dateTimeConstructor_closure, t.DateFormat__checkDateOnly_closure, t.DateFormat__initDigitMatcher_closure, t.DateFormat__initDigitMatcher_closure0, t._DateFormatPatternField_parseStandaloneDay_closure, t.Jiffy__parseString_closure, t.SchemaLibrary_getSchema_closure, t.SchemaLibrary_visualizationSchemas_closure, t.SchemaLibrary_visualizationSchemas_closure0, t.Materialize_get_createMaterializedTableSql_closure, t.Materialize_get_createMaterializedTableSql_closure0, t.Materialize_get_createMaterializedTableSql_closure1, t.Materialize_get_createMaterializedTableSql_closure2, t.Materialize_getMergeSql_closure, t.Materialize_getMergeSql_closure0, t.Materialize_getMergeSql_closure1, t.Materialize_getMergeSql_closure2, t.Materialize_getMergeSql_closure3, t.Materialize_getMergeSql_closure4, t.Materialize_getMergeSql_closure5, t.Materialize_getMaterializeInfoSql_closure, t.Materialize_getMaterializeInfoSql_closure0, t.TopLevelFilters_fromJson_closure, t.TopLevelFilters_toJson_closure, t.Schema_visualizationSchema_closure, t.Schema_visualizationSchema_closure0, t.Schema_visualizationSchema_closure1, t.Schema_fromJson_closure, t.Schema_fromJson_closure0, t.Schema_fromJson_closure1, t.Schema_fromJson_closure2, t.Schema_toJson_closure, t.Schema_toJson_closure0, t.Schema_toJson_closure1, t.Schema_toJson_closure2, t.Field_getQueryPlainSql_closure, t.Join_fromJson_closure, t.Join_toJson_closure, t.JoinLateral_toJson_closure, t.QueryRequestComparison_QueryRequestComparison$nested_closure, t.QueryRequestComparison_getToValues_closure, t.QueryRequestComparison_getToValues__closure0, t.QueryRequestComparison_getToValues_closure0, t.QueryRequestComparison_getToValues__closure, t.QueryRequestComparison_getFromValue_closure, t.QueryRequestComparison_getSql_closure, t.QueryRequestComparison_getSql_closure0, t.uniqueAlias_closure, t.QueryRequestCommonField_getAggregatedSql_closure, t.QueryRequestDimension_getPlainSql_closure, t.QueryRequestDimension_getColumn_closure, t.QueryRequestMetric_getColumn_closure, t.QueryRequestMetric_getPlainSql_closure, t.QueryRequest__closure0, t.QueryRequest__closure, t.QueryRequest__getJoins_closure, t.QueryRequest__getJoins__closure, t.QueryRequest_fromJson_closure, t.QueryRequest_fromJson_closure0, t.QueryRequest_fromJson_closure1, t.QueryRequest_fromJson_closure2, t.QueryRequest_fromJson_closure3, t.QueryRequest_fromJson_closure4, t.QueryRequest_toJson_closure, t.QueryRequest_toJson_closure0, t.QueryRequest_toJson_closure1, t.QueryRequest_toJson_closure2, t.QueryRequest_toJson_closure3, t.QueryRequest_toJson_closure4, t.QueryRequest_getColumns_closure, t.QueryRequest_getColumns_closure0, t.QueryRequest__getPlainSqlColumns_closure, t.QueryRequest__getPlainSqlColumns_closure0, t.QueryRequest__getPlainSqlColumns_closure1, t.QueryRequest__getPlainSqlColumns__closure, t.QueryRequest__getPlainSqlSorts_closure, t.QueryRequest__getSqlFilters_closure, t.QueryRequest__getSqlFilters_closure0, t.QueryRequest__getSqlFilters_closure1, t.QueryRequest__getSqlFilters_closure2, t.QueryRequest__getSqlFilters_closure3, t.QueryRequest__getSqlFilters_closure4, t.QueryRequest__getSqlJoins__closure, t.QueryRequest__getSqlJoins__closure0, t.QueryRequest__getRollupSelect_closure0, t.QueryRequest__getRollupSelect_closure2, t.QueryRequest__getRollupSelect_closure3, t.QueryRequest__getRollupSelect_closure4, t.QueryRequest__getRollupSelect_closure6, t.QueryRequest__getRollupSelect_closure7, t.QueryRequest__getRollupSelect_closure8, t.QueryRequest__getRollupSelect_closure9, t.QueryRequest__hasFillGap_closure, t.QueryRequest__getSqlSelectSorts_closure, t.QueryRequest__getSqlSelectSorts__closure, t.QueryRequest__getSqlSelectSorts__closure0, t.QueryRequest_getSqlSelect_closure, t.QueryRequest_getSqlSelect_closure0, t.QueryRequest_getSqlSelect_closure1, t.QueryRequest__transformSqlAlias_closure, t.QueryRequest__getSourceTable_closure, t.QueryRequest__getSourceTable_closure0, t.QueryRequest__getFillGapTable_closure0, t.QueryRequest__getFillGapTable__closure1, t.QueryRequest__getFillGapTable__closure2, t.QueryRequest__getFillGapTable_closure2, t.QueryRequest__getFillGapTable__closure, t.QueryRequest__getFillGapTable__closure0, t.QueryRequest__getFillGapTable_closure3, t.QueryRequest__getFillGapTable_closure4, t.QueryRequest__getFullTable_closure, t.QueryRequest__getFullTable_closure1, t.QueryRequest__getFullTable_closure2, t.QueryRequestSort_getPlainSql_closure, t.QueryRequestSort_getSortSql_closure, t.QueryResponse$map_closure, t.QueryResponse_toJson_closure, t.QueryResponse_toJson_closure0, t.VisualizationSchema_toJson_closure, t.VisualizationSchema_toJson_closure0, t.VisualizationField_filterDimensionOptions_closure, t.VisualizationField_fillGapDimensionOptions_closure, t.VisualizationField_isNumericAggregations_closure, t.VisualizationField_toJson_closure, t.VisualizationField_toJson_closure0, t.VisualizationField_toJson_closure1, t.VisualizationField_toJson_closure2, t.VisualizationField_toJson_closure3, t.VisualizationField_toJson_closure4, t.VisualizationField_toJson_closure5, t.VisualizationField_toJson_closure6, t.VisualizationField_toJson_closure7, t.addonFlattenItemSchema_closure, t.addonFlattenItemSchema_closure0, t.adjustmentSchema_closure, t.adjustmentSchema_closure0, t.billSchema_closure, t.billSchema_closure0, t.businessSchema_closure, t.businessSchema_closure0, t.campaignSchema_closure, t.campaignSchema_closure0, t.campaignTierSchema_closure, t.campaignTierSchema_closure0, t.chargeSchema_closure, t.chargeSchema_closure0, t.closingDraftSchema_closure, t.closingDraftSchema_closure0, t.closingDraftSkuSchema_closure, t.closingDraftSkuSchema_closure0, t.closingSkuSchema_closure, t.closingSkuSchema_closure0, t.collectibleCollectionSchema_closure, t.collectibleCollectionSchema_closure0, t.collectibleConfigSchema_closure, t.collectibleConfigSchema_closure0, t.collectibleTransactionSchema_closure, t.collectibleTransactionSchema_closure0, t.completeTimeBillSchema_closure, t.completeTimeBillSchema_closure0, t.counterSchema_closure, t.counterSchema_closure0, t.creditTransactionSchema_closure, t.creditTransactionSchema_closure0, t.dailyForecastSalesSchema_closure, t.dailyForecastSalesSchema_closure0, t.discountSchema_closure, t.discountSchema_closure0, t.drawerSchema_closure, t.drawerSchema_closure0, t.flattenItemSchema_closure, t.flattenItemSchema_closure0, t.internalPurchaseOrderSchema_closure, t.internalPurchaseOrderSchema_closure0, t.internalPurchaseOrderDeliveryFulfillmentSchema_closure, t.internalPurchaseOrderDeliveryFulfillmentSchema_closure0, t.internalPurchaseOrderDeliveryFulfillmentSkuSchema_closure, t.internalPurchaseOrderDeliveryFulfillmentSkuSchema_closure0, t.internalPurchaseOrderDeliveryOrderSchema_closure, t.internalPurchaseOrderDeliveryOrderSchema_closure0, t.internalPurchaseOrderDeliveryOrderSkuSchema_closure, t.internalPurchaseOrderDeliveryOrderSkuSchema_closure0, t.internalPurchaseOrderItemSchema_closure, t.internalPurchaseOrderItemSchema_closure0, t.inventoryAdjustmentSchema_closure, t.inventoryAdjustmentSchema_closure0, t.inventoryAdjustmentPhysicalSkuSchema_closure, t.inventoryAdjustmentPhysicalSkuSchema_closure0, t.inventoryAdjustmentSkuSchema_closure, t.inventoryAdjustmentSkuSchema_closure0, t.inventoryV1FlattenInventorySchema_closure, t.inventoryV1FlattenInventorySchema_closure0, t.itemSchema_closure, t.itemSchema_closure0, t.itemMovementSchema_closure, t.itemMovementSchema_closure0, t.kitchenStationSchema_closure, t.kitchenStationSchema_closure0, t.memberSchema_closure, t.memberSchema_closure0, t.memberStorePurchaseSchema_closure, t.memberStorePurchaseSchema_closure0, t.memberStorePurchasePaymentSchema_closure, t.memberStorePurchasePaymentSchema_closure0, t.memberTitleSchema_closure, t.memberTitleSchema_closure0, t.memberV2Schema_closure, t.memberV2Schema_closure0, t.membershipSchema_closure, t.membershipSchema_closure0, t.membershipTitleSchema_closure, t.membershipTitleSchema_closure0, t.menuV3GroupSchema_closure, t.menuV3GroupSchema_closure0, t.menuV3ItemSchema_closure, t.menuV3ItemSchema_closure0, t.menuV3SkuSchema_closure, t.menuV3SkuSchema_closure0, t.menuV4CatalogItemSchema_closure, t.menuV4CatalogItemSchema_closure0, t.menuV4GroupSchema_closure, t.menuV4GroupSchema_closure0, t.menuV4ItemSchema_closure, t.menuV4ItemSchema_closure0, t.menuV4ItemInventoryBindingSchema_closure, t.menuV4ItemInventoryBindingSchema_closure0, t.menuV4SkuSchema_closure, t.menuV4SkuSchema_closure0, t.parentFlattenItemSchema_closure, t.parentFlattenItemSchema_closure0, t.paymentSchema_closure, t.paymentSchema_closure0, t.paymentTimePaymentSchema_closure, t.paymentTimePaymentSchema_closure0, t.purchaseOrderSchema_closure, t.purchaseOrderSchema_closure0, t.purchaseOrderDeliveryFulfillmentSchema_closure, t.purchaseOrderDeliveryFulfillmentSchema_closure0, t.purchaseOrderDeliveryFulfillmentSkuSchema_closure, t.purchaseOrderDeliveryFulfillmentSkuSchema_closure0, t.purchaseOrderDeliveryOrderSchema_closure, t.purchaseOrderDeliveryOrderSchema_closure0, t.purchaseOrderDeliveryOrderSkuSchema_closure, t.purchaseOrderDeliveryOrderSkuSchema_closure0, t.purchaseOrderItemSchema_closure, t.purchaseOrderItemSchema_closure0, t.recommendationCallSchema_closure, t.recommendationCallSchema_closure0, t.recordSchema_closure, t.recordSchema_closure0, t.refundBillSchema_closure, t.refundBillSchema_closure0, t.restaurantSchema_closure, t.restaurantSchema_closure0, t.restaurantFeatureSchema_closure, t.restaurantFeatureSchema_closure0, t.restaurantLocationSchema_closure, t.restaurantLocationSchema_closure0, t.reviewSchema_closure, t.reviewSchema_closure0, t.slotSchema_closure, t.slotSchema_closure0, t.staffSchema_closure, t.staffSchema_closure0, t.stockSchema_closure, t.stockSchema_closure0, t.storeBundleSchema_closure, t.storeBundleSchema_closure0, t.storeTransactionSchema_closure, t.storeTransactionSchema_closure0, t.subItemSchema_closure, t.subItemSchema_closure0, t.timesheetSchema_closure, t.timesheetSchema_closure0, t.timesheetRecordSchema_closure, t.timesheetRecordSchema_closure0, t.unitCostHistorySchema_closure, t.unitCostHistorySchema_closure0, t.userSchema_closure, t.userSchema_closure0, t.vnEInvoiceSubmissionSchema_closure, t.vnEInvoiceSubmissionSchema_closure0, t.voucherClaimSchema_closure, t.voucherClaimSchema_closure0, t.voucherClaimRedemptionSchema_closure, t.voucherClaimRedemptionSchema_closure0, t.warehouseLocationSchema_closure, t.warehouseLocationSchema_closure0, t.QueryEngine_getSql_closure, t.BaseDatasourceConfigModel_drilledDimensionIds_closure, t.BaseDatasourceConfigModel_metricIds_closure, t.BaseDatasourceConfigModel_toJson_closure, t.BaseDatasourceConfigModel_toJson_closure0, t.BaseDatasourceConfigModel_toJson_closure1, t.BaseDatasourceConfigModel_toJson_closure2, t.BaseDatasourceConfigModel_toJson_closure3, t.BaseDatasourceConfigModel_toJson_closure4, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure0, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure1, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure2, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure3, t.DataSourceDrillConfig_drilledDimensions_closure, t.DataSourceRowColumnConfig_rowIds_closure, t.DataSourceRowColumnConfig_rowIds_closure0, t.DataSourceRowColumnConfig_rowIds_closure2, t.DataSourceRowColumnConfig_rowIds_closure1, t.DataSourceRowColumnConfig_columnIds_closure, t.DataSourceRowColumnConfig_columnIds_closure0, t.DataSourceRowColumnConfig_columnIds_closure1, t.TableDatasourceConfigModel_joinDatasources_closure, t.TableDatasourceConfigModel_toRequests___closure, t.TableDatasourceConfigModel_toRequests_closure0, t.TableDatasourceConfigModel_toJson_closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson_closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson___closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson___closure0, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson____closure, t.JoinDatasourceConfig_JoinDatasourceConfig$fromJson_closure, t.JoinDatasourceConfig_toJson_closure, t.JoinDatasourceCondition_JoinDatasourceCondition$fromJson_closure, t.JoinDatasourceCondition_toJson_closure, t.BaseXYDatasourceConfigModel_joinDatasources_closure, t.BaseXYDatasourceConfigModel_toRequests___closure, t.BaseXYDatasourceConfigModel_toRequests_closure0, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson_closure, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson___closure, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson___closure0, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson____closure, t.getSchemas_closure, t.getVisualizationSchemas_closure, t.sqlResponsesToQueryResponses_closure, t.sqlResponsesToQueryResponses_closure1, t.getQueryRequests_closure, t.getQueryRequests_closure0, t.getQueryRequests_closure1, t.getQueryRequests_closure2, t.getQueryRequests_closure3, t.getQueryRequests_closure4, t.getQueryRequests_closure5, t.getQueryRequests_closure6, t.getQueryRequests_closure7, t.getQueryRequests_closure8, t.getQueryRequests_closure9]), i(t.Closure2Args, [t.ConstantMap_map_closure, t.Primitives_functionNoSuchMethod_closure, t.JsLinkedHashMap_addAll_closure, t.initHooks_closure0, t.LinkedHashMap_LinkedHashMap$from_closure, t.MapBase_mapToString_closure, t._JsonStringifier_writeMap_closure, t.NoSuchMethodError_toString_closure, t.DateFormat__fieldConstructors_closure, t.DateFormat__fieldConstructors_closure0, t.DateFormat__fieldConstructors_closure1, t.Jiffy__parseMap_closure, t.Join_getConditionsSql_closure, t.QueryRequest_closure, t.QueryRequest_closure0, t.QueryRequest__getPlainSqlColumns_closure2, t.QueryRequest__getSqlJoins_closure, t.QueryRequest__getRollupSelect_closure, t.QueryRequest__getRollupSelect_closure1, t.QueryRequest__getRollupSelect_closure5, t.QueryRequest__getSqlSelectSorts_closure0, t.QueryRequest__getSortedLimitTable_closure, t.QueryRequest__getFillGapTable_closure, t.QueryRequest__getFillGapTable_closure1, t.QueryRequest__getFullTable_closure0, t.VisualizationSchema_closure, t.DataSourceDrillConfig__availableIds_closure, t.DataSourceRowColumnConfig__availableIds_closure, t.DataSourceRowColumnConfig__availableIds_closure0, t.TableDatasourceConfigModel_drilledDimensions_closure, t.TableDatasourceConfigModel_toRequests_closure, t.TableDatasourceConfigModel_toRequests__closure0, t.TableDatasourceConfigModel_toRequests__closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson__closure, t.BaseXYDatasourceConfigModel_toRequests_closure, t.BaseXYDatasourceConfigModel_toRequests__closure0, t.BaseXYDatasourceConfigModel_toRequests__closure, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson__closure, t.sqlResponsesToQueryResponses_closure0]), n(t.ConstantStringMap, t.ConstantMap), n(t.NullError, t.TypeError), i(t.TearOffClosure, [t.StaticClosure, t.BoundClosure]), n(t.MapBase, t.MapMixin), i(t.MapBase, [t.JsLinkedHashMap, t._JsonMap]), i(t.IterableBase, [t._AllMatchesIterable, t._SyncStarIterable]), n(t.NativeTypedArray, t.NativeTypedData), n(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, t.NativeTypedArray), n(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin), n(t.NativeTypedArrayOfInt, t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin), i(t.NativeTypedArrayOfInt, [t.NativeUint16List, t.NativeUint32List, t.NativeUint8List]), n(t._TypeError, t._Error), i(t.JsLinkedHashMap, [t._LinkedIdentityHashMap, t._LinkedCustomHashMap]), n(t._SetBase, t.__SetBase_Object_SetMixin), n(t._LinkedHashSet, t._SetBase), i(t.Codec, [t.Encoding, t.JsonCodec]), i(t.Encoding, [t.AsciiCodec, t.Utf8Codec]), n(t.Converter, t.StreamTransformerBase), i(t.Converter, [t._UnicodeSubsetDecoder, t.JsonEncoder, t.JsonDecoder, t.Utf8Encoder]), n(t.AsciiDecoder, t._UnicodeSubsetDecoder), n(t.JsonCyclicError, t.JsonUnsupportedObjectError), n(t._JsonStringStringifier, t._JsonStringifier), i(t.ArgumentError, [t.RangeError, t.IndexError]), n(t.DigestSink, t.Sink), n(t._Sha1Sink, t.HashSink), i(t._DateFormatField, [t._DateFormatLiteralField, t._DateFormatQuotedField, t._DateFormatPatternField]), i(t._Enum, [t.StartOfWeek, t.Units, t.SOURCE_TYPE, t.SCHEMA_NAME, t.DATA_TYPE, t.AGGREGATION_TYPE, t.COMPARISON_OPERATOR, t.DIMENSION_OPTION, t.TIME_FORMATTER, t.FORMATTER_TYPE, t.PERIOD_TYPE, t.SORT_TYPE, t.PermissionType, t.INDEX_METHOD, t.FIELD_TYPE, t.ChartType]), i(t.Locale, [t.ArLyLocale, t.ArSaMaDzKwTnLocale, t.AzLocale, t.BnLocale, t.DeLocale, t.EnLocale, t.EsLocale, t.FaLocale, t.FrLocale, t.HiLocale, t.IdLocale, t.ItLocale, t.JaLocale, t.KoLocale, t.NbLocale, t.NlLocale, t.PlLocale, t.PtLocale, t.RuLocale, t.SvLocale, t.ThLocale, t.TrLocale, t.UkLocale, t.ZhCnLocale, t.ZhLocale]), i(t.NodeJsError, [t.JsAssertionError, t.JsRangeError, t.JsReferenceError, t.JsSyntaxError, t.JsTypeError, t.JsSystemError]), i(t.Socket, [t.TTYReadStream, t.TTYWriteStream]), i(t.Field, [t._NumericField, t._TimestampField, t._BoolField, t._StringField]), i(t.QueryRequestComparisonTarget, [t._QueryRequestComparisonTargetValue, t._QueryRequestComparisonTargetVariable]), i(t.QueryRequestCommonField, [t.QueryRequestDimension, t.QueryRequestMetric, t.QueryRequestFilter, t.QueryRequestSort]), i(t.Closure0Args, [t.QueryRequestDimension_generateTimestampArraySql_closure, t.QueryRequestDimension_generateTimestampArraySql_closure0, t.QueryRequest__getSqlFilters__closure]), i(t.BaseDatasourceConfigModel, [t._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, t.ScorecardDatasourceConfigModel, t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig]), n(t.CircularDatasourceConfigModel, t._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig), n(t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig, t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig), n(t.TableDatasourceConfigModel, t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig), n(t.JoinDatasourceConfig, t._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig), n(t.BaseXYDatasourceConfigModel, t._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig), n(t._IntBuffer, t.TypedDataBuffer), n(t.Uint8Buffer, t._IntBuffer), e(t.UnmodifiableListBase, t.UnmodifiableListMixin), e(t.__CastListBase__CastIterableBase_ListMixin, t.ListMixin), e(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, t.ListMixin), e(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, t.FixedLengthListMixin), e(t._ListBase_Object_ListMixin, t.ListMixin), e(t._UnmodifiableMapView_MapView__UnmodifiableMapMixin, t._UnmodifiableMapMixin), e(t.__SetBase_Object_SetMixin, t.SetMixin), e(t._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, t.DataSourceDrillConfig), e(t._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t.DataSourceRowColumnConfig), e(t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t.DataSourceRowColumnConfig), e(t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig, t.DataSourceDrillConfig), e(t._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, t.DataSourceDrillConfig);
10516
10516
  }();
10517
10517
  var b = {
@@ -10697,7 +10697,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
10697
10697
  };
10698
10698
  }();
10699
10699
  (function() {
10700
- var e = e0.makeConstList;
10700
+ var e = t0.makeConstList;
10701
10701
  _.Interceptor_methods = u.Interceptor.prototype, _.JSArray_methods = u.JSArray.prototype, _.JSInt_methods = u.JSInt.prototype, _.JSNumber_methods = u.JSNumber.prototype, _.JSString_methods = u.JSString.prototype, _.JavaScriptFunction_methods = u.JavaScriptFunction.prototype, _.JavaScriptObject_methods = u.JavaScriptObject.prototype, _.NativeUint8List_methods = t.NativeUint8List.prototype, _.PlainJavaScriptObject_methods = u.PlainJavaScriptObject.prototype, _.UnknownJavaScriptObject_methods = u.UnknownJavaScriptObject.prototype, _.AGGREGATION_TYPE_0 = new t.AGGREGATION_TYPE(0, "SUM"), _.AGGREGATION_TYPE_1 = new t.AGGREGATION_TYPE(1, "AVERAGE"), _.AGGREGATION_TYPE_10 = new t.AGGREGATION_TYPE(10, "CUMULATIVE_SUM"), _.AGGREGATION_TYPE_11 = new t.AGGREGATION_TYPE(11, "CUMULATIVE_AVERAGE"), _.AGGREGATION_TYPE_12 = new t.AGGREGATION_TYPE(12, "CUMULATIVE_COUNT"), _.AGGREGATION_TYPE_2 = new t.AGGREGATION_TYPE(2, "COUNT"), _.AGGREGATION_TYPE_3 = new t.AGGREGATION_TYPE(3, "COUNT_DISTINCT"), _.AGGREGATION_TYPE_4 = new t.AGGREGATION_TYPE(4, "FIRST"), _.AGGREGATION_TYPE_5 = new t.AGGREGATION_TYPE(5, "LAST"), _.AGGREGATION_TYPE_6 = new t.AGGREGATION_TYPE(6, "ANY"), _.AGGREGATION_TYPE_7 = new t.AGGREGATION_TYPE(7, "MERGE"), _.AGGREGATION_TYPE_8 = new t.AGGREGATION_TYPE(8, "MIN"), _.AGGREGATION_TYPE_9 = new t.AGGREGATION_TYPE(9, "MAX"), _.AsciiDecoder_false = new t.AsciiDecoder(!1), _.COMPARISON_OPERATOR_0 = new t.COMPARISON_OPERATOR(0, "EQUAL"), _.COMPARISON_OPERATOR_1 = new t.COMPARISON_OPERATOR(1, "NOT_EQUAL"), _.COMPARISON_OPERATOR_10 = new t.COMPARISON_OPERATOR(10, "OR"), _.COMPARISON_OPERATOR_2 = new t.COMPARISON_OPERATOR(2, "GREATER_THAN"), _.COMPARISON_OPERATOR_3 = new t.COMPARISON_OPERATOR(3, "LESS_THAN"), _.COMPARISON_OPERATOR_4 = new t.COMPARISON_OPERATOR(4, "GREATER_THAN_OR_EQUAL"), _.COMPARISON_OPERATOR_5 = new t.COMPARISON_OPERATOR(5, "LESS_THAN_OR_EQUAL"), _.COMPARISON_OPERATOR_6 = new t.COMPARISON_OPERATOR(6, "BETWEEN"), _.COMPARISON_OPERATOR_7 = new t.COMPARISON_OPERATOR(7, "LIKE"), _.COMPARISON_OPERATOR_8 = new t.COMPARISON_OPERATOR(8, "NOT_LIKE"), _.C_AsciiCodec = new t.AsciiCodec(), _.C_EmptyIterator = new t.EmptyIterator(), _.C_Endian = new t.Endian(), _.C_Endian0 = new t.Endian(), _.C_JS_CONST = function(i) {
10702
10702
  var a = Object.prototype.toString.call(i);
10703
10703
  return a.substring(8, a.length - 1);
@@ -10799,7 +10799,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
10799
10799
  })(), function() {
10800
10800
  S._JS_INTEROP_INTERCEPTOR_TAG = null, S.Primitives__identityHashCodeProperty = null, S.BoundClosure__receiverFieldNameCache = null, S.BoundClosure__interceptorFieldNameCache = null, S.getTagFunction = null, S.alternateTagFunction = null, S.prototypeForTagFunction = null, S.dispatchRecordsForInstanceTags = null, S.interceptorsForUncacheableTags = null, S.initNativeDispatchFlag = null, S._toStringVisiting = t._setArrayType([], t.findType("JSArray<Object>")), S.cachedDateSymbols = null, S.lastDateSymbolLocale = null, S._defaultLocale = null, S.DateFormat__useNativeDigitsByDefault = t.LinkedHashMap_LinkedHashMap$_empty(f.String, f.bool), S.DateFormat__digitMatchers = t.LinkedHashMap_LinkedHashMap$_empty(f.String, t.findType("RegExp")), S.Jiffy____defaultLocale = t._Cell$(), S.VisualizationField__filterDimensionOptions = t._setArrayType([_.DIMENSION_OPTION_5, _.DIMENSION_OPTION_6, _.DIMENSION_OPTION_7, _.DIMENSION_OPTION_8, _.DIMENSION_OPTION_9], f.JSArray_DIMENSION_OPTION), S.VisualizationField__fillGapDimensionOptions = t._setArrayType([_.DIMENSION_OPTION_1, _.DIMENSION_OPTION_2, _.DIMENSION_OPTION_3, _.DIMENSION_OPTION_4, _.DIMENSION_OPTION_6, _.DIMENSION_OPTION_7, _.DIMENSION_OPTION_8, _.DIMENSION_OPTION_9, _.DIMENSION_OPTION_10, _.DIMENSION_OPTION_11], f.JSArray_DIMENSION_OPTION), S.VisualizationField__isNumericAggregations = t._setArrayType([_.AGGREGATION_TYPE_2, _.AGGREGATION_TYPE_3], f.JSArray_AGGREGATION_TYPE), S.___local = t._Cell$();
10801
10801
  }(), function() {
10802
- var e = e0.lazyFinal, n = e0.lazy;
10802
+ var e = t0.lazyFinal, n = t0.lazy;
10803
10803
  e(S, "DART_CLOSURE_PROPERTY_NAME", "$get$DART_CLOSURE_PROPERTY_NAME", () => t.getIsolateAffinityTag("_$dart_dartClosure")), e(S, "TypeErrorDecoder_noSuchMethodPattern", "$get$TypeErrorDecoder_noSuchMethodPattern", () => t.TypeErrorDecoder_extractPattern(t.TypeErrorDecoder_provokeCallErrorOn({
10804
10804
  toString: function() {
10805
10805
  return "$receiver$";
@@ -10836,8 +10836,8 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
10836
10836
  return i.message;
10837
10837
  }
10838
10838
  }())), e(S, "DateTime__parseFormat", "$get$DateTime__parseFormat", () => t.RegExp_RegExp("^([+-]?\\d{4,6})-?(\\d\\d)-?(\\d\\d)(?:[ T](\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d+))?)?)?( ?[zZ]| ?([-+])(\\d\\d)(?::?(\\d\\d))?)?)?$", !1)), e(S, "_hashSeed", "$get$_hashSeed", () => t.objectHashCode(_.Type_Object_xQ6)), e(S, "Endian_host", "$get$Endian_host", () => t.NativeByteData_NativeByteData$view(t.NativeUint16List_NativeUint16List$fromList(t._setArrayType([1], f.JSArray_int)).buffer, 0, null).getInt8(0) === 1 ? _.C_Endian0 : _.C_Endian), e(S, "_clockKey", "$get$_clockKey", () => new t.Object()), e(S, "en_USSymbols", "$get$en_USSymbols", () => new t.DateSymbols("en_US", _.List_BC_AD, _.List_6xs, _.List_qpm, _.List_qpm, _.List_cIc, _.List_cIc, _.List_h8w, _.List_h8w, _.List_wMy, _.List_wMy, _.List_gc6, _.List_gc6, _.List_3US, _.List_AM_PM)), n(S, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => t.UninitializedLocaleData$("initializeDateFormatting(<locale>)", S.$get$en_USSymbols())), n(S, "dateTimePatterns", "$get$dateTimePatterns", () => t.UninitializedLocaleData$("initializeDateFormatting(<locale>)", _.Map_EQ6TW)), e(S, "asciiZeroCodeUnit", "$get$asciiZeroCodeUnit", () => 48), e(S, "DateFormat__matchers", "$get$DateFormat__matchers", () => t._setArrayType([t.RegExp_RegExp("^'(?:[^']|'')*'", !1), t.RegExp_RegExp("^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|D+|m+|s+|v+|z+|Z+)", !1), t.RegExp_RegExp("^[^'GyMkSEahKHcLQdDmsvzZ]+", !1)], t.findType("JSArray<RegExp>"))), e(S, "_DateFormatQuotedField__twoEscapedQuotes", "$get$_DateFormatQuotedField__twoEscapedQuotes", () => t.RegExp_RegExp("''", !1)), e(S, "asciiDigitMatcher", "$get$asciiDigitMatcher", () => t.RegExp_RegExp("^\\d+", !1)), n(S, "_availableLocales", "$get$_availableLocales", () => {
10839
- var i, a, s = t.EnLocale$(_.StartOfWeek_1), o = t.EnLocale$(_.StartOfWeek_1), l = t.EnLocale$(_.StartOfWeek_1), D = t.EnLocale$(_.StartOfWeek_1), d = t.EnLocale$(_.StartOfWeek_1), c = t.EnLocale$(_.StartOfWeek_2), p = t.EnLocale$(_.StartOfWeek_2), y = t.EnLocale$(_.StartOfWeek_1), m = t.EnLocale$(_.StartOfWeek_1), g = t.EsLocale$(_.StartOfWeek_2), h = t.EsLocale$(_.StartOfWeek_2), E = t.EsLocale$(_.StartOfWeek_1), C = t.FrLocale$(_.StartOfWeek_2), F = t.FrLocale$(_.StartOfWeek_2), M = t.FrLocale$(_.StartOfWeek_1), x = t.ZhCnLocale$(_.StartOfWeek_1), R = t.ZhCnLocale$(_.StartOfWeek_1), L = t.ZhLocale$(_.StartOfWeek_1), w = t.ZhLocale$(_.StartOfWeek_1), v = t.DeLocale$(_.StartOfWeek_2), U = t.DeLocale$(_.StartOfWeek_2), j = t.DeLocale$(_.StartOfWeek_2), f0 = t.DeLocale$(_.StartOfWeek_2), g0 = t.ItLocale$(_.StartOfWeek_2), o0 = t.ItLocale$(_.StartOfWeek_2), h0 = t.ArLyLocale$(!0, _.StartOfWeek_0), I0 = t.ArLyLocale$(!1, _.StartOfWeek_0), x0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_1), L0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_1), T0 = t.ArSaMaDzKwTnLocale$(!0, _.StartOfWeek_1), F0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_0), O0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_0);
10840
- return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), i = t.PtLocale$(_.StartOfWeek_2), a = t.PtLocale$(_.StartOfWeek_1), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.LinkedHashMap_LinkedHashMap$_literal(["en", s, "en_us", o, "en_sg", l, "en_au", D, "en_ca", d, "en_gb", c, "en_ie", p, "en_il", y, "en_nz", m, "es", g, "es_do", h, "es_us", E, "fr", C, "fr_ch", F, "fr_ca", M, "zh", x, "zh_cn", R, "zh_hk", L, "zh_tw", w, "de", v, "de_de", U, "de_at", j, "de_ch", f0, "it", g0, "it_ch", o0, "ar", h0, "ar_ly", I0, "ar_dz", x0, "ar_kw", L0, "ar_sa", T0, "ar_ma", F0, "ar_tn", O0, "az", new t.AzLocale(), "id", new t.IdLocale(), "ja", new t.JaLocale(), "ko", new t.KoLocale(), "ru", new t.RuLocale(), "uk", new t.UkLocale(), "hi", new t.HiLocale(), "pt", i, "pt_br", a, "pl", new t.PlLocale(), "tr", new t.TrLocale(), "sv", new t.SvLocale(), "nb", new t.NbLocale(), "fa", new t.FaLocale(), "bn", new t.BnLocale(), "nl", new t.NlLocale(), "th", new t.ThLocale()], f.String, t.findType("Locale"));
10839
+ var i, a, s = t.EnLocale$(_.StartOfWeek_1), o = t.EnLocale$(_.StartOfWeek_1), l = t.EnLocale$(_.StartOfWeek_1), D = t.EnLocale$(_.StartOfWeek_1), d = t.EnLocale$(_.StartOfWeek_1), c = t.EnLocale$(_.StartOfWeek_2), p = t.EnLocale$(_.StartOfWeek_2), y = t.EnLocale$(_.StartOfWeek_1), m = t.EnLocale$(_.StartOfWeek_1), g = t.EsLocale$(_.StartOfWeek_2), h = t.EsLocale$(_.StartOfWeek_2), E = t.EsLocale$(_.StartOfWeek_1), C = t.FrLocale$(_.StartOfWeek_2), F = t.FrLocale$(_.StartOfWeek_2), M = t.FrLocale$(_.StartOfWeek_1), x = t.ZhCnLocale$(_.StartOfWeek_1), R = t.ZhCnLocale$(_.StartOfWeek_1), L = t.ZhLocale$(_.StartOfWeek_1), w = t.ZhLocale$(_.StartOfWeek_1), v = t.DeLocale$(_.StartOfWeek_2), k = t.DeLocale$(_.StartOfWeek_2), j = t.DeLocale$(_.StartOfWeek_2), f0 = t.DeLocale$(_.StartOfWeek_2), g0 = t.ItLocale$(_.StartOfWeek_2), o0 = t.ItLocale$(_.StartOfWeek_2), h0 = t.ArLyLocale$(!0, _.StartOfWeek_0), I0 = t.ArLyLocale$(!1, _.StartOfWeek_0), x0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_1), L0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_1), T0 = t.ArSaMaDzKwTnLocale$(!0, _.StartOfWeek_1), F0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_0), O0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_0);
10840
+ return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), i = t.PtLocale$(_.StartOfWeek_2), a = t.PtLocale$(_.StartOfWeek_1), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.LinkedHashMap_LinkedHashMap$_literal(["en", s, "en_us", o, "en_sg", l, "en_au", D, "en_ca", d, "en_gb", c, "en_ie", p, "en_il", y, "en_nz", m, "es", g, "es_do", h, "es_us", E, "fr", C, "fr_ch", F, "fr_ca", M, "zh", x, "zh_cn", R, "zh_hk", L, "zh_tw", w, "de", v, "de_de", k, "de_at", j, "de_ch", f0, "it", g0, "it_ch", o0, "ar", h0, "ar_ly", I0, "ar_dz", x0, "ar_kw", L0, "ar_sa", T0, "ar_ma", F0, "ar_tn", O0, "az", new t.AzLocale(), "id", new t.IdLocale(), "ja", new t.JaLocale(), "ko", new t.KoLocale(), "ru", new t.RuLocale(), "uk", new t.UkLocale(), "hi", new t.HiLocale(), "pt", i, "pt_br", a, "pl", new t.PlLocale(), "tr", new t.TrLocale(), "sv", new t.SvLocale(), "nb", new t.NbLocale(), "fa", new t.FaLocale(), "bn", new t.BnLocale(), "nl", new t.NlLocale(), "th", new t.ThLocale()], f.String, t.findType("Locale"));
10841
10841
  }), e(S, "addonFlattenItemSchema", "$get$addonFlattenItemSchema", () => {
10842
10842
  var i = "createdAt", a = null, s = t.Source_Source$couchdb("", ""), o = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], f.JSArray_Permission), i);
10843
10843
  return t.Schema_Schema$build(a, _.List_empty, 3, t._setArrayType(["restaurantId"], f.JSArray_String), a, new t.addonFlattenItemSchema_closure(), _.List_empty0, a, a, !0, !1, !1, !0, !1, new t.addonFlattenItemSchema_closure0(), "Addon", "flatten_items", "flatten_item", _.SCHEMA_NAME_7, i, "", s, o);
@@ -11188,7 +11188,7 @@ WHERE (
11188
11188
  (function() {
11189
11189
  var e = function(l) {
11190
11190
  var D = {};
11191
- return D[l] = 1, Object.keys(e0.convertToFastObject(D))[0];
11191
+ return D[l] = 1, Object.keys(t0.convertToFastObject(D))[0];
11192
11192
  };
11193
11193
  b.getIsolateTag = function(l) {
11194
11194
  return e("___dart_" + l + b.isolateTag);
@@ -11201,7 +11201,7 @@ WHERE (
11201
11201
  }
11202
11202
  }
11203
11203
  b.dispatchPropertyName = b.getIsolateTag("dispatch_record");
11204
- })(), e0.setOrUpdateInterceptorsByTag({ ArrayBuffer: u.Interceptor, DataView: t.NativeTypedData, ArrayBufferView: t.NativeTypedData, Uint16Array: t.NativeUint16List, Uint32Array: t.NativeUint32List, Uint8Array: t.NativeUint8List }), e0.setOrUpdateLeafTags({ ArrayBuffer: !0, DataView: !0, ArrayBufferView: !1, Uint16Array: !0, Uint32Array: !0, Uint8Array: !1 }), t.NativeTypedArray.$nativeSuperclassTag = "ArrayBufferView", t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.$nativeSuperclassTag = "ArrayBufferView", t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.$nativeSuperclassTag = "ArrayBufferView", t.NativeTypedArrayOfInt.$nativeSuperclassTag = "ArrayBufferView";
11204
+ })(), t0.setOrUpdateInterceptorsByTag({ ArrayBuffer: u.Interceptor, DataView: t.NativeTypedData, ArrayBufferView: t.NativeTypedData, Uint16Array: t.NativeUint16List, Uint32Array: t.NativeUint32List, Uint8Array: t.NativeUint8List }), t0.setOrUpdateLeafTags({ ArrayBuffer: !0, DataView: !0, ArrayBufferView: !1, Uint16Array: !0, Uint32Array: !0, Uint8Array: !1 }), t.NativeTypedArray.$nativeSuperclassTag = "ArrayBufferView", t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.$nativeSuperclassTag = "ArrayBufferView", t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.$nativeSuperclassTag = "ArrayBufferView", t.NativeTypedArrayOfInt.$nativeSuperclassTag = "ArrayBufferView";
11205
11205
  }(), Function.prototype.call$1 = function(r) {
11206
11206
  return this(r);
11207
11207
  }, Function.prototype.call$0 = function() {
@@ -11264,48 +11264,48 @@ var Ye = Ve, Ae = {};
11264
11264
  function J() {
11265
11265
  try {
11266
11266
  throw new Error();
11267
- } catch (r0) {
11268
- var k = r0.stack, Q = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), V = null;
11267
+ } catch (Z) {
11268
+ var q = Z.stack, H = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), X = null;
11269
11269
  do {
11270
- var X = Q.exec(k);
11271
- X != null && (V = X);
11272
- } while (X != null);
11273
- return V[1];
11270
+ var Y = H.exec(q);
11271
+ Y != null && (X = Y);
11272
+ } while (Y != null);
11273
+ return X[1];
11274
11274
  }
11275
11275
  }
11276
- var H = null;
11276
+ var U = null;
11277
11277
  Object.defineProperty(B, "document", {
11278
11278
  value: {
11279
11279
  get currentScript() {
11280
- return H == null && (H = { src: J() }), H;
11280
+ return U == null && (U = { src: J() }), U;
11281
11281
  }
11282
11282
  }
11283
11283
  });
11284
- }(), B.dartDeferredLibraryLoader = function(J, H, k) {
11284
+ }(), B.dartDeferredLibraryLoader = function(J, U, q) {
11285
11285
  try {
11286
- load(J), H();
11287
- } catch (Q) {
11288
- k(Q);
11286
+ load(J), U();
11287
+ } catch (H) {
11288
+ q(H);
11289
11289
  }
11290
11290
  };
11291
11291
  }
11292
11292
  (function() {
11293
- function H(e, n) {
11293
+ function U(e, n) {
11294
11294
  for (var i = Object.keys(e), a = 0; a < i.length; a++) {
11295
11295
  var s = i[a];
11296
11296
  n[s] = e[s];
11297
11297
  }
11298
11298
  }
11299
- function k(e, n) {
11299
+ function q(e, n) {
11300
11300
  for (var i = Object.keys(e), a = 0; a < i.length; a++) {
11301
11301
  var s = i[a];
11302
11302
  n.hasOwnProperty(s) || (n[s] = e[s]);
11303
11303
  }
11304
11304
  }
11305
- function Q(e, n) {
11305
+ function H(e, n) {
11306
11306
  Object.assign(n, e);
11307
11307
  }
11308
- var V = function() {
11308
+ var X = function() {
11309
11309
  var e = function() {
11310
11310
  };
11311
11311
  e.prototype = { p: {} };
@@ -11324,27 +11324,27 @@ var Ye = Ve, Ae = {};
11324
11324
  }
11325
11325
  return !1;
11326
11326
  }();
11327
- function X(e, n) {
11327
+ function Y(e, n) {
11328
11328
  if (e.prototype.constructor = e, e.prototype["$is" + e.name] = e, n != null) {
11329
- if (V) {
11329
+ if (X) {
11330
11330
  e.prototype.__proto__ = n.prototype;
11331
11331
  return;
11332
11332
  }
11333
11333
  var i = Object.create(n.prototype);
11334
- H(e.prototype, i), e.prototype = i;
11334
+ U(e.prototype, i), e.prototype = i;
11335
11335
  }
11336
11336
  }
11337
- function r0(e, n) {
11337
+ function Z(e, n) {
11338
11338
  for (var i = 0; i < n.length; i++)
11339
- X(n[i], e);
11339
+ Y(n[i], e);
11340
11340
  }
11341
- function z(e, n) {
11342
- Q(n.prototype, e.prototype), e.prototype.constructor = e;
11341
+ function G(e, n) {
11342
+ H(n.prototype, e.prototype), e.prototype.constructor = e;
11343
11343
  }
11344
11344
  function K(e, n) {
11345
- k(n.prototype, e.prototype), e.prototype.constructor = e;
11345
+ q(n.prototype, e.prototype), e.prototype.constructor = e;
11346
11346
  }
11347
- function q(e, n, i, a) {
11347
+ function Q(e, n, i, a) {
11348
11348
  var s = e;
11349
11349
  e[n] = s, e[i] = function() {
11350
11350
  e[i] = function() {
@@ -11361,7 +11361,7 @@ var Ye = Ve, Ae = {};
11361
11361
  return o;
11362
11362
  };
11363
11363
  }
11364
- function Z(e, n, i, a) {
11364
+ function e0(e, n, i, a) {
11365
11365
  var s = e;
11366
11366
  e[n] = s, e[i] = function() {
11367
11367
  return e[n] === s && (e[n] = a()), e[i] = function() {
@@ -11400,18 +11400,18 @@ var Ye = Ve, Ae = {};
11400
11400
  return i === null && (i = u.closureFromTearOff(n)), new i(this, null);
11401
11401
  };
11402
11402
  }
11403
- function Y(e) {
11403
+ function V(e) {
11404
11404
  var n = null;
11405
11405
  return function() {
11406
11406
  return n === null && (n = u.closureFromTearOff(e).prototype), n;
11407
11407
  };
11408
11408
  }
11409
- var G = 0;
11409
+ var z = 0;
11410
11410
  function i0(e, n, i, a, s, o, l, D, d, c) {
11411
- return typeof D == "number" && (D += G), { co: e, iS: n, iI: i, rC: a, dV: s, cs: o, fs: l, fT: D, aI: d || 0, nDA: c };
11411
+ return typeof D == "number" && (D += z), { co: e, iS: n, iI: i, rC: a, dV: s, cs: o, fs: l, fT: D, aI: d || 0, nDA: c };
11412
11412
  }
11413
- function t0(e, n, i, a, s, o, l, D) {
11414
- var d = i0(e, !0, !1, i, a, s, o, l, D, !1), c = Y(d);
11413
+ function r0(e, n, i, a, s, o, l, D) {
11414
+ var d = i0(e, !0, !1, i, a, s, o, l, D, !1), c = V(d);
11415
11415
  e[n] = c;
11416
11416
  }
11417
11417
  function a0(e, n, i, a, s, o, l, D, d, c) {
@@ -11425,7 +11425,7 @@ var Ye = Ve, Ae = {};
11425
11425
  T.interceptorsByTag = e;
11426
11426
  return;
11427
11427
  }
11428
- H(e, n);
11428
+ U(e, n);
11429
11429
  }
11430
11430
  function n0(e) {
11431
11431
  var n = T.leafTags;
@@ -11433,14 +11433,14 @@ var Ye = Ve, Ae = {};
11433
11433
  T.leafTags = e;
11434
11434
  return;
11435
11435
  }
11436
- H(e, n);
11436
+ U(e, n);
11437
11437
  }
11438
11438
  function D0(e) {
11439
11439
  var n = T.types, i = n.length;
11440
11440
  return n.push.apply(n, e), i;
11441
11441
  }
11442
- function e0(e, n) {
11443
- return H(n, e), e;
11442
+ function t0(e, n) {
11443
+ return U(n, e), e;
11444
11444
  }
11445
11445
  var t = function() {
11446
11446
  var e = function(i, a, s, o, l) {
@@ -11449,10 +11449,10 @@ var Ye = Ve, Ae = {};
11449
11449
  };
11450
11450
  }, n = function(i, a, s, o) {
11451
11451
  return function(l, D, d, c) {
11452
- return t0(l, D, i, a, s, [d], c, o);
11452
+ return r0(l, D, i, a, s, [d], c, o);
11453
11453
  };
11454
11454
  };
11455
- return { inherit: X, inheritMany: r0, mixin: z, mixinHard: K, installStaticTearOff: t0, installInstanceTearOff: a0, _instance_0u: e(0, 0, null, ["call$0"], 0), _instance_1u: e(0, 1, null, ["call$1"], 0), _instance_2u: e(0, 2, null, ["call$2"], 0), _instance_0i: e(1, 0, null, ["call$0"], 0), _instance_1i: e(1, 1, null, ["call$1"], 0), _instance_2i: e(1, 2, null, ["call$2"], 0), _static_0: n(0, null, ["call$0"], 0), _static_1: n(1, null, ["call$1"], 0), _static_2: n(2, null, ["call$2"], 0), makeConstList: s0, lazy: Z, lazyFinal: u0, lazyOld: q, updateHolder: e0, convertToFastObject: l0, updateTypes: D0, setOrUpdateInterceptorsByTag: W, setOrUpdateLeafTags: n0 };
11455
+ return { inherit: Y, inheritMany: Z, mixin: G, mixinHard: K, installStaticTearOff: r0, installInstanceTearOff: a0, _instance_0u: e(0, 0, null, ["call$0"], 0), _instance_1u: e(0, 1, null, ["call$1"], 0), _instance_2u: e(0, 2, null, ["call$2"], 0), _instance_0i: e(1, 0, null, ["call$0"], 0), _instance_1i: e(1, 1, null, ["call$1"], 0), _instance_2i: e(1, 2, null, ["call$2"], 0), _static_0: n(0, null, ["call$0"], 0), _static_1: n(1, null, ["call$1"], 0), _static_2: n(2, null, ["call$2"], 0), makeConstList: s0, lazy: e0, lazyFinal: u0, lazyOld: Q, updateHolder: t0, convertToFastObject: l0, updateTypes: D0, setOrUpdateInterceptorsByTag: W, setOrUpdateLeafTags: n0 };
11456
11456
  }(), u = {
11457
11457
  JS_CONST: function() {
11458
11458
  },
@@ -11502,8 +11502,8 @@ var Ye = Ve, Ae = {};
11502
11502
  }
11503
11503
  },
11504
11504
  Sort__dualPivotQuicksort(e, n, i, a) {
11505
- var s, o, l, D, d, c, p, y, m, g, h = $.JSInt_methods._tdivFast$1(i - n + 1, 6), E = n + h, C = i - h, F = $.JSInt_methods._tdivFast$1(n + i, 2), M = F - h, x = F + h, R = _.getInterceptor$asx(e), L = R.$index(e, E), w = R.$index(e, M), v = R.$index(e, F), U = R.$index(e, x), j = R.$index(e, C);
11506
- if (a.call$2(L, w) > 0 && (s = w, w = L, L = s), a.call$2(U, j) > 0 && (s = j, j = U, U = s), a.call$2(L, v) > 0 && (s = v, v = L, L = s), a.call$2(w, v) > 0 && (s = v, v = w, w = s), a.call$2(L, U) > 0 && (s = U, U = L, L = s), a.call$2(v, U) > 0 && (s = U, U = v, v = s), a.call$2(w, j) > 0 && (s = j, j = w, w = s), a.call$2(w, v) > 0 && (s = v, v = w, w = s), a.call$2(U, j) > 0 && (s = j, j = U, U = s), R.$indexSet(e, E, L), R.$indexSet(e, F, v), R.$indexSet(e, C, j), R.$indexSet(e, M, R.$index(e, n)), R.$indexSet(e, x, R.$index(e, i)), o = n + 1, l = i - 1, _.$eq$(a.call$2(w, U), 0)) {
11505
+ var s, o, l, D, d, c, p, y, m, g, h = $.JSInt_methods._tdivFast$1(i - n + 1, 6), E = n + h, C = i - h, F = $.JSInt_methods._tdivFast$1(n + i, 2), M = F - h, x = F + h, R = _.getInterceptor$asx(e), L = R.$index(e, E), w = R.$index(e, M), v = R.$index(e, F), k = R.$index(e, x), j = R.$index(e, C);
11506
+ if (a.call$2(L, w) > 0 && (s = w, w = L, L = s), a.call$2(k, j) > 0 && (s = j, j = k, k = s), a.call$2(L, v) > 0 && (s = v, v = L, L = s), a.call$2(w, v) > 0 && (s = v, v = w, w = s), a.call$2(L, k) > 0 && (s = k, k = L, L = s), a.call$2(v, k) > 0 && (s = k, k = v, v = s), a.call$2(w, j) > 0 && (s = j, j = w, w = s), a.call$2(w, v) > 0 && (s = v, v = w, w = s), a.call$2(k, j) > 0 && (s = j, j = k, k = s), R.$indexSet(e, E, L), R.$indexSet(e, F, v), R.$indexSet(e, C, j), R.$indexSet(e, M, R.$index(e, n)), R.$indexSet(e, x, R.$index(e, i)), o = n + 1, l = i - 1, _.$eq$(a.call$2(w, k), 0)) {
11507
11507
  for (D = o; D <= l; ++D)
11508
11508
  if (d = R.$index(e, D), c = a.call$2(d, w), c !== 0)
11509
11509
  if (c < 0)
@@ -11525,9 +11525,9 @@ var Ye = Ve, Ae = {};
11525
11525
  for (D = o; D <= l; ++D)
11526
11526
  if (d = R.$index(e, D), a.call$2(d, w) < 0)
11527
11527
  D !== o && (R.$indexSet(e, D, R.$index(e, o)), R.$indexSet(e, o, d)), ++o;
11528
- else if (a.call$2(d, U) > 0)
11528
+ else if (a.call$2(d, k) > 0)
11529
11529
  for (; ; )
11530
- if (a.call$2(R.$index(e, l), U) > 0) {
11530
+ if (a.call$2(R.$index(e, l), k) > 0) {
11531
11531
  if (--l, l < D)
11532
11532
  break;
11533
11533
  continue;
@@ -11537,18 +11537,18 @@ var Ye = Ve, Ae = {};
11537
11537
  }
11538
11538
  m = !1;
11539
11539
  }
11540
- if (g = o - 1, R.$indexSet(e, n, R.$index(e, g)), R.$indexSet(e, g, w), g = l + 1, R.$indexSet(e, i, R.$index(e, g)), R.$indexSet(e, g, U), u.Sort__doSort(e, n, o - 2, a), u.Sort__doSort(e, l + 2, i, a), !m)
11540
+ if (g = o - 1, R.$indexSet(e, n, R.$index(e, g)), R.$indexSet(e, g, w), g = l + 1, R.$indexSet(e, i, R.$index(e, g)), R.$indexSet(e, g, k), u.Sort__doSort(e, n, o - 2, a), u.Sort__doSort(e, l + 2, i, a), !m)
11541
11541
  if (o < E && l > C) {
11542
11542
  for (; _.$eq$(a.call$2(R.$index(e, o), w), 0); )
11543
11543
  ++o;
11544
- for (; _.$eq$(a.call$2(R.$index(e, l), U), 0); )
11544
+ for (; _.$eq$(a.call$2(R.$index(e, l), k), 0); )
11545
11545
  --l;
11546
11546
  for (D = o; D <= l; ++D)
11547
11547
  if (d = R.$index(e, D), a.call$2(d, w) === 0)
11548
11548
  D !== o && (R.$indexSet(e, D, R.$index(e, o)), R.$indexSet(e, o, d)), ++o;
11549
- else if (a.call$2(d, U) === 0)
11549
+ else if (a.call$2(d, k) === 0)
11550
11550
  for (; ; )
11551
- if (a.call$2(R.$index(e, l), U) === 0) {
11551
+ if (a.call$2(R.$index(e, l), k) === 0) {
11552
11552
  if (--l, l < D)
11553
11553
  break;
11554
11554
  continue;
@@ -11913,8 +11913,8 @@ var Ye = Ve, Ae = {};
11913
11913
  var n, i, a, s, o, l, D, d, c, p, y = e.co, m = e.iS, g = e.iI, h = e.nDA, E = e.aI, C = e.fs, F = e.cs, M = C[0], x = F[0], R = y[M], L = e.fT;
11914
11914
  for (L.toString, n = Object.create(m ? new u.StaticClosure().constructor.prototype : new u.BoundClosure(null, null).constructor.prototype), n.$initialize = n.constructor, m ? i = function() {
11915
11915
  this.$initialize();
11916
- } : i = function(v, U) {
11917
- this.$initialize(v, U);
11916
+ } : i = function(v, k) {
11917
+ this.$initialize(v, k);
11918
11918
  }, n.constructor = i, i.prototype = n, n.$_name = M, n.$_target = R, a = !m, a ? s = u.Closure_forwardCallTo(M, R, g, h) : (n.$static_name = M, s = R), n.$signature = u.Closure__computeSignatureFunctionNewRti(L, m, g), n[x] = s, o = s, l = 1; l < C.length; ++l)
11919
11919
  D = C[l], typeof D == "string" ? (d = y[D], c = D, D = d) : c = "", p = F[l], p != null && (a && (D = u.Closure_forwardCallTo(c, D, g, h)), n[p] = D), l === E && (o = D);
11920
11920
  return n["call*"] = o, n.$requiredArgCount = e.rC, n.$defaultValues = e.dV, i;
@@ -12650,24 +12650,24 @@ var Ye = Ve, Ae = {};
12650
12650
  return o + "})";
12651
12651
  },
12652
12652
  _functionRtiToString(e, n, i) {
12653
- var a, s, o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R, L, w, v, U = ", ";
12653
+ var a, s, o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R, L, w, v, k = ", ";
12654
12654
  if (i != null) {
12655
12655
  for (a = i.length, n == null ? (n = u._setArrayType([], r.JSArray_String), s = null) : s = n.length, o = n.length, l = a; l > 0; --l)
12656
12656
  n.push("T" + (o + l));
12657
- for (D = r.nullable_Object, d = r.legacy_Object, c = "<", p = "", l = 0; l < a; ++l, p = U)
12657
+ for (D = r.nullable_Object, d = r.legacy_Object, c = "<", p = "", l = 0; l < a; ++l, p = k)
12658
12658
  c = $.JSString_methods.$add(c + p, n[n.length - 1 - l]), y = i[l], m = y._kind, m === 2 || m === 3 || m === 4 || m === 5 || y === D ? g = !0 : y !== d ? g = !1 : g = !0, g || (c += " extends " + u._rtiToString(y, n));
12659
12659
  c += ">";
12660
12660
  } else
12661
12661
  c = "", s = null;
12662
- for (D = e._primary, h = e._rest, E = h._requiredPositional, C = E.length, F = h._optionalPositional, M = F.length, x = h._named, R = x.length, L = u._rtiToString(D, n), w = "", v = "", l = 0; l < C; ++l, v = U)
12662
+ for (D = e._primary, h = e._rest, E = h._requiredPositional, C = E.length, F = h._optionalPositional, M = F.length, x = h._named, R = x.length, L = u._rtiToString(D, n), w = "", v = "", l = 0; l < C; ++l, v = k)
12663
12663
  w += v + u._rtiToString(E[l], n);
12664
12664
  if (M > 0) {
12665
- for (w += v + "[", v = "", l = 0; l < M; ++l, v = U)
12665
+ for (w += v + "[", v = "", l = 0; l < M; ++l, v = k)
12666
12666
  w += v + u._rtiToString(F[l], n);
12667
12667
  w += "]";
12668
12668
  }
12669
12669
  if (R > 0) {
12670
- for (w += v + "{", v = "", l = 0; l < R; l += 3, v = U)
12670
+ for (w += v + "{", v = "", l = 0; l < R; l += 3, v = k)
12671
12671
  w += v, x[l + 1] && (w += "required "), w += u._rtiToString(x[l + 2], n) + " " + x[l];
12672
12672
  w += "}";
12673
12673
  }
@@ -13029,7 +13029,7 @@ var Ye = Ve, Ae = {};
13029
13029
  return d === 12 ? n === r.JavaScriptFunction ? !0 : o ? !1 : u._isFunctionSubtype(e, n, i, a, s) : l === 9 ? d !== 9 ? !1 : u._isInterfaceSubtype(e, n, i, a, s) : (o = l === 11, o && a === r.Record ? !0 : o && d === 11 ? u._isRecordSubtype(e, n, i, a, s) : !1);
13030
13030
  },
13031
13031
  _isFunctionSubtype(e, n, i, a, s) {
13032
- var o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R, L, w, v, U, j, f0;
13032
+ var o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R, L, w, v, k, j, f0;
13033
13033
  if (!u._isSubtype(e, n._primary, i, a._primary, s) || (o = n._rest, l = a._rest, D = o._requiredPositional, d = l._requiredPositional, c = D.length, p = d.length, c > p) || (y = p - c, m = o._optionalPositional, g = l._optionalPositional, h = m.length, E = g.length, c + h < p + E))
13034
13034
  return !1;
13035
13035
  for (C = 0; C < c; ++C)
@@ -13042,10 +13042,10 @@ var Ye = Ve, Ae = {};
13042
13042
  if (F = m[y + C], !u._isSubtype(e, g[C], s, F, i))
13043
13043
  return !1;
13044
13044
  for (M = o._named, x = l._named, R = M.length, L = x.length, w = 0, v = 0; v < L; v += 3)
13045
- for (U = x[v]; ; ) {
13046
- if (w >= R || (j = M[w], w += 3, U < j))
13045
+ for (k = x[v]; ; ) {
13046
+ if (w >= R || (j = M[w], w += 3, k < j))
13047
13047
  return !1;
13048
- if (f0 = M[w - 2], j < U) {
13048
+ if (f0 = M[w - 2], j < k) {
13049
13049
  if (f0)
13050
13050
  return !1;
13051
13051
  continue;
@@ -14493,7 +14493,7 @@ var Ye = Ve, Ae = {};
14493
14493
  return e instanceof u.BaseXYDatasourceConfigModel && e.isCumulative === !0 ? i = !0 : i = e instanceof u.ScorecardDatasourceConfigModel && e.isCumulative, i ? (i = r.XYDatasetModel, u.List_List$of(u.ListExtensions_mapIndexed(n, new u.accumulate_closure(e), i, i), !0, i)) : n;
14494
14494
  },
14495
14495
  formatBaseXYChartData(e, n, i, a, s) {
14496
- var o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R, L, w, v, U, j, f0, g0, o0, h0, I0, x0, L0, T0, F0, O0, M0, N0 = null;
14496
+ var o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R, L, w, v, k, j, f0, g0, o0, h0, I0, x0, L0, T0, F0, O0, M0, N0 = null;
14497
14497
  if (i.length === 0)
14498
14498
  return o = u._setArrayType([], r.JSArray_String), l = u._setArrayType([], r.JSArray_XYDatasetModel), D = u.IterableExtension_get_firstOrNull(i), new u.BaseXYChartDataModel(e, o, l, new u.DateComparison(D == null ? N0 : D.dateRange, N0));
14499
14499
  for (d = $.JSArray_methods.get$first(i).columns, o = u._arrayInstanceType(d), l = o._eval$1("WhereIterable<1>"), c = u.List_List$of(new u.WhereIterable(d, new u.formatBaseXYChartData_closure(), l), !0, l._eval$1("Iterable.E")), l = u._arrayInstanceType(c)._eval$1("WhereIterable<1>"), p = u.List_List$of(new u.WhereIterable(c, new u.formatBaseXYChartData_closure0(), l), !0, l._eval$1("Iterable.E")), l = r.QueryResponse, y = u._formatRows(u.ListExtension_sublistOrEmpty(i, 0, 1, l), s), m = u._formatRows(u.ListExtension_sublistOrEmpty(i, 1, 2, l), s), m.length !== 0 && (o = o._eval$1("MappedListIterable<1,ComparisonDataColumn>"), g = u.List_List$of(new u.MappedListIterable(d, new u.formatBaseXYChartData_closure1(), o), !0, o._eval$1("ListIterable.E")), h = u.compare(new u.ComparisonData(g, m), new u.ComparisonData(g, y)), m = h.comparison, y = h.main), o = r.String, l = u.LinkedHashMap_LinkedHashMap$_empty(o, r.bool), D = p.length, E = 0; C = p.length, E < C; p.length === D || (0, u.throwConcurrentModificationError)(p), ++E)
@@ -14511,9 +14511,9 @@ var Ye = Ve, Ae = {};
14511
14511
  C.$indexSet(0, d[R].id, R);
14512
14512
  C = new u.formatBaseXYChartData_expandRowsByMetric($.JSArray_methods.indexWhere$1(d, new u.formatBaseXYChartData_closure4(n)), p, C, D, M, x), y = C.call$1(y), m.length !== 0 && (m = C.call$1(m));
14513
14513
  }
14514
- for (C = r.JSArray_String, v = u._setArrayType([], C), U = u._setArrayType([], C), C = y.length, E = 0; E < y.length; y.length === C || (0, u.throwConcurrentModificationError)(y), ++E)
14515
- j = y[E], L = _.getInterceptor$asx(j), v.push(_.toString$0$(L.$index(j, 0))), U.push(_.toString$0$(L.$index(j, 1)));
14516
- for (C = u.LinkedHashSet_LinkedHashSet$from(v, o), v = u.List_List$of(C, !0, u._instanceType(C)._precomputed1), o = u.LinkedHashSet_LinkedHashSet$from(U, o), f0 = u.List_List$of(o, !0, u._instanceType(o)._precomputed1), g0 = u._setArrayType([], r.JSArray_XYDatasetModel), o = f0.length, C = _.getInterceptor$asx(m), L = r.JSArray_nullable_num, E = 0; E < f0.length; f0.length === o || (0, u.throwConcurrentModificationError)(f0), ++E) {
14514
+ for (C = r.JSArray_String, v = u._setArrayType([], C), k = u._setArrayType([], C), C = y.length, E = 0; E < y.length; y.length === C || (0, u.throwConcurrentModificationError)(y), ++E)
14515
+ j = y[E], L = _.getInterceptor$asx(j), v.push(_.toString$0$(L.$index(j, 0))), k.push(_.toString$0$(L.$index(j, 1)));
14516
+ for (C = u.LinkedHashSet_LinkedHashSet$from(v, o), v = u.List_List$of(C, !0, u._instanceType(C)._precomputed1), o = u.LinkedHashSet_LinkedHashSet$from(k, o), f0 = u.List_List$of(o, !0, u._instanceType(o)._precomputed1), g0 = u._setArrayType([], r.JSArray_XYDatasetModel), o = f0.length, C = _.getInterceptor$asx(m), L = r.JSArray_nullable_num, E = 0; E < f0.length; f0.length === o || (0, u.throwConcurrentModificationError)(f0), ++E) {
14517
14517
  for (o0 = f0[E], h0 = u._setArrayType([], L), I0 = u._setArrayType([], L), x0 = x.$index(0, o0), w = l.$index(0, x0 ?? o0), L0 = w === !0, w = M.$index(0, o0), T0 = w ?? D.$index(0, o0), T0 == null && (T0 = o0), w = v.length, F0 = 0; F0 < v.length; v.length === w || (0, u.throwConcurrentModificationError)(v), ++F0)
14518
14518
  O0 = v[F0], M0 = u.IterableExtension_firstWhereOrNull(y, new u.formatBaseXYChartData_closure5(O0, o0)), h0.push(u._parseMetricValue(M0 == null ? N0 : u.ListExtension_elementAtOrNull(M0, 2), L0)), C.get$length(m) !== 0 && (M0 = u.IterableExtension_firstWhereOrNull(m, new u.formatBaseXYChartData_closure6(O0, o0)), I0.push(u._parseMetricValue(M0 == null ? N0 : u.ListExtension_elementAtOrNull(M0, 2), L0)));
14519
14519
  g0.push(new u.XYDatasetModel(T0, !1, h0)), I0.length !== 0 && g0.push(new u.XYDatasetModel(T0, !0, I0));
@@ -14725,16 +14725,16 @@ var Ye = Ve, Ae = {};
14725
14725
  return s = h.mainResponse, c = s.rows, p = u._arrayInstanceType(c)._eval$1("MappedListIterable<1,TableRowModel>"), s.copyWith$1$rows(u.List_List$of(new u.MappedListIterable(c, new u._formatTableData_closure3(), p), !0, p._eval$1("ListIterable.E")));
14726
14726
  },
14727
14727
  formatTableChartData(e, n, i, a) {
14728
- var s, o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R, L, w, v, U = {};
14728
+ var s, o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R, L, w, v, k = {};
14729
14729
  if (n.length === 0)
14730
14730
  return new u.TableDataModel(u._setArrayType([], r.JSArray_TableRowModel), u._setArrayType([], r.JSArray_TableColumnModel));
14731
- for (e.isBlend && (s = u.List_List$of(e.get$dimensions(), !0, r.QueryRequestDimension), $.JSArray_methods.addAll$1(s, $.JSArray_methods.fold$2(e.get$joinDatasources(), u._setArrayType([], r.JSArray_QueryRequestDimension), new u.formatTableChartData_closure())), o = u.List_List$of(e.get$metrics(), !0, r.QueryRequestMetric), $.JSArray_methods.addAll$1(o, $.JSArray_methods.fold$2(e.get$joinDatasources(), u._setArrayType([], r.JSArray_QueryRequestMetric), new u.formatTableChartData_closure0())), l = u._setArrayType([], r.JSArray_JoinDatasourceConfig), D = e.rowsPerPage, d = e.get$columnIds(), c = e.get$rowIds(), p = e.get$drillDimension(), e = u.TableDatasourceConfigModel$(d, e.columnsWidth, s, p, e.filters, !0, e.isComparable, e.isDrillable, l, e.limit, o, e.periodType, e.rollup, e.rollupPosition, c, D, e.schemaNames, e.showGrandTotal, e.sorts, e.timezone)), y = e.get$joinDatasources().length + 1, s = r.QueryResponse, m = u._formatTableData(e, u.ListExtension_sublistOrEmpty(n, 0, y, s), i, a), g = U.comparison = u._formatTableData(e, u.ListExtension_sublistOrEmpty(n, y, y * 2, s), i, a), s = g.rows, s.length !== 0 && (o = m.rows, l = u._arrayInstanceType(o)._eval$1("MappedListIterable<1,List<@>>"), l = u.List_List$of(new u.MappedListIterable(o, new u.formatTableChartData_closure1(), l), !0, l._eval$1("ListIterable.E")), D = m.columns, d = u._arrayInstanceType(D)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), d = u.List_List$of(new u.MappedListIterable(D, new u.formatTableChartData_closure2(), d), !0, d._eval$1("ListIterable.E")), D = u._arrayInstanceType(s)._eval$1("MappedListIterable<1,List<@>>"), D = u.List_List$of(new u.MappedListIterable(s, new u.formatTableChartData_closure3(), D), !0, D._eval$1("ListIterable.E")), c = g.columns, p = u._arrayInstanceType(c)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), h = u.compare(new u.ComparisonData(u.List_List$of(new u.MappedListIterable(c, new u.formatTableChartData_closure4(), p), !0, p._eval$1("ListIterable.E")), D), new u.ComparisonData(d, l)), l = r.TableRowModel, o = u.ListExtensions_mapIndexed(o, new u.formatTableChartData_closure5(h), l, l), m = m.copyWith$1$rows(u.List_List$of(o, !0, o.$ti._eval$1("Iterable.E"))), l = u.ListExtensions_mapIndexed(s, new u.formatTableChartData_closure6(h), l, l), U.comparison = g.copyWith$1$rows(u.List_List$of(l, !0, l.$ti._eval$1("Iterable.E")))), s = m.columns, o = u._arrayInstanceType(s)._eval$1("WhereIterable<1>"), E = u.List_List$of(new u.WhereIterable(s, new u.formatTableChartData_closure7(), o), !0, o._eval$1("Iterable.E")), o = r.String, l = r.int, C = u.LinkedHashMap_LinkedHashMap$_empty(o, l), F = 0; F < s.length; ++F)
14731
+ for (e.isBlend && (s = u.List_List$of(e.get$dimensions(), !0, r.QueryRequestDimension), $.JSArray_methods.addAll$1(s, $.JSArray_methods.fold$2(e.get$joinDatasources(), u._setArrayType([], r.JSArray_QueryRequestDimension), new u.formatTableChartData_closure())), o = u.List_List$of(e.get$metrics(), !0, r.QueryRequestMetric), $.JSArray_methods.addAll$1(o, $.JSArray_methods.fold$2(e.get$joinDatasources(), u._setArrayType([], r.JSArray_QueryRequestMetric), new u.formatTableChartData_closure0())), l = u._setArrayType([], r.JSArray_JoinDatasourceConfig), D = e.rowsPerPage, d = e.get$columnIds(), c = e.get$rowIds(), p = e.get$drillDimension(), e = u.TableDatasourceConfigModel$(d, e.columnsWidth, s, p, e.filters, !0, e.isComparable, e.isDrillable, l, e.limit, o, e.periodType, e.rollup, e.rollupPosition, c, D, e.schemaNames, e.showGrandTotal, e.sorts, e.timezone)), y = e.get$joinDatasources().length + 1, s = r.QueryResponse, m = u._formatTableData(e, u.ListExtension_sublistOrEmpty(n, 0, y, s), i, a), g = k.comparison = u._formatTableData(e, u.ListExtension_sublistOrEmpty(n, y, y * 2, s), i, a), s = g.rows, s.length !== 0 && (o = m.rows, l = u._arrayInstanceType(o)._eval$1("MappedListIterable<1,List<@>>"), l = u.List_List$of(new u.MappedListIterable(o, new u.formatTableChartData_closure1(), l), !0, l._eval$1("ListIterable.E")), D = m.columns, d = u._arrayInstanceType(D)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), d = u.List_List$of(new u.MappedListIterable(D, new u.formatTableChartData_closure2(), d), !0, d._eval$1("ListIterable.E")), D = u._arrayInstanceType(s)._eval$1("MappedListIterable<1,List<@>>"), D = u.List_List$of(new u.MappedListIterable(s, new u.formatTableChartData_closure3(), D), !0, D._eval$1("ListIterable.E")), c = g.columns, p = u._arrayInstanceType(c)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), h = u.compare(new u.ComparisonData(u.List_List$of(new u.MappedListIterable(c, new u.formatTableChartData_closure4(), p), !0, p._eval$1("ListIterable.E")), D), new u.ComparisonData(d, l)), l = r.TableRowModel, o = u.ListExtensions_mapIndexed(o, new u.formatTableChartData_closure5(h), l, l), m = m.copyWith$1$rows(u.List_List$of(o, !0, o.$ti._eval$1("Iterable.E"))), l = u.ListExtensions_mapIndexed(s, new u.formatTableChartData_closure6(h), l, l), k.comparison = g.copyWith$1$rows(u.List_List$of(l, !0, l.$ti._eval$1("Iterable.E")))), s = m.columns, o = u._arrayInstanceType(s)._eval$1("WhereIterable<1>"), E = u.List_List$of(new u.WhereIterable(s, new u.formatTableChartData_closure7(), o), !0, o._eval$1("Iterable.E")), o = r.String, l = r.int, C = u.LinkedHashMap_LinkedHashMap$_empty(o, l), F = 0; F < s.length; ++F)
14732
14732
  M = s[F], C.$indexSet(0, M.key + "_" + M.hide, F);
14733
- for (x = u.LinkedHashMap_LinkedHashMap$_empty(o, l), F = 0; s = U.comparison.columns, F < s.length; ++F)
14733
+ for (x = u.LinkedHashMap_LinkedHashMap$_empty(o, l), F = 0; s = k.comparison.columns, F < s.length; ++F)
14734
14734
  M = s[F], x.$indexSet(0, M.key + "_" + M.hide, F);
14735
14735
  for (R = u._setArrayType([], r.JSArray__ColumnMapping), s = E.length, L = 0; L < s; ++L)
14736
14736
  M = E[L], o = M.key, w = o + "_" + M.hide, o = u.stringReplaceAllUnchecked(o, ".", "_"), l = C.$index(0, w), l == null && (l = -1), D = x.$index(0, w), R.push(new u._ColumnMapping(M, o, l, D ?? -1));
14737
- return s = r.MappedListIterable__ColumnMapping_TableColumnModel, v = u.List_List$of(new u.MappedListIterable(R, new u.formatTableChartData_closure8(), s), !0, s._eval$1("ListIterable.E")), s = U.comparison.rows.length, o = r.TableRowModel, o = u.ListExtensions_mapIndexed(m.rows, new u.formatTableChartData_closure9(U, R, i, a, s !== 0, s), o, o), m.copyWith$2$columns$rows(v, u.List_List$of(o, !0, o.$ti._eval$1("Iterable.E")));
14737
+ return s = r.MappedListIterable__ColumnMapping_TableColumnModel, v = u.List_List$of(new u.MappedListIterable(R, new u.formatTableChartData_closure8(), s), !0, s._eval$1("ListIterable.E")), s = k.comparison.rows.length, o = r.TableRowModel, o = u.ListExtensions_mapIndexed(m.rows, new u.formatTableChartData_closure9(k, R, i, a, s !== 0, s), o, o), m.copyWith$2$columns$rows(v, u.List_List$of(o, !0, o.$ti._eval$1("Iterable.E")));
14738
14738
  },
14739
14739
  _formatTableResponse_closure: function(n) {
14740
14740
  this.config = n;
@@ -18980,18 +18980,18 @@ Arguments: [` + d + "]";
18980
18980
  $signature: 0
18981
18981
  }, u._formatTableResponse_closure5.prototype = {
18982
18982
  call$2(e, n) {
18983
- var i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R, L, w = null, v = r.JSArray_List_dynamic, U = u._setArrayType([[]], v), j = u._setArrayType([[]], v);
18983
+ var i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R, L, w = null, v = r.JSArray_List_dynamic, k = u._setArrayType([[]], v), j = u._setArrayType([[]], v);
18984
18984
  for (v = this.headers, i = n.value, a = r.dynamic, s = r.JSArray_String, o = r.String, l = this.metricColumns, D = 0; D < v.length; ++D)
18985
18985
  if (d = v[D], c = _.getInterceptor$ax(d), p = c.map$1$1(d, new u._formatTableResponse__closure4(), o).join$1(0, "|"), u.IterableExtension_firstWhereOrNull(d, new u._formatTableResponse__closure5()) != null)
18986
- for (y = c.firstWhere$1(d, new u._formatTableResponse__closure6()), m = c.fold$2(d, !0, new u._formatTableResponse__closure7(n)), c = U.length, g = y.type, h = y.columnValue, E = 0; E < U.length; U.length === c || (0, u.throwConcurrentModificationError)(U), ++E)
18987
- C = U[E], m ? (F = i.$index(0, h), M = C.length, D >= M && $.JSArray_methods.addAll$1(C, u.List_List$filled(D - M + 1, w, !1, a)), C[D] = F) : (F = g == null ? w : u.DataTypeExtension_toData(g, w), M = C.length, D >= M && $.JSArray_methods.addAll$1(C, u.List_List$filled(D - M + 1, w, !1, a)), C[D] = F);
18986
+ for (y = c.firstWhere$1(d, new u._formatTableResponse__closure6()), m = c.fold$2(d, !0, new u._formatTableResponse__closure7(n)), c = k.length, g = y.type, h = y.columnValue, E = 0; E < k.length; k.length === c || (0, u.throwConcurrentModificationError)(k), ++E)
18987
+ C = k[E], m ? (F = i.$index(0, h), M = C.length, D >= M && $.JSArray_methods.addAll$1(C, u.List_List$filled(D - M + 1, w, !1, a)), C[D] = F) : (F = g == null ? w : u.DataTypeExtension_toData(g, w), M = C.length, D >= M && $.JSArray_methods.addAll$1(C, u.List_List$filled(D - M + 1, w, !1, a)), C[D] = F);
18988
18988
  else if ($.JSArray_methods.contains$1(u._setArrayType(["_metric_name", "_metric_value"], s), p))
18989
18989
  for (c = p === "_metric_value", g = p === "_metric_name", x = 0; x < l.length; ++x)
18990
- R = l[x], u.ListExtension_elementAtOrNull(U, x) == null && (U.push(u.List_List$of(U[0], !0, a)), j.push(u.List_List$of(j[0], !0, a))), g ? (h = U[x], F = R.label, M = h.length, D >= M && $.JSArray_methods.addAll$1(h, u.List_List$filled(D - M + 1, w, !1, a)), h[D] = F, j[x].push(F)) : c && (h = U[x], F = i.$index(0, R.id), M = h.length, D >= M && $.JSArray_methods.addAll$1(h, u.List_List$filled(D - M + 1, w, !1, a)), h[D] = F);
18990
+ R = l[x], u.ListExtension_elementAtOrNull(k, x) == null && (k.push(u.List_List$of(k[0], !0, a)), j.push(u.List_List$of(j[0], !0, a))), g ? (h = k[x], F = R.label, M = h.length, D >= M && $.JSArray_methods.addAll$1(h, u.List_List$filled(D - M + 1, w, !1, a)), h[D] = F, j[x].push(F)) : c && (h = k[x], F = i.$index(0, R.id), M = h.length, D >= M && $.JSArray_methods.addAll$1(h, u.List_List$filled(D - M + 1, w, !1, a)), h[D] = F);
18991
18991
  else
18992
- for (L = 0; L < U.length; ++L)
18993
- c = U[L], g = i.$index(0, p), h = c.length, D >= h && $.JSArray_methods.addAll$1(c, u.List_List$filled(D - h + 1, w, !1, a)), c[D] = g, j[L].push(i.$index(0, p));
18994
- return _.addAll$1$ax(e, u.ListExtensions_mapIndexed(U, new u._formatTableResponse__closure8(j, n), r.List_dynamic, r.Map_String_dynamic)), e;
18992
+ for (L = 0; L < k.length; ++L)
18993
+ c = k[L], g = i.$index(0, p), h = c.length, D >= h && $.JSArray_methods.addAll$1(c, u.List_List$filled(D - h + 1, w, !1, a)), c[D] = g, j[L].push(i.$index(0, p));
18994
+ return _.addAll$1$ax(e, u.ListExtensions_mapIndexed(k, new u._formatTableResponse__closure8(j, n), r.List_dynamic, r.Map_String_dynamic)), e;
18995
18995
  },
18996
18996
  $signature: 79
18997
18997
  }, u._formatTableResponse__closure4.prototype = {
@@ -19230,9 +19230,9 @@ Arguments: [` + d + "]";
19230
19230
  $signature: 99
19231
19231
  }, u.formatTableChartData_closure9.prototype = {
19232
19232
  call$2(e, n) {
19233
- var i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R = this, L = [], w = [], v = n.cells, U = _.getInterceptor$asx(v), j = U.get$length(v);
19233
+ var i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R = this, L = [], w = [], v = n.cells, k = _.getInterceptor$asx(v), j = k.get$length(v);
19234
19234
  for (i = R.columnMappings, a = i.length, s = R.hasComparison, o = R.country, l = R.timezone, D = e < R.comparisonRowsLength, d = R._box_0, c = 0; c < i.length; i.length === a || (0, u.throwConcurrentModificationError)(i), ++c)
19235
- p = i[c], y = p.mainIndex, m = y >= 0 && y < j ? U.$index(v, y) : u.ListExtension_elementAtOrNull(v, y), y = p.column, g = y.type, h = g == null, L.push(h ? null : u.DataTypeExtension_toDisplay(g, y.aggregationType, o, y.decimal, y.dimensionOption, y.formatter, !1, y.timeFormatter, l, m)), s && (D ? (E = d.comparison.rows[e].cells, C = _.getInterceptor$asx(E), F = C.get$length(E), M = p.comparisonIndex, x = M >= 0 && M < F ? C.$index(E, M) : u.ListExtension_elementAtOrNull(E, M)) : x = u.ListExtension_elementAtOrNull([], p.comparisonIndex), w.push(h ? null : u.DataTypeExtension_toDisplay(g, y.aggregationType, o, y.decimal, y.dimensionOption, y.formatter, !1, y.timeFormatter, l, x)));
19235
+ p = i[c], y = p.mainIndex, m = y >= 0 && y < j ? k.$index(v, y) : u.ListExtension_elementAtOrNull(v, y), y = p.column, g = y.type, h = g == null, L.push(h ? null : u.DataTypeExtension_toDisplay(g, y.aggregationType, o, y.decimal, y.dimensionOption, y.formatter, !1, y.timeFormatter, l, m)), s && (D ? (E = d.comparison.rows[e].cells, C = _.getInterceptor$asx(E), F = C.get$length(E), M = p.comparisonIndex, x = M >= 0 && M < F ? C.$index(E, M) : u.ListExtension_elementAtOrNull(E, M)) : x = u.ListExtension_elementAtOrNull([], p.comparisonIndex), w.push(h ? null : u.DataTypeExtension_toDisplay(g, y.aggregationType, o, y.decimal, y.dimensionOption, y.formatter, !1, y.timeFormatter, l, x)));
19236
19236
  return n.copyWith$2$cells$comparisonCells(L, w);
19237
19237
  },
19238
19238
  $signature: 7
@@ -19671,8 +19671,8 @@ Arguments: [` + d + "]";
19671
19671
  return a.message;
19672
19672
  }
19673
19673
  }())), n(b, "DateTime__parseFormat", "$get$DateTime__parseFormat", () => u.RegExp_RegExp("^([+-]?\\d{4,6})-?(\\d\\d)-?(\\d\\d)(?:[ T](\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d+))?)?)?( ?[zZ]| ?([-+])(\\d\\d)(?::?(\\d\\d))?)?)?$", !1)), n(b, "_hashSeed", "$get$_hashSeed", () => u.objectHashCode($.Type_Object_xQ6)), n(b, "Endian_host", "$get$Endian_host", () => u.NativeByteData_NativeByteData$view(u.NativeUint16List_NativeUint16List$fromList(u._setArrayType([1], r.JSArray_int)).buffer, 0, null).getInt8(0) === 1 ? $.C_Endian0 : $.C_Endian), n(b, "_clockKey", "$get$_clockKey", () => new u.Object()), n(b, "en_USSymbols", "$get$en_USSymbols", () => new u.DateSymbols("en_US", $.List_BC_AD, $.List_6xs, $.List_qpm, $.List_qpm, $.List_cIc, $.List_cIc, $.List_h8w, $.List_h8w, $.List_wMy, $.List_wMy, $.List_gc6, $.List_gc6, $.List_3US, $.List_Q1_Q2_Q3_Q4, $.List_bJM, $.List_AM_PM)), i(b, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => u.UninitializedLocaleData$("initializeDateFormatting(<locale>)", b.$get$en_USSymbols())), i(b, "dateTimePatterns", "$get$dateTimePatterns", () => u.UninitializedLocaleData$("initializeDateFormatting(<locale>)", $.Map_EQ6TW)), n(b, "asciiZeroCodeUnit", "$get$asciiZeroCodeUnit", () => 48), n(b, "DateFormat__matchers", "$get$DateFormat__matchers", () => u._setArrayType([u.RegExp_RegExp("^'(?:[^']|'')*'", !1), u.RegExp_RegExp("^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|D+|m+|s+|v+|z+|Z+)", !1), u.RegExp_RegExp("^[^'GyMkSEahKHcLQdDmsvzZ]+", !1)], u.findType("JSArray<RegExp>"))), n(b, "_DateFormatQuotedField__twoEscapedQuotes", "$get$_DateFormatQuotedField__twoEscapedQuotes", () => u.RegExp_RegExp("''", !1)), n(b, "asciiDigitMatcher", "$get$asciiDigitMatcher", () => u.RegExp_RegExp("^\\d+", !1)), i(b, "_availableLocales", "$get$_availableLocales", () => {
19674
- var a, s, o = u.EnLocale$($.StartOfWeek_1), l = u.EnLocale$($.StartOfWeek_1), D = u.EnLocale$($.StartOfWeek_1), d = u.EnLocale$($.StartOfWeek_1), c = u.EnLocale$($.StartOfWeek_1), p = u.EnLocale$($.StartOfWeek_2), y = u.EnLocale$($.StartOfWeek_2), m = u.EnLocale$($.StartOfWeek_1), g = u.EnLocale$($.StartOfWeek_1), h = u.EsLocale$($.StartOfWeek_2), E = u.EsLocale$($.StartOfWeek_2), C = u.EsLocale$($.StartOfWeek_1), F = u.FrLocale$($.StartOfWeek_2), M = u.FrLocale$($.StartOfWeek_2), x = u.FrLocale$($.StartOfWeek_1), R = u.ZhCnLocale$($.StartOfWeek_1), L = u.ZhCnLocale$($.StartOfWeek_1), w = u.ZhLocale$($.StartOfWeek_1), v = u.ZhLocale$($.StartOfWeek_1), U = u.DeLocale$($.StartOfWeek_2), j = u.DeLocale$($.StartOfWeek_2), f0 = u.DeLocale$($.StartOfWeek_2), g0 = u.DeLocale$($.StartOfWeek_2), o0 = u.ItLocale$($.StartOfWeek_2), h0 = u.ItLocale$($.StartOfWeek_2), I0 = u.ArLyLocale$(!0, $.StartOfWeek_0), x0 = u.ArLyLocale$(!1, $.StartOfWeek_0), L0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_1), T0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_1), F0 = u.ArSaMaDzKwTnLocale$(!0, $.StartOfWeek_1), O0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_0), M0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_0);
19675
- return u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), a = u.PtLocale$($.StartOfWeek_2), s = u.PtLocale$($.StartOfWeek_1), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.LinkedHashMap_LinkedHashMap$_literal(["en", o, "en_us", l, "en_sg", D, "en_au", d, "en_ca", c, "en_gb", p, "en_ie", y, "en_il", m, "en_nz", g, "es", h, "es_do", E, "es_us", C, "fr", F, "fr_ch", M, "fr_ca", x, "zh", R, "zh_cn", L, "zh_hk", w, "zh_tw", v, "de", U, "de_de", j, "de_at", f0, "de_ch", g0, "it", o0, "it_ch", h0, "ar", I0, "ar_ly", x0, "ar_dz", L0, "ar_kw", T0, "ar_sa", F0, "ar_ma", O0, "ar_tn", M0, "az", new u.AzLocale($.StartOfWeek_2), "id", new u.IdLocale($.StartOfWeek_1), "ja", new u.JaLocale($.StartOfWeek_1), "ko", new u.KoLocale($.StartOfWeek_1), "ru", new u.RuLocale($.StartOfWeek_2), "uk", new u.UkLocale($.StartOfWeek_2), "hi", new u.HiLocale($.StartOfWeek_1), "pt", a, "pt_br", s, "pl", new u.PlLocale($.StartOfWeek_2), "tr", new u.TrLocale($.StartOfWeek_2), "sv", new u.SvLocale($.StartOfWeek_2), "nb", new u.NbLocale($.StartOfWeek_2), "fa", new u.FaLocale($.StartOfWeek_0), "bn", new u.BnLocale($.StartOfWeek_1), "nl", new u.NlLocale($.StartOfWeek_2), "th", new u.ThLocale($.StartOfWeek_1)], r.String, u.findType("Locale"));
19674
+ var a, s, o = u.EnLocale$($.StartOfWeek_1), l = u.EnLocale$($.StartOfWeek_1), D = u.EnLocale$($.StartOfWeek_1), d = u.EnLocale$($.StartOfWeek_1), c = u.EnLocale$($.StartOfWeek_1), p = u.EnLocale$($.StartOfWeek_2), y = u.EnLocale$($.StartOfWeek_2), m = u.EnLocale$($.StartOfWeek_1), g = u.EnLocale$($.StartOfWeek_1), h = u.EsLocale$($.StartOfWeek_2), E = u.EsLocale$($.StartOfWeek_2), C = u.EsLocale$($.StartOfWeek_1), F = u.FrLocale$($.StartOfWeek_2), M = u.FrLocale$($.StartOfWeek_2), x = u.FrLocale$($.StartOfWeek_1), R = u.ZhCnLocale$($.StartOfWeek_1), L = u.ZhCnLocale$($.StartOfWeek_1), w = u.ZhLocale$($.StartOfWeek_1), v = u.ZhLocale$($.StartOfWeek_1), k = u.DeLocale$($.StartOfWeek_2), j = u.DeLocale$($.StartOfWeek_2), f0 = u.DeLocale$($.StartOfWeek_2), g0 = u.DeLocale$($.StartOfWeek_2), o0 = u.ItLocale$($.StartOfWeek_2), h0 = u.ItLocale$($.StartOfWeek_2), I0 = u.ArLyLocale$(!0, $.StartOfWeek_0), x0 = u.ArLyLocale$(!1, $.StartOfWeek_0), L0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_1), T0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_1), F0 = u.ArSaMaDzKwTnLocale$(!0, $.StartOfWeek_1), O0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_0), M0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_0);
19675
+ return u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), a = u.PtLocale$($.StartOfWeek_2), s = u.PtLocale$($.StartOfWeek_1), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.LinkedHashMap_LinkedHashMap$_literal(["en", o, "en_us", l, "en_sg", D, "en_au", d, "en_ca", c, "en_gb", p, "en_ie", y, "en_il", m, "en_nz", g, "es", h, "es_do", E, "es_us", C, "fr", F, "fr_ch", M, "fr_ca", x, "zh", R, "zh_cn", L, "zh_hk", w, "zh_tw", v, "de", k, "de_de", j, "de_at", f0, "de_ch", g0, "it", o0, "it_ch", h0, "ar", I0, "ar_ly", x0, "ar_dz", L0, "ar_kw", T0, "ar_sa", F0, "ar_ma", O0, "ar_tn", M0, "az", new u.AzLocale($.StartOfWeek_2), "id", new u.IdLocale($.StartOfWeek_1), "ja", new u.JaLocale($.StartOfWeek_1), "ko", new u.KoLocale($.StartOfWeek_1), "ru", new u.RuLocale($.StartOfWeek_2), "uk", new u.UkLocale($.StartOfWeek_2), "hi", new u.HiLocale($.StartOfWeek_1), "pt", a, "pt_br", s, "pl", new u.PlLocale($.StartOfWeek_2), "tr", new u.TrLocale($.StartOfWeek_2), "sv", new u.SvLocale($.StartOfWeek_2), "nb", new u.NbLocale($.StartOfWeek_2), "fa", new u.FaLocale($.StartOfWeek_0), "bn", new u.BnLocale($.StartOfWeek_1), "nl", new u.NlLocale($.StartOfWeek_2), "th", new u.ThLocale($.StartOfWeek_1)], r.String, u.findType("Locale"));
19676
19676
  }), n(b, "_UTC", "$get$_UTC", () => {
19677
19677
  var a = r.JSArray_int;
19678
19678
  return u.Location$("UTC", u._setArrayType([-864e13], a), u._setArrayType([0], a), u._setArrayType([$.TimeZone_0_false_UTC], r.JSArray_TimeZone));
@@ -19751,49 +19751,49 @@ function _e(A) {
19751
19751
  return { type: "dayName", value: P };
19752
19752
  const B = I.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})\s+(\d{1,2}):(\d{2})(?::(\d{2}))?$/);
19753
19753
  if (B) {
19754
- const [, Q, V, X, r0, z, K = "0"] = B;
19754
+ const [, H, X, Y, Z, G, K = "0"] = B;
19755
19755
  return {
19756
19756
  type: "fullDateTime",
19757
19757
  value: new Date(
19758
- parseInt(X),
19759
- parseInt(V) - 1,
19760
- parseInt(Q),
19761
- parseInt(r0),
19762
- parseInt(z),
19758
+ parseInt(Y),
19759
+ parseInt(X) - 1,
19760
+ parseInt(H),
19761
+ parseInt(Z),
19762
+ parseInt(G),
19763
19763
  parseInt(K)
19764
19764
  ).getTime()
19765
19765
  };
19766
19766
  }
19767
19767
  const N = I.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/);
19768
19768
  if (N) {
19769
- const [, Q, V, X] = N;
19769
+ const [, H, X, Y] = N;
19770
19770
  return {
19771
19771
  type: "date",
19772
- value: new Date(parseInt(X), parseInt(V) - 1, parseInt(Q)).getTime()
19772
+ value: new Date(parseInt(Y), parseInt(X) - 1, parseInt(H)).getTime()
19773
19773
  };
19774
19774
  }
19775
19775
  const J = I.match(/^(\d{4})\/(\d{1,2})\/(\d{1,2})$/);
19776
19776
  if (J) {
19777
- const [, Q, V, X] = J;
19777
+ const [, H, X, Y] = J;
19778
19778
  return {
19779
19779
  type: "date",
19780
- value: new Date(parseInt(Q), parseInt(V) - 1, parseInt(X)).getTime()
19780
+ value: new Date(parseInt(H), parseInt(X) - 1, parseInt(Y)).getTime()
19781
19781
  };
19782
19782
  }
19783
- const H = I.match(/^(\d{1,2})\/(\d{4})$/);
19784
- if (H) {
19785
- const [, Q, V] = H;
19783
+ const U = I.match(/^(\d{1,2})\/(\d{4})$/);
19784
+ if (U) {
19785
+ const [, H, X] = U;
19786
19786
  return {
19787
19787
  type: "monthYear",
19788
- value: new Date(parseInt(V), parseInt(Q) - 1, 1).getTime()
19788
+ value: new Date(parseInt(X), parseInt(H) - 1, 1).getTime()
19789
19789
  };
19790
19790
  }
19791
- const k = I.match(/^(\d{1,2}):(\d{2})(?::(\d{2}))?$/);
19792
- if (k) {
19793
- const [, Q, V, X = "0"] = k;
19791
+ const q = I.match(/^(\d{1,2}):(\d{2})(?::(\d{2}))?$/);
19792
+ if (q) {
19793
+ const [, H, X, Y = "0"] = q;
19794
19794
  return {
19795
19795
  type: "time",
19796
- value: parseInt(Q) * 3600 + parseInt(V) * 60 + parseInt(X)
19796
+ value: parseInt(H) * 3600 + parseInt(X) * 60 + parseInt(Y)
19797
19797
  };
19798
19798
  }
19799
19799
  return /^\d+$/.test(I) ? { type: "number", value: parseInt(I) } : null;
@@ -19827,7 +19827,7 @@ function X0(A, I, O) {
19827
19827
  return P >= 0 ? (N = A.cells) == null ? void 0 : N[P] : void 0;
19828
19828
  }
19829
19829
  function Ke(A) {
19830
- var Z, u0, s0, l0, c0, p0;
19830
+ var e0, u0, s0, l0, c0, p0;
19831
19831
  const {
19832
19832
  rows: I = [],
19833
19833
  columns: O = [],
@@ -19836,74 +19836,74 @@ function Ke(A) {
19836
19836
  grandTotalPosition: N = null,
19837
19837
  pageSize: J = 0
19838
19838
  } = A;
19839
- let H = Array.isArray(I) ? [...I] : [];
19840
- N === "BOTTOM" && ((Z = H.at(-1)) != null && Z.isRollup) && H.pop(), N === "TOP" && ((u0 = H[0]) != null && u0.isRollup) && H.shift();
19841
- let k = 0;
19842
- for (const Y of H)
19843
- Y.isRollup && k++, Y.groupIndex = k;
19844
- const Q = {};
19845
- for (const Y of O) Q[Y.key] = Y.type === "NUMERIC";
19846
- const V = P.filter(
19847
- (Y) => Y.key && O.some((G) => G.key === Y.key)
19848
- ), X = V.length > 0;
19849
- let r0 = I;
19850
- B !== null && (r0 = r0.filter((Y) => !(B !== "" && (Y.isRollup === !0 || !Y.cells.some((G) => ((G == null ? void 0 : G.toLowerCase()) || "").includes(B == null ? void 0 : B.toLowerCase()))))).map((Y) => ({ ...We(Y, O), groupIndex: Y.groupIndex })));
19851
- const z = {};
19852
- for (const Y of r0) {
19853
- const G = Y.groupIndex;
19854
- G !== void 0 && (z[G] || (z[G] = [])).push(Y);
19839
+ let U = Array.isArray(I) ? [...I] : [];
19840
+ N === "BOTTOM" && ((e0 = U.at(-1)) != null && e0.isRollup) && U.pop(), N === "TOP" && ((u0 = U[0]) != null && u0.isRollup) && U.shift();
19841
+ let q = 0;
19842
+ for (const V of U)
19843
+ V.isRollup && q++, V.groupIndex = q;
19844
+ const H = {};
19845
+ for (const V of O) H[V.key] = V.type === "NUMERIC";
19846
+ const X = P.filter(
19847
+ (V) => V.key && O.some((z) => z.key === V.key)
19848
+ ), Y = X.length > 0;
19849
+ let Z = I;
19850
+ B !== null && (Z = Z.filter((V) => !(B !== "" && (V.isRollup === !0 || !V.cells.some((z) => ((z == null ? void 0 : z.toLowerCase()) || "").includes(B == null ? void 0 : B.toLowerCase()))))).map((V) => ({ ...We(V, O), groupIndex: V.groupIndex })));
19851
+ const G = {};
19852
+ for (const V of Z) {
19853
+ const z = V.groupIndex;
19854
+ z !== void 0 && (G[z] || (G[z] = [])).push(V);
19855
19855
  }
19856
- X && Object.values(z).forEach((Y) => {
19857
- const G = Y.filter((t0) => t0.isRollup), i0 = Y.filter((t0) => !t0.isRollup);
19858
- i0.sort((t0, a0) => {
19859
- for (const { key: W, type: n0 } of V) {
19860
- const D0 = n0 === "ASC" ? 1 : -1, e0 = X0(t0, W, O) ?? "", t = X0(a0, W, O) ?? "";
19861
- if (Q[W]) {
19862
- const u = Number(e0) - Number(t);
19856
+ Y && Object.values(G).forEach((V) => {
19857
+ const z = V.filter((r0) => r0.isRollup), i0 = V.filter((r0) => !r0.isRollup);
19858
+ i0.sort((r0, a0) => {
19859
+ for (const { key: W, type: n0 } of X) {
19860
+ const D0 = n0 === "ASC" ? 1 : -1, t0 = X0(r0, W, O) ?? "", t = X0(a0, W, O) ?? "";
19861
+ if (H[W]) {
19862
+ const u = Number(t0) - Number(t);
19863
19863
  if (u !== 0) return u * D0;
19864
19864
  } else {
19865
- const u = De(e0, t);
19865
+ const u = De(t0, t);
19866
19866
  if (u !== null && u !== 0)
19867
19867
  return u * D0;
19868
- const _ = le.compare(String(e0), String(t));
19868
+ const _ = le.compare(String(t0), String(t));
19869
19869
  if (_ !== 0) return _ * D0;
19870
19870
  }
19871
19871
  }
19872
19872
  return 0;
19873
- }), z[Y[0].groupIndex] = G.concat(i0);
19873
+ }), G[V[0].groupIndex] = z.concat(i0);
19874
19874
  });
19875
19875
  let K;
19876
- if (X) {
19877
- const Y = N === null ? (() => {
19878
- const t0 = Object.keys(z).find((a0) => {
19879
- const W = z[a0] || [], n0 = W.some((e0) => e0.isRollup), D0 = W.some((e0) => !e0.isRollup);
19876
+ if (Y) {
19877
+ const V = N === null ? (() => {
19878
+ const r0 = Object.keys(G).find((a0) => {
19879
+ const W = G[a0] || [], n0 = W.some((t0) => t0.isRollup), D0 = W.some((t0) => !t0.isRollup);
19880
19880
  return n0 && !D0;
19881
19881
  });
19882
- return t0 !== void 0 ? Number(t0) : -1;
19883
- })() : -1, G = ((s0 = V[0]) == null ? void 0 : s0.key) ?? ((l0 = O.find((t0) => Q[t0.key])) == null ? void 0 : l0.key), i0 = ((c0 = V[0]) == null ? void 0 : c0.type) === "ASC" ? 1 : (((p0 = V[0]) == null ? void 0 : p0.type) === "DESC", -1);
19884
- K = Object.keys(z).map(Number).sort((t0, a0) => {
19885
- if (!G) return t0 - a0;
19886
- if (Y !== -1) {
19887
- if (t0 === Y) return -1;
19888
- if (a0 === Y) return 1;
19882
+ return r0 !== void 0 ? Number(r0) : -1;
19883
+ })() : -1, z = ((s0 = X[0]) == null ? void 0 : s0.key) ?? ((l0 = O.find((r0) => H[r0.key])) == null ? void 0 : l0.key), i0 = ((c0 = X[0]) == null ? void 0 : c0.type) === "ASC" ? 1 : (((p0 = X[0]) == null ? void 0 : p0.type) === "DESC", -1);
19884
+ K = Object.keys(G).map(Number).sort((r0, a0) => {
19885
+ if (!z) return r0 - a0;
19886
+ if (V !== -1) {
19887
+ if (r0 === V) return -1;
19888
+ if (a0 === V) return 1;
19889
19889
  }
19890
- const W = z[t0].find((u) => u.isRollup), n0 = z[a0].find((u) => u.isRollup), D0 = W ? X0(W, G, O) ?? "" : "", e0 = n0 ? X0(n0, G, O) ?? "" : "";
19891
- if (Q[G]) return (Number(D0) - Number(e0)) * i0;
19892
- const t = De(D0, e0);
19893
- return t !== null ? t * i0 : le.compare(String(D0), String(e0)) * i0;
19890
+ const W = G[r0].find((u) => u.isRollup), n0 = G[a0].find((u) => u.isRollup), D0 = W ? X0(W, z, O) ?? "" : "", t0 = n0 ? X0(n0, z, O) ?? "" : "";
19891
+ if (H[z]) return (Number(D0) - Number(t0)) * i0;
19892
+ const t = De(D0, t0);
19893
+ return t !== null ? t * i0 : le.compare(String(D0), String(t0)) * i0;
19894
19894
  });
19895
19895
  } else
19896
- K = Object.keys(z).map(Number).sort((Y, G) => Y - G);
19897
- const q = [];
19898
- for (const Y of K)
19899
- for (const { groupIndex: G, ...i0 } of z[Y])
19900
- q.push(i0);
19896
+ K = Object.keys(G).map(Number).sort((V, z) => V - z);
19897
+ const Q = [];
19898
+ for (const V of K)
19899
+ for (const { groupIndex: z, ...i0 } of G[V])
19900
+ Q.push(i0);
19901
19901
  if (J > 0) {
19902
- const Y = q.length % J;
19903
- let G = 0;
19904
- Y > 0 ? G = J - Y : q.length === 0 && (G = J), G > 0 && q.push(...je(G, O));
19902
+ const V = Q.length % J;
19903
+ let z = 0;
19904
+ V > 0 ? z = J - V : Q.length === 0 && (z = J), z > 0 && Q.push(...je(z, O));
19905
19905
  }
19906
- return { data: q };
19906
+ return { data: Q };
19907
19907
  }
19908
19908
  var Ze = { processTableData: Ke };
19909
19909
  const et = Ye, tt = Ge, rt = Ze;
@@ -20072,85 +20072,85 @@ function Et(A) {
20072
20072
  }
20073
20073
  function Ce() {
20074
20074
  const { sessionUser: A } = ne(), I = $e(), { country: O } = d0($0()), P = "business::report::allDefaultReports", B = "business::report::allCustomReports", N = R0(() => {
20075
- const q = I.flags.find(
20076
- (Z) => Z.key === Z0.report_portal_permission_th_control_temp
20075
+ const Q = I.flags.find(
20076
+ (e0) => e0.key === Z0.report_portal_permission_th_control_temp
20077
20077
  );
20078
- return O.value.toUpperCase() === "TH" && (q == null ? void 0 : q.value) === !0;
20078
+ return O.value.toUpperCase() === "TH" && (Q == null ? void 0 : Q.value) === !0;
20079
20079
  }), J = R0(() => {
20080
20080
  if (N.value)
20081
20081
  return !0;
20082
- const q = I.flags.find(
20083
- (Z) => Z.key === Z0.report_portal_permission
20082
+ const Q = I.flags.find(
20083
+ (e0) => e0.key === Z0.report_portal_permission
20084
20084
  );
20085
- return (q == null ? void 0 : q.value) === !0;
20086
- }), H = R0(
20085
+ return (Q == null ? void 0 : Q.value) === !0;
20086
+ }), U = R0(
20087
20087
  () => {
20088
- var q, Z;
20089
- return Array.isArray((q = A.value) == null ? void 0 : q.permissions) ? (Z = A.value) == null ? void 0 : Z.permissions : [];
20088
+ var Q, e0;
20089
+ return Array.isArray((Q = A.value) == null ? void 0 : Q.permissions) ? (e0 = A.value) == null ? void 0 : e0.permissions : [];
20090
20090
  }
20091
20091
  );
20092
- function k(q, Z) {
20092
+ function q(Q, e0) {
20093
20093
  if (!J.value) return !0;
20094
- const u0 = Et(q);
20095
- return !u0 || !H.value.length ? !1 : Z.some((s0) => {
20094
+ const u0 = Et(Q);
20095
+ return !u0 || !U.value.length ? !1 : e0.some((s0) => {
20096
20096
  const l0 = {
20097
20097
  action: s0,
20098
20098
  // Report subjects are custom strings; cast to satisfy CaslPermission type
20099
20099
  subject: u0,
20100
- coverSubject: q != null && q.isDefault ? P : B
20100
+ coverSubject: Q != null && Q.isDefault ? P : B
20101
20101
  };
20102
- return ee([l0], H.value).granted;
20102
+ return ee([l0], U.value).granted;
20103
20103
  });
20104
20104
  }
20105
- function Q(q) {
20106
- return k(q, [C0.update, C0.manage]);
20105
+ function H(Q) {
20106
+ return q(Q, [C0.update, C0.manage]);
20107
20107
  }
20108
- function V(q) {
20109
- return k(q, [C0.read, C0.manage]);
20108
+ function X(Q) {
20109
+ return q(Q, [C0.read, C0.manage]);
20110
20110
  }
20111
- function X(q) {
20112
- return k(q, [C0.delete, C0.manage]);
20111
+ function Y(Q) {
20112
+ return q(Q, [C0.delete, C0.manage]);
20113
20113
  }
20114
- function r0(q) {
20115
- return k(q, [C0.manage]);
20114
+ function Z(Q) {
20115
+ return q(Q, [C0.manage]);
20116
20116
  }
20117
- function z(q) {
20118
- return k(q, [C0.create, C0.manage]);
20117
+ function G(Q) {
20118
+ return q(Q, [C0.create, C0.manage]);
20119
20119
  }
20120
20120
  const K = R0(() => {
20121
20121
  if (!J.value) return !0;
20122
- const q = "business::report::createReport";
20123
- return H.value.length ? [C0.create, C0.manage].some((Z) => ee([{
20124
- action: Z,
20125
- subject: q
20126
- }], H.value).granted) : !1;
20122
+ const Q = "business::report::createReport";
20123
+ return U.value.length ? [C0.create, C0.manage].some((e0) => ee([{
20124
+ action: e0,
20125
+ subject: Q
20126
+ }], U.value).granted) : !1;
20127
20127
  });
20128
20128
  return {
20129
20129
  isReportPermissionEnabled: J,
20130
- canRead: V,
20131
- canUpdate: Q,
20132
- canDelete: X,
20133
- canManage: r0,
20134
- canDuplicate: z,
20130
+ canRead: X,
20131
+ canUpdate: H,
20132
+ canDelete: Y,
20133
+ canManage: Z,
20134
+ canDuplicate: G,
20135
20135
  canCreateReport: K
20136
20136
  };
20137
20137
  }
20138
20138
  const At = "mf-reportreport-store", ue = Q0(At, () => {
20139
- const { business: A, globalFilters: I } = d0(G0()), { schemas: O } = d0(ht()), { flags: P } = d0($e()), B = _0([]), N = _0([]), J = _0(0), H = he(), k = R0(() => B.value.filter((f) => f.editable)), Q = R0(() => B.value.filter((f) => !f.editable)), V = _0(!1), X = _0(""), r0 = _0(), z = _0(), K = R0(() => {
20139
+ const { business: A, globalFilters: I } = d0(G0()), { schemas: O } = d0(ht()), { flags: P } = d0($e()), B = _0([]), N = _0([]), J = _0(0), U = he(), q = R0(() => B.value.filter((f) => f.editable)), H = R0(() => B.value.filter((f) => !f.editable)), X = _0(!1), Y = _0(""), Z = _0(), G = _0(), K = R0(() => {
20140
20140
  const f = P.value.find(
20141
20141
  (r) => r.key === Z0.report_portal_integration_custom_report
20142
20142
  );
20143
20143
  return typeof (f == null ? void 0 : f.value) == "number" ? f.value : null;
20144
- }), { isReportPermissionEnabled: q } = Ce(), Z = R0(() => K.value === null ? !0 : K.value - k.value.length > 0);
20144
+ }), { isReportPermissionEnabled: Q } = Ce(), e0 = R0(() => K.value === null ? !0 : K.value - q.value.length > 0);
20145
20145
  async function u0() {
20146
- return z.value = await ft(), z.value;
20146
+ return G.value = await ft(), G.value;
20147
20147
  }
20148
20148
  async function s0() {
20149
20149
  var f;
20150
20150
  try {
20151
- B.value = await lt(), N.value = await yt(), B.value.find((e) => e.id === X.value) || (X.value = ((f = B.value.find((e) => e.isDefault)) == null ? void 0 : f.id) || B.value[0].id);
20151
+ B.value = await lt(), N.value = await yt(), B.value.find((e) => e.id === Y.value) || (Y.value = ((f = B.value.find((e) => e.isDefault)) == null ? void 0 : f.id) || B.value[0].id);
20152
20152
  } catch (r) {
20153
- console.log(r), H.open({
20153
+ console.log(r), U.open({
20154
20154
  title: "Report Fetch Error",
20155
20155
  message: "Internal Server Error",
20156
20156
  type: "error"
@@ -20158,7 +20158,7 @@ const At = "mf-reportreport-store", ue = Q0(At, () => {
20158
20158
  }
20159
20159
  }
20160
20160
  const l0 = R0(
20161
- () => B.value.find((f) => f.id === X.value)
20161
+ () => B.value.find((f) => f.id === Y.value)
20162
20162
  );
20163
20163
  function c0(f) {
20164
20164
  var e;
@@ -20179,16 +20179,16 @@ const At = "mf-reportreport-store", ue = Q0(At, () => {
20179
20179
  },
20180
20180
  { deep: !0 }
20181
20181
  );
20182
- const p0 = _0(), Y = _0(0), G = _0(), i0 = _0(null), t0 = _0(null), a0 = _0(!1), W = _0(!1), n0 = _0(!1);
20182
+ const p0 = _0(), V = _0(0), z = _0(), i0 = _0(null), r0 = _0(null), a0 = _0(!1), W = _0(!1), n0 = _0(!1);
20183
20183
  async function D0(f) {
20184
- const r = k.value.findIndex((n) => n.id === f.id);
20184
+ const r = q.value.findIndex((n) => n.id === f.id);
20185
20185
  let e;
20186
20186
  if (r >= 0)
20187
20187
  e = await _t(f);
20188
20188
  else {
20189
20189
  e = await Dt(f);
20190
20190
  try {
20191
- if (q.value) {
20191
+ if (Q.value) {
20192
20192
  await St(e.id, e.name);
20193
20193
  const n = ne(), { businessId: i } = d0($0());
20194
20194
  await n.fetchUserPermissions(void 0, i.value);
@@ -20202,14 +20202,14 @@ const At = "mf-reportreport-store", ue = Q0(At, () => {
20202
20202
  }
20203
20203
  return u(e.id), await s0(), e;
20204
20204
  }
20205
- async function e0(f) {
20205
+ async function t0(f) {
20206
20206
  await dt(f), await s0();
20207
20207
  }
20208
20208
  async function t(f) {
20209
20209
  await ct(f), await u0();
20210
20210
  }
20211
20211
  function u(f) {
20212
- X.value = f;
20212
+ Y.value = f;
20213
20213
  }
20214
20214
  const _ = _0(null);
20215
20215
  function $() {
@@ -20245,26 +20245,26 @@ const At = "mf-reportreport-store", ue = Q0(At, () => {
20245
20245
  isOpenDownloadDialog: a0,
20246
20246
  isOpenFeedbackDialog: W,
20247
20247
  isOpenEmailDialog: n0,
20248
- currentSelectWidgetType: r0,
20248
+ currentSelectWidgetType: Z,
20249
20249
  reports: B,
20250
20250
  categories: N,
20251
20251
  currentReport: l0,
20252
20252
  editingReport: p0,
20253
- editingTileIndex: Y,
20254
- editingTile: G,
20253
+ editingTileIndex: V,
20254
+ editingTile: z,
20255
20255
  editingGlobalFilterIndex: i0,
20256
- editingGlobalFilter: t0,
20257
- currentReportId: X,
20258
- editableReports: k,
20259
- nonEditableReports: Q,
20260
- isOpenAddReportDialog: V,
20261
- overviewReport: z,
20256
+ editingGlobalFilter: r0,
20257
+ currentReportId: Y,
20258
+ editableReports: q,
20259
+ nonEditableReports: H,
20260
+ isOpenAddReportDialog: X,
20261
+ overviewReport: G,
20262
20262
  pinReport: _,
20263
20263
  scrollPositionY: J,
20264
20264
  customReportQuota: K,
20265
- canCreateCustomReport: Z,
20265
+ canCreateCustomReport: e0,
20266
20266
  createOrUpdateReport: D0,
20267
- removeReport: e0,
20267
+ removeReport: t0,
20268
20268
  updateCurrentReportId: u,
20269
20269
  getReports: s0,
20270
20270
  updateDefaultReport: t,
@@ -20276,19 +20276,19 @@ const At = "mf-reportreport-store", ue = Q0(At, () => {
20276
20276
  };
20277
20277
  }), Tt = "mf-reportnavigation", be = Q0(Tt, () => {
20278
20278
  const { disabled: A } = d0(we()), { sessionUser: I } = ne(), { isReportPermissionEnabled: O } = Ce();
20279
- function P(V) {
20279
+ function P(X) {
20280
20280
  var K;
20281
20281
  if (!O.value) return !0;
20282
- const X = ((K = I.value) == null ? void 0 : K.permissions) ?? [];
20283
- if (!Array.isArray(X) || X.length === 0) return !1;
20284
- const r0 = {
20282
+ const Y = ((K = I.value) == null ? void 0 : K.permissions) ?? [];
20283
+ if (!Array.isArray(Y) || Y.length === 0) return !1;
20284
+ const Z = {
20285
20285
  action: C0.manage,
20286
- subject: V
20286
+ subject: X
20287
20287
  };
20288
- return ee([r0], X).granted;
20288
+ return ee([Z], Y).granted;
20289
20289
  }
20290
20290
  const B = _0("v5"), N = _0(!1), J = R0(() => {
20291
- const V = !P("business::report::accessInsight"), X = !P("business::report::accessSetting"), r0 = !P("business::report::accessIntegration"), z = [
20291
+ const X = !P("business::report::accessInsight"), Y = !P("business::report::accessSetting"), Z = !P("business::report::accessIntegration"), G = [
20292
20292
  {
20293
20293
  label: "overview",
20294
20294
  value: "overview",
@@ -20304,51 +20304,51 @@ const At = "mf-reportreport-store", ue = Q0(At, () => {
20304
20304
  value: "insight",
20305
20305
  route: "insights",
20306
20306
  badge: () => Be(Ue.FmPill, { variant: "beta" }),
20307
- disabled: V
20307
+ disabled: X
20308
20308
  },
20309
20309
  {
20310
20310
  label: "setting",
20311
20311
  value: "setting",
20312
20312
  route: "setting",
20313
- disabled: X
20313
+ disabled: Y
20314
20314
  }
20315
20315
  ];
20316
- return A.value || z.push({
20316
+ return A.value || G.push({
20317
20317
  label: "integration",
20318
20318
  value: "integration",
20319
20319
  route: "integrations",
20320
- disabled: r0
20321
- }), z;
20322
- }), H = _0(""), { currentRoute: k } = qe();
20323
- function Q(V) {
20324
- switch (V.name) {
20320
+ disabled: Z
20321
+ }), G;
20322
+ }), U = _0(""), { currentRoute: q } = qe();
20323
+ function H(X) {
20324
+ switch (X.name) {
20325
20325
  case "report":
20326
20326
  case "reports":
20327
- H.value = "report";
20327
+ U.value = "report";
20328
20328
  break;
20329
20329
  case "overview":
20330
- H.value = "overview";
20330
+ U.value = "overview";
20331
20331
  break;
20332
20332
  case "setting":
20333
- H.value = "setting";
20333
+ U.value = "setting";
20334
20334
  break;
20335
20335
  case "insights":
20336
- H.value = "insight";
20336
+ U.value = "insight";
20337
20337
  break;
20338
20338
  case "integration":
20339
20339
  case "integrations":
20340
- H.value = "integration";
20340
+ U.value = "integration";
20341
20341
  break;
20342
20342
  }
20343
20343
  }
20344
20344
  return z0(
20345
- k,
20346
- (V) => {
20347
- Q(V);
20345
+ q,
20346
+ (X) => {
20347
+ H(X);
20348
20348
  },
20349
20349
  { immediate: !0 }
20350
20350
  ), {
20351
- selectedNavigationTab: H,
20351
+ selectedNavigationTab: U,
20352
20352
  navigationTabs: J,
20353
20353
  version: B,
20354
20354
  suppressReportRouteSync: N
@@ -20364,7 +20364,7 @@ async function bt(A) {
20364
20364
  return de(K0.get(A));
20365
20365
  let I = A;
20366
20366
  if (location.hostname !== new URL(import.meta.url).hostname) {
20367
- const B = new URL(A.replace(/^\//, ""), import.meta.url).href, N = await fetch(B).then((H) => H.text()), J = new Blob([N], { type: "application/javascript" });
20367
+ const B = new URL(A.replace(/^\//, ""), import.meta.url).href, N = await fetch(B).then((U) => U.text()), J = new Blob([N], { type: "application/javascript" });
20368
20368
  I = URL.createObjectURL(J);
20369
20369
  }
20370
20370
  const P = de(I);
@@ -20386,10 +20386,10 @@ const Ft = "mf-reportwidget-size", Fe = Q0(Ft, () => {
20386
20386
  try {
20387
20387
  if (!O) return;
20388
20388
  let N;
20389
- const J = O.$el, H = (B = J == null ? void 0 : J.querySelector) == null ? void 0 : B.call(J, "canvas");
20390
- if (H) {
20391
- const k = H.getBoundingClientRect();
20392
- N = { width: Math.round(k.width), height: Math.round(k.height) };
20389
+ const J = O.$el, U = (B = J == null ? void 0 : J.querySelector) == null ? void 0 : B.call(J, "canvas");
20390
+ if (U) {
20391
+ const q = U.getBoundingClientRect();
20392
+ N = { width: Math.round(q.width), height: Math.round(q.height) };
20393
20393
  }
20394
20394
  if (N && N.width > 0 && N.height > 0)
20395
20395
  return typeof P == "number" && (A.value[P] = N), N;
@@ -20402,8 +20402,8 @@ const Ft = "mf-reportwidget-size", Fe = Q0(Ft, () => {
20402
20402
  const A = _0([]);
20403
20403
  function I(B, N) {
20404
20404
  if (B == null) return;
20405
- const J = Array.isArray(N) ? N.filter((Q) => Q && Q.key) : [], H = A.value.findIndex((Q) => Q.tileIndex === B), k = { tileIndex: B, sorts: J };
20406
- H !== -1 ? A.value.splice(H, 1, k) : A.value.push(k);
20405
+ const J = Array.isArray(N) ? N.filter((H) => H && H.key) : [], U = A.value.findIndex((H) => H.tileIndex === B), q = { tileIndex: B, sorts: J };
20406
+ U !== -1 ? A.value.splice(U, 1, q) : A.value.push(q);
20407
20407
  }
20408
20408
  function O(B) {
20409
20409
  var N;
@@ -20461,37 +20461,37 @@ function Ot(A, I) {
20461
20461
  function wt(A) {
20462
20462
  var P, B, N, J;
20463
20463
  const I = Array.from(
20464
- new Set((A.values ?? []).map((H) => H === "" ? "NULL" : H))
20464
+ new Set((A.values ?? []).map((U) => U === "" ? "NULL" : U))
20465
20465
  );
20466
20466
  if (I.length === 1 && String(I[0]) === "(EMPTY)") {
20467
- const H = Object.values(q0).includes(
20467
+ const U = Object.values(q0).includes(
20468
20468
  String(A.option ?? "")
20469
- ), k = A.option === q0.TimeOfDay ? ["1000-01-01T23:59:59.999Z", "1000-01-01T00:00:00.000Z"] : [H ? "-1" : "(EMPTY)"];
20469
+ ), q = A.option === q0.TimeOfDay ? ["1000-01-01T23:59:59.999Z", "1000-01-01T00:00:00.000Z"] : [U ? "-1" : "(EMPTY)"];
20470
20470
  return [
20471
20471
  {
20472
20472
  schemaName: A.schemaName,
20473
20473
  name: A.name,
20474
20474
  operator: A.operator,
20475
20475
  option: A.option ?? null,
20476
- values: k,
20476
+ values: q,
20477
20477
  dataFormula: A.dataFormula,
20478
20478
  isGlobalFilter: !0
20479
20479
  }
20480
20480
  ];
20481
20481
  }
20482
20482
  if ((((P = A.customTimeRanges) == null ? void 0 : P.length) ?? 0) > 0) {
20483
- const H = new Set(I.map((k) => String(k)));
20484
- return ((B = A.customTimeRanges) == null ? void 0 : B.filter((k) => {
20485
- const Q = String(k.name ?? "");
20486
- return H.has(Q);
20487
- }).map((k) => Ot(A, k)).filter((k) => !!k)) ?? [];
20483
+ const U = new Set(I.map((q) => String(q)));
20484
+ return ((B = A.customTimeRanges) == null ? void 0 : B.filter((q) => {
20485
+ const H = String(q.name ?? "");
20486
+ return U.has(H);
20487
+ }).map((q) => Ot(A, q)).filter((q) => !!q)) ?? [];
20488
20488
  }
20489
20489
  if ((((N = A.customOptions) == null ? void 0 : N.length) ?? 0) > 0) {
20490
- const H = new Set(I.map((k) => String(k)));
20491
- return ((J = A.customOptions) == null ? void 0 : J.filter((k) => {
20492
- const Q = String(k.label ?? "");
20493
- return H.has(Q);
20494
- }).map((k) => Lt(A, k)).filter((k) => Array.isArray(k.values) && k.values.length > 0)) ?? [];
20490
+ const U = new Set(I.map((q) => String(q)));
20491
+ return ((J = A.customOptions) == null ? void 0 : J.filter((q) => {
20492
+ const H = String(q.label ?? "");
20493
+ return U.has(H);
20494
+ }).map((q) => Lt(A, q)).filter((q) => Array.isArray(q.values) && q.values.length > 0)) ?? [];
20495
20495
  }
20496
20496
  return I.length === 0 ? [] : [
20497
20497
  {
@@ -20510,37 +20510,34 @@ function ce({
20510
20510
  globalFilters: I,
20511
20511
  schemaNames: O
20512
20512
  }) {
20513
- if (!I.some(
20514
- (H) => O == null ? void 0 : O.includes(H.schemaName)
20515
- ))
20516
- return [...A];
20517
- const B = /* @__PURE__ */ new Map(), N = [], J = (H) => {
20518
- if (!H || !Array.isArray(H.values) || H.values.length === 0) return;
20519
- const k = {
20513
+ const P = /* @__PURE__ */ new Map(), B = [], N = new Set((O ?? []).map((H) => String(H))), J = (H) => N.has(H.schemaName ?? ""), U = I.filter(J), q = (H) => {
20514
+ if (!H || !J(H) || !Array.isArray(H.values) || H.values.length === 0)
20515
+ return;
20516
+ const X = {
20520
20517
  ...H,
20521
20518
  values: Re(H.values)
20522
20519
  };
20523
- if (k.option === q0.TimeOfDay && k.operator === ae.Between) {
20524
- N.push(k);
20520
+ if (X.option === q0.TimeOfDay && X.operator === ae.Between) {
20521
+ B.push(X);
20525
20522
  return;
20526
20523
  }
20527
- const V = Rt(k), X = B.get(V);
20528
- if (!X) {
20529
- B.set(V, k);
20524
+ const Z = Rt(X), G = P.get(Z);
20525
+ if (!G) {
20526
+ P.set(Z, X);
20530
20527
  return;
20531
20528
  }
20532
- X.values = [
20533
- ...X.values ?? [],
20534
- ...k.values
20535
- ], B.set(V, X);
20529
+ G.values = [
20530
+ ...G.values ?? [],
20531
+ ...X.values
20532
+ ], P.set(Z, G);
20536
20533
  };
20537
- return A.forEach(J), I.forEach(J), [...Array.from(B.values()), ...N];
20534
+ return A.forEach(q), U.forEach(q), [...Array.from(P.values()), ...B];
20538
20535
  }
20539
20536
  function se(A, I, O) {
20540
20537
  var N;
20541
20538
  const P = JSON.parse(JSON.stringify(A)), B = I.filter((J) => {
20542
- var H;
20543
- return (H = J.tileIds) == null ? void 0 : H.includes(O);
20539
+ var U;
20540
+ return (U = J.tileIds) == null ? void 0 : U.includes(O);
20544
20541
  }).flatMap((J) => wt(J));
20545
20542
  return {
20546
20543
  ...P,
@@ -20551,14 +20548,14 @@ function se(A, I, O) {
20551
20548
  globalFilters: B ?? [],
20552
20549
  schemaNames: P.config.schemaNames
20553
20550
  }),
20554
- joinDatasources: ((N = P.config.joinDatasources) == null ? void 0 : N.map((J, H) => {
20555
- var k;
20551
+ joinDatasources: ((N = P.config.joinDatasources) == null ? void 0 : N.map((J, U) => {
20552
+ var q;
20556
20553
  return {
20557
20554
  ...J,
20558
20555
  filters: ce({
20559
20556
  originalFilters: J.filters ?? [],
20560
20557
  globalFilters: B ?? [],
20561
- schemaNames: (k = P.config.joinDatasources) == null ? void 0 : k[H].schemaNames
20558
+ schemaNames: (q = P.config.joinDatasources) == null ? void 0 : q[U].schemaNames
20562
20559
  })
20563
20560
  };
20564
20561
  })) ?? []
@@ -20579,35 +20576,35 @@ const ur = async (A, I, O) => {
20579
20576
  var s0, l0, c0, p0;
20580
20577
  const { businessId: P, country: B } = d0($0()), { currentReport: N } = ue(), {
20581
20578
  selectedRestaurantIds: J,
20582
- selectedWarehouseIds: H,
20583
- selectedLocationIds: k,
20584
- dateRange: Q,
20585
- compareDateRange: V,
20586
- timeRange: X,
20587
- globalFilters: r0,
20588
- timezone: z
20579
+ selectedWarehouseIds: U,
20580
+ selectedLocationIds: q,
20581
+ dateRange: H,
20582
+ compareDateRange: X,
20583
+ timeRange: Y,
20584
+ globalFilters: Z,
20585
+ timezone: G
20589
20586
  } = G0();
20590
- if (k.length === 0)
20587
+ if (q.length === 0)
20591
20588
  return null;
20592
- const K = se(A, r0, O ?? ""), q = {
20589
+ const K = se(A, Z, O ?? ""), Q = {
20593
20590
  fetchType: m0.Post,
20594
20591
  url: `/${P.value}/postgres-query`,
20595
20592
  data: ie.getQueryRequests({
20596
20593
  widget: K,
20597
- dateRange: [Q.startDate, Q.endDate],
20598
- compareDateRange: V.startDate && V.endDate ? [V.startDate, V.endDate] : void 0,
20594
+ dateRange: [H.startDate, H.endDate],
20595
+ compareDateRange: X.startDate && X.endDate ? [X.startDate, X.endDate] : void 0,
20599
20596
  timeRange: [
20600
- A0().tz(z).hour(Number((s0 = X.start) == null ? void 0 : s0.hour)).minute(Number((l0 = X.start) == null ? void 0 : l0.minute)).toISOString(),
20601
- A0().tz(z).hour(Number((c0 = X.end) == null ? void 0 : c0.hour)).minute(Number((p0 = X.end) == null ? void 0 : p0.minute)).endOf("minutes").toISOString()
20597
+ A0().tz(G).hour(Number((s0 = Y.start) == null ? void 0 : s0.hour)).minute(Number((l0 = Y.start) == null ? void 0 : l0.minute)).toISOString(),
20598
+ A0().tz(G).hour(Number((c0 = Y.end) == null ? void 0 : c0.hour)).minute(Number((p0 = Y.end) == null ? void 0 : p0.minute)).endOf("minutes").toISOString()
20602
20599
  ],
20603
20600
  businessIds: P.value ? [P.value] : [],
20604
20601
  restaurantIds: J,
20605
- warehouseIds: H,
20606
- timezone: z
20607
- }).map((Y, G) => {
20608
- const i0 = G === 0 ? 3e3 : 12e3;
20602
+ warehouseIds: U,
20603
+ timezone: G
20604
+ }).map((V, z) => {
20605
+ const i0 = z === 0 ? 3e3 : 12e3;
20609
20606
  return {
20610
- ...Y,
20607
+ ...V,
20611
20608
  limit: J.length > 50 ? A.config.limit || i0 : A.config.limit,
20612
20609
  skipStringSpaceGrouping: !!(N != null && N.batch),
20613
20610
  reportId: N == null ? void 0 : N.id
@@ -20617,14 +20614,14 @@ const ur = async (A, I, O) => {
20617
20614
  timeout: 1e3 * 60 * 5,
20618
20615
  signal: I
20619
20616
  }
20620
- }, Z = [() => E0.fetch(q)];
20621
- J.length < 50 && Z.push(() => E0.fetch(q)), Z.push(() => (q.url = q.url.replace("postgres-query", "query"), E0.fetch(q)));
20622
- const u0 = await vt(Z, 2e3);
20617
+ }, e0 = [() => E0.fetch(Q)];
20618
+ J.length < 50 && e0.push(() => E0.fetch(Q)), e0.push(() => (Q.url = Q.url.replace("postgres-query", "query"), E0.fetch(Q)));
20619
+ const u0 = await vt(e0, 2e3);
20623
20620
  return (await It(Ct, {
20624
20621
  responses: u0,
20625
20622
  widget: JSON.parse(JSON.stringify(A)),
20626
20623
  country: B.value,
20627
- timezone: z
20624
+ timezone: G
20628
20625
  })).data;
20629
20626
  };
20630
20627
  function xe(A) {
@@ -20683,33 +20680,33 @@ const sr = async ({
20683
20680
  timeRange: N,
20684
20681
  dateRange: J
20685
20682
  }) => {
20686
- const { businessId: H } = d0($0()), { restaurants: k, warehouses: Q, globalFilters: V, timezone: X } = G0(), { currentReport: r0, overviewReport: z } = ue(), { selectedNavigationTab: K } = be(), { sizes: q } = Fe(), { getTileSorts: Z } = Me();
20687
- let u0 = r0 == null ? void 0 : r0.id, s0 = (r0 == null ? void 0 : r0.tiles) ?? [];
20688
- K === "overview" && z && (u0 = z == null ? void 0 : z.id, s0 = (z == null ? void 0 : z.tiles) ?? []);
20689
- const l0 = s0.filter((a0, W) => typeof I == "number" ? W === I : !0).map((a0) => se(a0.widget, V, a0.id)), c0 = {
20683
+ const { businessId: U } = d0($0()), { restaurants: q, warehouses: H, globalFilters: X, timezone: Y } = G0(), { currentReport: Z, overviewReport: G } = ue(), { selectedNavigationTab: K } = be(), { sizes: Q } = Fe(), { getTileSorts: e0 } = Me();
20684
+ let u0 = Z == null ? void 0 : Z.id, s0 = (Z == null ? void 0 : Z.tiles) ?? [];
20685
+ K === "overview" && G && (u0 = G == null ? void 0 : G.id, s0 = (G == null ? void 0 : G.tiles) ?? []);
20686
+ const l0 = s0.filter((a0, W) => typeof I == "number" ? W === I : !0).map((a0) => se(a0.widget, X, a0.id)), c0 = {
20690
20687
  fetchType: m0.Post,
20691
- url: `/${H.value}/file?lang=${H0()}`,
20688
+ url: `/${U.value}/file?lang=${H0()}`,
20692
20689
  data: {
20693
20690
  configs: [
20694
20691
  ...l0.map((a0, W) => {
20695
- var D0, e0, t, u;
20696
- const n0 = q[I ?? W];
20692
+ var D0, t0, t, u;
20693
+ const n0 = Q[I ?? W];
20697
20694
  return {
20698
20695
  requests: ie.getQueryRequests({
20699
20696
  widget: a0,
20700
20697
  dateRange: [J.startDate, J.endDate],
20701
20698
  timeRange: [
20702
- A0().tz(X).set("hour", Number((D0 = N.start) == null ? void 0 : D0.hour)).set("minute", Number((e0 = N.start) == null ? void 0 : e0.minute)).toISOString(),
20703
- A0().tz(X).set("hour", Number((t = N.end) == null ? void 0 : t.hour)).set("minute", Number((u = N.end) == null ? void 0 : u.minute)).toISOString()
20699
+ A0().tz(Y).set("hour", Number((D0 = N.start) == null ? void 0 : D0.hour)).set("minute", Number((t0 = N.start) == null ? void 0 : t0.minute)).toISOString(),
20700
+ A0().tz(Y).set("hour", Number((t = N.end) == null ? void 0 : t.hour)).set("minute", Number((u = N.end) == null ? void 0 : u.minute)).toISOString()
20704
20701
  ],
20705
- businessIds: H ? [H.value] : [],
20702
+ businessIds: U ? [U.value] : [],
20706
20703
  restaurantIds: B.filter(
20707
- (_) => k.find(($) => $.id === _)
20704
+ (_) => q.find(($) => $.id === _)
20708
20705
  ),
20709
20706
  warehouseIds: B.filter(
20710
- (_) => Q.find(($) => $.id === _)
20707
+ (_) => H.find(($) => $.id === _)
20711
20708
  ),
20712
- timezone: X
20709
+ timezone: Y
20713
20710
  }),
20714
20711
  index: I || W,
20715
20712
  drillDimension: null,
@@ -20717,7 +20714,7 @@ const sr = async ({
20717
20714
  chartHeight: (n0 == null ? void 0 : n0.height) ?? a0.config.chartHeight,
20718
20715
  ...xe(a0),
20719
20716
  ...Le(a0),
20720
- globalSorts: Z(I ?? W)
20717
+ globalSorts: e0(I ?? W)
20721
20718
  };
20722
20719
  })
20723
20720
  ],
@@ -20730,8 +20727,8 @@ const sr = async ({
20730
20727
  responseType: "arraybuffer",
20731
20728
  timeout: 1e3 * 60 * 60 * 24
20732
20729
  }
20733
- }, { headers: p0, data: Y } = await re.rawFetch(c0), G = p0["content-disposition"].split("filename=")[1].replaceAll('"', ""), i0 = window.URL.createObjectURL(new Blob([new Uint8Array(Y).buffer])), t0 = document.createElement("a");
20734
- t0.href = i0, t0.setAttribute("download", decodeURIComponent(G)), document.body.appendChild(t0), t0.click(), t0.remove();
20730
+ }, { headers: p0, data: V } = await re.rawFetch(c0), z = p0["content-disposition"].split("filename=")[1].replaceAll('"', ""), i0 = window.URL.createObjectURL(new Blob([new Uint8Array(V).buffer])), r0 = document.createElement("a");
20731
+ r0.href = i0, r0.setAttribute("download", decodeURIComponent(z)), document.body.appendChild(r0), r0.click(), r0.remove();
20735
20732
  }, or = async ({
20736
20733
  emails: A,
20737
20734
  types: I,
@@ -20741,15 +20738,15 @@ const sr = async ({
20741
20738
  orientationTypes: N,
20742
20739
  isCombinedLocationLayout: J
20743
20740
  }) => {
20744
- const { businessId: H } = d0($0()), { currentReport: k, overviewReport: Q } = ue(), { selectedNavigationTab: V } = be(), { restaurants: X, warehouses: r0, globalFilters: z, timezone: K } = G0(), { sizes: q } = Fe(), { getTileSorts: Z } = Me();
20741
+ const { businessId: U } = d0($0()), { currentReport: q, overviewReport: H } = ue(), { selectedNavigationTab: X } = be(), { restaurants: Y, warehouses: Z, globalFilters: G, timezone: K } = G0(), { sizes: Q } = Fe(), { getTileSorts: e0 } = Me();
20745
20742
  if (A.length === 0) {
20746
20743
  console.error("No email addresses provided.");
20747
20744
  return;
20748
20745
  }
20749
- let u0 = (k == null ? void 0 : k.id) || "", s0 = (k == null ? void 0 : k.name) || "", l0 = (k == null ? void 0 : k.tiles) ?? [];
20750
- V === "overview" && Q && (u0 = Q == null ? void 0 : Q.id, s0 = Q.name, l0 = (Q == null ? void 0 : Q.tiles) ?? []);
20751
- const c0 = l0.map((Y) => se(Y.widget, z, Y.id)), p0 = {
20752
- businessId: H.value,
20746
+ let u0 = (q == null ? void 0 : q.id) || "", s0 = (q == null ? void 0 : q.name) || "", l0 = (q == null ? void 0 : q.tiles) ?? [];
20747
+ X === "overview" && H && (u0 = H == null ? void 0 : H.id, s0 = H.name, l0 = (H == null ? void 0 : H.tiles) ?? []);
20748
+ const c0 = l0.map((V) => se(V.widget, G, V.id)), p0 = {
20749
+ businessId: U.value,
20753
20750
  status: Ie.generating,
20754
20751
  dateRange: {
20755
20752
  start: O.startDate,
@@ -20757,33 +20754,33 @@ const sr = async ({
20757
20754
  },
20758
20755
  reportName: s0,
20759
20756
  emails: A,
20760
- configs: c0.map((Y, G) => {
20761
- var t0, a0, W, n0;
20762
- const i0 = q[G];
20757
+ configs: c0.map((V, z) => {
20758
+ var r0, a0, W, n0;
20759
+ const i0 = Q[z];
20763
20760
  return {
20764
20761
  requests: ie.getQueryRequests({
20765
- widget: Y,
20762
+ widget: V,
20766
20763
  dateRange: [O.startDate, O.endDate],
20767
20764
  timeRange: [
20768
- A0().tz(K).hour(Number((t0 = P.start) == null ? void 0 : t0.hour)).minute(Number((a0 = P.start) == null ? void 0 : a0.minute)).toISOString(),
20765
+ A0().tz(K).hour(Number((r0 = P.start) == null ? void 0 : r0.hour)).minute(Number((a0 = P.start) == null ? void 0 : a0.minute)).toISOString(),
20769
20766
  A0().tz(K).hour(Number((W = P.end) == null ? void 0 : W.hour)).minute(Number((n0 = P.end) == null ? void 0 : n0.minute)).endOf("minutes").toISOString()
20770
20767
  ],
20771
- businessIds: H ? [H.value] : [],
20768
+ businessIds: U ? [U.value] : [],
20772
20769
  restaurantIds: B.filter(
20773
- (D0) => X.find((e0) => e0.id === D0)
20770
+ (D0) => Y.find((t0) => t0.id === D0)
20774
20771
  ),
20775
20772
  warehouseIds: B.filter(
20776
- (D0) => r0.find((e0) => e0.id === D0)
20773
+ (D0) => Z.find((t0) => t0.id === D0)
20777
20774
  ),
20778
20775
  timezone: K
20779
20776
  }),
20780
- index: G,
20777
+ index: z,
20781
20778
  drillDimension: null,
20782
- chartWidth: (i0 == null ? void 0 : i0.width) ?? Y.config.chartWidth,
20783
- chartHeight: (i0 == null ? void 0 : i0.height) ?? Y.config.chartHeight,
20784
- ...xe(Y),
20785
- ...Le(Y),
20786
- globalSorts: Z(G)
20779
+ chartWidth: (i0 == null ? void 0 : i0.width) ?? V.config.chartWidth,
20780
+ chartHeight: (i0 == null ? void 0 : i0.height) ?? V.config.chartHeight,
20781
+ ...xe(V),
20782
+ ...Le(V),
20783
+ globalSorts: e0(z)
20787
20784
  };
20788
20785
  }),
20789
20786
  reportId: u0,
@@ -20793,7 +20790,7 @@ const sr = async ({
20793
20790
  };
20794
20791
  await re.fetch({
20795
20792
  fetchType: m0.Post,
20796
- url: `/${H.value}/reports/email?lang=${H0()}`,
20793
+ url: `/${U.value}/reports/email?lang=${H0()}`,
20797
20794
  data: p0,
20798
20795
  requestConfig: { timeout: 1e3 * 60 * 3 }
20799
20796
  });
@@ -20893,29 +20890,29 @@ const pe = (A, I = "en") => A0().set("hour", A.hour).set("minute", A.minute).loc
20893
20890
  emits: /* @__PURE__ */ Y0(["update", "chip-closed"], ["update:timeRange", "update:selectTimeDefault"]),
20894
20891
  setup(A, { emit: I }) {
20895
20892
  const { t: O, locale: P } = ve(), B = te(A, "timeRange"), N = I, J = te(A, "selectTimeDefault");
20896
- function H(K) {
20897
- K && (B.value = K, N("update", B.value)), X.value = !1;
20893
+ function U(K) {
20894
+ K && (B.value = K, N("update", B.value)), Y.value = !1;
20898
20895
  }
20899
- function k(K) {
20900
- const q = K.split(":"), Z = A0().set("hour", Number(q[0])).set("minute", Number(q[1]));
20896
+ function q(K) {
20897
+ const Q = K.split(":"), e0 = A0().set("hour", Number(Q[0])).set("minute", Number(Q[1]));
20901
20898
  return {
20902
- hours: Number(Z.format("h")),
20903
- minutes: Number(Z.format("m")),
20904
- period: Z.format("A")
20899
+ hours: Number(e0.format("h")),
20900
+ minutes: Number(e0.format("m")),
20901
+ period: e0.format("A")
20905
20902
  };
20906
20903
  }
20907
- const Q = _0(JSON.parse(JSON.stringify(B.value)));
20908
- function V(K, q) {
20909
- Q.value.start = JSON.parse(JSON.stringify(K)), Q.value.end = JSON.parse(JSON.stringify(q));
20904
+ const H = _0(JSON.parse(JSON.stringify(B.value)));
20905
+ function X(K, Q) {
20906
+ H.value.start = JSON.parse(JSON.stringify(K)), H.value.end = JSON.parse(JSON.stringify(Q));
20910
20907
  }
20911
20908
  z0(
20912
20909
  () => [B.value, A.defaultDateRange],
20913
20910
  () => {
20914
20911
  if (B.value) {
20915
20912
  const K = A.defaultDateRange.findIndex(
20916
- (q) => {
20917
- var Z, u0, s0, l0;
20918
- return q.startTime.hour === ((Z = B.value.start) == null ? void 0 : Z.hour) && q.startTime.minute === ((u0 = B.value.start) == null ? void 0 : u0.minute) && q.endTime.hour === ((s0 = B.value.end) == null ? void 0 : s0.hour) && q.endTime.minute === ((l0 = B.value.end) == null ? void 0 : l0.minute);
20913
+ (Q) => {
20914
+ var e0, u0, s0, l0;
20915
+ return Q.startTime.hour === ((e0 = B.value.start) == null ? void 0 : e0.hour) && Q.startTime.minute === ((u0 = B.value.start) == null ? void 0 : u0.minute) && Q.endTime.hour === ((s0 = B.value.end) == null ? void 0 : s0.hour) && Q.endTime.minute === ((l0 = B.value.end) == null ? void 0 : l0.minute);
20919
20916
  }
20920
20917
  ) + 1;
20921
20918
  K !== 0 ? J.value = K : J.value = A.defaultDateRange.length + 1;
@@ -20923,50 +20920,50 @@ const pe = (A, I = "en") => A0().set("hour", A.hour).set("minute", A.minute).loc
20923
20920
  },
20924
20921
  { deep: !0, immediate: !0 }
20925
20922
  );
20926
- const X = _0(!1);
20927
- function r0(K) {
20923
+ const Y = _0(!1);
20924
+ function Z(K) {
20928
20925
  N("chip-closed", K);
20929
20926
  }
20930
- const z = R0(() => A.label ? A.label : Qe({
20927
+ const G = R0(() => A.label ? A.label : Qe({
20931
20928
  startTime: B.value.start,
20932
20929
  endTime: B.value.end,
20933
20930
  locale: P.value
20934
20931
  }));
20935
- return (K, q) => {
20936
- const Z = v0("FmChip"), u0 = v0("FmRadio"), s0 = v0("FmMenuDivider"), l0 = v0("FmRadioGroup"), c0 = v0("FmTimeInput"), p0 = v0("FmButton"), Y = v0("FmPopover");
20932
+ return (K, Q) => {
20933
+ const e0 = v0("FmChip"), u0 = v0("FmRadio"), s0 = v0("FmMenuDivider"), l0 = v0("FmRadioGroup"), c0 = v0("FmTimeInput"), p0 = v0("FmButton"), V = v0("FmPopover");
20937
20934
  return U0(), W0("div", null, [
20938
- b0(Y, {
20939
- "show-popover": X.value,
20935
+ b0(V, {
20936
+ "show-popover": Y.value,
20940
20937
  placement: "bottom",
20941
- onPopoverChanged: q[6] || (q[6] = (G) => X.value = G)
20938
+ onPopoverChanged: Q[6] || (Q[6] = (z) => Y.value = z)
20942
20939
  }, {
20943
20940
  "popover-button": J0(() => [
20944
20941
  b0(Xe, {
20945
20942
  "left-icon": A.label ? "filter_alt" : "schedule",
20946
- label: z.value,
20943
+ label: G.value,
20947
20944
  removable: A.removable,
20948
- onChipClosed: q[0] || (q[0] = (G) => r0(!0))
20945
+ onChipClosed: Q[0] || (Q[0] = (z) => Z(!0))
20949
20946
  }, null, 8, ["left-icon", "label", "removable"])
20950
20947
  ]),
20951
20948
  default: J0(() => {
20952
- var G, i0, t0, a0;
20949
+ var z, i0, r0, a0;
20953
20950
  return [
20954
20951
  w0("div", kt, [
20955
20952
  b0(l0, {
20956
20953
  modelValue: J.value,
20957
- "onUpdate:modelValue": q[1] || (q[1] = (W) => J.value = W)
20954
+ "onUpdate:modelValue": Q[1] || (Q[1] = (W) => J.value = W)
20958
20955
  }, {
20959
20956
  default: J0(() => [
20960
20957
  (U0(!0), W0(oe, null, Je(A.defaultDateRange, (W, n0) => (U0(), me(u0, {
20961
20958
  key: `range_${n0}`,
20962
20959
  value: n0 + 1,
20963
20960
  label: W.name,
20964
- onClick: (D0) => V(W.startTime, W.endTime)
20961
+ onClick: (D0) => X(W.startTime, W.endTime)
20965
20962
  }, {
20966
20963
  label: J0(() => [
20967
20964
  w0("p", Ut, [
20968
20965
  ge(P0(W.name) + " ", 1),
20969
- He(b0(Z, {
20966
+ He(b0(e0, {
20970
20967
  label: S0(O)("report.common.default"),
20971
20968
  class: "bg-fm-color-system-info-100 border-fm-color-typo-info text-fm-color-typo-info",
20972
20969
  compact: ""
@@ -20991,13 +20988,13 @@ const pe = (A, I = "en") => A0().set("hour", A.hour).set("minute", A.minute).loc
20991
20988
  w0("p", Qt, P0(S0(O)("report.date.startingTime")), 1),
20992
20989
  w0("div", Xt, [
20993
20990
  b0(c0, {
20994
- "model-value": k(`${(G = Q.value.start) == null ? void 0 : G.hour}:${(i0 = Q.value.start) == null ? void 0 : i0.minute}`),
20995
- "onUpdate:modelValue": q[2] || (q[2] = (W) => {
20996
- if (Q.value.start) {
20991
+ "model-value": q(`${(z = H.value.start) == null ? void 0 : z.hour}:${(i0 = H.value.start) == null ? void 0 : i0.minute}`),
20992
+ "onUpdate:modelValue": Q[2] || (Q[2] = (W) => {
20993
+ if (H.value.start) {
20997
20994
  const n0 = S0(A0)(`${W.hours}:${W.minutes} ${W.period}`, "h:m A").locale(
20998
20995
  S0(H0)()
20999
20996
  );
21000
- Q.value.start.hour = n0.get("hour"), Q.value.start.minute = n0.get("minute");
20997
+ H.value.start.hour = n0.get("hour"), H.value.start.minute = n0.get("minute");
21001
20998
  }
21002
20999
  })
21003
21000
  }, null, 8, ["model-value"])
@@ -21005,28 +21002,28 @@ const pe = (A, I = "en") => A0().set("hour", A.hour).set("minute", A.minute).loc
21005
21002
  w0("p", Vt, P0(S0(O)("report.date.endingTime")), 1),
21006
21003
  w0("div", Yt, [
21007
21004
  b0(c0, {
21008
- "model-value": k(`${(t0 = Q.value.end) == null ? void 0 : t0.hour}:${(a0 = Q.value.end) == null ? void 0 : a0.minute}`),
21009
- "onUpdate:modelValue": q[3] || (q[3] = (W) => {
21010
- if (Q.value.end) {
21005
+ "model-value": q(`${(r0 = H.value.end) == null ? void 0 : r0.hour}:${(a0 = H.value.end) == null ? void 0 : a0.minute}`),
21006
+ "onUpdate:modelValue": Q[3] || (Q[3] = (W) => {
21007
+ if (H.value.end) {
21011
21008
  const n0 = S0(A0)(`${W.hours}:${W.minutes} ${W.period}`, "h:m A").locale(
21012
21009
  S0(H0)()
21013
21010
  );
21014
- Q.value.end.hour = n0.get("hour"), Q.value.end.minute = n0.get("minute");
21011
+ H.value.end.hour = n0.get("hour"), H.value.end.minute = n0.get("minute");
21015
21012
  }
21016
21013
  })
21017
21014
  }, null, 8, ["model-value"])
21018
21015
  ])
21019
21016
  ], 64)) : Pe("", !0),
21020
21017
  w0("div", Gt, [
21021
- q[7] || (q[7] = w0("div", { class: "grow" }, null, -1)),
21018
+ Q[7] || (Q[7] = w0("div", { class: "grow" }, null, -1)),
21022
21019
  b0(p0, {
21023
21020
  label: S0(O)("report.common.cancel"),
21024
21021
  variant: "tertiary",
21025
- onClick: q[4] || (q[4] = (W) => X.value = !1)
21022
+ onClick: Q[4] || (Q[4] = (W) => Y.value = !1)
21026
21023
  }, null, 8, ["label"]),
21027
21024
  b0(p0, {
21028
21025
  label: S0(O)("report.common.apply"),
21029
- onClick: q[5] || (q[5] = () => H(JSON.parse(JSON.stringify(Q.value))))
21026
+ onClick: Q[5] || (Q[5] = () => U(JSON.parse(JSON.stringify(H.value))))
21030
21027
  }, null, 8, ["label"])
21031
21028
  ])
21032
21029
  ])
@@ -21062,10 +21059,10 @@ const pe = (A, I = "en") => A0().set("hour", A.hour).set("minute", A.minute).loc
21062
21059
  return z0(O, () => {
21063
21060
  O.value ? document.body.style.overflow = "hidden" : document.body.style.overflow = "scroll";
21064
21061
  }), (N, J) => {
21065
- const H = v0("FmButton"), k = v0("FmDialog");
21066
- return U0(), me(k, {
21062
+ const U = v0("FmButton"), q = v0("FmDialog");
21063
+ return U0(), me(q, {
21067
21064
  modelValue: O.value,
21068
- "onUpdate:modelValue": J[2] || (J[2] = (Q) => O.value = Q),
21065
+ "onUpdate:modelValue": J[2] || (J[2] = (H) => O.value = H),
21069
21066
  overlay: ""
21070
21067
  }, {
21071
21068
  "dialog-header": J0(() => [
@@ -21076,15 +21073,15 @@ const pe = (A, I = "en") => A0().set("hour", A.hour).set("minute", A.minute).loc
21076
21073
  ]),
21077
21074
  "dialog-footer": J0(() => [
21078
21075
  J[3] || (J[3] = w0("div", { class: "grow" }, null, -1)),
21079
- b0(H, {
21076
+ b0(U, {
21080
21077
  label: P.secondaryButtonLabel,
21081
21078
  variant: "tertiary",
21082
- onClick: J[0] || (J[0] = (Q) => O.value = !1)
21079
+ onClick: J[0] || (J[0] = (H) => O.value = !1)
21083
21080
  }, null, 8, ["label"]),
21084
- b0(H, {
21081
+ b0(U, {
21085
21082
  label: P.primaryButtonLabel,
21086
21083
  variant: "primary",
21087
- onClick: J[1] || (J[1] = (Q) => B("confirm"))
21084
+ onClick: J[1] || (J[1] = (H) => B("confirm"))
21088
21085
  }, null, 8, ["label"])
21089
21086
  ]),
21090
21087
  _: 3