@feedmepos/mf-report 5.21.12-beta.0 → 5.21.13-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 (19) hide show
  1. package/dist/{App-oQUW7dy2.js → App-Dt6ubB1t.js} +3 -3
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-9T4oMO7h.js → BaseDialog.vue_vue_type_script_setup_true_lang-B_rcaGpA.js} +732 -660
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-DkcYheYP.js → Default.vue_vue_type_script_setup_true_lang-Dy_BCSBB.js} +1 -1
  4. package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-BIxgeeUJ.js → FilterSelector.vue_vue_type_script_setup_true_lang-yanjJaxT.js} +105 -105
  5. package/dist/{InsightView-C9FgEP_6.js → InsightView-DCo1bO6l.js} +2 -2
  6. package/dist/{Layout-DnfofkhT.js → Layout-FG7P7csi.js} +1 -1
  7. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-bKn_wMql.js → MenuTab.vue_vue_type_script_setup_true_lang-CW-2kKZK.js} +3 -3
  8. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-CMWhS18T.js → NavigationTab.vue_vue_type_script_setup_true_lang-CNulYlIN.js} +1 -1
  9. package/dist/{OverviewView-ClzWkpD_.js → OverviewView-ChN1PjXK.js} +4 -4
  10. package/dist/{Report-BOrYLb0y.js → Report-BOvhR61k.js} +2 -2
  11. package/dist/{ReportEditor-D24u3Mo-.js → ReportEditor-Bd6tigyn.js} +3 -3
  12. package/dist/{ReportView-CLAaXYpF.js → ReportView-BajXZzQz.js} +5 -5
  13. package/dist/{Setting-CWHkap2V.js → Setting-BlonBllV.js} +2 -2
  14. package/dist/{TileEditor-P187soS_.js → TileEditor-BlNHckJS.js} +3 -3
  15. package/dist/{TransitionFade-rgdNNCAg.js → TransitionFade-BQyLl8zj.js} +2 -2
  16. package/dist/app.js +9 -9
  17. package/dist/assets/{formatChartData.worker-B_urmW55.js → formatChartData.worker-CWeoECGm.js} +6 -6
  18. package/dist/assets/{processTableData.worker-B_-FBESg.js → processTableData.worker-CEGZqqhL.js} +6 -6
  19. package/package.json +1 -1
@@ -1,32 +1,32 @@
1
- import { a as m0, F as y0, w as g0, b as k0, c as Ae, v as Te, e as Ce, d as h0, r as K0, m as be, u as Fe } from "./vue-i18n-Ddfg_5-j.js";
1
+ import { a as m0, F as y0, w as g0, b as k0, c as Ce, v as be, e as Fe, d as h0, r as K0, m as Ie, u as Me } from "./vue-i18n-Ddfg_5-j.js";
2
2
  import { storeToRefs as p0, defineStore as B0 } from "pinia";
3
- import { ref as o0, computed as C0, watch as U0, h as Ie, defineComponent as se, mergeModels as N0, useModel as z0, resolveComponent as A0, createElementBlock as V0, openBlock as P0, createVNode as S0, withCtx as b0, createElementVNode as E0, createCommentVNode as Me, Fragment as re, renderList as Re, createBlock as le, createTextVNode as _e, withDirectives as xe, toDisplayString as T0, unref as $0, vShow as Le, renderSlot as Oe } from "vue";
4
- import { useSnackbar as De, components as we } from "@feedmepos/ui-library";
5
- import { useRouter as ve } from "vue-router";
3
+ import { ref as o0, computed as C0, watch as U0, h as Re, defineComponent as _e, mergeModels as N0, useModel as z0, resolveComponent as A0, createElementBlock as V0, openBlock as P0, createVNode as S0, withCtx as b0, createElementVNode as E0, createCommentVNode as xe, Fragment as re, renderList as Le, createBlock as De, createTextVNode as de, withDirectives as Oe, toDisplayString as T0, unref as $0, vShow as we, renderSlot as ve } from "vue";
4
+ import { useSnackbar as ce, components as Pe } from "@feedmepos/ui-library";
5
+ import { useRouter as Be } from "vue-router";
6
6
  import { detectLocale as F0 } from "@feedmepos/mf-common";
7
- import { c as Pe, a as Be } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BPgwa2JR.js";
8
- function de(T) {
7
+ import { c as Je, a as He } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BPgwa2JR.js";
8
+ function pe(T) {
9
9
  throw new Error('Could not dynamically require "' + T + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
10
10
  }
11
- var ce = {};
11
+ var fe = {};
12
12
  (function(T) {
13
- var x = typeof globalThis < "u" ? globalThis : window, O = Object.create(x);
14
- O.scheduleImmediate = typeof setImmediate < "u" ? function(B) {
13
+ var R = typeof globalThis < "u" ? globalThis : window, L = Object.create(R);
14
+ L.scheduleImmediate = typeof setImmediate < "u" ? function(B) {
15
15
  setImmediate(B);
16
16
  } : function(B) {
17
17
  setTimeout(B, 0);
18
- }, O.exports = T, typeof process < "u" && (O.process = process), typeof __dirname < "u" && (O.__dirname = __dirname), typeof __filename < "u" && (O.__filename = __filename), typeof Buffer < "u" && (O.Buffer = Buffer);
19
- var H = !x.window;
18
+ }, L.exports = T, typeof process < "u" && (L.process = process), typeof __dirname < "u" && (L.__dirname = __dirname), typeof __filename < "u" && (L.__filename = __filename), typeof Buffer < "u" && (L.Buffer = Buffer);
19
+ var H = !R.window;
20
20
  try {
21
- typeof WorkerGlobalScope < "u" && x instanceof WorkerGlobalScope && (H = !1), typeof process < "u" && process.versions && process.versions.hasOwnProperty("electron") && process.versions.hasOwnProperty("node") && (H = !0);
21
+ typeof WorkerGlobalScope < "u" && R instanceof WorkerGlobalScope && (H = !1), typeof process < "u" && process.versions && process.versions.hasOwnProperty("electron") && process.versions.hasOwnProperty("node") && (H = !0);
22
22
  } catch {
23
23
  }
24
24
  if (H) {
25
- var P = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : de)("url");
26
- Object.defineProperty(O, "location", {
25
+ var v = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : pe)("url");
26
+ Object.defineProperty(L, "location", {
27
27
  value: {
28
28
  get href() {
29
- return P.pathToFileURL ? P.pathToFileURL(process.cwd()).href + "/" : "file://" + function() {
29
+ return v.pathToFileURL ? v.pathToFileURL(process.cwd()).href + "/" : "file://" + function() {
30
30
  var B = process.cwd();
31
31
  return process.platform != "win32" ? B : "/" + B.replace(/\\/g, "/");
32
32
  }() + "/";
@@ -36,24 +36,24 @@ var ce = {};
36
36
  function B() {
37
37
  try {
38
38
  throw new Error();
39
- } catch (Y) {
40
- var k = Y.stack, q = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), U = null;
39
+ } catch (X) {
40
+ var k = X.stack, q = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), U = null;
41
41
  do {
42
- var z = q.exec(k);
43
- z != null && (U = z);
44
- } while (z != null);
42
+ var V = q.exec(k);
43
+ V != null && (U = V);
44
+ } while (V != null);
45
45
  return U[1];
46
46
  }
47
47
  }
48
48
  var N = null;
49
- Object.defineProperty(O, "document", {
49
+ Object.defineProperty(L, "document", {
50
50
  value: {
51
51
  get currentScript() {
52
52
  return N == null && (N = { src: B() }), N;
53
53
  }
54
54
  }
55
55
  });
56
- }(), O.dartDeferredLibraryLoader = function(B, N, k) {
56
+ }(), L.dartDeferredLibraryLoader = function(B, N, k) {
57
57
  try {
58
58
  load(B), N();
59
59
  } catch (q) {
@@ -96,7 +96,7 @@ var ce = {};
96
96
  }
97
97
  return !1;
98
98
  }();
99
- function z(n, e) {
99
+ function V(n, e) {
100
100
  if (n.prototype.constructor = n, n.prototype["$is" + n.name] = n, e != null) {
101
101
  if (U) {
102
102
  n.prototype.__proto__ = e.prototype;
@@ -106,9 +106,9 @@ var ce = {};
106
106
  N(n.prototype, r), n.prototype = r;
107
107
  }
108
108
  }
109
- function Y(n, e) {
109
+ function X(n, e) {
110
110
  for (var r = 0; r < e.length; r++)
111
- z(e[r], n);
111
+ V(e[r], n);
112
112
  }
113
113
  function i0(n, e) {
114
114
  q(e.prototype, n.prototype), n.prototype.constructor = n;
@@ -133,7 +133,7 @@ var ce = {};
133
133
  return o;
134
134
  };
135
135
  }
136
- function X(n, e, r, i) {
136
+ function G(n, e, r, i) {
137
137
  var u = n;
138
138
  n[e] = u, n[r] = function() {
139
139
  return n[e] === u && (n[e] = i()), n[r] = function() {
@@ -160,7 +160,7 @@ var ce = {};
160
160
  function s0(n) {
161
161
  return n;
162
162
  }
163
- function l0(n) {
163
+ function _0(n) {
164
164
  for (var e = 0; e < n.length; ++e)
165
165
  n[e];
166
166
  }
@@ -179,19 +179,19 @@ var ce = {};
179
179
  };
180
180
  }
181
181
  var Q = 0;
182
- function V(n, e, r, i, u, o, s, l, D, d) {
182
+ function Y(n, e, r, i, u, o, s, l, D, d) {
183
183
  return typeof l == "number" && (l += Q), { co: n, iS: e, iI: r, rC: i, dV: u, cs: o, fs: s, fT: l, aI: D || 0, nDA: d };
184
184
  }
185
185
  function r0(n, e, r, i, u, o, s, l) {
186
- var D = V(n, !0, !1, r, i, u, o, s, l, !1), d = c0(D);
186
+ var D = Y(n, !0, !1, r, i, u, o, s, l, !1), d = c0(D);
187
187
  n[e] = d;
188
188
  }
189
- function K(n, e, r, i, u, o, s, l, D, d) {
189
+ function e0(n, e, r, i, u, o, s, l, D, d) {
190
190
  r = !!r;
191
- var c = V(n, !1, r, i, u, o, s, l, D, !!d), p = d0(r, c);
191
+ var c = Y(n, !1, r, i, u, o, s, l, D, !!d), p = d0(r, c);
192
192
  n[e] = p;
193
193
  }
194
- function e0(n) {
194
+ function n0(n) {
195
195
  var e = C.interceptorsByTag;
196
196
  if (!e) {
197
197
  C.interceptorsByTag = n;
@@ -199,7 +199,7 @@ var ce = {};
199
199
  }
200
200
  N(n, e);
201
201
  }
202
- function G(n) {
202
+ function z(n) {
203
203
  var e = C.leafTags;
204
204
  if (!e) {
205
205
  C.leafTags = n;
@@ -207,24 +207,24 @@ var ce = {};
207
207
  }
208
208
  N(n, e);
209
209
  }
210
- function n0(n) {
210
+ function t0(n) {
211
211
  var e = C.types, r = e.length;
212
212
  return e.push.apply(e, n), r;
213
213
  }
214
- function D0(n, e) {
214
+ function l0(n, e) {
215
215
  return N(e, n), n;
216
216
  }
217
- var t0 = function() {
217
+ var K = function() {
218
218
  var n = function(r, i, u, o, s) {
219
219
  return function(l, D, d, c) {
220
- return K(l, D, r, i, u, o, [d], c, s, !1);
220
+ return e0(l, D, r, i, u, o, [d], c, s, !1);
221
221
  };
222
222
  }, e = function(r, i, u, o) {
223
223
  return function(s, l, D, d) {
224
224
  return r0(s, l, r, i, u, [D], d, o);
225
225
  };
226
226
  };
227
- return { inherit: z, inheritMany: Y, mixin: i0, mixinHard: j, installStaticTearOff: r0, installInstanceTearOff: K, _instance_0u: n(0, 0, null, ["call$0"], 0), _instance_1u: n(0, 1, null, ["call$1"], 0), _instance_2u: n(0, 2, null, ["call$2"], 0), _instance_0i: n(1, 0, null, ["call$0"], 0), _instance_1i: n(1, 1, null, ["call$1"], 0), _instance_2i: n(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: a0, lazy: X, lazyFinal: u0, lazyOld: Z, updateHolder: D0, convertToFastObject: s0, updateTypes: n0, setOrUpdateInterceptorsByTag: e0, setOrUpdateLeafTags: G };
227
+ return { inherit: V, inheritMany: X, mixin: i0, mixinHard: j, installStaticTearOff: r0, installInstanceTearOff: e0, _instance_0u: n(0, 0, null, ["call$0"], 0), _instance_1u: n(0, 1, null, ["call$1"], 0), _instance_2u: n(0, 2, null, ["call$2"], 0), _instance_0i: n(1, 0, null, ["call$0"], 0), _instance_1i: n(1, 1, null, ["call$1"], 0), _instance_2i: n(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: a0, lazy: G, lazyFinal: u0, lazyOld: Z, updateHolder: l0, convertToFastObject: s0, updateTypes: t0, setOrUpdateInterceptorsByTag: n0, setOrUpdateLeafTags: z };
228
228
  }(), t = {
229
229
  JS_CONST: function() {
230
230
  },
@@ -261,8 +261,8 @@ var ce = {};
261
261
  }
262
262
  },
263
263
  Sort__dualPivotQuicksort(n, e, r, i) {
264
- var u, o, s, l, D, d, c, p, y, g, m = _.JSInt_methods._tdivFast$1(r - e + 1, 6), h = e + m, A = r - m, b = _.JSInt_methods._tdivFast$1(e + r, 2), M = b - m, F = b + m, I = a.getInterceptor$asx(n), R = I.$index(n, h), w = I.$index(n, M), L = I.$index(n, b), J = I.$index(n, F), v = I.$index(n, A);
265
- if (i.call$2(R, w) > 0 && (u = w, w = R, R = u), i.call$2(J, v) > 0 && (u = v, v = J, J = u), i.call$2(R, L) > 0 && (u = L, L = R, R = u), i.call$2(w, L) > 0 && (u = L, L = w, w = u), i.call$2(R, J) > 0 && (u = J, J = R, R = u), i.call$2(L, J) > 0 && (u = J, J = L, L = u), i.call$2(w, v) > 0 && (u = v, v = w, w = u), i.call$2(w, L) > 0 && (u = L, L = w, w = u), i.call$2(J, v) > 0 && (u = v, v = J, J = u), I.$indexSet(n, h, R), I.$indexSet(n, b, L), I.$indexSet(n, A, v), I.$indexSet(n, M, I.$index(n, e)), I.$indexSet(n, F, I.$index(n, r)), o = e + 1, s = r - 1, a.$eq$(i.call$2(w, J), 0)) {
264
+ var u, o, s, l, D, d, c, p, y, g, m = _.JSInt_methods._tdivFast$1(r - e + 1, 6), h = e + m, A = r - m, b = _.JSInt_methods._tdivFast$1(e + r, 2), M = b - m, F = b + m, I = a.getInterceptor$asx(n), x = I.$index(n, h), w = I.$index(n, M), O = I.$index(n, b), J = I.$index(n, F), P = I.$index(n, A);
265
+ if (i.call$2(x, w) > 0 && (u = w, w = x, x = u), i.call$2(J, P) > 0 && (u = P, P = J, J = u), i.call$2(x, O) > 0 && (u = O, O = x, x = u), i.call$2(w, O) > 0 && (u = O, O = w, w = u), i.call$2(x, J) > 0 && (u = J, J = x, x = u), i.call$2(O, J) > 0 && (u = J, J = O, O = u), i.call$2(w, P) > 0 && (u = P, P = w, w = u), i.call$2(w, O) > 0 && (u = O, O = w, w = u), i.call$2(J, P) > 0 && (u = P, P = J, J = u), I.$indexSet(n, h, x), I.$indexSet(n, b, O), I.$indexSet(n, A, P), I.$indexSet(n, M, I.$index(n, e)), I.$indexSet(n, F, I.$index(n, r)), o = e + 1, s = r - 1, a.$eq$(i.call$2(w, J), 0)) {
266
266
  for (l = o; l <= s; ++l)
267
267
  if (D = I.$index(n, l), d = i.call$2(D, w), d !== 0)
268
268
  if (d < 0)
@@ -659,12 +659,12 @@ var ce = {};
659
659
  return e;
660
660
  },
661
661
  Closure_fromTearOff(n) {
662
- var e, r, i, u, o, s, l, D, d, c, p = n.co, y = n.iS, g = n.iI, m = n.nDA, h = n.aI, A = n.fs, b = n.cs, M = A[0], F = b[0], I = p[M], R = n.fT;
663
- for (R.toString, e = Object.create(y ? new t.StaticClosure().constructor.prototype : new t.BoundClosure(null, null).constructor.prototype), e.$initialize = e.constructor, y ? r = function() {
662
+ var e, r, i, u, o, s, l, D, d, c, p = n.co, y = n.iS, g = n.iI, m = n.nDA, h = n.aI, A = n.fs, b = n.cs, M = A[0], F = b[0], I = p[M], x = n.fT;
663
+ for (x.toString, e = Object.create(y ? new t.StaticClosure().constructor.prototype : new t.BoundClosure(null, null).constructor.prototype), e.$initialize = e.constructor, y ? r = function() {
664
664
  this.$initialize();
665
- } : r = function(L, J) {
666
- this.$initialize(L, J);
667
- }, e.constructor = r, r.prototype = e, e.$_name = M, e.$_target = I, i = !y, i ? u = t.Closure_forwardCallTo(M, I, g, m) : (e.$static_name = M, u = I), e.$signature = t.Closure__computeSignatureFunctionNewRti(R, y, g), e[F] = u, o = u, s = 1; s < A.length; ++s)
665
+ } : r = function(O, J) {
666
+ this.$initialize(O, J);
667
+ }, e.constructor = r, r.prototype = e, e.$_name = M, e.$_target = I, i = !y, i ? u = t.Closure_forwardCallTo(M, I, g, m) : (e.$static_name = M, u = I), e.$signature = t.Closure__computeSignatureFunctionNewRti(x, y, g), e[F] = u, o = u, s = 1; s < A.length; ++s)
668
668
  l = A[s], typeof l == "string" ? (D = p[l], d = l, l = D) : d = "", c = b[s], c != null && (i && (l = t.Closure_forwardCallTo(d, l, g, m)), e[c] = l), s === h && (o = l);
669
669
  return e["call*"] = o, e.$requiredArgCount = n.rC, e.$defaultValues = n.dV, r;
670
670
  },
@@ -1394,7 +1394,7 @@ var ce = {};
1394
1394
  return o + "})";
1395
1395
  },
1396
1396
  _functionRtiToString(n, e, r) {
1397
- var i, u, o, s, l, D, d, c, p, y, g, m, h, A, b, M, F, I, R, w, L, J = ", ";
1397
+ var i, u, o, s, l, D, d, c, p, y, g, m, h, A, b, M, F, I, x, w, O, J = ", ";
1398
1398
  if (r != null) {
1399
1399
  for (i = r.length, e == null ? (e = t._setArrayType([], $.JSArray_String), u = null) : u = e.length, o = e.length, s = i; s > 0; --s)
1400
1400
  e.push("T" + (o + s));
@@ -1403,19 +1403,19 @@ var ce = {};
1403
1403
  d += ">";
1404
1404
  } else
1405
1405
  d = "", u = null;
1406
- for (l = n._primary, m = n._rest, h = m._requiredPositional, A = h.length, b = m._optionalPositional, M = b.length, F = m._named, I = F.length, R = t._rtiToString(l, e), w = "", L = "", s = 0; s < A; ++s, L = J)
1407
- w += L + t._rtiToString(h[s], e);
1406
+ for (l = n._primary, m = n._rest, h = m._requiredPositional, A = h.length, b = m._optionalPositional, M = b.length, F = m._named, I = F.length, x = t._rtiToString(l, e), w = "", O = "", s = 0; s < A; ++s, O = J)
1407
+ w += O + t._rtiToString(h[s], e);
1408
1408
  if (M > 0) {
1409
- for (w += L + "[", L = "", s = 0; s < M; ++s, L = J)
1410
- w += L + t._rtiToString(b[s], e);
1409
+ for (w += O + "[", O = "", s = 0; s < M; ++s, O = J)
1410
+ w += O + t._rtiToString(b[s], e);
1411
1411
  w += "]";
1412
1412
  }
1413
1413
  if (I > 0) {
1414
- for (w += L + "{", L = "", s = 0; s < I; s += 3, L = J)
1415
- w += L, F[s + 1] && (w += "required "), w += t._rtiToString(F[s + 2], e) + " " + F[s];
1414
+ for (w += O + "{", O = "", s = 0; s < I; s += 3, O = J)
1415
+ w += O, F[s + 1] && (w += "required "), w += t._rtiToString(F[s + 2], e) + " " + F[s];
1416
1416
  w += "}";
1417
1417
  }
1418
- return u != null && (e.toString, e.length = u), d + "(" + w + ") => " + R;
1418
+ return u != null && (e.toString, e.length = u), d + "(" + w + ") => " + x;
1419
1419
  },
1420
1420
  _rtiToString(n, e) {
1421
1421
  var r, i, u, o, s, l, D = n._kind;
@@ -1773,7 +1773,7 @@ var ce = {};
1773
1773
  return D === 12 ? e === $.JavaScriptFunction ? !0 : o ? !1 : t._isFunctionSubtype(n, e, r, i, u) : s === 9 ? D !== 9 ? !1 : t._isInterfaceSubtype(n, e, r, i, u) : (o = s === 11, o && i === $.Record ? !0 : o && D === 11 ? t._isRecordSubtype(n, e, r, i, u) : !1);
1774
1774
  },
1775
1775
  _isFunctionSubtype(n, e, r, i, u) {
1776
- var o, s, l, D, d, c, p, y, g, m, h, A, b, M, F, I, R, w, L, J, v, W;
1776
+ var o, s, l, D, d, c, p, y, g, m, h, A, b, M, F, I, x, w, O, J, P, W;
1777
1777
  if (!t._isSubtype(n, e._primary, r, i._primary, u) || (o = e._rest, s = i._rest, l = o._requiredPositional, D = s._requiredPositional, d = l.length, c = D.length, d > c) || (p = c - d, y = o._optionalPositional, g = s._optionalPositional, m = y.length, h = g.length, d + m < c + h))
1778
1778
  return !1;
1779
1779
  for (A = 0; A < d; ++A)
@@ -1785,16 +1785,16 @@ var ce = {};
1785
1785
  for (A = 0; A < h; ++A)
1786
1786
  if (b = y[p + A], !t._isSubtype(n, g[A], u, b, r))
1787
1787
  return !1;
1788
- for (M = o._named, F = s._named, I = M.length, R = F.length, w = 0, L = 0; L < R; L += 3)
1789
- for (J = F[L]; ; ) {
1790
- if (w >= I || (v = M[w], w += 3, J < v))
1788
+ for (M = o._named, F = s._named, I = M.length, x = F.length, w = 0, O = 0; O < x; O += 3)
1789
+ for (J = F[O]; ; ) {
1790
+ if (w >= I || (P = M[w], w += 3, J < P))
1791
1791
  return !1;
1792
- if (W = M[w - 2], v < J) {
1792
+ if (W = M[w - 2], P < J) {
1793
1793
  if (W)
1794
1794
  return !1;
1795
1795
  continue;
1796
1796
  }
1797
- if (b = F[L + 1], W && !b || (b = M[w - 1], !t._isSubtype(n, F[L + 2], u, b, r)))
1797
+ if (b = F[O + 1], W && !b || (b = M[w - 1], !t._isSubtype(n, F[O + 2], u, b, r)))
1798
1798
  return !1;
1799
1799
  break;
1800
1800
  }
@@ -2885,8 +2885,8 @@ and target_table.docId in UNNEST(@docIds)
2885
2885
  return t.Schema$(n, e, F, i, u, o ?? 300, s, l, D, d, I, p, y, g, m, h, A, b, M);
2886
2886
  },
2887
2887
  Schema_fromJson(n) {
2888
- var e, r, i, u, o, s, l, D, d, c, p, y, g, m = a.map$1$ax(n.$index(0, "fields"), new t.Schema_fromJson_closure()).toList$0(0), h = n.$index(0, "label"), A = t.EnumByName_byName(_.List_W7J, n.$index(0, "name")), b = a.map$1$ax(n.$index(0, "joins"), new t.Schema_fromJson_closure0()).toList$0(0), M = t.TopLevelFilters_fromJson(n.$index(0, "topLevelFilters")), F = n.$index(0, "source"), I = t.EnumByName_byName(_.List_SOURCE_TYPE_0_SOURCE_TYPE_1, F.$index(0, "type")), R = F.$index(0, "table");
2889
- return F = F.$index(0, "field"), e = n.$index(0, "rawTableName"), r = n.$index(0, "dynamicRawTable"), i = n.$index(0, "materializedTableName"), u = n.$index(0, "materializedPostgresqlTableName"), o = n.$index(0, "isJoinOnly"), s = n.$index(0, "isMaterializeOnly"), l = n.$index(0, "isContinuousUpdate"), D = n.$index(0, "interval"), d = n.$index(0, "partition"), c = n.$index(0, "clusters"), c == null && (c = t._setArrayType([], $.JSArray_String)), p = n.$index(0, "indexes"), p = p == null ? null : a.map$1$ax(p, new t.Schema_fromJson_closure1()), p == null && (p = t._setArrayType([], $.JSArray_Index)), y = n.$index(0, "filters"), y = y == null ? null : a.map$1$ax(y, new t.Schema_fromJson_closure2()).toList$0(0), y == null && (y = t._setArrayType([], $.JSArray_QueryRequestFilter)), g = n.$index(0, "isGlobal"), g == null && (g = !1), t.Schema$(c, r, m, y, p, D, l, g, o, s, b, h, u, i, A, d, e, new t.Source(I, R, F), M);
2888
+ var e, r, i, u, o, s, l, D, d, c, p, y, g, m = a.map$1$ax(n.$index(0, "fields"), new t.Schema_fromJson_closure()).toList$0(0), h = n.$index(0, "label"), A = t.EnumByName_byName(_.List_W7J, n.$index(0, "name")), b = a.map$1$ax(n.$index(0, "joins"), new t.Schema_fromJson_closure0()).toList$0(0), M = t.TopLevelFilters_fromJson(n.$index(0, "topLevelFilters")), F = n.$index(0, "source"), I = t.EnumByName_byName(_.List_SOURCE_TYPE_0_SOURCE_TYPE_1, F.$index(0, "type")), x = F.$index(0, "table");
2889
+ return F = F.$index(0, "field"), e = n.$index(0, "rawTableName"), r = n.$index(0, "dynamicRawTable"), i = n.$index(0, "materializedTableName"), u = n.$index(0, "materializedPostgresqlTableName"), o = n.$index(0, "isJoinOnly"), s = n.$index(0, "isMaterializeOnly"), l = n.$index(0, "isContinuousUpdate"), D = n.$index(0, "interval"), d = n.$index(0, "partition"), c = n.$index(0, "clusters"), c == null && (c = t._setArrayType([], $.JSArray_String)), p = n.$index(0, "indexes"), p = p == null ? null : a.map$1$ax(p, new t.Schema_fromJson_closure1()), p == null && (p = t._setArrayType([], $.JSArray_Index)), y = n.$index(0, "filters"), y = y == null ? null : a.map$1$ax(y, new t.Schema_fromJson_closure2()).toList$0(0), y == null && (y = t._setArrayType([], $.JSArray_QueryRequestFilter)), g = n.$index(0, "isGlobal"), g == null && (g = !1), t.Schema$(c, r, m, y, p, D, l, g, o, s, b, h, u, i, A, d, e, new t.Source(I, x, F), M);
2890
2890
  },
2891
2891
  Field_Field$numeric(n, e, r, i, u, o, s) {
2892
2892
  return new t._NumericField(i, u, _.DATA_TYPE_3, n, o, r, e, s);
@@ -3887,8 +3887,8 @@ and target_table.docId in UNNEST(@docIds)
3887
3887
  this.$this = e;
3888
3888
  },
3889
3889
  TableDatasourceConfigModel: function(e, r, i, u, o, s, l, D, d, c, p, y, g, m, h, A, b, M, F, I) {
3890
- var R = this;
3891
- R.columnsWidth = e, R.isDrillable = r, R.showGrandTotal = i, R.rollup = u, R.rollupPosition = o, R.rowsPerPage = s, R.isBlend = l, R._table_datasource_config_model$_drillDimension = D, R._rowIds = d, R._columnIds = c, R._joinDatasources = p, R.schemaNames = y, R.dimensions = g, R.metrics = m, R.filters = h, R.sorts = A, R.limit = b, R.isComparable = M, R.periodType = F, R.timezone = I;
3890
+ var x = this;
3891
+ x.columnsWidth = e, x.isDrillable = r, x.showGrandTotal = i, x.rollup = u, x.rollupPosition = o, x.rowsPerPage = s, x.isBlend = l, x._table_datasource_config_model$_drillDimension = D, x._rowIds = d, x._columnIds = c, x._joinDatasources = p, x.schemaNames = y, x.dimensions = g, x.metrics = m, x.filters = h, x.sorts = A, x.limit = b, x.isComparable = M, x.periodType = F, x.timezone = I;
3892
3892
  },
3893
3893
  TableDatasourceConfigModel_drilledDimensions_closure: function(e) {
3894
3894
  this.$this = e;
@@ -4044,7 +4044,7 @@ and target_table.docId in UNNEST(@docIds)
4044
4044
  return i = new t.Connection("", "", i.$index(n, "sourceDatasetId"), i.$index(n, "targetDatasetId")), e = S.$get$defaultSchemas(), r = new t.SchemaLibrary(e), r.SchemaLibrary$2$connection$schemas(i, e), new t.QueryEngine(new t.QueryEngineContext(i, r));
4045
4045
  },
4046
4046
  getMergeInfoSql(n) {
4047
- var e, r, i, u, o, s, l, D, d, c, p = "CAST(JSON_VALUE(", y = ", '$._restaurantId') AS STRING) AS restaurantId,", g = _.C_JsonCodec.decode$2$reviver(O.JSON.stringify(n), null), m = a.getInterceptor$asx(g), h = t._getQueryEngine(m.$index(g, "bigQuery"));
4047
+ var e, r, i, u, o, s, l, D, d, c, p = "CAST(JSON_VALUE(", y = ", '$._restaurantId') AS STRING) AS restaurantId,", g = _.C_JsonCodec.decode$2$reviver(L.JSON.stringify(n), null), m = a.getInterceptor$asx(g), h = t._getQueryEngine(m.$index(g, "bigQuery"));
4048
4048
  return m = m.$index(g, "request"), e = t.Schema_fromJson(m.$index(0, "schema")), r = m.$index(0, "start"), m = m.$index(0, "end"), e.setConnection$1(h.context.connection), i = a.contains$1$asx(e.clusters, "restaurantId"), u = e.source.field, o = u != null, s = e.get$fullRawTableName(), l = e.getTransformedTableQuery$1$getParentDocs(!0), D = o ? `child_table AS (
4049
4049
  ` + e.getTransformedTableQuery$1$getParentDocs(!1) + `
4050
4050
  ),
@@ -4081,36 +4081,36 @@ select
4081
4081
  `;
4082
4082
  },
4083
4083
  getClearTableSql(n) {
4084
- var e = _.C_JsonCodec.decode$2$reviver(O.JSON.stringify(n), null), r = a.getInterceptor$asx(e), i = t._getQueryEngine(r.$index(e, "bigQuery"));
4084
+ var e = _.C_JsonCodec.decode$2$reviver(L.JSON.stringify(n), null), r = a.getInterceptor$asx(e), i = t._getQueryEngine(r.$index(e, "bigQuery"));
4085
4085
  return r = t.Schema_fromJson(r.$index(e, "request").$index(0, "schema")), r.setConnection$1(i.context.connection), "DELETE FROM " + r.get$fullMaterializedTableName() + ` where true;
4086
4086
  `;
4087
4087
  },
4088
4088
  getMergeSql(n) {
4089
- var e, r, i, u, o, s = _.C_JsonCodec.decode$2$reviver(O.JSON.stringify(n), null), l = a.getInterceptor$asx(s), D = t._getQueryEngine(l.$index(s, "bigQuery"));
4089
+ var e, r, i, u, o, s = _.C_JsonCodec.decode$2$reviver(L.JSON.stringify(n), null), l = a.getInterceptor$asx(s), D = t._getQueryEngine(l.$index(s, "bigQuery"));
4090
4090
  return l = l.$index(s, "request"), e = t.Schema_fromJson(l.$index(0, "schema")), r = l.$index(0, "publishStartedAt"), i = l.$index(0, "publishEndedAt"), u = l.$index(0, "docIds"), o = l.$index(0, "restaurantIds"), l = l.$index(0, "updateTimestamps"), e.setConnection$1(D.context.connection), t.Materialize_getMergeSql(e, u, i, r, o, e, l);
4091
4091
  },
4092
4092
  getSchemas(n) {
4093
- var e = t._getQueryEngine(_.C_JsonCodec.decode$2$reviver(O.JSON.stringify(n), null)).context.schemaLibrary._schemas, r = t._arrayInstanceType(e)._eval$1("MappedListIterable<1,Map<String,@>>");
4094
- return O.JSON.parse(_.C_JsonCodec.encode$2$toEncodable(t.List_List$of(new t.MappedListIterable(e, new t.getSchemas_closure(), r), !0, r._eval$1("ListIterable.E")), null));
4093
+ var e = t._getQueryEngine(_.C_JsonCodec.decode$2$reviver(L.JSON.stringify(n), null)).context.schemaLibrary._schemas, r = t._arrayInstanceType(e)._eval$1("MappedListIterable<1,Map<String,@>>");
4094
+ return L.JSON.parse(_.C_JsonCodec.encode$2$toEncodable(t.List_List$of(new t.MappedListIterable(e, new t.getSchemas_closure(), r), !0, r._eval$1("ListIterable.E")), null));
4095
4095
  },
4096
4096
  getVisualizationSchemas(n) {
4097
- var e = t._getQueryEngine(a.$index$asx(_.C_JsonCodec.decode$2$reviver(O.JSON.stringify(n), null), "bigQuery")).context.schemaLibrary.get$visualizationSchemas(), r = t._arrayInstanceType(e)._eval$1("MappedListIterable<1,Map<String,@>>");
4098
- return O.JSON.parse(_.C_JsonCodec.encode$2$toEncodable(t.List_List$of(new t.MappedListIterable(e, new t.getVisualizationSchemas_closure(), r), !0, r._eval$1("ListIterable.E")), null));
4097
+ var e = t._getQueryEngine(a.$index$asx(_.C_JsonCodec.decode$2$reviver(L.JSON.stringify(n), null), "bigQuery")).context.schemaLibrary.get$visualizationSchemas(), r = t._arrayInstanceType(e)._eval$1("MappedListIterable<1,Map<String,@>>");
4098
+ return L.JSON.parse(_.C_JsonCodec.encode$2$toEncodable(t.List_List$of(new t.MappedListIterable(e, new t.getVisualizationSchemas_closure(), r), !0, r._eval$1("ListIterable.E")), null));
4099
4099
  },
4100
4100
  requestJsonToSql(n) {
4101
- var e = _.C_JsonCodec.decode$2$reviver(O.JSON.stringify(n), null), r = a.getInterceptor$asx(e);
4102
- return O.JSON.parse(_.C_JsonCodec.encode$2$toEncodable(t._getQueryEngine(r.$index(e, "bigQuery")).getSql$1(t._setArrayType([t.QueryRequest_fromJson(r.$index(e, "request"))], $.JSArray_QueryRequest)), null));
4101
+ var e = _.C_JsonCodec.decode$2$reviver(L.JSON.stringify(n), null), r = a.getInterceptor$asx(e);
4102
+ return L.JSON.parse(_.C_JsonCodec.encode$2$toEncodable(t._getQueryEngine(r.$index(e, "bigQuery")).getSql$1(t._setArrayType([t.QueryRequest_fromJson(r.$index(e, "request"))], $.JSArray_QueryRequest)), null));
4103
4103
  },
4104
4104
  sqlResponsesToQueryResponses(n) {
4105
- var e, r = _.C_JsonCodec.decode$2$reviver(O.JSON.stringify(n), null), i = a.getInterceptor$asx(r), u = t._getQueryEngine(i.$index(r, "bigQuery"));
4106
- return i = t.ListExtensions_mapIndexed(a.map$1$ax(i.$index(r, "requests"), new t.sqlResponsesToQueryResponses_closure()).toList$0(0), new t.sqlResponsesToQueryResponses_closure0(i.$index(r, "sqlResponses"), u), $.QueryRequest, $.QueryResponse), e = t.List_List$of(i, !0, i.$ti._eval$1("Iterable.E")), i = t._arrayInstanceType(e)._eval$1("MappedListIterable<1,Map<String,@>>"), O.JSON.parse(_.C_JsonCodec.encode$2$toEncodable(t.List_List$of(new t.MappedListIterable(e, new t.sqlResponsesToQueryResponses_closure1(), i), !0, i._eval$1("ListIterable.E")), null));
4105
+ var e, r = _.C_JsonCodec.decode$2$reviver(L.JSON.stringify(n), null), i = a.getInterceptor$asx(r), u = t._getQueryEngine(i.$index(r, "bigQuery"));
4106
+ return i = t.ListExtensions_mapIndexed(a.map$1$ax(i.$index(r, "requests"), new t.sqlResponsesToQueryResponses_closure()).toList$0(0), new t.sqlResponsesToQueryResponses_closure0(i.$index(r, "sqlResponses"), u), $.QueryRequest, $.QueryResponse), e = t.List_List$of(i, !0, i.$ti._eval$1("Iterable.E")), i = t._arrayInstanceType(e)._eval$1("MappedListIterable<1,Map<String,@>>"), L.JSON.parse(_.C_JsonCodec.encode$2$toEncodable(t.List_List$of(new t.MappedListIterable(e, new t.sqlResponsesToQueryResponses_closure1(), i), !0, i._eval$1("ListIterable.E")), null));
4107
4107
  },
4108
4108
  getQueryRequests(n) {
4109
- var e, r, i, u, o, s, l, D, d, c, p = _.C_JsonCodec.decode$2$reviver(O.JSON.stringify(n), null), y = a.getInterceptor$asx(p), g = t.ReportWidgetModel_fromJson(y.$index(p, "widget")), m = a.map$1$ax(y.$index(p, "dateRange"), new t.getQueryRequests_closure()).toList$0(0), h = y.$index(p, "compareDateRange");
4110
- return h == null && (h = []), e = a.map$1$ax(h, new t.getQueryRequests_closure0()).toList$0(0), r = a.map$1$ax(y.$index(p, "timeRange"), new t.getQueryRequests_closure1()).toList$0(0), i = a.map$1$ax(y.$index(p, "restaurantIds"), new t.getQueryRequests_closure2()).toList$0(0), u = a.map$1$ax(y.$index(p, "warehouseIds"), new t.getQueryRequests_closure3()).toList$0(0), o = a.map$1$ax(y.$index(p, "businessIds"), new t.getQueryRequests_closure4()).toList$0(0), s = y.$index(p, "timezone"), y = g.config, h = t._arrayInstanceType(m)._eval$1("MappedListIterable<1,@>"), l = t._arrayInstanceType(r)._eval$1("MappedListIterable<1,@>"), D = l._eval$1("ListIterable.E"), d = y.toRequests$1(new t.GlobalFilterModel(t.List_List$of(new t.MappedListIterable(m, new t.getQueryRequests_closure5(), h), !0, h._eval$1("ListIterable.E")), t.List_List$of(new t.MappedListIterable(r, new t.getQueryRequests_closure6(), l), !0, D), i, u, o, !1, s)), e.length !== 0 && y.isComparable === !0 && (h = t.List_List$of(d, !0, $.QueryRequest), c = t._arrayInstanceType(e)._eval$1("MappedListIterable<1,@>"), _.JSArray_methods.addAll$1(h, y.toRequests$1(new t.GlobalFilterModel(t.List_List$of(new t.MappedListIterable(e, new t.getQueryRequests_closure7(), c), !0, c._eval$1("ListIterable.E")), t.List_List$of(new t.MappedListIterable(r, new t.getQueryRequests_closure8(), l), !0, D), i, u, o, !0, s))), d = h), y = t._arrayInstanceType(d)._eval$1("MappedListIterable<1,Map<String,@>>"), O.JSON.parse(_.C_JsonCodec.encode$2$toEncodable(t.List_List$of(new t.MappedListIterable(d, new t.getQueryRequests_closure9(), y), !0, y._eval$1("ListIterable.E")), null));
4109
+ var e, r, i, u, o, s, l, D, d, c, p = _.C_JsonCodec.decode$2$reviver(L.JSON.stringify(n), null), y = a.getInterceptor$asx(p), g = t.ReportWidgetModel_fromJson(y.$index(p, "widget")), m = a.map$1$ax(y.$index(p, "dateRange"), new t.getQueryRequests_closure()).toList$0(0), h = y.$index(p, "compareDateRange");
4110
+ return h == null && (h = []), e = a.map$1$ax(h, new t.getQueryRequests_closure0()).toList$0(0), r = a.map$1$ax(y.$index(p, "timeRange"), new t.getQueryRequests_closure1()).toList$0(0), i = a.map$1$ax(y.$index(p, "restaurantIds"), new t.getQueryRequests_closure2()).toList$0(0), u = a.map$1$ax(y.$index(p, "warehouseIds"), new t.getQueryRequests_closure3()).toList$0(0), o = a.map$1$ax(y.$index(p, "businessIds"), new t.getQueryRequests_closure4()).toList$0(0), s = y.$index(p, "timezone"), y = g.config, h = t._arrayInstanceType(m)._eval$1("MappedListIterable<1,@>"), l = t._arrayInstanceType(r)._eval$1("MappedListIterable<1,@>"), D = l._eval$1("ListIterable.E"), d = y.toRequests$1(new t.GlobalFilterModel(t.List_List$of(new t.MappedListIterable(m, new t.getQueryRequests_closure5(), h), !0, h._eval$1("ListIterable.E")), t.List_List$of(new t.MappedListIterable(r, new t.getQueryRequests_closure6(), l), !0, D), i, u, o, !1, s)), e.length !== 0 && y.isComparable === !0 && (h = t.List_List$of(d, !0, $.QueryRequest), c = t._arrayInstanceType(e)._eval$1("MappedListIterable<1,@>"), _.JSArray_methods.addAll$1(h, y.toRequests$1(new t.GlobalFilterModel(t.List_List$of(new t.MappedListIterable(e, new t.getQueryRequests_closure7(), c), !0, c._eval$1("ListIterable.E")), t.List_List$of(new t.MappedListIterable(r, new t.getQueryRequests_closure8(), l), !0, D), i, u, o, !0, s))), d = h), y = t._arrayInstanceType(d)._eval$1("MappedListIterable<1,Map<String,@>>"), L.JSON.parse(_.C_JsonCodec.encode$2$toEncodable(t.List_List$of(new t.MappedListIterable(d, new t.getQueryRequests_closure9(), y), !0, y._eval$1("ListIterable.E")), null));
4111
4111
  },
4112
4112
  getCreateMaterializedTableSql(n) {
4113
- var e = _.C_JsonCodec.decode$2$reviver(O.JSON.stringify(n), null), r = a.getInterceptor$asx(e), i = t._getQueryEngine(r.$index(e, "bigQuery"));
4113
+ var e = _.C_JsonCodec.decode$2$reviver(L.JSON.stringify(n), null), r = a.getInterceptor$asx(e), i = t._getQueryEngine(r.$index(e, "bigQuery"));
4114
4114
  return r = t.Schema_fromJson(r.$index(e, "request").$index(0, "schema")), r.setConnection$1(i.context.connection), t.Materialize_get_createMaterializedTableSql(r);
4115
4115
  },
4116
4116
  getSchemas_closure: function() {
@@ -4149,7 +4149,7 @@ select
4149
4149
  Exports: function() {
4150
4150
  },
4151
4151
  main() {
4152
- t.initializeTimeZones(), a.set$requestJsonToSql$x(O.exports, t.allowInterop(t.js_compiler__requestJsonToSql$closure())), a.set$getSchemas$x(O.exports, t.allowInterop(t.js_compiler__getSchemas$closure())), a.set$getMergeInfoSql$x(O.exports, t.allowInterop(t.js_compiler__getMergeInfoSql$closure())), a.set$getMergeSql$x(O.exports, t.allowInterop(t.js_compiler__getMergeSql$closure())), a.set$getClearTableSql$x(O.exports, t.allowInterop(t.js_compiler__getClearTableSql$closure())), a.set$getCreateMaterializedTableSql$x(O.exports, t.allowInterop(t.js_compiler__getCreateMaterializedTableSql$closure())), a.set$getVisualizationSchemas$x(O.exports, t.allowInterop(t.js_compiler__getVisualizationSchemas$closure())), a.set$getQueryRequests$x(O.exports, t.allowInterop(t.js_compiler__getQueryRequests$closure())), a.set$sqlResponsesToQueryResponses$x(O.exports, t.allowInterop(t.js_compiler__sqlResponsesToQueryResponses$closure()));
4152
+ t.initializeTimeZones(), a.set$requestJsonToSql$x(L.exports, t.allowInterop(t.js_compiler__requestJsonToSql$closure())), a.set$getSchemas$x(L.exports, t.allowInterop(t.js_compiler__getSchemas$closure())), a.set$getMergeInfoSql$x(L.exports, t.allowInterop(t.js_compiler__getMergeInfoSql$closure())), a.set$getMergeSql$x(L.exports, t.allowInterop(t.js_compiler__getMergeSql$closure())), a.set$getClearTableSql$x(L.exports, t.allowInterop(t.js_compiler__getClearTableSql$closure())), a.set$getCreateMaterializedTableSql$x(L.exports, t.allowInterop(t.js_compiler__getCreateMaterializedTableSql$closure())), a.set$getVisualizationSchemas$x(L.exports, t.allowInterop(t.js_compiler__getVisualizationSchemas$closure())), a.set$getQueryRequests$x(L.exports, t.allowInterop(t.js_compiler__getQueryRequests$closure())), a.set$sqlResponsesToQueryResponses$x(L.exports, t.allowInterop(t.js_compiler__sqlResponsesToQueryResponses$closure()));
4153
4153
  },
4154
4154
  _Exports: function() {
4155
4155
  },
@@ -8392,8 +8392,8 @@ Arguments: [` + D + "]";
8392
8392
  $signature: 1
8393
8393
  }, t.billSchema_closure.prototype = {
8394
8394
  call$1(n) {
8395
- var e = null, r = "seqNumber", i = "deliveryName", u = "isRefund", o = "isPickup", s = "isInHouseDelivery", l = "isDelivery", D = "completedAt", d = "integratedOrderId", c = "itemCount", p = "taxTotal", y = "discountTotal", g = "grossTotal", m = "rounding", h = "takeawayPrice", A = "thirdPartyExtraCharge", b = "deliveryFee", M = "nettTotal", F = "deliveryFeeWithTax", I = "deliveryFeeWithoutTax", R = "otherChargeWithTax", w = "otherChargeWithoutTax", L = "discountInclusiveTaxTotal";
8396
- return t._setArrayType([t.Field_Field$string(e, !1, "ID", "id", "_id", e, n), t.Field_Field$string(e, !0, e, "docId", "_docId", e, n), t.Field_Field$timestamp(e, !0, e, "publishedAt", "_publishedAt", e, n), t.Field_Field$timestamp(e, !1, "Time", "createdAt", "_createdAt", e, n), t.Field_Field$string(e, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, n), t.Field_Field$string(e, !1, "Status", "status", "status", e, n), t.Field_Field$string(e, !1, "No.", r, r, e, n), t.Field_Field$string(e, !1, "Table", "slot", "slot", e, n), t.Field_Field$string(e, !1, "Delivery", i, i, e, n), t.Field_Field$string(e, !1, "Refund ID", "refundFrom", "refundedFrom", e, n), t.Field_Field$bool(e, !1, "Refund", u, u, e, n), t.Field_Field$string(e, !0, e, "refundApprovedById", "refund.approvedBy.id", e, n), t.Field_Field$string(e, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, n), t.Field_Field$string(e, !0, e, "refundedById", "refund.by.id", e, n), t.Field_Field$string(e, !1, "Refund user", "refundedByName", "refund.by.name", e, n), t.Field_Field$string(e, !1, "Refund reason", "refundReason", "refund.reason", e, n), t.Field_Field$string(e, !1, "Member ID", "memberId", "membership.id", e, n), t.Field_Field$string(e, !1, "Member user ID", "memberUserId", "membership.userId", e, n), t.Field_Field$string(e, !1, "Member name", "memberUserName", "membership.name", e, n), t.Field_Field$string(e, !0, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, n), t.Field_Field$timestamp(e, !1, "Member birthday", "memberBirthday", "membership.birthday", e, n), t.Field_Field$string(e, !1, "Remark", "remark", "remark", e, n), t.Field_Field$string(e, !1, "Source", "source", "source", E.x28case_, n), t.Field_Field$string(e, !1, "Type", "type", "type", "(case when upper(@type)='PICKUP' then upper(@type) when upper(@type)='DELIVERY' then upper(@type) when upper(@type)='DRIVE THRU' then upper(@type) when @is_takeaway is true then 'TAKEAWAY' else upper(@type) end)", n), t.Field_Field$bool(e, !0, "Pickup", o, o, e, n), t.Field_Field$bool(e, !0, "Is in house delivery", s, s, e, n), t.Field_Field$bool(e, !0, "Is other delivery", l, l, e, n), t.Field_Field$bool(e, !0, "Is takeaway", "isTakeaway", "is.takeaway", e, n), t.Field_Field$timestamp(e, !1, "Closed at", D, D, e, n), t.Field_Field$string(e, !0, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, n), t.Field_Field$string(e, !0, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, n), t.Field_Field$string(e, !0, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, n), t.Field_Field$string(e, !0, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, n), t.Field_Field$numeric("IF(@status = 'VOIDED', 0, IFNULL(@pax,0)*IF(@isRefund, -1, 1))", !1, "Pax", "pax", "person", "(CASE WHEN @status = 'VOIDED' THEN 0 ELSE (COALESCE(@pax,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END) END)", n), t.Field_Field$string(e, !1, "Integrated order ID", d, d, e, n), t.Field_Field$numeric(E.IFNULLi, !0, "Item count", c, c, E.COALESi, n), t.Field_Field$numeric("IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !1, "Tax", p, p, E.COALEStax, n), t.Field_Field$numeric(E.IFNULLdiT, !1, "Discount", y, y, E.COALESdit, n), t.Field_Field$numeric(E.IFNULLg, !1, "Item gross", g, g, E.COALESg, n), t.Field_Field$numeric(E.x28IFNULnI, !1, "Bill gross", "billGrossTotal", e, E.x28COALEnC, n), t.Field_Field$numeric("IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, "Rounding", m, m, E.COALESr, n), t.Field_Field$numeric("IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, "SST", "sstTotal", "nettTaxes.SST.total", E.COALESss, n), t.Field_Field$string(e, !0, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, n), t.Field_Field$numeric(E.IFNULLs, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", E.COALESse, n), t.Field_Field$string(e, !0, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, n), t.Field_Field$numeric(E.x28IFNULo, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", E.x28COALEo, n), t.Field_Field$numeric(E.x28IFNULgx2d, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, E.x28COALEgx2d, n), t.Field_Field$numeric(E.IFNULLta, !1, "Takeaway", h, h, E.COALEStak, n), t.Field_Field$numeric(E.IFNULLth, !1, "Extra charge", A, A, E.COALESth, n), t.Field_Field$numeric(E.IFNULLde_, !1, "Delivery fee", b, b, E.COALESdex2c, n), t.Field_Field$numeric(E.IFNULLn, !1, "Nett", M, M, E.COALESn, n), t.Field_Field$numeric(E.x28IFNULgx2bd, !1, "Item gross before charges", "grossBeforeCharges", e, E.x28COALEgx2bd, n), t.Field_Field$numeric(E.x28IFNULn_, !1, "Bill gross before charges", "billGrossBeforeCharges", e, E.x28COALEn_, n), t.Field_Field$numeric(e, !1, "Member Recency", "recency", e, E.MIN_EX, n), t.Field_Field$numeric(e, !1, "Member frequency", "frequency", e, E.COUNT_, n), t.Field_Field$numeric(e, !1, "Member monetary", "monetary", e, E.SUM__n, n), t.Field_Field$numeric(E.IFNULLdeWT, !1, "Delivery fee with tax", F, F, E.COALESdex5f_, n), t.Field_Field$numeric(E.IFNULLdeWo, !1, "Delivery fee without tax", I, I, E.COALESdex5fo, n), t.Field_Field$numeric(E.IFNULLoT, !1, "Other charge with tax", R, R, E.COALESo_, n), t.Field_Field$numeric(E.IFNULLoo, !1, "Other charge without tax", w, w, E.COALESoo, n), t.Field_Field$numeric(e, !1, "Duration", "duration", e, E.EXTRAC, n), t.Field_Field$string(e, !1, "Restaurant", "restaurantName", e, E.x28selecn, n), t.Field_Field$numeric(e, !1, "Labour hour", "labourHour", e, E.x28selecS, n), t.Field_Field$string(e, !1, "Payments", "payments", e, E.x28selecstdn, n), t.Field_Field$string(e, !1, "Items", "items", e, E.x28selecstC, n), t.Field_Field$string(e, !1, "Discount reasons", "discountReasons", e, E.x28selecstda, n), t.Field_Field$numeric(E.IFNULLdiI, !1, "Discount inc tax", L, L, E.COALESdii, n), t.Field_Field$string(e, !1, "Payment Summaries", "paymentSummaries", e, E.x28selecstdC, n), t.Field_Field$numeric(e, !1, "Is new member", "isNewMember", e, "(CASE WHEN EXISTS (SELECT 1 FROM members WHERE members.id=@member_id AND members.created_at::date = @created_at::date) THEN 1 ELSE 0 END)", n), t.Field_Field$numeric(e, !1, "Is 30 days recency", "is30DaysRecency", e, "(CASE WHEN EXISTS (SELECT 1 FROM bills WHERE bills.member_id = @member_id AND bills.status != 'VOIDED' AND bills.restaurant_id = @restaurant_id AND bills.created_at >= @created_at - INTERVAL '30 days' AND bills.created_at < @created_at) THEN 1 ELSE 0 END)", n)], $.JSArray_Field);
8395
+ var e = null, r = "seqNumber", i = "deliveryName", u = "isRefund", o = "isPickup", s = "isInHouseDelivery", l = "isDelivery", D = "completedAt", d = "integratedOrderId", c = "itemCount", p = "taxTotal", y = "discountTotal", g = "grossTotal", m = "rounding", h = "takeawayPrice", A = "thirdPartyExtraCharge", b = "deliveryFee", M = "nettTotal", F = "deliveryFeeWithTax", I = "deliveryFeeWithoutTax", x = "otherChargeWithTax", w = "otherChargeWithoutTax", O = "discountInclusiveTaxTotal";
8396
+ return t._setArrayType([t.Field_Field$string(e, !1, "ID", "id", "_id", e, n), t.Field_Field$string(e, !0, e, "docId", "_docId", e, n), t.Field_Field$timestamp(e, !0, e, "publishedAt", "_publishedAt", e, n), t.Field_Field$timestamp(e, !1, "Time", "createdAt", "_createdAt", e, n), t.Field_Field$string(e, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, n), t.Field_Field$string(e, !1, "Status", "status", "status", e, n), t.Field_Field$string(e, !1, "No.", r, r, e, n), t.Field_Field$string(e, !1, "Table", "slot", "slot", e, n), t.Field_Field$string(e, !1, "Delivery", i, i, e, n), t.Field_Field$string(e, !1, "Refund ID", "refundFrom", "refundedFrom", e, n), t.Field_Field$bool(e, !1, "Refund", u, u, e, n), t.Field_Field$string(e, !0, e, "refundApprovedById", "refund.approvedBy.id", e, n), t.Field_Field$string(e, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, n), t.Field_Field$string(e, !0, e, "refundedById", "refund.by.id", e, n), t.Field_Field$string(e, !1, "Refund user", "refundedByName", "refund.by.name", e, n), t.Field_Field$string(e, !1, "Refund reason", "refundReason", "refund.reason", e, n), t.Field_Field$string(e, !1, "Member ID", "memberId", "membership.id", e, n), t.Field_Field$string(e, !1, "Member user ID", "memberUserId", "membership.userId", e, n), t.Field_Field$string(e, !1, "Member name", "memberUserName", "membership.name", e, n), t.Field_Field$string(e, !0, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, n), t.Field_Field$timestamp(e, !1, "Member birthday", "memberBirthday", "membership.birthday", e, n), t.Field_Field$string(e, !1, "Remark", "remark", "remark", e, n), t.Field_Field$string(e, !1, "Source", "source", "source", E.x28case_, n), t.Field_Field$string(e, !1, "Type", "type", "type", "(case when upper(@type)='PICKUP' then upper(@type) when upper(@type)='DELIVERY' then upper(@type) when upper(@type)='DRIVE THRU' then upper(@type) when @is_takeaway is true then 'TAKEAWAY' else upper(@type) end)", n), t.Field_Field$bool(e, !0, "Pickup", o, o, e, n), t.Field_Field$bool(e, !0, "Is in house delivery", s, s, e, n), t.Field_Field$bool(e, !0, "Is other delivery", l, l, e, n), t.Field_Field$bool(e, !0, "Is takeaway", "isTakeaway", "is.takeaway", e, n), t.Field_Field$timestamp(e, !1, "Closed at", D, D, e, n), t.Field_Field$string(e, !0, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, n), t.Field_Field$string(e, !0, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, n), t.Field_Field$string(e, !0, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, n), t.Field_Field$string(e, !0, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, n), t.Field_Field$numeric("IF(@status = 'VOIDED', 0, IFNULL(@pax,0)*IF(@isRefund, -1, 1))", !1, "Pax", "pax", "person", "(CASE WHEN @status = 'VOIDED' THEN 0 ELSE (COALESCE(@pax,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END) END)", n), t.Field_Field$string(e, !1, "Integrated order ID", d, d, e, n), t.Field_Field$numeric(E.IFNULLi, !0, "Item count", c, c, E.COALESi, n), t.Field_Field$numeric("IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !1, "Tax", p, p, E.COALEStax, n), t.Field_Field$numeric(E.IFNULLdiT, !1, "Discount", y, y, E.COALESdit, n), t.Field_Field$numeric(E.IFNULLg, !1, "Item gross", g, g, E.COALESg, n), t.Field_Field$numeric(E.x28IFNULnI, !1, "Bill gross", "billGrossTotal", e, E.x28COALEnC, n), t.Field_Field$numeric("IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, "Rounding", m, m, E.COALESr, n), t.Field_Field$numeric("IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, "SST", "sstTotal", "nettTaxes.SST.total", E.COALESss, n), t.Field_Field$string(e, !0, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, n), t.Field_Field$numeric(E.IFNULLs, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", E.COALESse, n), t.Field_Field$string(e, !0, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, n), t.Field_Field$numeric(E.x28IFNULo, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", E.x28COALEo, n), t.Field_Field$numeric(E.x28IFNULgx2d, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, E.x28COALEgx2d, n), t.Field_Field$numeric(E.IFNULLta, !1, "Takeaway", h, h, E.COALEStak, n), t.Field_Field$numeric(E.IFNULLth, !1, "Extra charge", A, A, E.COALESth, n), t.Field_Field$numeric(E.IFNULLde_, !1, "Delivery fee", b, b, E.COALESdex2c, n), t.Field_Field$numeric(E.IFNULLn, !1, "Nett", M, M, E.COALESn, n), t.Field_Field$numeric(E.x28IFNULgx2bd, !1, "Item gross before charges", "grossBeforeCharges", e, E.x28COALEgx2bd, n), t.Field_Field$numeric(E.x28IFNULn_, !1, "Bill gross before charges", "billGrossBeforeCharges", e, E.x28COALEn_, n), t.Field_Field$numeric(e, !1, "Member Recency", "recency", e, E.MIN_EX, n), t.Field_Field$numeric(e, !1, "Member frequency", "frequency", e, E.COUNT_, n), t.Field_Field$numeric(e, !1, "Member monetary", "monetary", e, E.SUM__n, n), t.Field_Field$numeric(E.IFNULLdeWT, !1, "Delivery fee with tax", F, F, E.COALESdex5f_, n), t.Field_Field$numeric(E.IFNULLdeWo, !1, "Delivery fee without tax", I, I, E.COALESdex5fo, n), t.Field_Field$numeric(E.IFNULLoT, !1, "Other charge with tax", x, x, E.COALESo_, n), t.Field_Field$numeric(E.IFNULLoo, !1, "Other charge without tax", w, w, E.COALESoo, n), t.Field_Field$numeric(e, !1, "Duration", "duration", e, E.EXTRAC, n), t.Field_Field$string(e, !1, "Restaurant", "restaurantName", e, E.x28selecn, n), t.Field_Field$numeric(e, !1, "Labour hour", "labourHour", e, E.x28selecS, n), t.Field_Field$string(e, !1, "Payments", "payments", e, E.x28selecstdn, n), t.Field_Field$string(e, !1, "Items", "items", e, E.x28selecstC, n), t.Field_Field$string(e, !1, "Discount reasons", "discountReasons", e, E.x28selecstda, n), t.Field_Field$numeric(E.IFNULLdiI, !1, "Discount inc tax", O, O, E.COALESdii, n), t.Field_Field$string(e, !1, "Payment Summaries", "paymentSummaries", e, E.x28selecstdC, n), t.Field_Field$numeric(e, !1, "Is new member", "isNewMember", e, "(CASE WHEN EXISTS (SELECT 1 FROM members WHERE members.id=@member_id AND members.created_at::date = @created_at::date) THEN 1 ELSE 0 END)", n), t.Field_Field$numeric(e, !1, "Is 30 days recency", "is30DaysRecency", e, "(CASE WHEN EXISTS (SELECT 1 FROM bills WHERE bills.member_id = @member_id AND bills.status != 'VOIDED' AND bills.restaurant_id = @restaurant_id AND bills.created_at >= @created_at - INTERVAL '30 days' AND bills.created_at < @created_at) THEN 1 ELSE 0 END)", n)], $.JSArray_Field);
8397
8397
  },
8398
8398
  $signature: 0
8399
8399
  }, t.billSchema_closure0.prototype = {
@@ -8520,8 +8520,8 @@ Arguments: [` + D + "]";
8520
8520
  $signature: 1
8521
8521
  }, t.completeTimeBillSchema_closure.prototype = {
8522
8522
  call$1(n) {
8523
- var e = null, r = "seqNumber", i = "deliveryName", u = "isRefund", o = "isPickup", s = "isInHouseDelivery", l = "isDelivery", D = "completedAt", d = "integratedOrderId", c = "itemCount", p = "taxTotal", y = "discountTotal", g = "grossTotal", m = "rounding", h = "takeawayPrice", A = "thirdPartyExtraCharge", b = "deliveryFee", M = "nettTotal", F = "deliveryFeeWithTax", I = "deliveryFeeWithoutTax", R = "otherChargeWithTax", w = "otherChargeWithoutTax", L = "discountInclusiveTaxTotal";
8524
- return t._setArrayType([t.Field_Field$string(e, !1, "ID", "id", "_id", e, n), t.Field_Field$string(e, !0, e, "docId", "_docId", e, n), t.Field_Field$timestamp(e, !0, e, "publishedAt", "_publishedAt", e, n), t.Field_Field$timestamp(e, !1, "Time", "createdAt", "_createdAt", e, n), t.Field_Field$string(e, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, n), t.Field_Field$string(e, !1, "Status", "status", "status", e, n), t.Field_Field$string(e, !1, "No.", r, r, e, n), t.Field_Field$string(e, !1, "Table", "slot", "slot", e, n), t.Field_Field$string(e, !1, "Delivery", i, i, e, n), t.Field_Field$string(e, !1, "Refund ID", "refundFrom", "refundedFrom", e, n), t.Field_Field$bool(e, !1, "Refund", u, u, e, n), t.Field_Field$string(e, !0, e, "refundApprovedById", "refund.approvedBy.id", e, n), t.Field_Field$string(e, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, n), t.Field_Field$string(e, !0, e, "refundedById", "refund.by.id", e, n), t.Field_Field$string(e, !1, "Refund user", "refundedByName", "refund.by.name", e, n), t.Field_Field$string(e, !1, "Refund reason", "refundReason", "refund.reason", e, n), t.Field_Field$string(e, !1, "Member ID", "memberId", "membership.id", e, n), t.Field_Field$string(e, !1, "Member user ID", "memberUserId", "membership.userId", e, n), t.Field_Field$string(e, !1, "Member name", "memberUserName", "membership.name", e, n), t.Field_Field$string(e, !0, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, n), t.Field_Field$timestamp(e, !1, "Member birthday", "memberBirthday", "membership.birthday", e, n), t.Field_Field$string(e, !1, "Remark", "remark", "remark", e, n), t.Field_Field$string(e, !1, "Source", "source", "source", E.x28case_, n), t.Field_Field$string(e, !1, "Type", "type", "type", "(case when upper(@type)='PICKUP' then upper(@type) when upper(@type)='DELIVERY' then upper(@type) when @is_takeaway is true then 'TAKEAWAY' else upper(@type) end)", n), t.Field_Field$bool(e, !0, "Pickup", o, o, e, n), t.Field_Field$bool(e, !0, "Is in house delivery", s, s, e, n), t.Field_Field$bool(e, !0, "Is other delivery", l, l, e, n), t.Field_Field$bool(e, !0, "Is takeaway", "isTakeaway", "is.takeaway", e, n), t.Field_Field$timestamp(e, !1, "Closed at", D, D, e, n), t.Field_Field$string(e, !0, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, n), t.Field_Field$string(e, !0, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, n), t.Field_Field$string(e, !0, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, n), t.Field_Field$string(e, !0, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, n), t.Field_Field$numeric("IFNULL(@pax,0)*IF(@isRefund, -1, 1)", !1, "Pax", "pax", "person", E.COALESp, n), t.Field_Field$string(e, !1, "Integrated order ID", d, d, e, n), t.Field_Field$numeric(E.IFNULLi, !0, "Item count", c, c, E.COALESi, n), t.Field_Field$numeric("IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !1, "Tax", p, p, E.COALEStax, n), t.Field_Field$numeric(E.IFNULLdiT, !1, "Discount", y, y, E.COALESdit, n), t.Field_Field$numeric(E.IFNULLg, !1, "Item gross", g, g, E.COALESg, n), t.Field_Field$numeric(E.x28IFNULnI, !1, "Bill gross", "billGrossTotal", e, E.x28COALEnC, n), t.Field_Field$numeric("IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, "Rounding", m, m, E.COALESr, n), t.Field_Field$numeric("IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, "SST", "sstTotal", "nettTaxes.SST.total", E.COALESss, n), t.Field_Field$string(e, !0, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, n), t.Field_Field$numeric(E.IFNULLs, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", E.COALESse, n), t.Field_Field$string(e, !0, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, n), t.Field_Field$numeric(E.x28IFNULo, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", E.x28COALEo, n), t.Field_Field$numeric(E.x28IFNULgx2d, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, E.x28COALEgx2d, n), t.Field_Field$numeric(E.IFNULLta, !1, "Takeaway", h, h, E.COALEStak, n), t.Field_Field$numeric(E.IFNULLth, !1, "Extra charge", A, A, E.COALESth, n), t.Field_Field$numeric(E.IFNULLde_, !1, "Delivery fee", b, b, E.COALESdex2c, n), t.Field_Field$numeric(E.IFNULLn, !1, "Nett", M, M, E.COALESn, n), t.Field_Field$numeric(E.x28IFNULgx2bd, !1, "Item gross before charges", "grossBeforeCharges", e, E.x28COALEgx2bd, n), t.Field_Field$numeric(E.x28IFNULn_, !1, "Bill gross before charges", "billGrossBeforeCharges", e, E.x28COALEn_, n), t.Field_Field$numeric(e, !1, "Member Recency", "recency", e, E.MIN_EX, n), t.Field_Field$numeric(e, !1, "Member frequency", "frequency", e, E.COUNT_, n), t.Field_Field$numeric(e, !1, "Member monetary", "monetary", e, E.SUM__n, n), t.Field_Field$numeric(E.IFNULLdeWT, !1, "Delivery fee with tax", F, F, E.COALESdex5f_, n), t.Field_Field$numeric(E.IFNULLdeWo, !1, "Delivery fee without tax", I, I, E.COALESdex5fo, n), t.Field_Field$numeric(E.IFNULLoT, !1, "Other charge with tax", R, R, E.COALESo_, n), t.Field_Field$numeric(E.IFNULLoo, !1, "Other charge without tax", w, w, E.COALESoo, n), t.Field_Field$numeric(e, !1, "Duration", "duration", e, E.EXTRAC, n), t.Field_Field$string(e, !1, "Restaurant", "restaurantName", e, E.x28selecn, n), t.Field_Field$numeric(e, !1, "Labour hour", "labourHour", e, E.x28selecS, n), t.Field_Field$string(e, !1, "Payments", "payments", e, E.x28selecstdn, n), t.Field_Field$string(e, !1, "Items", "items", e, E.x28selecstC, n), t.Field_Field$string(e, !1, "Discount reasons", "discountReasons", e, E.x28selecstda, n), t.Field_Field$numeric(E.IFNULLdiI, !1, "Discount inc tax", L, L, E.COALESdii, n), t.Field_Field$string(e, !1, "Payment Summaries", "paymentSummaries", e, E.x28selecstdC, n)], $.JSArray_Field);
8523
+ var e = null, r = "seqNumber", i = "deliveryName", u = "isRefund", o = "isPickup", s = "isInHouseDelivery", l = "isDelivery", D = "completedAt", d = "integratedOrderId", c = "itemCount", p = "taxTotal", y = "discountTotal", g = "grossTotal", m = "rounding", h = "takeawayPrice", A = "thirdPartyExtraCharge", b = "deliveryFee", M = "nettTotal", F = "deliveryFeeWithTax", I = "deliveryFeeWithoutTax", x = "otherChargeWithTax", w = "otherChargeWithoutTax", O = "discountInclusiveTaxTotal";
8524
+ return t._setArrayType([t.Field_Field$string(e, !1, "ID", "id", "_id", e, n), t.Field_Field$string(e, !0, e, "docId", "_docId", e, n), t.Field_Field$timestamp(e, !0, e, "publishedAt", "_publishedAt", e, n), t.Field_Field$timestamp(e, !1, "Time", "createdAt", "_createdAt", e, n), t.Field_Field$string(e, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, n), t.Field_Field$string(e, !1, "Status", "status", "status", e, n), t.Field_Field$string(e, !1, "No.", r, r, e, n), t.Field_Field$string(e, !1, "Table", "slot", "slot", e, n), t.Field_Field$string(e, !1, "Delivery", i, i, e, n), t.Field_Field$string(e, !1, "Refund ID", "refundFrom", "refundedFrom", e, n), t.Field_Field$bool(e, !1, "Refund", u, u, e, n), t.Field_Field$string(e, !0, e, "refundApprovedById", "refund.approvedBy.id", e, n), t.Field_Field$string(e, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, n), t.Field_Field$string(e, !0, e, "refundedById", "refund.by.id", e, n), t.Field_Field$string(e, !1, "Refund user", "refundedByName", "refund.by.name", e, n), t.Field_Field$string(e, !1, "Refund reason", "refundReason", "refund.reason", e, n), t.Field_Field$string(e, !1, "Member ID", "memberId", "membership.id", e, n), t.Field_Field$string(e, !1, "Member user ID", "memberUserId", "membership.userId", e, n), t.Field_Field$string(e, !1, "Member name", "memberUserName", "membership.name", e, n), t.Field_Field$string(e, !0, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, n), t.Field_Field$timestamp(e, !1, "Member birthday", "memberBirthday", "membership.birthday", e, n), t.Field_Field$string(e, !1, "Remark", "remark", "remark", e, n), t.Field_Field$string(e, !1, "Source", "source", "source", E.x28case_, n), t.Field_Field$string(e, !1, "Type", "type", "type", "(case when upper(@type)='PICKUP' then upper(@type) when upper(@type)='DELIVERY' then upper(@type) when @is_takeaway is true then 'TAKEAWAY' else upper(@type) end)", n), t.Field_Field$bool(e, !0, "Pickup", o, o, e, n), t.Field_Field$bool(e, !0, "Is in house delivery", s, s, e, n), t.Field_Field$bool(e, !0, "Is other delivery", l, l, e, n), t.Field_Field$bool(e, !0, "Is takeaway", "isTakeaway", "is.takeaway", e, n), t.Field_Field$timestamp(e, !1, "Closed at", D, D, e, n), t.Field_Field$string(e, !0, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, n), t.Field_Field$string(e, !0, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, n), t.Field_Field$string(e, !0, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, n), t.Field_Field$string(e, !0, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, n), t.Field_Field$numeric("IFNULL(@pax,0)*IF(@isRefund, -1, 1)", !1, "Pax", "pax", "person", E.COALESp, n), t.Field_Field$string(e, !1, "Integrated order ID", d, d, e, n), t.Field_Field$numeric(E.IFNULLi, !0, "Item count", c, c, E.COALESi, n), t.Field_Field$numeric("IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !1, "Tax", p, p, E.COALEStax, n), t.Field_Field$numeric(E.IFNULLdiT, !1, "Discount", y, y, E.COALESdit, n), t.Field_Field$numeric(E.IFNULLg, !1, "Item gross", g, g, E.COALESg, n), t.Field_Field$numeric(E.x28IFNULnI, !1, "Bill gross", "billGrossTotal", e, E.x28COALEnC, n), t.Field_Field$numeric("IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, "Rounding", m, m, E.COALESr, n), t.Field_Field$numeric("IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, "SST", "sstTotal", "nettTaxes.SST.total", E.COALESss, n), t.Field_Field$string(e, !0, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, n), t.Field_Field$numeric(E.IFNULLs, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", E.COALESse, n), t.Field_Field$string(e, !0, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, n), t.Field_Field$numeric(E.x28IFNULo, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", E.x28COALEo, n), t.Field_Field$numeric(E.x28IFNULgx2d, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, E.x28COALEgx2d, n), t.Field_Field$numeric(E.IFNULLta, !1, "Takeaway", h, h, E.COALEStak, n), t.Field_Field$numeric(E.IFNULLth, !1, "Extra charge", A, A, E.COALESth, n), t.Field_Field$numeric(E.IFNULLde_, !1, "Delivery fee", b, b, E.COALESdex2c, n), t.Field_Field$numeric(E.IFNULLn, !1, "Nett", M, M, E.COALESn, n), t.Field_Field$numeric(E.x28IFNULgx2bd, !1, "Item gross before charges", "grossBeforeCharges", e, E.x28COALEgx2bd, n), t.Field_Field$numeric(E.x28IFNULn_, !1, "Bill gross before charges", "billGrossBeforeCharges", e, E.x28COALEn_, n), t.Field_Field$numeric(e, !1, "Member Recency", "recency", e, E.MIN_EX, n), t.Field_Field$numeric(e, !1, "Member frequency", "frequency", e, E.COUNT_, n), t.Field_Field$numeric(e, !1, "Member monetary", "monetary", e, E.SUM__n, n), t.Field_Field$numeric(E.IFNULLdeWT, !1, "Delivery fee with tax", F, F, E.COALESdex5f_, n), t.Field_Field$numeric(E.IFNULLdeWo, !1, "Delivery fee without tax", I, I, E.COALESdex5fo, n), t.Field_Field$numeric(E.IFNULLoT, !1, "Other charge with tax", x, x, E.COALESo_, n), t.Field_Field$numeric(E.IFNULLoo, !1, "Other charge without tax", w, w, E.COALESoo, n), t.Field_Field$numeric(e, !1, "Duration", "duration", e, E.EXTRAC, n), t.Field_Field$string(e, !1, "Restaurant", "restaurantName", e, E.x28selecn, n), t.Field_Field$numeric(e, !1, "Labour hour", "labourHour", e, E.x28selecS, n), t.Field_Field$string(e, !1, "Payments", "payments", e, E.x28selecstdn, n), t.Field_Field$string(e, !1, "Items", "items", e, E.x28selecstC, n), t.Field_Field$string(e, !1, "Discount reasons", "discountReasons", e, E.x28selecstda, n), t.Field_Field$numeric(E.IFNULLdiI, !1, "Discount inc tax", O, O, E.COALESdii, n), t.Field_Field$string(e, !1, "Payment Summaries", "paymentSummaries", e, E.x28selecstdC, n)], $.JSArray_Field);
8525
8525
  },
8526
8526
  $signature: 0
8527
8527
  }, t.completeTimeBillSchema_closure0.prototype = {
@@ -8566,10 +8566,10 @@ Arguments: [` + D + "]";
8566
8566
  $signature: 1
8567
8567
  }, t.flattenItemSchema_closure.prototype = {
8568
8568
  call$1(n) {
8569
- var e = null, r = "itemCreatedAt", i = "billCompletedAt", u = "perXUnit", o = "takeawayId", s = "takeawayName", l = "productId", D = "isRefund", d = "servedAt", c = "isTakeaway", p = "quantity", y = "unitQuantity", g = "billAdjustmentTotal", m = "itemAdjustmentTotal", h = "grossTotal", A = "takeawayPrice", b = "nettTotal", M = "layerNettTotal", F = "layerBillAdjustmentTotal", I = "layerItemAdjustmentTotal", R = "layerGrossTotal", w = "layerTakeawayPrice", L = "layerTaxTotal", J = "layerScTotal", v = "layerOtherChargeTotal", W = "customAttributes", _0 = "layerZeroParentId", M0 = "collectedAt", R0 = "subCategories", x0 = "billAdjustmentInclusiveTaxTotal", L0 = "itemAdjustmentInclusiveTaxTotal", O0 = "layerBillAdjustmentInclusiveTaxTotal", w0 = "layerItemAdjustmentInclusiveTaxTotal";
8569
+ var e = null, r = "itemCreatedAt", i = "billCompletedAt", u = "perXUnit", o = "takeawayId", s = "takeawayName", l = "productId", D = "isRefund", d = "servedAt", c = "isTakeaway", p = "quantity", y = "unitQuantity", g = "billAdjustmentTotal", m = "itemAdjustmentTotal", h = "grossTotal", A = "takeawayPrice", b = "nettTotal", M = "layerNettTotal", F = "layerBillAdjustmentTotal", I = "layerItemAdjustmentTotal", x = "layerGrossTotal", w = "layerTakeawayPrice", O = "layerTaxTotal", J = "layerScTotal", P = "layerOtherChargeTotal", W = "customAttributes", D0 = "layerZeroParentId", M0 = "collectedAt", R0 = "subCategories", x0 = "billAdjustmentInclusiveTaxTotal", L0 = "itemAdjustmentInclusiveTaxTotal", O0 = "layerBillAdjustmentInclusiveTaxTotal", w0 = "layerItemAdjustmentInclusiveTaxTotal";
8570
8570
  return t._setArrayType([t.Field_Field$string(e, !1, "ID", "id", "_id", e, n), t.Field_Field$string(e, !0, e, "docId", "_docId", e, n), t.Field_Field$string(e, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, n), t.Field_Field$timestamp(e, !1, "Time", "createdAt", "_createdAt", e, n), t.Field_Field$timestamp(e, !0, e, "publishedAt", "_publishedAt", e, n), t.Field_Field$timestamp(e, !1, "Item time", r, r, e, n), t.Field_Field$timestamp(e, !1, "Bill close time", i, i, e, n), t.Field_Field$string(e, !1, "Bill ID", "billId", "billId", e, n), t.Field_Field$string(e, !1, "Status", "status", "status", e, n), t.Field_Field$string(e, !1, "Name", "name", "name", e, n), t.Field_Field$numeric(e, !1, "Per unit", u, u, e, n), t.Field_Field$string(e, !1, "Unit", "unit", "unit", e, n), t.Field_Field$string(`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)
8571
8571
  `, !1, "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
8572
- `, n), t.Field_Field$string(e, !1, "Takeaway ID", o, o, e, n), t.Field_Field$string(e, !1, "Takeaway name", s, s, e, n), t.Field_Field$string(e, !1, "Code", "code", "code", e, n), t.Field_Field$string(e, !1, "Remark", "remark", "remark", e, n), t.Field_Field$string(e, !1, "Product ID", l, l, e, n), t.Field_Field$string(e, !1, "Variant ID", "variantId", "variant.id", e, n), t.Field_Field$string(e, !1, "Variant", "variantName", "variant.name", e, n), t.Field_Field$bool(e, !1, "Refund", D, D, e, n), t.Field_Field$string(e, !1, "User id", "createdById", "createdBy.id", e, n), t.Field_Field$string(e, !1, "User", "createdByName", "createdBy.name", e, n), t.Field_Field$timestamp(e, !1, "Sent time", "sentAt", "sentAt", e, n), t.Field_Field$timestamp(e, !1, "Served time", d, d, e, n), t.Field_Field$timestamp(e, !1, "Printed time", "printedAt", "printBy.printAt", e, n), t.Field_Field$timestamp(e, !1, "Void time", "voidAt", "void.voidAt", e, n), t.Field_Field$string(e, !1, "Void reason", "voidReason", "void.reason", e, n), t.Field_Field$string(e, !0, e, "voidedById", "void.by.id", e, n), t.Field_Field$string(e, !1, "Void user", "voidedByName", "void.by.name", e, n), t.Field_Field$string(e, !0, e, "voidApprovedById", "void.approvedBy.id", e, n), t.Field_Field$string(e, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", e, n), t.Field_Field$bool(e, !0, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", e, n), t.Field_Field$bool(e, !0, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", e, n), t.Field_Field$bool(e, !1, "Takeaway", c, c, e, n), t.Field_Field$numeric("@quantity*IF(@isRefund, -1, 1)", !1, "Qty", p, p, E.x40quant, n), t.Field_Field$numeric("@unitQuantity*IF(@isRefund, -1, 1)", !1, "Unit qty", y, y, E.x40unit_, n), t.Field_Field$numeric("@sstTotal*IF(@isRefund, -1, 1)", !1, "SST", "sstTotal", "sst.total", E.x40sst_t, n), t.Field_Field$numeric(e, !0, "SST %", "sstPercentage", "sst.percentage", e, n), t.Field_Field$numeric(e, !0, "SC %", "serviceChargePercentage", "sc.percentage", e, n), t.Field_Field$numeric("@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, "SC", "serviceChargeTotal", "sc.total", E.x40servi, n), t.Field_Field$numeric("@otherChargeTotal*IF(@isRefund, -1, 1)", !1, "Other charge", "otherChargeTotal", "otherCharge.total", E.x40other, n), t.Field_Field$numeric(E.x40billA, !1, "Bill discount", g, g, E.x40bill_, n), t.Field_Field$numeric(E.x40itemA, !1, "Item discount", m, m, E.x40item_, n), t.Field_Field$numeric("@grossTotal*IF(@isRefund, -1, 1)", !1, "Gross", h, h, E.x40gross, n), t.Field_Field$numeric(E.x28_grosT, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, E.x28_gros_, n), t.Field_Field$numeric("@takeawayPrice*IF(@isRefund, -1, 1)", !1, "Takeaway price", A, A, E.x40takea, n), t.Field_Field$numeric("@nettTotal*IF(@isRefund, -1, 1)", !1, "Nett", b, b, E.x40nett_, n), t.Field_Field$string(e, !1, "Parent ID", "parentId", "parent.id", e, n), t.Field_Field$string(e, !1, "Parent name", "parentName", "parent.name", e, n), t.Field_Field$string(e, !1, "Addon type", "addonType", "addon.type", e, n), t.Field_Field$string(e, !1, "Addon ID", "addonId", "addon.selectionId", e, n), t.Field_Field$string("SPLIT(@addonId, '/')[OFFSET(0)]", !1, "Group ID", "groupId", e, "SPLIT_PART(@addon_id, '/',1)", n), t.Field_Field$numeric(e, !1, "Layer", "layer", "layer", e, n), t.Field_Field$numeric("@addonPrice*IF(@isRefund, -1, 1)", !1, "Addon price", "addonPrice", "addon.price", E.x40addon, n), t.Field_Field$numeric("@taxTotal*IF(@isRefund, -1, 1)", !1, "Tax", "taxTotal", "tax.total", "@tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", n), t.Field_Field$numeric(E.x28IFNULb, !1, "Discount", "discountTotal", e, E.x28COALEb, n), t.Field_Field$numeric(E.x28IFNULgx2bb, !1, "Gross before charges", "grossBeforeCharges", e, E.x28COALEgx2bb, n), t.Field_Field$string("CONCAT(@quantity,'x ',ARRAY_TO_STRING([IF(@code='', NULL, @code), @name], ' '))", !1, "Summary", "summary", e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN @code='' THEN NULL ELSE @code END, @name], ' '))", n), t.Field_Field$numeric("@layerNettTotal*IF(@isRefund, -1, 1)", !1, "Layer nett", M, M, "@layer_nett_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", n), t.Field_Field$numeric("@layerBillAdjustmentTotal*IF(@isRefund, -1, 1)", !1, "Layer bill discount", F, F, "@layer_bill_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", n), t.Field_Field$numeric("@layerItemAdjustmentTotal*IF(@isRefund, -1, 1)", !1, "Layer item discount", I, I, "@layer_item_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", n), t.Field_Field$numeric("@layerGrossTotal*IF(@isRefund, -1, 1)", !1, "Layer gross total", R, R, "@layer_gross_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", n), t.Field_Field$numeric("@layerTakeawayPrice*IF(@isRefund, -1, 1)", !1, "Layer takeaway price", w, w, "@layer_takeaway_price*CASE WHEN @is_refund THEN -1 ELSE 1 END", n), t.Field_Field$numeric("@layerTaxTotal*IF(@isRefund, -1, 1)", !1, "Layer tax total", L, L, "@layer_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", n), t.Field_Field$numeric("@layerScTotal*IF(@isRefund, -1, 1)", !1, "Layer sc", J, J, "@layer_sc_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", n), t.Field_Field$numeric("@layerOtherChargeTotal*IF(@isRefund, -1, 1)", !1, "Layer other charge", v, v, "@layer_other_charge_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", n), t.Field_Field$numeric("(IFNULL(@layerGrossTotal,0)+IFNULL(@layerBillAdjustmentTotal,0)+IFNULL(@layerItemAdjustmentTotal,0))*IF(@isRefund, -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", n), t.Field_Field$string(e, !1, "Custom attributes", W, W, e, n), t.Field_Field$string(e, !1, "Layer 0 parent ID", _0, _0, e, n), t.Field_Field$string(e, !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')", n), t.Field_Field$timestamp(e, !1, "Collected time", M0, M0, e, n), t.Field_Field$numeric(e, !1, "Costing", "costing", "costing", e, n), t.Field_Field$numeric("ROUND(TIMESTAMP_DIFF(IFNULL(@servedAt, CURRENT_TIMESTAMP), @sentAt, SECOND),0)", !1, "Preparation seconds", "preparationSeconds", e, "ROUND(EXTRACT(EPOCH FROM AGE(COALESCE(@served_at, CURRENT_TIMESTAMP),@sent_at)),0)", n), t.Field_Field$numeric("(@nettTotal-coalesce(@costing, 0))", !1, "Profit", "profit", e, "(@nett_total-coalesce(@costing, 0))", n), t.Field_Field$string(e, !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)", n), t.Field_Field$string(e, !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)", n), t.Field_Field$string(e, !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)", n), t.Field_Field$string(e, !1, "Sub categories", R0, R0, e, n), t.Field_Field$numeric("@billAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, "Bill discount inc tax", x0, x0, "@bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", n), t.Field_Field$numeric("@itemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, "Item discount inc tax", L0, L0, "@item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", n), t.Field_Field$numeric("@layerBillAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, "Layer bill discount inc tax", O0, O0, "@layer_bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", n), t.Field_Field$numeric("@layerItemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, "Layer item discount inc tax", w0, w0, "@layer_item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", n)], $.JSArray_Field);
8572
+ `, n), t.Field_Field$string(e, !1, "Takeaway ID", o, o, e, n), t.Field_Field$string(e, !1, "Takeaway name", s, s, e, n), t.Field_Field$string(e, !1, "Code", "code", "code", e, n), t.Field_Field$string(e, !1, "Remark", "remark", "remark", e, n), t.Field_Field$string(e, !1, "Product ID", l, l, e, n), t.Field_Field$string(e, !1, "Variant ID", "variantId", "variant.id", e, n), t.Field_Field$string(e, !1, "Variant", "variantName", "variant.name", e, n), t.Field_Field$bool(e, !1, "Refund", D, D, e, n), t.Field_Field$string(e, !1, "User id", "createdById", "createdBy.id", e, n), t.Field_Field$string(e, !1, "User", "createdByName", "createdBy.name", e, n), t.Field_Field$timestamp(e, !1, "Sent time", "sentAt", "sentAt", e, n), t.Field_Field$timestamp(e, !1, "Served time", d, d, e, n), t.Field_Field$timestamp(e, !1, "Printed time", "printedAt", "printBy.printAt", e, n), t.Field_Field$timestamp(e, !1, "Void time", "voidAt", "void.voidAt", e, n), t.Field_Field$string(e, !1, "Void reason", "voidReason", "void.reason", e, n), t.Field_Field$string(e, !0, e, "voidedById", "void.by.id", e, n), t.Field_Field$string(e, !1, "Void user", "voidedByName", "void.by.name", e, n), t.Field_Field$string(e, !0, e, "voidApprovedById", "void.approvedBy.id", e, n), t.Field_Field$string(e, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", e, n), t.Field_Field$bool(e, !0, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", e, n), t.Field_Field$bool(e, !0, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", e, n), t.Field_Field$bool(e, !1, "Takeaway", c, c, e, n), t.Field_Field$numeric("@quantity*IF(@isRefund, -1, 1)", !1, "Qty", p, p, E.x40quant, n), t.Field_Field$numeric("@unitQuantity*IF(@isRefund, -1, 1)", !1, "Unit qty", y, y, E.x40unit_, n), t.Field_Field$numeric("@sstTotal*IF(@isRefund, -1, 1)", !1, "SST", "sstTotal", "sst.total", E.x40sst_t, n), t.Field_Field$numeric(e, !0, "SST %", "sstPercentage", "sst.percentage", e, n), t.Field_Field$numeric(e, !0, "SC %", "serviceChargePercentage", "sc.percentage", e, n), t.Field_Field$numeric("@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, "SC", "serviceChargeTotal", "sc.total", E.x40servi, n), t.Field_Field$numeric("@otherChargeTotal*IF(@isRefund, -1, 1)", !1, "Other charge", "otherChargeTotal", "otherCharge.total", E.x40other, n), t.Field_Field$numeric(E.x40billA, !1, "Bill discount", g, g, E.x40bill_, n), t.Field_Field$numeric(E.x40itemA, !1, "Item discount", m, m, E.x40item_, n), t.Field_Field$numeric("@grossTotal*IF(@isRefund, -1, 1)", !1, "Gross", h, h, E.x40gross, n), t.Field_Field$numeric(E.x28_grosT, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, E.x28_gros_, n), t.Field_Field$numeric("@takeawayPrice*IF(@isRefund, -1, 1)", !1, "Takeaway price", A, A, E.x40takea, n), t.Field_Field$numeric("@nettTotal*IF(@isRefund, -1, 1)", !1, "Nett", b, b, E.x40nett_, n), t.Field_Field$string(e, !1, "Parent ID", "parentId", "parent.id", e, n), t.Field_Field$string(e, !1, "Parent name", "parentName", "parent.name", e, n), t.Field_Field$string(e, !1, "Addon type", "addonType", "addon.type", e, n), t.Field_Field$string(e, !1, "Addon ID", "addonId", "addon.selectionId", e, n), t.Field_Field$string("SPLIT(@addonId, '/')[OFFSET(0)]", !1, "Group ID", "groupId", e, "SPLIT_PART(@addon_id, '/',1)", n), t.Field_Field$numeric(e, !1, "Layer", "layer", "layer", e, n), t.Field_Field$numeric("@addonPrice*IF(@isRefund, -1, 1)", !1, "Addon price", "addonPrice", "addon.price", E.x40addon, n), t.Field_Field$numeric("@taxTotal*IF(@isRefund, -1, 1)", !1, "Tax", "taxTotal", "tax.total", "@tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", n), t.Field_Field$numeric(E.x28IFNULb, !1, "Discount", "discountTotal", e, E.x28COALEb, n), t.Field_Field$numeric(E.x28IFNULgx2bb, !1, "Gross before charges", "grossBeforeCharges", e, E.x28COALEgx2bb, n), t.Field_Field$string("CONCAT(@quantity,'x ',ARRAY_TO_STRING([IF(@code='', NULL, @code), @name], ' '))", !1, "Summary", "summary", e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN @code='' THEN NULL ELSE @code END, @name], ' '))", n), t.Field_Field$numeric("@layerNettTotal*IF(@isRefund, -1, 1)", !1, "Layer nett", M, M, "@layer_nett_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", n), t.Field_Field$numeric("@layerBillAdjustmentTotal*IF(@isRefund, -1, 1)", !1, "Layer bill discount", F, F, "@layer_bill_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", n), t.Field_Field$numeric("@layerItemAdjustmentTotal*IF(@isRefund, -1, 1)", !1, "Layer item discount", I, I, "@layer_item_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", n), t.Field_Field$numeric("@layerGrossTotal*IF(@isRefund, -1, 1)", !1, "Layer gross total", x, x, "@layer_gross_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", n), t.Field_Field$numeric("@layerTakeawayPrice*IF(@isRefund, -1, 1)", !1, "Layer takeaway price", w, w, "@layer_takeaway_price*CASE WHEN @is_refund THEN -1 ELSE 1 END", n), t.Field_Field$numeric("@layerTaxTotal*IF(@isRefund, -1, 1)", !1, "Layer tax total", O, O, "@layer_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", n), t.Field_Field$numeric("@layerScTotal*IF(@isRefund, -1, 1)", !1, "Layer sc", J, J, "@layer_sc_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", n), t.Field_Field$numeric("@layerOtherChargeTotal*IF(@isRefund, -1, 1)", !1, "Layer other charge", P, P, "@layer_other_charge_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", n), t.Field_Field$numeric("(IFNULL(@layerGrossTotal,0)+IFNULL(@layerBillAdjustmentTotal,0)+IFNULL(@layerItemAdjustmentTotal,0))*IF(@isRefund, -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", n), t.Field_Field$string(e, !1, "Custom attributes", W, W, e, n), t.Field_Field$string(e, !1, "Layer 0 parent ID", D0, D0, e, n), t.Field_Field$string(e, !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')", n), t.Field_Field$timestamp(e, !1, "Collected time", M0, M0, e, n), t.Field_Field$numeric(e, !1, "Costing", "costing", "costing", e, n), t.Field_Field$numeric("ROUND(TIMESTAMP_DIFF(IFNULL(@servedAt, CURRENT_TIMESTAMP), @sentAt, SECOND),0)", !1, "Preparation seconds", "preparationSeconds", e, "ROUND(EXTRACT(EPOCH FROM AGE(COALESCE(@served_at, CURRENT_TIMESTAMP),@sent_at)),0)", n), t.Field_Field$numeric("(@nettTotal-coalesce(@costing, 0))", !1, "Profit", "profit", e, "(@nett_total-coalesce(@costing, 0))", n), t.Field_Field$string(e, !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)", n), t.Field_Field$string(e, !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)", n), t.Field_Field$string(e, !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)", n), t.Field_Field$string(e, !1, "Sub categories", R0, R0, e, n), t.Field_Field$numeric("@billAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, "Bill discount inc tax", x0, x0, "@bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", n), t.Field_Field$numeric("@itemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, "Item discount inc tax", L0, L0, "@item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", n), t.Field_Field$numeric("@layerBillAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, "Layer bill discount inc tax", O0, O0, "@layer_bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", n), t.Field_Field$numeric("@layerItemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, "Layer item discount inc tax", w0, w0, "@layer_item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", n)], $.JSArray_Field);
8573
8573
  },
8574
8574
  $signature: 0
8575
8575
  }, t.flattenItemSchema_closure0.prototype = {
@@ -9934,12 +9934,12 @@ Arguments: [` + D + "]";
9934
9934
  var e = a.LegacyJavaScriptObject.prototype;
9935
9935
  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.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;
9936
9936
  }(), function() {
9937
- var e = t0._static_2, r = t0._static_1, i = t0._instance_1u, u = t0._instance_0u;
9937
+ var e = K._static_2, r = K._static_1, i = K._instance_1u, u = K._instance_0u;
9938
9938
  e(t, "collection___defaultEquals$closure", "_defaultEquals", 33), r(t, "collection___defaultHashCode$closure", "_defaultHashCode", 22), r(t, "convert___defaultToEncodable$closure", "_defaultToEncodable", 3), r(t, "core__identityHashCode$closure", "identityHashCode", 22), r(t, "core_RegExp_escape$closure", "RegExp_escape", 4), e(t, "core__identical$closure", "identical", 33);
9939
9939
  var o;
9940
9940
  i(o = t.DateBuilder.prototype, "get$setYear", "setYear$1", 6), i(o, "get$setMonth", "setMonth$1", 6), i(o, "get$setDay", "setDay$1", 6), i(o, "get$setDayOfYear", "setDayOfYear$1", 6), i(o, "get$setHour", "setHour$1", 6), i(o, "get$setMinute", "setMinute$1", 6), i(o, "get$setSecond", "setSecond$1", 6), i(o, "get$setFractionalSecond", "setFractionalSecond$1", 6), r(t, "date_format_DateFormat_localeExists$closure", "DateFormat_localeExists", 77), u(t.DateFormat.prototype, "get$_initDigitMatcher", "_initDigitMatcher$0", 49), i(t.ReCase.prototype, "get$_upperCaseFirstLetter", "_upperCaseFirstLetter$1", 4), r(t, "js_compiler__getMergeInfoSql$closure", "getMergeInfoSql", 3), r(t, "js_compiler__getClearTableSql$closure", "getClearTableSql", 3), r(t, "js_compiler__getMergeSql$closure", "getMergeSql", 3), r(t, "js_compiler__getSchemas$closure", "getSchemas", 3), r(t, "js_compiler__getVisualizationSchemas$closure", "getVisualizationSchemas", 3), r(t, "js_compiler__requestJsonToSql$closure", "requestJsonToSql", 3), r(t, "js_compiler__sqlResponsesToQueryResponses$closure", "sqlResponsesToQueryResponses", 3), r(t, "js_compiler__getQueryRequests$closure", "getQueryRequests", 3), r(t, "js_compiler__getCreateMaterializedTableSql$closure", "getCreateMaterializedTableSql", 3);
9941
9941
  }(), function() {
9942
- var e = t0.mixin, r = t0.inherit, i = t0.inheritMany;
9942
+ var e = K.mixin, r = K.inherit, i = K.inheritMany;
9943
9943
  r(t.Object, null), i(t.Object, [t.JS_CONST, a.Interceptor, a.ArrayIterator, t.Error, t._ListBase_Object_ListMixin, t.Iterable, 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(a.Interceptor, [a.JSBool, a.JSNull, a.JavaScriptObject, a.JSArray, a.JSNumber, a.JSString, t.NativeTypedData]), r(a.LegacyJavaScriptObject, a.JavaScriptObject), i(a.LegacyJavaScriptObject, [a.PlainJavaScriptObject, a.UnknownJavaScriptObject, a.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]), r(a.JSUnmodifiableArray, a.JSArray), i(a.JSNumber, [a.JSInt, a.JSNumNotInt]), 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]), r(t.ListBase, t._ListBase_Object_ListMixin), i(t.ListBase, [t.UnmodifiableListBase, t.TypedDataBuffer]), r(t.CodeUnits, t.UnmodifiableListBase), i(t.Iterable, [t.EfficientLengthIterable, t.MappedIterable, t.WhereIterable, t._ConstantMapKeyIterable, t.IterableBase, t._StringAllMatchesIterable]), i(t.EfficientLengthIterable, [t.ListIterable, t.EmptyIterable, t.LinkedHashMapKeyIterable]), i(t.ListIterable, [t.SubListIterable, t.MappedListIterable, t.ReversedListIterable, t._JsonMapKeyIterable, t._GeneratorIterable]), r(t.EfficientLengthMappedIterable, t.MappedIterable), i(t.Iterator, [t.MappedIterator, t.WhereIterator]), r(t._UnmodifiableMapView_MapView__UnmodifiableMapMixin, t.MapView), r(t.UnmodifiableMapView, t._UnmodifiableMapView_MapView__UnmodifiableMapMixin), r(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.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.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.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.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.sqlResponsesToQueryResponses_closure0]), r(t.ConstantStringMap, t.ConstantMap), r(t.NullError, t.TypeError), i(t.TearOffClosure, [t.StaticClosure, t.BoundClosure]), r(t.MapBase, t.MapMixin), i(t.MapBase, [t.JsLinkedHashMap, t._JsonMap]), i(t.IterableBase, [t._AllMatchesIterable, t._SyncStarIterable]), r(t.NativeTypedArray, t.NativeTypedData), r(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, t.NativeTypedArray), r(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin), r(t.NativeTypedArrayOfInt, t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin), i(t.NativeTypedArrayOfInt, [t.NativeUint16List, t.NativeUint32List, t.NativeUint8List]), r(t._TypeError, t._Error), i(t.JsLinkedHashMap, [t._LinkedIdentityHashMap, t._LinkedCustomHashMap]), r(t._SetBase, t.__SetBase_Object_SetMixin), r(t._LinkedHashSet, t._SetBase), i(t.Codec, [t.Encoding, t.JsonCodec]), i(t.Encoding, [t.AsciiCodec, t.Utf8Codec]), r(t.Converter, t.StreamTransformerBase), i(t.Converter, [t._UnicodeSubsetDecoder, t.JsonEncoder, t.JsonDecoder, t.Utf8Encoder]), r(t.AsciiDecoder, t._UnicodeSubsetDecoder), r(t.JsonCyclicError, t.JsonUnsupportedObjectError), r(t._JsonStringStringifier, t._JsonStringifier), i(t.ArgumentError, [t.RangeError, t.IndexError]), r(t.DigestSink, t.Sink), r(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]), r(t.CircularDatasourceConfigModel, t._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig), r(t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig, t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig), r(t.TableDatasourceConfigModel, t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig), r(t.JoinDatasourceConfig, t._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig), r(t.BaseXYDatasourceConfigModel, t._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig), r(t._IntBuffer, t.TypedDataBuffer), r(t.Uint8Buffer, t._IntBuffer), e(t.UnmodifiableListBase, t.UnmodifiableListMixin), 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);
9944
9944
  }();
9945
9945
  var C = {
@@ -10121,7 +10121,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
10121
10121
  };
10122
10122
  }();
10123
10123
  (function() {
10124
- var e = t0.makeConstList;
10124
+ var e = K.makeConstList;
10125
10125
  _.Interceptor_methods = a.Interceptor.prototype, _.JSArray_methods = a.JSArray.prototype, _.JSInt_methods = a.JSInt.prototype, _.JSNumber_methods = a.JSNumber.prototype, _.JSString_methods = a.JSString.prototype, _.JavaScriptFunction_methods = a.JavaScriptFunction.prototype, _.JavaScriptObject_methods = a.JavaScriptObject.prototype, _.NativeUint8List_methods = t.NativeUint8List.prototype, _.PlainJavaScriptObject_methods = a.PlainJavaScriptObject.prototype, _.UnknownJavaScriptObject_methods = a.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) {
10126
10126
  var u = Object.prototype.toString.call(i);
10127
10127
  return u.substring(8, u.length - 1);
@@ -10138,7 +10138,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
10138
10138
  }
10139
10139
  }
10140
10140
  function o(d, c) {
10141
- return O.HTMLElement && d instanceof HTMLElement ? "HTMLElement" : u(d, c);
10141
+ return L.HTMLElement && d instanceof HTMLElement ? "HTMLElement" : u(d, c);
10142
10142
  }
10143
10143
  function s(d) {
10144
10144
  if (typeof window > "u" || typeof window[d] > "u") return null;
@@ -10223,7 +10223,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
10223
10223
  })(), function() {
10224
10224
  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($.String, $.bool), S.DateFormat__digitMatchers = t.LinkedHashMap_LinkedHashMap$_empty($.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], $.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], $.JSArray_DIMENSION_OPTION), S.VisualizationField__isNumericAggregations = t._setArrayType([_.AGGREGATION_TYPE_2, _.AGGREGATION_TYPE_3], $.JSArray_AGGREGATION_TYPE), S.___local = t._Cell$();
10225
10225
  }(), function() {
10226
- var e = t0.lazyFinal, r = t0.lazy;
10226
+ var e = K.lazyFinal, r = K.lazy;
10227
10227
  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({
10228
10228
  toString: function() {
10229
10229
  return "$receiver$";
@@ -10260,8 +10260,8 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
10260
10260
  return i.message;
10261
10261
  }
10262
10262
  }())), 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], $.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)), r(S, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => t.UninitializedLocaleData$("initializeDateFormatting(<locale>)", S.$get$en_USSymbols())), r(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)), r(S, "_availableLocales", "$get$_availableLocales", () => {
10263
- var i, u, o = t.EnLocale$(_.StartOfWeek_1), s = 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), g = t.EnLocale$(_.StartOfWeek_1), m = t.EsLocale$(_.StartOfWeek_2), h = t.EsLocale$(_.StartOfWeek_2), A = t.EsLocale$(_.StartOfWeek_1), b = t.FrLocale$(_.StartOfWeek_2), M = t.FrLocale$(_.StartOfWeek_2), F = t.FrLocale$(_.StartOfWeek_1), I = t.ZhCnLocale$(_.StartOfWeek_1), R = t.ZhCnLocale$(_.StartOfWeek_1), w = t.ZhLocale$(_.StartOfWeek_1), L = t.ZhLocale$(_.StartOfWeek_1), J = t.DeLocale$(_.StartOfWeek_2), v = t.DeLocale$(_.StartOfWeek_2), W = t.DeLocale$(_.StartOfWeek_2), _0 = t.DeLocale$(_.StartOfWeek_2), M0 = t.ItLocale$(_.StartOfWeek_2), R0 = t.ItLocale$(_.StartOfWeek_2), x0 = t.ArLyLocale$(!0, _.StartOfWeek_0), L0 = t.ArLyLocale$(!1, _.StartOfWeek_0), O0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_1), w0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_1), q0 = t.ArSaMaDzKwTnLocale$(!0, _.StartOfWeek_1), Q0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_0), X0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_0);
10264
- return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), i = t.PtLocale$(_.StartOfWeek_2), u = 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", o, "en_us", s, "en_sg", l, "en_au", D, "en_ca", d, "en_gb", c, "en_ie", p, "en_il", y, "en_nz", g, "es", m, "es_do", h, "es_us", A, "fr", b, "fr_ch", M, "fr_ca", F, "zh", I, "zh_cn", R, "zh_hk", w, "zh_tw", L, "de", J, "de_de", v, "de_at", W, "de_ch", _0, "it", M0, "it_ch", R0, "ar", x0, "ar_ly", L0, "ar_dz", O0, "ar_kw", w0, "ar_sa", q0, "ar_ma", Q0, "ar_tn", X0, "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", u, "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()], $.String, t.findType("Locale"));
10263
+ var i, u, o = t.EnLocale$(_.StartOfWeek_1), s = 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), g = t.EnLocale$(_.StartOfWeek_1), m = t.EsLocale$(_.StartOfWeek_2), h = t.EsLocale$(_.StartOfWeek_2), A = t.EsLocale$(_.StartOfWeek_1), b = t.FrLocale$(_.StartOfWeek_2), M = t.FrLocale$(_.StartOfWeek_2), F = t.FrLocale$(_.StartOfWeek_1), I = t.ZhCnLocale$(_.StartOfWeek_1), x = t.ZhCnLocale$(_.StartOfWeek_1), w = t.ZhLocale$(_.StartOfWeek_1), O = t.ZhLocale$(_.StartOfWeek_1), J = t.DeLocale$(_.StartOfWeek_2), P = t.DeLocale$(_.StartOfWeek_2), W = t.DeLocale$(_.StartOfWeek_2), D0 = t.DeLocale$(_.StartOfWeek_2), M0 = t.ItLocale$(_.StartOfWeek_2), R0 = t.ItLocale$(_.StartOfWeek_2), x0 = t.ArLyLocale$(!0, _.StartOfWeek_0), L0 = t.ArLyLocale$(!1, _.StartOfWeek_0), O0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_1), w0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_1), q0 = t.ArSaMaDzKwTnLocale$(!0, _.StartOfWeek_1), Q0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_0), X0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_0);
10264
+ return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), i = t.PtLocale$(_.StartOfWeek_2), u = 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", o, "en_us", s, "en_sg", l, "en_au", D, "en_ca", d, "en_gb", c, "en_ie", p, "en_il", y, "en_nz", g, "es", m, "es_do", h, "es_us", A, "fr", b, "fr_ch", M, "fr_ca", F, "zh", I, "zh_cn", x, "zh_hk", w, "zh_tw", O, "de", J, "de_de", P, "de_at", W, "de_ch", D0, "it", M0, "it_ch", R0, "ar", x0, "ar_ly", L0, "ar_dz", O0, "ar_kw", w0, "ar_sa", q0, "ar_ma", Q0, "ar_tn", X0, "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", u, "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()], $.String, t.findType("Locale"));
10265
10265
  }), e(S, "addonFlattenItemSchema", "$get$addonFlattenItemSchema", () => {
10266
10266
  var i = "createdAt", u = t.Source_Source$couchdb("", ""), o = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], $.JSArray_Permission), i);
10267
10267
  return t.Schema_Schema$build(t._setArrayType(["restaurantId"], $.JSArray_String), null, new t.addonFlattenItemSchema_closure(), _.List_empty, null, null, !1, !1, !0, !1, new t.addonFlattenItemSchema_closure0(), "Addon", "flatten_items", "flatten_item", _.SCHEMA_NAME_7, i, "", u, o);
@@ -10532,7 +10532,7 @@ WHERE (
10532
10532
  (function() {
10533
10533
  var e = function(l) {
10534
10534
  var D = {};
10535
- return D[l] = 1, Object.keys(t0.convertToFastObject(D))[0];
10535
+ return D[l] = 1, Object.keys(K.convertToFastObject(D))[0];
10536
10536
  };
10537
10537
  C.getIsolateTag = function(l) {
10538
10538
  return e("___dart_" + l + C.isolateTag);
@@ -10545,7 +10545,7 @@ WHERE (
10545
10545
  }
10546
10546
  }
10547
10547
  C.dispatchPropertyName = C.getIsolateTag("dispatch_record");
10548
- })(), t0.setOrUpdateInterceptorsByTag({ ArrayBuffer: a.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";
10548
+ })(), K.setOrUpdateInterceptorsByTag({ ArrayBuffer: a.Interceptor, DataView: t.NativeTypedData, ArrayBufferView: t.NativeTypedData, Uint16Array: t.NativeUint16List, Uint32Array: t.NativeUint32List, Uint8Array: t.NativeUint8List }), K.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";
10549
10549
  }(), Function.prototype.call$1 = function(n) {
10550
10550
  return this(n);
10551
10551
  }, Function.prototype.call$0 = function() {
@@ -10558,7 +10558,7 @@ WHERE (
10558
10558
  return this(n, e, r);
10559
10559
  }, Function.prototype.call$8 = function(n, e, r, i, u, o, s, l) {
10560
10560
  return this(n, e, r, i, u, o, s, l);
10561
- }, l0(f), function(n) {
10561
+ }, _0(f), function(n) {
10562
10562
  if (typeof document > "u") {
10563
10563
  n(null);
10564
10564
  return;
@@ -10581,19 +10581,19 @@ WHERE (
10581
10581
  typeof dartMainRunner == "function" ? dartMainRunner(e, []) : e([]);
10582
10582
  });
10583
10583
  })();
10584
- })(ce);
10585
- const Je = ce;
10586
- var He = Je, pe = {};
10584
+ })(fe);
10585
+ const Ne = fe;
10586
+ var ke = Ne, $e = {};
10587
10587
  (function(T) {
10588
- T.load = function(x, O) {
10589
- var H = typeof process < "u" && (process.versions || {}).hasOwnProperty("node"), P = H ? Object.create(globalThis) : globalThis;
10590
- if (P.scheduleImmediate = typeof setImmediate < "u" ? function(N) {
10588
+ T.load = function(R, L) {
10589
+ var H = typeof process < "u" && (process.versions || {}).hasOwnProperty("node"), v = H ? Object.create(globalThis) : globalThis;
10590
+ if (v.scheduleImmediate = typeof setImmediate < "u" ? function(N) {
10591
10591
  setImmediate(N);
10592
10592
  } : function(N) {
10593
10593
  setTimeout(N, 0);
10594
- }, P.exports = O || T, typeof process < "u" && (P.process = process), typeof __dirname < "u" && (P.__dirname = __dirname), typeof __filename < "u" && (P.__filename = __filename), typeof Buffer < "u" && (P.Buffer = Buffer), H) {
10595
- var B = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : de)("url");
10596
- Object.defineProperty(P, "location", {
10594
+ }, v.exports = L || T, typeof process < "u" && (v.process = process), typeof __dirname < "u" && (v.__dirname = __dirname), typeof __filename < "u" && (v.__filename = __filename), typeof Buffer < "u" && (v.Buffer = Buffer), H) {
10595
+ var B = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : pe)("url");
10596
+ Object.defineProperty(v, "location", {
10597
10597
  value: {
10598
10598
  get href() {
10599
10599
  return B.pathToFileURL ? B.pathToFileURL(process.cwd()).href + "/" : "file://" + function() {
@@ -10607,23 +10607,23 @@ var He = Je, pe = {};
10607
10607
  try {
10608
10608
  throw new Error();
10609
10609
  } catch (i0) {
10610
- var q = i0.stack, U = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), z = null;
10610
+ var q = i0.stack, U = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), V = null;
10611
10611
  do {
10612
- var Y = U.exec(q);
10613
- Y != null && (z = Y);
10614
- } while (Y != null);
10615
- return z[1];
10612
+ var X = U.exec(q);
10613
+ X != null && (V = X);
10614
+ } while (X != null);
10615
+ return V[1];
10616
10616
  }
10617
10617
  }
10618
10618
  var k = null;
10619
- Object.defineProperty(P, "document", {
10619
+ Object.defineProperty(v, "document", {
10620
10620
  value: {
10621
10621
  get currentScript() {
10622
10622
  return k == null && (k = { src: N() }), k;
10623
10623
  }
10624
10624
  }
10625
10625
  });
10626
- }(), P.dartDeferredLibraryLoader = function(N, k, q) {
10626
+ }(), v.dartDeferredLibraryLoader = function(N, k, q) {
10627
10627
  try {
10628
10628
  load(N), k();
10629
10629
  } catch (U) {
@@ -10647,7 +10647,7 @@ var He = Je, pe = {};
10647
10647
  function U(e, r) {
10648
10648
  Object.assign(r, e);
10649
10649
  }
10650
- var z = function() {
10650
+ var V = function() {
10651
10651
  var e = function() {
10652
10652
  };
10653
10653
  e.prototype = { p: {} };
@@ -10666,9 +10666,9 @@ var He = Je, pe = {};
10666
10666
  }
10667
10667
  return !1;
10668
10668
  }();
10669
- function Y(e, r) {
10669
+ function X(e, r) {
10670
10670
  if (e.prototype.constructor = e, e.prototype["$is" + e.name] = e, r != null) {
10671
- if (z) {
10671
+ if (V) {
10672
10672
  e.prototype.__proto__ = r.prototype;
10673
10673
  return;
10674
10674
  }
@@ -10678,7 +10678,7 @@ var He = Je, pe = {};
10678
10678
  }
10679
10679
  function i0(e, r) {
10680
10680
  for (var i = 0; i < r.length; i++)
10681
- Y(r[i], e);
10681
+ X(r[i], e);
10682
10682
  }
10683
10683
  function j(e, r) {
10684
10684
  U(r.prototype, e.prototype), e.prototype.constructor = e;
@@ -10686,7 +10686,7 @@ var He = Je, pe = {};
10686
10686
  function Z(e, r) {
10687
10687
  q(r.prototype, e.prototype), e.prototype.constructor = e;
10688
10688
  }
10689
- function X(e, r, i, u) {
10689
+ function G(e, r, i, u) {
10690
10690
  var o = e;
10691
10691
  e[r] = o, e[i] = function() {
10692
10692
  e[i] = function() {
@@ -10727,7 +10727,7 @@ var He = Je, pe = {};
10727
10727
  function s0(e) {
10728
10728
  return e.immutable$list = Array, e.fixed$length = Array, e;
10729
10729
  }
10730
- function l0(e) {
10730
+ function _0(e) {
10731
10731
  return e;
10732
10732
  }
10733
10733
  function d0(e) {
@@ -10748,20 +10748,20 @@ var He = Je, pe = {};
10748
10748
  return r === null && (r = a.closureFromTearOff(e).prototype), r;
10749
10749
  };
10750
10750
  }
10751
- var V = 0;
10751
+ var Y = 0;
10752
10752
  function r0(e, r, i, u, o, s, l, D, d, c) {
10753
- return typeof D == "number" && (D += V), { co: e, iS: r, iI: i, rC: u, dV: o, cs: s, fs: l, fT: D, aI: d || 0, nDA: c };
10753
+ return typeof D == "number" && (D += Y), { co: e, iS: r, iI: i, rC: u, dV: o, cs: s, fs: l, fT: D, aI: d || 0, nDA: c };
10754
10754
  }
10755
- function K(e, r, i, u, o, s, l, D) {
10755
+ function e0(e, r, i, u, o, s, l, D) {
10756
10756
  var d = r0(e, !0, !1, i, u, o, s, l, D, !1), c = Q(d);
10757
10757
  e[r] = c;
10758
10758
  }
10759
- function e0(e, r, i, u, o, s, l, D, d, c) {
10759
+ function n0(e, r, i, u, o, s, l, D, d, c) {
10760
10760
  i = !!i;
10761
10761
  var p = r0(e, !1, i, u, o, s, l, D, d, !!c), y = c0(i, p);
10762
10762
  e[r] = y;
10763
10763
  }
10764
- function G(e) {
10764
+ function z(e) {
10765
10765
  var r = E.interceptorsByTag;
10766
10766
  if (!r) {
10767
10767
  E.interceptorsByTag = e;
@@ -10769,7 +10769,7 @@ var He = Je, pe = {};
10769
10769
  }
10770
10770
  k(e, r);
10771
10771
  }
10772
- function n0(e) {
10772
+ function t0(e) {
10773
10773
  var r = E.leafTags;
10774
10774
  if (!r) {
10775
10775
  E.leafTags = e;
@@ -10777,24 +10777,24 @@ var He = Je, pe = {};
10777
10777
  }
10778
10778
  k(e, r);
10779
10779
  }
10780
- function D0(e) {
10780
+ function l0(e) {
10781
10781
  var r = E.types, i = r.length;
10782
10782
  return r.push.apply(r, e), i;
10783
10783
  }
10784
- function t0(e, r) {
10784
+ function K(e, r) {
10785
10785
  return k(r, e), e;
10786
10786
  }
10787
10787
  var t = function() {
10788
10788
  var e = function(i, u, o, s, l) {
10789
10789
  return function(D, d, c, p) {
10790
- return e0(D, d, i, u, o, s, [c], p, l, !1);
10790
+ return n0(D, d, i, u, o, s, [c], p, l, !1);
10791
10791
  };
10792
10792
  }, r = function(i, u, o, s) {
10793
10793
  return function(l, D, d, c) {
10794
- return K(l, D, i, u, o, [d], c, s);
10794
+ return e0(l, D, i, u, o, [d], c, s);
10795
10795
  };
10796
10796
  };
10797
- return { inherit: Y, inheritMany: i0, mixin: j, mixinHard: Z, installStaticTearOff: K, installInstanceTearOff: e0, _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: r(0, null, ["call$0"], 0), _static_1: r(1, null, ["call$1"], 0), _static_2: r(2, null, ["call$2"], 0), makeConstList: s0, lazy: u0, lazyFinal: a0, lazyOld: X, updateHolder: t0, convertToFastObject: l0, updateTypes: D0, setOrUpdateInterceptorsByTag: G, setOrUpdateLeafTags: n0 };
10797
+ return { inherit: X, inheritMany: i0, mixin: j, mixinHard: Z, installStaticTearOff: e0, installInstanceTearOff: n0, _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: r(0, null, ["call$0"], 0), _static_1: r(1, null, ["call$1"], 0), _static_2: r(2, null, ["call$2"], 0), makeConstList: s0, lazy: u0, lazyFinal: a0, lazyOld: G, updateHolder: K, convertToFastObject: _0, updateTypes: l0, setOrUpdateInterceptorsByTag: z, setOrUpdateLeafTags: t0 };
10798
10798
  }(), a = {
10799
10799
  JS_CONST: function() {
10800
10800
  },
@@ -10844,58 +10844,58 @@ var He = Je, pe = {};
10844
10844
  }
10845
10845
  },
10846
10846
  Sort__dualPivotQuicksort(e, r, i, u) {
10847
- var o, s, l, D, d, c, p, y, g, m, h = f.JSInt_methods._tdivFast$1(i - r + 1, 6), A = r + h, b = i - h, M = f.JSInt_methods._tdivFast$1(r + i, 2), F = M - h, I = M + h, R = _.getInterceptor$asx(e), w = R.$index(e, A), L = R.$index(e, F), J = R.$index(e, M), v = R.$index(e, I), W = R.$index(e, b);
10848
- if (u.call$2(w, L) > 0 && (o = L, L = w, w = o), u.call$2(v, W) > 0 && (o = W, W = v, v = o), u.call$2(w, J) > 0 && (o = J, J = w, w = o), u.call$2(L, J) > 0 && (o = J, J = L, L = o), u.call$2(w, v) > 0 && (o = v, v = w, w = o), u.call$2(J, v) > 0 && (o = v, v = J, J = o), u.call$2(L, W) > 0 && (o = W, W = L, L = o), u.call$2(L, J) > 0 && (o = J, J = L, L = o), u.call$2(v, W) > 0 && (o = W, W = v, v = o), R.$indexSet(e, A, w), R.$indexSet(e, M, J), R.$indexSet(e, b, W), R.$indexSet(e, F, R.$index(e, r)), R.$indexSet(e, I, R.$index(e, i)), s = r + 1, l = i - 1, _.$eq$(u.call$2(L, v), 0)) {
10847
+ var o, s, l, D, d, c, p, y, g, m, h = f.JSInt_methods._tdivFast$1(i - r + 1, 6), A = r + h, b = i - h, M = f.JSInt_methods._tdivFast$1(r + i, 2), F = M - h, I = M + h, x = _.getInterceptor$asx(e), w = x.$index(e, A), O = x.$index(e, F), J = x.$index(e, M), P = x.$index(e, I), W = x.$index(e, b);
10848
+ if (u.call$2(w, O) > 0 && (o = O, O = w, w = o), u.call$2(P, W) > 0 && (o = W, W = P, P = o), u.call$2(w, J) > 0 && (o = J, J = w, w = o), u.call$2(O, J) > 0 && (o = J, J = O, O = o), u.call$2(w, P) > 0 && (o = P, P = w, w = o), u.call$2(J, P) > 0 && (o = P, P = J, J = o), u.call$2(O, W) > 0 && (o = W, W = O, O = o), u.call$2(O, J) > 0 && (o = J, J = O, O = o), u.call$2(P, W) > 0 && (o = W, W = P, P = o), x.$indexSet(e, A, w), x.$indexSet(e, M, J), x.$indexSet(e, b, W), x.$indexSet(e, F, x.$index(e, r)), x.$indexSet(e, I, x.$index(e, i)), s = r + 1, l = i - 1, _.$eq$(u.call$2(O, P), 0)) {
10849
10849
  for (D = s; D <= l; ++D)
10850
- if (d = R.$index(e, D), c = u.call$2(d, L), c !== 0)
10850
+ if (d = x.$index(e, D), c = u.call$2(d, O), c !== 0)
10851
10851
  if (c < 0)
10852
- D !== s && (R.$indexSet(e, D, R.$index(e, s)), R.$indexSet(e, s, d)), ++s;
10852
+ D !== s && (x.$indexSet(e, D, x.$index(e, s)), x.$indexSet(e, s, d)), ++s;
10853
10853
  else
10854
10854
  for (; ; )
10855
- if (c = u.call$2(R.$index(e, l), L), c > 0) {
10855
+ if (c = u.call$2(x.$index(e, l), O), c > 0) {
10856
10856
  --l;
10857
10857
  continue;
10858
10858
  } else if (p = l - 1, c < 0) {
10859
- R.$indexSet(e, D, R.$index(e, s)), y = s + 1, R.$indexSet(e, s, R.$index(e, l)), R.$indexSet(e, l, d), l = p, s = y;
10859
+ x.$indexSet(e, D, x.$index(e, s)), y = s + 1, x.$indexSet(e, s, x.$index(e, l)), x.$indexSet(e, l, d), l = p, s = y;
10860
10860
  break;
10861
10861
  } else {
10862
- R.$indexSet(e, D, R.$index(e, l)), R.$indexSet(e, l, d), l = p;
10862
+ x.$indexSet(e, D, x.$index(e, l)), x.$indexSet(e, l, d), l = p;
10863
10863
  break;
10864
10864
  }
10865
10865
  g = !0;
10866
10866
  } else {
10867
10867
  for (D = s; D <= l; ++D)
10868
- if (d = R.$index(e, D), u.call$2(d, L) < 0)
10869
- D !== s && (R.$indexSet(e, D, R.$index(e, s)), R.$indexSet(e, s, d)), ++s;
10870
- else if (u.call$2(d, v) > 0)
10868
+ if (d = x.$index(e, D), u.call$2(d, O) < 0)
10869
+ D !== s && (x.$indexSet(e, D, x.$index(e, s)), x.$indexSet(e, s, d)), ++s;
10870
+ else if (u.call$2(d, P) > 0)
10871
10871
  for (; ; )
10872
- if (u.call$2(R.$index(e, l), v) > 0) {
10872
+ if (u.call$2(x.$index(e, l), P) > 0) {
10873
10873
  if (--l, l < D)
10874
10874
  break;
10875
10875
  continue;
10876
10876
  } else {
10877
- p = l - 1, u.call$2(R.$index(e, l), L) < 0 ? (R.$indexSet(e, D, R.$index(e, s)), y = s + 1, R.$indexSet(e, s, R.$index(e, l)), R.$indexSet(e, l, d), s = y) : (R.$indexSet(e, D, R.$index(e, l)), R.$indexSet(e, l, d)), l = p;
10877
+ p = l - 1, u.call$2(x.$index(e, l), O) < 0 ? (x.$indexSet(e, D, x.$index(e, s)), y = s + 1, x.$indexSet(e, s, x.$index(e, l)), x.$indexSet(e, l, d), s = y) : (x.$indexSet(e, D, x.$index(e, l)), x.$indexSet(e, l, d)), l = p;
10878
10878
  break;
10879
10879
  }
10880
10880
  g = !1;
10881
10881
  }
10882
- if (m = s - 1, R.$indexSet(e, r, R.$index(e, m)), R.$indexSet(e, m, L), m = l + 1, R.$indexSet(e, i, R.$index(e, m)), R.$indexSet(e, m, v), a.Sort__doSort(e, r, s - 2, u), a.Sort__doSort(e, l + 2, i, u), !g)
10882
+ if (m = s - 1, x.$indexSet(e, r, x.$index(e, m)), x.$indexSet(e, m, O), m = l + 1, x.$indexSet(e, i, x.$index(e, m)), x.$indexSet(e, m, P), a.Sort__doSort(e, r, s - 2, u), a.Sort__doSort(e, l + 2, i, u), !g)
10883
10883
  if (s < A && l > b) {
10884
- for (; _.$eq$(u.call$2(R.$index(e, s), L), 0); )
10884
+ for (; _.$eq$(u.call$2(x.$index(e, s), O), 0); )
10885
10885
  ++s;
10886
- for (; _.$eq$(u.call$2(R.$index(e, l), v), 0); )
10886
+ for (; _.$eq$(u.call$2(x.$index(e, l), P), 0); )
10887
10887
  --l;
10888
10888
  for (D = s; D <= l; ++D)
10889
- if (d = R.$index(e, D), u.call$2(d, L) === 0)
10890
- D !== s && (R.$indexSet(e, D, R.$index(e, s)), R.$indexSet(e, s, d)), ++s;
10891
- else if (u.call$2(d, v) === 0)
10889
+ if (d = x.$index(e, D), u.call$2(d, O) === 0)
10890
+ D !== s && (x.$indexSet(e, D, x.$index(e, s)), x.$indexSet(e, s, d)), ++s;
10891
+ else if (u.call$2(d, P) === 0)
10892
10892
  for (; ; )
10893
- if (u.call$2(R.$index(e, l), v) === 0) {
10893
+ if (u.call$2(x.$index(e, l), P) === 0) {
10894
10894
  if (--l, l < D)
10895
10895
  break;
10896
10896
  continue;
10897
10897
  } else {
10898
- p = l - 1, u.call$2(R.$index(e, l), L) < 0 ? (R.$indexSet(e, D, R.$index(e, s)), y = s + 1, R.$indexSet(e, s, R.$index(e, l)), R.$indexSet(e, l, d), s = y) : (R.$indexSet(e, D, R.$index(e, l)), R.$indexSet(e, l, d)), l = p;
10898
+ p = l - 1, u.call$2(x.$index(e, l), O) < 0 ? (x.$indexSet(e, D, x.$index(e, s)), y = s + 1, x.$indexSet(e, s, x.$index(e, l)), x.$indexSet(e, l, d), s = y) : (x.$indexSet(e, D, x.$index(e, l)), x.$indexSet(e, l, d)), l = p;
10899
10899
  break;
10900
10900
  }
10901
10901
  a.Sort__doSort(e, s, l, u);
@@ -11245,12 +11245,12 @@ var He = Je, pe = {};
11245
11245
  return r;
11246
11246
  },
11247
11247
  Closure_fromTearOff(e) {
11248
- var r, i, u, o, s, l, D, d, c, p, y = e.co, g = e.iS, m = e.iI, h = e.nDA, A = e.aI, b = e.fs, M = e.cs, F = b[0], I = M[0], R = y[F], w = e.fT;
11248
+ var r, i, u, o, s, l, D, d, c, p, y = e.co, g = e.iS, m = e.iI, h = e.nDA, A = e.aI, b = e.fs, M = e.cs, F = b[0], I = M[0], x = y[F], w = e.fT;
11249
11249
  for (w.toString, r = Object.create(g ? new a.StaticClosure().constructor.prototype : new a.BoundClosure(null, null).constructor.prototype), r.$initialize = r.constructor, g ? i = function() {
11250
11250
  this.$initialize();
11251
- } : i = function(J, v) {
11252
- this.$initialize(J, v);
11253
- }, r.constructor = i, i.prototype = r, r.$_name = F, r.$_target = R, u = !g, u ? o = a.Closure_forwardCallTo(F, R, m, h) : (r.$static_name = F, o = R), r.$signature = a.Closure__computeSignatureFunctionNewRti(w, g, m), r[I] = o, s = o, l = 1; l < b.length; ++l)
11251
+ } : i = function(J, P) {
11252
+ this.$initialize(J, P);
11253
+ }, r.constructor = i, i.prototype = r, r.$_name = F, r.$_target = x, u = !g, u ? o = a.Closure_forwardCallTo(F, x, m, h) : (r.$static_name = F, o = x), r.$signature = a.Closure__computeSignatureFunctionNewRti(w, g, m), r[I] = o, s = o, l = 1; l < b.length; ++l)
11254
11254
  D = b[l], typeof D == "string" ? (d = y[D], c = D, D = d) : c = "", p = M[l], p != null && (u && (D = a.Closure_forwardCallTo(c, D, m, h)), r[p] = D), l === A && (s = D);
11255
11255
  return r["call*"] = s, r.$requiredArgCount = e.rC, r.$defaultValues = e.dV, i;
11256
11256
  },
@@ -11698,8 +11698,8 @@ var He = Je, pe = {};
11698
11698
  return a._Universe_eval(E.typeUniverse, e, !1);
11699
11699
  },
11700
11700
  _substitute(e, r, i, u) {
11701
- var o, s, l, D, d, c, p, y, g, m, h, A, b, M, F, I, R = r._kind;
11702
- switch (R) {
11701
+ var o, s, l, D, d, c, p, y, g, m, h, A, b, M, F, I, x = r._kind;
11702
+ switch (x) {
11703
11703
  case 5:
11704
11704
  case 1:
11705
11705
  case 2:
@@ -11723,7 +11723,7 @@ var He = Je, pe = {};
11723
11723
  case 14:
11724
11724
  return F = r._primary, F < u || (I = i[F - u], I == null) ? r : I;
11725
11725
  default:
11726
- throw a.wrapException(a.AssertionError$("Attempted to substitute unexpected RTI kind " + R));
11726
+ throw a.wrapException(a.AssertionError$("Attempted to substitute unexpected RTI kind " + x));
11727
11727
  }
11728
11728
  },
11729
11729
  _substituteArray(e, r, i, u) {
@@ -11985,28 +11985,28 @@ var He = Je, pe = {};
11985
11985
  return s + "})";
11986
11986
  },
11987
11987
  _functionRtiToString(e, r, i) {
11988
- var u, o, s, l, D, d, c, p, y, g, m, h, A, b, M, F, I, R, w, L, J, v = ", ";
11988
+ var u, o, s, l, D, d, c, p, y, g, m, h, A, b, M, F, I, x, w, O, J, P = ", ";
11989
11989
  if (i != null) {
11990
11990
  for (u = i.length, r == null ? (r = a._setArrayType([], n.JSArray_String), o = null) : o = r.length, s = r.length, l = u; l > 0; --l)
11991
11991
  r.push("T" + (s + l));
11992
- for (D = n.nullable_Object, d = n.legacy_Object, c = "<", p = "", l = 0; l < u; ++l, p = v)
11992
+ for (D = n.nullable_Object, d = n.legacy_Object, c = "<", p = "", l = 0; l < u; ++l, p = P)
11993
11993
  c = f.JSString_methods.$add(c + p, r[r.length - 1 - l]), y = i[l], g = y._kind, g === 2 || g === 3 || g === 4 || g === 5 || y === D ? m = !0 : y !== d ? m = !1 : m = !0, m || (c += " extends " + a._rtiToString(y, r));
11994
11994
  c += ">";
11995
11995
  } else
11996
11996
  c = "", o = null;
11997
- for (D = e._primary, h = e._rest, A = h._requiredPositional, b = A.length, M = h._optionalPositional, F = M.length, I = h._named, R = I.length, w = a._rtiToString(D, r), L = "", J = "", l = 0; l < b; ++l, J = v)
11998
- L += J + a._rtiToString(A[l], r);
11997
+ for (D = e._primary, h = e._rest, A = h._requiredPositional, b = A.length, M = h._optionalPositional, F = M.length, I = h._named, x = I.length, w = a._rtiToString(D, r), O = "", J = "", l = 0; l < b; ++l, J = P)
11998
+ O += J + a._rtiToString(A[l], r);
11999
11999
  if (F > 0) {
12000
- for (L += J + "[", J = "", l = 0; l < F; ++l, J = v)
12001
- L += J + a._rtiToString(M[l], r);
12002
- L += "]";
12000
+ for (O += J + "[", J = "", l = 0; l < F; ++l, J = P)
12001
+ O += J + a._rtiToString(M[l], r);
12002
+ O += "]";
12003
12003
  }
12004
- if (R > 0) {
12005
- for (L += J + "{", J = "", l = 0; l < R; l += 3, J = v)
12006
- L += J, I[l + 1] && (L += "required "), L += a._rtiToString(I[l + 2], r) + " " + I[l];
12007
- L += "}";
12004
+ if (x > 0) {
12005
+ for (O += J + "{", J = "", l = 0; l < x; l += 3, J = P)
12006
+ O += J, I[l + 1] && (O += "required "), O += a._rtiToString(I[l + 2], r) + " " + I[l];
12007
+ O += "}";
12008
12008
  }
12009
- return o != null && (r.toString, r.length = o), c + "(" + L + ") => " + w;
12009
+ return o != null && (r.toString, r.length = o), c + "(" + O + ") => " + w;
12010
12010
  },
12011
12011
  _rtiToString(e, r) {
12012
12012
  var i, u, o, s, l, D, d = e._kind;
@@ -12364,7 +12364,7 @@ var He = Je, pe = {};
12364
12364
  return d === 12 ? r === n.JavaScriptFunction ? !0 : s ? !1 : a._isFunctionSubtype(e, r, i, u, o) : l === 9 ? d !== 9 ? !1 : a._isInterfaceSubtype(e, r, i, u, o) : (s = l === 11, s && u === n.Record ? !0 : s && d === 11 ? a._isRecordSubtype(e, r, i, u, o) : !1);
12365
12365
  },
12366
12366
  _isFunctionSubtype(e, r, i, u, o) {
12367
- var s, l, D, d, c, p, y, g, m, h, A, b, M, F, I, R, w, L, J, v, W, _0;
12367
+ var s, l, D, d, c, p, y, g, m, h, A, b, M, F, I, x, w, O, J, P, W, D0;
12368
12368
  if (!a._isSubtype(e, r._primary, i, u._primary, o) || (s = r._rest, l = u._rest, D = s._requiredPositional, d = l._requiredPositional, c = D.length, p = d.length, c > p) || (y = p - c, g = s._optionalPositional, m = l._optionalPositional, h = g.length, A = m.length, c + h < p + A))
12369
12369
  return !1;
12370
12370
  for (b = 0; b < c; ++b)
@@ -12376,23 +12376,23 @@ var He = Je, pe = {};
12376
12376
  for (b = 0; b < A; ++b)
12377
12377
  if (M = g[y + b], !a._isSubtype(e, m[b], o, M, i))
12378
12378
  return !1;
12379
- for (F = s._named, I = l._named, R = F.length, w = I.length, L = 0, J = 0; J < w; J += 3)
12380
- for (v = I[J]; ; ) {
12381
- if (L >= R || (W = F[L], L += 3, v < W))
12379
+ for (F = s._named, I = l._named, x = F.length, w = I.length, O = 0, J = 0; J < w; J += 3)
12380
+ for (P = I[J]; ; ) {
12381
+ if (O >= x || (W = F[O], O += 3, P < W))
12382
12382
  return !1;
12383
- if (_0 = F[L - 2], W < v) {
12384
- if (_0)
12383
+ if (D0 = F[O - 2], W < P) {
12384
+ if (D0)
12385
12385
  return !1;
12386
12386
  continue;
12387
12387
  }
12388
- if (M = I[J + 1], _0 && !M || (M = F[L - 1], !a._isSubtype(e, I[J + 2], o, M, i)))
12388
+ if (M = I[J + 1], D0 && !M || (M = F[O - 1], !a._isSubtype(e, I[J + 2], o, M, i)))
12389
12389
  return !1;
12390
12390
  break;
12391
12391
  }
12392
- for (; L < R; ) {
12393
- if (F[L + 1])
12392
+ for (; O < x; ) {
12393
+ if (F[O + 1])
12394
12394
  return !1;
12395
- L += 3;
12395
+ O += 3;
12396
12396
  }
12397
12397
  return !0;
12398
12398
  },
@@ -13742,9 +13742,9 @@ var He = Je, pe = {};
13742
13742
  DataSourceRowColumnConfig_columnIds_closure1: function(r) {
13743
13743
  this.$this = r;
13744
13744
  },
13745
- TableDatasourceConfigModel: function(r, i, u, o, s, l, D, d, c, p, y, g, m, h, A, b, M, F, I, R) {
13745
+ TableDatasourceConfigModel: function(r, i, u, o, s, l, D, d, c, p, y, g, m, h, A, b, M, F, I, x) {
13746
13746
  var w = this;
13747
- w.columnsWidth = r, w.isDrillable = i, w.showGrandTotal = u, w.rollup = o, w.rollupPosition = s, w.rowsPerPage = l, w.isBlend = D, w._drillDimension = d, w._rowIds = c, w._columnIds = p, w._joinDatasources = y, w.schemaNames = g, w.dimensions = m, w.metrics = h, w.filters = A, w.sorts = b, w.limit = M, w.isComparable = F, w.periodType = I, w.timezone = R;
13747
+ w.columnsWidth = r, w.isDrillable = i, w.showGrandTotal = u, w.rollup = o, w.rollupPosition = s, w.rowsPerPage = l, w.isBlend = D, w._drillDimension = d, w._rowIds = c, w._columnIds = p, w._joinDatasources = y, w.schemaNames = g, w.dimensions = m, w.metrics = h, w.filters = A, w.sorts = b, w.limit = M, w.isComparable = F, w.periodType = I, w.timezone = x;
13748
13748
  },
13749
13749
  TableDatasourceConfigModel_drilledDimensions_closure: function(r) {
13750
13750
  this.$this = r;
@@ -13805,17 +13805,17 @@ var He = Je, pe = {};
13805
13805
  return e instanceof a.BaseXYDatasourceConfigModel && e.isCumulative === !0 ? i = !0 : i = e instanceof a.ScorecardDatasourceConfigModel && e.isCumulative, i ? (i = n.XYDatasetModel, a.List_List$of(a.ListExtensions_mapIndexed(r, new a.accumulate_closure(e), i, i), !0, i)) : r;
13806
13806
  },
13807
13807
  formatBaseXYChartData(e, r, i, u, o) {
13808
- var s, l, D, d, c, p, y, g, m, h, A, b, M, F, I, R, w, L, J, v, W, _0 = null;
13808
+ var s, l, D, d, c, p, y, g, m, h, A, b, M, F, I, x, w, O, J, P, W, D0 = null;
13809
13809
  if (i.length === 0)
13810
- return s = a._setArrayType([], n.JSArray_String), l = a._setArrayType([], n.JSArray_XYDatasetModel), D = a.IterableExtension_get_firstOrNull(i), new a.BaseXYChartDataModel(e, s, l, new a.DateComparison(D == null ? _0 : D.dateRange, _0));
13810
+ return s = a._setArrayType([], n.JSArray_String), l = a._setArrayType([], n.JSArray_XYDatasetModel), D = a.IterableExtension_get_firstOrNull(i), new a.BaseXYChartDataModel(e, s, l, new a.DateComparison(D == null ? D0 : D.dateRange, D0));
13811
13811
  for (d = f.JSArray_methods.get$first(i).columns, s = n.QueryResponse, c = a._formatRows(a.ListExtension_sublistOrEmpty(i, 0, 1, s), o), p = a._formatRows(a.ListExtension_sublistOrEmpty(i, 1, 2, s), o), p.length !== 0 && (s = a._arrayInstanceType(d)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), y = a.List_List$of(new a.MappedListIterable(d, new a.formatBaseXYChartData_closure(), s), !0, s._eval$1("ListIterable.E")), g = a.compare(new a.ComparisonData(y, p), new a.ComparisonData(y, c)), p = g.comparison, c = g.main), r.breakdownDimension == null && (m = f.JSArray_methods.indexWhere$1(d, new a.formatBaseXYChartData_closure0()), s = a._arrayInstanceType(c)._eval$1("MappedListIterable<1,List<@>>"), c = a.List_List$of(new a.MappedListIterable(c, new a.formatBaseXYChartData_closure1(d, m), s), !0, s._eval$1("ListIterable.E")), p.length !== 0 && (s = a._arrayInstanceType(p)._eval$1("MappedListIterable<1,List<@>>"), p = a.List_List$of(new a.MappedListIterable(p, new a.formatBaseXYChartData_closure2(d, m), s), !0, s._eval$1("ListIterable.E")))), s = n.JSArray_String, h = a._setArrayType([], s), A = a._setArrayType([], s), s = c.length, b = 0; b < c.length; c.length === s || (0, a.throwConcurrentModificationError)(c), ++b)
13812
13812
  M = c[b], l = _.getInterceptor$asx(M), h.push(_.toString$0$(l.$index(M, 0))), A.push(_.toString$0$(l.$index(M, 1)));
13813
13813
  for (s = n.String, l = a.LinkedHashSet_LinkedHashSet$from(h, s), h = a.List_List$of(l, !0, a._instanceType(l)._precomputed1), s = a.LinkedHashSet_LinkedHashSet$from(A, s), A = a.List_List$of(s, !0, a._instanceType(s)._precomputed1), F = a._setArrayType([], n.JSArray_XYDatasetModel), s = A.length, l = n.JSArray_num, b = 0; b < A.length; A.length === s || (0, a.throwConcurrentModificationError)(A), ++b) {
13814
- for (I = A[b], R = a._setArrayType([], l), w = a._setArrayType([], l), D = h.length, L = 0; L < h.length; h.length === D || (0, a.throwConcurrentModificationError)(h), ++L)
13815
- J = h[L], v = a.IterableExtension_firstWhereOrNull(c, new a.formatBaseXYChartData_closure3(J, I)), v == null ? v = _0 : (v = a.ListExtension_elementAtOrNull(v, 2), v = v == null ? _0 : _.toString$0$(v)), W = f.JSString_methods.trim$0(v ?? "0"), v = a.Primitives_parseInt(W, _0), v == null && (v = a.Primitives_parseDouble(W)), R.push(v ?? 0), p.length !== 0 && (v = a.IterableExtension_firstWhereOrNull(p, new a.formatBaseXYChartData_closure4(J, I)), v == null ? v = _0 : (v = a.ListExtension_elementAtOrNull(v, 2), v = v == null ? _0 : _.toString$0$(v)), W = f.JSString_methods.trim$0(v ?? "0"), v = a.Primitives_parseInt(W, _0), v == null && (v = a.Primitives_parseDouble(W)), w.push(v ?? 0));
13816
- F.push(new a.XYDatasetModel(I, !1, R)), w.length !== 0 && F.push(new a.XYDatasetModel(I, !0, w));
13814
+ for (I = A[b], x = a._setArrayType([], l), w = a._setArrayType([], l), D = h.length, O = 0; O < h.length; h.length === D || (0, a.throwConcurrentModificationError)(h), ++O)
13815
+ J = h[O], P = a.IterableExtension_firstWhereOrNull(c, new a.formatBaseXYChartData_closure3(J, I)), P == null ? P = D0 : (P = a.ListExtension_elementAtOrNull(P, 2), P = P == null ? D0 : _.toString$0$(P)), W = f.JSString_methods.trim$0(P ?? "0"), P = a.Primitives_parseInt(W, D0), P == null && (P = a.Primitives_parseDouble(W)), x.push(P ?? 0), p.length !== 0 && (P = a.IterableExtension_firstWhereOrNull(p, new a.formatBaseXYChartData_closure4(J, I)), P == null ? P = D0 : (P = a.ListExtension_elementAtOrNull(P, 2), P = P == null ? D0 : _.toString$0$(P)), W = f.JSString_methods.trim$0(P ?? "0"), P = a.Primitives_parseInt(W, D0), P == null && (P = a.Primitives_parseDouble(W)), w.push(P ?? 0));
13816
+ F.push(new a.XYDatasetModel(I, !1, x)), w.length !== 0 && F.push(new a.XYDatasetModel(I, !0, w));
13817
13817
  }
13818
- return F = a.accumulate(r, F), s = a.IterableExtension_get_firstOrNull(i), s = s == null ? _0 : s.dateRange, l = a.ListExtension_elementAtOrNull(i, 1), new a.BaseXYChartDataModel(e, h, F, new a.DateComparison(s, l == null ? _0 : l.dateRange));
13818
+ return F = a.accumulate(r, F), s = a.IterableExtension_get_firstOrNull(i), s = s == null ? D0 : s.dateRange, l = a.ListExtension_elementAtOrNull(i, 1), new a.BaseXYChartDataModel(e, h, F, new a.DateComparison(s, l == null ? D0 : l.dateRange));
13819
13819
  },
13820
13820
  _formatRows_closure: function(r, i) {
13821
13821
  this.response = r, this.timezone = i;
@@ -13895,12 +13895,12 @@ var He = Je, pe = {};
13895
13895
  return new a.RowInfo(s, _.map$1$1$ax(i, new a._getRowInfo_closure(e, r, u, s), o).join$0(0));
13896
13896
  },
13897
13897
  compare(e, r) {
13898
- var i, u, o, s, l, D, d, c, p, y, g, m, h, A, b, M, F, I, R, w, L = {};
13899
- for (L.comparisonDateIndex = L.mainDateIndex = null, i = L.comparisonIndexesCompleted = L.mainIndexesCompleted = !1, u = r.columns, o = n.JSArray_int, s = a.IterableExtension_foldIndexed(u, a._setArrayType([], o), new a.compare_closure(L)), l = a.IterableExtension_foldIndexed(e.columns, a._setArrayType([], o), new a.compare_closure0(L)), o = n.JSArray_String, L.dates = a._setArrayType([], o), (L.mainDateIndex != null ? L.comparisonDateIndex != null : i) && (i = n.String, i = a.ListExtensions_mapIndexed(f.JSArray_methods.fold$2(r.rows, a._setArrayType([], o), new a.compare_closure1(L)), new a.compare_closure2(f.JSArray_methods.fold$2(e.rows, a._setArrayType([], o), new a.compare_closure3(L))), i, i), L.dates = a.List_List$of(i, !0, i.$ti._eval$1("Iterable.E"))), D = f.JSArray_methods.fold$2(e.rows, a.LinkedHashMap_LinkedHashMap$_empty(n.String, n.List_dynamic), new a.compare_closure4(L, e, l)), i = n.JSArray_List_dynamic, o = a._setArrayType([], i), i = a._setArrayType([], i), d = r.rows, c = d.length, p = n.JSArray_dynamic, y = _.getInterceptor$asx(s), g = n.dynamic, m = 0; m < d.length; d.length === c || (0, a.throwConcurrentModificationError)(d), ++m) {
13900
- if (h = d[m], A = a._getRowInfo(u, L.dates, s, h), b = D.$index(0, A.id), M = b == null ? null : _.toList$0$ax(b), M == null) {
13901
- for (b = A.row, F = a.List_List$of(a.ListExtensions_slice(b, 0, y.get$length(s), g), !0, g), I = b.length - y.get$length(s), I < 0 && a.throwExpression(a.ArgumentError$("Length must be a non-negative integer: " + I)), R = a._setArrayType(new Array(I), p), w = 0; w < I; ++w)
13902
- R[w] = null;
13903
- f.JSArray_methods.addAll$1(F, R), M = F;
13898
+ var i, u, o, s, l, D, d, c, p, y, g, m, h, A, b, M, F, I, x, w, O = {};
13899
+ for (O.comparisonDateIndex = O.mainDateIndex = null, i = O.comparisonIndexesCompleted = O.mainIndexesCompleted = !1, u = r.columns, o = n.JSArray_int, s = a.IterableExtension_foldIndexed(u, a._setArrayType([], o), new a.compare_closure(O)), l = a.IterableExtension_foldIndexed(e.columns, a._setArrayType([], o), new a.compare_closure0(O)), o = n.JSArray_String, O.dates = a._setArrayType([], o), (O.mainDateIndex != null ? O.comparisonDateIndex != null : i) && (i = n.String, i = a.ListExtensions_mapIndexed(f.JSArray_methods.fold$2(r.rows, a._setArrayType([], o), new a.compare_closure1(O)), new a.compare_closure2(f.JSArray_methods.fold$2(e.rows, a._setArrayType([], o), new a.compare_closure3(O))), i, i), O.dates = a.List_List$of(i, !0, i.$ti._eval$1("Iterable.E"))), D = f.JSArray_methods.fold$2(e.rows, a.LinkedHashMap_LinkedHashMap$_empty(n.String, n.List_dynamic), new a.compare_closure4(O, e, l)), i = n.JSArray_List_dynamic, o = a._setArrayType([], i), i = a._setArrayType([], i), d = r.rows, c = d.length, p = n.JSArray_dynamic, y = _.getInterceptor$asx(s), g = n.dynamic, m = 0; m < d.length; d.length === c || (0, a.throwConcurrentModificationError)(d), ++m) {
13900
+ if (h = d[m], A = a._getRowInfo(u, O.dates, s, h), b = D.$index(0, A.id), M = b == null ? null : _.toList$0$ax(b), M == null) {
13901
+ for (b = A.row, F = a.List_List$of(a.ListExtensions_slice(b, 0, y.get$length(s), g), !0, g), I = b.length - y.get$length(s), I < 0 && a.throwExpression(a.ArgumentError$("Length must be a non-negative integer: " + I)), x = a._setArrayType(new Array(I), p), w = 0; w < I; ++w)
13902
+ x[w] = null;
13903
+ f.JSArray_methods.addAll$1(F, x), M = F;
13904
13904
  }
13905
13905
  o.push(A.row), i.push(M);
13906
13906
  }
@@ -13997,16 +13997,16 @@ var He = Je, pe = {};
13997
13997
  return o = h.mainResponse, c = o.rows, p = a._arrayInstanceType(c)._eval$1("MappedListIterable<1,TableRowModel>"), o.copyWith$1$rows(a.List_List$of(new a.MappedListIterable(c, new a._formatTableData_closure3(), p), !0, p._eval$1("ListIterable.E")));
13998
13998
  },
13999
13999
  formatTableChartData(e, r, i, u) {
14000
- var o, s, l, D, d, c, p, y, g, m, h, A, b, M, F, I, R, w, L, J, v = {};
14000
+ var o, s, l, D, d, c, p, y, g, m, h, A, b, M, F, I, x, w, O, J, P = {};
14001
14001
  if (r.length === 0)
14002
14002
  return new a.TableDataModel(a._setArrayType([], n.JSArray_TableRowModel), a._setArrayType([], n.JSArray_TableColumnModel));
14003
- for (e.isBlend && (o = a.List_List$of(e.get$dimensions(), !0, n.QueryRequestDimension), f.JSArray_methods.addAll$1(o, f.JSArray_methods.fold$2(e.get$joinDatasources(), a._setArrayType([], n.JSArray_QueryRequestDimension), new a.formatTableChartData_closure())), s = a.List_List$of(e.get$metrics(), !0, n.QueryRequestMetric), f.JSArray_methods.addAll$1(s, f.JSArray_methods.fold$2(e.get$joinDatasources(), a._setArrayType([], n.JSArray_QueryRequestMetric), new a.formatTableChartData_closure0())), l = a._setArrayType([], n.JSArray_JoinDatasourceConfig), D = e.rowsPerPage, d = e.get$columnIds(), c = e.get$rowIds(), p = e.get$drillDimension(), e = a.TableDatasourceConfigModel$(d, e.columnsWidth, o, p, e.filters, !0, e.isComparable, e.isDrillable, l, e.limit, s, e.periodType, e.rollup, e.rollupPosition, c, D, e.schemaNames, e.showGrandTotal, e.sorts, e.timezone)), y = e.get$joinDatasources().length + 1, o = n.QueryResponse, g = a._formatTableData(e, a.ListExtension_sublistOrEmpty(r, 0, y, o), i, u), m = v.comparison = a._formatTableData(e, a.ListExtension_sublistOrEmpty(r, y, y * 2, o), i, u), o = m.rows, o.length !== 0 && (s = g.rows, l = a._arrayInstanceType(s)._eval$1("MappedListIterable<1,List<@>>"), l = a.List_List$of(new a.MappedListIterable(s, new a.formatTableChartData_closure1(), l), !0, l._eval$1("ListIterable.E")), D = g.columns, d = a._arrayInstanceType(D)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), d = a.List_List$of(new a.MappedListIterable(D, new a.formatTableChartData_closure2(), d), !0, d._eval$1("ListIterable.E")), D = a._arrayInstanceType(o)._eval$1("MappedListIterable<1,List<@>>"), D = a.List_List$of(new a.MappedListIterable(o, new a.formatTableChartData_closure3(), D), !0, D._eval$1("ListIterable.E")), c = m.columns, p = a._arrayInstanceType(c)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), h = a.compare(new a.ComparisonData(a.List_List$of(new a.MappedListIterable(c, new a.formatTableChartData_closure4(), p), !0, p._eval$1("ListIterable.E")), D), new a.ComparisonData(d, l)), l = n.TableRowModel, s = a.ListExtensions_mapIndexed(s, new a.formatTableChartData_closure5(h), l, l), g = g.copyWith$1$rows(a.List_List$of(s, !0, s.$ti._eval$1("Iterable.E"))), l = a.ListExtensions_mapIndexed(o, new a.formatTableChartData_closure6(h), l, l), v.comparison = m.copyWith$1$rows(a.List_List$of(l, !0, l.$ti._eval$1("Iterable.E")))), o = g.columns, s = a._arrayInstanceType(o)._eval$1("WhereIterable<1>"), A = a.List_List$of(new a.WhereIterable(o, new a.formatTableChartData_closure7(), s), !0, s._eval$1("Iterable.E")), s = n.String, l = n.int, b = a.LinkedHashMap_LinkedHashMap$_empty(s, l), M = 0; M < o.length; ++M)
14003
+ for (e.isBlend && (o = a.List_List$of(e.get$dimensions(), !0, n.QueryRequestDimension), f.JSArray_methods.addAll$1(o, f.JSArray_methods.fold$2(e.get$joinDatasources(), a._setArrayType([], n.JSArray_QueryRequestDimension), new a.formatTableChartData_closure())), s = a.List_List$of(e.get$metrics(), !0, n.QueryRequestMetric), f.JSArray_methods.addAll$1(s, f.JSArray_methods.fold$2(e.get$joinDatasources(), a._setArrayType([], n.JSArray_QueryRequestMetric), new a.formatTableChartData_closure0())), l = a._setArrayType([], n.JSArray_JoinDatasourceConfig), D = e.rowsPerPage, d = e.get$columnIds(), c = e.get$rowIds(), p = e.get$drillDimension(), e = a.TableDatasourceConfigModel$(d, e.columnsWidth, o, p, e.filters, !0, e.isComparable, e.isDrillable, l, e.limit, s, e.periodType, e.rollup, e.rollupPosition, c, D, e.schemaNames, e.showGrandTotal, e.sorts, e.timezone)), y = e.get$joinDatasources().length + 1, o = n.QueryResponse, g = a._formatTableData(e, a.ListExtension_sublistOrEmpty(r, 0, y, o), i, u), m = P.comparison = a._formatTableData(e, a.ListExtension_sublistOrEmpty(r, y, y * 2, o), i, u), o = m.rows, o.length !== 0 && (s = g.rows, l = a._arrayInstanceType(s)._eval$1("MappedListIterable<1,List<@>>"), l = a.List_List$of(new a.MappedListIterable(s, new a.formatTableChartData_closure1(), l), !0, l._eval$1("ListIterable.E")), D = g.columns, d = a._arrayInstanceType(D)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), d = a.List_List$of(new a.MappedListIterable(D, new a.formatTableChartData_closure2(), d), !0, d._eval$1("ListIterable.E")), D = a._arrayInstanceType(o)._eval$1("MappedListIterable<1,List<@>>"), D = a.List_List$of(new a.MappedListIterable(o, new a.formatTableChartData_closure3(), D), !0, D._eval$1("ListIterable.E")), c = m.columns, p = a._arrayInstanceType(c)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), h = a.compare(new a.ComparisonData(a.List_List$of(new a.MappedListIterable(c, new a.formatTableChartData_closure4(), p), !0, p._eval$1("ListIterable.E")), D), new a.ComparisonData(d, l)), l = n.TableRowModel, s = a.ListExtensions_mapIndexed(s, new a.formatTableChartData_closure5(h), l, l), g = g.copyWith$1$rows(a.List_List$of(s, !0, s.$ti._eval$1("Iterable.E"))), l = a.ListExtensions_mapIndexed(o, new a.formatTableChartData_closure6(h), l, l), P.comparison = m.copyWith$1$rows(a.List_List$of(l, !0, l.$ti._eval$1("Iterable.E")))), o = g.columns, s = a._arrayInstanceType(o)._eval$1("WhereIterable<1>"), A = a.List_List$of(new a.WhereIterable(o, new a.formatTableChartData_closure7(), s), !0, s._eval$1("Iterable.E")), s = n.String, l = n.int, b = a.LinkedHashMap_LinkedHashMap$_empty(s, l), M = 0; M < o.length; ++M)
14004
14004
  F = o[M], b.$indexSet(0, F.key + "_" + F.hide, M);
14005
- for (I = a.LinkedHashMap_LinkedHashMap$_empty(s, l), M = 0; o = v.comparison.columns, M < o.length; ++M)
14005
+ for (I = a.LinkedHashMap_LinkedHashMap$_empty(s, l), M = 0; o = P.comparison.columns, M < o.length; ++M)
14006
14006
  F = o[M], I.$indexSet(0, F.key + "_" + F.hide, M);
14007
- for (R = a._setArrayType([], n.JSArray__ColumnMapping), o = A.length, w = 0; w < o; ++w)
14008
- F = A[w], s = F.key, L = s + "_" + F.hide, s = a.stringReplaceAllUnchecked(s, ".", "_"), l = b.$index(0, L), l == null && (l = -1), D = I.$index(0, L), R.push(new a._ColumnMapping(F, s, l, D ?? -1));
14009
- return o = n.MappedListIterable__ColumnMapping_TableColumnModel, J = a.List_List$of(new a.MappedListIterable(R, new a.formatTableChartData_closure8(), o), !0, o._eval$1("ListIterable.E")), o = v.comparison.rows.length, s = n.TableRowModel, s = a.ListExtensions_mapIndexed(g.rows, new a.formatTableChartData_closure9(v, R, i, u, o !== 0, o), s, s), g.copyWith$2$columns$rows(J, a.List_List$of(s, !0, s.$ti._eval$1("Iterable.E")));
14007
+ for (x = a._setArrayType([], n.JSArray__ColumnMapping), o = A.length, w = 0; w < o; ++w)
14008
+ F = A[w], s = F.key, O = s + "_" + F.hide, s = a.stringReplaceAllUnchecked(s, ".", "_"), l = b.$index(0, O), l == null && (l = -1), D = I.$index(0, O), x.push(new a._ColumnMapping(F, s, l, D ?? -1));
14009
+ return o = n.MappedListIterable__ColumnMapping_TableColumnModel, J = a.List_List$of(new a.MappedListIterable(x, new a.formatTableChartData_closure8(), o), !0, o._eval$1("ListIterable.E")), o = P.comparison.rows.length, s = n.TableRowModel, s = a.ListExtensions_mapIndexed(g.rows, new a.formatTableChartData_closure9(P, x, i, u, o !== 0, o), s, s), g.copyWith$2$columns$rows(J, a.List_List$of(s, !0, s.$ti._eval$1("Iterable.E")));
14010
14010
  },
14011
14011
  _formatTableResponse_closure: function(r) {
14012
14012
  this.config = r;
@@ -14217,15 +14217,15 @@ var He = Je, pe = {};
14217
14217
  }
14218
14218
  },
14219
14219
  formatChartData(e) {
14220
- var r, i = f.C_JsonCodec.decode$2$reviver(P.JSON.stringify(e), null), u = _.getInterceptor$asx(i), o = _.map$1$1$ax(n.List_dynamic._as(u.$index(i, "responses")), new a.formatChartData_closure(), n.QueryResponse), s = a.List_List$of(o, !0, o.$ti._eval$1("ListIterable.E")), l = a._getConfig(u.$index(i, "widget")), D = a.EnumByName_byName(f.List_OX3, _.$index$asx(u.$index(i, "widget"), "type")), d = u.$index(i, "country"), c = u.$index(i, "timezone");
14221
- return l instanceof a.CircularDatasourceConfigModel ? r = a.formatCircularChartData(l, s, d, c).toJson$0() : l instanceof a.BaseXYDatasourceConfigModel ? r = a.formatBaseXYChartData(D, l, s, d, c).toJson$0() : l instanceof a.TableDatasourceConfigModel ? r = a.formatTableChartData(l, s, d, c).toJson$0() : r = D === f.ChartType_3 ? a.formatScoreCardChartData(l, s, d, c).toJson$0() : null, P.JSON.parse(f.C_JsonCodec.encode$2$toEncodable(r, null));
14220
+ var r, i = f.C_JsonCodec.decode$2$reviver(v.JSON.stringify(e), null), u = _.getInterceptor$asx(i), o = _.map$1$1$ax(n.List_dynamic._as(u.$index(i, "responses")), new a.formatChartData_closure(), n.QueryResponse), s = a.List_List$of(o, !0, o.$ti._eval$1("ListIterable.E")), l = a._getConfig(u.$index(i, "widget")), D = a.EnumByName_byName(f.List_OX3, _.$index$asx(u.$index(i, "widget"), "type")), d = u.$index(i, "country"), c = u.$index(i, "timezone");
14221
+ return l instanceof a.CircularDatasourceConfigModel ? r = a.formatCircularChartData(l, s, d, c).toJson$0() : l instanceof a.BaseXYDatasourceConfigModel ? r = a.formatBaseXYChartData(D, l, s, d, c).toJson$0() : l instanceof a.TableDatasourceConfigModel ? r = a.formatTableChartData(l, s, d, c).toJson$0() : r = D === f.ChartType_3 ? a.formatScoreCardChartData(l, s, d, c).toJson$0() : null, v.JSON.parse(f.C_JsonCodec.encode$2$toEncodable(r, null));
14222
14222
  },
14223
14223
  formatChartData_closure: function() {
14224
14224
  },
14225
14225
  Exports: function() {
14226
14226
  },
14227
14227
  main() {
14228
- a.initializeTimeZones(), _.set$formatChartData$x(P.exports, a.allowInterop(a.js__formatChartData$closure()));
14228
+ a.initializeTimeZones(), _.set$formatChartData$x(v.exports, a.allowInterop(a.js__formatChartData$closure()));
14229
14229
  },
14230
14230
  _Exports: function() {
14231
14231
  },
@@ -14369,8 +14369,8 @@ var He = Je, pe = {};
14369
14369
  }, n.Location);
14370
14370
  },
14371
14371
  _deserializeLocation(e) {
14372
- var r, i, u, o, s = a.NativeByteData_NativeByteData$view(e.buffer, e.byteOffset, e.byteLength), l = s.getUint32(0, !1), D = s.getUint32(4, !1), d = s.getUint32(8, !1), c = s.getUint32(12, !1), p = s.getUint32(16, !1), y = s.getUint32(20, !1), g = s.getUint32(24, !1), m = s.getUint32(28, !1), h = f.C_AsciiCodec.decode$1(a.NativeUint8List_NativeUint8List$view(e.buffer, e.byteOffset + l, D)), A = a._setArrayType([], n.JSArray_String), b = a._setArrayType([], n.JSArray_TimeZone), M = n.JSArray_int, F = a._setArrayType([], M), I = a._setArrayType([], M), R = d + c;
14373
- for (r = d, i = r; r < R; ++r)
14372
+ var r, i, u, o, s = a.NativeByteData_NativeByteData$view(e.buffer, e.byteOffset, e.byteLength), l = s.getUint32(0, !1), D = s.getUint32(4, !1), d = s.getUint32(8, !1), c = s.getUint32(12, !1), p = s.getUint32(16, !1), y = s.getUint32(20, !1), g = s.getUint32(24, !1), m = s.getUint32(28, !1), h = f.C_AsciiCodec.decode$1(a.NativeUint8List_NativeUint8List$view(e.buffer, e.byteOffset + l, D)), A = a._setArrayType([], n.JSArray_String), b = a._setArrayType([], n.JSArray_TimeZone), M = n.JSArray_int, F = a._setArrayType([], M), I = a._setArrayType([], M), x = d + c;
14373
+ for (r = d, i = r; r < x; ++r)
14374
14374
  e[r] === 0 && (M = e.buffer, u = e.byteOffset, M = new Uint8Array(M, u + i, r - i), A.push(f.C_AsciiCodec.decode$1(M)), i = r + 1);
14375
14375
  for (i = p, r = 0; r < y; ++r, i = o)
14376
14376
  o = i + 8, b.push(new a.TimeZone(s.getInt32(i, !1) * 1e3, s.getUint8(i + 4) === 1, A[s.getUint8(i + 5)]));
@@ -18130,18 +18130,18 @@ Arguments: [` + d + "]";
18130
18130
  $signature: 0
18131
18131
  }, a._formatTableResponse_closure5.prototype = {
18132
18132
  call$2(e, r) {
18133
- var i, u, o, s, l, D, d, c, p, y, g, m, h, A, b, M, F, I, R, w, L = null, J = n.JSArray_List_dynamic, v = a._setArrayType([[]], J), W = a._setArrayType([[]], J);
18133
+ var i, u, o, s, l, D, d, c, p, y, g, m, h, A, b, M, F, I, x, w, O = null, J = n.JSArray_List_dynamic, P = a._setArrayType([[]], J), W = a._setArrayType([[]], J);
18134
18134
  for (J = this.headers, i = r.value, u = n.dynamic, o = n.JSArray_String, s = n.String, l = this.metricColumns, D = 0; D < J.length; ++D)
18135
18135
  if (d = J[D], c = _.getInterceptor$ax(d), p = c.map$1$1(d, new a._formatTableResponse__closure4(), s).join$1(0, "|"), a.IterableExtension_firstWhereOrNull(d, new a._formatTableResponse__closure5()) != null)
18136
- for (y = c.firstWhere$1(d, new a._formatTableResponse__closure6()), g = c.fold$2(d, !0, new a._formatTableResponse__closure7(r)), c = v.length, m = y.type, h = y.columnValue, A = 0; A < v.length; v.length === c || (0, a.throwConcurrentModificationError)(v), ++A)
18137
- b = v[A], g ? (M = i.$index(0, h), F = b.length, D >= F && f.JSArray_methods.addAll$1(b, a.List_List$filled(D - F + 1, L, !1, u)), b[D] = M) : (M = m == null ? L : a.DataTypeExtension_toData(m, L), F = b.length, D >= F && f.JSArray_methods.addAll$1(b, a.List_List$filled(D - F + 1, L, !1, u)), b[D] = M);
18136
+ for (y = c.firstWhere$1(d, new a._formatTableResponse__closure6()), g = c.fold$2(d, !0, new a._formatTableResponse__closure7(r)), c = P.length, m = y.type, h = y.columnValue, A = 0; A < P.length; P.length === c || (0, a.throwConcurrentModificationError)(P), ++A)
18137
+ b = P[A], g ? (M = i.$index(0, h), F = b.length, D >= F && f.JSArray_methods.addAll$1(b, a.List_List$filled(D - F + 1, O, !1, u)), b[D] = M) : (M = m == null ? O : a.DataTypeExtension_toData(m, O), F = b.length, D >= F && f.JSArray_methods.addAll$1(b, a.List_List$filled(D - F + 1, O, !1, u)), b[D] = M);
18138
18138
  else if (f.JSArray_methods.contains$1(a._setArrayType(["_metric_name", "_metric_value"], o), p))
18139
18139
  for (c = p === "_metric_value", m = p === "_metric_name", I = 0; I < l.length; ++I)
18140
- R = l[I], a.ListExtension_elementAtOrNull(v, I) == null && (v.push(a.List_List$of(v[0], !0, u)), W.push(a.List_List$of(W[0], !0, u))), m ? (h = v[I], M = R.label, F = h.length, D >= F && f.JSArray_methods.addAll$1(h, a.List_List$filled(D - F + 1, L, !1, u)), h[D] = M, W[I].push(M)) : c && (h = v[I], M = i.$index(0, R.id), F = h.length, D >= F && f.JSArray_methods.addAll$1(h, a.List_List$filled(D - F + 1, L, !1, u)), h[D] = M);
18140
+ x = l[I], a.ListExtension_elementAtOrNull(P, I) == null && (P.push(a.List_List$of(P[0], !0, u)), W.push(a.List_List$of(W[0], !0, u))), m ? (h = P[I], M = x.label, F = h.length, D >= F && f.JSArray_methods.addAll$1(h, a.List_List$filled(D - F + 1, O, !1, u)), h[D] = M, W[I].push(M)) : c && (h = P[I], M = i.$index(0, x.id), F = h.length, D >= F && f.JSArray_methods.addAll$1(h, a.List_List$filled(D - F + 1, O, !1, u)), h[D] = M);
18141
18141
  else
18142
- for (w = 0; w < v.length; ++w)
18143
- c = v[w], m = i.$index(0, p), h = c.length, D >= h && f.JSArray_methods.addAll$1(c, a.List_List$filled(D - h + 1, L, !1, u)), c[D] = m, W[w].push(i.$index(0, p));
18144
- return _.addAll$1$ax(e, a.ListExtensions_mapIndexed(v, new a._formatTableResponse__closure8(W, r), n.List_dynamic, n.Map_String_dynamic)), e;
18142
+ for (w = 0; w < P.length; ++w)
18143
+ c = P[w], m = i.$index(0, p), h = c.length, D >= h && f.JSArray_methods.addAll$1(c, a.List_List$filled(D - h + 1, O, !1, u)), c[D] = m, W[w].push(i.$index(0, p));
18144
+ return _.addAll$1$ax(e, a.ListExtensions_mapIndexed(P, new a._formatTableResponse__closure8(W, r), n.List_dynamic, n.Map_String_dynamic)), e;
18145
18145
  },
18146
18146
  $signature: 75
18147
18147
  }, a._formatTableResponse__closure4.prototype = {
@@ -18380,10 +18380,10 @@ Arguments: [` + d + "]";
18380
18380
  $signature: 95
18381
18381
  }, a.formatTableChartData_closure9.prototype = {
18382
18382
  call$2(e, r) {
18383
- var i, u, o, s, l, D, d, c, p, y, g, m, h, A, b, M, F, I, R = this, w = [], L = [], J = r.cells, v = _.getInterceptor$asx(J), W = v.get$length(J);
18384
- for (i = R.columnMappings, u = i.length, o = R.hasComparison, s = R.country, l = R.timezone, D = e < R.comparisonRowsLength, d = R._box_0, c = 0; c < i.length; i.length === u || (0, a.throwConcurrentModificationError)(i), ++c)
18385
- p = i[c], y = p.mainIndex, g = y >= 0 && y < W ? v.$index(J, y) : a.ListExtension_elementAtOrNull(J, y), y = p.column, m = y.type, h = m == null, w.push(h ? null : a.DataTypeExtension_toDisplay(m, y.aggregationType, s, y.decimal, y.dimensionOption, y.formatter, y.timeFormatter, l, g)), o && (D ? (A = d.comparison.rows[e].cells, b = _.getInterceptor$asx(A), M = b.get$length(A), F = p.comparisonIndex, I = F >= 0 && F < M ? b.$index(A, F) : a.ListExtension_elementAtOrNull(A, F)) : I = a.ListExtension_elementAtOrNull([], p.comparisonIndex), L.push(h ? null : a.DataTypeExtension_toDisplay(m, y.aggregationType, s, y.decimal, y.dimensionOption, y.formatter, y.timeFormatter, l, I)));
18386
- return r.copyWith$2$cells$comparisonCells(w, L);
18383
+ var i, u, o, s, l, D, d, c, p, y, g, m, h, A, b, M, F, I, x = this, w = [], O = [], J = r.cells, P = _.getInterceptor$asx(J), W = P.get$length(J);
18384
+ for (i = x.columnMappings, u = i.length, o = x.hasComparison, s = x.country, l = x.timezone, D = e < x.comparisonRowsLength, d = x._box_0, c = 0; c < i.length; i.length === u || (0, a.throwConcurrentModificationError)(i), ++c)
18385
+ p = i[c], y = p.mainIndex, g = y >= 0 && y < W ? P.$index(J, y) : a.ListExtension_elementAtOrNull(J, y), y = p.column, m = y.type, h = m == null, w.push(h ? null : a.DataTypeExtension_toDisplay(m, y.aggregationType, s, y.decimal, y.dimensionOption, y.formatter, y.timeFormatter, l, g)), o && (D ? (A = d.comparison.rows[e].cells, b = _.getInterceptor$asx(A), M = b.get$length(A), F = p.comparisonIndex, I = F >= 0 && F < M ? b.$index(A, F) : a.ListExtension_elementAtOrNull(A, F)) : I = a.ListExtension_elementAtOrNull([], p.comparisonIndex), O.push(h ? null : a.DataTypeExtension_toDisplay(m, y.aggregationType, s, y.decimal, y.dimensionOption, y.formatter, y.timeFormatter, l, I)));
18386
+ return r.copyWith$2$cells$comparisonCells(w, O);
18387
18387
  },
18388
18388
  $signature: 6
18389
18389
  }, a.TZDateTime.prototype = {
@@ -18691,7 +18691,7 @@ Arguments: [` + d + "]";
18691
18691
  }
18692
18692
  }
18693
18693
  function s(c, p) {
18694
- return P.HTMLElement && c instanceof HTMLElement ? "HTMLElement" : o(c, p);
18694
+ return v.HTMLElement && c instanceof HTMLElement ? "HTMLElement" : o(c, p);
18695
18695
  }
18696
18696
  function l(c) {
18697
18697
  if (typeof window > "u" || typeof window[c] > "u") return null;
@@ -18816,8 +18816,8 @@ Arguments: [` + d + "]";
18816
18816
  return u.message;
18817
18817
  }
18818
18818
  }())), r(C, "DateTime__parseFormat", "$get$DateTime__parseFormat", () => a.RegExp_RegExp("^([+-]?\\d{4,6})-?(\\d\\d)-?(\\d\\d)(?:[ T](\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d+))?)?)?( ?[zZ]| ?([-+])(\\d\\d)(?::?(\\d\\d))?)?)?$", !1)), r(C, "_hashSeed", "$get$_hashSeed", () => a.objectHashCode(f.Type_Object_xQ6)), r(C, "Endian_host", "$get$Endian_host", () => a.NativeByteData_NativeByteData$view(a.NativeUint16List_NativeUint16List$fromList(a._setArrayType([1], n.JSArray_int)).buffer, 0, null).getInt8(0) === 1 ? f.C_Endian0 : f.C_Endian), r(C, "_clockKey", "$get$_clockKey", () => new a.Object()), r(C, "en_USSymbols", "$get$en_USSymbols", () => new a.DateSymbols("en_US", f.List_BC_AD, f.List_6xs, f.List_qpm, f.List_qpm, f.List_cIc, f.List_cIc, f.List_h8w, f.List_h8w, f.List_wMy, f.List_wMy, f.List_gc6, f.List_gc6, f.List_3US, f.List_Q1_Q2_Q3_Q4, f.List_bJM, f.List_AM_PM)), i(C, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => a.UninitializedLocaleData$("initializeDateFormatting(<locale>)", C.$get$en_USSymbols())), i(C, "dateTimePatterns", "$get$dateTimePatterns", () => a.UninitializedLocaleData$("initializeDateFormatting(<locale>)", f.Map_EQ6TW)), r(C, "asciiZeroCodeUnit", "$get$asciiZeroCodeUnit", () => 48), r(C, "DateFormat__matchers", "$get$DateFormat__matchers", () => a._setArrayType([a.RegExp_RegExp("^'(?:[^']|'')*'", !1), a.RegExp_RegExp("^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|D+|m+|s+|v+|z+|Z+)", !1), a.RegExp_RegExp("^[^'GyMkSEahKHcLQdDmsvzZ]+", !1)], a.findType("JSArray<RegExp>"))), r(C, "_DateFormatQuotedField__twoEscapedQuotes", "$get$_DateFormatQuotedField__twoEscapedQuotes", () => a.RegExp_RegExp("''", !1)), r(C, "asciiDigitMatcher", "$get$asciiDigitMatcher", () => a.RegExp_RegExp("^\\d+", !1)), i(C, "_availableLocales", "$get$_availableLocales", () => {
18819
- var u, o, s = a.EnLocale$(f.StartOfWeek_1), l = a.EnLocale$(f.StartOfWeek_1), D = a.EnLocale$(f.StartOfWeek_1), d = a.EnLocale$(f.StartOfWeek_1), c = a.EnLocale$(f.StartOfWeek_1), p = a.EnLocale$(f.StartOfWeek_2), y = a.EnLocale$(f.StartOfWeek_2), g = a.EnLocale$(f.StartOfWeek_1), m = a.EnLocale$(f.StartOfWeek_1), h = a.EsLocale$(f.StartOfWeek_2), A = a.EsLocale$(f.StartOfWeek_2), b = a.EsLocale$(f.StartOfWeek_1), M = a.FrLocale$(f.StartOfWeek_2), F = a.FrLocale$(f.StartOfWeek_2), I = a.FrLocale$(f.StartOfWeek_1), R = a.ZhCnLocale$(f.StartOfWeek_1), w = a.ZhCnLocale$(f.StartOfWeek_1), L = a.ZhLocale$(f.StartOfWeek_1), J = a.ZhLocale$(f.StartOfWeek_1), v = a.DeLocale$(f.StartOfWeek_2), W = a.DeLocale$(f.StartOfWeek_2), _0 = a.DeLocale$(f.StartOfWeek_2), M0 = a.DeLocale$(f.StartOfWeek_2), R0 = a.ItLocale$(f.StartOfWeek_2), x0 = a.ItLocale$(f.StartOfWeek_2), L0 = a.ArLyLocale$(!0, f.StartOfWeek_0), O0 = a.ArLyLocale$(!1, f.StartOfWeek_0), w0 = a.ArSaMaDzKwTnLocale$(!1, f.StartOfWeek_1), q0 = a.ArSaMaDzKwTnLocale$(!1, f.StartOfWeek_1), Q0 = a.ArSaMaDzKwTnLocale$(!0, f.StartOfWeek_1), X0 = a.ArSaMaDzKwTnLocale$(!1, f.StartOfWeek_0), Ee = a.ArSaMaDzKwTnLocale$(!1, f.StartOfWeek_0);
18820
- return a.createSentinel(), a.createSentinel(), a.createSentinel(), a.createSentinel(), a.createSentinel(), a.createSentinel(), a.createSentinel(), u = a.PtLocale$(f.StartOfWeek_2), o = a.PtLocale$(f.StartOfWeek_1), a.createSentinel(), a.createSentinel(), a.createSentinel(), a.createSentinel(), a.createSentinel(), a.createSentinel(), a.createSentinel(), a.createSentinel(), a.LinkedHashMap_LinkedHashMap$_literal(["en", s, "en_us", l, "en_sg", D, "en_au", d, "en_ca", c, "en_gb", p, "en_ie", y, "en_il", g, "en_nz", m, "es", h, "es_do", A, "es_us", b, "fr", M, "fr_ch", F, "fr_ca", I, "zh", R, "zh_cn", w, "zh_hk", L, "zh_tw", J, "de", v, "de_de", W, "de_at", _0, "de_ch", M0, "it", R0, "it_ch", x0, "ar", L0, "ar_ly", O0, "ar_dz", w0, "ar_kw", q0, "ar_sa", Q0, "ar_ma", X0, "ar_tn", Ee, "az", new a.AzLocale(f.StartOfWeek_2), "id", new a.IdLocale(f.StartOfWeek_1), "ja", new a.JaLocale(f.StartOfWeek_1), "ko", new a.KoLocale(f.StartOfWeek_1), "ru", new a.RuLocale(f.StartOfWeek_2), "uk", new a.UkLocale(f.StartOfWeek_2), "hi", new a.HiLocale(f.StartOfWeek_1), "pt", u, "pt_br", o, "pl", new a.PlLocale(f.StartOfWeek_2), "tr", new a.TrLocale(f.StartOfWeek_2), "sv", new a.SvLocale(f.StartOfWeek_2), "nb", new a.NbLocale(f.StartOfWeek_2), "fa", new a.FaLocale(f.StartOfWeek_0), "bn", new a.BnLocale(f.StartOfWeek_1), "nl", new a.NlLocale(f.StartOfWeek_2), "th", new a.ThLocale(f.StartOfWeek_1)], n.String, a.findType("Locale"));
18819
+ var u, o, s = a.EnLocale$(f.StartOfWeek_1), l = a.EnLocale$(f.StartOfWeek_1), D = a.EnLocale$(f.StartOfWeek_1), d = a.EnLocale$(f.StartOfWeek_1), c = a.EnLocale$(f.StartOfWeek_1), p = a.EnLocale$(f.StartOfWeek_2), y = a.EnLocale$(f.StartOfWeek_2), g = a.EnLocale$(f.StartOfWeek_1), m = a.EnLocale$(f.StartOfWeek_1), h = a.EsLocale$(f.StartOfWeek_2), A = a.EsLocale$(f.StartOfWeek_2), b = a.EsLocale$(f.StartOfWeek_1), M = a.FrLocale$(f.StartOfWeek_2), F = a.FrLocale$(f.StartOfWeek_2), I = a.FrLocale$(f.StartOfWeek_1), x = a.ZhCnLocale$(f.StartOfWeek_1), w = a.ZhCnLocale$(f.StartOfWeek_1), O = a.ZhLocale$(f.StartOfWeek_1), J = a.ZhLocale$(f.StartOfWeek_1), P = a.DeLocale$(f.StartOfWeek_2), W = a.DeLocale$(f.StartOfWeek_2), D0 = a.DeLocale$(f.StartOfWeek_2), M0 = a.DeLocale$(f.StartOfWeek_2), R0 = a.ItLocale$(f.StartOfWeek_2), x0 = a.ItLocale$(f.StartOfWeek_2), L0 = a.ArLyLocale$(!0, f.StartOfWeek_0), O0 = a.ArLyLocale$(!1, f.StartOfWeek_0), w0 = a.ArSaMaDzKwTnLocale$(!1, f.StartOfWeek_1), q0 = a.ArSaMaDzKwTnLocale$(!1, f.StartOfWeek_1), Q0 = a.ArSaMaDzKwTnLocale$(!0, f.StartOfWeek_1), X0 = a.ArSaMaDzKwTnLocale$(!1, f.StartOfWeek_0), Te = a.ArSaMaDzKwTnLocale$(!1, f.StartOfWeek_0);
18820
+ return a.createSentinel(), a.createSentinel(), a.createSentinel(), a.createSentinel(), a.createSentinel(), a.createSentinel(), a.createSentinel(), u = a.PtLocale$(f.StartOfWeek_2), o = a.PtLocale$(f.StartOfWeek_1), a.createSentinel(), a.createSentinel(), a.createSentinel(), a.createSentinel(), a.createSentinel(), a.createSentinel(), a.createSentinel(), a.createSentinel(), a.LinkedHashMap_LinkedHashMap$_literal(["en", s, "en_us", l, "en_sg", D, "en_au", d, "en_ca", c, "en_gb", p, "en_ie", y, "en_il", g, "en_nz", m, "es", h, "es_do", A, "es_us", b, "fr", M, "fr_ch", F, "fr_ca", I, "zh", x, "zh_cn", w, "zh_hk", O, "zh_tw", J, "de", P, "de_de", W, "de_at", D0, "de_ch", M0, "it", R0, "it_ch", x0, "ar", L0, "ar_ly", O0, "ar_dz", w0, "ar_kw", q0, "ar_sa", Q0, "ar_ma", X0, "ar_tn", Te, "az", new a.AzLocale(f.StartOfWeek_2), "id", new a.IdLocale(f.StartOfWeek_1), "ja", new a.JaLocale(f.StartOfWeek_1), "ko", new a.KoLocale(f.StartOfWeek_1), "ru", new a.RuLocale(f.StartOfWeek_2), "uk", new a.UkLocale(f.StartOfWeek_2), "hi", new a.HiLocale(f.StartOfWeek_1), "pt", u, "pt_br", o, "pl", new a.PlLocale(f.StartOfWeek_2), "tr", new a.TrLocale(f.StartOfWeek_2), "sv", new a.SvLocale(f.StartOfWeek_2), "nb", new a.NbLocale(f.StartOfWeek_2), "fa", new a.FaLocale(f.StartOfWeek_0), "bn", new a.BnLocale(f.StartOfWeek_1), "nl", new a.NlLocale(f.StartOfWeek_2), "th", new a.ThLocale(f.StartOfWeek_1)], n.String, a.findType("Locale"));
18821
18821
  }), r(C, "_UTC", "$get$_UTC", () => {
18822
18822
  var u = n.JSArray_int;
18823
18823
  return a.Location$("UTC", a._setArrayType([-864e13], u), a._setArrayType([0], u), a._setArrayType([f.TimeZone_0_false_UTC], n.JSArray_TimeZone));
@@ -18876,116 +18876,188 @@ Arguments: [` + d + "]";
18876
18876
  });
18877
18877
  })();
18878
18878
  };
18879
- })(pe);
18880
- const fe = pe;
18881
- fe.load({});
18882
- var Ne = fe;
18883
- const ne = new Intl.Collator(void 0, { numeric: !0, sensitivity: "base" });
18884
- function ke(T, x) {
18879
+ })($e);
18880
+ const ye = $e;
18881
+ ye.load({});
18882
+ var Ue = ye;
18883
+ const ne = new Intl.Collator(void 0, { numeric: !0, sensitivity: "base" }), qe = (() => {
18884
+ const T = new Intl.DateTimeFormat("en-US", { weekday: "short" });
18885
+ return Array.from(
18886
+ { length: 7 },
18887
+ (R, L) => T.format(new Date(1970, 0, 4 + L)).toLowerCase().slice(0, 3)
18888
+ );
18889
+ })();
18890
+ function ie(T) {
18891
+ if (T == null || T === "") return null;
18892
+ const R = String(T).trim();
18893
+ if (R === "") return null;
18894
+ const L = R.toLowerCase().slice(0, 3), H = qe.indexOf(L);
18895
+ if (H !== -1 && R.length <= 3)
18896
+ return { type: "dayName", value: H };
18897
+ const v = R.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})\s+(\d{1,2}):(\d{2})(?::(\d{2}))?$/);
18898
+ if (v) {
18899
+ const [, U, V, X, i0, j, Z = "0"] = v;
18900
+ return {
18901
+ type: "fullDateTime",
18902
+ value: new Date(
18903
+ parseInt(X),
18904
+ parseInt(V) - 1,
18905
+ parseInt(U),
18906
+ parseInt(i0),
18907
+ parseInt(j),
18908
+ parseInt(Z)
18909
+ ).getTime()
18910
+ };
18911
+ }
18912
+ const B = R.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/);
18913
+ if (B) {
18914
+ const [, U, V, X] = B;
18915
+ return {
18916
+ type: "date",
18917
+ value: new Date(parseInt(X), parseInt(V) - 1, parseInt(U)).getTime()
18918
+ };
18919
+ }
18920
+ const N = R.match(/^(\d{4})\/(\d{1,2})\/(\d{1,2})$/);
18921
+ if (N) {
18922
+ const [, U, V, X] = N;
18923
+ return {
18924
+ type: "date",
18925
+ value: new Date(parseInt(U), parseInt(V) - 1, parseInt(X)).getTime()
18926
+ };
18927
+ }
18928
+ const k = R.match(/^(\d{1,2})\/(\d{4})$/);
18929
+ if (k) {
18930
+ const [, U, V] = k;
18931
+ return {
18932
+ type: "monthYear",
18933
+ value: new Date(parseInt(V), parseInt(U) - 1, 1).getTime()
18934
+ };
18935
+ }
18936
+ const q = R.match(/^(\d{1,2}):(\d{2})(?::(\d{2}))?$/);
18937
+ if (q) {
18938
+ const [, U, V, X = "0"] = q;
18939
+ return {
18940
+ type: "time",
18941
+ value: parseInt(U) * 3600 + parseInt(V) * 60 + parseInt(X)
18942
+ };
18943
+ }
18944
+ return /^\d+$/.test(R) ? { type: "number", value: parseInt(R) } : null;
18945
+ }
18946
+ function ue(T, R) {
18947
+ const L = ie(T), H = ie(R);
18948
+ return !L && !H ? null : L ? H ? (L.type === H.type, L.value - H.value) : -1 : 1;
18949
+ }
18950
+ function Qe(T, R) {
18885
18951
  var H;
18886
- const O = { isRollup: T.isRollup };
18887
- for (let P = 0; P < x.length; P++) {
18888
- const B = x[P].key;
18889
- B && (O[B] = {
18890
- main: T.cells[P],
18891
- comparison: (H = T.comparisonCells) == null ? void 0 : H[P]
18952
+ const L = { isRollup: T.isRollup };
18953
+ for (let v = 0; v < R.length; v++) {
18954
+ const B = R[v].key;
18955
+ B && (L[B] = {
18956
+ main: T.cells[v],
18957
+ comparison: (H = T.comparisonCells) == null ? void 0 : H[v]
18892
18958
  });
18893
18959
  }
18894
- return O;
18960
+ return L;
18895
18961
  }
18896
- function Ue(T, x) {
18962
+ function Xe(T, R) {
18897
18963
  if (T <= 0) return [];
18898
- const O = {};
18899
- for (const H of x) O[H.key] = void 0;
18900
- return Array.from({ length: T }, () => ({ ...O }));
18964
+ const L = {};
18965
+ for (const H of R) L[H.key] = void 0;
18966
+ return Array.from({ length: T }, () => ({ ...L }));
18901
18967
  }
18902
- function J0(T, x, O) {
18903
- var P, B;
18904
- if (((P = T[x]) == null ? void 0 : P.main) !== void 0) return T[x].main;
18905
- const H = O.findIndex((N) => N.key === x);
18968
+ function J0(T, R, L) {
18969
+ var v, B;
18970
+ if (((v = T[R]) == null ? void 0 : v.main) !== void 0) return T[R].main;
18971
+ const H = L.findIndex((N) => N.key === R);
18906
18972
  return H >= 0 ? (B = T.cells) == null ? void 0 : B[H] : void 0;
18907
18973
  }
18908
- function qe(T) {
18909
- var u0, a0, s0, l0, d0, c0;
18974
+ function Ve(T) {
18975
+ var u0, a0, s0, _0, d0, c0;
18910
18976
  const {
18911
- rows: x = [],
18912
- columns: O = [],
18977
+ rows: R = [],
18978
+ columns: L = [],
18913
18979
  globalSorts: H = [],
18914
- filter: P = null,
18980
+ filter: v = null,
18915
18981
  grandTotalPosition: B = null,
18916
18982
  pageSize: N = 0
18917
18983
  } = T;
18918
- let k = Array.isArray(x) ? [...x] : [];
18984
+ let k = Array.isArray(R) ? [...R] : [];
18919
18985
  B === "BOTTOM" && ((u0 = k.at(-1)) != null && u0.isRollup) && k.pop(), B === "TOP" && ((a0 = k[0]) != null && a0.isRollup) && k.shift();
18920
18986
  let q = 0;
18921
18987
  for (const Q of k)
18922
18988
  Q.isRollup && q++, Q.groupIndex = q;
18923
18989
  const U = {};
18924
- for (const Q of O) U[Q.key] = Q.type === "NUMERIC";
18925
- const z = H.filter(
18926
- (Q) => Q.key && O.some((V) => V.key === Q.key)
18927
- ), Y = z.length > 0;
18928
- let i0 = x;
18929
- P !== null && (i0 = i0.filter((Q) => !(P !== "" && (Q.isRollup === !0 || !Q.cells.some((V) => ((V == null ? void 0 : V.toLowerCase()) || "").includes(P == null ? void 0 : P.toLowerCase()))))).map((Q) => ({ ...ke(Q, O), groupIndex: Q.groupIndex })));
18990
+ for (const Q of L) U[Q.key] = Q.type === "NUMERIC";
18991
+ const V = H.filter(
18992
+ (Q) => Q.key && L.some((Y) => Y.key === Q.key)
18993
+ ), X = V.length > 0;
18994
+ let i0 = R;
18995
+ v !== null && (i0 = i0.filter((Q) => !(v !== "" && (Q.isRollup === !0 || !Q.cells.some((Y) => ((Y == null ? void 0 : Y.toLowerCase()) || "").includes(v == null ? void 0 : v.toLowerCase()))))).map((Q) => ({ ...Qe(Q, L), groupIndex: Q.groupIndex })));
18930
18996
  const j = {};
18931
18997
  for (const Q of i0) {
18932
- const V = Q.groupIndex;
18933
- V !== void 0 && (j[V] || (j[V] = [])).push(Q);
18998
+ const Y = Q.groupIndex;
18999
+ Y !== void 0 && (j[Y] || (j[Y] = [])).push(Q);
18934
19000
  }
18935
- Y && Object.values(j).forEach((Q) => {
18936
- const V = Q.filter((K) => K.isRollup), r0 = Q.filter((K) => !K.isRollup);
18937
- r0.sort((K, e0) => {
18938
- for (const { key: G, type: n0 } of z) {
18939
- const D0 = n0 === "ASC" ? 1 : -1, t0 = J0(K, G, O) ?? "", t = J0(e0, G, O) ?? "";
18940
- if (U[G]) {
18941
- const a = Number(t0) - Number(t);
18942
- if (a !== 0) return a * D0;
19001
+ X && Object.values(j).forEach((Q) => {
19002
+ const Y = Q.filter((e0) => e0.isRollup), r0 = Q.filter((e0) => !e0.isRollup);
19003
+ r0.sort((e0, n0) => {
19004
+ for (const { key: z, type: t0 } of V) {
19005
+ const l0 = t0 === "ASC" ? 1 : -1, K = J0(e0, z, L) ?? "", t = J0(n0, z, L) ?? "";
19006
+ if (U[z]) {
19007
+ const a = Number(K) - Number(t);
19008
+ if (a !== 0) return a * l0;
18943
19009
  } else {
18944
- const a = ne.compare(String(t0), String(t));
18945
- if (a !== 0) return a * D0;
19010
+ const a = ue(K, t);
19011
+ if (a !== null && a !== 0)
19012
+ return a * l0;
19013
+ const _ = ne.compare(String(K), String(t));
19014
+ if (_ !== 0) return _ * l0;
18946
19015
  }
18947
19016
  }
18948
19017
  return 0;
18949
- }), j[Q[0].groupIndex] = V.concat(r0);
19018
+ }), j[Q[0].groupIndex] = Y.concat(r0);
18950
19019
  });
18951
19020
  let Z;
18952
- if (Y) {
19021
+ if (X) {
18953
19022
  const Q = B === null ? (() => {
18954
- const K = Object.keys(j).find(
18955
- (e0) => j[e0].some((G) => G.isRollup)
18956
- );
18957
- return K !== void 0 ? Number(K) : -1;
18958
- })() : -1, V = ((s0 = z[0]) == null ? void 0 : s0.key) ?? ((l0 = O.find((K) => U[K.key])) == null ? void 0 : l0.key), r0 = ((d0 = z[0]) == null ? void 0 : d0.type) === "ASC" ? 1 : (((c0 = z[0]) == null ? void 0 : c0.type) === "DESC", -1);
18959
- Z = Object.keys(j).map(Number).sort((K, e0) => {
18960
- if (!V) return K - e0;
19023
+ const e0 = Object.keys(j).find((n0) => {
19024
+ const z = j[n0] || [], t0 = z.some((K) => K.isRollup), l0 = z.some((K) => !K.isRollup);
19025
+ return t0 && !l0;
19026
+ });
19027
+ return e0 !== void 0 ? Number(e0) : -1;
19028
+ })() : -1, Y = ((s0 = V[0]) == null ? void 0 : s0.key) ?? ((_0 = L.find((e0) => U[e0.key])) == null ? void 0 : _0.key), r0 = ((d0 = V[0]) == null ? void 0 : d0.type) === "ASC" ? 1 : (((c0 = V[0]) == null ? void 0 : c0.type) === "DESC", -1);
19029
+ Z = Object.keys(j).map(Number).sort((e0, n0) => {
19030
+ if (!Y) return e0 - n0;
18961
19031
  if (Q !== -1) {
18962
- if (K === Q) return -1;
18963
- if (e0 === Q) return 1;
19032
+ if (e0 === Q) return -1;
19033
+ if (n0 === Q) return 1;
18964
19034
  }
18965
- const G = j[K].find((t) => t.isRollup), n0 = j[e0].find((t) => t.isRollup), D0 = G ? J0(G, V, O) ?? "" : "", t0 = n0 ? J0(n0, V, O) ?? "" : "";
18966
- return U[V] ? (Number(D0) - Number(t0)) * r0 : ne.compare(String(D0), String(t0)) * r0;
19035
+ const z = j[e0].find((a) => a.isRollup), t0 = j[n0].find((a) => a.isRollup), l0 = z ? J0(z, Y, L) ?? "" : "", K = t0 ? J0(t0, Y, L) ?? "" : "";
19036
+ if (U[Y]) return (Number(l0) - Number(K)) * r0;
19037
+ const t = ue(l0, K);
19038
+ return t !== null ? t * r0 : ne.compare(String(l0), String(K)) * r0;
18967
19039
  });
18968
19040
  } else
18969
- Z = Object.keys(j).map(Number).sort((Q, V) => Q - V);
18970
- const X = [];
19041
+ Z = Object.keys(j).map(Number).sort((Q, Y) => Q - Y);
19042
+ const G = [];
18971
19043
  for (const Q of Z)
18972
- for (const { groupIndex: V, ...r0 } of j[Q])
18973
- X.push(r0);
19044
+ for (const { groupIndex: Y, ...r0 } of j[Q])
19045
+ G.push(r0);
18974
19046
  if (N > 0) {
18975
- const Q = X.length % N;
18976
- let V = 0;
18977
- Q > 0 ? V = N - Q : X.length === 0 && (V = N), V > 0 && X.push(...Ue(V, O));
19047
+ const Q = G.length % N;
19048
+ let Y = 0;
19049
+ Q > 0 ? Y = N - Q : G.length === 0 && (Y = N), Y > 0 && G.push(...Xe(Y, L));
18978
19050
  }
18979
- return { data: X };
19051
+ return { data: G };
18980
19052
  }
18981
- var Qe = { processTableData: qe };
18982
- const Xe = He, Ve = Ne, Ge = Qe;
19053
+ var Ge = { processTableData: Ve };
19054
+ const Ye = ke, ze = Ue, We = Ge;
18983
19055
  var Z0 = {
18984
- ...Ge,
18985
- ...Ve,
18986
- ...Xe
18987
- }, W0 = /* @__PURE__ */ ((T) => (T.DateTime = "DATE_TIME", T.Hour = "HOUR", T.Day = "DAY", T.Week = "WEEK", T.Month = "MONTH", T.TimeOfDay = "TIME_OF_DAY", T.HourOfDay = "HOUR_OF_DAY", T.DayOfWeek = "DAY_OF_WEEK", T.DayOfMonth = "DAY_OF_MONTH", T.MonthOfYear = "MONTH_OF_YEAR", T.Year = "YEAR", T.YearMonthDay = "YEAR_MONTH_DAY", T))(W0 || {}), Ye = /* @__PURE__ */ ((T) => (T.Asc = "ASC", T.Desc = "DESC", T))(Ye || {}), j0 = /* @__PURE__ */ ((T) => (T.Equal = "EQUAL", T.NotEqual = "NOT_EQUAL", T.GreaterThan = "GREATER_THAN", T.LessThan = "LESS_THAN", T.GreaterThanOrEqual = "GREATER_THAN_OR_EQUAL", T.LessThanOrEqual = "LESS_THAN_OR_EQUAL", T.Between = "BETWEEN", T.Like = "LIKE", T.NotLike = "NOT_LIKE", T.And = "AND", T.Or = "OR", T))(j0 || {}), ze = /* @__PURE__ */ ((T) => (T.String = "STRING", T.Timestamp = "TIMESTAMP", T.Bool = "BOOL", T.Numeric = "NUMERIC", T))(ze || {}), We = /* @__PURE__ */ ((T) => (T.MTD = "MTD", T))(We || {}), je = /* @__PURE__ */ ((T) => (T.Scorecard = "SCORECARD", T.Spacer = "SPACER", T.Table = "TABLE", T.BarChart = "BARCHART", T.StackBarChart = "STACKBARCHART", T.LineChart = "LINECHART", T.StackLineChart = "STACKLINECHART", T.Circular = "CIRCULAR", T))(je || {}), Ke = /* @__PURE__ */ ((T) => (T.EXCEL = "excel", T.PDF = "pdf", T.PDFFULLSIZE = "pdfFullSize", T.PDFRECEIPT = "pdfReceipt", T))(Ke || {}), Ze = /* @__PURE__ */ ((T) => (T.PORTRAIT = "portrait", T.LANDSCAPE = "landscape", T))(Ze || {});
18988
- function kt(T) {
19056
+ ...We,
19057
+ ...ze,
19058
+ ...Ye
19059
+ }, W0 = /* @__PURE__ */ ((T) => (T.DateTime = "DATE_TIME", T.Hour = "HOUR", T.Day = "DAY", T.Week = "WEEK", T.Month = "MONTH", T.TimeOfDay = "TIME_OF_DAY", T.HourOfDay = "HOUR_OF_DAY", T.DayOfWeek = "DAY_OF_WEEK", T.DayOfMonth = "DAY_OF_MONTH", T.MonthOfYear = "MONTH_OF_YEAR", T.Year = "YEAR", T.YearMonthDay = "YEAR_MONTH_DAY", T))(W0 || {}), je = /* @__PURE__ */ ((T) => (T.Asc = "ASC", T.Desc = "DESC", T))(je || {}), j0 = /* @__PURE__ */ ((T) => (T.Equal = "EQUAL", T.NotEqual = "NOT_EQUAL", T.GreaterThan = "GREATER_THAN", T.LessThan = "LESS_THAN", T.GreaterThanOrEqual = "GREATER_THAN_OR_EQUAL", T.LessThanOrEqual = "LESS_THAN_OR_EQUAL", T.Between = "BETWEEN", T.Like = "LIKE", T.NotLike = "NOT_LIKE", T.And = "AND", T.Or = "OR", T))(j0 || {}), Ke = /* @__PURE__ */ ((T) => (T.String = "STRING", T.Timestamp = "TIMESTAMP", T.Bool = "BOOL", T.Numeric = "NUMERIC", T))(Ke || {}), Ze = /* @__PURE__ */ ((T) => (T.MTD = "MTD", T))(Ze || {}), et = /* @__PURE__ */ ((T) => (T.Scorecard = "SCORECARD", T.Spacer = "SPACER", T.Table = "TABLE", T.BarChart = "BARCHART", T.StackBarChart = "STACKBARCHART", T.LineChart = "LINECHART", T.StackLineChart = "STACKLINECHART", T.Circular = "CIRCULAR", T))(et || {}), tt = /* @__PURE__ */ ((T) => (T.EXCEL = "excel", T.PDF = "pdf", T.PDFFULLSIZE = "pdfFullSize", T.PDFRECEIPT = "pdfReceipt", T))(tt || {}), rt = /* @__PURE__ */ ((T) => (T.PORTRAIT = "portrait", T.LANDSCAPE = "landscape", T))(rt || {});
19060
+ function Qt(T) {
18989
19061
  switch (T) {
18990
19062
  case "excel":
18991
19063
  return "Excel";
@@ -18999,7 +19071,7 @@ function kt(T) {
18999
19071
  return "Unknown";
19000
19072
  }
19001
19073
  }
19002
- function Ut(T) {
19074
+ function Xt(T) {
19003
19075
  switch (T) {
19004
19076
  case "landscape":
19005
19077
  return "report.common.landscape";
@@ -19009,105 +19081,105 @@ function Ut(T) {
19009
19081
  return "report.input.unknown";
19010
19082
  }
19011
19083
  }
19012
- const I0 = "/report-settings", et = async () => {
19084
+ const I0 = "/report-settings", nt = async () => {
19013
19085
  const { businessId: T } = p0(m0());
19014
19086
  if (T) {
19015
- const x = {
19087
+ const R = {
19016
19088
  fetchType: y0.Get,
19017
19089
  url: `${I0}/${T.value}/reports`
19018
19090
  };
19019
- return g0.fetch(x);
19091
+ return g0.fetch(R);
19020
19092
  } else
19021
19093
  return Promise.reject(new Error("Business Id is not defined"));
19022
- }, tt = (T) => {
19023
- const { businessId: x } = p0(m0()), O = {
19094
+ }, it = (T) => {
19095
+ const { businessId: R } = p0(m0()), L = {
19024
19096
  fetchType: y0.Put,
19025
- url: `${I0}/${x.value}/reports/${T.id}`,
19097
+ url: `${I0}/${R.value}/reports/${T.id}`,
19026
19098
  data: T
19027
19099
  };
19028
- return g0.fetch(O);
19029
- }, rt = (T) => {
19030
- const { businessId: x } = p0(m0()), O = {
19100
+ return g0.fetch(L);
19101
+ }, ut = (T) => {
19102
+ const { businessId: R } = p0(m0()), L = {
19031
19103
  fetchType: y0.Post,
19032
- url: `${I0}/${x.value}/reports`,
19104
+ url: `${I0}/${R.value}/reports`,
19033
19105
  data: T
19034
19106
  };
19035
- return g0.fetch(O);
19036
- }, nt = (T) => {
19037
- const { businessId: x } = p0(m0()), O = {
19107
+ return g0.fetch(L);
19108
+ }, at = (T) => {
19109
+ const { businessId: R } = p0(m0()), L = {
19038
19110
  fetchType: y0.Delete,
19039
- url: `${I0}/${x.value}/reports/${T.id}`
19111
+ url: `${I0}/${R.value}/reports/${T.id}`
19040
19112
  };
19041
- return g0.fetch(O);
19042
- }, it = (T) => {
19043
- const { businessId: x } = p0(m0()), O = {
19113
+ return g0.fetch(L);
19114
+ }, ot = (T) => {
19115
+ const { businessId: R } = p0(m0()), L = {
19044
19116
  fetchType: y0.Put,
19045
- url: `${I0}/${x.value}/reports/default`,
19117
+ url: `${I0}/${R.value}/reports/default`,
19046
19118
  data: { defaultReport: T }
19047
19119
  };
19048
- return g0.fetch(O);
19049
- }, ut = async () => {
19120
+ return g0.fetch(L);
19121
+ }, st = async () => {
19050
19122
  const { businessId: T } = p0(m0());
19051
19123
  if (T) {
19052
- const x = {
19124
+ const R = {
19053
19125
  fetchType: y0.Get,
19054
19126
  url: `${I0}/${T.value}/overview-report`
19055
19127
  };
19056
- return g0.fetch(x);
19128
+ return g0.fetch(R);
19057
19129
  } else
19058
19130
  return Promise.reject(new Error("Business Id is not defined"));
19059
- }, at = async () => {
19131
+ }, lt = async () => {
19060
19132
  const { businessId: T } = p0(m0());
19061
19133
  if (T) {
19062
- const x = {
19134
+ const R = {
19063
19135
  fetchType: y0.Get,
19064
19136
  url: `${I0}/${T.value}/config`
19065
19137
  };
19066
- return g0.fetch(x);
19138
+ return g0.fetch(R);
19067
19139
  } else
19068
19140
  return Promise.reject(new Error("Business Id is not defined"));
19069
- }, ot = "/report-settings", st = async () => {
19141
+ }, _t = "/report-settings", Dt = async () => {
19070
19142
  const { businessId: T } = p0(m0());
19071
19143
  if (T) {
19072
- const x = {
19144
+ const R = {
19073
19145
  fetchType: y0.Get,
19074
- url: `${ot}/${T.value}/categories`
19146
+ url: `${_t}/${T.value}/categories`
19075
19147
  };
19076
- return g0.fetch(x);
19148
+ return g0.fetch(R);
19077
19149
  } else
19078
19150
  return Promise.reject(new Error("Business Id is not defined"));
19079
19151
  };
19080
- function G0(T, x = {}) {
19081
- const O = localStorage.getItem(T);
19082
- return O === null && (x == null ? void 0 : x.fallback) !== void 0 ? x.fallback : O === null ? null : x.format ? x.format(O) : O;
19152
+ function G0(T, R = {}) {
19153
+ const L = localStorage.getItem(T);
19154
+ return L === null && (R == null ? void 0 : R.fallback) !== void 0 ? R.fallback : L === null ? null : R.format ? R.format(L) : L;
19083
19155
  }
19084
19156
  const v0 = {
19085
19157
  get: G0,
19086
19158
  getJson: (T) => G0(T, {
19087
19159
  fallback: {},
19088
- format: (x) => JSON.parse(x)
19160
+ format: (R) => JSON.parse(R)
19089
19161
  }),
19090
19162
  getNumber: (T) => G0(T, {
19091
19163
  fallback: null,
19092
- format: (x) => Number(x)
19164
+ format: (R) => Number(R)
19093
19165
  }),
19094
19166
  set: localStorage.setItem,
19095
- setJson: (T, x) => {
19096
- localStorage.setItem(T, JSON.stringify(x));
19167
+ setJson: (T, R) => {
19168
+ localStorage.setItem(T, JSON.stringify(R));
19097
19169
  }
19098
- }, lt = () => {
19170
+ }, dt = () => {
19099
19171
  const T = {
19100
19172
  fetchType: y0.Get,
19101
19173
  url: "/schemas"
19102
19174
  };
19103
19175
  return g0.fetch(T);
19104
- }, _t = "mf-reportschema-store", Dt = B0(_t, () => {
19105
- const T = o0([]), x = De();
19106
- async function O() {
19176
+ }, ct = "mf-reportschema-store", pt = B0(ct, () => {
19177
+ const T = o0([]), R = ce();
19178
+ async function L() {
19107
19179
  try {
19108
- T.value = await lt();
19180
+ T.value = await dt();
19109
19181
  } catch (H) {
19110
- console.log(H), x.open({
19182
+ console.log(H), R.open({
19111
19183
  title: "Get Schema Error",
19112
19184
  message: "Internal Server Error",
19113
19185
  type: "error"
@@ -19116,22 +19188,22 @@ const v0 = {
19116
19188
  }
19117
19189
  return {
19118
19190
  schemas: T,
19119
- getSchema: O
19191
+ getSchema: L
19120
19192
  };
19121
- }), dt = "mf-reportreport-store", ee = B0(dt, () => {
19122
- const { business: T, globalFilters: x } = p0(k0()), { schemas: O } = p0(Dt()), { flags: H } = p0(Ae()), P = o0([]), B = o0([]), N = o0(0), k = De(), q = C0(() => P.value.filter((E) => E.editable)), U = C0(() => P.value.filter((E) => !E.editable)), z = o0(!1), Y = o0(""), i0 = o0(), j = o0(), Z = C0(() => {
19193
+ }), ft = "mf-reportreport-store", ee = B0(ft, () => {
19194
+ const { business: T, globalFilters: R } = p0(k0()), { schemas: L } = p0(pt()), { flags: H } = p0(Ce()), v = o0([]), B = o0([]), N = o0(0), k = ce(), q = C0(() => v.value.filter((E) => E.editable)), U = C0(() => v.value.filter((E) => !E.editable)), V = o0(!1), X = o0(""), i0 = o0(), j = o0(), Z = C0(() => {
19123
19195
  const E = H.value.find(
19124
- ($) => $.key === Te.report_portal_integration_custom_report
19196
+ ($) => $.key === be.report_portal_integration_custom_report
19125
19197
  );
19126
19198
  return typeof (E == null ? void 0 : E.value) == "number" ? E.value : null;
19127
- }), X = C0(() => Z.value === null ? !0 : Z.value - q.value.length > 0);
19199
+ }), G = C0(() => Z.value === null ? !0 : Z.value - q.value.length > 0);
19128
19200
  async function u0() {
19129
- return j.value = await ut(), j.value;
19201
+ return j.value = await st(), j.value;
19130
19202
  }
19131
19203
  async function a0() {
19132
19204
  var E;
19133
19205
  try {
19134
- P.value = await et(), B.value = await st(), P.value.find((n) => n.id === Y.value) || (Y.value = ((E = P.value.find((n) => n.isDefault)) == null ? void 0 : E.id) || P.value[0].id);
19206
+ v.value = await nt(), B.value = await Dt(), v.value.find((n) => n.id === X.value) || (X.value = ((E = v.value.find((n) => n.isDefault)) == null ? void 0 : E.id) || v.value[0].id);
19135
19207
  } catch ($) {
19136
19208
  console.log($), k.open({
19137
19209
  title: "Report Fetch Error",
@@ -19141,11 +19213,11 @@ const v0 = {
19141
19213
  }
19142
19214
  }
19143
19215
  const s0 = C0(
19144
- () => P.value.find((E) => E.id === Y.value)
19216
+ () => v.value.find((E) => E.id === X.value)
19145
19217
  );
19146
- function l0(E) {
19218
+ function _0(E) {
19147
19219
  var n;
19148
- const $ = (n = O.value.find((e) => e.name === E.schemaName)) == null ? void 0 : n.fields.find((e) => e.name === E.name);
19220
+ const $ = (n = L.value.find((e) => e.name === E.schemaName)) == null ? void 0 : n.fields.find((e) => e.name === E.name);
19149
19221
  return $ == null ? void 0 : $.type;
19150
19222
  }
19151
19223
  U0(
@@ -19154,28 +19226,28 @@ const v0 = {
19154
19226
  return (E = s0.value) == null ? void 0 : E.globalFilters;
19155
19227
  },
19156
19228
  (E) => {
19157
- x.value = (E ?? []).map(($) => ({
19229
+ R.value = (E ?? []).map(($) => ({
19158
19230
  ...$,
19159
19231
  values: Array.isArray($.values) ? [...$.values] : [],
19160
- type: l0($)
19232
+ type: _0($)
19161
19233
  }));
19162
19234
  },
19163
19235
  { deep: !0 }
19164
19236
  );
19165
- const d0 = o0(), c0 = o0(0), Q = o0(), V = o0(null), r0 = o0(null), K = o0(!1), e0 = o0(!1), G = o0(!1);
19166
- async function n0(E) {
19237
+ const d0 = o0(), c0 = o0(0), Q = o0(), Y = o0(null), r0 = o0(null), e0 = o0(!1), n0 = o0(!1), z = o0(!1);
19238
+ async function t0(E) {
19167
19239
  const $ = q.value.findIndex((e) => e.id === E.id);
19168
19240
  let n;
19169
- return $ >= 0 ? n = await tt(E) : n = await rt(E), t(n.id), await a0(), n;
19241
+ return $ >= 0 ? n = await it(E) : n = await ut(E), t(n.id), await a0(), n;
19170
19242
  }
19171
- async function D0(E) {
19172
- await nt(E), await a0();
19243
+ async function l0(E) {
19244
+ await at(E), await a0();
19173
19245
  }
19174
- async function t0(E) {
19175
- await it(E), await u0();
19246
+ async function K(E) {
19247
+ await ot(E), await u0();
19176
19248
  }
19177
19249
  function t(E) {
19178
- Y.value = E;
19250
+ X.value = E;
19179
19251
  }
19180
19252
  const a = o0(null);
19181
19253
  function _() {
@@ -19205,43 +19277,43 @@ const v0 = {
19205
19277
  }
19206
19278
  }
19207
19279
  async function C() {
19208
- return await at();
19280
+ return await lt();
19209
19281
  }
19210
19282
  return {
19211
- isOpenDownloadDialog: K,
19212
- isOpenFeedbackDialog: e0,
19213
- isOpenEmailDialog: G,
19283
+ isOpenDownloadDialog: e0,
19284
+ isOpenFeedbackDialog: n0,
19285
+ isOpenEmailDialog: z,
19214
19286
  currentSelectWidgetType: i0,
19215
- reports: P,
19287
+ reports: v,
19216
19288
  categories: B,
19217
19289
  currentReport: s0,
19218
19290
  editingReport: d0,
19219
19291
  editingTileIndex: c0,
19220
19292
  editingTile: Q,
19221
- editingGlobalFilterIndex: V,
19293
+ editingGlobalFilterIndex: Y,
19222
19294
  editingGlobalFilter: r0,
19223
- currentReportId: Y,
19295
+ currentReportId: X,
19224
19296
  editableReports: q,
19225
19297
  nonEditableReports: U,
19226
- isOpenAddReportDialog: z,
19298
+ isOpenAddReportDialog: V,
19227
19299
  overviewReport: j,
19228
19300
  pinReport: a,
19229
19301
  scrollPositionY: N,
19230
19302
  customReportQuota: Z,
19231
- canCreateCustomReport: X,
19232
- createOrUpdateReport: n0,
19233
- removeReport: D0,
19303
+ canCreateCustomReport: G,
19304
+ createOrUpdateReport: t0,
19305
+ removeReport: l0,
19234
19306
  updateCurrentReportId: t,
19235
19307
  getReports: a0,
19236
- updateDefaultReport: t0,
19308
+ updateDefaultReport: K,
19237
19309
  getOverviewReport: u0,
19238
19310
  refreshPinReport: _,
19239
19311
  cachePinReport: f,
19240
19312
  clearPinReport: S,
19241
19313
  getReportConfig: C
19242
19314
  };
19243
- }), ct = "mf-reportnavigation", $e = B0(ct, () => {
19244
- const { disabled: T } = p0(Ce()), x = o0("v5"), O = o0(!1), H = C0(() => {
19315
+ }), $t = "mf-reportnavigation", ge = B0($t, () => {
19316
+ const { disabled: T } = p0(Fe()), R = o0("v5"), L = o0(!1), H = C0(() => {
19245
19317
  const k = [
19246
19318
  {
19247
19319
  label: "overview",
@@ -19257,7 +19329,7 @@ const v0 = {
19257
19329
  label: "insight",
19258
19330
  value: "insight",
19259
19331
  route: "insights",
19260
- badge: () => Ie(we.FmPill, { variant: "beta" })
19332
+ badge: () => Re(Pe.FmPill, { variant: "beta" })
19261
19333
  },
19262
19334
  {
19263
19335
  label: "setting",
@@ -19270,25 +19342,25 @@ const v0 = {
19270
19342
  value: "integration",
19271
19343
  route: "integrations"
19272
19344
  }), k;
19273
- }), P = o0(""), { currentRoute: B } = ve();
19345
+ }), v = o0(""), { currentRoute: B } = Be();
19274
19346
  function N(k) {
19275
19347
  switch (k.name) {
19276
19348
  case "report":
19277
19349
  case "reports":
19278
- P.value = "report";
19350
+ v.value = "report";
19279
19351
  break;
19280
19352
  case "overview":
19281
- P.value = "overview";
19353
+ v.value = "overview";
19282
19354
  break;
19283
19355
  case "setting":
19284
- P.value = "setting";
19356
+ v.value = "setting";
19285
19357
  break;
19286
19358
  case "insights":
19287
- P.value = "insight";
19359
+ v.value = "insight";
19288
19360
  break;
19289
19361
  case "integration":
19290
19362
  case "integrations":
19291
- P.value = "integration";
19363
+ v.value = "integration";
19292
19364
  break;
19293
19365
  }
19294
19366
  }
@@ -19299,45 +19371,45 @@ const v0 = {
19299
19371
  },
19300
19372
  { immediate: !0 }
19301
19373
  ), {
19302
- selectedNavigationTab: P,
19374
+ selectedNavigationTab: v,
19303
19375
  navigationTabs: H,
19304
- version: x,
19305
- suppressReportRouteSync: O
19376
+ version: R,
19377
+ suppressReportRouteSync: L
19306
19378
  };
19307
19379
  });
19308
- var ye = /* @__PURE__ */ ((T) => (T.generating = "GENERATING", T.completed = "COMPLETED", T.failed = "FAILED", T.canceled = "CANCELLED", T))(ye || {});
19309
- const pt = "/assets/formatChartData.worker-B_urmW55.js", Y0 = /* @__PURE__ */ new Map();
19310
- function ie(T) {
19380
+ var me = /* @__PURE__ */ ((T) => (T.generating = "GENERATING", T.completed = "COMPLETED", T.failed = "FAILED", T.canceled = "CANCELLED", T))(me || {});
19381
+ const yt = "/assets/formatChartData.worker-CWeoECGm.js", Y0 = /* @__PURE__ */ new Map();
19382
+ function ae(T) {
19311
19383
  return new Worker(T, { type: "module" });
19312
19384
  }
19313
- async function ft(T) {
19385
+ async function gt(T) {
19314
19386
  if (Y0.has(T))
19315
- return ie(Y0.get(T));
19316
- let x = T;
19387
+ return ae(Y0.get(T));
19388
+ let R = T;
19317
19389
  if (location.hostname !== new URL(import.meta.url).hostname) {
19318
- const P = new URL(T.replace(/^\//, ""), import.meta.url).href, B = await fetch(P).then((k) => k.text()), N = new Blob([B], { type: "application/javascript" });
19319
- x = URL.createObjectURL(N);
19390
+ const v = new URL(T.replace(/^\//, ""), import.meta.url).href, B = await fetch(v).then((k) => k.text()), N = new Blob([B], { type: "application/javascript" });
19391
+ R = URL.createObjectURL(N);
19320
19392
  }
19321
- const H = ie(x);
19322
- return Y0.set(T, x), H;
19393
+ const H = ae(R);
19394
+ return Y0.set(T, R), H;
19323
19395
  }
19324
- async function $t(T, x) {
19325
- const O = await ft(T);
19326
- return O.postMessage(x), await new Promise((H) => {
19327
- O.onmessage = async (P) => {
19328
- const B = P.data;
19329
- O.terminate(), H(B);
19396
+ async function mt(T, R) {
19397
+ const L = await gt(T);
19398
+ return L.postMessage(R), await new Promise((H) => {
19399
+ L.onmessage = async (v) => {
19400
+ const B = v.data;
19401
+ L.terminate(), H(B);
19330
19402
  };
19331
19403
  });
19332
19404
  }
19333
- const yt = "mf-reportwidget-size", ge = B0(yt, () => {
19405
+ const ht = "mf-reportwidget-size", he = B0(ht, () => {
19334
19406
  const T = o0([]);
19335
- function x(O, H) {
19336
- var P;
19407
+ function R(L, H) {
19408
+ var v;
19337
19409
  try {
19338
- if (!O) return;
19410
+ if (!L) return;
19339
19411
  let B;
19340
- const N = O.$el, k = (P = N == null ? void 0 : N.querySelector) == null ? void 0 : P.call(N, "canvas");
19412
+ const N = L.$el, k = (v = N == null ? void 0 : N.querySelector) == null ? void 0 : v.call(N, "canvas");
19341
19413
  if (k) {
19342
19414
  const q = k.getBoundingClientRect();
19343
19415
  B = { width: Math.round(q.width), height: Math.round(q.height) };
@@ -19348,65 +19420,65 @@ const yt = "mf-reportwidget-size", ge = B0(yt, () => {
19348
19420
  console.log(B);
19349
19421
  }
19350
19422
  }
19351
- return { sizes: T, extractChartSize: x };
19352
- }), gt = "mf-reportreport-sort-store", me = B0(gt, () => {
19423
+ return { sizes: T, extractChartSize: R };
19424
+ }), St = "mf-reportreport-sort-store", Se = B0(St, () => {
19353
19425
  const T = o0([]);
19354
- function x(P, B) {
19355
- if (P == null) return;
19356
- const N = Array.isArray(B) ? B.filter((U) => U && U.key) : [], k = T.value.findIndex((U) => U.tileIndex === P), q = { tileIndex: P, sorts: N };
19426
+ function R(v, B) {
19427
+ if (v == null) return;
19428
+ const N = Array.isArray(B) ? B.filter((U) => U && U.key) : [], k = T.value.findIndex((U) => U.tileIndex === v), q = { tileIndex: v, sorts: N };
19357
19429
  k !== -1 ? T.value.splice(k, 1, q) : T.value.push(q);
19358
19430
  }
19359
- function O(P) {
19431
+ function L(v) {
19360
19432
  var B;
19361
- return P == null ? [] : ((B = T.value.find((N) => N.tileIndex === P)) == null ? void 0 : B.sorts) ?? [];
19433
+ return v == null ? [] : ((B = T.value.find((N) => N.tileIndex === v)) == null ? void 0 : B.sorts) ?? [];
19362
19434
  }
19363
- function H(P) {
19364
- typeof P == "number" ? T.value = T.value.filter((B) => B.tileIndex !== P) : T.value = [];
19435
+ function H(v) {
19436
+ typeof v == "number" ? T.value = T.value.filter((B) => B.tileIndex !== v) : T.value = [];
19365
19437
  }
19366
- return { tileSort: T, setTileSorts: x, getTileSorts: O, clearTileSorts: H };
19438
+ return { tileSort: T, setTileSorts: R, getTileSorts: L, clearTileSorts: H };
19367
19439
  });
19368
- h0.extend(be);
19369
- async function mt(T, x) {
19370
- for (let O = 0; O < T.length; O++)
19440
+ h0.extend(Ie);
19441
+ async function Et(T, R) {
19442
+ for (let L = 0; L < T.length; L++)
19371
19443
  try {
19372
- return await T[O]();
19444
+ return await T[L]();
19373
19445
  } catch (H) {
19374
- if (H.message === "Unauthorized" || O === T.length - 1) throw H;
19375
- await new Promise((P) => setTimeout(P, x));
19446
+ if (H.message === "Unauthorized" || L === T.length - 1) throw H;
19447
+ await new Promise((v) => setTimeout(v, R));
19376
19448
  }
19377
19449
  throw new Error("No callback");
19378
19450
  }
19379
- const qt = async (T, x, O) => {
19380
- var s0, l0, d0, c0;
19381
- const { businessId: H, country: P } = p0(m0()), { currentReport: B } = ee(), {
19451
+ const Vt = async (T, R, L) => {
19452
+ var s0, _0, d0, c0;
19453
+ const { businessId: H, country: v } = p0(m0()), { currentReport: B } = ee(), {
19382
19454
  selectedRestaurantIds: N,
19383
19455
  selectedWarehouseIds: k,
19384
19456
  selectedLocationIds: q,
19385
19457
  dateRange: U,
19386
- compareDateRange: z,
19387
- timeRange: Y,
19458
+ compareDateRange: V,
19459
+ timeRange: X,
19388
19460
  globalFilters: i0,
19389
19461
  timezone: j
19390
19462
  } = k0();
19391
19463
  if (q.length === 0)
19392
19464
  return null;
19393
- const Z = te(T, i0, O ?? ""), X = {
19465
+ const Z = te(T, i0, L ?? ""), G = {
19394
19466
  fetchType: y0.Post,
19395
19467
  url: `/${H.value}/postgres-query`,
19396
19468
  data: Z0.getQueryRequests({
19397
19469
  widget: Z,
19398
19470
  dateRange: [U.startDate, U.endDate],
19399
- compareDateRange: z.startDate && z.endDate ? [z.startDate, z.endDate] : void 0,
19471
+ compareDateRange: V.startDate && V.endDate ? [V.startDate, V.endDate] : void 0,
19400
19472
  timeRange: [
19401
- h0().tz(j).hour(Number((s0 = Y.start) == null ? void 0 : s0.hour)).minute(Number((l0 = Y.start) == null ? void 0 : l0.minute)).toISOString(),
19402
- h0().tz(j).hour(Number((d0 = Y.end) == null ? void 0 : d0.hour)).minute(Number((c0 = Y.end) == null ? void 0 : c0.minute)).endOf("minutes").toISOString()
19473
+ h0().tz(j).hour(Number((s0 = X.start) == null ? void 0 : s0.hour)).minute(Number((_0 = X.start) == null ? void 0 : _0.minute)).toISOString(),
19474
+ h0().tz(j).hour(Number((d0 = X.end) == null ? void 0 : d0.hour)).minute(Number((c0 = X.end) == null ? void 0 : c0.minute)).endOf("minutes").toISOString()
19403
19475
  ],
19404
19476
  businessIds: H.value ? [H.value] : [],
19405
19477
  restaurantIds: N,
19406
19478
  warehouseIds: k,
19407
19479
  timezone: j
19408
- }).map((Q, V) => {
19409
- const r0 = V === 0 ? 3e3 : 12e3;
19480
+ }).map((Q, Y) => {
19481
+ const r0 = Y === 0 ? 3e3 : 12e3;
19410
19482
  return {
19411
19483
  ...Q,
19412
19484
  limit: N.length > 50 ? T.config.limit || r0 : T.config.limit,
@@ -19416,170 +19488,170 @@ const qt = async (T, x, O) => {
19416
19488
  }),
19417
19489
  requestConfig: {
19418
19490
  timeout: 1e3 * 60 * 5,
19419
- signal: x
19491
+ signal: R
19420
19492
  }
19421
- }, u0 = [() => g0.fetch(X)];
19422
- N.length < 50 && u0.push(() => g0.fetch(X)), u0.push(() => (X.url = X.url.replace("postgres-query", "query"), g0.fetch(X)));
19423
- const a0 = await mt(u0, 2e3);
19424
- return (await $t(pt, {
19493
+ }, u0 = [() => g0.fetch(G)];
19494
+ N.length < 50 && u0.push(() => g0.fetch(G)), u0.push(() => (G.url = G.url.replace("postgres-query", "query"), g0.fetch(G)));
19495
+ const a0 = await Et(u0, 2e3);
19496
+ return (await mt(yt, {
19425
19497
  responses: a0,
19426
19498
  widget: JSON.parse(JSON.stringify(T)),
19427
- country: P.value,
19499
+ country: v.value,
19428
19500
  timezone: j
19429
19501
  })).data;
19430
19502
  };
19431
- function he(T) {
19432
- const x = T.config;
19503
+ function Ee(T) {
19504
+ const R = T.config;
19433
19505
  return {
19434
- showTitle: x.showTitle,
19435
- titleFontSize: x.titleFontSize,
19436
- titleBold: x.titleBold,
19437
- titleItalic: x.titleItalic,
19438
- titleUnderline: x.titleUnderline,
19439
- showLabel: x.showLabel,
19440
- labelAlign: x.labelAlign,
19441
- labelAnchor: x.labelAnchor,
19442
- labelRotation: x.labelRotation,
19443
- labelOffset: x.labelOffset,
19444
- labelFontSize: x.labelFontSize,
19445
- showX: x.showX,
19446
- xPosition: x.xPosition,
19447
- showXGrid: x.showXGrid,
19448
- showXTick: x.showXTick,
19449
- xTickFontSize: x.xTickFontSize,
19450
- showY: x.showY,
19451
- yPosition: x.yPosition,
19452
- showYGrid: x.showYGrid,
19453
- showYTick: x.showYTick,
19454
- yTickFontSize: x.yTickFontSize,
19455
- showLegend: x.showLegend,
19456
- legendPosition: x.legendPosition,
19457
- usePointStyle: x.usePointStyle,
19458
- legendMaxHeight: x.legendMaxHeight,
19459
- legendMaxWidth: x.legendMaxWidth
19506
+ showTitle: R.showTitle,
19507
+ titleFontSize: R.titleFontSize,
19508
+ titleBold: R.titleBold,
19509
+ titleItalic: R.titleItalic,
19510
+ titleUnderline: R.titleUnderline,
19511
+ showLabel: R.showLabel,
19512
+ labelAlign: R.labelAlign,
19513
+ labelAnchor: R.labelAnchor,
19514
+ labelRotation: R.labelRotation,
19515
+ labelOffset: R.labelOffset,
19516
+ labelFontSize: R.labelFontSize,
19517
+ showX: R.showX,
19518
+ xPosition: R.xPosition,
19519
+ showXGrid: R.showXGrid,
19520
+ showXTick: R.showXTick,
19521
+ xTickFontSize: R.xTickFontSize,
19522
+ showY: R.showY,
19523
+ yPosition: R.yPosition,
19524
+ showYGrid: R.showYGrid,
19525
+ showYTick: R.showYTick,
19526
+ yTickFontSize: R.yTickFontSize,
19527
+ showLegend: R.showLegend,
19528
+ legendPosition: R.legendPosition,
19529
+ usePointStyle: R.usePointStyle,
19530
+ legendMaxHeight: R.legendMaxHeight,
19531
+ legendMaxWidth: R.legendMaxWidth
19460
19532
  };
19461
19533
  }
19462
- function Se(T) {
19463
- const x = T.config;
19534
+ function Ae(T) {
19535
+ const R = T.config;
19464
19536
  return {
19465
- rowHeight: x.rowHeight,
19466
- colWidths: x.colWidths
19537
+ rowHeight: R.rowHeight,
19538
+ colWidths: R.colWidths
19467
19539
  };
19468
19540
  }
19469
- const Qt = async ({
19541
+ const Gt = async ({
19470
19542
  reportType: T,
19471
- index: x,
19472
- orientationTypes: O,
19543
+ index: R,
19544
+ orientationTypes: L,
19473
19545
  isCombinedLocationLayout: H,
19474
- locationIds: P,
19546
+ locationIds: v,
19475
19547
  timeRange: B,
19476
19548
  dateRange: N
19477
19549
  }) => {
19478
- const { businessId: k } = p0(m0()), { restaurants: q, warehouses: U, globalFilters: z, timezone: Y } = k0(), { currentReport: i0, overviewReport: j } = ee(), { selectedNavigationTab: Z } = $e(), { sizes: X } = ge(), { getTileSorts: u0 } = me();
19550
+ const { businessId: k } = p0(m0()), { restaurants: q, warehouses: U, globalFilters: V, timezone: X } = k0(), { currentReport: i0, overviewReport: j } = ee(), { selectedNavigationTab: Z } = ge(), { sizes: G } = he(), { getTileSorts: u0 } = Se();
19479
19551
  let a0 = i0 == null ? void 0 : i0.id, s0 = (i0 == null ? void 0 : i0.tiles) ?? [];
19480
19552
  Z === "overview" && j && (a0 = j == null ? void 0 : j.id, s0 = (j == null ? void 0 : j.tiles) ?? []);
19481
- const l0 = s0.filter((e0, G) => typeof x == "number" ? G === x : !0).map((e0) => te(e0.widget, z, e0.id)), d0 = {
19553
+ const _0 = s0.filter((n0, z) => typeof R == "number" ? z === R : !0).map((n0) => te(n0.widget, V, n0.id)), d0 = {
19482
19554
  fetchType: y0.Post,
19483
19555
  url: `/${k.value}/file?lang=${F0()}`,
19484
19556
  data: {
19485
19557
  configs: [
19486
- ...l0.map((e0, G) => {
19487
- var D0, t0, t, a;
19488
- const n0 = X[x ?? G];
19558
+ ..._0.map((n0, z) => {
19559
+ var l0, K, t, a;
19560
+ const t0 = G[R ?? z];
19489
19561
  return {
19490
19562
  requests: Z0.getQueryRequests({
19491
- widget: e0,
19563
+ widget: n0,
19492
19564
  dateRange: [N.startDate, N.endDate],
19493
19565
  timeRange: [
19494
- h0().tz(Y).set("hour", Number((D0 = B.start) == null ? void 0 : D0.hour)).set("minute", Number((t0 = B.start) == null ? void 0 : t0.minute)).toISOString(),
19495
- h0().tz(Y).set("hour", Number((t = B.end) == null ? void 0 : t.hour)).set("minute", Number((a = B.end) == null ? void 0 : a.minute)).toISOString()
19566
+ h0().tz(X).set("hour", Number((l0 = B.start) == null ? void 0 : l0.hour)).set("minute", Number((K = B.start) == null ? void 0 : K.minute)).toISOString(),
19567
+ h0().tz(X).set("hour", Number((t = B.end) == null ? void 0 : t.hour)).set("minute", Number((a = B.end) == null ? void 0 : a.minute)).toISOString()
19496
19568
  ],
19497
19569
  businessIds: k ? [k.value] : [],
19498
- restaurantIds: P.filter(
19570
+ restaurantIds: v.filter(
19499
19571
  (_) => q.find((f) => f.id === _)
19500
19572
  ),
19501
- warehouseIds: P.filter(
19573
+ warehouseIds: v.filter(
19502
19574
  (_) => U.find((f) => f.id === _)
19503
19575
  ),
19504
- timezone: Y
19576
+ timezone: X
19505
19577
  }),
19506
- index: x || G,
19578
+ index: R || z,
19507
19579
  drillDimension: null,
19508
- chartWidth: (n0 == null ? void 0 : n0.width) ?? e0.config.chartWidth,
19509
- chartHeight: (n0 == null ? void 0 : n0.height) ?? e0.config.chartHeight,
19510
- ...he(e0),
19511
- ...Se(e0),
19512
- globalSorts: u0(x ?? G)
19580
+ chartWidth: (t0 == null ? void 0 : t0.width) ?? n0.config.chartWidth,
19581
+ chartHeight: (t0 == null ? void 0 : t0.height) ?? n0.config.chartHeight,
19582
+ ...Ee(n0),
19583
+ ...Ae(n0),
19584
+ globalSorts: u0(R ?? z)
19513
19585
  };
19514
19586
  })
19515
19587
  ],
19516
19588
  reportId: a0,
19517
19589
  type: T,
19518
- orientationTypes: O,
19590
+ orientationTypes: L,
19519
19591
  isCombinedLocationLayout: H
19520
19592
  },
19521
19593
  requestConfig: {
19522
19594
  responseType: "arraybuffer",
19523
19595
  timeout: 1e3 * 60 * 60 * 24
19524
19596
  }
19525
- }, { headers: c0, data: Q } = await K0.rawFetch(d0), V = c0["content-disposition"].split("filename=")[1].replaceAll('"', ""), r0 = window.URL.createObjectURL(new Blob([new Uint8Array(Q).buffer])), K = document.createElement("a");
19526
- K.href = r0, K.setAttribute("download", decodeURIComponent(V)), document.body.appendChild(K), K.click(), K.remove();
19527
- }, Xt = async ({
19597
+ }, { headers: c0, data: Q } = await K0.rawFetch(d0), Y = c0["content-disposition"].split("filename=")[1].replaceAll('"', ""), r0 = window.URL.createObjectURL(new Blob([new Uint8Array(Q).buffer])), e0 = document.createElement("a");
19598
+ e0.href = r0, e0.setAttribute("download", decodeURIComponent(Y)), document.body.appendChild(e0), e0.click(), e0.remove();
19599
+ }, Yt = async ({
19528
19600
  emails: T,
19529
- types: x,
19530
- dateRange: O,
19601
+ types: R,
19602
+ dateRange: L,
19531
19603
  timeRange: H,
19532
- locationIds: P,
19604
+ locationIds: v,
19533
19605
  orientationTypes: B,
19534
19606
  isCombinedLocationLayout: N
19535
19607
  }) => {
19536
- const { businessId: k } = p0(m0()), { currentReport: q, overviewReport: U } = ee(), { selectedNavigationTab: z } = $e(), { restaurants: Y, warehouses: i0, globalFilters: j, timezone: Z } = k0(), { sizes: X } = ge(), { getTileSorts: u0 } = me();
19608
+ const { businessId: k } = p0(m0()), { currentReport: q, overviewReport: U } = ee(), { selectedNavigationTab: V } = ge(), { restaurants: X, warehouses: i0, globalFilters: j, timezone: Z } = k0(), { sizes: G } = he(), { getTileSorts: u0 } = Se();
19537
19609
  if (T.length === 0) {
19538
19610
  console.error("No email addresses provided.");
19539
19611
  return;
19540
19612
  }
19541
- let a0 = (q == null ? void 0 : q.id) || "", s0 = (q == null ? void 0 : q.name) || "", l0 = (q == null ? void 0 : q.tiles) ?? [];
19542
- z === "overview" && U && (a0 = U == null ? void 0 : U.id, s0 = U.name, l0 = (U == null ? void 0 : U.tiles) ?? []);
19543
- const d0 = l0.map((Q) => te(Q.widget, j, Q.id)), c0 = {
19613
+ let a0 = (q == null ? void 0 : q.id) || "", s0 = (q == null ? void 0 : q.name) || "", _0 = (q == null ? void 0 : q.tiles) ?? [];
19614
+ V === "overview" && U && (a0 = U == null ? void 0 : U.id, s0 = U.name, _0 = (U == null ? void 0 : U.tiles) ?? []);
19615
+ const d0 = _0.map((Q) => te(Q.widget, j, Q.id)), c0 = {
19544
19616
  businessId: k.value,
19545
- status: ye.generating,
19617
+ status: me.generating,
19546
19618
  dateRange: {
19547
- start: O.startDate,
19548
- end: O.endDate
19619
+ start: L.startDate,
19620
+ end: L.endDate
19549
19621
  },
19550
19622
  reportName: s0,
19551
19623
  emails: T,
19552
- configs: d0.map((Q, V) => {
19553
- var K, e0, G, n0;
19554
- const r0 = X[V];
19624
+ configs: d0.map((Q, Y) => {
19625
+ var e0, n0, z, t0;
19626
+ const r0 = G[Y];
19555
19627
  return {
19556
19628
  requests: Z0.getQueryRequests({
19557
19629
  widget: Q,
19558
- dateRange: [O.startDate, O.endDate],
19630
+ dateRange: [L.startDate, L.endDate],
19559
19631
  timeRange: [
19560
- h0().tz(Z).hour(Number((K = H.start) == null ? void 0 : K.hour)).minute(Number((e0 = H.start) == null ? void 0 : e0.minute)).toISOString(),
19561
- h0().tz(Z).hour(Number((G = H.end) == null ? void 0 : G.hour)).minute(Number((n0 = H.end) == null ? void 0 : n0.minute)).endOf("minutes").toISOString()
19632
+ h0().tz(Z).hour(Number((e0 = H.start) == null ? void 0 : e0.hour)).minute(Number((n0 = H.start) == null ? void 0 : n0.minute)).toISOString(),
19633
+ h0().tz(Z).hour(Number((z = H.end) == null ? void 0 : z.hour)).minute(Number((t0 = H.end) == null ? void 0 : t0.minute)).endOf("minutes").toISOString()
19562
19634
  ],
19563
19635
  businessIds: k ? [k.value] : [],
19564
- restaurantIds: P.filter(
19565
- (D0) => Y.find((t0) => t0.id === D0)
19636
+ restaurantIds: v.filter(
19637
+ (l0) => X.find((K) => K.id === l0)
19566
19638
  ),
19567
- warehouseIds: P.filter(
19568
- (D0) => i0.find((t0) => t0.id === D0)
19639
+ warehouseIds: v.filter(
19640
+ (l0) => i0.find((K) => K.id === l0)
19569
19641
  ),
19570
19642
  timezone: Z
19571
19643
  }),
19572
- index: V,
19644
+ index: Y,
19573
19645
  drillDimension: null,
19574
19646
  chartWidth: (r0 == null ? void 0 : r0.width) ?? Q.config.chartWidth,
19575
19647
  chartHeight: (r0 == null ? void 0 : r0.height) ?? Q.config.chartHeight,
19576
- ...he(Q),
19577
- ...Se(Q),
19578
- globalSorts: u0(V)
19648
+ ...Ee(Q),
19649
+ ...Ae(Q),
19650
+ globalSorts: u0(Y)
19579
19651
  };
19580
19652
  }),
19581
19653
  reportId: a0,
19582
- type: x,
19654
+ type: R,
19583
19655
  orientationTypes: B,
19584
19656
  isCombinedLocationLayout: N
19585
19657
  };
@@ -19589,46 +19661,46 @@ const Qt = async ({
19589
19661
  data: c0,
19590
19662
  requestConfig: { timeout: 1e3 * 60 * 3 }
19591
19663
  });
19592
- }, Vt = async (T) => {
19593
- const { businessId: x } = p0(m0());
19664
+ }, zt = async (T) => {
19665
+ const { businessId: R } = p0(m0());
19594
19666
  await K0.fetch({
19595
19667
  fetchType: y0.Post,
19596
- url: `/${x.value}/reports/resend-email?lang=${F0()}`,
19668
+ url: `/${R.value}/reports/resend-email?lang=${F0()}`,
19597
19669
  data: { jobId: T },
19598
19670
  requestConfig: { timeout: 1e3 * 60 * 3 }
19599
19671
  });
19600
- }, Gt = async () => {
19672
+ }, Wt = async () => {
19601
19673
  const { businessId: T } = p0(m0());
19602
19674
  return await g0.fetch({
19603
19675
  fetchType: y0.Get,
19604
19676
  url: `/${T.value}/reports/email-recipients`
19605
19677
  });
19606
- }, Yt = async (T) => {
19607
- const { businessId: x } = p0(m0());
19678
+ }, jt = async (T) => {
19679
+ const { businessId: R } = p0(m0());
19608
19680
  await g0.fetch({
19609
19681
  fetchType: y0.Post,
19610
- url: `/${x.value}/reports/email-recipient/delete`,
19682
+ url: `/${R.value}/reports/email-recipient/delete`,
19611
19683
  data: { email: T }
19612
19684
  });
19613
19685
  };
19614
- function ue(T = [], x = []) {
19615
- const O = (B) => `${B.schemaName}:${B.name}:${B.operator}`, H = /* @__PURE__ */ new Map(), P = [];
19686
+ function oe(T = [], R = []) {
19687
+ const L = (B) => `${B.schemaName}:${B.name}:${B.operator}`, H = /* @__PURE__ */ new Map(), v = [];
19616
19688
  for (const B of T) {
19617
19689
  if (!B || !Array.isArray(B.values) || B.values.length === 0) continue;
19618
19690
  if (B.option === W0.DateTime || B.operator === j0.Between) {
19619
- P.push({ ...B });
19691
+ v.push({ ...B });
19620
19692
  continue;
19621
19693
  }
19622
- const k = O(B);
19694
+ const k = L(B);
19623
19695
  H.set(k, { ...B });
19624
19696
  }
19625
- for (const B of x) {
19697
+ for (const B of R) {
19626
19698
  if (!B || !Array.isArray(B.values) || B.values.length === 0) continue;
19627
19699
  if (B.option === W0.DateTime || B.operator === j0.Between) {
19628
- P.push({ ...B });
19700
+ v.push({ ...B });
19629
19701
  continue;
19630
19702
  }
19631
- const k = O(B);
19703
+ const k = L(B);
19632
19704
  if (H.has(k)) {
19633
19705
  const q = H.get(k), U = Array.from(
19634
19706
  /* @__PURE__ */ new Set([...q.values ?? [], ...B.values ?? []])
@@ -19637,32 +19709,32 @@ function ue(T = [], x = []) {
19637
19709
  } else
19638
19710
  H.set(k, { ...B });
19639
19711
  }
19640
- return [...Array.from(H.values()), ...P];
19712
+ return [...Array.from(H.values()), ...v];
19641
19713
  }
19642
- function ht(T, x, O) {
19643
- const H = [], P = /* @__PURE__ */ new Map();
19714
+ function At(T, R, L) {
19715
+ const H = [], v = /* @__PURE__ */ new Map();
19644
19716
  return T.forEach((B) => {
19645
- B && (x.includes(B.schemaName) && H.push(B), O.forEach((N, k) => {
19717
+ B && (R.includes(B.schemaName) && H.push(B), L.forEach((N, k) => {
19646
19718
  var q;
19647
- N.includes(B.schemaName) && (P.has(k) || P.set(k, []), (q = P.get(k)) == null || q.push(B));
19719
+ N.includes(B.schemaName) && (v.has(k) || v.set(k, []), (q = v.get(k)) == null || q.push(B));
19648
19720
  }));
19649
- }), { mainFilters: H, joinFilters: P };
19721
+ }), { mainFilters: H, joinFilters: v };
19650
19722
  }
19651
- function te(T, x, O) {
19723
+ function te(T, R, L) {
19652
19724
  var q, U;
19653
- const H = JSON.parse(JSON.stringify(T)), P = x.filter((z) => {
19654
- var Y;
19655
- return (Y = z.tileIds) == null ? void 0 : Y.includes(O);
19656
- }).map((z) => {
19657
- var Y;
19725
+ const H = JSON.parse(JSON.stringify(T)), v = R.filter((V) => {
19726
+ var X;
19727
+ return (X = V.tileIds) == null ? void 0 : X.includes(L);
19728
+ }).map((V) => {
19729
+ var X;
19658
19730
  return {
19659
- ...z,
19731
+ ...V,
19660
19732
  values: Array.from(
19661
- new Set(((Y = z.values) == null ? void 0 : Y.map((i0) => i0 === "" ? "NULL" : i0)) ?? [])
19733
+ new Set(((X = V.values) == null ? void 0 : X.map((i0) => i0 === "" ? "NULL" : i0)) ?? [])
19662
19734
  )
19663
19735
  };
19664
- }), B = ((q = H.config.joinDatasources) == null ? void 0 : q.map((z) => z.schemaNames ?? [])) ?? [], { mainFilters: N, joinFilters: k } = ht(
19665
- P,
19736
+ }), B = ((q = H.config.joinDatasources) == null ? void 0 : q.map((V) => V.schemaNames ?? [])) ?? [], { mainFilters: N, joinFilters: k } = At(
19737
+ v,
19666
19738
  H.config.schemaNames,
19667
19739
  B
19668
19740
  );
@@ -19670,47 +19742,47 @@ function te(T, x, O) {
19670
19742
  ...H,
19671
19743
  config: {
19672
19744
  ...H.config,
19673
- filters: ue(H.config.filters ?? [], N),
19674
- joinDatasources: ((U = H.config.joinDatasources) == null ? void 0 : U.map((z, Y) => ({
19675
- ...z,
19676
- filters: ue(z.filters ?? [], k.get(Y) ?? [])
19745
+ filters: oe(H.config.filters ?? [], N),
19746
+ joinDatasources: ((U = H.config.joinDatasources) == null ? void 0 : U.map((V, X) => ({
19747
+ ...V,
19748
+ filters: oe(V.filters ?? [], k.get(X) ?? [])
19677
19749
  }))) ?? []
19678
19750
  }
19679
19751
  };
19680
19752
  }
19681
19753
  let H0;
19682
- const St = new Uint8Array(16);
19683
- function Et() {
19754
+ const Tt = new Uint8Array(16);
19755
+ function Ct() {
19684
19756
  if (!H0 && (H0 = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !H0))
19685
19757
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
19686
- return H0(St);
19758
+ return H0(Tt);
19687
19759
  }
19688
19760
  const f0 = [];
19689
19761
  for (let T = 0; T < 256; ++T)
19690
19762
  f0.push((T + 256).toString(16).slice(1));
19691
- function At(T, x = 0) {
19692
- return f0[T[x + 0]] + f0[T[x + 1]] + f0[T[x + 2]] + f0[T[x + 3]] + "-" + f0[T[x + 4]] + f0[T[x + 5]] + "-" + f0[T[x + 6]] + f0[T[x + 7]] + "-" + f0[T[x + 8]] + f0[T[x + 9]] + "-" + f0[T[x + 10]] + f0[T[x + 11]] + f0[T[x + 12]] + f0[T[x + 13]] + f0[T[x + 14]] + f0[T[x + 15]];
19763
+ function bt(T, R = 0) {
19764
+ return f0[T[R + 0]] + f0[T[R + 1]] + f0[T[R + 2]] + f0[T[R + 3]] + "-" + f0[T[R + 4]] + f0[T[R + 5]] + "-" + f0[T[R + 6]] + f0[T[R + 7]] + "-" + f0[T[R + 8]] + f0[T[R + 9]] + "-" + f0[T[R + 10]] + f0[T[R + 11]] + f0[T[R + 12]] + f0[T[R + 13]] + f0[T[R + 14]] + f0[T[R + 15]];
19693
19765
  }
19694
- const Tt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ae = {
19695
- randomUUID: Tt
19766
+ const Ft = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), se = {
19767
+ randomUUID: Ft
19696
19768
  };
19697
- function zt(T, x, O) {
19698
- if (ae.randomUUID && !x && !T)
19699
- return ae.randomUUID();
19769
+ function Kt(T, R, L) {
19770
+ if (se.randomUUID && !R && !T)
19771
+ return se.randomUUID();
19700
19772
  T = T || {};
19701
- const H = T.random || (T.rng || Et)();
19702
- if (H[6] = H[6] & 15 | 64, H[8] = H[8] & 63 | 128, x) {
19703
- O = O || 0;
19704
- for (let P = 0; P < 16; ++P)
19705
- x[O + P] = H[P];
19706
- return x;
19773
+ const H = T.random || (T.rng || Ct)();
19774
+ if (H[6] = H[6] & 15 | 64, H[8] = H[8] & 63 | 128, R) {
19775
+ L = L || 0;
19776
+ for (let v = 0; v < 16; ++v)
19777
+ R[L + v] = H[v];
19778
+ return R;
19707
19779
  }
19708
- return At(H);
19780
+ return bt(H);
19709
19781
  }
19710
- const oe = (T, x = "en") => h0().set("hour", T.hour).set("minute", T.minute).locale(x).format("h:mm A"), Ct = (T, x) => {
19711
- const O = h0().set("hour", T.hour).set("minute", T.minute);
19712
- return h0().set("hour", x.hour).set("minute", x.minute) < O ? "+1" : "";
19713
- }, bt = { class: "px-24 py-16 rounded-lg shadow-light-300" }, Ft = { class: "text-fm-color-typo-primary" }, It = { class: "text-fm-color-typo-secondary" }, Mt = { class: "fm-typo-en-body-lg-600 mb-8" }, Rt = { class: "flex items-center justify-center w-full" }, xt = { class: "fm-typo-en-body-lg-600 mb-8" }, Lt = { class: "flex items-center justify-center" }, Ot = { class: "flex flex-row mb-4 px-4 gap-2" }, Wt = /* @__PURE__ */ se({
19782
+ const le = (T, R = "en") => h0().set("hour", T.hour).set("minute", T.minute).locale(R).format("h:mm A"), It = (T, R) => {
19783
+ const L = h0().set("hour", T.hour).set("minute", T.minute);
19784
+ return h0().set("hour", R.hour).set("minute", R.minute) < L ? "+1" : "";
19785
+ }, Mt = { class: "px-24 py-16 rounded-lg shadow-light-300" }, Rt = { class: "text-fm-color-typo-primary" }, xt = { class: "text-fm-color-typo-secondary" }, Lt = { class: "fm-typo-en-body-lg-600 mb-8" }, Ot = { class: "flex items-center justify-center w-full" }, wt = { class: "fm-typo-en-body-lg-600 mb-8" }, vt = { class: "flex items-center justify-center" }, Pt = { class: "flex flex-row mb-4 px-4 gap-2" }, Zt = /* @__PURE__ */ _e({
19714
19786
  __name: "TimeRangeSelect",
19715
19787
  props: /* @__PURE__ */ N0({
19716
19788
  defaultDateRange: {
@@ -19750,31 +19822,31 @@ const oe = (T, x = "en") => h0().set("hour", T.hour).set("minute", T.minute).loc
19750
19822
  selectTimeDefaultModifiers: {}
19751
19823
  }),
19752
19824
  emits: /* @__PURE__ */ N0(["update", "chip-closed"], ["update:timeRange", "update:selectTimeDefault"]),
19753
- setup(T, { emit: x }) {
19754
- const { t: O, locale: H } = Fe(), P = z0(T, "timeRange"), B = x, N = z0(T, "selectTimeDefault");
19825
+ setup(T, { emit: R }) {
19826
+ const { t: L, locale: H } = Me(), v = z0(T, "timeRange"), B = R, N = z0(T, "selectTimeDefault");
19755
19827
  function k(Z) {
19756
- Z && (P.value = Z, B("update", P.value)), Y.value = !1;
19828
+ Z && (v.value = Z, B("update", v.value)), X.value = !1;
19757
19829
  }
19758
19830
  function q(Z) {
19759
- const X = Z.split(":"), u0 = h0().set("hour", Number(X[0])).set("minute", Number(X[1]));
19831
+ const G = Z.split(":"), u0 = h0().set("hour", Number(G[0])).set("minute", Number(G[1]));
19760
19832
  return {
19761
19833
  hours: Number(u0.format("h")),
19762
19834
  minutes: Number(u0.format("m")),
19763
19835
  period: u0.format("A")
19764
19836
  };
19765
19837
  }
19766
- const U = o0(JSON.parse(JSON.stringify(P.value)));
19767
- function z(Z, X) {
19768
- U.value.start = JSON.parse(JSON.stringify(Z)), U.value.end = JSON.parse(JSON.stringify(X));
19838
+ const U = o0(JSON.parse(JSON.stringify(v.value)));
19839
+ function V(Z, G) {
19840
+ U.value.start = JSON.parse(JSON.stringify(Z)), U.value.end = JSON.parse(JSON.stringify(G));
19769
19841
  }
19770
19842
  U0(
19771
- () => [() => P.value, () => N.value],
19843
+ () => [() => v.value, () => N.value],
19772
19844
  () => {
19773
- if (P.value) {
19845
+ if (v.value) {
19774
19846
  const Z = T.defaultDateRange.findIndex(
19775
- (X) => {
19776
- var u0, a0, s0, l0;
19777
- return X.startTime.hour === ((u0 = P.value.start) == null ? void 0 : u0.hour) && X.startTime.minute === ((a0 = P.value.start) == null ? void 0 : a0.minute) && X.endTime.hour === ((s0 = P.value.end) == null ? void 0 : s0.hour) && X.endTime.minute === ((l0 = P.value.end) == null ? void 0 : l0.minute);
19847
+ (G) => {
19848
+ var u0, a0, s0, _0;
19849
+ return G.startTime.hour === ((u0 = v.value.start) == null ? void 0 : u0.hour) && G.startTime.minute === ((a0 = v.value.start) == null ? void 0 : a0.minute) && G.endTime.hour === ((s0 = v.value.end) == null ? void 0 : s0.hour) && G.endTime.minute === ((_0 = v.value.end) == null ? void 0 : _0.minute);
19778
19850
  }
19779
19851
  ) + 1;
19780
19852
  Z !== 0 ? N.value = Z : N.value = T.defaultDateRange.length + 1;
@@ -19782,110 +19854,110 @@ const oe = (T, x = "en") => h0().set("hour", T.hour).set("minute", T.minute).loc
19782
19854
  },
19783
19855
  { deep: !0 }
19784
19856
  );
19785
- const Y = o0(!1);
19857
+ const X = o0(!1);
19786
19858
  function i0(Z) {
19787
19859
  B("chip-closed", Z);
19788
19860
  }
19789
- const j = C0(() => T.label ? T.label : Pe({
19790
- startTime: P.value.start,
19791
- endTime: P.value.end,
19861
+ const j = C0(() => T.label ? T.label : Je({
19862
+ startTime: v.value.start,
19863
+ endTime: v.value.end,
19792
19864
  locale: H.value
19793
19865
  }));
19794
- return (Z, X) => {
19795
- const u0 = A0("FmChip"), a0 = A0("FmRadio"), s0 = A0("FmMenuDivider"), l0 = A0("FmRadioGroup"), d0 = A0("FmTimeInput"), c0 = A0("FmButton"), Q = A0("FmPopover");
19866
+ return (Z, G) => {
19867
+ const u0 = A0("FmChip"), a0 = A0("FmRadio"), s0 = A0("FmMenuDivider"), _0 = A0("FmRadioGroup"), d0 = A0("FmTimeInput"), c0 = A0("FmButton"), Q = A0("FmPopover");
19796
19868
  return P0(), V0("div", null, [
19797
19869
  S0(Q, {
19798
- "show-popover": Y.value,
19870
+ "show-popover": X.value,
19799
19871
  placement: "bottom",
19800
- onPopoverChanged: X[6] || (X[6] = (V) => Y.value = V)
19872
+ onPopoverChanged: G[6] || (G[6] = (Y) => X.value = Y)
19801
19873
  }, {
19802
19874
  "popover-button": b0(() => [
19803
- S0(Be, {
19875
+ S0(He, {
19804
19876
  "left-icon": T.label ? "filter_alt" : "schedule",
19805
19877
  label: j.value,
19806
19878
  removable: T.removable,
19807
- onChipClosed: X[0] || (X[0] = (V) => i0(!0))
19879
+ onChipClosed: G[0] || (G[0] = (Y) => i0(!0))
19808
19880
  }, null, 8, ["left-icon", "label", "removable"])
19809
19881
  ]),
19810
19882
  default: b0(() => {
19811
- var V, r0, K, e0;
19883
+ var Y, r0, e0, n0;
19812
19884
  return [
19813
- E0("div", bt, [
19814
- S0(l0, {
19885
+ E0("div", Mt, [
19886
+ S0(_0, {
19815
19887
  modelValue: N.value,
19816
- "onUpdate:modelValue": X[1] || (X[1] = (G) => N.value = G)
19888
+ "onUpdate:modelValue": G[1] || (G[1] = (z) => N.value = z)
19817
19889
  }, {
19818
19890
  default: b0(() => [
19819
- (P0(!0), V0(re, null, Re(T.defaultDateRange, (G, n0) => (P0(), le(a0, {
19820
- key: `range_${n0}`,
19821
- value: n0 + 1,
19822
- label: G.name,
19823
- onClick: (D0) => z(G.startTime, G.endTime)
19891
+ (P0(!0), V0(re, null, Le(T.defaultDateRange, (z, t0) => (P0(), De(a0, {
19892
+ key: `range_${t0}`,
19893
+ value: t0 + 1,
19894
+ label: z.name,
19895
+ onClick: (l0) => V(z.startTime, z.endTime)
19824
19896
  }, {
19825
19897
  label: b0(() => [
19826
- E0("p", Ft, [
19827
- _e(T0(G.name) + " ", 1),
19828
- xe(S0(u0, {
19829
- label: $0(O)("report.common.default"),
19898
+ E0("p", Rt, [
19899
+ de(T0(z.name) + " ", 1),
19900
+ Oe(S0(u0, {
19901
+ label: $0(L)("report.common.default"),
19830
19902
  class: "bg-fm-color-system-info-100 border-fm-color-typo-info text-fm-color-typo-info",
19831
19903
  compact: ""
19832
19904
  }, null, 8, ["label"]), [
19833
- [Le, G.isDefault]
19905
+ [we, z.isDefault]
19834
19906
  ])
19835
19907
  ]),
19836
- E0("p", It, T0($0(oe)(G.startTime, $0(F0)())) + " - " + T0($0(oe)(G.endTime, $0(F0)())) + " " + T0($0(Ct)(G.startTime, G.endTime)), 1)
19908
+ E0("p", xt, T0($0(le)(z.startTime, $0(F0)())) + " - " + T0($0(le)(z.endTime, $0(F0)())) + " " + T0($0(It)(z.startTime, z.endTime)), 1)
19837
19909
  ]),
19838
19910
  _: 2
19839
19911
  }, 1032, ["value", "label", "onClick"]))), 128)),
19840
19912
  S0(s0),
19841
19913
  S0(a0, {
19842
19914
  key: "range_custom",
19843
- label: $0(O)("report.common.custom"),
19915
+ label: $0(L)("report.common.custom"),
19844
19916
  value: T.defaultDateRange.length + 1
19845
19917
  }, null, 8, ["label", "value"])
19846
19918
  ]),
19847
19919
  _: 1
19848
19920
  }, 8, ["modelValue"]),
19849
19921
  N.value === T.defaultDateRange.length + 1 ? (P0(), V0(re, { key: 0 }, [
19850
- E0("p", Mt, T0($0(O)("report.date.startingTime")), 1),
19851
- E0("div", Rt, [
19922
+ E0("p", Lt, T0($0(L)("report.date.startingTime")), 1),
19923
+ E0("div", Ot, [
19852
19924
  S0(d0, {
19853
- "model-value": q(`${(V = U.value.start) == null ? void 0 : V.hour}:${(r0 = U.value.start) == null ? void 0 : r0.minute}`),
19854
- "onUpdate:modelValue": X[2] || (X[2] = (G) => {
19925
+ "model-value": q(`${(Y = U.value.start) == null ? void 0 : Y.hour}:${(r0 = U.value.start) == null ? void 0 : r0.minute}`),
19926
+ "onUpdate:modelValue": G[2] || (G[2] = (z) => {
19855
19927
  if (U.value.start) {
19856
- const n0 = $0(h0)(`${G.hours}:${G.minutes} ${G.period}`, "h:m A").locale(
19928
+ const t0 = $0(h0)(`${z.hours}:${z.minutes} ${z.period}`, "h:m A").locale(
19857
19929
  $0(F0)()
19858
19930
  );
19859
- U.value.start.hour = n0.get("hour"), U.value.start.minute = n0.get("minute");
19931
+ U.value.start.hour = t0.get("hour"), U.value.start.minute = t0.get("minute");
19860
19932
  }
19861
19933
  })
19862
19934
  }, null, 8, ["model-value"])
19863
19935
  ]),
19864
- E0("p", xt, T0($0(O)("report.date.endingTime")), 1),
19865
- E0("div", Lt, [
19936
+ E0("p", wt, T0($0(L)("report.date.endingTime")), 1),
19937
+ E0("div", vt, [
19866
19938
  S0(d0, {
19867
- "model-value": q(`${(K = U.value.end) == null ? void 0 : K.hour}:${(e0 = U.value.end) == null ? void 0 : e0.minute}`),
19868
- "onUpdate:modelValue": X[3] || (X[3] = (G) => {
19939
+ "model-value": q(`${(e0 = U.value.end) == null ? void 0 : e0.hour}:${(n0 = U.value.end) == null ? void 0 : n0.minute}`),
19940
+ "onUpdate:modelValue": G[3] || (G[3] = (z) => {
19869
19941
  if (U.value.end) {
19870
- const n0 = $0(h0)(`${G.hours}:${G.minutes} ${G.period}`, "h:m A").locale(
19942
+ const t0 = $0(h0)(`${z.hours}:${z.minutes} ${z.period}`, "h:m A").locale(
19871
19943
  $0(F0)()
19872
19944
  );
19873
- U.value.end.hour = n0.get("hour"), U.value.end.minute = n0.get("minute");
19945
+ U.value.end.hour = t0.get("hour"), U.value.end.minute = t0.get("minute");
19874
19946
  }
19875
19947
  })
19876
19948
  }, null, 8, ["model-value"])
19877
19949
  ])
19878
- ], 64)) : Me("", !0),
19879
- E0("div", Ot, [
19880
- X[7] || (X[7] = E0("div", { class: "grow" }, null, -1)),
19950
+ ], 64)) : xe("", !0),
19951
+ E0("div", Pt, [
19952
+ G[7] || (G[7] = E0("div", { class: "grow" }, null, -1)),
19881
19953
  S0(c0, {
19882
- label: $0(O)("report.common.cancel"),
19954
+ label: $0(L)("report.common.cancel"),
19883
19955
  variant: "tertiary",
19884
- onClick: X[4] || (X[4] = (G) => Y.value = !1)
19956
+ onClick: G[4] || (G[4] = (z) => X.value = !1)
19885
19957
  }, null, 8, ["label"]),
19886
19958
  S0(c0, {
19887
- label: $0(O)("report.common.apply"),
19888
- onClick: X[5] || (X[5] = () => k(JSON.parse(JSON.stringify(U.value))))
19959
+ label: $0(L)("report.common.apply"),
19960
+ onClick: G[5] || (G[5] = () => k(JSON.parse(JSON.stringify(U.value))))
19889
19961
  }, null, 8, ["label"])
19890
19962
  ])
19891
19963
  ])
@@ -19896,7 +19968,7 @@ const oe = (T, x = "en") => h0().set("hour", T.hour).set("minute", T.minute).loc
19896
19968
  ]);
19897
19969
  };
19898
19970
  }
19899
- }), jt = /* @__PURE__ */ se({
19971
+ }), er = /* @__PURE__ */ _e({
19900
19972
  __name: "BaseDialog",
19901
19973
  props: /* @__PURE__ */ N0({
19902
19974
  title: {
@@ -19916,34 +19988,34 @@ const oe = (T, x = "en") => h0().set("hour", T.hour).set("minute", T.minute).loc
19916
19988
  modelModifiers: {}
19917
19989
  }),
19918
19990
  emits: /* @__PURE__ */ N0(["confirm"], ["update:modelValue"]),
19919
- setup(T, { emit: x }) {
19920
- const O = z0(T, "modelValue"), H = T, P = x;
19921
- return U0(O, () => {
19922
- O.value ? document.body.style.overflow = "hidden" : document.body.style.overflow = "scroll";
19991
+ setup(T, { emit: R }) {
19992
+ const L = z0(T, "modelValue"), H = T, v = R;
19993
+ return U0(L, () => {
19994
+ L.value ? document.body.style.overflow = "hidden" : document.body.style.overflow = "scroll";
19923
19995
  }), (B, N) => {
19924
19996
  const k = A0("FmButton"), q = A0("FmDialog");
19925
- return P0(), le(q, {
19926
- modelValue: O.value,
19927
- "onUpdate:modelValue": N[2] || (N[2] = (U) => O.value = U),
19997
+ return P0(), De(q, {
19998
+ modelValue: L.value,
19999
+ "onUpdate:modelValue": N[2] || (N[2] = (U) => L.value = U),
19928
20000
  overlay: ""
19929
20001
  }, {
19930
20002
  "dialog-header": b0(() => [
19931
- _e(T0(H.title), 1)
20003
+ de(T0(H.title), 1)
19932
20004
  ]),
19933
20005
  default: b0(() => [
19934
- Oe(B.$slots, "content")
20006
+ ve(B.$slots, "content")
19935
20007
  ]),
19936
20008
  "dialog-footer": b0(() => [
19937
20009
  N[3] || (N[3] = E0("div", { class: "grow" }, null, -1)),
19938
20010
  S0(k, {
19939
20011
  label: H.secondaryButtonLabel,
19940
20012
  variant: "tertiary",
19941
- onClick: N[0] || (N[0] = (U) => O.value = !1)
20013
+ onClick: N[0] || (N[0] = (U) => L.value = !1)
19942
20014
  }, null, 8, ["label"]),
19943
20015
  S0(k, {
19944
20016
  label: H.primaryButtonLabel,
19945
20017
  variant: "primary",
19946
- onClick: N[1] || (N[1] = (U) => P("confirm"))
20018
+ onClick: N[1] || (N[1] = (U) => v("confirm"))
19947
20019
  }, null, 8, ["label"])
19948
20020
  ]),
19949
20021
  _: 3
@@ -19953,31 +20025,31 @@ const oe = (T, x = "en") => h0().set("hour", T.hour).set("minute", T.minute).loc
19953
20025
  });
19954
20026
  export {
19955
20027
  j0 as C,
19956
- ze as D,
19957
- We as P,
19958
- Ke as R,
19959
- Ye as S,
19960
- je as W,
19961
- Wt as _,
20028
+ Ke as D,
20029
+ Ze as P,
20030
+ tt as R,
20031
+ je as S,
20032
+ et as W,
20033
+ Zt as _,
19962
20034
  ee as a,
19963
- Dt as b,
20035
+ pt as b,
19964
20036
  W0 as c,
19965
- jt as d,
19966
- ge as e,
19967
- me as f,
19968
- $t as g,
19969
- Ze as h,
19970
- Qt as i,
19971
- kt as j,
19972
- Yt as k,
19973
- Gt as l,
19974
- Ut as m,
19975
- ye as n,
19976
- Xt as o,
19977
- qt as q,
19978
- Vt as r,
19979
- Ct as s,
19980
- oe as t,
19981
- $e as u,
19982
- zt as v
20037
+ er as d,
20038
+ he as e,
20039
+ Se as f,
20040
+ mt as g,
20041
+ rt as h,
20042
+ Gt as i,
20043
+ Qt as j,
20044
+ jt as k,
20045
+ Wt as l,
20046
+ Xt as m,
20047
+ me as n,
20048
+ Yt as o,
20049
+ Vt as q,
20050
+ zt as r,
20051
+ It as s,
20052
+ le as t,
20053
+ ge as u,
20054
+ Kt as v
19983
20055
  };