@feedmepos/mf-report 5.22.15-beta.0 → 5.22.15

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 (28) hide show
  1. package/dist/{App-BQhR0gXI.js → App-CdZlnXKI.js} +34 -34
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-CoJrINGt.js → BaseDialog.vue_vue_type_script_setup_true_lang-CLwzdS2Q.js} +971 -912
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-HVO_Z_aB.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-CsDelr-w.js} +2 -2
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-B0td3xNS.js → Default.vue_vue_type_script_setup_true_lang-DzDO-bfn.js} +2 -2
  5. package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-DB7d9t3_.js → FilterSelector.vue_vue_type_script_setup_true_lang-DgagC5F1.js} +7 -7
  6. package/dist/{InsightView-CitbD8mF.js → InsightView--U8YNngJ.js} +6 -6
  7. package/dist/{Integration-DjnNmveS.js → Integration-BECzMkNu.js} +966 -933
  8. package/dist/{Integrations-BKYeENnK.js → Integrations-CKTqvI1_.js} +4 -4
  9. package/dist/{Layout-5TdGrp8j.js → Layout-Cnc8ppRk.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-DkiUvM56.js → MenuTab.vue_vue_type_script_setup_true_lang-DwTrXeDM.js} +5 -5
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-CifNNsqR.js → NavigationTab.vue_vue_type_script_setup_true_lang-DU__tSUF.js} +5 -5
  12. package/dist/{NoData.vue_vue_type_script_setup_true_lang-Uei_Jstp.js → NoData.vue_vue_type_script_setup_true_lang-yT3rD3v6.js} +1 -1
  13. package/dist/{OverviewView-DZoL2KUz.js → OverviewView-x9wDh9Ri.js} +5 -5
  14. package/dist/{Report-D_9Db2Pa.js → Report-CK_isrIW.js} +17 -18
  15. package/dist/{ReportEditor-VGOkYidh.js → ReportEditor-T12VzOJa.js} +25 -25
  16. package/dist/{ReportView-B9PQlaFs.js → ReportView-BC77AQD8.js} +28 -29
  17. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-UhEjUKRz.js → SelectComponent.vue_vue_type_script_setup_true_lang-COi1XhYD.js} +1 -1
  18. package/dist/{Setting-BpStivU1.js → Setting-DyrGukYa.js} +5 -5
  19. package/dist/{TileEditor-CYwZNqhl.js → TileEditor-B-sEmK-X.js} +8 -8
  20. package/dist/{TransitionFade-Cmxee7D0.js → TransitionFade-D4Rp-fR9.js} +6 -6
  21. package/dist/{app-BXEgzj0c.js → app-Dd6GUk_Q.js} +46 -38
  22. package/dist/app.js +1 -1
  23. package/dist/assets/{formatChartData.worker-Df5ziPQ2.js → formatChartData.worker-CxcSukKp.js} +23 -23
  24. package/dist/assets/{processTableData.worker-qpA30azs.js → processTableData.worker-MkLoF0u4.js} +2 -2
  25. package/dist/{useRestaurantPermission-DIlTzfKA.js → useRestaurantPermission-Dw-A2QGb.js} +1 -1
  26. package/dist/{vue-i18n-mTXrqqL9.js → vue-i18n-Dwv_B0_J.js} +170 -170
  27. package/package.json +1 -1
  28. package/dist/useReportPermission-B_CqU5GP.js +0 -63
@@ -1,30 +1,30 @@
1
- import { a as y0, F as g0, m as E0, n as Me, b as V0, c as ce, h as j0, d as Re, y as xe, i as Le, r as te, u as Oe } from "./vue-i18n-mTXrqqL9.js";
2
- import { storeToRefs as d0, defineStore as U0 } from "pinia";
3
- import { ref as o0, computed as w0, watch as Y0, h as we, defineComponent as fe, mergeModels as X0, useModel as K0, resolveComponent as O0, createElementBlock as G0, openBlock as k0, createVNode as T0, withCtx as P0, createElementVNode as L0, createCommentVNode as ve, Fragment as ae, renderList as Be, createBlock as pe, createTextVNode as $e, withDirectives as Pe, toDisplayString as B0, unref as S0, vShow as Je, renderSlot as He } from "vue";
4
- import { useSnackbar as ye, components as Ne } from "@feedmepos/ui-library";
5
- import { useCoreStore as ge, detectLocale as J0 } from "@feedmepos/mf-common";
6
- import { d as C0 } from "./app-BXEgzj0c.js";
7
- import { useRouter as ke } from "vue-router";
8
- import { c as Ue, a as qe } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-HVO_Z_aB.js";
9
- function me(T) {
1
+ import { a as $0, F as g0, l as E0, m as Le, c as $e, k as K0, y as T0, n as Z0, b as Y0, d as Oe, r as ne, u as we } from "./vue-i18n-Dwv_B0_J.js";
2
+ import { storeToRefs as d0, defineStore as q0 } from "pinia";
3
+ import { ref as l0, computed as R0, watch as G0, h as ve, defineComponent as ye, mergeModels as V0, useModel as ee, resolveComponent as v0, createElementBlock as z0, openBlock as U0, createVNode as C0, withCtx as J0, createElementVNode as w0, createCommentVNode as Be, Fragment as oe, renderList as Pe, createBlock as ge, createTextVNode as me, withDirectives as Je, toDisplayString as P0, unref as S0, vShow as He, renderSlot as Ne } from "vue";
4
+ import { useSnackbar as he, components as ke } from "@feedmepos/ui-library";
5
+ import { useCoreStore as ie, detectLocale as H0 } from "@feedmepos/mf-common";
6
+ import { d as b0 } from "./app-Dd6GUk_Q.js";
7
+ import { useRouter as Ue } from "vue-router";
8
+ import { c as qe, a as Qe } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-CsDelr-w.js";
9
+ function Se(T) {
10
10
  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.');
11
11
  }
12
- var he = {};
12
+ var Ee = {};
13
13
  (function(T) {
14
- var R = typeof globalThis < "u" ? globalThis : window, w = Object.create(R);
15
- w.scheduleImmediate = typeof setImmediate < "u" ? function(B) {
14
+ var F = typeof globalThis < "u" ? globalThis : window, O = Object.create(F);
15
+ O.scheduleImmediate = typeof setImmediate < "u" ? function(B) {
16
16
  setImmediate(B);
17
17
  } : function(B) {
18
18
  setTimeout(B, 0);
19
- }, w.exports = T, typeof process < "u" && (w.process = process), typeof __dirname < "u" && (w.__dirname = __dirname), typeof __filename < "u" && (w.__filename = __filename), typeof Buffer < "u" && (w.Buffer = Buffer);
20
- var J = !R.window;
19
+ }, 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);
20
+ var J = !F.window;
21
21
  try {
22
- typeof WorkerGlobalScope < "u" && R instanceof WorkerGlobalScope && (J = !1), typeof process < "u" && process.versions && process.versions.hasOwnProperty("electron") && process.versions.hasOwnProperty("node") && (J = !0);
22
+ typeof WorkerGlobalScope < "u" && F instanceof WorkerGlobalScope && (J = !1), typeof process < "u" && process.versions && process.versions.hasOwnProperty("electron") && process.versions.hasOwnProperty("node") && (J = !0);
23
23
  } catch {
24
24
  }
25
25
  if (J) {
26
- var P = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : me)("url");
27
- Object.defineProperty(w, "location", {
26
+ var P = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : Se)("url");
27
+ Object.defineProperty(O, "location", {
28
28
  value: {
29
29
  get href() {
30
30
  return P.pathToFileURL ? P.pathToFileURL(process.cwd()).href + "/" : "file://" + function() {
@@ -37,33 +37,33 @@ var he = {};
37
37
  function B() {
38
38
  try {
39
39
  throw new Error();
40
- } catch (Q) {
41
- var U = Q.stack, q = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), k = null;
40
+ } catch (V) {
41
+ var U = V.stack, Q = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), k = null;
42
42
  do {
43
- var V = q.exec(U);
44
- V != null && (k = V);
45
- } while (V != null);
43
+ var X = Q.exec(U);
44
+ X != null && (k = X);
45
+ } while (X != null);
46
46
  return k[1];
47
47
  }
48
48
  }
49
- var N = null;
50
- Object.defineProperty(w, "document", {
49
+ var H = null;
50
+ Object.defineProperty(O, "document", {
51
51
  value: {
52
52
  get currentScript() {
53
- return N == null && (N = { src: B() }), N;
53
+ return H == null && (H = { src: B() }), H;
54
54
  }
55
55
  }
56
56
  });
57
- }(), w.dartDeferredLibraryLoader = function(B, N, U) {
57
+ }(), O.dartDeferredLibraryLoader = function(B, H, U) {
58
58
  try {
59
- load(B), N();
60
- } catch (q) {
61
- U(q);
59
+ load(B), H();
60
+ } catch (Q) {
61
+ U(Q);
62
62
  }
63
63
  };
64
64
  }
65
65
  (function() {
66
- function N(r, e) {
66
+ function H(r, e) {
67
67
  for (var n = Object.keys(r), i = 0; i < n.length; i++) {
68
68
  var a = n[i];
69
69
  e[a] = r[a];
@@ -75,7 +75,7 @@ var he = {};
75
75
  e.hasOwnProperty(a) || (e[a] = r[a]);
76
76
  }
77
77
  }
78
- function q(r, e) {
78
+ function Q(r, e) {
79
79
  Object.assign(e, r);
80
80
  }
81
81
  var k = function() {
@@ -97,27 +97,27 @@ var he = {};
97
97
  }
98
98
  return !1;
99
99
  }();
100
- function V(r, e) {
100
+ function X(r, e) {
101
101
  if (r.prototype.constructor = r, r.prototype["$is" + r.name] = r, e != null) {
102
102
  if (k) {
103
103
  r.prototype.__proto__ = e.prototype;
104
104
  return;
105
105
  }
106
106
  var n = Object.create(e.prototype);
107
- N(r.prototype, n), r.prototype = n;
107
+ H(r.prototype, n), r.prototype = n;
108
108
  }
109
109
  }
110
- function Q(r, e) {
110
+ function V(r, e) {
111
111
  for (var n = 0; n < e.length; n++)
112
- V(e[n], r);
112
+ X(e[n], r);
113
113
  }
114
- function Z(r, e) {
115
- q(e.prototype, r.prototype), r.prototype.constructor = r;
114
+ function e0(r, e) {
115
+ Q(e.prototype, r.prototype), r.prototype.constructor = r;
116
116
  }
117
- function W(r, e) {
117
+ function q(r, e) {
118
118
  U(e.prototype, r.prototype), r.prototype.constructor = r;
119
119
  }
120
- function K(r, e, n, i) {
120
+ function z(r, e, n, i) {
121
121
  var a = r;
122
122
  r[e] = a, r[n] = function() {
123
123
  r[n] = function() {
@@ -134,7 +134,7 @@ var he = {};
134
134
  return s;
135
135
  };
136
136
  }
137
- function Y(r, e, n, i) {
137
+ function G(r, e, n, i) {
138
138
  var a = r;
139
139
  r[e] = a, r[n] = function() {
140
140
  return r[e] === a && (r[e] = i()), r[n] = function() {
@@ -142,7 +142,7 @@ var he = {};
142
142
  }, r[e];
143
143
  };
144
144
  }
145
- function u0(r, e, n, i) {
145
+ function a0(r, e, n, i) {
146
146
  var a = r;
147
147
  r[e] = a, r[n] = function() {
148
148
  if (r[e] === a) {
@@ -155,7 +155,7 @@ var he = {};
155
155
  }, o;
156
156
  };
157
157
  }
158
- function l0(r) {
158
+ function o0(r) {
159
159
  return r.immutable$list = Array, r.fixed$length = Array, r;
160
160
  }
161
161
  function s0(r) {
@@ -179,17 +179,17 @@ var he = {};
179
179
  return e === null && (e = t.closureFromTearOff(r).prototype), e;
180
180
  };
181
181
  }
182
- var X = 0;
183
- function G(r, e, n, i, a, s, o, l, D, d) {
184
- return typeof l == "number" && (l += X), { co: r, iS: e, iI: n, rC: i, dV: a, cs: s, fs: o, fT: l, aI: D || 0, nDA: d };
182
+ var Y = 0;
183
+ function W(r, e, n, i, a, s, o, l, D, d) {
184
+ return typeof l == "number" && (l += Y), { co: r, iS: e, iI: n, rC: i, dV: a, cs: s, fs: o, fT: l, aI: D || 0, nDA: d };
185
185
  }
186
186
  function n0(r, e, n, i, a, s, o, l) {
187
- var D = G(r, !0, !1, n, i, a, s, o, l, !1), d = p0(D);
187
+ var D = W(r, !0, !1, n, i, a, s, o, l, !1), d = p0(D);
188
188
  r[e] = d;
189
189
  }
190
190
  function t0(r, e, n, i, a, s, o, l, D, d) {
191
191
  n = !!n;
192
- var c = G(r, !1, n, i, a, s, o, l, D, !!d), p = f0(n, c);
192
+ var c = W(r, !1, n, i, a, s, o, l, D, !!d), p = f0(n, c);
193
193
  r[e] = p;
194
194
  }
195
195
  function i0(r) {
@@ -198,24 +198,24 @@ var he = {};
198
198
  b.interceptorsByTag = r;
199
199
  return;
200
200
  }
201
- N(r, e);
201
+ H(r, e);
202
202
  }
203
- function z(r) {
203
+ function j(r) {
204
204
  var e = b.leafTags;
205
205
  if (!e) {
206
206
  b.leafTags = r;
207
207
  return;
208
208
  }
209
- N(r, e);
209
+ H(r, e);
210
210
  }
211
211
  function r0(r) {
212
212
  var e = b.types, n = e.length;
213
213
  return e.push.apply(e, r), n;
214
214
  }
215
215
  function _0(r, e) {
216
- return N(e, r), r;
216
+ return H(e, r), r;
217
217
  }
218
- var e0 = function() {
218
+ var Z = function() {
219
219
  var r = function(n, i, a, s, o) {
220
220
  return function(l, D, d, c) {
221
221
  return t0(l, D, n, i, a, s, [d], c, o, !1);
@@ -225,7 +225,7 @@ var he = {};
225
225
  return n0(o, l, n, i, a, [D], d, s);
226
226
  };
227
227
  };
228
- return { inherit: V, inheritMany: Q, mixin: Z, mixinHard: W, installStaticTearOff: n0, installInstanceTearOff: t0, _instance_0u: r(0, 0, null, ["call$0"], 0), _instance_1u: r(0, 1, null, ["call$1"], 0), _instance_2u: r(0, 2, null, ["call$2"], 0), _instance_0i: r(1, 0, null, ["call$0"], 0), _instance_1i: r(1, 1, null, ["call$1"], 0), _instance_2i: r(1, 2, null, ["call$2"], 0), _static_0: e(0, null, ["call$0"], 0), _static_1: e(1, null, ["call$1"], 0), _static_2: e(2, null, ["call$2"], 0), makeConstList: l0, lazy: Y, lazyFinal: u0, lazyOld: K, updateHolder: _0, convertToFastObject: s0, updateTypes: r0, setOrUpdateInterceptorsByTag: i0, setOrUpdateLeafTags: z };
228
+ return { inherit: X, inheritMany: V, mixin: e0, mixinHard: q, installStaticTearOff: n0, installInstanceTearOff: t0, _instance_0u: r(0, 0, null, ["call$0"], 0), _instance_1u: r(0, 1, null, ["call$1"], 0), _instance_2u: r(0, 2, null, ["call$2"], 0), _instance_0i: r(1, 0, null, ["call$0"], 0), _instance_1i: r(1, 1, null, ["call$1"], 0), _instance_2i: r(1, 2, null, ["call$2"], 0), _static_0: e(0, null, ["call$0"], 0), _static_1: e(1, null, ["call$1"], 0), _static_2: e(2, null, ["call$2"], 0), makeConstList: o0, lazy: G, lazyFinal: a0, lazyOld: z, updateHolder: _0, convertToFastObject: s0, updateTypes: r0, setOrUpdateInterceptorsByTag: i0, setOrUpdateLeafTags: j };
229
229
  }(), t = {
230
230
  JS_CONST: function() {
231
231
  },
@@ -272,8 +272,8 @@ var he = {};
272
272
  }
273
273
  },
274
274
  Sort__dualPivotQuicksort(r, e, n, i) {
275
- var a, s, o, l, D, d, c, p, y, g, m = _.JSInt_methods._tdivFast$1(n - e + 1, 6), h = e + m, E = n - m, C = _.JSInt_methods._tdivFast$1(e + n, 2), I = C - m, F = C + m, x = u.getInterceptor$asx(r), M = x.$index(r, h), L = x.$index(r, I), O = x.$index(r, C), v = x.$index(r, F), H = x.$index(r, E);
276
- if (i.call$2(M, L) > 0 && (a = L, L = M, M = a), i.call$2(v, H) > 0 && (a = H, H = v, v = a), i.call$2(M, O) > 0 && (a = O, O = M, M = a), i.call$2(L, O) > 0 && (a = O, O = L, L = a), i.call$2(M, v) > 0 && (a = v, v = M, M = a), i.call$2(O, v) > 0 && (a = v, v = O, O = a), i.call$2(L, H) > 0 && (a = H, H = L, L = a), i.call$2(L, O) > 0 && (a = O, O = L, L = a), i.call$2(v, H) > 0 && (a = H, H = v, v = a), x.$indexSet(r, h, M), x.$indexSet(r, C, O), x.$indexSet(r, E, H), x.$indexSet(r, I, x.$index(r, e)), x.$indexSet(r, F, x.$index(r, n)), s = e + 1, o = n - 1, u.$eq$(i.call$2(L, v), 0)) {
275
+ var a, s, o, l, D, d, c, p, y, g, m = _.JSInt_methods._tdivFast$1(n - e + 1, 6), h = e + m, E = n - m, C = _.JSInt_methods._tdivFast$1(e + n, 2), I = C - m, M = C + m, x = u.getInterceptor$asx(r), R = x.$index(r, h), L = x.$index(r, I), w = x.$index(r, C), v = x.$index(r, M), N = x.$index(r, E);
276
+ if (i.call$2(R, L) > 0 && (a = L, L = R, R = a), i.call$2(v, N) > 0 && (a = N, N = v, v = a), i.call$2(R, w) > 0 && (a = w, w = R, R = a), i.call$2(L, w) > 0 && (a = w, w = L, L = a), i.call$2(R, v) > 0 && (a = v, v = R, R = a), i.call$2(w, v) > 0 && (a = v, v = w, w = a), i.call$2(L, N) > 0 && (a = N, N = L, L = a), i.call$2(L, w) > 0 && (a = w, w = L, L = a), i.call$2(v, N) > 0 && (a = N, N = v, v = a), x.$indexSet(r, h, R), x.$indexSet(r, C, w), x.$indexSet(r, E, N), x.$indexSet(r, I, x.$index(r, e)), x.$indexSet(r, M, x.$index(r, n)), s = e + 1, o = n - 1, u.$eq$(i.call$2(L, v), 0)) {
277
277
  for (l = s; l <= o; ++l)
278
278
  if (D = x.$index(r, l), d = i.call$2(D, L), d !== 0)
279
279
  if (d < 0)
@@ -697,12 +697,12 @@ var he = {};
697
697
  return e;
698
698
  },
699
699
  Closure_fromTearOff(r) {
700
- var e, n, i, a, s, o, l, D, d, c, p = r.co, y = r.iS, g = r.iI, m = r.nDA, h = r.aI, E = r.fs, C = r.cs, I = E[0], F = C[0], x = p[I], M = r.fT;
701
- for (M.toString, e = Object.create(y ? new t.StaticClosure().constructor.prototype : new t.BoundClosure(null, null).constructor.prototype), e.$initialize = e.constructor, y ? n = function() {
700
+ var e, n, i, a, s, o, l, D, d, c, p = r.co, y = r.iS, g = r.iI, m = r.nDA, h = r.aI, E = r.fs, C = r.cs, I = E[0], M = C[0], x = p[I], R = r.fT;
701
+ for (R.toString, e = Object.create(y ? new t.StaticClosure().constructor.prototype : new t.BoundClosure(null, null).constructor.prototype), e.$initialize = e.constructor, y ? n = function() {
702
702
  this.$initialize();
703
- } : n = function(O, v) {
704
- this.$initialize(O, v);
705
- }, e.constructor = n, n.prototype = e, e.$_name = I, e.$_target = x, i = !y, i ? a = t.Closure_forwardCallTo(I, x, g, m) : (e.$static_name = I, a = x), e.$signature = t.Closure__computeSignatureFunctionNewRti(M, y, g), e[F] = a, s = a, o = 1; o < E.length; ++o)
703
+ } : n = function(w, v) {
704
+ this.$initialize(w, v);
705
+ }, e.constructor = n, n.prototype = e, e.$_name = I, e.$_target = x, i = !y, i ? a = t.Closure_forwardCallTo(I, x, g, m) : (e.$static_name = I, a = x), e.$signature = t.Closure__computeSignatureFunctionNewRti(R, y, g), e[M] = a, s = a, o = 1; o < E.length; ++o)
706
706
  l = E[o], typeof l == "string" ? (D = p[l], d = l, l = D) : d = "", c = C[o], c != null && (i && (l = t.Closure_forwardCallTo(d, l, g, m)), e[c] = l), o === h && (s = l);
707
707
  return e["call*"] = s, e.$requiredArgCount = r.rC, e.$defaultValues = r.dV, n;
708
708
  },
@@ -1149,7 +1149,7 @@ var he = {};
1149
1149
  return t._Universe_eval(b.typeUniverse, r, !1);
1150
1150
  },
1151
1151
  _substitute(r, e, n, i) {
1152
- var a, s, o, l, D, d, c, p, y, g, m, h, E, C, I, F, x = e._kind;
1152
+ var a, s, o, l, D, d, c, p, y, g, m, h, E, C, I, M, x = e._kind;
1153
1153
  switch (x) {
1154
1154
  case 5:
1155
1155
  case 1:
@@ -1172,7 +1172,7 @@ var he = {};
1172
1172
  case 13:
1173
1173
  return E = e._rest, i += E.length, C = t._substituteArray(r, E, n, i), D = e._primary, d = t._substitute(r, D, n, i), C === E && d === D ? e : t._Universe__lookupGenericFunctionRti(r, d, C, !0);
1174
1174
  case 14:
1175
- return I = e._primary, I < i || (F = n[I - i], F == null) ? e : F;
1175
+ return I = e._primary, I < i || (M = n[I - i], M == null) ? e : M;
1176
1176
  default:
1177
1177
  throw t.wrapException(t.AssertionError$("Attempted to substitute unexpected RTI kind " + x));
1178
1178
  }
@@ -1432,7 +1432,7 @@ var he = {};
1432
1432
  return s + "})";
1433
1433
  },
1434
1434
  _functionRtiToString(r, e, n) {
1435
- var i, a, s, o, l, D, d, c, p, y, g, m, h, E, C, I, F, x, M, L, O, v = ", ";
1435
+ var i, a, s, o, l, D, d, c, p, y, g, m, h, E, C, I, M, x, R, L, w, v = ", ";
1436
1436
  if (n != null) {
1437
1437
  for (i = n.length, e == null ? (e = t._setArrayType([], f.JSArray_String), a = null) : a = e.length, s = e.length, o = i; o > 0; --o)
1438
1438
  e.push("T" + (s + o));
@@ -1441,19 +1441,19 @@ var he = {};
1441
1441
  d += ">";
1442
1442
  } else
1443
1443
  d = "", a = null;
1444
- for (l = r._primary, m = r._rest, h = m._requiredPositional, E = h.length, C = m._optionalPositional, I = C.length, F = m._named, x = F.length, M = t._rtiToString(l, e), L = "", O = "", o = 0; o < E; ++o, O = v)
1445
- L += O + t._rtiToString(h[o], e);
1444
+ for (l = r._primary, m = r._rest, h = m._requiredPositional, E = h.length, C = m._optionalPositional, I = C.length, M = m._named, x = M.length, R = t._rtiToString(l, e), L = "", w = "", o = 0; o < E; ++o, w = v)
1445
+ L += w + t._rtiToString(h[o], e);
1446
1446
  if (I > 0) {
1447
- for (L += O + "[", O = "", o = 0; o < I; ++o, O = v)
1448
- L += O + t._rtiToString(C[o], e);
1447
+ for (L += w + "[", w = "", o = 0; o < I; ++o, w = v)
1448
+ L += w + t._rtiToString(C[o], e);
1449
1449
  L += "]";
1450
1450
  }
1451
1451
  if (x > 0) {
1452
- for (L += O + "{", O = "", o = 0; o < x; o += 3, O = v)
1453
- L += O, F[o + 1] && (L += "required "), L += t._rtiToString(F[o + 2], e) + " " + F[o];
1452
+ for (L += w + "{", w = "", o = 0; o < x; o += 3, w = v)
1453
+ L += w, M[o + 1] && (L += "required "), L += t._rtiToString(M[o + 2], e) + " " + M[o];
1454
1454
  L += "}";
1455
1455
  }
1456
- return a != null && (e.toString, e.length = a), d + "(" + L + ") => " + M;
1456
+ return a != null && (e.toString, e.length = a), d + "(" + L + ") => " + R;
1457
1457
  },
1458
1458
  _rtiToString(r, e) {
1459
1459
  var n, i, a, s, o, l, D = r._kind;
@@ -1811,7 +1811,7 @@ var he = {};
1811
1811
  return D === 12 ? e === f.JavaScriptFunction ? !0 : s ? !1 : t._isFunctionSubtype(r, e, n, i, a) : o === 9 ? D !== 9 ? !1 : t._isInterfaceSubtype(r, e, n, i, a) : (s = o === 11, s && i === f.Record ? !0 : s && D === 11 ? t._isRecordSubtype(r, e, n, i, a) : !1);
1812
1812
  },
1813
1813
  _isFunctionSubtype(r, e, n, i, a) {
1814
- var s, o, l, D, d, c, p, y, g, m, h, E, C, I, F, x, M, L, O, v, H, j;
1814
+ var s, o, l, D, d, c, p, y, g, m, h, E, C, I, M, x, R, L, w, v, N, K;
1815
1815
  if (!t._isSubtype(r, e._primary, n, i._primary, a) || (s = e._rest, o = i._rest, l = s._requiredPositional, D = o._requiredPositional, d = l.length, c = D.length, d > c) || (p = c - d, y = s._optionalPositional, g = o._optionalPositional, m = y.length, h = g.length, d + m < c + h))
1816
1816
  return !1;
1817
1817
  for (E = 0; E < d; ++E)
@@ -1823,16 +1823,16 @@ var he = {};
1823
1823
  for (E = 0; E < h; ++E)
1824
1824
  if (C = y[p + E], !t._isSubtype(r, g[E], a, C, n))
1825
1825
  return !1;
1826
- for (I = s._named, F = o._named, x = I.length, M = F.length, L = 0, O = 0; O < M; O += 3)
1827
- for (v = F[O]; ; ) {
1828
- if (L >= x || (H = I[L], L += 3, v < H))
1826
+ for (I = s._named, M = o._named, x = I.length, R = M.length, L = 0, w = 0; w < R; w += 3)
1827
+ for (v = M[w]; ; ) {
1828
+ if (L >= x || (N = I[L], L += 3, v < N))
1829
1829
  return !1;
1830
- if (j = I[L - 2], H < v) {
1831
- if (j)
1830
+ if (K = I[L - 2], N < v) {
1831
+ if (K)
1832
1832
  return !1;
1833
1833
  continue;
1834
1834
  }
1835
- if (C = F[O + 1], j && !C || (C = I[L - 1], !t._isSubtype(r, F[O + 2], a, C, n)))
1835
+ if (C = M[w + 1], K && !C || (C = I[L - 1], !t._isSubtype(r, M[w + 2], a, C, n)))
1836
1836
  return !1;
1837
1837
  break;
1838
1838
  }
@@ -2811,13 +2811,13 @@ var he = {};
2811
2811
  `;
2812
2812
  },
2813
2813
  Materialize_getMergeSql(r, e, n, i, a, s, o) {
2814
- var l, D, d, c, p, y, g, m, h, E, C, I, F = "') AND TIMESTAMP('", x = "and TIMESTAMP_TRUNC(target_table.createdAt, DAY, 'UTC') in UNNEST(@updateTimestamps)", M = "and target_table.restaurantId in UNNEST(@restaurantIds)", L = r.source;
2814
+ var l, D, d, c, p, y, g, m, h, E, C, I, M = "') AND TIMESTAMP('", x = "and TIMESTAMP_TRUNC(target_table.createdAt, DAY, 'UTC') in UNNEST(@updateTimestamps)", R = "and target_table.restaurantId in UNNEST(@restaurantIds)", L = r.source;
2815
2815
  return L.type === _.SOURCE_TYPE_2 ? (l = L.uniqueKey, l.toString, D = u.getInterceptor$asx(l), d = D.get$length(l) === 1 ? "CAST(" + t.S(D.get$first(l)) + " AS STRING)" : "CONCAT(" + D.map$1$1(l, new t.Materialize_getMergeSql_closure(), f.String).join$1(0, ", '_', ") + ")", c = L.timeColumn, c.toString, p = `WITH docs as
2816
2816
  (
2817
- select * from (SELECT TO_JSON_STRING(src) AS data, ` + d + " AS id, '' AS db_name, " + c + " AS publish_time, false AS deleted, ROW_NUMBER() OVER (PARTITION BY " + D.join$1(l, ",") + " ORDER BY " + c + " DESC) as rn \n FROM `" + r.get$fullRawTableName() + "` AS src\n WHERE " + c + " between TIMESTAMP('" + i + F + n + `')) WHERE rn=1
2817
+ select * from (SELECT TO_JSON_STRING(src) AS data, ` + d + " AS id, '' AS db_name, " + c + " AS publish_time, false AS deleted, ROW_NUMBER() OVER (PARTITION BY " + D.join$1(l, ",") + " ORDER BY " + c + " DESC) as rn \n FROM `" + r.get$fullRawTableName() + "` AS src\n WHERE " + c + " between TIMESTAMP('" + i + M + n + `')) WHERE rn=1
2818
2818
  ),`) : (y = s.source.type === _.SOURCE_TYPE_0 ? 'IF(db_name="companyDB","",db_name)' : "db_name", p = `WITH docs as
2819
2819
  (
2820
- select * from (SELECT data, ` + y + " db_name, publish_time, deleted, id, ROW_NUMBER() OVER (PARTITION BY id," + y + " ORDER BY publish_time DESC) as rn \n FROM `" + r.get$fullRawTableName() + "`\n WHERE publish_time between TIMESTAMP('" + i + F + n + `')) WHERE rn=1 AND deleted=false
2820
+ select * from (SELECT data, ` + y + " db_name, publish_time, deleted, id, ROW_NUMBER() OVER (PARTITION BY id," + y + " ORDER BY publish_time DESC) as rn \n FROM `" + r.get$fullRawTableName() + "`\n WHERE publish_time between TIMESTAMP('" + i + M + n + `')) WHERE rn=1 AND deleted=false
2821
2821
  ),`), l = r.getTransformedTableQuery$1$getParentDocs(!1), D = r.fields, c = u.getInterceptor$ax(D), g = c.where$1(D, new t.Materialize_getMergeSql_closure0()), g = new t.MappedIterable(g, new t.Materialize_getMergeSql_closure1(r), g.$ti._eval$1("MappedIterable<1,String>")).join$1(0, `,
2822
2822
  `), L = L.field, L = L != null ? "CROSS JOIN UNNEST(" + L + ") AS " + r.name._name : "", m = p + `
2823
2823
  raw_table AS (
@@ -2826,8 +2826,8 @@ var he = {};
2826
2826
  SELECT
2827
2827
  ` + g + `
2828
2828
  FROM raw_table ` + L + `
2829
- `, L = c.where$1(D, new t.Materialize_getMergeSql_closure2()), h = new t.MappedIterable(L, new t.Materialize_getMergeSql_closure3(), L.$ti._eval$1("MappedIterable<1,String>")).join$1(0, ","), L = r.get$fullMaterializedTableName(), l = u.getInterceptor$asx(o), g = l.get$isNotEmpty(o) ? x : "", E = u.getInterceptor$asx(a), C = E.get$isNotEmpty(a) ? M : "", D = c.where$1(D, new t.Materialize_getMergeSql_closure4()), D = new t.MappedIterable(D, new t.Materialize_getMergeSql_closure5(), D.$ti._eval$1("MappedIterable<1,String>")).join$1(0, `,
2830
- `), u.get$isNotEmpty$asx(e) ? (c = r.get$fullMaterializedTableName(), l = l.get$isNotEmpty(o) ? x : "", E = E.get$isNotEmpty(a) ? M : "", I = "DELETE FROM `" + c + "` target_table WHERE NOT EXISTS (\n select id,docId from (" + m + `) source_table
2829
+ `, L = c.where$1(D, new t.Materialize_getMergeSql_closure2()), h = new t.MappedIterable(L, new t.Materialize_getMergeSql_closure3(), L.$ti._eval$1("MappedIterable<1,String>")).join$1(0, ","), L = r.get$fullMaterializedTableName(), l = u.getInterceptor$asx(o), g = l.get$isNotEmpty(o) ? x : "", E = u.getInterceptor$asx(a), C = E.get$isNotEmpty(a) ? R : "", D = c.where$1(D, new t.Materialize_getMergeSql_closure4()), D = new t.MappedIterable(D, new t.Materialize_getMergeSql_closure5(), D.$ti._eval$1("MappedIterable<1,String>")).join$1(0, `,
2830
+ `), u.get$isNotEmpty$asx(e) ? (c = r.get$fullMaterializedTableName(), l = l.get$isNotEmpty(o) ? x : "", E = E.get$isNotEmpty(a) ? R : "", I = "DELETE FROM `" + c + "` target_table WHERE NOT EXISTS (\n select id,docId from (" + m + `) source_table
2831
2831
  WHERE source_table.id = target_table.id
2832
2832
  and source_table.docId = target_table.docId
2833
2833
  )
@@ -2852,7 +2852,7 @@ and target_table.docId in UNNEST(@docIds)
2852
2852
  `;
2853
2853
  },
2854
2854
  Materialize_getMaterializeInfoSql(r, e, n, i, a) {
2855
- var s, o, l, D, d, c, p, y, g, m, h = '") AND TIMESTAMP("', E = "CAST(JSON_VALUE(", C = ", '$._restaurantId') AS STRING) AS restaurantId,", I = r.source, F = I.field, x = F != null;
2855
+ var s, o, l, D, d, c, p, y, g, m, h = '") AND TIMESTAMP("', E = "CAST(JSON_VALUE(", C = ", '$._restaurantId') AS STRING) AS restaurantId,", I = r.source, M = I.field, x = M != null;
2856
2856
  return I.type === _.SOURCE_TYPE_2 ? (s = I.uniqueKey, s.toString, o = u.getInterceptor$asx(s), l = o.get$length(s) === 1 ? "CAST(" + t.S(o.get$first(s)) + " AS STRING)" : "CONCAT(" + o.map$1$1(s, new t.Materialize_getMaterializeInfoSql_closure(), f.String).join$1(0, ", '_', ") + ")", D = I.timeColumn, D.toString, d = o.join$1(s, ","), c = I.dateColumns, c == null && (c = t._setArrayType([], f.JSArray_String)), p = D + ' between TIMESTAMP("' + i + h + e + '")', I = u.getInterceptor$asx(c), y = I.get$isNotEmpty(c) ? "SELECT * REPLACE(" + I.map$1$1(c, new t.Materialize_getMaterializeInfoSql_closure0(a), f.String).join$1(0, ", ") + ") FROM `" + r.get$fullRawTableName() + "` WHERE " + p : "SELECT * FROM `" + r.get$fullRawTableName() + "` WHERE " + p, g = `docs AS (
2857
2857
  SELECT * FROM (
2858
2858
  SELECT TO_JSON_STRING(src) AS data, ` + l + " AS id, '' AS db_name, " + D + ` AS publish_time, false AS deleted,
@@ -2863,14 +2863,14 @@ and target_table.docId in UNNEST(@docIds)
2863
2863
  )`, I = r.getTransformedTableQuery$1$getParentDocs(!0), s = x ? `child_table AS (
2864
2864
  ` + r.getTransformedTableQuery$1$getParentDocs(!1) + `
2865
2865
  ),
2866
- ` : "", o = r.name._name, D = n ? E + o + C : "", x ? (m = n ? E + o + C : "", F = ` UNION ALL
2866
+ ` : "", o = r.name._name, D = n ? E + o + C : "", x ? (m = n ? E + o + C : "", M = ` UNION ALL
2867
2867
  SELECT
2868
2868
  CAST(JSON_VALUE(` + o + `, '$._docId') AS STRING) AS docId,
2869
2869
  ` + m + `
2870
2870
  CAST(JSON_VALUE(` + o + `, '$._createdAt') AS TIMESTAMP) AS createdAt,
2871
2871
  CAST(JSON_VALUE(` + o + `, '$._deleted') AS BOOL) AS deleted
2872
- FROM child_table CROSS JOIN UNNEST(` + F + ") AS " + o + `
2873
- `) : F = "", m = n ? "ARRAY_AGG(DISTINCT restaurantId IGNORE NULLS) restaurantIds," : "", `WITH
2872
+ FROM child_table CROSS JOIN UNNEST(` + M + ") AS " + o + `
2873
+ `) : M = "", m = n ? "ARRAY_AGG(DISTINCT restaurantId IGNORE NULLS) restaurantIds," : "", `WITH
2874
2874
  ` + g + `,
2875
2875
  parent_table AS (
2876
2876
  ` + I + `
@@ -2882,7 +2882,7 @@ formatted_table as (SELECT
2882
2882
  CAST(JSON_VALUE(` + o + `, '$._createdAt') AS TIMESTAMP) AS createdAt,
2883
2883
  CAST(JSON_VALUE(` + o + `, '$._deleted') AS BOOL) AS deleted
2884
2884
  FROM parent_table
2885
- ` + F + `
2885
+ ` + M + `
2886
2886
  )
2887
2887
  select
2888
2888
  MIN(createdAt) minUpdateTimestamp,
@@ -2979,16 +2979,16 @@ select
2979
2979
  Index$(r, e, n) {
2980
2980
  return new t.Index(r, e, n);
2981
2981
  },
2982
- Schema$(r, e, n, i, a, s, o, l, D, d, c, p, y, g, m, h, E, C, I, F, x, M, L) {
2983
- return new t.Schema(I, h, s, m, L, M, y, g, c, p, D, x, a, C, E, F, i, l, o, d, e, r, n);
2982
+ Schema$(r, e, n, i, a, s, o, l, D, d, c, p, y, g, m, h, E, C, I, M, x, R, L) {
2983
+ return new t.Schema(I, h, s, m, L, R, y, g, c, p, D, x, a, C, E, M, i, l, o, d, e, r, n);
2984
2984
  },
2985
- Schema_Schema$build(r, e, n, i, a, s, o, l, D, d, c, p, y, g, m, h, E, C, I, F, x, M, L) {
2986
- var O = s.call$1(I), v = m.call$1(I);
2987
- return t.Schema$(r, e, n, i, a, O, o, l, D ?? 300, d, c, p, y, g, v, h, E, C, I, F, x, M, L);
2985
+ Schema_Schema$build(r, e, n, i, a, s, o, l, D, d, c, p, y, g, m, h, E, C, I, M, x, R, L) {
2986
+ var w = s.call$1(I), v = m.call$1(I);
2987
+ return t.Schema$(r, e, n, i, a, w, o, l, D ?? 300, d, c, p, y, g, v, h, E, C, I, M, x, R, L);
2988
2988
  },
2989
2989
  Schema_fromJson(r) {
2990
- var e, n, i, a, s, o, l, D, d, c, p, y, g, m, h, E, C, I = null, F = u.map$1$ax(r.$index(0, "fields"), new t.Schema_fromJson_closure()).toList$0(0), x = r.$index(0, "label"), M = t.EnumByName_byName(_.List_8aB, r.$index(0, "name")), L = u.map$1$ax(r.$index(0, "joins"), new t.Schema_fromJson_closure0()).toList$0(0), O = t.TopLevelFilters_fromJson(r.$index(0, "topLevelFilters")), v = r.$index(0, "source"), H = t.EnumByName_byName(_.List_ytA, v.$index(0, "type")), j = v.$index(0, "table"), c0 = v.$index(0, "field"), m0 = v.$index(0, "dataset"), a0 = f.nullable_List_dynamic, h0 = a0._as(v.$index(0, "uniqueKey"));
2991
- return h0 = h0 == null ? I : u.cast$1$0$ax(h0, f.String), e = v.$index(0, "timeColumn"), v = a0._as(v.$index(0, "dateColumns")), v = v == null ? I : u.cast$1$0$ax(v, f.String), n = r.$index(0, "rawTableName"), i = r.$index(0, "dynamicRawTable"), a = r.$index(0, "materializedTableName"), s = r.$index(0, "materializedPostgresqlTableName"), o = r.$index(0, "isJoinOnly"), l = r.$index(0, "isMaterializeOnly"), D = r.$index(0, "isContinuousUpdate"), d = r.$index(0, "interval"), c = r.$index(0, "partition"), p = r.$index(0, "clusters"), p == null && (p = t._setArrayType([], f.JSArray_String)), y = r.$index(0, "indexes"), y = y == null ? I : u.map$1$ax(y, new t.Schema_fromJson_closure1()), y == null && (y = t._setArrayType([], f.JSArray_Index)), g = r.$index(0, "filters"), g = g == null ? I : u.map$1$ax(g, new t.Schema_fromJson_closure2()).toList$0(0), g == null && (g = t._setArrayType([], f.JSArray_QueryRequestFilter)), m = r.$index(0, "isGlobal"), m == null && (m = !1), h = r.$index(0, "isAiHidden"), h == null && (h = !1), a0 = a0._as(r.$index(0, "aiKeywords")), a0 = a0 == null ? I : u.cast$1$0$ax(a0, f.String), a0 == null && (a0 = t._setArrayType([], f.JSArray_String)), E = r.$index(0, "aiCategory"), C = r.$index(0, "aiPriority"), C == null && (C = 3), t.Schema$(E, a0, C, p, i, F, g, y, d, h, D, m, o, l, L, x, s, a, M, c, n, new t.Source(H, j, c0, m0, h0, e, v), O);
2990
+ var e, n, i, a, s, o, l, D, d, c, p, y, g, m, h, E, C, I = null, M = u.map$1$ax(r.$index(0, "fields"), new t.Schema_fromJson_closure()).toList$0(0), x = r.$index(0, "label"), R = t.EnumByName_byName(_.List_8aB, r.$index(0, "name")), L = u.map$1$ax(r.$index(0, "joins"), new t.Schema_fromJson_closure0()).toList$0(0), w = t.TopLevelFilters_fromJson(r.$index(0, "topLevelFilters")), v = r.$index(0, "source"), N = t.EnumByName_byName(_.List_ytA, v.$index(0, "type")), K = v.$index(0, "table"), c0 = v.$index(0, "field"), m0 = v.$index(0, "dataset"), u0 = f.nullable_List_dynamic, h0 = u0._as(v.$index(0, "uniqueKey"));
2991
+ return h0 = h0 == null ? I : u.cast$1$0$ax(h0, f.String), e = v.$index(0, "timeColumn"), v = u0._as(v.$index(0, "dateColumns")), v = v == null ? I : u.cast$1$0$ax(v, f.String), n = r.$index(0, "rawTableName"), i = r.$index(0, "dynamicRawTable"), a = r.$index(0, "materializedTableName"), s = r.$index(0, "materializedPostgresqlTableName"), o = r.$index(0, "isJoinOnly"), l = r.$index(0, "isMaterializeOnly"), D = r.$index(0, "isContinuousUpdate"), d = r.$index(0, "interval"), c = r.$index(0, "partition"), p = r.$index(0, "clusters"), p == null && (p = t._setArrayType([], f.JSArray_String)), y = r.$index(0, "indexes"), y = y == null ? I : u.map$1$ax(y, new t.Schema_fromJson_closure1()), y == null && (y = t._setArrayType([], f.JSArray_Index)), g = r.$index(0, "filters"), g = g == null ? I : u.map$1$ax(g, new t.Schema_fromJson_closure2()).toList$0(0), g == null && (g = t._setArrayType([], f.JSArray_QueryRequestFilter)), m = r.$index(0, "isGlobal"), m == null && (m = !1), h = r.$index(0, "isAiHidden"), h == null && (h = !1), u0 = u0._as(r.$index(0, "aiKeywords")), u0 = u0 == null ? I : u.cast$1$0$ax(u0, f.String), u0 == null && (u0 = t._setArrayType([], f.JSArray_String)), E = r.$index(0, "aiCategory"), C = r.$index(0, "aiPriority"), C == null && (C = 3), t.Schema$(E, u0, C, p, i, M, g, y, d, h, D, m, o, l, L, x, s, a, R, c, n, new t.Source(N, K, c0, m0, h0, e, v), w);
2992
2992
  },
2993
2993
  Field_Field$numeric(r, e, n, i, a, s, o, l, D) {
2994
2994
  return new t._NumericField(s, o, _.DATA_TYPE_3, e, a, l, n, D, i, !1, r);
@@ -3111,9 +3111,9 @@ select
3111
3111
  Index: function(e, n, i) {
3112
3112
  this.column = e, this.customName = n, this.indexMethod = i;
3113
3113
  },
3114
- Schema: function(e, n, i, a, s, o, l, D, d, c, p, y, g, m, h, E, C, I, F, x, M, L, O) {
3114
+ Schema: function(e, n, i, a, s, o, l, D, d, c, p, y, g, m, h, E, C, I, M, x, R, L, w) {
3115
3115
  var v = this;
3116
- v.name = e, v.label = n, v.fields = i, v.joins = a, v.topLevelFilters = s, v.source = o, v.isJoinOnly = l, v.isMaterializeOnly = D, v.isContinuousUpdate = d, v.isGlobal = c, v.interval = p, v.rawTableName = y, v.dynamicRawTable = g, v.materializedTableName = m, v.materializedPostgresqlTableName = h, v.partition = E, v.clusters = C, v.indexes = I, v._materializeTablePrefix = v._rawTablePrefix = "", v.filters = F, v.isAiHidden = x, v.aiKeywords = M, v.aiCategory = L, v.aiPriority = O;
3116
+ v.name = e, v.label = n, v.fields = i, v.joins = a, v.topLevelFilters = s, v.source = o, v.isJoinOnly = l, v.isMaterializeOnly = D, v.isContinuousUpdate = d, v.isGlobal = c, v.interval = p, v.rawTableName = y, v.dynamicRawTable = g, v.materializedTableName = m, v.materializedPostgresqlTableName = h, v.partition = E, v.clusters = C, v.indexes = I, v._materializeTablePrefix = v._rawTablePrefix = "", v.filters = M, v.isAiHidden = x, v.aiKeywords = R, v.aiCategory = L, v.aiPriority = w;
3117
3117
  },
3118
3118
  Schema_visualizationSchema_closure: function() {
3119
3119
  },
@@ -3997,9 +3997,9 @@ select
3997
3997
  DataSourceRowColumnConfig_columnIds_closure1: function(e) {
3998
3998
  this.$this = e;
3999
3999
  },
4000
- TableDatasourceConfigModel: function(e, n, i, a, s, o, l, D, d, c, p, y, g, m, h, E, C, I, F, x) {
4001
- var M = this;
4002
- M.columnsWidth = e, M.isDrillable = n, M.showGrandTotal = i, M.rollup = a, M.rollupPosition = s, M.rowsPerPage = o, M.isBlend = l, M._table_datasource_config_model$_drillDimension = D, M._rowIds = d, M._columnIds = c, M._table_datasource_config_model$_joinDatasources = p, M.schemaNames = y, M.dimensions = g, M.metrics = m, M.filters = h, M.sorts = E, M.limit = C, M.isComparable = I, M.periodType = F, M.timezone = x;
4000
+ TableDatasourceConfigModel: function(e, n, i, a, s, o, l, D, d, c, p, y, g, m, h, E, C, I, M, x) {
4001
+ var R = this;
4002
+ R.columnsWidth = e, R.isDrillable = n, R.showGrandTotal = i, R.rollup = a, R.rollupPosition = s, R.rowsPerPage = o, R.isBlend = l, R._table_datasource_config_model$_drillDimension = D, R._rowIds = d, R._columnIds = c, R._table_datasource_config_model$_joinDatasources = p, R.schemaNames = y, R.dimensions = g, R.metrics = m, R.filters = h, R.sorts = E, R.limit = C, R.isComparable = I, R.periodType = M, R.timezone = x;
4003
4003
  },
4004
4004
  TableDatasourceConfigModel_drilledDimensions_closure: function(e) {
4005
4005
  this.$this = e;
@@ -4190,40 +4190,40 @@ select
4190
4190
  return i = new t.Connection("", "", i.$index(r, "sourceDatasetId"), i.$index(r, "targetDatasetId")), e = S.$get$defaultSchemas(), n = new t.SchemaLibrary(e), n.SchemaLibrary$2$connection$schemas(i, e), new t.QueryEngine(new t.QueryEngineContext(i, n));
4191
4191
  },
4192
4192
  getMergeInfoSql(r) {
4193
- var e, n, i, a = _.C_JsonCodec.decode$2$reviver(w.JSON.stringify(r), null), s = u.getInterceptor$asx(a), o = t._getQueryEngine(s.$index(a, "bigQuery"));
4193
+ var e, n, i, a = _.C_JsonCodec.decode$2$reviver(O.JSON.stringify(r), null), s = u.getInterceptor$asx(a), o = t._getQueryEngine(s.$index(a, "bigQuery"));
4194
4194
  return s = s.$index(a, "request"), e = t.Schema_fromJson(s.$index(0, "schema")), n = s.$index(0, "start"), i = s.$index(0, "end"), s = s.$index(0, "tz"), s == null && (s = "UTC"), e.setConnection$1(o.context.connection), t.Materialize_getMaterializeInfoSql(e, i, u.contains$1$asx(e.clusters, "restaurantId"), n, s);
4195
4195
  },
4196
4196
  getClearTableSql(r) {
4197
- var e = _.C_JsonCodec.decode$2$reviver(w.JSON.stringify(r), null), n = u.getInterceptor$asx(e), i = t._getQueryEngine(n.$index(e, "bigQuery"));
4197
+ var e = _.C_JsonCodec.decode$2$reviver(O.JSON.stringify(r), null), n = u.getInterceptor$asx(e), i = t._getQueryEngine(n.$index(e, "bigQuery"));
4198
4198
  return n = t.Schema_fromJson(n.$index(e, "request").$index(0, "schema")), n.setConnection$1(i.context.connection), "DELETE FROM " + n.get$fullMaterializedTableName() + ` where true;
4199
4199
  `;
4200
4200
  },
4201
4201
  getMergeSql(r) {
4202
- var e, n, i, a, s, o = _.C_JsonCodec.decode$2$reviver(w.JSON.stringify(r), null), l = u.getInterceptor$asx(o), D = t._getQueryEngine(l.$index(o, "bigQuery"));
4202
+ var e, n, i, a, s, o = _.C_JsonCodec.decode$2$reviver(O.JSON.stringify(r), null), l = u.getInterceptor$asx(o), D = t._getQueryEngine(l.$index(o, "bigQuery"));
4203
4203
  return l = l.$index(o, "request"), e = t.Schema_fromJson(l.$index(0, "schema")), n = l.$index(0, "publishStartedAt"), i = l.$index(0, "publishEndedAt"), a = l.$index(0, "docIds"), s = l.$index(0, "restaurantIds"), l = l.$index(0, "updateTimestamps"), e.setConnection$1(D.context.connection), t.Materialize_getMergeSql(e, a, i, n, s, e, l);
4204
4204
  },
4205
4205
  getSchemas(r) {
4206
- var e = t._getQueryEngine(_.C_JsonCodec.decode$2$reviver(w.JSON.stringify(r), null)).context.schemaLibrary._schemas, n = t._arrayInstanceType(e)._eval$1("MappedListIterable<1,Map<String,@>>");
4207
- return w.JSON.parse(_.C_JsonCodec.encode$2$toEncodable(t.List_List$of(new t.MappedListIterable(e, new t.getSchemas_closure(), n), !0, n._eval$1("ListIterable.E")), null));
4206
+ var e = t._getQueryEngine(_.C_JsonCodec.decode$2$reviver(O.JSON.stringify(r), null)).context.schemaLibrary._schemas, n = t._arrayInstanceType(e)._eval$1("MappedListIterable<1,Map<String,@>>");
4207
+ return O.JSON.parse(_.C_JsonCodec.encode$2$toEncodable(t.List_List$of(new t.MappedListIterable(e, new t.getSchemas_closure(), n), !0, n._eval$1("ListIterable.E")), null));
4208
4208
  },
4209
4209
  getVisualizationSchemas(r) {
4210
- var e = t._getQueryEngine(u.$index$asx(_.C_JsonCodec.decode$2$reviver(w.JSON.stringify(r), null), "bigQuery")).context.schemaLibrary.get$visualizationSchemas(), n = t._arrayInstanceType(e)._eval$1("MappedListIterable<1,Map<String,@>>");
4211
- return w.JSON.parse(_.C_JsonCodec.encode$2$toEncodable(t.List_List$of(new t.MappedListIterable(e, new t.getVisualizationSchemas_closure(), n), !0, n._eval$1("ListIterable.E")), null));
4210
+ var e = t._getQueryEngine(u.$index$asx(_.C_JsonCodec.decode$2$reviver(O.JSON.stringify(r), null), "bigQuery")).context.schemaLibrary.get$visualizationSchemas(), n = t._arrayInstanceType(e)._eval$1("MappedListIterable<1,Map<String,@>>");
4211
+ return O.JSON.parse(_.C_JsonCodec.encode$2$toEncodable(t.List_List$of(new t.MappedListIterable(e, new t.getVisualizationSchemas_closure(), n), !0, n._eval$1("ListIterable.E")), null));
4212
4212
  },
4213
4213
  requestJsonToSql(r) {
4214
- var e = _.C_JsonCodec.decode$2$reviver(w.JSON.stringify(r), null), n = u.getInterceptor$asx(e);
4215
- return w.JSON.parse(_.C_JsonCodec.encode$2$toEncodable(t._getQueryEngine(n.$index(e, "bigQuery")).getSql$1(t._setArrayType([t.QueryRequest_fromJson(n.$index(e, "request"))], f.JSArray_QueryRequest)), null));
4214
+ var e = _.C_JsonCodec.decode$2$reviver(O.JSON.stringify(r), null), n = u.getInterceptor$asx(e);
4215
+ return O.JSON.parse(_.C_JsonCodec.encode$2$toEncodable(t._getQueryEngine(n.$index(e, "bigQuery")).getSql$1(t._setArrayType([t.QueryRequest_fromJson(n.$index(e, "request"))], f.JSArray_QueryRequest)), null));
4216
4216
  },
4217
4217
  sqlResponsesToQueryResponses(r) {
4218
- var e, n = _.C_JsonCodec.decode$2$reviver(w.JSON.stringify(r), null), i = u.getInterceptor$asx(n), a = t._getQueryEngine(i.$index(n, "bigQuery"));
4219
- return i = t.ListExtensions_mapIndexed(u.map$1$ax(i.$index(n, "requests"), new t.sqlResponsesToQueryResponses_closure()).toList$0(0), new t.sqlResponsesToQueryResponses_closure0(i.$index(n, "sqlResponses"), a), f.QueryRequest, f.QueryResponse), e = t.List_List$of(i, !0, i.$ti._eval$1("Iterable.E")), i = t._arrayInstanceType(e)._eval$1("MappedListIterable<1,Map<String,@>>"), w.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));
4218
+ var e, n = _.C_JsonCodec.decode$2$reviver(O.JSON.stringify(r), null), i = u.getInterceptor$asx(n), a = t._getQueryEngine(i.$index(n, "bigQuery"));
4219
+ return i = t.ListExtensions_mapIndexed(u.map$1$ax(i.$index(n, "requests"), new t.sqlResponsesToQueryResponses_closure()).toList$0(0), new t.sqlResponsesToQueryResponses_closure0(i.$index(n, "sqlResponses"), a), f.QueryRequest, f.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));
4220
4220
  },
4221
4221
  getQueryRequests(r) {
4222
- var e, n, i, a, s, o, l, D, d, c, p = _.C_JsonCodec.decode$2$reviver(w.JSON.stringify(r), null), y = u.getInterceptor$asx(p), g = t.ReportWidgetModel_fromJson(y.$index(p, "widget")), m = u.map$1$ax(y.$index(p, "dateRange"), new t.getQueryRequests_closure()).toList$0(0), h = y.$index(p, "compareDateRange");
4223
- return h == null && (h = []), e = u.map$1$ax(h, new t.getQueryRequests_closure0()).toList$0(0), n = u.map$1$ax(y.$index(p, "timeRange"), new t.getQueryRequests_closure1()).toList$0(0), i = u.map$1$ax(y.$index(p, "restaurantIds"), new t.getQueryRequests_closure2()).toList$0(0), a = u.map$1$ax(y.$index(p, "warehouseIds"), new t.getQueryRequests_closure3()).toList$0(0), s = u.map$1$ax(y.$index(p, "businessIds"), new t.getQueryRequests_closure4()).toList$0(0), o = y.$index(p, "timezone"), y = g.config, h = t._arrayInstanceType(m)._eval$1("MappedListIterable<1,@>"), l = t._arrayInstanceType(n)._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(n, new t.getQueryRequests_closure6(), l), !0, D), i, a, s, !1, o)), e.length !== 0 && y.isComparable === !0 && (h = t.List_List$of(d, !0, f.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(n, new t.getQueryRequests_closure8(), l), !0, D), i, a, s, !0, o))), d = h), y = t._arrayInstanceType(d)._eval$1("MappedListIterable<1,Map<String,@>>"), w.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));
4222
+ var e, n, i, a, s, o, l, D, d, c, p = _.C_JsonCodec.decode$2$reviver(O.JSON.stringify(r), null), y = u.getInterceptor$asx(p), g = t.ReportWidgetModel_fromJson(y.$index(p, "widget")), m = u.map$1$ax(y.$index(p, "dateRange"), new t.getQueryRequests_closure()).toList$0(0), h = y.$index(p, "compareDateRange");
4223
+ return h == null && (h = []), e = u.map$1$ax(h, new t.getQueryRequests_closure0()).toList$0(0), n = u.map$1$ax(y.$index(p, "timeRange"), new t.getQueryRequests_closure1()).toList$0(0), i = u.map$1$ax(y.$index(p, "restaurantIds"), new t.getQueryRequests_closure2()).toList$0(0), a = u.map$1$ax(y.$index(p, "warehouseIds"), new t.getQueryRequests_closure3()).toList$0(0), s = u.map$1$ax(y.$index(p, "businessIds"), new t.getQueryRequests_closure4()).toList$0(0), o = y.$index(p, "timezone"), y = g.config, h = t._arrayInstanceType(m)._eval$1("MappedListIterable<1,@>"), l = t._arrayInstanceType(n)._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(n, new t.getQueryRequests_closure6(), l), !0, D), i, a, s, !1, o)), e.length !== 0 && y.isComparable === !0 && (h = t.List_List$of(d, !0, f.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(n, new t.getQueryRequests_closure8(), l), !0, D), i, a, s, !0, o))), 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));
4224
4224
  },
4225
4225
  getCreateMaterializedTableSql(r) {
4226
- var e = _.C_JsonCodec.decode$2$reviver(w.JSON.stringify(r), null), n = u.getInterceptor$asx(e), i = t._getQueryEngine(n.$index(e, "bigQuery"));
4226
+ var e = _.C_JsonCodec.decode$2$reviver(O.JSON.stringify(r), null), n = u.getInterceptor$asx(e), i = t._getQueryEngine(n.$index(e, "bigQuery"));
4227
4227
  return n = t.Schema_fromJson(n.$index(e, "request").$index(0, "schema")), n.setConnection$1(i.context.connection), t.Materialize_get_createMaterializedTableSql(n);
4228
4228
  },
4229
4229
  getSchemas_closure: function() {
@@ -4262,7 +4262,7 @@ select
4262
4262
  Exports: function() {
4263
4263
  },
4264
4264
  main() {
4265
- t.initializeTimeZones(), u.set$requestJsonToSql$x(w.exports, t.allowInterop(t.js_compiler__requestJsonToSql$closure())), u.set$getSchemas$x(w.exports, t.allowInterop(t.js_compiler__getSchemas$closure())), u.set$getMergeInfoSql$x(w.exports, t.allowInterop(t.js_compiler__getMergeInfoSql$closure())), u.set$getMergeSql$x(w.exports, t.allowInterop(t.js_compiler__getMergeSql$closure())), u.set$getClearTableSql$x(w.exports, t.allowInterop(t.js_compiler__getClearTableSql$closure())), u.set$getCreateMaterializedTableSql$x(w.exports, t.allowInterop(t.js_compiler__getCreateMaterializedTableSql$closure())), u.set$getVisualizationSchemas$x(w.exports, t.allowInterop(t.js_compiler__getVisualizationSchemas$closure())), u.set$getQueryRequests$x(w.exports, t.allowInterop(t.js_compiler__getQueryRequests$closure())), u.set$sqlResponsesToQueryResponses$x(w.exports, t.allowInterop(t.js_compiler__sqlResponsesToQueryResponses$closure()));
4265
+ t.initializeTimeZones(), u.set$requestJsonToSql$x(O.exports, t.allowInterop(t.js_compiler__requestJsonToSql$closure())), u.set$getSchemas$x(O.exports, t.allowInterop(t.js_compiler__getSchemas$closure())), u.set$getMergeInfoSql$x(O.exports, t.allowInterop(t.js_compiler__getMergeInfoSql$closure())), u.set$getMergeSql$x(O.exports, t.allowInterop(t.js_compiler__getMergeSql$closure())), u.set$getClearTableSql$x(O.exports, t.allowInterop(t.js_compiler__getClearTableSql$closure())), u.set$getCreateMaterializedTableSql$x(O.exports, t.allowInterop(t.js_compiler__getCreateMaterializedTableSql$closure())), u.set$getVisualizationSchemas$x(O.exports, t.allowInterop(t.js_compiler__getVisualizationSchemas$closure())), u.set$getQueryRequests$x(O.exports, t.allowInterop(t.js_compiler__getQueryRequests$closure())), u.set$sqlResponsesToQueryResponses$x(O.exports, t.allowInterop(t.js_compiler__sqlResponsesToQueryResponses$closure()));
4266
4266
  },
4267
4267
  _Exports: function() {
4268
4268
  },
@@ -4566,7 +4566,7 @@ select
4566
4566
  }, f.Location);
4567
4567
  },
4568
4568
  _deserializeLocation(r) {
4569
- var e, n, i, a, s = t.NativeByteData_NativeByteData$view(r.buffer, r.byteOffset, r.byteLength), o = s.getUint32(0, !1), l = s.getUint32(4, !1), D = s.getUint32(8, !1), d = s.getUint32(12, !1), c = s.getUint32(16, !1), p = s.getUint32(20, !1), y = s.getUint32(24, !1), g = s.getUint32(28, !1), m = _.C_AsciiCodec.decode$1(t.NativeUint8List_NativeUint8List$view(r.buffer, r.byteOffset + o, l)), h = t._setArrayType([], f.JSArray_String), E = t._setArrayType([], f.JSArray_TimeZone), C = f.JSArray_int, I = t._setArrayType([], C), F = t._setArrayType([], C), x = D + d;
4569
+ var e, n, i, a, s = t.NativeByteData_NativeByteData$view(r.buffer, r.byteOffset, r.byteLength), o = s.getUint32(0, !1), l = s.getUint32(4, !1), D = s.getUint32(8, !1), d = s.getUint32(12, !1), c = s.getUint32(16, !1), p = s.getUint32(20, !1), y = s.getUint32(24, !1), g = s.getUint32(28, !1), m = _.C_AsciiCodec.decode$1(t.NativeUint8List_NativeUint8List$view(r.buffer, r.byteOffset + o, l)), h = t._setArrayType([], f.JSArray_String), E = t._setArrayType([], f.JSArray_TimeZone), C = f.JSArray_int, I = t._setArrayType([], C), M = t._setArrayType([], C), x = D + d;
4570
4570
  for (e = D, n = e; e < x; ++e)
4571
4571
  r[e] === 0 && (C = r.buffer, i = r.byteOffset, C = new Uint8Array(C, i + n, e - n), h.push(_.C_AsciiCodec.decode$1(C)), n = e + 1);
4572
4572
  for (n = c, e = 0; e < p; ++e, n = a)
@@ -4574,8 +4574,8 @@ select
4574
4574
  for (n = y, e = 0; e < g; ++e)
4575
4575
  I.push(_.JSNumber_methods.toInt$0(s.getFloat64(n, !1)) * 1e3), n += 8;
4576
4576
  for (e = 0; e < g; ++e)
4577
- F.push(s.getUint8(n)), ++n;
4578
- return t.Location$(m, I, F, E);
4577
+ M.push(s.getUint8(n)), ++n;
4578
+ return t.Location$(m, I, M, E);
4579
4579
  }
4580
4580
  }, u = {
4581
4581
  makeDispatchRecord(r, e, n, i) {
@@ -8844,8 +8844,8 @@ Arguments: [` + D + "]";
8844
8844
  $signature: 1
8845
8845
  }, t.billSchema_closure.prototype = {
8846
8846
  call$1(r) {
8847
- var e = null, n = "seqNumber", i = "deliveryName", a = "isRefund", s = "isPickup", o = "isInHouseDelivery", l = "isDelivery", D = "completedAt", d = "integratedOrderId", c = "itemCount", p = "taxTotal", y = "discountTotal", g = "grossTotal", m = "rounding", h = "takeawayPrice", E = "thirdPartyExtraCharge", C = "deliveryFee", I = "nettTotal", F = "deliveryFeeWithTax", x = "deliveryFeeWithoutTax", M = "otherChargeWithTax", L = "otherChargeWithoutTax", O = "discountInclusiveTaxTotal";
8848
- return t._setArrayType([t.Field_Field$string(e, e, !1, !1, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", "_docId", e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$string("Values: COMPLETED, DRAFT, VOIDED, REFUNDED", e, !1, !1, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, e, !1, !1, !1, "No.", n, n, e, r), t.Field_Field$string("Dine-in table name/identifier", e, !1, !1, !1, "Table", "slot", "slot", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Delivery", i, i, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund ID", "refundFrom", "refundedFrom", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", a, a, e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "refundApprovedById", "refund.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "refundedById", "refund.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund user", "refundedByName", "refund.by.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund reason", "refundReason", "refund.reason", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member ID", "memberId", "membership.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member user ID", "memberUserId", "membership.userId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member name", "memberUserName", "membership.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Member birthday", "memberBirthday", "membership.birthday", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string("Order source. Values: FEEDME (POS), GRABFOOD, FOODPANDA, SHOPEEFOOD, etc.", e, !1, !1, !1, "Source", "source", "source", A.x28case_, r), t.Field_Field$string("Order type. Values: DINE IN, TAKEAWAY, PICKUP, DELIVERY, DRIVE THRU", e, !1, !1, !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)", r), t.Field_Field$bool(e, e, !0, !1, "Pickup", s, s, e, r), t.Field_Field$bool(e, e, !0, !1, "Is in house delivery", o, o, e, r), t.Field_Field$bool(e, e, !0, !1, "Is other delivery", l, l, e, r), t.Field_Field$bool(e, e, !0, !1, "Is takeaway", "isTakeaway", "is.takeaway", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Closed at", D, D, e, r), t.Field_Field$string(e, e, !0, !1, !1, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, r), t.Field_Field$string(e, e, !0, !1, !1, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, r), t.Field_Field$string(e, e, !0, !1, !1, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, r), t.Field_Field$string(e, e, !0, !1, !1, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, r), t.Field_Field$numeric("Number of guests. Negated for refund, 0 for voided", "IF(@status = 'VOIDED', 0, IFNULL(@pax,0)*IF(@isRefund, -1, 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)", r), t.Field_Field$string(e, e, !1, !1, !1, "Integrated order ID", d, d, e, r), t.Field_Field$numeric(e, A.IFNULLi, !0, !1, "Item count", c, c, A.COALESi, r), t.Field_Field$numeric(e, "IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !1, !1, "Tax", p, p, A.COALEStax, r), t.Field_Field$numeric(e, A.IFNULLdiT, !1, !1, "Discount", y, y, A.COALESdit, r), t.Field_Field$numeric(e, A.IFNULLg, !1, !1, "Item gross", g, g, A.COALESg, r), t.Field_Field$numeric(e, A.x28IFNULnI, !1, !1, "Bill gross", "billGrossTotal", e, A.x28COALEnC, r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, !1, "Rounding", m, m, A.COALESr, r), t.Field_Field$numeric(e, "IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, !1, "SST", "sstTotal", "nettTaxes.SST.total", A.COALESss, r), t.Field_Field$string(e, e, !0, !1, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, r), t.Field_Field$numeric(e, A.IFNULLs, !1, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", A.COALESse, r), t.Field_Field$string(e, e, !0, !1, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, r), t.Field_Field$numeric(e, A.x28IFNULo, !1, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", A.x28COALEo, r), t.Field_Field$numeric(e, A.x28IFNULgx2d, !1, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, A.x28COALEgx2d, r), t.Field_Field$numeric(e, A.IFNULLta, !1, !1, "Takeaway", h, h, A.COALEStak, r), t.Field_Field$numeric(e, A.IFNULLth, !1, !1, "Extra charge", E, E, A.COALESth, r), t.Field_Field$numeric(e, A.IFNULLde_, !1, !1, "Delivery fee", C, C, A.COALESdex2c, r), t.Field_Field$numeric(e, A.IFNULLn, !1, !1, "Nett", I, I, A.COALESn, r), t.Field_Field$numeric(e, A.x28IFNULgx2bd, !1, !1, "Item gross before charges", "grossBeforeCharges", e, A.x28COALEgx2bd, r), t.Field_Field$numeric(e, A.x28IFNULn_, !1, !1, "Bill gross before charges", "billGrossBeforeCharges", e, A.x28COALEn_, r), t.Field_Field$numeric(e, e, !1, !1, "Member Recency", "recency", e, A.MIN_EX, r), t.Field_Field$numeric(e, e, !1, !1, "Member frequency", "frequency", e, A.COUNT_, r), t.Field_Field$numeric(e, e, !1, !1, "Member monetary", "monetary", e, A.SUM__n, r), t.Field_Field$numeric(e, A.IFNULLdeWT, !1, !1, "Delivery fee with tax", F, F, A.COALESdex5f_, r), t.Field_Field$numeric(e, A.IFNULLdeWo, !1, !1, "Delivery fee without tax", x, x, A.COALESdex5fo, r), t.Field_Field$numeric(e, A.IFNULLoT, !1, !1, "Other charge with tax", M, M, A.COALESo_, r), t.Field_Field$numeric(e, A.IFNULLoo, !1, !1, "Other charge without tax", L, L, A.COALESoo, r), t.Field_Field$numeric("Bill duration in seconds from creation to completion", e, !1, !1, "Duration", "duration", e, A.EXTRAC, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant", "restaurantName", e, A.x28selecn, r), t.Field_Field$numeric(e, e, !1, !1, "Labour hour", "labourHour", e, A.x28selecS, r), t.Field_Field$string(e, e, !1, !1, !1, "Payments", "payments", e, A.x28selecstdn, r), t.Field_Field$string(e, e, !1, !1, !1, "Items", "items", e, A.x28selecstC, r), t.Field_Field$string(e, e, !1, !1, !1, "Discount reasons", "discountReasons", e, A.x28selecstda, r), t.Field_Field$numeric(e, A.IFNULLdiI, !1, !1, "Discount inc tax", O, O, A.COALESdii, r), t.Field_Field$string(e, e, !1, !1, !1, "Payment Summaries", "paymentSummaries", e, A.x28selecstdC, r), t.Field_Field$numeric(e, e, !1, !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)", r), t.Field_Field$numeric(e, e, !1, !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)", r), t.Field_Field$numeric("Bill count flag: 1 normal, -1 refund, 0 voided. Use SUM to count bills", "IF(@status = 'VOIDED', 0, IF(@isRefund, -1, 1))", !1, !1, "Table count", "tableCount", e, "(CASE WHEN @status = 'VOIDED' THEN 0 ELSE (CASE WHEN @is_refund THEN -1 ELSE 1 END) END)", r)], f.JSArray_Field);
8847
+ var e = null, n = "seqNumber", i = "deliveryName", a = "isRefund", s = "isPickup", o = "isInHouseDelivery", l = "isDelivery", D = "completedAt", d = "integratedOrderId", c = "itemCount", p = "taxTotal", y = "discountTotal", g = "grossTotal", m = "rounding", h = "takeawayPrice", E = "thirdPartyExtraCharge", C = "deliveryFee", I = "nettTotal", M = "deliveryFeeWithTax", x = "deliveryFeeWithoutTax", R = "otherChargeWithTax", L = "otherChargeWithoutTax", w = "discountInclusiveTaxTotal";
8848
+ return t._setArrayType([t.Field_Field$string(e, e, !1, !1, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", "_docId", e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$string("Values: COMPLETED, DRAFT, VOIDED, REFUNDED", e, !1, !1, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, e, !1, !1, !1, "No.", n, n, e, r), t.Field_Field$string("Dine-in table name/identifier", e, !1, !1, !1, "Table", "slot", "slot", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Delivery", i, i, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund ID", "refundFrom", "refundedFrom", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", a, a, e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "refundApprovedById", "refund.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "refundedById", "refund.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund user", "refundedByName", "refund.by.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund reason", "refundReason", "refund.reason", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member ID", "memberId", "membership.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member user ID", "memberUserId", "membership.userId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member name", "memberUserName", "membership.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Member birthday", "memberBirthday", "membership.birthday", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string("Order source. Values: FEEDME (POS), GRABFOOD, FOODPANDA, SHOPEEFOOD, etc.", e, !1, !1, !1, "Source", "source", "source", A.x28case_, r), t.Field_Field$string("Order type. Values: DINE IN, TAKEAWAY, PICKUP, DELIVERY, DRIVE THRU", e, !1, !1, !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)", r), t.Field_Field$bool(e, e, !0, !1, "Pickup", s, s, e, r), t.Field_Field$bool(e, e, !0, !1, "Is in house delivery", o, o, e, r), t.Field_Field$bool(e, e, !0, !1, "Is other delivery", l, l, e, r), t.Field_Field$bool(e, e, !0, !1, "Is takeaway", "isTakeaway", "is.takeaway", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Closed at", D, D, e, r), t.Field_Field$string(e, e, !0, !1, !1, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, r), t.Field_Field$string(e, e, !0, !1, !1, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, r), t.Field_Field$string(e, e, !0, !1, !1, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, r), t.Field_Field$string(e, e, !0, !1, !1, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, r), t.Field_Field$numeric("Number of guests. Negated for refund, 0 for voided", "IF(@status = 'VOIDED', 0, IFNULL(@pax,0)*IF(@isRefund, -1, 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)", r), t.Field_Field$string(e, e, !1, !1, !1, "Integrated order ID", d, d, e, r), t.Field_Field$numeric(e, A.IFNULLi, !0, !1, "Item count", c, c, A.COALESi, r), t.Field_Field$numeric(e, "IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !1, !1, "Tax", p, p, A.COALEStax, r), t.Field_Field$numeric(e, A.IFNULLdiT, !1, !1, "Discount", y, y, A.COALESdit, r), t.Field_Field$numeric(e, A.IFNULLg, !1, !1, "Item gross", g, g, A.COALESg, r), t.Field_Field$numeric(e, A.x28IFNULnI, !1, !1, "Bill gross", "billGrossTotal", e, A.x28COALEnC, r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, !1, "Rounding", m, m, A.COALESr, r), t.Field_Field$numeric(e, "IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, !1, "SST", "sstTotal", "nettTaxes.SST.total", A.COALESss, r), t.Field_Field$string(e, e, !0, !1, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, r), t.Field_Field$numeric(e, A.IFNULLs, !1, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", A.COALESse, r), t.Field_Field$string(e, e, !0, !1, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, r), t.Field_Field$numeric(e, A.x28IFNULo, !1, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", A.x28COALEo, r), t.Field_Field$numeric(e, A.x28IFNULgx2d, !1, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, A.x28COALEgx2d, r), t.Field_Field$numeric(e, A.IFNULLta, !1, !1, "Takeaway", h, h, A.COALEStak, r), t.Field_Field$numeric(e, A.IFNULLth, !1, !1, "Extra charge", E, E, A.COALESth, r), t.Field_Field$numeric(e, A.IFNULLde_, !1, !1, "Delivery fee", C, C, A.COALESdex2c, r), t.Field_Field$numeric(e, A.IFNULLn, !1, !1, "Nett", I, I, A.COALESn, r), t.Field_Field$numeric(e, A.x28IFNULgx2bd, !1, !1, "Item gross before charges", "grossBeforeCharges", e, A.x28COALEgx2bd, r), t.Field_Field$numeric(e, A.x28IFNULn_, !1, !1, "Bill gross before charges", "billGrossBeforeCharges", e, A.x28COALEn_, r), t.Field_Field$numeric(e, e, !1, !1, "Member Recency", "recency", e, A.MIN_EX, r), t.Field_Field$numeric(e, e, !1, !1, "Member frequency", "frequency", e, A.COUNT_, r), t.Field_Field$numeric(e, e, !1, !1, "Member monetary", "monetary", e, A.SUM__n, r), t.Field_Field$numeric(e, A.IFNULLdeWT, !1, !1, "Delivery fee with tax", M, M, A.COALESdex5f_, r), t.Field_Field$numeric(e, A.IFNULLdeWo, !1, !1, "Delivery fee without tax", x, x, A.COALESdex5fo, r), t.Field_Field$numeric(e, A.IFNULLoT, !1, !1, "Other charge with tax", R, R, A.COALESo_, r), t.Field_Field$numeric(e, A.IFNULLoo, !1, !1, "Other charge without tax", L, L, A.COALESoo, r), t.Field_Field$numeric("Bill duration in seconds from creation to completion", e, !1, !1, "Duration", "duration", e, A.EXTRAC, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant", "restaurantName", e, A.x28selecn, r), t.Field_Field$numeric(e, e, !1, !1, "Labour hour", "labourHour", e, A.x28selecS, r), t.Field_Field$string(e, e, !1, !1, !1, "Payments", "payments", e, A.x28selecstn, r), t.Field_Field$string(e, e, !1, !1, !1, "Items", "items", e, "(select string_agg(CONCAT(flatten_items.quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN flatten_items.code='' THEN NULL ELSE flatten_items.code END, flatten_items.name], ' ')), ',') from flatten_items where flatten_items.bill_id=@id and flatten_items.restaurant_id=@restaurant_id and flatten_items.layer=0 and flatten_items.status!='VOIDED')", r), t.Field_Field$string(e, e, !1, !1, !1, "Discount reasons", "discountReasons", e, A.x28selecsta, r), t.Field_Field$numeric(e, A.IFNULLdiI, !1, !1, "Discount inc tax", w, w, A.COALESdii, r), t.Field_Field$string(e, e, !1, !1, !1, "Payment Summaries", "paymentSummaries", e, A.x28selecstC, r), t.Field_Field$numeric(e, e, !1, !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)", r), t.Field_Field$numeric(e, e, !1, !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)", r), t.Field_Field$numeric("Bill count flag: 1 normal, -1 refund, 0 voided. Use SUM to count bills", "IF(@status = 'VOIDED', 0, IF(@isRefund, -1, 1))", !1, !1, "Table count", "tableCount", e, "(CASE WHEN @status = 'VOIDED' THEN 0 ELSE (CASE WHEN @is_refund THEN -1 ELSE 1 END) END)", r)], f.JSArray_Field);
8849
8849
  },
8850
8850
  $signature: 0
8851
8851
  }, t.billSchema_closure0.prototype = {
@@ -8972,8 +8972,8 @@ Arguments: [` + D + "]";
8972
8972
  $signature: 1
8973
8973
  }, t.completeTimeBillSchema_closure.prototype = {
8974
8974
  call$1(r) {
8975
- var e = null, n = "seqNumber", i = "deliveryName", a = "isRefund", s = "isPickup", o = "isInHouseDelivery", l = "isDelivery", D = "completedAt", d = "integratedOrderId", c = "itemCount", p = "taxTotal", y = "discountTotal", g = "grossTotal", m = "rounding", h = "takeawayPrice", E = "thirdPartyExtraCharge", C = "deliveryFee", I = "nettTotal", F = "deliveryFeeWithTax", x = "deliveryFeeWithoutTax", M = "otherChargeWithTax", L = "otherChargeWithoutTax", O = "discountInclusiveTaxTotal";
8976
- return t._setArrayType([t.Field_Field$string(e, e, !1, !1, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", "_docId", e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, e, !1, !1, !1, "No.", n, n, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Table", "slot", "slot", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Delivery", i, i, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund ID", "refundFrom", "refundedFrom", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", a, a, e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "refundApprovedById", "refund.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "refundedById", "refund.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund user", "refundedByName", "refund.by.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund reason", "refundReason", "refund.reason", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member ID", "memberId", "membership.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member user ID", "memberUserId", "membership.userId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member name", "memberUserName", "membership.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Member birthday", "memberBirthday", "membership.birthday", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Source", "source", "source", A.x28case_, r), t.Field_Field$string(e, e, !1, !1, !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)", r), t.Field_Field$bool(e, e, !0, !1, "Pickup", s, s, e, r), t.Field_Field$bool(e, e, !0, !1, "Is in house delivery", o, o, e, r), t.Field_Field$bool(e, e, !0, !1, "Is other delivery", l, l, e, r), t.Field_Field$bool(e, e, !0, !1, "Is takeaway", "isTakeaway", "is.takeaway", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Closed at", D, D, e, r), t.Field_Field$string(e, e, !0, !1, !1, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, r), t.Field_Field$string(e, e, !0, !1, !1, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, r), t.Field_Field$string(e, e, !0, !1, !1, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, r), t.Field_Field$string(e, e, !0, !1, !1, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, r), t.Field_Field$numeric(e, "IFNULL(@pax,0)*IF(@isRefund, -1, 1)", !1, !1, "Pax", "pax", "person", A.COALESp, r), t.Field_Field$string(e, e, !1, !1, !1, "Integrated order ID", d, d, e, r), t.Field_Field$numeric(e, A.IFNULLi, !0, !1, "Item count", c, c, A.COALESi, r), t.Field_Field$numeric(e, "IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !1, !1, "Tax", p, p, A.COALEStax, r), t.Field_Field$numeric(e, A.IFNULLdiT, !1, !1, "Discount", y, y, A.COALESdit, r), t.Field_Field$numeric(e, A.IFNULLg, !1, !1, "Item gross", g, g, A.COALESg, r), t.Field_Field$numeric(e, A.x28IFNULnI, !1, !1, "Bill gross", "billGrossTotal", e, A.x28COALEnC, r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, !1, "Rounding", m, m, A.COALESr, r), t.Field_Field$numeric(e, "IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, !1, "SST", "sstTotal", "nettTaxes.SST.total", A.COALESss, r), t.Field_Field$string(e, e, !0, !1, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, r), t.Field_Field$numeric(e, A.IFNULLs, !1, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", A.COALESse, r), t.Field_Field$string(e, e, !0, !1, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, r), t.Field_Field$numeric(e, A.x28IFNULo, !1, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", A.x28COALEo, r), t.Field_Field$numeric(e, A.x28IFNULgx2d, !1, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, A.x28COALEgx2d, r), t.Field_Field$numeric(e, A.IFNULLta, !1, !1, "Takeaway", h, h, A.COALEStak, r), t.Field_Field$numeric(e, A.IFNULLth, !1, !1, "Extra charge", E, E, A.COALESth, r), t.Field_Field$numeric(e, A.IFNULLde_, !1, !1, "Delivery fee", C, C, A.COALESdex2c, r), t.Field_Field$numeric(e, A.IFNULLn, !1, !1, "Nett", I, I, A.COALESn, r), t.Field_Field$numeric(e, A.x28IFNULgx2bd, !1, !1, "Item gross before charges", "grossBeforeCharges", e, A.x28COALEgx2bd, r), t.Field_Field$numeric(e, A.x28IFNULn_, !1, !1, "Bill gross before charges", "billGrossBeforeCharges", e, A.x28COALEn_, r), t.Field_Field$numeric(e, e, !1, !1, "Member Recency", "recency", e, A.MIN_EX, r), t.Field_Field$numeric(e, e, !1, !1, "Member frequency", "frequency", e, A.COUNT_, r), t.Field_Field$numeric(e, e, !1, !1, "Member monetary", "monetary", e, A.SUM__n, r), t.Field_Field$numeric(e, A.IFNULLdeWT, !1, !1, "Delivery fee with tax", F, F, A.COALESdex5f_, r), t.Field_Field$numeric(e, A.IFNULLdeWo, !1, !1, "Delivery fee without tax", x, x, A.COALESdex5fo, r), t.Field_Field$numeric(e, A.IFNULLoT, !1, !1, "Other charge with tax", M, M, A.COALESo_, r), t.Field_Field$numeric(e, A.IFNULLoo, !1, !1, "Other charge without tax", L, L, A.COALESoo, r), t.Field_Field$numeric(e, e, !1, !1, "Duration", "duration", e, A.EXTRAC, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant", "restaurantName", e, A.x28selecn, r), t.Field_Field$numeric(e, e, !1, !1, "Labour hour", "labourHour", e, A.x28selecS, r), t.Field_Field$string(e, e, !1, !1, !1, "Payments", "payments", e, A.x28selecstdn, r), t.Field_Field$string(e, e, !1, !1, !1, "Items", "items", e, A.x28selecstC, r), t.Field_Field$string(e, e, !1, !1, !1, "Discount reasons", "discountReasons", e, A.x28selecstda, r), t.Field_Field$numeric(e, A.IFNULLdiI, !1, !1, "Discount inc tax", O, O, A.COALESdii, r), t.Field_Field$string(e, e, !1, !1, !1, "Payment Summaries", "paymentSummaries", e, A.x28selecstdC, r)], f.JSArray_Field);
8975
+ var e = null, n = "seqNumber", i = "deliveryName", a = "isRefund", s = "isPickup", o = "isInHouseDelivery", l = "isDelivery", D = "completedAt", d = "integratedOrderId", c = "itemCount", p = "taxTotal", y = "discountTotal", g = "grossTotal", m = "rounding", h = "takeawayPrice", E = "thirdPartyExtraCharge", C = "deliveryFee", I = "nettTotal", M = "deliveryFeeWithTax", x = "deliveryFeeWithoutTax", R = "otherChargeWithTax", L = "otherChargeWithoutTax", w = "discountInclusiveTaxTotal";
8976
+ return t._setArrayType([t.Field_Field$string(e, e, !1, !1, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", "_docId", e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, e, !1, !1, !1, "No.", n, n, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Table", "slot", "slot", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Delivery", i, i, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund ID", "refundFrom", "refundedFrom", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", a, a, e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "refundApprovedById", "refund.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "refundedById", "refund.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund user", "refundedByName", "refund.by.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund reason", "refundReason", "refund.reason", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member ID", "memberId", "membership.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member user ID", "memberUserId", "membership.userId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member name", "memberUserName", "membership.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Member birthday", "memberBirthday", "membership.birthday", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Source", "source", "source", A.x28case_, r), t.Field_Field$string(e, e, !1, !1, !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)", r), t.Field_Field$bool(e, e, !0, !1, "Pickup", s, s, e, r), t.Field_Field$bool(e, e, !0, !1, "Is in house delivery", o, o, e, r), t.Field_Field$bool(e, e, !0, !1, "Is other delivery", l, l, e, r), t.Field_Field$bool(e, e, !0, !1, "Is takeaway", "isTakeaway", "is.takeaway", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Closed at", D, D, e, r), t.Field_Field$string(e, e, !0, !1, !1, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, r), t.Field_Field$string(e, e, !0, !1, !1, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, r), t.Field_Field$string(e, e, !0, !1, !1, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, r), t.Field_Field$string(e, e, !0, !1, !1, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, r), t.Field_Field$numeric(e, "IFNULL(@pax,0)*IF(@isRefund, -1, 1)", !1, !1, "Pax", "pax", "person", A.COALESp, r), t.Field_Field$string(e, e, !1, !1, !1, "Integrated order ID", d, d, e, r), t.Field_Field$numeric(e, A.IFNULLi, !0, !1, "Item count", c, c, A.COALESi, r), t.Field_Field$numeric(e, "IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !1, !1, "Tax", p, p, A.COALEStax, r), t.Field_Field$numeric(e, A.IFNULLdiT, !1, !1, "Discount", y, y, A.COALESdit, r), t.Field_Field$numeric(e, A.IFNULLg, !1, !1, "Item gross", g, g, A.COALESg, r), t.Field_Field$numeric(e, A.x28IFNULnI, !1, !1, "Bill gross", "billGrossTotal", e, A.x28COALEnC, r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, !1, "Rounding", m, m, A.COALESr, r), t.Field_Field$numeric(e, "IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, !1, "SST", "sstTotal", "nettTaxes.SST.total", A.COALESss, r), t.Field_Field$string(e, e, !0, !1, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, r), t.Field_Field$numeric(e, A.IFNULLs, !1, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", A.COALESse, r), t.Field_Field$string(e, e, !0, !1, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, r), t.Field_Field$numeric(e, A.x28IFNULo, !1, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", A.x28COALEo, r), t.Field_Field$numeric(e, A.x28IFNULgx2d, !1, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, A.x28COALEgx2d, r), t.Field_Field$numeric(e, A.IFNULLta, !1, !1, "Takeaway", h, h, A.COALEStak, r), t.Field_Field$numeric(e, A.IFNULLth, !1, !1, "Extra charge", E, E, A.COALESth, r), t.Field_Field$numeric(e, A.IFNULLde_, !1, !1, "Delivery fee", C, C, A.COALESdex2c, r), t.Field_Field$numeric(e, A.IFNULLn, !1, !1, "Nett", I, I, A.COALESn, r), t.Field_Field$numeric(e, A.x28IFNULgx2bd, !1, !1, "Item gross before charges", "grossBeforeCharges", e, A.x28COALEgx2bd, r), t.Field_Field$numeric(e, A.x28IFNULn_, !1, !1, "Bill gross before charges", "billGrossBeforeCharges", e, A.x28COALEn_, r), t.Field_Field$numeric(e, e, !1, !1, "Member Recency", "recency", e, A.MIN_EX, r), t.Field_Field$numeric(e, e, !1, !1, "Member frequency", "frequency", e, A.COUNT_, r), t.Field_Field$numeric(e, e, !1, !1, "Member monetary", "monetary", e, A.SUM__n, r), t.Field_Field$numeric(e, A.IFNULLdeWT, !1, !1, "Delivery fee with tax", M, M, A.COALESdex5f_, r), t.Field_Field$numeric(e, A.IFNULLdeWo, !1, !1, "Delivery fee without tax", x, x, A.COALESdex5fo, r), t.Field_Field$numeric(e, A.IFNULLoT, !1, !1, "Other charge with tax", R, R, A.COALESo_, r), t.Field_Field$numeric(e, A.IFNULLoo, !1, !1, "Other charge without tax", L, L, A.COALESoo, r), t.Field_Field$numeric(e, e, !1, !1, "Duration", "duration", e, A.EXTRAC, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant", "restaurantName", e, A.x28selecn, r), t.Field_Field$numeric(e, e, !1, !1, "Labour hour", "labourHour", e, A.x28selecS, r), t.Field_Field$string(e, e, !1, !1, !1, "Payments", "payments", e, A.x28selecstn, r), t.Field_Field$string(e, e, !1, !1, !1, "Items", "items", e, "(select string_agg(CONCAT(flatten_items.quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN flatten_items.code='' THEN NULL ELSE flatten_items.code END, flatten_items.name], ' ')), ',') from flatten_items where flatten_items.bill_id=@id and flatten_items.restaurant_id=@restaurant_id and flatten_items.layer=0)", r), t.Field_Field$string(e, e, !1, !1, !1, "Discount reasons", "discountReasons", e, A.x28selecsta, r), t.Field_Field$numeric(e, A.IFNULLdiI, !1, !1, "Discount inc tax", w, w, A.COALESdii, r), t.Field_Field$string(e, e, !1, !1, !1, "Payment Summaries", "paymentSummaries", e, A.x28selecstC, r)], f.JSArray_Field);
8977
8977
  },
8978
8978
  $signature: 0
8979
8979
  }, t.completeTimeBillSchema_closure0.prototype = {
@@ -9030,10 +9030,10 @@ Arguments: [` + D + "]";
9030
9030
  $signature: 1
9031
9031
  }, t.flattenItemSchema_closure.prototype = {
9032
9032
  call$1(r) {
9033
- var e = null, n = "itemCreatedAt", i = "billCompletedAt", a = "perXUnit", s = "takeawayId", o = "takeawayName", l = "productId", D = "isRefund", d = "servedAt", c = "isTakeaway", p = "quantity", y = "unitQuantity", g = "billAdjustmentTotal", m = "itemAdjustmentTotal", h = "grossTotal", E = "takeawayPrice", C = "nettTotal", I = "layerNettTotal", F = "layerBillAdjustmentTotal", x = "layerItemAdjustmentTotal", M = "layerGrossTotal", L = "layerTakeawayPrice", O = "layerTaxTotal", v = "layerScTotal", H = "layerOtherChargeTotal", j = "customAttributes", c0 = "layerZeroParentId", m0 = "collectedAt", a0 = "subCategories", h0 = "billAdjustmentInclusiveTaxTotal", b0 = "itemAdjustmentInclusiveTaxTotal", M0 = "layerBillAdjustmentInclusiveTaxTotal", R0 = "layerItemAdjustmentInclusiveTaxTotal", A0 = "billAdjustmentExclusiveTaxTotal", I0 = "itemAdjustmentExclusiveTaxTotal", x0 = "layerBillAdjustmentExclusiveTaxTotal", F0 = "layerItemAdjustmentExclusiveTaxTotal";
9033
+ var e = null, n = "itemCreatedAt", i = "billCompletedAt", a = "perXUnit", s = "takeawayId", o = "takeawayName", l = "productId", D = "isRefund", d = "servedAt", c = "isTakeaway", p = "quantity", y = "unitQuantity", g = "billAdjustmentTotal", m = "itemAdjustmentTotal", h = "grossTotal", E = "takeawayPrice", C = "nettTotal", I = "layerNettTotal", M = "layerBillAdjustmentTotal", x = "layerItemAdjustmentTotal", R = "layerGrossTotal", L = "layerTakeawayPrice", w = "layerTaxTotal", v = "layerScTotal", N = "layerOtherChargeTotal", K = "customAttributes", c0 = "layerZeroParentId", m0 = "collectedAt", u0 = "subCategories", h0 = "billAdjustmentInclusiveTaxTotal", I0 = "itemAdjustmentInclusiveTaxTotal", x0 = "layerBillAdjustmentInclusiveTaxTotal", L0 = "layerItemAdjustmentInclusiveTaxTotal", A0 = "billAdjustmentExclusiveTaxTotal", F0 = "itemAdjustmentExclusiveTaxTotal", O0 = "layerBillAdjustmentExclusiveTaxTotal", M0 = "layerItemAdjustmentExclusiveTaxTotal";
9034
9034
  return t._setArrayType([t.Field_Field$string(e, e, !1, !1, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", "_docId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Item time", n, n, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Bill close time", i, i, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Bill ID", "billId", "billId", e, r), t.Field_Field$string("Values: DRAFT, VOIDED, SENT. DRAFT and SENT both considered valid sales.", e, !1, !1, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, e, !1, !1, !0, "Name", "name", "name", e, r), t.Field_Field$numeric(e, e, !1, !1, "Per unit", a, a, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Unit", "unit", "unit", e, r), t.Field_Field$string(e, `IF(@categoryName IS NULL OR @productId IS NULL OR REGEXP_CONTAINS(@productId, r'^\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)$'), 'Other', @categoryName)
9035
9035
  `, !1, !1, !0, "Category", "categoryName", "category", `CASE WHEN @category_name IS NULL OR @product_id IS NULL OR @product_id ~ '^\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)$' THEN 'Other' ELSE @category_name END
9036
- `, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway ID", s, s, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway name", o, o, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Code", "code", "code", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Product ID", l, l, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant ID", "variantId", "variant.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant", "variantName", "variant.name", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", D, D, e, r), t.Field_Field$string(e, e, !1, !1, !1, "User id", "createdById", "createdBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "User", "createdByName", "createdBy.name", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Sent time", "sentAt", "sentAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Served time", d, d, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Printed time", "printedAt", "printBy.printAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Void time", "voidAt", "void.voidAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void reason", "voidReason", "void.reason", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidedById", "void.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void user", "voidedByName", "void.by.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidApprovedById", "void.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", e, r), t.Field_Field$bool(e, e, !0, !1, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", e, r), t.Field_Field$bool(e, e, !0, !1, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", e, r), t.Field_Field$bool(e, e, !1, !1, "Takeaway", c, c, e, r), t.Field_Field$numeric(e, "@quantity*IF(@isRefund, -1, 1)", !1, !1, "Qty", p, p, A.x40quant, r), t.Field_Field$numeric(e, "@unitQuantity*IF(@isRefund, -1, 1)", !1, !1, "Unit qty", y, y, A.x40unit_, r), t.Field_Field$numeric(e, "@sstTotal*IF(@isRefund, -1, 1)", !1, !1, "SST", "sstTotal", "sst.total", A.x40sst_t, r), t.Field_Field$numeric(e, e, !0, !1, "SST %", "sstPercentage", "sst.percentage", e, r), t.Field_Field$numeric(e, e, !0, !1, "SC %", "serviceChargePercentage", "sc.percentage", e, r), t.Field_Field$numeric(e, "@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "SC", "serviceChargeTotal", "sc.total", A.x40servi, r), t.Field_Field$numeric(e, "@otherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Other charge", "otherChargeTotal", "otherCharge.total", A.x40other, r), t.Field_Field$numeric(e, A.x40billA, !1, !1, "Bill discount", g, g, A.x40bill_, r), t.Field_Field$numeric(e, A.x40itemA, !1, !1, "Item discount", m, m, A.x40item_, r), t.Field_Field$numeric(e, "@grossTotal*IF(@isRefund, -1, 1)", !1, !1, "Gross", h, h, A.x40gross, r), t.Field_Field$numeric(e, A.x28_grosT, !1, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, A.x28_gros_, r), t.Field_Field$numeric(e, "@takeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Takeaway price", E, E, A.x40takea, r), t.Field_Field$numeric(e, "@nettTotal*IF(@isRefund, -1, 1)", !1, !1, "Nett", C, C, A.x40nett_, r), t.Field_Field$string(e, e, !1, !1, !1, "Parent ID", "parentId", "parent.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Parent name", "parentName", "parent.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Addon type", "addonType", "addon.type", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Addon ID", "addonId", "addon.selectionId", e, r), t.Field_Field$string(e, "SPLIT(@addonId, '/')[OFFSET(0)]", !1, !1, !1, "Group ID", "groupId", e, "SPLIT_PART(@addon_id, '/',1)", r), t.Field_Field$numeric("Item depth: 0 = main item. 1+ = addon/modifier level. -1 = bill level modifier, usually not consider item sales.", e, !1, !1, "Layer", "layer", "layer", e, r), t.Field_Field$numeric(e, "@addonPrice*IF(@isRefund, -1, 1)", !1, !1, "Addon price", "addonPrice", "addon.price", A.x40addon, r), t.Field_Field$numeric(e, "@taxTotal*IF(@isRefund, -1, 1)", !1, !1, "Tax", "taxTotal", "tax.total", "@tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, A.x28IFNULb, !1, !1, "Discount", "discountTotal", e, A.x28COALEb, r), t.Field_Field$numeric(e, A.x28IFNULgx2bb, !1, !1, "Gross before charges", "grossBeforeCharges", e, A.x28COALEgx2bb, r), t.Field_Field$string(e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING([IF(@code='', NULL, @code), @name], ' '))", !1, !1, !1, "Summary", "summary", e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN @code='' THEN NULL ELSE @code END, @name], ' '))", r), t.Field_Field$numeric(e, "@layerNettTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer nett", I, I, "@layer_nett_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount", F, F, "@layer_bill_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount", x, x, "@layer_item_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerGrossTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer gross total", M, M, "@layer_gross_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerTakeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Layer takeaway price", L, L, "@layer_takeaway_price*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer tax total", O, O, "@layer_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerScTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer sc", v, v, "@layer_sc_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerOtherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer other charge", H, H, "@layer_other_charge_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "(IFNULL(@layerGrossTotal,0)+IFNULL(@layerBillAdjustmentTotal,0)+IFNULL(@layerItemAdjustmentTotal,0))*IF(@isRefund, -1, 1)", !1, !1, "Layer gross before charges", "layerGrossBeforeCharges", e, "(COALESCE(@layer_gross_total,0)+COALESCE(@layer_bill_adjustment_total,0)+COALESCE(@layer_item_adjustment_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$string(e, e, !1, !1, !1, "Custom attributes", j, j, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent ID", c0, c0, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Charge variant", "chargeVariant", e, "(select variant from charges where charges.parent_id=@layer_zero_parent_id and charges.restaurant_id=@restaurant_id and charges.bill_id=@bill_id and charges.code != 'SERVICE_CHARGE')", r), t.Field_Field$timestamp(e, e, !1, !1, "Collected time", m0, m0, e, r), t.Field_Field$numeric(e, e, !1, !1, "Costing", "costing", "costing", e, r), t.Field_Field$numeric(e, "ROUND(TIMESTAMP_DIFF(IFNULL(@servedAt, CURRENT_TIMESTAMP), @sentAt, SECOND),0)", !1, !1, "Preparation seconds", "preparationSeconds", e, "ROUND(EXTRACT(EPOCH FROM AGE(COALESCE(@served_at, CURRENT_TIMESTAMP),@sent_at)),0)", r), t.Field_Field$numeric("Computed: nett total minus costing", "(@nettTotal-coalesce(@costing, 0))", !1, !1, "Profit", "profit", e, "(@nett_total-coalesce(@costing, 0))", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent name", "layerZeroParentName", e, "(select name from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent code", "layerZeroParentCode", e, "(select code from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent category", "layerZeroParentCategory", e, "(select category_name from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Sub categories", a0, a0, e, r), t.Field_Field$numeric(e, "@billAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Bill discount inc tax", h0, h0, "@bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@itemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Item discount inc tax", b0, b0, "@item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount inc tax", M0, M0, "@layer_bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount inc tax", R0, R0, "@layer_item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@billAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Bill discount exc tax", A0, A0, "@bill_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@itemAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Item discount exc tax", I0, I0, "@item_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount exc tax", x0, x0, "@layer_bill_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount exc tax", F0, F0, "@layer_item_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r)], f.JSArray_Field);
9036
+ `, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway ID", s, s, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway name", o, o, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Code", "code", "code", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Product ID", l, l, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant ID", "variantId", "variant.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant", "variantName", "variant.name", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", D, D, e, r), t.Field_Field$string(e, e, !1, !1, !1, "User id", "createdById", "createdBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "User", "createdByName", "createdBy.name", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Sent time", "sentAt", "sentAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Served time", d, d, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Printed time", "printedAt", "printBy.printAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Void time", "voidAt", "void.voidAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void reason", "voidReason", "void.reason", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidedById", "void.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void user", "voidedByName", "void.by.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidApprovedById", "void.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", e, r), t.Field_Field$bool(e, e, !0, !1, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", e, r), t.Field_Field$bool(e, e, !0, !1, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", e, r), t.Field_Field$bool(e, e, !1, !1, "Takeaway", c, c, e, r), t.Field_Field$numeric(e, "@quantity*IF(@isRefund, -1, 1)", !1, !1, "Qty", p, p, A.x40quant, r), t.Field_Field$numeric(e, "@unitQuantity*IF(@isRefund, -1, 1)", !1, !1, "Unit qty", y, y, A.x40unit_, r), t.Field_Field$numeric(e, "@sstTotal*IF(@isRefund, -1, 1)", !1, !1, "SST", "sstTotal", "sst.total", A.x40sst_t, r), t.Field_Field$numeric(e, e, !0, !1, "SST %", "sstPercentage", "sst.percentage", e, r), t.Field_Field$numeric(e, e, !0, !1, "SC %", "serviceChargePercentage", "sc.percentage", e, r), t.Field_Field$numeric(e, "@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "SC", "serviceChargeTotal", "sc.total", A.x40servi, r), t.Field_Field$numeric(e, "@otherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Other charge", "otherChargeTotal", "otherCharge.total", A.x40other, r), t.Field_Field$numeric(e, A.x40billA, !1, !1, "Bill discount", g, g, A.x40bill_, r), t.Field_Field$numeric(e, A.x40itemA, !1, !1, "Item discount", m, m, A.x40item_, r), t.Field_Field$numeric(e, "@grossTotal*IF(@isRefund, -1, 1)", !1, !1, "Gross", h, h, A.x40gross, r), t.Field_Field$numeric(e, A.x28_grosT, !1, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, A.x28_gros_, r), t.Field_Field$numeric(e, "@takeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Takeaway price", E, E, A.x40takea, r), t.Field_Field$numeric(e, "@nettTotal*IF(@isRefund, -1, 1)", !1, !1, "Nett", C, C, A.x40nett_, r), t.Field_Field$string(e, e, !1, !1, !1, "Parent ID", "parentId", "parent.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Parent name", "parentName", "parent.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Addon type", "addonType", "addon.type", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Addon ID", "addonId", "addon.selectionId", e, r), t.Field_Field$string(e, "SPLIT(@addonId, '/')[OFFSET(0)]", !1, !1, !1, "Group ID", "groupId", e, "SPLIT_PART(@addon_id, '/',1)", r), t.Field_Field$numeric("Item depth: 0 = main item. 1+ = addon/modifier level. -1 = bill level modifier, usually not consider item sales.", e, !1, !1, "Layer", "layer", "layer", e, r), t.Field_Field$numeric(e, "@addonPrice*IF(@isRefund, -1, 1)", !1, !1, "Addon price", "addonPrice", "addon.price", A.x40addon, r), t.Field_Field$numeric(e, "@taxTotal*IF(@isRefund, -1, 1)", !1, !1, "Tax", "taxTotal", "tax.total", "@tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, A.x28IFNULb, !1, !1, "Discount", "discountTotal", e, A.x28COALEb, r), t.Field_Field$numeric(e, A.x28IFNULgx2bb, !1, !1, "Gross before charges", "grossBeforeCharges", e, A.x28COALEgx2bb, r), t.Field_Field$string(e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING([IF(@code='', NULL, @code), @name], ' '))", !1, !1, !1, "Summary", "summary", e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN @code='' THEN NULL ELSE @code END, @name], ' '))", r), t.Field_Field$numeric(e, "@layerNettTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer nett", I, I, "@layer_nett_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount", M, M, "@layer_bill_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount", x, x, "@layer_item_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerGrossTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer gross total", R, R, "@layer_gross_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerTakeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Layer takeaway price", L, L, "@layer_takeaway_price*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer tax total", w, w, "@layer_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerScTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer sc", v, v, "@layer_sc_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerOtherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer other charge", N, N, "@layer_other_charge_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "(IFNULL(@layerGrossTotal,0)+IFNULL(@layerBillAdjustmentTotal,0)+IFNULL(@layerItemAdjustmentTotal,0))*IF(@isRefund, -1, 1)", !1, !1, "Layer gross before charges", "layerGrossBeforeCharges", e, "(COALESCE(@layer_gross_total,0)+COALESCE(@layer_bill_adjustment_total,0)+COALESCE(@layer_item_adjustment_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$string(e, e, !1, !1, !1, "Custom attributes", K, K, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent ID", c0, c0, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Charge variant", "chargeVariant", e, "(select variant from charges where charges.parent_id=@layer_zero_parent_id and charges.restaurant_id=@restaurant_id and charges.bill_id=@bill_id and charges.code != 'SERVICE_CHARGE')", r), t.Field_Field$timestamp(e, e, !1, !1, "Collected time", m0, m0, e, r), t.Field_Field$numeric(e, e, !1, !1, "Costing", "costing", "costing", e, r), t.Field_Field$numeric(e, "ROUND(TIMESTAMP_DIFF(IFNULL(@servedAt, CURRENT_TIMESTAMP), @sentAt, SECOND),0)", !1, !1, "Preparation seconds", "preparationSeconds", e, "ROUND(EXTRACT(EPOCH FROM AGE(COALESCE(@served_at, CURRENT_TIMESTAMP),@sent_at)),0)", r), t.Field_Field$numeric("Computed: nett total minus costing", "(@nettTotal-coalesce(@costing, 0))", !1, !1, "Profit", "profit", e, "(@nett_total-coalesce(@costing, 0))", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent name", "layerZeroParentName", e, "(select name from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent code", "layerZeroParentCode", e, "(select code from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent category", "layerZeroParentCategory", e, "(select category_name from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Sub categories", u0, u0, e, r), t.Field_Field$numeric(e, "@billAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Bill discount inc tax", h0, h0, "@bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@itemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Item discount inc tax", I0, I0, "@item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount inc tax", x0, x0, "@layer_bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount inc tax", L0, L0, "@layer_item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@billAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Bill discount exc tax", A0, A0, "@bill_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@itemAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Item discount exc tax", F0, F0, "@item_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount exc tax", O0, O0, "@layer_bill_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount exc tax", M0, M0, "@layer_item_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r)], f.JSArray_Field);
9037
9037
  },
9038
9038
  $signature: 0
9039
9039
  }, t.flattenItemSchema_closure0.prototype = {
@@ -9510,8 +9510,8 @@ limit 1) when @tier is null then null else @tier::numeric end)`, r), t.Field_Fie
9510
9510
  $signature: 1
9511
9511
  }, t.refundBillSchema_closure.prototype = {
9512
9512
  call$1(r) {
9513
- var e = null, n = "seqNumber", i = "deliveryName", a = "isRefund", s = "isPickup", o = "isInHouseDelivery", l = "isDelivery", D = "Takeaway", d = "completedAt", c = "integratedOrderId", p = "itemCount", y = "taxTotal", g = "discountTotal", m = "grossTotal", h = "rounding", E = "takeawayPrice", C = "thirdPartyExtraCharge", I = "deliveryFee", F = "nettTotal";
9514
- return t._setArrayType([t.Field_Field$string(e, "_", !1, !1, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", "_docId", e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, e, !1, !1, !1, "No.", n, n, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Table", "slot", "slot", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Delivery", i, i, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund ID", "refundFrom", "refundedFrom", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", a, a, e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "refundApprovedById", "refund.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "refundedById", "refund.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund user", "refundedByName", "refund.by.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund reason", "refundReason", "refund.reason", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member ID", "memberId", "membership.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member user ID", "memberUserId", "membership.userId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member name", "memberUserName", "membership.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Member birthday", "memberBirthday", "membership.birthday", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Source", "source", "source", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Type", "type", "type", e, r), t.Field_Field$bool(e, e, !1, !1, "Pickup", s, s, e, r), t.Field_Field$bool(e, e, !1, !1, "Is in house delivery", o, o, e, r), t.Field_Field$bool(e, e, !1, !1, "Is other delivery", l, l, e, r), t.Field_Field$bool(e, e, !1, !1, D, "isTakeaway", "is.takeaway", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Closed at", d, d, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, r), t.Field_Field$string(e, e, !1, !1, !1, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, r), t.Field_Field$string(e, e, !1, !1, !1, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, r), t.Field_Field$numeric(e, "IFNULL(@pax,0)*IF(@isRefund, -1, 1)", !1, !1, "Pax", "pax", "person", A.COALESp, r), t.Field_Field$string(e, e, !1, !1, !1, "Integrated order ID", c, c, e, r), t.Field_Field$numeric(e, A.IFNULLi, !0, !1, "Item count", p, p, A.COALESi, r), t.Field_Field$numeric(e, "IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !0, !1, e, y, y, A.COALEStax, r), t.Field_Field$numeric(e, A.IFNULLdiT, !1, !1, "Discount", g, g, A.COALESdit, r), t.Field_Field$numeric(e, A.IFNULLg, !1, !1, "Gross", m, m, A.COALESg, r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, !1, "Rounding", h, h, A.COALESr, r), t.Field_Field$numeric(e, "IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !1, !1, "SST", "sstTotal", "nettTaxes.SST.total", A.COALESss, r), t.Field_Field$string(e, e, !1, !1, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, r), t.Field_Field$numeric(e, A.IFNULLs, !1, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", A.COALESse, r), t.Field_Field$string(e, e, !1, !1, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, r), t.Field_Field$numeric(e, A.x28IFNULo, !1, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", A.x28COALEo, r), t.Field_Field$numeric(e, A.x28IFNULgx2d, !1, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, A.x28COALEgx2d, r), t.Field_Field$numeric(e, A.IFNULLta, !1, !1, D, E, E, A.COALEStak, r), t.Field_Field$numeric(e, A.IFNULLth, !1, !1, "Extra charge", C, C, A.COALESth, r), t.Field_Field$numeric(e, A.IFNULLde_, !1, !1, "Delivery fee", I, I, A.COALESdex2c, r), t.Field_Field$numeric(e, A.IFNULLn, !1, !1, "Nett", F, F, A.COALESn, r), t.Field_Field$numeric(e, "IFNULL(@grossTotal,0)*IF(@isRefund, -1, 1)+IFNULL(@deliveryFee,0)*IF(@isRefund, -1, 1)+IFNULL(@discountTotal,0)*IF(@isRefund, -1, 1)", !1, !1, "Gross before charges", "grossBeforeCharges", e, "COALESCE(@gross_total,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END+COALESCE(@delivery_fee,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END+COALESCE(@discount_total,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, e, !1, !1, "Member Recency", "recency", e, A.MIN_EX, r), t.Field_Field$numeric(e, e, !1, !1, "Member frequency", "frequency", e, A.COUNT_, r), t.Field_Field$numeric(e, e, !1, !1, "Member monetary", "monetary", e, A.SUM__n, r)], f.JSArray_Field);
9513
+ var e = null, n = "seqNumber", i = "deliveryName", a = "isRefund", s = "isPickup", o = "isInHouseDelivery", l = "isDelivery", D = "Takeaway", d = "completedAt", c = "integratedOrderId", p = "itemCount", y = "taxTotal", g = "discountTotal", m = "grossTotal", h = "rounding", E = "takeawayPrice", C = "thirdPartyExtraCharge", I = "deliveryFee", M = "nettTotal";
9514
+ return t._setArrayType([t.Field_Field$string(e, "_", !1, !1, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", "_docId", e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, e, !1, !1, !1, "No.", n, n, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Table", "slot", "slot", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Delivery", i, i, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund ID", "refundFrom", "refundedFrom", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", a, a, e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "refundApprovedById", "refund.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "refundedById", "refund.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund user", "refundedByName", "refund.by.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund reason", "refundReason", "refund.reason", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member ID", "memberId", "membership.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member user ID", "memberUserId", "membership.userId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member name", "memberUserName", "membership.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Member birthday", "memberBirthday", "membership.birthday", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Source", "source", "source", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Type", "type", "type", e, r), t.Field_Field$bool(e, e, !1, !1, "Pickup", s, s, e, r), t.Field_Field$bool(e, e, !1, !1, "Is in house delivery", o, o, e, r), t.Field_Field$bool(e, e, !1, !1, "Is other delivery", l, l, e, r), t.Field_Field$bool(e, e, !1, !1, D, "isTakeaway", "is.takeaway", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Closed at", d, d, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, r), t.Field_Field$string(e, e, !1, !1, !1, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, r), t.Field_Field$string(e, e, !1, !1, !1, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, r), t.Field_Field$numeric(e, "IFNULL(@pax,0)*IF(@isRefund, -1, 1)", !1, !1, "Pax", "pax", "person", A.COALESp, r), t.Field_Field$string(e, e, !1, !1, !1, "Integrated order ID", c, c, e, r), t.Field_Field$numeric(e, A.IFNULLi, !0, !1, "Item count", p, p, A.COALESi, r), t.Field_Field$numeric(e, "IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !0, !1, e, y, y, A.COALEStax, r), t.Field_Field$numeric(e, A.IFNULLdiT, !1, !1, "Discount", g, g, A.COALESdit, r), t.Field_Field$numeric(e, A.IFNULLg, !1, !1, "Gross", m, m, A.COALESg, r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, !1, "Rounding", h, h, A.COALESr, r), t.Field_Field$numeric(e, "IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !1, !1, "SST", "sstTotal", "nettTaxes.SST.total", A.COALESss, r), t.Field_Field$string(e, e, !1, !1, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, r), t.Field_Field$numeric(e, A.IFNULLs, !1, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", A.COALESse, r), t.Field_Field$string(e, e, !1, !1, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, r), t.Field_Field$numeric(e, A.x28IFNULo, !1, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", A.x28COALEo, r), t.Field_Field$numeric(e, A.x28IFNULgx2d, !1, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, A.x28COALEgx2d, r), t.Field_Field$numeric(e, A.IFNULLta, !1, !1, D, E, E, A.COALEStak, r), t.Field_Field$numeric(e, A.IFNULLth, !1, !1, "Extra charge", C, C, A.COALESth, r), t.Field_Field$numeric(e, A.IFNULLde_, !1, !1, "Delivery fee", I, I, A.COALESdex2c, r), t.Field_Field$numeric(e, A.IFNULLn, !1, !1, "Nett", M, M, A.COALESn, r), t.Field_Field$numeric(e, "IFNULL(@grossTotal,0)*IF(@isRefund, -1, 1)+IFNULL(@deliveryFee,0)*IF(@isRefund, -1, 1)+IFNULL(@discountTotal,0)*IF(@isRefund, -1, 1)", !1, !1, "Gross before charges", "grossBeforeCharges", e, "COALESCE(@gross_total,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END+COALESCE(@delivery_fee,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END+COALESCE(@discount_total,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, e, !1, !1, "Member Recency", "recency", e, A.MIN_EX, r), t.Field_Field$numeric(e, e, !1, !1, "Member frequency", "frequency", e, A.COUNT_, r), t.Field_Field$numeric(e, e, !1, !1, "Member monetary", "monetary", e, A.SUM__n, r)], f.JSArray_Field);
9515
9515
  },
9516
9516
  $signature: 0
9517
9517
  }, t.refundBillSchema_closure0.prototype = {
@@ -10490,12 +10490,12 @@ limit 1) when @tier is null then null else @tier::numeric end)`, r), t.Field_Fie
10490
10490
  var e = u.LegacyJavaScriptObject.prototype;
10491
10491
  e.super$LegacyJavaScriptObject$toString = e.toString$0, e = t.JsLinkedHashMap.prototype, e.super$JsLinkedHashMap$internalContainsKey = e.internalContainsKey$1, e.super$JsLinkedHashMap$internalGet = e.internalGet$1, e.super$JsLinkedHashMap$internalSet = e.internalSet$2, e = t.ListMixin.prototype, e.super$ListMixin$setRange = e.setRange$4, e = t.Field.prototype, e.super$Field$getSql = e.getSql$3$option$schema$value, e = t.BaseDatasourceConfigModel.prototype, e.super$BaseDatasourceConfigModel$toRequests = e.toRequests$1, e.super$BaseDatasourceConfigModel$toJson = e.toJson$0;
10492
10492
  }(), function() {
10493
- var e = e0._static_2, n = e0._static_1, i = e0._instance_1u, a = e0._instance_0u;
10493
+ var e = Z._static_2, n = Z._static_1, i = Z._instance_1u, a = Z._instance_0u;
10494
10494
  e(u, "_interceptors_JSArray__compareAny$closure", "JSArray__compareAny", 114), e(t, "collection___defaultEquals$closure", "_defaultEquals", 49), n(t, "collection___defaultHashCode$closure", "_defaultHashCode", 37), n(t, "convert___defaultToEncodable$closure", "_defaultToEncodable", 4), n(t, "core__identityHashCode$closure", "identityHashCode", 37), n(t, "core_RegExp_escape$closure", "RegExp_escape", 3), e(t, "core__identical$closure", "identical", 49);
10495
10495
  var s;
10496
10496
  i(s = t.DateBuilder.prototype, "get$setYear", "setYear$1", 7), i(s, "get$setMonth", "setMonth$1", 7), i(s, "get$setDay", "setDay$1", 7), i(s, "get$setDayOfYear", "setDayOfYear$1", 7), i(s, "get$setHour", "setHour$1", 7), i(s, "get$setMinute", "setMinute$1", 7), i(s, "get$setSecond", "setSecond$1", 7), i(s, "get$setFractionalSecond", "setFractionalSecond$1", 7), n(t, "date_format_DateFormat_localeExists$closure", "DateFormat_localeExists", 77), a(t.DateFormat.prototype, "get$_initDigitMatcher", "_initDigitMatcher$0", 75), i(t.ReCase.prototype, "get$_upperCaseFirstLetter", "_upperCaseFirstLetter$1", 3), n(t, "js_compiler__getMergeInfoSql$closure", "getMergeInfoSql", 4), n(t, "js_compiler__getClearTableSql$closure", "getClearTableSql", 4), n(t, "js_compiler__getMergeSql$closure", "getMergeSql", 4), n(t, "js_compiler__getSchemas$closure", "getSchemas", 4), n(t, "js_compiler__getVisualizationSchemas$closure", "getVisualizationSchemas", 4), n(t, "js_compiler__requestJsonToSql$closure", "requestJsonToSql", 4), n(t, "js_compiler__sqlResponsesToQueryResponses$closure", "sqlResponsesToQueryResponses", 4), n(t, "js_compiler__getQueryRequests$closure", "getQueryRequests", 4), n(t, "js_compiler__getCreateMaterializedTableSql$closure", "getCreateMaterializedTableSql", 4);
10497
10497
  }(), function() {
10498
- var e = e0.mixin, n = e0.inherit, i = e0.inheritMany;
10498
+ var e = Z.mixin, n = Z.inherit, i = Z.inheritMany;
10499
10499
  n(t.Object, null), i(t.Object, [t.JS_CONST, u.Interceptor, u.ArrayIterator, t.Iterable, t.CastIterator, t.Error, t._ListBase_Object_ListMixin, t.ListIterator, t.Iterator, t.EmptyIterator, t.FixedLengthListMixin, t.UnmodifiableListMixin, t.Symbol, t.MapView, t.ConstantMap, t.Closure, t.JSInvocationMirror, t.TypeErrorDecoder, t.NullThrownFromJavaScriptException, t._Required, t.MapMixin, t.LinkedHashMapCell, t.LinkedHashMapKeyIterator, t.JSSyntaxRegExp, t._MatchImplementation, t._AllMatchesIterator, t.StringMatch, t._StringAllMatchesIterator, t._Cell, t.Rti, t._FunctionParameters, t._Type, t._IterationMarker, t._SyncStarIterator, t.StreamTransformerBase, t.__SetBase_Object_SetMixin, t._LinkedHashSetCell, t._LinkedHashSetIterator, t.ListMixin, t._UnmodifiableMapMixin, t.SetMixin, t.Codec, t._JsonStringifier, t._Utf8Encoder, t.DateTime, t.Duration, t._Enum, t.OutOfMemoryError, t.StackOverflowError, t._Exception, t.FormatException, t.MapEntry, t.Null, t.Sink, t.StringBuffer, t.Endian, t.Digest, t.HashSink, t.DateSymbols, t.DateBuilder, t.DateFormat, t._DateFormatField, t.StringStack, t.UninitializedLocaleData, t.LocaleDataException, t.Jiffy, t.Locale, t.JiffyException, t.Connection, t.SchemaLibrary, t.QueryEngineContext, t.Permission, t.TopLevelFilters, t.Source, t.Index, t.Schema, t.Field, t.Join, t.JoinLateralSort, t.JoinLateral, t.JoinCondition, t.QueryRequestComparisonTarget, t.QueryRequestComparison, t.QueryRequestCommonField, t._GetSourceTableResponse, t._PlainSqlColumn, t.QueryRequest, t.QueryRequestTimeDimension, t.QueryResponseColumn, t.DateTimeRange, t.QueryResponse, t.QueryResponseRow, t.VisualizationSchema, t.VisualizationField, t.QueryEngine, t.BaseDatasourceConfigModel, t.DataSourceDrillConfig, t.DataSourceRowColumnConfig, t.JoinDatasourceCondition, t.GlobalFilterModel, t.ReportWidgetModel, t.ReCase, t.TZDateTime, t.TimeZoneInitException, t.LocationNotFoundException, t.Location, t.TimeZone, t.TzInstant, t.LocationDatabase]), i(u.Interceptor, [u.JSBool, u.JSNull, u.JavaScriptObject, u.JSArray, u.JSNumber, u.JSString, t.NativeTypedData]), n(u.LegacyJavaScriptObject, u.JavaScriptObject), i(u.LegacyJavaScriptObject, [u.PlainJavaScriptObject, u.UnknownJavaScriptObject, u.JavaScriptFunction, t.BufferModule, t.BufferConstants, t.Buffer, t.ConsoleModule, t.Console, t.EventEmitter, t.Promise, t.Date, t.JsError, t.Atomics, t.Modules, t.Module, t.Net, t.Socket, t.NetAddress, t.NetServer, t.NodeJsError, t.Process, t.CPUUsage, t.Release, t.StreamModule, t.Readable, t.Writable, t.Duplex, t.Transform, t.WritableOptions, t.ReadableOptions, t.Immediate, t.Timeout, t.TTY, t.Util, t.Exports, t._Exports]), n(u.JSUnmodifiableArray, u.JSArray), i(u.JSNumber, [u.JSInt, u.JSNumNotInt]), i(t.Iterable, [t._CastIterableBase, t.EfficientLengthIterable, t.MappedIterable, t.WhereIterable, t.SkipIterable, t._ConstantMapKeyIterable, t.IterableBase, t._StringAllMatchesIterable]), i(t._CastIterableBase, [t.CastIterable, t.__CastListBase__CastIterableBase_ListMixin]), n(t._EfficientLengthCastIterable, t.CastIterable), n(t._CastListBase, t.__CastListBase__CastIterableBase_ListMixin), n(t.CastList, t._CastListBase), i(t.Error, [t.LateError, t.TypeError, t.JsNoSuchMethodError, t.UnknownJsTypeError, t.RuntimeError, t._Error, t.JsonUnsupportedObjectError, t.AssertionError, t.NullThrownError, t.ArgumentError, t.NoSuchMethodError, t.UnsupportedError, t.UnimplementedError, t.StateError, t.ConcurrentModificationError, t.CyclicInitializationError]), n(t.ListBase, t._ListBase_Object_ListMixin), i(t.ListBase, [t.UnmodifiableListBase, t.TypedDataBuffer]), n(t.CodeUnits, t.UnmodifiableListBase), i(t.EfficientLengthIterable, [t.ListIterable, t.EmptyIterable, t.LinkedHashMapKeyIterable]), i(t.ListIterable, [t.SubListIterable, t.MappedListIterable, t.ReversedListIterable, t._JsonMapKeyIterable, t._GeneratorIterable]), n(t.EfficientLengthMappedIterable, t.MappedIterable), i(t.Iterator, [t.MappedIterator, t.WhereIterator, t.SkipIterator]), n(t.EfficientLengthSkipIterable, t.SkipIterable), n(t._UnmodifiableMapView_MapView__UnmodifiableMapMixin, t.MapView), n(t.UnmodifiableMapView, t._UnmodifiableMapView_MapView__UnmodifiableMapMixin), n(t.ConstantMapView, t.UnmodifiableMapView), i(t.Closure, [t.Closure2Args, t.Closure0Args, t.TearOffClosure, t.initHooks_closure, t.initHooks_closure1, t._LinkedCustomHashMap_closure, t.MapMixin_entries_closure, t.DateTime_parse_parseIntOrZero, t.DateTime_parse_parseMilliAndMicroseconds, t.DateFormat_dateTimeConstructor_closure, t.DateFormat__checkDateOnly_closure, t.DateFormat__initDigitMatcher_closure, t.DateFormat__initDigitMatcher_closure0, t._DateFormatPatternField_parseStandaloneDay_closure, t.Jiffy__parseString_closure, t.SchemaLibrary_getSchema_closure, t.SchemaLibrary_visualizationSchemas_closure, t.SchemaLibrary_visualizationSchemas_closure0, t.Materialize_get_createMaterializedTableSql_closure, t.Materialize_get_createMaterializedTableSql_closure0, t.Materialize_get_createMaterializedTableSql_closure1, t.Materialize_get_createMaterializedTableSql_closure2, t.Materialize_getMergeSql_closure, t.Materialize_getMergeSql_closure0, t.Materialize_getMergeSql_closure1, t.Materialize_getMergeSql_closure2, t.Materialize_getMergeSql_closure3, t.Materialize_getMergeSql_closure4, t.Materialize_getMergeSql_closure5, t.Materialize_getMaterializeInfoSql_closure, t.Materialize_getMaterializeInfoSql_closure0, t.TopLevelFilters_fromJson_closure, t.TopLevelFilters_toJson_closure, t.Schema_visualizationSchema_closure, t.Schema_visualizationSchema_closure0, t.Schema_visualizationSchema_closure1, t.Schema_fromJson_closure, t.Schema_fromJson_closure0, t.Schema_fromJson_closure1, t.Schema_fromJson_closure2, t.Schema_toJson_closure, t.Schema_toJson_closure0, t.Schema_toJson_closure1, t.Schema_toJson_closure2, t.Field_getQueryPlainSql_closure, t.Join_fromJson_closure, t.Join_toJson_closure, t.JoinLateral_toJson_closure, t.QueryRequestComparison_QueryRequestComparison$nested_closure, t.QueryRequestComparison_getToValues_closure, t.QueryRequestComparison_getToValues__closure0, t.QueryRequestComparison_getToValues_closure0, t.QueryRequestComparison_getToValues__closure, t.QueryRequestComparison_getFromValue_closure, t.QueryRequestComparison_getSql_closure, t.QueryRequestComparison_getSql_closure0, t.uniqueAlias_closure, t.QueryRequestCommonField_getAggregatedSql_closure, t.QueryRequestDimension_getPlainSql_closure, t.QueryRequestDimension_getColumn_closure, t.QueryRequestMetric_getColumn_closure, t.QueryRequestMetric_getPlainSql_closure, t.QueryRequest__closure0, t.QueryRequest__closure, t.QueryRequest__getJoins_closure, t.QueryRequest__getJoins__closure, t.QueryRequest_fromJson_closure, t.QueryRequest_fromJson_closure0, t.QueryRequest_fromJson_closure1, t.QueryRequest_fromJson_closure2, t.QueryRequest_fromJson_closure3, t.QueryRequest_fromJson_closure4, t.QueryRequest_toJson_closure, t.QueryRequest_toJson_closure0, t.QueryRequest_toJson_closure1, t.QueryRequest_toJson_closure2, t.QueryRequest_toJson_closure3, t.QueryRequest_toJson_closure4, t.QueryRequest_getColumns_closure, t.QueryRequest_getColumns_closure0, t.QueryRequest__getPlainSqlColumns_closure, t.QueryRequest__getPlainSqlColumns_closure0, t.QueryRequest__getPlainSqlColumns_closure1, t.QueryRequest__getPlainSqlColumns__closure, t.QueryRequest__getPlainSqlSorts_closure, t.QueryRequest__getSqlFilters_closure, t.QueryRequest__getSqlFilters_closure0, t.QueryRequest__getSqlFilters_closure1, t.QueryRequest__getSqlFilters_closure2, t.QueryRequest__getSqlFilters_closure3, t.QueryRequest__getSqlFilters_closure4, t.QueryRequest__getSqlJoins__closure, t.QueryRequest__getSqlJoins__closure0, t.QueryRequest__getRollupSelect_closure0, t.QueryRequest__getRollupSelect_closure2, t.QueryRequest__getRollupSelect_closure3, t.QueryRequest__getRollupSelect_closure4, t.QueryRequest__getRollupSelect_closure6, t.QueryRequest__getRollupSelect_closure7, t.QueryRequest__getRollupSelect_closure8, t.QueryRequest__getRollupSelect_closure9, t.QueryRequest__hasFillGap_closure, t.QueryRequest__getSqlSelectSorts_closure, t.QueryRequest__getSqlSelectSorts__closure, t.QueryRequest__getSqlSelectSorts__closure0, t.QueryRequest_getSqlSelect_closure, t.QueryRequest_getSqlSelect_closure0, t.QueryRequest_getSqlSelect_closure1, t.QueryRequest__transformSqlAlias_closure, t.QueryRequest__getSourceTable_closure, t.QueryRequest__getSourceTable_closure0, t.QueryRequest__getFillGapTable_closure0, t.QueryRequest__getFillGapTable__closure1, t.QueryRequest__getFillGapTable__closure2, t.QueryRequest__getFillGapTable_closure2, t.QueryRequest__getFillGapTable__closure, t.QueryRequest__getFillGapTable__closure0, t.QueryRequest__getFillGapTable_closure3, t.QueryRequest__getFillGapTable_closure4, t.QueryRequest__getFullTable_closure, t.QueryRequest__getFullTable_closure1, t.QueryRequest__getFullTable_closure2, t.QueryRequestSort_getPlainSql_closure, t.QueryRequestSort_getSortSql_closure, t.QueryResponse$map_closure, t.QueryResponse_toJson_closure, t.QueryResponse_toJson_closure0, t.VisualizationSchema_toJson_closure, t.VisualizationSchema_toJson_closure0, t.VisualizationField_filterDimensionOptions_closure, t.VisualizationField_fillGapDimensionOptions_closure, t.VisualizationField_isNumericAggregations_closure, t.VisualizationField_toJson_closure, t.VisualizationField_toJson_closure0, t.VisualizationField_toJson_closure1, t.VisualizationField_toJson_closure2, t.VisualizationField_toJson_closure3, t.VisualizationField_toJson_closure4, t.VisualizationField_toJson_closure5, t.VisualizationField_toJson_closure6, t.VisualizationField_toJson_closure7, t.addonFlattenItemSchema_closure, t.addonFlattenItemSchema_closure0, t.adjustmentSchema_closure, t.adjustmentSchema_closure0, t.billSchema_closure, t.billSchema_closure0, t.businessSchema_closure, t.businessSchema_closure0, t.campaignSchema_closure, t.campaignSchema_closure0, t.campaignTierSchema_closure, t.campaignTierSchema_closure0, t.chargeSchema_closure, t.chargeSchema_closure0, t.closingDraftSchema_closure, t.closingDraftSchema_closure0, t.closingDraftSkuSchema_closure, t.closingDraftSkuSchema_closure0, t.closingSkuSchema_closure, t.closingSkuSchema_closure0, t.collectibleCollectionSchema_closure, t.collectibleCollectionSchema_closure0, t.collectibleConfigSchema_closure, t.collectibleConfigSchema_closure0, t.collectibleTransactionSchema_closure, t.collectibleTransactionSchema_closure0, t.completeTimeBillSchema_closure, t.completeTimeBillSchema_closure0, t.counterSchema_closure, t.counterSchema_closure0, t.creditTransactionSchema_closure, t.creditTransactionSchema_closure0, t.dailyForecastSalesSchema_closure, t.dailyForecastSalesSchema_closure0, t.drawerSchema_closure, t.drawerSchema_closure0, t.flattenItemSchema_closure, t.flattenItemSchema_closure0, t.internalPurchaseOrderSchema_closure, t.internalPurchaseOrderSchema_closure0, t.internalPurchaseOrderDeliveryFulfillmentSchema_closure, t.internalPurchaseOrderDeliveryFulfillmentSchema_closure0, t.internalPurchaseOrderDeliveryFulfillmentSkuSchema_closure, t.internalPurchaseOrderDeliveryFulfillmentSkuSchema_closure0, t.internalPurchaseOrderDeliveryOrderSchema_closure, t.internalPurchaseOrderDeliveryOrderSchema_closure0, t.internalPurchaseOrderDeliveryOrderSkuSchema_closure, t.internalPurchaseOrderDeliveryOrderSkuSchema_closure0, t.internalPurchaseOrderItemSchema_closure, t.internalPurchaseOrderItemSchema_closure0, t.inventoryAdjustmentSchema_closure, t.inventoryAdjustmentSchema_closure0, t.inventoryAdjustmentPhysicalSkuSchema_closure, t.inventoryAdjustmentPhysicalSkuSchema_closure0, t.inventoryAdjustmentSkuSchema_closure, t.inventoryAdjustmentSkuSchema_closure0, t.inventoryV1FlattenInventorySchema_closure, t.inventoryV1FlattenInventorySchema_closure0, t.itemSchema_closure, t.itemSchema_closure0, t.itemMovementSchema_closure, t.itemMovementSchema_closure0, t.kitchenStationSchema_closure, t.kitchenStationSchema_closure0, t.memberSchema_closure, t.memberSchema_closure0, t.memberStorePurchaseSchema_closure, t.memberStorePurchaseSchema_closure0, t.memberStorePurchasePaymentSchema_closure, t.memberStorePurchasePaymentSchema_closure0, t.memberTitleSchema_closure, t.memberTitleSchema_closure0, t.memberV2Schema_closure, t.memberV2Schema_closure0, t.membershipSchema_closure, t.membershipSchema_closure0, t.membershipTitleSchema_closure, t.membershipTitleSchema_closure0, t.menuV3GroupSchema_closure, t.menuV3GroupSchema_closure0, t.menuV3ItemSchema_closure, t.menuV3ItemSchema_closure0, t.menuV3SkuSchema_closure, t.menuV3SkuSchema_closure0, t.menuV4CatalogItemSchema_closure, t.menuV4CatalogItemSchema_closure0, t.menuV4GroupSchema_closure, t.menuV4GroupSchema_closure0, t.menuV4ItemSchema_closure, t.menuV4ItemSchema_closure0, t.menuV4ItemInventoryBindingSchema_closure, t.menuV4ItemInventoryBindingSchema_closure0, t.menuV4SkuSchema_closure, t.menuV4SkuSchema_closure0, t.parentFlattenItemSchema_closure, t.parentFlattenItemSchema_closure0, t.paymentSchema_closure, t.paymentSchema_closure0, t.paymentTimePaymentSchema_closure, t.paymentTimePaymentSchema_closure0, t.purchaseOrderSchema_closure, t.purchaseOrderSchema_closure0, t.purchaseOrderDeliveryFulfillmentSchema_closure, t.purchaseOrderDeliveryFulfillmentSchema_closure0, t.purchaseOrderDeliveryFulfillmentSkuSchema_closure, t.purchaseOrderDeliveryFulfillmentSkuSchema_closure0, t.purchaseOrderDeliveryOrderSchema_closure, t.purchaseOrderDeliveryOrderSchema_closure0, t.purchaseOrderDeliveryOrderSkuSchema_closure, t.purchaseOrderDeliveryOrderSkuSchema_closure0, t.purchaseOrderItemSchema_closure, t.purchaseOrderItemSchema_closure0, t.recommendationCallSchema_closure, t.recommendationCallSchema_closure0, t.recordSchema_closure, t.recordSchema_closure0, t.refundBillSchema_closure, t.refundBillSchema_closure0, t.restaurantSchema_closure, t.restaurantSchema_closure0, t.restaurantFeatureSchema_closure, t.restaurantFeatureSchema_closure0, t.restaurantLocationSchema_closure, t.restaurantLocationSchema_closure0, t.reviewSchema_closure, t.reviewSchema_closure0, t.slotSchema_closure, t.slotSchema_closure0, t.staffSchema_closure, t.staffSchema_closure0, t.stockSchema_closure, t.stockSchema_closure0, t.storeBundleSchema_closure, t.storeBundleSchema_closure0, t.storeTransactionSchema_closure, t.storeTransactionSchema_closure0, t.subItemSchema_closure, t.subItemSchema_closure0, t.timesheetSchema_closure, t.timesheetSchema_closure0, t.timesheetRecordSchema_closure, t.timesheetRecordSchema_closure0, t.unitCostHistorySchema_closure, t.unitCostHistorySchema_closure0, t.userSchema_closure, t.userSchema_closure0, t.vnEInvoiceSubmissionSchema_closure, t.vnEInvoiceSubmissionSchema_closure0, t.voucherClaimSchema_closure, t.voucherClaimSchema_closure0, t.voucherClaimRedemptionSchema_closure, t.voucherClaimRedemptionSchema_closure0, t.warehouseLocationSchema_closure, t.warehouseLocationSchema_closure0, t.QueryEngine_getSql_closure, t.BaseDatasourceConfigModel_drilledDimensionIds_closure, t.BaseDatasourceConfigModel_metricIds_closure, t.BaseDatasourceConfigModel_toJson_closure, t.BaseDatasourceConfigModel_toJson_closure0, t.BaseDatasourceConfigModel_toJson_closure1, t.BaseDatasourceConfigModel_toJson_closure2, t.BaseDatasourceConfigModel_toJson_closure3, t.BaseDatasourceConfigModel_toJson_closure4, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure0, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure1, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure2, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure3, t.DataSourceDrillConfig_drilledDimensions_closure, t.DataSourceRowColumnConfig_rowIds_closure, t.DataSourceRowColumnConfig_rowIds_closure0, t.DataSourceRowColumnConfig_rowIds_closure2, t.DataSourceRowColumnConfig_rowIds_closure1, t.DataSourceRowColumnConfig_columnIds_closure, t.DataSourceRowColumnConfig_columnIds_closure0, t.DataSourceRowColumnConfig_columnIds_closure1, t.TableDatasourceConfigModel_joinDatasources_closure, t.TableDatasourceConfigModel_toRequests___closure, t.TableDatasourceConfigModel_toRequests_closure0, t.TableDatasourceConfigModel_toJson_closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson_closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson___closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson___closure0, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson____closure, t.JoinDatasourceConfig_JoinDatasourceConfig$fromJson_closure, t.JoinDatasourceConfig_toJson_closure, t.JoinDatasourceCondition_JoinDatasourceCondition$fromJson_closure, t.JoinDatasourceCondition_toJson_closure, t.BaseXYDatasourceConfigModel_joinDatasources_closure, t.BaseXYDatasourceConfigModel_toRequests___closure, t.BaseXYDatasourceConfigModel_toRequests_closure0, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson_closure, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson___closure, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson___closure0, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson____closure, t.getSchemas_closure, t.getVisualizationSchemas_closure, t.sqlResponsesToQueryResponses_closure, t.sqlResponsesToQueryResponses_closure1, t.getQueryRequests_closure, t.getQueryRequests_closure0, t.getQueryRequests_closure1, t.getQueryRequests_closure2, t.getQueryRequests_closure3, t.getQueryRequests_closure4, t.getQueryRequests_closure5, t.getQueryRequests_closure6, t.getQueryRequests_closure7, t.getQueryRequests_closure8, t.getQueryRequests_closure9]), i(t.Closure2Args, [t.ConstantMap_map_closure, t.Primitives_functionNoSuchMethod_closure, t.JsLinkedHashMap_addAll_closure, t.initHooks_closure0, t.LinkedHashMap_LinkedHashMap$from_closure, t.MapBase_mapToString_closure, t._JsonStringifier_writeMap_closure, t.NoSuchMethodError_toString_closure, t.DateFormat__fieldConstructors_closure, t.DateFormat__fieldConstructors_closure0, t.DateFormat__fieldConstructors_closure1, t.Jiffy__parseMap_closure, t.Join_getConditionsSql_closure, t.QueryRequest_closure, t.QueryRequest_closure0, t.QueryRequest__getPlainSqlColumns_closure2, t.QueryRequest__getSqlJoins_closure, t.QueryRequest__getRollupSelect_closure, t.QueryRequest__getRollupSelect_closure1, t.QueryRequest__getRollupSelect_closure5, t.QueryRequest__getSqlSelectSorts_closure0, t.QueryRequest__getSortedLimitTable_closure, t.QueryRequest__getFillGapTable_closure, t.QueryRequest__getFillGapTable_closure1, t.QueryRequest__getFullTable_closure0, t.VisualizationSchema_closure, t.DataSourceDrillConfig__availableIds_closure, t.DataSourceRowColumnConfig__availableIds_closure, t.DataSourceRowColumnConfig__availableIds_closure0, t.TableDatasourceConfigModel_drilledDimensions_closure, t.TableDatasourceConfigModel_toRequests_closure, t.TableDatasourceConfigModel_toRequests__closure0, t.TableDatasourceConfigModel_toRequests__closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson__closure, t.BaseXYDatasourceConfigModel_toRequests_closure, t.BaseXYDatasourceConfigModel_toRequests__closure0, t.BaseXYDatasourceConfigModel_toRequests__closure, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson__closure, t.sqlResponsesToQueryResponses_closure0]), n(t.ConstantStringMap, t.ConstantMap), n(t.NullError, t.TypeError), i(t.TearOffClosure, [t.StaticClosure, t.BoundClosure]), n(t.MapBase, t.MapMixin), i(t.MapBase, [t.JsLinkedHashMap, t._JsonMap]), i(t.IterableBase, [t._AllMatchesIterable, t._SyncStarIterable]), n(t.NativeTypedArray, t.NativeTypedData), n(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, t.NativeTypedArray), n(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin), n(t.NativeTypedArrayOfInt, t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin), i(t.NativeTypedArrayOfInt, [t.NativeUint16List, t.NativeUint32List, t.NativeUint8List]), n(t._TypeError, t._Error), i(t.JsLinkedHashMap, [t._LinkedIdentityHashMap, t._LinkedCustomHashMap]), n(t._SetBase, t.__SetBase_Object_SetMixin), n(t._LinkedHashSet, t._SetBase), i(t.Codec, [t.Encoding, t.JsonCodec]), i(t.Encoding, [t.AsciiCodec, t.Utf8Codec]), n(t.Converter, t.StreamTransformerBase), i(t.Converter, [t._UnicodeSubsetDecoder, t.JsonEncoder, t.JsonDecoder, t.Utf8Encoder]), n(t.AsciiDecoder, t._UnicodeSubsetDecoder), n(t.JsonCyclicError, t.JsonUnsupportedObjectError), n(t._JsonStringStringifier, t._JsonStringifier), i(t.ArgumentError, [t.RangeError, t.IndexError]), n(t.DigestSink, t.Sink), n(t._Sha1Sink, t.HashSink), i(t._DateFormatField, [t._DateFormatLiteralField, t._DateFormatQuotedField, t._DateFormatPatternField]), i(t._Enum, [t.StartOfWeek, t.Units, t.SOURCE_TYPE, t.SCHEMA_NAME, t.DATA_TYPE, t.AGGREGATION_TYPE, t.COMPARISON_OPERATOR, t.DIMENSION_OPTION, t.TIME_FORMATTER, t.FORMATTER_TYPE, t.PERIOD_TYPE, t.SORT_TYPE, t.PermissionType, t.INDEX_METHOD, t.FIELD_TYPE, t.ChartType]), i(t.Locale, [t.ArLyLocale, t.ArSaMaDzKwTnLocale, t.AzLocale, t.BnLocale, t.DeLocale, t.EnLocale, t.EsLocale, t.FaLocale, t.FrLocale, t.HiLocale, t.IdLocale, t.ItLocale, t.JaLocale, t.KoLocale, t.NbLocale, t.NlLocale, t.PlLocale, t.PtLocale, t.RuLocale, t.SvLocale, t.ThLocale, t.TrLocale, t.UkLocale, t.ZhCnLocale, t.ZhLocale]), i(t.NodeJsError, [t.JsAssertionError, t.JsRangeError, t.JsReferenceError, t.JsSyntaxError, t.JsTypeError, t.JsSystemError]), i(t.Socket, [t.TTYReadStream, t.TTYWriteStream]), i(t.Field, [t._NumericField, t._TimestampField, t._BoolField, t._StringField]), i(t.QueryRequestComparisonTarget, [t._QueryRequestComparisonTargetValue, t._QueryRequestComparisonTargetVariable]), i(t.QueryRequestCommonField, [t.QueryRequestDimension, t.QueryRequestMetric, t.QueryRequestFilter, t.QueryRequestSort]), i(t.Closure0Args, [t.QueryRequestDimension_generateTimestampArraySql_closure, t.QueryRequestDimension_generateTimestampArraySql_closure0, t.QueryRequest__getSqlFilters__closure]), i(t.BaseDatasourceConfigModel, [t._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, t.ScorecardDatasourceConfigModel, t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig]), n(t.CircularDatasourceConfigModel, t._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig), n(t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig, t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig), n(t.TableDatasourceConfigModel, t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig), n(t.JoinDatasourceConfig, t._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig), n(t.BaseXYDatasourceConfigModel, t._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig), n(t._IntBuffer, t.TypedDataBuffer), n(t.Uint8Buffer, t._IntBuffer), e(t.UnmodifiableListBase, t.UnmodifiableListMixin), e(t.__CastListBase__CastIterableBase_ListMixin, t.ListMixin), e(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, t.ListMixin), e(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, t.FixedLengthListMixin), e(t._ListBase_Object_ListMixin, t.ListMixin), e(t._UnmodifiableMapView_MapView__UnmodifiableMapMixin, t._UnmodifiableMapMixin), e(t.__SetBase_Object_SetMixin, t.SetMixin), e(t._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, t.DataSourceDrillConfig), e(t._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t.DataSourceRowColumnConfig), e(t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t.DataSourceRowColumnConfig), e(t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig, t.DataSourceDrillConfig), e(t._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, t.DataSourceDrillConfig);
10500
10500
  }();
10501
10501
  var b = {
@@ -10532,10 +10532,9 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
10532
10532
  x28selecc: "(select code from locations where locations.id=@supplier_id)",
10533
10533
  x28selecn: "(select name from restaurants where restaurants.id=@restaurant_id)",
10534
10534
  x28selecp: "(select phone_number from users where users.id=@user_id)",
10535
- x28selecstC: "(select string_agg(CONCAT(flatten_items.quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN flatten_items.code='' THEN NULL ELSE flatten_items.code END, flatten_items.name], ' ')), ',') from flatten_items where flatten_items.bill_id=@id and flatten_items.restaurant_id=@restaurant_id and flatten_items.layer=0)",
10536
- x28selecstdC: "(select string_agg(distinct CONCAT(name, CASE WHEN card_type is not null THEN CONCAT(' (',card_type, ')') WHEN payment_gateway_issuer is not null THEN CONCAT(' (',payment_gateway_issuer, ')') ELSE '' END), ',') from payments where payments.bill_id=@id and payments.restaurant_id=@restaurant_id)",
10537
- x28selecstda: "(select string_agg(distinct adjustments.reason, ',') from adjustments where adjustments.bill_id=@id and adjustments.restaurant_id=@restaurant_id)",
10538
- x28selecstdn: "(select string_agg(distinct name, ',') from payments where payments.bill_id=@id and payments.restaurant_id=@restaurant_id)",
10535
+ x28selecstC: "(select string_agg(distinct CONCAT(name, CASE WHEN card_type is not null THEN CONCAT(' (',card_type, ')') WHEN payment_gateway_issuer is not null THEN CONCAT(' (',payment_gateway_issuer, ')') ELSE '' END), ',') from payments where payments.bill_id=@id and payments.restaurant_id=@restaurant_id)",
10536
+ x28selecsta: "(select string_agg(distinct adjustments.reason, ',') from adjustments where adjustments.bill_id=@id and adjustments.restaurant_id=@restaurant_id)",
10537
+ x28selecstn: "(select string_agg(distinct name, ',') from payments where payments.bill_id=@id and payments.restaurant_id=@restaurant_id)",
10539
10538
  x28selecsum: "(select sum(nett_total) from bills left join restaurants on restaurants.id=bills.restaurant_id where restaurants.business_id=@business_id and bills.member_id=@id)",
10540
10539
  x28selecsup: "(select supplier_id from purchase_orders where id=@purchase_order_id limit 1)",
10541
10540
  x40addon: "@addon_price*CASE WHEN @is_refund THEN -1 ELSE 1 END",
@@ -10680,7 +10679,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
10680
10679
  };
10681
10680
  }();
10682
10681
  (function() {
10683
- var e = e0.makeConstList;
10682
+ var e = Z.makeConstList;
10684
10683
  _.Interceptor_methods = u.Interceptor.prototype, _.JSArray_methods = u.JSArray.prototype, _.JSInt_methods = u.JSInt.prototype, _.JSNumber_methods = u.JSNumber.prototype, _.JSString_methods = u.JSString.prototype, _.JavaScriptFunction_methods = u.JavaScriptFunction.prototype, _.JavaScriptObject_methods = u.JavaScriptObject.prototype, _.NativeUint8List_methods = t.NativeUint8List.prototype, _.PlainJavaScriptObject_methods = u.PlainJavaScriptObject.prototype, _.UnknownJavaScriptObject_methods = u.UnknownJavaScriptObject.prototype, _.AGGREGATION_TYPE_0 = new t.AGGREGATION_TYPE(0, "SUM"), _.AGGREGATION_TYPE_1 = new t.AGGREGATION_TYPE(1, "AVERAGE"), _.AGGREGATION_TYPE_10 = new t.AGGREGATION_TYPE(10, "CUMULATIVE_SUM"), _.AGGREGATION_TYPE_11 = new t.AGGREGATION_TYPE(11, "CUMULATIVE_AVERAGE"), _.AGGREGATION_TYPE_12 = new t.AGGREGATION_TYPE(12, "CUMULATIVE_COUNT"), _.AGGREGATION_TYPE_2 = new t.AGGREGATION_TYPE(2, "COUNT"), _.AGGREGATION_TYPE_3 = new t.AGGREGATION_TYPE(3, "COUNT_DISTINCT"), _.AGGREGATION_TYPE_4 = new t.AGGREGATION_TYPE(4, "FIRST"), _.AGGREGATION_TYPE_5 = new t.AGGREGATION_TYPE(5, "LAST"), _.AGGREGATION_TYPE_6 = new t.AGGREGATION_TYPE(6, "ANY"), _.AGGREGATION_TYPE_7 = new t.AGGREGATION_TYPE(7, "MERGE"), _.AGGREGATION_TYPE_8 = new t.AGGREGATION_TYPE(8, "MIN"), _.AGGREGATION_TYPE_9 = new t.AGGREGATION_TYPE(9, "MAX"), _.AsciiDecoder_false = new t.AsciiDecoder(!1), _.COMPARISON_OPERATOR_0 = new t.COMPARISON_OPERATOR(0, "EQUAL"), _.COMPARISON_OPERATOR_1 = new t.COMPARISON_OPERATOR(1, "NOT_EQUAL"), _.COMPARISON_OPERATOR_10 = new t.COMPARISON_OPERATOR(10, "OR"), _.COMPARISON_OPERATOR_2 = new t.COMPARISON_OPERATOR(2, "GREATER_THAN"), _.COMPARISON_OPERATOR_3 = new t.COMPARISON_OPERATOR(3, "LESS_THAN"), _.COMPARISON_OPERATOR_4 = new t.COMPARISON_OPERATOR(4, "GREATER_THAN_OR_EQUAL"), _.COMPARISON_OPERATOR_5 = new t.COMPARISON_OPERATOR(5, "LESS_THAN_OR_EQUAL"), _.COMPARISON_OPERATOR_6 = new t.COMPARISON_OPERATOR(6, "BETWEEN"), _.COMPARISON_OPERATOR_7 = new t.COMPARISON_OPERATOR(7, "LIKE"), _.COMPARISON_OPERATOR_8 = new t.COMPARISON_OPERATOR(8, "NOT_LIKE"), _.C_AsciiCodec = new t.AsciiCodec(), _.C_EmptyIterator = new t.EmptyIterator(), _.C_Endian = new t.Endian(), _.C_Endian0 = new t.Endian(), _.C_JS_CONST = function(i) {
10685
10684
  var a = Object.prototype.toString.call(i);
10686
10685
  return a.substring(8, a.length - 1);
@@ -10697,7 +10696,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
10697
10696
  }
10698
10697
  }
10699
10698
  function s(d, c) {
10700
- return w.HTMLElement && d instanceof HTMLElement ? "HTMLElement" : a(d, c);
10699
+ return O.HTMLElement && d instanceof HTMLElement ? "HTMLElement" : a(d, c);
10701
10700
  }
10702
10701
  function o(d) {
10703
10702
  if (typeof window > "u" || typeof window[d] > "u") return null;
@@ -10782,7 +10781,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
10782
10781
  })(), function() {
10783
10782
  S._JS_INTEROP_INTERCEPTOR_TAG = null, S.Primitives__identityHashCodeProperty = null, S.BoundClosure__receiverFieldNameCache = null, S.BoundClosure__interceptorFieldNameCache = null, S.getTagFunction = null, S.alternateTagFunction = null, S.prototypeForTagFunction = null, S.dispatchRecordsForInstanceTags = null, S.interceptorsForUncacheableTags = null, S.initNativeDispatchFlag = null, S._toStringVisiting = t._setArrayType([], t.findType("JSArray<Object>")), S.cachedDateSymbols = null, S.lastDateSymbolLocale = null, S._defaultLocale = null, S.DateFormat__useNativeDigitsByDefault = t.LinkedHashMap_LinkedHashMap$_empty(f.String, f.bool), S.DateFormat__digitMatchers = t.LinkedHashMap_LinkedHashMap$_empty(f.String, t.findType("RegExp")), S.Jiffy____defaultLocale = t._Cell$(), S.VisualizationField__filterDimensionOptions = t._setArrayType([_.DIMENSION_OPTION_5, _.DIMENSION_OPTION_6, _.DIMENSION_OPTION_7, _.DIMENSION_OPTION_8, _.DIMENSION_OPTION_9], f.JSArray_DIMENSION_OPTION), S.VisualizationField__fillGapDimensionOptions = t._setArrayType([_.DIMENSION_OPTION_1, _.DIMENSION_OPTION_2, _.DIMENSION_OPTION_3, _.DIMENSION_OPTION_4, _.DIMENSION_OPTION_6, _.DIMENSION_OPTION_7, _.DIMENSION_OPTION_8, _.DIMENSION_OPTION_9, _.DIMENSION_OPTION_10, _.DIMENSION_OPTION_11], f.JSArray_DIMENSION_OPTION), S.VisualizationField__isNumericAggregations = t._setArrayType([_.AGGREGATION_TYPE_2, _.AGGREGATION_TYPE_3], f.JSArray_AGGREGATION_TYPE), S.___local = t._Cell$();
10784
10783
  }(), function() {
10785
- var e = e0.lazyFinal, n = e0.lazy;
10784
+ var e = Z.lazyFinal, n = Z.lazy;
10786
10785
  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({
10787
10786
  toString: function() {
10788
10787
  return "$receiver$";
@@ -10819,8 +10818,8 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
10819
10818
  return i.message;
10820
10819
  }
10821
10820
  }())), e(S, "DateTime__parseFormat", "$get$DateTime__parseFormat", () => t.RegExp_RegExp("^([+-]?\\d{4,6})-?(\\d\\d)-?(\\d\\d)(?:[ T](\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d+))?)?)?( ?[zZ]| ?([-+])(\\d\\d)(?::?(\\d\\d))?)?)?$", !1)), e(S, "_hashSeed", "$get$_hashSeed", () => t.objectHashCode(_.Type_Object_xQ6)), e(S, "Endian_host", "$get$Endian_host", () => t.NativeByteData_NativeByteData$view(t.NativeUint16List_NativeUint16List$fromList(t._setArrayType([1], f.JSArray_int)).buffer, 0, null).getInt8(0) === 1 ? _.C_Endian0 : _.C_Endian), e(S, "_clockKey", "$get$_clockKey", () => new t.Object()), e(S, "en_USSymbols", "$get$en_USSymbols", () => new t.DateSymbols("en_US", _.List_BC_AD, _.List_6xs, _.List_qpm, _.List_qpm, _.List_cIc, _.List_cIc, _.List_h8w, _.List_h8w, _.List_wMy, _.List_wMy, _.List_gc6, _.List_gc6, _.List_3US, _.List_AM_PM)), n(S, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => t.UninitializedLocaleData$("initializeDateFormatting(<locale>)", S.$get$en_USSymbols())), n(S, "dateTimePatterns", "$get$dateTimePatterns", () => t.UninitializedLocaleData$("initializeDateFormatting(<locale>)", _.Map_EQ6TW)), e(S, "asciiZeroCodeUnit", "$get$asciiZeroCodeUnit", () => 48), e(S, "DateFormat__matchers", "$get$DateFormat__matchers", () => t._setArrayType([t.RegExp_RegExp("^'(?:[^']|'')*'", !1), t.RegExp_RegExp("^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|D+|m+|s+|v+|z+|Z+)", !1), t.RegExp_RegExp("^[^'GyMkSEahKHcLQdDmsvzZ]+", !1)], t.findType("JSArray<RegExp>"))), e(S, "_DateFormatQuotedField__twoEscapedQuotes", "$get$_DateFormatQuotedField__twoEscapedQuotes", () => t.RegExp_RegExp("''", !1)), e(S, "asciiDigitMatcher", "$get$asciiDigitMatcher", () => t.RegExp_RegExp("^\\d+", !1)), n(S, "_availableLocales", "$get$_availableLocales", () => {
10822
- var i, a, s = t.EnLocale$(_.StartOfWeek_1), o = t.EnLocale$(_.StartOfWeek_1), l = t.EnLocale$(_.StartOfWeek_1), D = t.EnLocale$(_.StartOfWeek_1), d = t.EnLocale$(_.StartOfWeek_1), c = t.EnLocale$(_.StartOfWeek_2), p = t.EnLocale$(_.StartOfWeek_2), y = t.EnLocale$(_.StartOfWeek_1), g = t.EnLocale$(_.StartOfWeek_1), m = t.EsLocale$(_.StartOfWeek_2), h = t.EsLocale$(_.StartOfWeek_2), E = t.EsLocale$(_.StartOfWeek_1), C = t.FrLocale$(_.StartOfWeek_2), I = t.FrLocale$(_.StartOfWeek_2), F = t.FrLocale$(_.StartOfWeek_1), x = t.ZhCnLocale$(_.StartOfWeek_1), M = t.ZhCnLocale$(_.StartOfWeek_1), L = t.ZhLocale$(_.StartOfWeek_1), O = t.ZhLocale$(_.StartOfWeek_1), v = t.DeLocale$(_.StartOfWeek_2), H = t.DeLocale$(_.StartOfWeek_2), j = t.DeLocale$(_.StartOfWeek_2), c0 = t.DeLocale$(_.StartOfWeek_2), m0 = t.ItLocale$(_.StartOfWeek_2), a0 = t.ItLocale$(_.StartOfWeek_2), h0 = t.ArLyLocale$(!0, _.StartOfWeek_0), b0 = t.ArLyLocale$(!1, _.StartOfWeek_0), M0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_1), R0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_1), A0 = t.ArSaMaDzKwTnLocale$(!0, _.StartOfWeek_1), I0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_0), x0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_0);
10823
- return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), i = t.PtLocale$(_.StartOfWeek_2), a = t.PtLocale$(_.StartOfWeek_1), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.LinkedHashMap_LinkedHashMap$_literal(["en", s, "en_us", o, "en_sg", l, "en_au", D, "en_ca", d, "en_gb", c, "en_ie", p, "en_il", y, "en_nz", g, "es", m, "es_do", h, "es_us", E, "fr", C, "fr_ch", I, "fr_ca", F, "zh", x, "zh_cn", M, "zh_hk", L, "zh_tw", O, "de", v, "de_de", H, "de_at", j, "de_ch", c0, "it", m0, "it_ch", a0, "ar", h0, "ar_ly", b0, "ar_dz", M0, "ar_kw", R0, "ar_sa", A0, "ar_ma", I0, "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", a, "pl", new t.PlLocale(), "tr", new t.TrLocale(), "sv", new t.SvLocale(), "nb", new t.NbLocale(), "fa", new t.FaLocale(), "bn", new t.BnLocale(), "nl", new t.NlLocale(), "th", new t.ThLocale()], f.String, t.findType("Locale"));
10821
+ var i, a, s = t.EnLocale$(_.StartOfWeek_1), o = t.EnLocale$(_.StartOfWeek_1), l = t.EnLocale$(_.StartOfWeek_1), D = t.EnLocale$(_.StartOfWeek_1), d = t.EnLocale$(_.StartOfWeek_1), c = t.EnLocale$(_.StartOfWeek_2), p = t.EnLocale$(_.StartOfWeek_2), y = t.EnLocale$(_.StartOfWeek_1), g = t.EnLocale$(_.StartOfWeek_1), m = t.EsLocale$(_.StartOfWeek_2), h = t.EsLocale$(_.StartOfWeek_2), E = t.EsLocale$(_.StartOfWeek_1), C = t.FrLocale$(_.StartOfWeek_2), I = t.FrLocale$(_.StartOfWeek_2), M = t.FrLocale$(_.StartOfWeek_1), x = t.ZhCnLocale$(_.StartOfWeek_1), R = t.ZhCnLocale$(_.StartOfWeek_1), L = t.ZhLocale$(_.StartOfWeek_1), w = t.ZhLocale$(_.StartOfWeek_1), v = t.DeLocale$(_.StartOfWeek_2), N = t.DeLocale$(_.StartOfWeek_2), K = t.DeLocale$(_.StartOfWeek_2), c0 = t.DeLocale$(_.StartOfWeek_2), m0 = t.ItLocale$(_.StartOfWeek_2), u0 = t.ItLocale$(_.StartOfWeek_2), h0 = t.ArLyLocale$(!0, _.StartOfWeek_0), I0 = t.ArLyLocale$(!1, _.StartOfWeek_0), x0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_1), L0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_1), A0 = t.ArSaMaDzKwTnLocale$(!0, _.StartOfWeek_1), F0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_0), O0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_0);
10822
+ return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), i = t.PtLocale$(_.StartOfWeek_2), a = t.PtLocale$(_.StartOfWeek_1), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.LinkedHashMap_LinkedHashMap$_literal(["en", s, "en_us", o, "en_sg", l, "en_au", D, "en_ca", d, "en_gb", c, "en_ie", p, "en_il", y, "en_nz", g, "es", m, "es_do", h, "es_us", E, "fr", C, "fr_ch", I, "fr_ca", M, "zh", x, "zh_cn", R, "zh_hk", L, "zh_tw", w, "de", v, "de_de", N, "de_at", K, "de_ch", c0, "it", m0, "it_ch", u0, "ar", h0, "ar_ly", I0, "ar_dz", x0, "ar_kw", L0, "ar_sa", A0, "ar_ma", F0, "ar_tn", O0, "az", new t.AzLocale(), "id", new t.IdLocale(), "ja", new t.JaLocale(), "ko", new t.KoLocale(), "ru", new t.RuLocale(), "uk", new t.UkLocale(), "hi", new t.HiLocale(), "pt", i, "pt_br", a, "pl", new t.PlLocale(), "tr", new t.TrLocale(), "sv", new t.SvLocale(), "nb", new t.NbLocale(), "fa", new t.FaLocale(), "bn", new t.BnLocale(), "nl", new t.NlLocale(), "th", new t.ThLocale()], f.String, t.findType("Locale"));
10824
10823
  }), e(S, "addonFlattenItemSchema", "$get$addonFlattenItemSchema", () => {
10825
10824
  var i = "createdAt", a = null, s = t.Source_Source$couchdb("", ""), o = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], f.JSArray_Permission), i);
10826
10825
  return t.Schema_Schema$build(a, _.List_empty, 3, t._setArrayType(["restaurantId"], f.JSArray_String), a, new t.addonFlattenItemSchema_closure(), _.List_empty0, a, a, !0, !1, !1, !0, !1, new t.addonFlattenItemSchema_closure0(), "Addon", "flatten_items", "flatten_item", _.SCHEMA_NAME_7, i, "", s, o);
@@ -11126,7 +11125,7 @@ WHERE (
11126
11125
  (function() {
11127
11126
  var e = function(l) {
11128
11127
  var D = {};
11129
- return D[l] = 1, Object.keys(e0.convertToFastObject(D))[0];
11128
+ return D[l] = 1, Object.keys(Z.convertToFastObject(D))[0];
11130
11129
  };
11131
11130
  b.getIsolateTag = function(l) {
11132
11131
  return e("___dart_" + l + b.isolateTag);
@@ -11139,7 +11138,7 @@ WHERE (
11139
11138
  }
11140
11139
  }
11141
11140
  b.dispatchPropertyName = b.getIsolateTag("dispatch_record");
11142
- })(), e0.setOrUpdateInterceptorsByTag({ ArrayBuffer: u.Interceptor, DataView: t.NativeTypedData, ArrayBufferView: t.NativeTypedData, Uint16Array: t.NativeUint16List, Uint32Array: t.NativeUint32List, Uint8Array: t.NativeUint8List }), e0.setOrUpdateLeafTags({ ArrayBuffer: !0, DataView: !0, ArrayBufferView: !1, Uint16Array: !0, Uint32Array: !0, Uint8Array: !1 }), t.NativeTypedArray.$nativeSuperclassTag = "ArrayBufferView", t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.$nativeSuperclassTag = "ArrayBufferView", t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.$nativeSuperclassTag = "ArrayBufferView", t.NativeTypedArrayOfInt.$nativeSuperclassTag = "ArrayBufferView";
11141
+ })(), Z.setOrUpdateInterceptorsByTag({ ArrayBuffer: u.Interceptor, DataView: t.NativeTypedData, ArrayBufferView: t.NativeTypedData, Uint16Array: t.NativeUint16List, Uint32Array: t.NativeUint32List, Uint8Array: t.NativeUint8List }), Z.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";
11143
11142
  }(), Function.prototype.call$1 = function(r) {
11144
11143
  return this(r);
11145
11144
  }, Function.prototype.call$0 = function() {
@@ -11177,53 +11176,53 @@ WHERE (
11177
11176
  typeof dartMainRunner == "function" ? dartMainRunner(e, []) : e([]);
11178
11177
  });
11179
11178
  })();
11180
- })(he);
11181
- const Qe = he;
11182
- var Xe = Qe, Se = {};
11179
+ })(Ee);
11180
+ const Xe = Ee;
11181
+ var Ve = Xe, Ae = {};
11183
11182
  (function(T) {
11184
- T.load = function(R, w) {
11183
+ T.load = function(F, O) {
11185
11184
  var J = typeof process < "u" && (process.versions || {}).hasOwnProperty("node"), P = J ? Object.create(globalThis) : globalThis;
11186
- if (P.scheduleImmediate = typeof setImmediate < "u" ? function(N) {
11187
- setImmediate(N);
11188
- } : function(N) {
11189
- setTimeout(N, 0);
11190
- }, P.exports = w || 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), J) {
11191
- var B = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : me)("url");
11185
+ if (P.scheduleImmediate = typeof setImmediate < "u" ? function(H) {
11186
+ setImmediate(H);
11187
+ } : function(H) {
11188
+ setTimeout(H, 0);
11189
+ }, 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), J) {
11190
+ var B = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : Se)("url");
11192
11191
  Object.defineProperty(P, "location", {
11193
11192
  value: {
11194
11193
  get href() {
11195
11194
  return B.pathToFileURL ? B.pathToFileURL(process.cwd()).href + "/" : "file://" + function() {
11196
- var N = process.cwd();
11197
- return process.platform != "win32" ? N : "/" + N.replace(/\\/g, "/");
11195
+ var H = process.cwd();
11196
+ return process.platform != "win32" ? H : "/" + H.replace(/\\/g, "/");
11198
11197
  }() + "/";
11199
11198
  }
11200
11199
  }
11201
11200
  }), function() {
11202
- function N() {
11201
+ function H() {
11203
11202
  try {
11204
11203
  throw new Error();
11205
- } catch (Z) {
11206
- var q = Z.stack, k = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), V = null;
11204
+ } catch (e0) {
11205
+ var Q = e0.stack, k = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), X = null;
11207
11206
  do {
11208
- var Q = k.exec(q);
11209
- Q != null && (V = Q);
11210
- } while (Q != null);
11211
- return V[1];
11207
+ var V = k.exec(Q);
11208
+ V != null && (X = V);
11209
+ } while (V != null);
11210
+ return X[1];
11212
11211
  }
11213
11212
  }
11214
11213
  var U = null;
11215
11214
  Object.defineProperty(P, "document", {
11216
11215
  value: {
11217
11216
  get currentScript() {
11218
- return U == null && (U = { src: N() }), U;
11217
+ return U == null && (U = { src: H() }), U;
11219
11218
  }
11220
11219
  }
11221
11220
  });
11222
- }(), P.dartDeferredLibraryLoader = function(N, U, q) {
11221
+ }(), P.dartDeferredLibraryLoader = function(H, U, Q) {
11223
11222
  try {
11224
- load(N), U();
11223
+ load(H), U();
11225
11224
  } catch (k) {
11226
- q(k);
11225
+ Q(k);
11227
11226
  }
11228
11227
  };
11229
11228
  }
@@ -11234,7 +11233,7 @@ var Xe = Qe, Se = {};
11234
11233
  n[s] = e[s];
11235
11234
  }
11236
11235
  }
11237
- function q(e, n) {
11236
+ function Q(e, n) {
11238
11237
  for (var i = Object.keys(e), a = 0; a < i.length; a++) {
11239
11238
  var s = i[a];
11240
11239
  n.hasOwnProperty(s) || (n[s] = e[s]);
@@ -11243,7 +11242,7 @@ var Xe = Qe, Se = {};
11243
11242
  function k(e, n) {
11244
11243
  Object.assign(n, e);
11245
11244
  }
11246
- var V = function() {
11245
+ var X = function() {
11247
11246
  var e = function() {
11248
11247
  };
11249
11248
  e.prototype = { p: {} };
@@ -11262,9 +11261,9 @@ var Xe = Qe, Se = {};
11262
11261
  }
11263
11262
  return !1;
11264
11263
  }();
11265
- function Q(e, n) {
11264
+ function V(e, n) {
11266
11265
  if (e.prototype.constructor = e, e.prototype["$is" + e.name] = e, n != null) {
11267
- if (V) {
11266
+ if (X) {
11268
11267
  e.prototype.__proto__ = n.prototype;
11269
11268
  return;
11270
11269
  }
@@ -11272,17 +11271,17 @@ var Xe = Qe, Se = {};
11272
11271
  U(e.prototype, i), e.prototype = i;
11273
11272
  }
11274
11273
  }
11275
- function Z(e, n) {
11274
+ function e0(e, n) {
11276
11275
  for (var i = 0; i < n.length; i++)
11277
- Q(n[i], e);
11276
+ V(n[i], e);
11278
11277
  }
11279
- function W(e, n) {
11278
+ function q(e, n) {
11280
11279
  k(n.prototype, e.prototype), e.prototype.constructor = e;
11281
11280
  }
11282
- function K(e, n) {
11283
- q(n.prototype, e.prototype), e.prototype.constructor = e;
11281
+ function z(e, n) {
11282
+ Q(n.prototype, e.prototype), e.prototype.constructor = e;
11284
11283
  }
11285
- function Y(e, n, i, a) {
11284
+ function G(e, n, i, a) {
11286
11285
  var s = e;
11287
11286
  e[n] = s, e[i] = function() {
11288
11287
  e[i] = function() {
@@ -11299,7 +11298,7 @@ var Xe = Qe, Se = {};
11299
11298
  return o;
11300
11299
  };
11301
11300
  }
11302
- function u0(e, n, i, a) {
11301
+ function a0(e, n, i, a) {
11303
11302
  var s = e;
11304
11303
  e[n] = s, e[i] = function() {
11305
11304
  return e[n] === s && (e[n] = a()), e[i] = function() {
@@ -11307,7 +11306,7 @@ var Xe = Qe, Se = {};
11307
11306
  }, e[n];
11308
11307
  };
11309
11308
  }
11310
- function l0(e, n, i, a) {
11309
+ function o0(e, n, i, a) {
11311
11310
  var s = e;
11312
11311
  e[n] = s, e[i] = function() {
11313
11312
  if (e[n] === s) {
@@ -11338,18 +11337,18 @@ var Xe = Qe, Se = {};
11338
11337
  return i === null && (i = u.closureFromTearOff(n)), new i(this, null);
11339
11338
  };
11340
11339
  }
11341
- function X(e) {
11340
+ function Y(e) {
11342
11341
  var n = null;
11343
11342
  return function() {
11344
11343
  return n === null && (n = u.closureFromTearOff(e).prototype), n;
11345
11344
  };
11346
11345
  }
11347
- var G = 0;
11346
+ var W = 0;
11348
11347
  function n0(e, n, i, a, s, o, l, D, d, c) {
11349
- return typeof D == "number" && (D += G), { co: e, iS: n, iI: i, rC: a, dV: s, cs: o, fs: l, fT: D, aI: d || 0, nDA: c };
11348
+ return typeof D == "number" && (D += W), { co: e, iS: n, iI: i, rC: a, dV: s, cs: o, fs: l, fT: D, aI: d || 0, nDA: c };
11350
11349
  }
11351
11350
  function t0(e, n, i, a, s, o, l, D) {
11352
- var d = n0(e, !0, !1, i, a, s, o, l, D, !1), c = X(d);
11351
+ var d = n0(e, !0, !1, i, a, s, o, l, D, !1), c = Y(d);
11353
11352
  e[n] = c;
11354
11353
  }
11355
11354
  function i0(e, n, i, a, s, o, l, D, d, c) {
@@ -11357,7 +11356,7 @@ var Xe = Qe, Se = {};
11357
11356
  var p = n0(e, !1, i, a, s, o, l, D, d, !!c), y = p0(i, p);
11358
11357
  e[n] = y;
11359
11358
  }
11360
- function z(e) {
11359
+ function j(e) {
11361
11360
  var n = A.interceptorsByTag;
11362
11361
  if (!n) {
11363
11362
  A.interceptorsByTag = e;
@@ -11377,7 +11376,7 @@ var Xe = Qe, Se = {};
11377
11376
  var n = A.types, i = n.length;
11378
11377
  return n.push.apply(n, e), i;
11379
11378
  }
11380
- function e0(e, n) {
11379
+ function Z(e, n) {
11381
11380
  return U(n, e), e;
11382
11381
  }
11383
11382
  var t = function() {
@@ -11390,7 +11389,7 @@ var Xe = Qe, Se = {};
11390
11389
  return t0(l, D, i, a, s, [d], c, o);
11391
11390
  };
11392
11391
  };
11393
- return { inherit: Q, inheritMany: Z, mixin: W, mixinHard: K, installStaticTearOff: t0, installInstanceTearOff: i0, _instance_0u: e(0, 0, null, ["call$0"], 0), _instance_1u: e(0, 1, null, ["call$1"], 0), _instance_2u: e(0, 2, null, ["call$2"], 0), _instance_0i: e(1, 0, null, ["call$0"], 0), _instance_1i: e(1, 1, null, ["call$1"], 0), _instance_2i: e(1, 2, null, ["call$2"], 0), _static_0: n(0, null, ["call$0"], 0), _static_1: n(1, null, ["call$1"], 0), _static_2: n(2, null, ["call$2"], 0), makeConstList: s0, lazy: u0, lazyFinal: l0, lazyOld: Y, updateHolder: e0, convertToFastObject: D0, updateTypes: _0, setOrUpdateInterceptorsByTag: z, setOrUpdateLeafTags: r0 };
11392
+ return { inherit: V, inheritMany: e0, mixin: q, mixinHard: z, installStaticTearOff: t0, installInstanceTearOff: i0, _instance_0u: e(0, 0, null, ["call$0"], 0), _instance_1u: e(0, 1, null, ["call$1"], 0), _instance_2u: e(0, 2, null, ["call$2"], 0), _instance_0i: e(1, 0, null, ["call$0"], 0), _instance_1i: e(1, 1, null, ["call$1"], 0), _instance_2i: e(1, 2, null, ["call$2"], 0), _static_0: n(0, null, ["call$0"], 0), _static_1: n(1, null, ["call$1"], 0), _static_2: n(2, null, ["call$2"], 0), makeConstList: s0, lazy: a0, lazyFinal: o0, lazyOld: G, updateHolder: Z, convertToFastObject: D0, updateTypes: _0, setOrUpdateInterceptorsByTag: j, setOrUpdateLeafTags: r0 };
11394
11393
  }(), u = {
11395
11394
  JS_CONST: function() {
11396
11395
  },
@@ -11440,58 +11439,58 @@ var Xe = Qe, Se = {};
11440
11439
  }
11441
11440
  },
11442
11441
  Sort__dualPivotQuicksort(e, n, i, a) {
11443
- var s, o, l, D, d, c, p, y, g, m, h = $.JSInt_methods._tdivFast$1(i - n + 1, 6), E = n + h, C = i - h, I = $.JSInt_methods._tdivFast$1(n + i, 2), F = I - h, x = I + h, M = _.getInterceptor$asx(e), L = M.$index(e, E), O = M.$index(e, F), v = M.$index(e, I), H = M.$index(e, x), j = M.$index(e, C);
11444
- if (a.call$2(L, O) > 0 && (s = O, O = L, L = s), a.call$2(H, j) > 0 && (s = j, j = H, H = s), a.call$2(L, v) > 0 && (s = v, v = L, L = s), a.call$2(O, v) > 0 && (s = v, v = O, O = s), a.call$2(L, H) > 0 && (s = H, H = L, L = s), a.call$2(v, H) > 0 && (s = H, H = v, v = s), a.call$2(O, j) > 0 && (s = j, j = O, O = s), a.call$2(O, v) > 0 && (s = v, v = O, O = s), a.call$2(H, j) > 0 && (s = j, j = H, H = s), M.$indexSet(e, E, L), M.$indexSet(e, I, v), M.$indexSet(e, C, j), M.$indexSet(e, F, M.$index(e, n)), M.$indexSet(e, x, M.$index(e, i)), o = n + 1, l = i - 1, _.$eq$(a.call$2(O, H), 0)) {
11442
+ var s, o, l, D, d, c, p, y, g, m, h = $.JSInt_methods._tdivFast$1(i - n + 1, 6), E = n + h, C = i - h, I = $.JSInt_methods._tdivFast$1(n + i, 2), M = I - h, x = I + h, R = _.getInterceptor$asx(e), L = R.$index(e, E), w = R.$index(e, M), v = R.$index(e, I), N = R.$index(e, x), K = R.$index(e, C);
11443
+ if (a.call$2(L, w) > 0 && (s = w, w = L, L = s), a.call$2(N, K) > 0 && (s = K, K = N, N = s), a.call$2(L, v) > 0 && (s = v, v = L, L = s), a.call$2(w, v) > 0 && (s = v, v = w, w = s), a.call$2(L, N) > 0 && (s = N, N = L, L = s), a.call$2(v, N) > 0 && (s = N, N = v, v = s), a.call$2(w, K) > 0 && (s = K, K = w, w = s), a.call$2(w, v) > 0 && (s = v, v = w, w = s), a.call$2(N, K) > 0 && (s = K, K = N, N = s), R.$indexSet(e, E, L), R.$indexSet(e, I, v), R.$indexSet(e, C, K), R.$indexSet(e, M, R.$index(e, n)), R.$indexSet(e, x, R.$index(e, i)), o = n + 1, l = i - 1, _.$eq$(a.call$2(w, N), 0)) {
11445
11444
  for (D = o; D <= l; ++D)
11446
- if (d = M.$index(e, D), c = a.call$2(d, O), c !== 0)
11445
+ if (d = R.$index(e, D), c = a.call$2(d, w), c !== 0)
11447
11446
  if (c < 0)
11448
- D !== o && (M.$indexSet(e, D, M.$index(e, o)), M.$indexSet(e, o, d)), ++o;
11447
+ D !== o && (R.$indexSet(e, D, R.$index(e, o)), R.$indexSet(e, o, d)), ++o;
11449
11448
  else
11450
11449
  for (; ; )
11451
- if (c = a.call$2(M.$index(e, l), O), c > 0) {
11450
+ if (c = a.call$2(R.$index(e, l), w), c > 0) {
11452
11451
  --l;
11453
11452
  continue;
11454
11453
  } else if (p = l - 1, c < 0) {
11455
- M.$indexSet(e, D, M.$index(e, o)), y = o + 1, M.$indexSet(e, o, M.$index(e, l)), M.$indexSet(e, l, d), l = p, o = y;
11454
+ R.$indexSet(e, D, R.$index(e, o)), y = o + 1, R.$indexSet(e, o, R.$index(e, l)), R.$indexSet(e, l, d), l = p, o = y;
11456
11455
  break;
11457
11456
  } else {
11458
- M.$indexSet(e, D, M.$index(e, l)), M.$indexSet(e, l, d), l = p;
11457
+ R.$indexSet(e, D, R.$index(e, l)), R.$indexSet(e, l, d), l = p;
11459
11458
  break;
11460
11459
  }
11461
11460
  g = !0;
11462
11461
  } else {
11463
11462
  for (D = o; D <= l; ++D)
11464
- if (d = M.$index(e, D), a.call$2(d, O) < 0)
11465
- D !== o && (M.$indexSet(e, D, M.$index(e, o)), M.$indexSet(e, o, d)), ++o;
11466
- else if (a.call$2(d, H) > 0)
11463
+ if (d = R.$index(e, D), a.call$2(d, w) < 0)
11464
+ D !== o && (R.$indexSet(e, D, R.$index(e, o)), R.$indexSet(e, o, d)), ++o;
11465
+ else if (a.call$2(d, N) > 0)
11467
11466
  for (; ; )
11468
- if (a.call$2(M.$index(e, l), H) > 0) {
11467
+ if (a.call$2(R.$index(e, l), N) > 0) {
11469
11468
  if (--l, l < D)
11470
11469
  break;
11471
11470
  continue;
11472
11471
  } else {
11473
- p = l - 1, a.call$2(M.$index(e, l), O) < 0 ? (M.$indexSet(e, D, M.$index(e, o)), y = o + 1, M.$indexSet(e, o, M.$index(e, l)), M.$indexSet(e, l, d), o = y) : (M.$indexSet(e, D, M.$index(e, l)), M.$indexSet(e, l, d)), l = p;
11472
+ p = l - 1, a.call$2(R.$index(e, l), w) < 0 ? (R.$indexSet(e, D, R.$index(e, o)), y = o + 1, R.$indexSet(e, o, R.$index(e, l)), R.$indexSet(e, l, d), o = y) : (R.$indexSet(e, D, R.$index(e, l)), R.$indexSet(e, l, d)), l = p;
11474
11473
  break;
11475
11474
  }
11476
11475
  g = !1;
11477
11476
  }
11478
- if (m = o - 1, M.$indexSet(e, n, M.$index(e, m)), M.$indexSet(e, m, O), m = l + 1, M.$indexSet(e, i, M.$index(e, m)), M.$indexSet(e, m, H), u.Sort__doSort(e, n, o - 2, a), u.Sort__doSort(e, l + 2, i, a), !g)
11477
+ if (m = o - 1, R.$indexSet(e, n, R.$index(e, m)), R.$indexSet(e, m, w), m = l + 1, R.$indexSet(e, i, R.$index(e, m)), R.$indexSet(e, m, N), u.Sort__doSort(e, n, o - 2, a), u.Sort__doSort(e, l + 2, i, a), !g)
11479
11478
  if (o < E && l > C) {
11480
- for (; _.$eq$(a.call$2(M.$index(e, o), O), 0); )
11479
+ for (; _.$eq$(a.call$2(R.$index(e, o), w), 0); )
11481
11480
  ++o;
11482
- for (; _.$eq$(a.call$2(M.$index(e, l), H), 0); )
11481
+ for (; _.$eq$(a.call$2(R.$index(e, l), N), 0); )
11483
11482
  --l;
11484
11483
  for (D = o; D <= l; ++D)
11485
- if (d = M.$index(e, D), a.call$2(d, O) === 0)
11486
- D !== o && (M.$indexSet(e, D, M.$index(e, o)), M.$indexSet(e, o, d)), ++o;
11487
- else if (a.call$2(d, H) === 0)
11484
+ if (d = R.$index(e, D), a.call$2(d, w) === 0)
11485
+ D !== o && (R.$indexSet(e, D, R.$index(e, o)), R.$indexSet(e, o, d)), ++o;
11486
+ else if (a.call$2(d, N) === 0)
11488
11487
  for (; ; )
11489
- if (a.call$2(M.$index(e, l), H) === 0) {
11488
+ if (a.call$2(R.$index(e, l), N) === 0) {
11490
11489
  if (--l, l < D)
11491
11490
  break;
11492
11491
  continue;
11493
11492
  } else {
11494
- p = l - 1, a.call$2(M.$index(e, l), O) < 0 ? (M.$indexSet(e, D, M.$index(e, o)), y = o + 1, M.$indexSet(e, o, M.$index(e, l)), M.$indexSet(e, l, d), o = y) : (M.$indexSet(e, D, M.$index(e, l)), M.$indexSet(e, l, d)), l = p;
11493
+ p = l - 1, a.call$2(R.$index(e, l), w) < 0 ? (R.$indexSet(e, D, R.$index(e, o)), y = o + 1, R.$indexSet(e, o, R.$index(e, l)), R.$indexSet(e, l, d), o = y) : (R.$indexSet(e, D, R.$index(e, l)), R.$indexSet(e, l, d)), l = p;
11495
11494
  break;
11496
11495
  }
11497
11496
  u.Sort__doSort(e, o, l, a);
@@ -11848,12 +11847,12 @@ var Xe = Qe, Se = {};
11848
11847
  return n;
11849
11848
  },
11850
11849
  Closure_fromTearOff(e) {
11851
- var n, i, a, s, o, l, D, d, c, p, y = e.co, g = e.iS, m = e.iI, h = e.nDA, E = e.aI, C = e.fs, I = e.cs, F = C[0], x = I[0], M = y[F], L = e.fT;
11850
+ var n, i, a, s, o, l, D, d, c, p, y = e.co, g = e.iS, m = e.iI, h = e.nDA, E = e.aI, C = e.fs, I = e.cs, M = C[0], x = I[0], R = y[M], L = e.fT;
11852
11851
  for (L.toString, n = Object.create(g ? new u.StaticClosure().constructor.prototype : new u.BoundClosure(null, null).constructor.prototype), n.$initialize = n.constructor, g ? i = function() {
11853
11852
  this.$initialize();
11854
- } : i = function(v, H) {
11855
- this.$initialize(v, H);
11856
- }, n.constructor = i, i.prototype = n, n.$_name = F, n.$_target = M, a = !g, a ? s = u.Closure_forwardCallTo(F, M, m, h) : (n.$static_name = F, s = M), n.$signature = u.Closure__computeSignatureFunctionNewRti(L, g, m), n[x] = s, o = s, l = 1; l < C.length; ++l)
11853
+ } : i = function(v, N) {
11854
+ this.$initialize(v, N);
11855
+ }, n.constructor = i, i.prototype = n, n.$_name = M, n.$_target = R, a = !g, a ? s = u.Closure_forwardCallTo(M, R, m, h) : (n.$static_name = M, s = R), n.$signature = u.Closure__computeSignatureFunctionNewRti(L, g, m), n[x] = s, o = s, l = 1; l < C.length; ++l)
11857
11856
  D = C[l], typeof D == "string" ? (d = y[D], c = D, D = d) : c = "", p = I[l], p != null && (a && (D = u.Closure_forwardCallTo(c, D, m, h)), n[p] = D), l === E && (o = D);
11858
11857
  return n["call*"] = o, n.$requiredArgCount = e.rC, n.$defaultValues = e.dV, i;
11859
11858
  },
@@ -12301,8 +12300,8 @@ var Xe = Qe, Se = {};
12301
12300
  return u._Universe_eval(A.typeUniverse, e, !1);
12302
12301
  },
12303
12302
  _substitute(e, n, i, a) {
12304
- var s, o, l, D, d, c, p, y, g, m, h, E, C, I, F, x, M = n._kind;
12305
- switch (M) {
12303
+ var s, o, l, D, d, c, p, y, g, m, h, E, C, I, M, x, R = n._kind;
12304
+ switch (R) {
12306
12305
  case 5:
12307
12306
  case 1:
12308
12307
  case 2:
@@ -12324,9 +12323,9 @@ var Xe = Qe, Se = {};
12324
12323
  case 13:
12325
12324
  return C = n._rest, a += C.length, I = u._substituteArray(e, C, i, a), d = n._primary, c = u._substitute(e, d, i, a), I === C && c === d ? n : u._Universe__lookupGenericFunctionRti(e, c, I, !0);
12326
12325
  case 14:
12327
- return F = n._primary, F < a || (x = i[F - a], x == null) ? n : x;
12326
+ return M = n._primary, M < a || (x = i[M - a], x == null) ? n : x;
12328
12327
  default:
12329
- throw u.wrapException(u.AssertionError$("Attempted to substitute unexpected RTI kind " + M));
12328
+ throw u.wrapException(u.AssertionError$("Attempted to substitute unexpected RTI kind " + R));
12330
12329
  }
12331
12330
  },
12332
12331
  _substituteArray(e, n, i, a) {
@@ -12588,28 +12587,28 @@ var Xe = Qe, Se = {};
12588
12587
  return o + "})";
12589
12588
  },
12590
12589
  _functionRtiToString(e, n, i) {
12591
- var a, s, o, l, D, d, c, p, y, g, m, h, E, C, I, F, x, M, L, O, v, H = ", ";
12590
+ var a, s, o, l, D, d, c, p, y, g, m, h, E, C, I, M, x, R, L, w, v, N = ", ";
12592
12591
  if (i != null) {
12593
12592
  for (a = i.length, n == null ? (n = u._setArrayType([], r.JSArray_String), s = null) : s = n.length, o = n.length, l = a; l > 0; --l)
12594
12593
  n.push("T" + (o + l));
12595
- for (D = r.nullable_Object, d = r.legacy_Object, c = "<", p = "", l = 0; l < a; ++l, p = H)
12594
+ for (D = r.nullable_Object, d = r.legacy_Object, c = "<", p = "", l = 0; l < a; ++l, p = N)
12596
12595
  c = $.JSString_methods.$add(c + p, n[n.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 " + u._rtiToString(y, n));
12597
12596
  c += ">";
12598
12597
  } else
12599
12598
  c = "", s = null;
12600
- for (D = e._primary, h = e._rest, E = h._requiredPositional, C = E.length, I = h._optionalPositional, F = I.length, x = h._named, M = x.length, L = u._rtiToString(D, n), O = "", v = "", l = 0; l < C; ++l, v = H)
12601
- O += v + u._rtiToString(E[l], n);
12602
- if (F > 0) {
12603
- for (O += v + "[", v = "", l = 0; l < F; ++l, v = H)
12604
- O += v + u._rtiToString(I[l], n);
12605
- O += "]";
12606
- }
12599
+ for (D = e._primary, h = e._rest, E = h._requiredPositional, C = E.length, I = h._optionalPositional, M = I.length, x = h._named, R = x.length, L = u._rtiToString(D, n), w = "", v = "", l = 0; l < C; ++l, v = N)
12600
+ w += v + u._rtiToString(E[l], n);
12607
12601
  if (M > 0) {
12608
- for (O += v + "{", v = "", l = 0; l < M; l += 3, v = H)
12609
- O += v, x[l + 1] && (O += "required "), O += u._rtiToString(x[l + 2], n) + " " + x[l];
12610
- O += "}";
12602
+ for (w += v + "[", v = "", l = 0; l < M; ++l, v = N)
12603
+ w += v + u._rtiToString(I[l], n);
12604
+ w += "]";
12605
+ }
12606
+ if (R > 0) {
12607
+ for (w += v + "{", v = "", l = 0; l < R; l += 3, v = N)
12608
+ w += v, x[l + 1] && (w += "required "), w += u._rtiToString(x[l + 2], n) + " " + x[l];
12609
+ w += "}";
12611
12610
  }
12612
- return s != null && (n.toString, n.length = s), c + "(" + O + ") => " + L;
12611
+ return s != null && (n.toString, n.length = s), c + "(" + w + ") => " + L;
12613
12612
  },
12614
12613
  _rtiToString(e, n) {
12615
12614
  var i, a, s, o, l, D, d = e._kind;
@@ -12967,7 +12966,7 @@ var Xe = Qe, Se = {};
12967
12966
  return d === 12 ? n === r.JavaScriptFunction ? !0 : o ? !1 : u._isFunctionSubtype(e, n, i, a, s) : l === 9 ? d !== 9 ? !1 : u._isInterfaceSubtype(e, n, i, a, s) : (o = l === 11, o && a === r.Record ? !0 : o && d === 11 ? u._isRecordSubtype(e, n, i, a, s) : !1);
12968
12967
  },
12969
12968
  _isFunctionSubtype(e, n, i, a, s) {
12970
- var o, l, D, d, c, p, y, g, m, h, E, C, I, F, x, M, L, O, v, H, j, c0;
12969
+ var o, l, D, d, c, p, y, g, m, h, E, C, I, M, x, R, L, w, v, N, K, c0;
12971
12970
  if (!u._isSubtype(e, n._primary, i, a._primary, s) || (o = n._rest, l = a._rest, D = o._requiredPositional, d = l._requiredPositional, c = D.length, p = d.length, c > p) || (y = p - c, g = o._optionalPositional, m = l._optionalPositional, h = g.length, E = m.length, c + h < p + E))
12972
12971
  return !1;
12973
12972
  for (C = 0; C < c; ++C)
@@ -12979,23 +12978,23 @@ var Xe = Qe, Se = {};
12979
12978
  for (C = 0; C < E; ++C)
12980
12979
  if (I = g[y + C], !u._isSubtype(e, m[C], s, I, i))
12981
12980
  return !1;
12982
- for (F = o._named, x = l._named, M = F.length, L = x.length, O = 0, v = 0; v < L; v += 3)
12983
- for (H = x[v]; ; ) {
12984
- if (O >= M || (j = F[O], O += 3, H < j))
12981
+ for (M = o._named, x = l._named, R = M.length, L = x.length, w = 0, v = 0; v < L; v += 3)
12982
+ for (N = x[v]; ; ) {
12983
+ if (w >= R || (K = M[w], w += 3, N < K))
12985
12984
  return !1;
12986
- if (c0 = F[O - 2], j < H) {
12985
+ if (c0 = M[w - 2], K < N) {
12987
12986
  if (c0)
12988
12987
  return !1;
12989
12988
  continue;
12990
12989
  }
12991
- if (I = x[v + 1], c0 && !I || (I = F[O - 1], !u._isSubtype(e, x[v + 2], s, I, i)))
12990
+ if (I = x[v + 1], c0 && !I || (I = M[w - 1], !u._isSubtype(e, x[v + 2], s, I, i)))
12992
12991
  return !1;
12993
12992
  break;
12994
12993
  }
12995
- for (; O < M; ) {
12996
- if (F[O + 1])
12994
+ for (; w < R; ) {
12995
+ if (M[w + 1])
12997
12996
  return !1;
12998
- O += 3;
12997
+ w += 3;
12999
12998
  }
13000
12999
  return !0;
13001
13000
  },
@@ -13688,8 +13687,8 @@ var Xe = Qe, Se = {};
13688
13687
  l.digest = n, l._extended = i, l._hash_sink$_sink = a, l._currentChunk = s, l._lengthInBytes = 0, l._pendingData = o, l._isClosed = !1;
13689
13688
  },
13690
13689
  DateSymbols: function(n, i, a, s, o, l, D, d, c, p, y, g, m, h, E, C, I) {
13691
- var F = this;
13692
- F.NAME = n, F.ERAS = i, F.ERANAMES = a, F.NARROWMONTHS = s, F.STANDALONENARROWMONTHS = o, F.MONTHS = l, F.STANDALONEMONTHS = D, F.SHORTMONTHS = d, F.STANDALONESHORTMONTHS = c, F.WEEKDAYS = p, F.STANDALONEWEEKDAYS = y, F.SHORTWEEKDAYS = g, F.STANDALONESHORTWEEKDAYS = m, F.STANDALONENARROWWEEKDAYS = h, F.SHORTQUARTERS = E, F.QUARTERS = C, F.AMPMS = I;
13690
+ var M = this;
13691
+ M.NAME = n, M.ERAS = i, M.ERANAMES = a, M.NARROWMONTHS = s, M.STANDALONENARROWMONTHS = o, M.MONTHS = l, M.STANDALONEMONTHS = D, M.SHORTMONTHS = d, M.STANDALONESHORTMONTHS = c, M.WEEKDAYS = p, M.STANDALONEWEEKDAYS = y, M.SHORTWEEKDAYS = g, M.STANDALONESHORTWEEKDAYS = m, M.STANDALONENARROWWEEKDAYS = h, M.SHORTQUARTERS = E, M.QUARTERS = C, M.AMPMS = I;
13693
13692
  },
13694
13693
  DateBuilder: function(n, i) {
13695
13694
  var a = this;
@@ -14300,8 +14299,8 @@ var Xe = Qe, Se = {};
14300
14299
  var g = this;
14301
14300
  g.sparklineDimension = n, g.isCumulative = i, g.schemaNames = a, g.dimensions = s, g.metrics = o, g.filters = l, g.sorts = D, g.limit = d, g.isComparable = c, g.periodType = p, g.timezone = y;
14302
14301
  },
14303
- TableDatasourceConfigModel$(e, n, i, a, s, o, l, D, d, c, p, y, g, m, h, E, C, I, F, x) {
14304
- return new u.TableDatasourceConfigModel(n, D, I, g, m, E, o, a, h, e, d, C, i, p, s, F, c, l, y, x);
14302
+ TableDatasourceConfigModel$(e, n, i, a, s, o, l, D, d, c, p, y, g, m, h, E, C, I, M, x) {
14303
+ return new u.TableDatasourceConfigModel(n, D, I, g, m, E, o, a, h, e, d, C, i, p, s, M, c, l, y, x);
14305
14304
  },
14306
14305
  TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson(e) {
14307
14306
  var n, i, a, s, o, l, D, d, c, p = "showGrandTotal", y = u.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson(e), g = e.$index(0, "rollup");
@@ -14345,9 +14344,9 @@ var Xe = Qe, Se = {};
14345
14344
  DataSourceRowColumnConfig_columnIds_closure1: function(n) {
14346
14345
  this.$this = n;
14347
14346
  },
14348
- TableDatasourceConfigModel: function(n, i, a, s, o, l, D, d, c, p, y, g, m, h, E, C, I, F, x, M) {
14347
+ TableDatasourceConfigModel: function(n, i, a, s, o, l, D, d, c, p, y, g, m, h, E, C, I, M, x, R) {
14349
14348
  var L = this;
14350
- L.columnsWidth = n, L.isDrillable = i, L.showGrandTotal = a, L.rollup = s, L.rollupPosition = o, L.rowsPerPage = l, L.isBlend = D, L._drillDimension = d, L._rowIds = c, L._columnIds = p, L._joinDatasources = y, L.schemaNames = g, L.dimensions = m, L.metrics = h, L.filters = E, L.sorts = C, L.limit = I, L.isComparable = F, L.periodType = x, L.timezone = M;
14349
+ L.columnsWidth = n, L.isDrillable = i, L.showGrandTotal = a, L.rollup = s, L.rollupPosition = o, L.rowsPerPage = l, L.isBlend = D, L._drillDimension = d, L._rowIds = c, L._columnIds = p, L._joinDatasources = y, L.schemaNames = g, L.dimensions = m, L.metrics = h, L.filters = E, L.sorts = C, L.limit = I, L.isComparable = M, L.periodType = x, L.timezone = R;
14351
14350
  },
14352
14351
  TableDatasourceConfigModel_drilledDimensions_closure: function(n) {
14353
14352
  this.$this = n;
@@ -14431,32 +14430,32 @@ var Xe = Qe, Se = {};
14431
14430
  return e instanceof u.BaseXYDatasourceConfigModel && e.isCumulative === !0 ? i = !0 : i = e instanceof u.ScorecardDatasourceConfigModel && e.isCumulative, i ? (i = r.XYDatasetModel, u.List_List$of(u.ListExtensions_mapIndexed(n, new u.accumulate_closure(e), i, i), !0, i)) : n;
14432
14431
  },
14433
14432
  formatBaseXYChartData(e, n, i, a, s) {
14434
- var o, l, D, d, c, p, y, g, m, h, E, C, I, F, x, M, L, O, v, H, j, c0, m0, a0, h0, b0, M0, R0, A0, I0, x0, F0, H0 = null;
14433
+ var o, l, D, d, c, p, y, g, m, h, E, C, I, M, x, R, L, w, v, N, K, c0, m0, u0, h0, I0, x0, L0, A0, F0, O0, M0, N0 = null;
14435
14434
  if (i.length === 0)
14436
- return o = u._setArrayType([], r.JSArray_String), l = u._setArrayType([], r.JSArray_XYDatasetModel), D = u.IterableExtension_get_firstOrNull(i), new u.BaseXYChartDataModel(e, o, l, new u.DateComparison(D == null ? H0 : D.dateRange, H0));
14435
+ return o = u._setArrayType([], r.JSArray_String), l = u._setArrayType([], r.JSArray_XYDatasetModel), D = u.IterableExtension_get_firstOrNull(i), new u.BaseXYChartDataModel(e, o, l, new u.DateComparison(D == null ? N0 : D.dateRange, N0));
14437
14436
  for (d = $.JSArray_methods.get$first(i).columns, o = u._arrayInstanceType(d), l = o._eval$1("WhereIterable<1>"), c = u.List_List$of(new u.WhereIterable(d, new u.formatBaseXYChartData_closure(), l), !0, l._eval$1("Iterable.E")), l = u._arrayInstanceType(c)._eval$1("WhereIterable<1>"), p = u.List_List$of(new u.WhereIterable(c, new u.formatBaseXYChartData_closure0(), l), !0, l._eval$1("Iterable.E")), l = r.QueryResponse, y = u._formatRows(u.ListExtension_sublistOrEmpty(i, 0, 1, l), s), g = u._formatRows(u.ListExtension_sublistOrEmpty(i, 1, 2, l), s), g.length !== 0 && (o = o._eval$1("MappedListIterable<1,ComparisonDataColumn>"), m = u.List_List$of(new u.MappedListIterable(d, new u.formatBaseXYChartData_closure1(), o), !0, o._eval$1("ListIterable.E")), h = u.compare(new u.ComparisonData(m, g), new u.ComparisonData(m, y)), g = h.comparison, y = h.main), o = r.String, l = u.LinkedHashMap_LinkedHashMap$_empty(o, r.bool), D = p.length, E = 0; C = p.length, E < C; p.length === D || (0, u.throwConcurrentModificationError)(p), ++E)
14438
14437
  I = p[E], l.$indexSet(0, I.id, I.nullable);
14439
14438
  for (D = u.LinkedHashMap_LinkedHashMap$_empty(o, o), E = 0; E < p.length; p.length === C || (0, u.throwConcurrentModificationError)(p), ++E)
14440
14439
  I = p[E], D.$indexSet(0, I.id, I.label);
14441
- if (F = u.LinkedHashMap_LinkedHashMap$_empty(o, o), x = u.LinkedHashMap_LinkedHashMap$_empty(o, o), n.breakdownDimension == null) {
14442
- for (C = u.LinkedHashMap_LinkedHashMap$_empty(o, r.int), M = 0; M < d.length; ++M)
14443
- C.$indexSet(0, d[M].id, M);
14444
- for (F.addAll$1(0, D), L = p.length, E = 0; E < p.length; p.length === L || (0, u.throwConcurrentModificationError)(p), ++E)
14445
- O = p[E].id, x.$indexSet(0, O, O);
14440
+ if (M = u.LinkedHashMap_LinkedHashMap$_empty(o, o), x = u.LinkedHashMap_LinkedHashMap$_empty(o, o), n.breakdownDimension == null) {
14441
+ for (C = u.LinkedHashMap_LinkedHashMap$_empty(o, r.int), R = 0; R < d.length; ++R)
14442
+ C.$indexSet(0, d[R].id, R);
14443
+ for (M.addAll$1(0, D), L = p.length, E = 0; E < p.length; p.length === L || (0, u.throwConcurrentModificationError)(p), ++E)
14444
+ w = p[E].id, x.$indexSet(0, w, w);
14446
14445
  L = u._arrayInstanceType(y)._eval$1("ExpandIterable<1,List<@>>"), y = u.List_List$of(new u.ExpandIterable(y, new u.formatBaseXYChartData_closure2(p, C), L), !0, L._eval$1("Iterable.E")), g.length !== 0 && (L = u._arrayInstanceType(g)._eval$1("ExpandIterable<1,List<@>>"), g = u.List_List$of(new u.ExpandIterable(g, new u.formatBaseXYChartData_closure3(p, C), L), !0, L._eval$1("Iterable.E")));
14447
14446
  } else if (c.length > 1) {
14448
- for (C = u.LinkedHashMap_LinkedHashMap$_empty(o, r.int), M = 0; M < d.length; ++M)
14449
- C.$indexSet(0, d[M].id, M);
14450
- C = new u.formatBaseXYChartData_expandRowsByMetric($.JSArray_methods.indexWhere$1(d, new u.formatBaseXYChartData_closure4(n)), p, C, D, F, x), y = C.call$1(y), g.length !== 0 && (g = C.call$1(g));
14447
+ for (C = u.LinkedHashMap_LinkedHashMap$_empty(o, r.int), R = 0; R < d.length; ++R)
14448
+ C.$indexSet(0, d[R].id, R);
14449
+ C = new u.formatBaseXYChartData_expandRowsByMetric($.JSArray_methods.indexWhere$1(d, new u.formatBaseXYChartData_closure4(n)), p, C, D, M, x), y = C.call$1(y), g.length !== 0 && (g = C.call$1(g));
14451
14450
  }
14452
- for (C = r.JSArray_String, v = u._setArrayType([], C), H = u._setArrayType([], C), C = y.length, E = 0; E < y.length; y.length === C || (0, u.throwConcurrentModificationError)(y), ++E)
14453
- j = y[E], L = _.getInterceptor$asx(j), v.push(_.toString$0$(L.$index(j, 0))), H.push(_.toString$0$(L.$index(j, 1)));
14454
- for (C = u.LinkedHashSet_LinkedHashSet$from(v, o), v = u.List_List$of(C, !0, u._instanceType(C)._precomputed1), o = u.LinkedHashSet_LinkedHashSet$from(H, o), c0 = u.List_List$of(o, !0, u._instanceType(o)._precomputed1), m0 = u._setArrayType([], r.JSArray_XYDatasetModel), o = c0.length, C = _.getInterceptor$asx(g), L = r.JSArray_nullable_num, E = 0; E < c0.length; c0.length === o || (0, u.throwConcurrentModificationError)(c0), ++E) {
14455
- for (a0 = c0[E], h0 = u._setArrayType([], L), b0 = u._setArrayType([], L), M0 = x.$index(0, a0), O = l.$index(0, M0 ?? a0), R0 = O === !0, O = F.$index(0, a0), A0 = O ?? D.$index(0, a0), A0 == null && (A0 = a0), O = v.length, I0 = 0; I0 < v.length; v.length === O || (0, u.throwConcurrentModificationError)(v), ++I0)
14456
- x0 = v[I0], F0 = u.IterableExtension_firstWhereOrNull(y, new u.formatBaseXYChartData_closure5(x0, a0)), h0.push(u._parseMetricValue(F0 == null ? H0 : u.ListExtension_elementAtOrNull(F0, 2), R0)), C.get$length(g) !== 0 && (F0 = u.IterableExtension_firstWhereOrNull(g, new u.formatBaseXYChartData_closure6(x0, a0)), b0.push(u._parseMetricValue(F0 == null ? H0 : u.ListExtension_elementAtOrNull(F0, 2), R0)));
14457
- m0.push(new u.XYDatasetModel(A0, !1, h0)), b0.length !== 0 && m0.push(new u.XYDatasetModel(A0, !0, b0));
14451
+ for (C = r.JSArray_String, v = u._setArrayType([], C), N = u._setArrayType([], C), C = y.length, E = 0; E < y.length; y.length === C || (0, u.throwConcurrentModificationError)(y), ++E)
14452
+ K = y[E], L = _.getInterceptor$asx(K), v.push(_.toString$0$(L.$index(K, 0))), N.push(_.toString$0$(L.$index(K, 1)));
14453
+ for (C = u.LinkedHashSet_LinkedHashSet$from(v, o), v = u.List_List$of(C, !0, u._instanceType(C)._precomputed1), o = u.LinkedHashSet_LinkedHashSet$from(N, o), c0 = u.List_List$of(o, !0, u._instanceType(o)._precomputed1), m0 = u._setArrayType([], r.JSArray_XYDatasetModel), o = c0.length, C = _.getInterceptor$asx(g), L = r.JSArray_nullable_num, E = 0; E < c0.length; c0.length === o || (0, u.throwConcurrentModificationError)(c0), ++E) {
14454
+ for (u0 = c0[E], h0 = u._setArrayType([], L), I0 = u._setArrayType([], L), x0 = x.$index(0, u0), w = l.$index(0, x0 ?? u0), L0 = w === !0, w = M.$index(0, u0), A0 = w ?? D.$index(0, u0), A0 == null && (A0 = u0), w = v.length, F0 = 0; F0 < v.length; v.length === w || (0, u.throwConcurrentModificationError)(v), ++F0)
14455
+ O0 = v[F0], M0 = u.IterableExtension_firstWhereOrNull(y, new u.formatBaseXYChartData_closure5(O0, u0)), h0.push(u._parseMetricValue(M0 == null ? N0 : u.ListExtension_elementAtOrNull(M0, 2), L0)), C.get$length(g) !== 0 && (M0 = u.IterableExtension_firstWhereOrNull(g, new u.formatBaseXYChartData_closure6(O0, u0)), I0.push(u._parseMetricValue(M0 == null ? N0 : u.ListExtension_elementAtOrNull(M0, 2), L0)));
14456
+ m0.push(new u.XYDatasetModel(A0, !1, h0)), I0.length !== 0 && m0.push(new u.XYDatasetModel(A0, !0, I0));
14458
14457
  }
14459
- return m0 = u.accumulate(n, m0), o = u.IterableExtension_get_firstOrNull(i), o = o == null ? H0 : o.dateRange, l = u.ListExtension_elementAtOrNull(i, 1), new u.BaseXYChartDataModel(e, v, m0, new u.DateComparison(o, l == null ? H0 : l.dateRange));
14458
+ return m0 = u.accumulate(n, m0), o = u.IterableExtension_get_firstOrNull(i), o = o == null ? N0 : o.dateRange, l = u.ListExtension_elementAtOrNull(i, 1), new u.BaseXYChartDataModel(e, v, m0, new u.DateComparison(o, l == null ? N0 : l.dateRange));
14460
14459
  },
14461
14460
  _formatRows_closure: function(n, i) {
14462
14461
  this.response = n, this.timezone = i;
@@ -14523,14 +14522,14 @@ var Xe = Qe, Se = {};
14523
14522
  return n.length === 0 ? u._setArrayType([], r.JSArray_List_dynamic) : (a = $.JSArray_methods.get$first(n), s = a.rows, o = u._arrayInstanceType(s)._eval$1("MappedListIterable<1,List<@>>"), u.List_List$of(new u.MappedListIterable(s, new u._formatRows_closure0(a, i), o), !0, o._eval$1("ListIterable.E")));
14524
14523
  },
14525
14524
  formatCircularChartData(e, n, i, a) {
14526
- var s, o, l, D, d, c, p, y, g, m, h, E, C, I, F = null;
14525
+ var s, o, l, D, d, c, p, y, g, m, h, E, C, I, M = null;
14527
14526
  if (n.length === 0)
14528
- return s = u._setArrayType([], r.JSArray_String), new u.CircularDataModel(u._setArrayType([], r.JSArray_CircularDatasetModel), s, new u.DateComparison(F, F));
14527
+ return s = u._setArrayType([], r.JSArray_String), new u.CircularDataModel(u._setArrayType([], r.JSArray_CircularDatasetModel), s, new u.DateComparison(M, M));
14529
14528
  for (s = r.QueryResponse, o = u._formatRows0(e, u.ListExtension_sublistOrEmpty(n, 0, 1, s), a), l = u._formatRows0(e, u.ListExtension_sublistOrEmpty(n, 1, 2, s), a), D = $.JSArray_methods.get$first(n).columns, l.length !== 0 && (s = u._arrayInstanceType(D)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), d = u.List_List$of(new u.MappedListIterable(D, new u.formatCircularChartData_closure(), s), !0, s._eval$1("ListIterable.E")), c = u.compare(new u.ComparisonData(d, l), new u.ComparisonData(d, o)), l = c.comparison, o = c.main), s = r.JSArray_String, p = u._setArrayType([], s), y = o.length, g = 0; g < o.length; o.length === y || (0, u.throwConcurrentModificationError)(o), ++g)
14530
14529
  p.push(_.toString$0$(_.$index$asx(o[g], 0)));
14531
14530
  for (y = u.LinkedHashSet_LinkedHashSet$from(p, r.String), p = u.List_List$of(y, !0, u._instanceType(y)._precomputed1), m = u._setArrayType([], r.JSArray_CircularDatasetModel), y = p.length, g = 0; g < y; ++g)
14532
- h = p[g], E = u.IterableExtension_firstWhereOrNull(o, new u.formatCircularChartData_closure0(h)), C = E == null ? F : u.ListExtension_elementAtOrNull(E, 1), C == null && (C = 0), l.length !== 0 ? (E = u.IterableExtension_firstWhereOrNull(l, new u.formatCircularChartData_closure1(h)), I = E == null ? F : u.ListExtension_elementAtOrNull(E, 1), I == null && (I = 0)) : I = F, m.push(new u.CircularDatasetModel(h, u.num_parse(C), I));
14533
- return s = u.IterableExtension_foldIndexed(D, u._setArrayType([], s), new u.formatCircularChartData_closure2()), y = u.IterableExtension_get_firstOrNull(n), y = y == null ? F : y.dateRange, E = u.ListExtension_elementAtOrNull(n, 1), new u.CircularDataModel(m, s, new u.DateComparison(y, E == null ? F : E.dateRange));
14531
+ h = p[g], E = u.IterableExtension_firstWhereOrNull(o, new u.formatCircularChartData_closure0(h)), C = E == null ? M : u.ListExtension_elementAtOrNull(E, 1), C == null && (C = 0), l.length !== 0 ? (E = u.IterableExtension_firstWhereOrNull(l, new u.formatCircularChartData_closure1(h)), I = E == null ? M : u.ListExtension_elementAtOrNull(E, 1), I == null && (I = 0)) : I = M, m.push(new u.CircularDatasetModel(h, u.num_parse(C), I));
14532
+ return s = u.IterableExtension_foldIndexed(D, u._setArrayType([], s), new u.formatCircularChartData_closure2()), y = u.IterableExtension_get_firstOrNull(n), y = y == null ? M : y.dateRange, E = u.ListExtension_elementAtOrNull(n, 1), new u.CircularDataModel(m, s, new u.DateComparison(y, E == null ? M : E.dateRange));
14534
14533
  },
14535
14534
  _formatRows_closure0: function(n, i) {
14536
14535
  this.response = n, this.timezone = i;
@@ -14559,12 +14558,12 @@ var Xe = Qe, Se = {};
14559
14558
  return new u.RowInfo(o, _.map$1$1$ax(i, new u._getRowInfo_closure(e, n, a, o), s).join$0(0));
14560
14559
  },
14561
14560
  compare(e, n) {
14562
- var i, a, s, o, l, D, d, c, p, y, g, m, h, E, C, I, F, x, M, L, O = {};
14563
- for (O.comparisonDateIndex = O.mainDateIndex = null, i = O.comparisonIndexesCompleted = O.mainIndexesCompleted = !1, a = n.columns, s = r.JSArray_int, o = u.IterableExtension_foldIndexed(a, u._setArrayType([], s), new u.compare_closure(O)), l = u.IterableExtension_foldIndexed(e.columns, u._setArrayType([], s), new u.compare_closure0(O)), s = r.JSArray_String, O.dates = u._setArrayType([], s), (O.mainDateIndex != null ? O.comparisonDateIndex != null : i) && (i = r.String, i = u.ListExtensions_mapIndexed($.JSArray_methods.fold$2(n.rows, u._setArrayType([], s), new u.compare_closure1(O)), new u.compare_closure2($.JSArray_methods.fold$2(e.rows, u._setArrayType([], s), new u.compare_closure3(O))), i, i), O.dates = u.List_List$of(i, !0, i.$ti._eval$1("Iterable.E"))), D = $.JSArray_methods.fold$2(e.rows, u.LinkedHashMap_LinkedHashMap$_empty(r.String, r.List_dynamic), new u.compare_closure4(O, e, l)), i = r.JSArray_List_dynamic, s = u._setArrayType([], i), i = u._setArrayType([], i), d = n.rows, c = d.length, p = r.JSArray_dynamic, y = _.getInterceptor$asx(o), g = r.dynamic, m = 0; m < d.length; d.length === c || (0, u.throwConcurrentModificationError)(d), ++m) {
14564
- if (h = d[m], E = u._getRowInfo(a, O.dates, o, h), C = D.$index(0, E.id), I = C == null ? null : _.toList$0$ax(C), I == null) {
14565
- for (C = E.row, F = u.List_List$of(u.ListExtensions_slice(C, 0, y.get$length(o), g), !0, g), x = C.length - y.get$length(o), x < 0 && u.throwExpression(u.ArgumentError$("Length must be a non-negative integer: " + x)), M = u._setArrayType(new Array(x), p), L = 0; L < x; ++L)
14566
- M[L] = null;
14567
- $.JSArray_methods.addAll$1(F, M), I = F;
14561
+ var i, a, s, o, l, D, d, c, p, y, g, m, h, E, C, I, M, x, R, L, w = {};
14562
+ for (w.comparisonDateIndex = w.mainDateIndex = null, i = w.comparisonIndexesCompleted = w.mainIndexesCompleted = !1, a = n.columns, s = r.JSArray_int, o = u.IterableExtension_foldIndexed(a, u._setArrayType([], s), new u.compare_closure(w)), l = u.IterableExtension_foldIndexed(e.columns, u._setArrayType([], s), new u.compare_closure0(w)), s = r.JSArray_String, w.dates = u._setArrayType([], s), (w.mainDateIndex != null ? w.comparisonDateIndex != null : i) && (i = r.String, i = u.ListExtensions_mapIndexed($.JSArray_methods.fold$2(n.rows, u._setArrayType([], s), new u.compare_closure1(w)), new u.compare_closure2($.JSArray_methods.fold$2(e.rows, u._setArrayType([], s), new u.compare_closure3(w))), i, i), w.dates = u.List_List$of(i, !0, i.$ti._eval$1("Iterable.E"))), D = $.JSArray_methods.fold$2(e.rows, u.LinkedHashMap_LinkedHashMap$_empty(r.String, r.List_dynamic), new u.compare_closure4(w, e, l)), i = r.JSArray_List_dynamic, s = u._setArrayType([], i), i = u._setArrayType([], i), d = n.rows, c = d.length, p = r.JSArray_dynamic, y = _.getInterceptor$asx(o), g = r.dynamic, m = 0; m < d.length; d.length === c || (0, u.throwConcurrentModificationError)(d), ++m) {
14563
+ if (h = d[m], E = u._getRowInfo(a, w.dates, o, h), C = D.$index(0, E.id), I = C == null ? null : _.toList$0$ax(C), I == null) {
14564
+ for (C = E.row, M = u.List_List$of(u.ListExtensions_slice(C, 0, y.get$length(o), g), !0, g), x = C.length - y.get$length(o), x < 0 && u.throwExpression(u.ArgumentError$("Length must be a non-negative integer: " + x)), R = u._setArrayType(new Array(x), p), L = 0; L < x; ++L)
14565
+ R[L] = null;
14566
+ $.JSArray_methods.addAll$1(M, R), I = M;
14568
14567
  }
14569
14568
  s.push(E.row), i.push(I);
14570
14569
  }
@@ -14621,8 +14620,8 @@ var Xe = Qe, Se = {};
14621
14620
  return new u.SparklineDataModel($.SparklineType_0, D, u.accumulate(e, y));
14622
14621
  },
14623
14622
  formatScoreCardChartData(e, n, i, a) {
14624
- var s, o, l, D, d, c, p, y, g, m, h, E, C, I, F = null;
14625
- return n.length === 0 ? new u.ScorecardDataModel(F, F, F, F) : (s = $.JSArray_methods.get$first(n).columns, s = new u.WhereIterable(s, new u.formatScoreCardChartData_closure(), u._arrayInstanceType(s)._eval$1("WhereIterable<1>")), o = s.get$first(s), s = r.QueryResponse, l = u.IterableExtension_get_firstOrNull(u.ListExtension_sublistOrEmpty(n, 0, 1, s)), D = l == null ? F : u.IterableExtension_get_firstOrNull(l.rows), d = e.sparklineDimension != null, c = d ? u.IterableExtension_get_firstOrNull(u.ListExtension_sublistOrEmpty(n, 1, 2, s)) : F, p = d ? 2 : 1, s = u.IterableExtension_get_firstOrNull(u.ListExtension_sublistOrEmpty(n, p, p + 1, s)), y = s == null ? F : u.IterableExtension_get_firstOrNull(s.rows), s = o.dataType, l = D == null ? F : D.value.$index(0, o.id), g = o.optionType, m = o.aggregationType, h = o.decimal, E = o.timeFormatter, C = o.formatter, l = u.DataTypeExtension_toDisplay(s, m, i, h, g, C, !1, E, a, l), I = y == null, (I ? F : y.value.$index(0, o.id)) != null ? s = u.DataTypeExtension_toDisplay(s, m, i, h, g, C, !1, E, a, I ? F : y.value.$index(0, o.id)) : s = F, new u.ScorecardDataModel(F, l, s, u._formatSparkline(e, c, i, a)));
14623
+ var s, o, l, D, d, c, p, y, g, m, h, E, C, I, M = null;
14624
+ return n.length === 0 ? new u.ScorecardDataModel(M, M, M, M) : (s = $.JSArray_methods.get$first(n).columns, s = new u.WhereIterable(s, new u.formatScoreCardChartData_closure(), u._arrayInstanceType(s)._eval$1("WhereIterable<1>")), o = s.get$first(s), s = r.QueryResponse, l = u.IterableExtension_get_firstOrNull(u.ListExtension_sublistOrEmpty(n, 0, 1, s)), D = l == null ? M : u.IterableExtension_get_firstOrNull(l.rows), d = e.sparklineDimension != null, c = d ? u.IterableExtension_get_firstOrNull(u.ListExtension_sublistOrEmpty(n, 1, 2, s)) : M, p = d ? 2 : 1, s = u.IterableExtension_get_firstOrNull(u.ListExtension_sublistOrEmpty(n, p, p + 1, s)), y = s == null ? M : u.IterableExtension_get_firstOrNull(s.rows), s = o.dataType, l = D == null ? M : D.value.$index(0, o.id), g = o.optionType, m = o.aggregationType, h = o.decimal, E = o.timeFormatter, C = o.formatter, l = u.DataTypeExtension_toDisplay(s, m, i, h, g, C, !1, E, a, l), I = y == null, (I ? M : y.value.$index(0, o.id)) != null ? s = u.DataTypeExtension_toDisplay(s, m, i, h, g, C, !1, E, a, I ? M : y.value.$index(0, o.id)) : s = M, new u.ScorecardDataModel(M, l, s, u._formatSparkline(e, c, i, a)));
14626
14625
  },
14627
14626
  _formatSparkline_closure: function(n, i, a) {
14628
14627
  this.response = n, this.country = i, this.timezone = a;
@@ -14645,11 +14644,11 @@ var Xe = Qe, Se = {};
14645
14644
  formatScoreCardChartData_closure: function() {
14646
14645
  },
14647
14646
  _formatTableResponse(e, n, i, a) {
14648
- var s, o, l, D, d, c, p, y, g, m, h = null, E = i.columns, C = u._arrayInstanceType(E), I = C._eval$1("WhereIterable<1>"), F = r.String;
14649
- for (C = u.List_List$of(new u.MappedIterable(new u.WhereIterable(E, new u._formatTableResponse_closure(e), I), new u._formatTableResponse_closure0(), C._eval$1("MappedIterable<1,String>")), !0, F), s = e.get$rowIds(), o = r.List__Header_dynamic, s = u.List_List$of(new u.MappedListIterable(s, new u._formatTableResponse_closure1(i), u._arrayInstanceType(s)._eval$1("MappedListIterable<1,List<_Header<@>>>")), !0, o), l = r.JSArray_List__Header_dynamic, $.JSArray_methods.addAll$1(s, $.JSArray_methods.fold$2(C, u._setArrayType([], l), new u._formatTableResponse_closure2(i))), C = e.get$columnIds(), C = u.List_List$of(new u.MappedListIterable(C, new u._formatTableResponse_closure3(i), u._arrayInstanceType(C)._eval$1("MappedListIterable<1,List<_Header<@>>>")), !0, o), C.length !== 0 ? (D = u._setArrayType([], l), u._getRecursivePermutations(C, D, 0, u._setArrayType([], r.JSArray__Header_dynamic), r._Header_dynamic), d = D) : d = [], C = u.List_List$of(s, !0, o), s = d.length, c = 0; c < d.length; d.length === s || (0, u.throwConcurrentModificationError)(d), ++c)
14647
+ var s, o, l, D, d, c, p, y, g, m, h = null, E = i.columns, C = u._arrayInstanceType(E), I = C._eval$1("WhereIterable<1>"), M = r.String;
14648
+ for (C = u.List_List$of(new u.MappedIterable(new u.WhereIterable(E, new u._formatTableResponse_closure(e), I), new u._formatTableResponse_closure0(), C._eval$1("MappedIterable<1,String>")), !0, M), s = e.get$rowIds(), o = r.List__Header_dynamic, s = u.List_List$of(new u.MappedListIterable(s, new u._formatTableResponse_closure1(i), u._arrayInstanceType(s)._eval$1("MappedListIterable<1,List<_Header<@>>>")), !0, o), l = r.JSArray_List__Header_dynamic, $.JSArray_methods.addAll$1(s, $.JSArray_methods.fold$2(C, u._setArrayType([], l), new u._formatTableResponse_closure2(i))), C = e.get$columnIds(), C = u.List_List$of(new u.MappedListIterable(C, new u._formatTableResponse_closure3(i), u._arrayInstanceType(C)._eval$1("MappedListIterable<1,List<_Header<@>>>")), !0, o), C.length !== 0 ? (D = u._setArrayType([], l), u._getRecursivePermutations(C, D, 0, u._setArrayType([], r.JSArray__Header_dynamic), r._Header_dynamic), d = D) : d = [], C = u.List_List$of(s, !0, o), s = d.length, c = 0; c < d.length; d.length === s || (0, u.throwConcurrentModificationError)(d), ++c)
14650
14649
  C.push(d[c]);
14651
- for (e.get$columnIds().length === 0 && $.JSArray_methods.contains$1(e.get$rowIds(), "_metric_name") && C.push(u._setArrayType([new u._Header("_metric_value", "Value", h, h, $.DATA_TYPE_3, h, h, !1, h, h, h, !1)], r.JSArray__Header_dynamic)), C.push(u._setArrayType([new u._Header("_is_rollup", "Rollup", h, h, $.DATA_TYPE_2, h, h, !0, h, h, h, !1)], r.JSArray__Header_dynamic)), p = u.List_List$of(new u.WhereIterable(E, new u._formatTableResponse_closure4(), I), !0, I._eval$1("Iterable.E")), E = r.Map_String_dynamic, y = u.LinkedHashMap_LinkedHashMap$_empty(F, E), I = _.get$iterator$ax($.JSArray_methods.fold$2(i.rows, u._setArrayType([], r.JSArray_Map_String_dynamic), new u._formatTableResponse_closure5(C, p))), F = r.dynamic; I.moveNext$0(); )
14652
- s = I.get$current(), g = u._asString(s.$index(0, "id")), m = y.$index(0, g), m == null ? y.$indexSet(0, g, s) : (s = u.ListExtensions_mapIndexed(u.List_List$from(m.$index(0, "value"), F), new u._formatTableResponse_closure6(C, s), F, F), m.$indexSet(0, "value", u.List_List$of(s, !0, s.$ti._eval$1("Iterable.E"))));
14650
+ for (e.get$columnIds().length === 0 && $.JSArray_methods.contains$1(e.get$rowIds(), "_metric_name") && C.push(u._setArrayType([new u._Header("_metric_value", "Value", h, h, $.DATA_TYPE_3, h, h, !1, h, h, h, !1)], r.JSArray__Header_dynamic)), C.push(u._setArrayType([new u._Header("_is_rollup", "Rollup", h, h, $.DATA_TYPE_2, h, h, !0, h, h, h, !1)], r.JSArray__Header_dynamic)), p = u.List_List$of(new u.WhereIterable(E, new u._formatTableResponse_closure4(), I), !0, I._eval$1("Iterable.E")), E = r.Map_String_dynamic, y = u.LinkedHashMap_LinkedHashMap$_empty(M, E), I = _.get$iterator$ax($.JSArray_methods.fold$2(i.rows, u._setArrayType([], r.JSArray_Map_String_dynamic), new u._formatTableResponse_closure5(C, p))), M = r.dynamic; I.moveNext$0(); )
14651
+ s = I.get$current(), g = u._asString(s.$index(0, "id")), m = y.$index(0, g), m == null ? y.$indexSet(0, g, s) : (s = u.ListExtensions_mapIndexed(u.List_List$from(m.$index(0, "value"), M), new u._formatTableResponse_closure6(C, s), M, M), m.$indexSet(0, "value", u.List_List$of(s, !0, s.$ti._eval$1("Iterable.E"))));
14653
14652
  return I = y.get$values(y), E = u.ListExtensions_mapIndexed(u.List_List$of(I, !0, u._instanceType(I)._eval$1("Iterable.E")), new u._formatTableResponse_closure7(), E, r.TableRowModel), I = u._arrayInstanceType(C)._eval$1("MappedListIterable<1,TableColumnModel>"), new u.TableDataModel(u.List_List$of(E, !0, E.$ti._eval$1("Iterable.E")), u.List_List$of(new u.MappedListIterable(C, new u._formatTableResponse_closure8(n, a), I), !0, I._eval$1("ListIterable.E")));
14654
14653
  },
14655
14654
  _formatTableData(e, n, i, a) {
@@ -14661,16 +14660,16 @@ var Xe = Qe, Se = {};
14661
14660
  return s = h.mainResponse, c = s.rows, p = u._arrayInstanceType(c)._eval$1("MappedListIterable<1,TableRowModel>"), s.copyWith$1$rows(u.List_List$of(new u.MappedListIterable(c, new u._formatTableData_closure3(), p), !0, p._eval$1("ListIterable.E")));
14662
14661
  },
14663
14662
  formatTableChartData(e, n, i, a) {
14664
- var s, o, l, D, d, c, p, y, g, m, h, E, C, I, F, x, M, L, O, v, H = {};
14663
+ var s, o, l, D, d, c, p, y, g, m, h, E, C, I, M, x, R, L, w, v, N = {};
14665
14664
  if (n.length === 0)
14666
14665
  return new u.TableDataModel(u._setArrayType([], r.JSArray_TableRowModel), u._setArrayType([], r.JSArray_TableColumnModel));
14667
- for (e.isBlend && (s = u.List_List$of(e.get$dimensions(), !0, r.QueryRequestDimension), $.JSArray_methods.addAll$1(s, $.JSArray_methods.fold$2(e.get$joinDatasources(), u._setArrayType([], r.JSArray_QueryRequestDimension), new u.formatTableChartData_closure())), o = u.List_List$of(e.get$metrics(), !0, r.QueryRequestMetric), $.JSArray_methods.addAll$1(o, $.JSArray_methods.fold$2(e.get$joinDatasources(), u._setArrayType([], r.JSArray_QueryRequestMetric), new u.formatTableChartData_closure0())), l = u._setArrayType([], r.JSArray_JoinDatasourceConfig), D = e.rowsPerPage, d = e.get$columnIds(), c = e.get$rowIds(), p = e.get$drillDimension(), e = u.TableDatasourceConfigModel$(d, e.columnsWidth, s, p, e.filters, !0, e.isComparable, e.isDrillable, l, e.limit, o, e.periodType, e.rollup, e.rollupPosition, c, D, e.schemaNames, e.showGrandTotal, e.sorts, e.timezone)), y = e.get$joinDatasources().length + 1, s = r.QueryResponse, g = u._formatTableData(e, u.ListExtension_sublistOrEmpty(n, 0, y, s), i, a), m = H.comparison = u._formatTableData(e, u.ListExtension_sublistOrEmpty(n, y, y * 2, s), i, a), s = m.rows, s.length !== 0 && (o = g.rows, l = u._arrayInstanceType(o)._eval$1("MappedListIterable<1,List<@>>"), l = u.List_List$of(new u.MappedListIterable(o, new u.formatTableChartData_closure1(), l), !0, l._eval$1("ListIterable.E")), D = g.columns, d = u._arrayInstanceType(D)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), d = u.List_List$of(new u.MappedListIterable(D, new u.formatTableChartData_closure2(), d), !0, d._eval$1("ListIterable.E")), D = u._arrayInstanceType(s)._eval$1("MappedListIterable<1,List<@>>"), D = u.List_List$of(new u.MappedListIterable(s, new u.formatTableChartData_closure3(), D), !0, D._eval$1("ListIterable.E")), c = m.columns, p = u._arrayInstanceType(c)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), h = u.compare(new u.ComparisonData(u.List_List$of(new u.MappedListIterable(c, new u.formatTableChartData_closure4(), p), !0, p._eval$1("ListIterable.E")), D), new u.ComparisonData(d, l)), l = r.TableRowModel, o = u.ListExtensions_mapIndexed(o, new u.formatTableChartData_closure5(h), l, l), g = g.copyWith$1$rows(u.List_List$of(o, !0, o.$ti._eval$1("Iterable.E"))), l = u.ListExtensions_mapIndexed(s, new u.formatTableChartData_closure6(h), l, l), H.comparison = m.copyWith$1$rows(u.List_List$of(l, !0, l.$ti._eval$1("Iterable.E")))), s = g.columns, o = u._arrayInstanceType(s)._eval$1("WhereIterable<1>"), E = u.List_List$of(new u.WhereIterable(s, new u.formatTableChartData_closure7(), o), !0, o._eval$1("Iterable.E")), o = r.String, l = r.int, C = u.LinkedHashMap_LinkedHashMap$_empty(o, l), I = 0; I < s.length; ++I)
14668
- F = s[I], C.$indexSet(0, F.key + "_" + F.hide, I);
14669
- for (x = u.LinkedHashMap_LinkedHashMap$_empty(o, l), I = 0; s = H.comparison.columns, I < s.length; ++I)
14670
- F = s[I], x.$indexSet(0, F.key + "_" + F.hide, I);
14671
- for (M = u._setArrayType([], r.JSArray__ColumnMapping), s = E.length, L = 0; L < s; ++L)
14672
- F = E[L], o = F.key, O = o + "_" + F.hide, o = u.stringReplaceAllUnchecked(o, ".", "_"), l = C.$index(0, O), l == null && (l = -1), D = x.$index(0, O), M.push(new u._ColumnMapping(F, o, l, D ?? -1));
14673
- return s = r.MappedListIterable__ColumnMapping_TableColumnModel, v = u.List_List$of(new u.MappedListIterable(M, new u.formatTableChartData_closure8(), s), !0, s._eval$1("ListIterable.E")), s = H.comparison.rows.length, o = r.TableRowModel, o = u.ListExtensions_mapIndexed(g.rows, new u.formatTableChartData_closure9(H, M, i, a, s !== 0, s), o, o), g.copyWith$2$columns$rows(v, u.List_List$of(o, !0, o.$ti._eval$1("Iterable.E")));
14666
+ for (e.isBlend && (s = u.List_List$of(e.get$dimensions(), !0, r.QueryRequestDimension), $.JSArray_methods.addAll$1(s, $.JSArray_methods.fold$2(e.get$joinDatasources(), u._setArrayType([], r.JSArray_QueryRequestDimension), new u.formatTableChartData_closure())), o = u.List_List$of(e.get$metrics(), !0, r.QueryRequestMetric), $.JSArray_methods.addAll$1(o, $.JSArray_methods.fold$2(e.get$joinDatasources(), u._setArrayType([], r.JSArray_QueryRequestMetric), new u.formatTableChartData_closure0())), l = u._setArrayType([], r.JSArray_JoinDatasourceConfig), D = e.rowsPerPage, d = e.get$columnIds(), c = e.get$rowIds(), p = e.get$drillDimension(), e = u.TableDatasourceConfigModel$(d, e.columnsWidth, s, p, e.filters, !0, e.isComparable, e.isDrillable, l, e.limit, o, e.periodType, e.rollup, e.rollupPosition, c, D, e.schemaNames, e.showGrandTotal, e.sorts, e.timezone)), y = e.get$joinDatasources().length + 1, s = r.QueryResponse, g = u._formatTableData(e, u.ListExtension_sublistOrEmpty(n, 0, y, s), i, a), m = N.comparison = u._formatTableData(e, u.ListExtension_sublistOrEmpty(n, y, y * 2, s), i, a), s = m.rows, s.length !== 0 && (o = g.rows, l = u._arrayInstanceType(o)._eval$1("MappedListIterable<1,List<@>>"), l = u.List_List$of(new u.MappedListIterable(o, new u.formatTableChartData_closure1(), l), !0, l._eval$1("ListIterable.E")), D = g.columns, d = u._arrayInstanceType(D)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), d = u.List_List$of(new u.MappedListIterable(D, new u.formatTableChartData_closure2(), d), !0, d._eval$1("ListIterable.E")), D = u._arrayInstanceType(s)._eval$1("MappedListIterable<1,List<@>>"), D = u.List_List$of(new u.MappedListIterable(s, new u.formatTableChartData_closure3(), D), !0, D._eval$1("ListIterable.E")), c = m.columns, p = u._arrayInstanceType(c)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), h = u.compare(new u.ComparisonData(u.List_List$of(new u.MappedListIterable(c, new u.formatTableChartData_closure4(), p), !0, p._eval$1("ListIterable.E")), D), new u.ComparisonData(d, l)), l = r.TableRowModel, o = u.ListExtensions_mapIndexed(o, new u.formatTableChartData_closure5(h), l, l), g = g.copyWith$1$rows(u.List_List$of(o, !0, o.$ti._eval$1("Iterable.E"))), l = u.ListExtensions_mapIndexed(s, new u.formatTableChartData_closure6(h), l, l), N.comparison = m.copyWith$1$rows(u.List_List$of(l, !0, l.$ti._eval$1("Iterable.E")))), s = g.columns, o = u._arrayInstanceType(s)._eval$1("WhereIterable<1>"), E = u.List_List$of(new u.WhereIterable(s, new u.formatTableChartData_closure7(), o), !0, o._eval$1("Iterable.E")), o = r.String, l = r.int, C = u.LinkedHashMap_LinkedHashMap$_empty(o, l), I = 0; I < s.length; ++I)
14667
+ M = s[I], C.$indexSet(0, M.key + "_" + M.hide, I);
14668
+ for (x = u.LinkedHashMap_LinkedHashMap$_empty(o, l), I = 0; s = N.comparison.columns, I < s.length; ++I)
14669
+ M = s[I], x.$indexSet(0, M.key + "_" + M.hide, I);
14670
+ for (R = u._setArrayType([], r.JSArray__ColumnMapping), s = E.length, L = 0; L < s; ++L)
14671
+ M = E[L], o = M.key, w = o + "_" + M.hide, o = u.stringReplaceAllUnchecked(o, ".", "_"), l = C.$index(0, w), l == null && (l = -1), D = x.$index(0, w), R.push(new u._ColumnMapping(M, o, l, D ?? -1));
14672
+ return s = r.MappedListIterable__ColumnMapping_TableColumnModel, v = u.List_List$of(new u.MappedListIterable(R, new u.formatTableChartData_closure8(), s), !0, s._eval$1("ListIterable.E")), s = N.comparison.rows.length, o = r.TableRowModel, o = u.ListExtensions_mapIndexed(g.rows, new u.formatTableChartData_closure9(N, R, i, a, s !== 0, s), o, o), g.copyWith$2$columns$rows(v, u.List_List$of(o, !0, o.$ti._eval$1("Iterable.E")));
14674
14673
  },
14675
14674
  _formatTableResponse_closure: function(n) {
14676
14675
  this.config = n;
@@ -15034,16 +15033,16 @@ var Xe = Qe, Se = {};
15034
15033
  }, r.Location);
15035
15034
  },
15036
15035
  _deserializeLocation(e) {
15037
- var n, i, a, s, o = u.NativeByteData_NativeByteData$view(e.buffer, e.byteOffset, e.byteLength), l = o.getUint32(0, !1), D = o.getUint32(4, !1), d = o.getUint32(8, !1), c = o.getUint32(12, !1), p = o.getUint32(16, !1), y = o.getUint32(20, !1), g = o.getUint32(24, !1), m = o.getUint32(28, !1), h = $.C_AsciiCodec.decode$1(u.NativeUint8List_NativeUint8List$view(e.buffer, e.byteOffset + l, D)), E = u._setArrayType([], r.JSArray_String), C = u._setArrayType([], r.JSArray_TimeZone), I = r.JSArray_int, F = u._setArrayType([], I), x = u._setArrayType([], I), M = d + c;
15038
- for (n = d, i = n; n < M; ++n)
15036
+ var n, i, a, s, o = u.NativeByteData_NativeByteData$view(e.buffer, e.byteOffset, e.byteLength), l = o.getUint32(0, !1), D = o.getUint32(4, !1), d = o.getUint32(8, !1), c = o.getUint32(12, !1), p = o.getUint32(16, !1), y = o.getUint32(20, !1), g = o.getUint32(24, !1), m = o.getUint32(28, !1), h = $.C_AsciiCodec.decode$1(u.NativeUint8List_NativeUint8List$view(e.buffer, e.byteOffset + l, D)), E = u._setArrayType([], r.JSArray_String), C = u._setArrayType([], r.JSArray_TimeZone), I = r.JSArray_int, M = u._setArrayType([], I), x = u._setArrayType([], I), R = d + c;
15037
+ for (n = d, i = n; n < R; ++n)
15039
15038
  e[n] === 0 && (I = e.buffer, a = e.byteOffset, I = new Uint8Array(I, a + i, n - i), E.push($.C_AsciiCodec.decode$1(I)), i = n + 1);
15040
15039
  for (i = p, n = 0; n < y; ++n, i = s)
15041
15040
  s = i + 8, C.push(new u.TimeZone(o.getInt32(i, !1) * 1e3, o.getUint8(i + 4) === 1, E[o.getUint8(i + 5)]));
15042
15041
  for (i = g, n = 0; n < m; ++n)
15043
- F.push($.JSNumber_methods.toInt$0(o.getFloat64(i, !1)) * 1e3), i += 8;
15042
+ M.push($.JSNumber_methods.toInt$0(o.getFloat64(i, !1)) * 1e3), i += 8;
15044
15043
  for (n = 0; n < m; ++n)
15045
15044
  x.push(o.getUint8(i)), ++i;
15046
- return u.Location$(h, F, x, C);
15045
+ return u.Location$(h, M, x, C);
15047
15046
  }
15048
15047
  }, _ = {
15049
15048
  makeDispatchRecord(e, n, i, a) {
@@ -18079,8 +18078,8 @@ Arguments: [` + d + "]";
18079
18078
  }
18080
18079
  }, u.QueryResponse_fromJson_closure.prototype = {
18081
18080
  call$1(e) {
18082
- var n, i, a = null, s = "aggregationType", o = "optionType", l = "timeFormatter", D = "formatter", d = u.EnumByName_byName($.List_C7m, e.$index(0, "schema")), c = e.$index(0, "label"), p = u.EnumByName_byName($.List_eOU, e.$index(0, "dataType")), y = u.EnumByName_byName($.List_FIELD_TYPE_0_FIELD_TYPE_1, e.$index(0, "fieldType")), g = e.$index(0, "id"), m = e.$index(0, s) != null ? u.EnumByName_byName($.List_Tuq, e.$index(0, s)) : a, h = e.$index(0, o) != null ? u.EnumByName_byName($.List_Ioo, e.$index(0, o)) : a, E = e.$index(0, "decimal"), C = e.$index(0, l) != null ? u.EnumByName_byName($.List_YsB, e.$index(0, l)) : a, I = e.$index(0, D) != null ? u.EnumByName_byName($.List_0, e.$index(0, D)) : a, F = e.$index(0, "nullable");
18083
- return F == null && (F = !1), n = e.$index(0, "hide"), n == null && (n = !1), i = e.$index(0, "dateComparison"), new u.QueryResponseColumn(d, c, p, y, g, m, h, E, C, I, F, n, i ?? !1);
18081
+ var n, i, a = null, s = "aggregationType", o = "optionType", l = "timeFormatter", D = "formatter", d = u.EnumByName_byName($.List_C7m, e.$index(0, "schema")), c = e.$index(0, "label"), p = u.EnumByName_byName($.List_eOU, e.$index(0, "dataType")), y = u.EnumByName_byName($.List_FIELD_TYPE_0_FIELD_TYPE_1, e.$index(0, "fieldType")), g = e.$index(0, "id"), m = e.$index(0, s) != null ? u.EnumByName_byName($.List_Tuq, e.$index(0, s)) : a, h = e.$index(0, o) != null ? u.EnumByName_byName($.List_Ioo, e.$index(0, o)) : a, E = e.$index(0, "decimal"), C = e.$index(0, l) != null ? u.EnumByName_byName($.List_YsB, e.$index(0, l)) : a, I = e.$index(0, D) != null ? u.EnumByName_byName($.List_0, e.$index(0, D)) : a, M = e.$index(0, "nullable");
18082
+ return M == null && (M = !1), n = e.$index(0, "hide"), n == null && (n = !1), i = e.$index(0, "dateComparison"), new u.QueryResponseColumn(d, c, p, y, g, m, h, E, C, I, M, n, i ?? !1);
18084
18083
  },
18085
18084
  $signature: 95
18086
18085
  }, u.QueryResponse_fromJson_closure0.prototype = {
@@ -18884,18 +18883,18 @@ Arguments: [` + d + "]";
18884
18883
  $signature: 0
18885
18884
  }, u._formatTableResponse_closure5.prototype = {
18886
18885
  call$2(e, n) {
18887
- var i, a, s, o, l, D, d, c, p, y, g, m, h, E, C, I, F, x, M, L, O = null, v = r.JSArray_List_dynamic, H = u._setArrayType([[]], v), j = u._setArrayType([[]], v);
18886
+ var i, a, s, o, l, D, d, c, p, y, g, m, h, E, C, I, M, x, R, L, w = null, v = r.JSArray_List_dynamic, N = u._setArrayType([[]], v), K = u._setArrayType([[]], v);
18888
18887
  for (v = this.headers, i = n.value, a = r.dynamic, s = r.JSArray_String, o = r.String, l = this.metricColumns, D = 0; D < v.length; ++D)
18889
18888
  if (d = v[D], c = _.getInterceptor$ax(d), p = c.map$1$1(d, new u._formatTableResponse__closure4(), o).join$1(0, "|"), u.IterableExtension_firstWhereOrNull(d, new u._formatTableResponse__closure5()) != null)
18890
- for (y = c.firstWhere$1(d, new u._formatTableResponse__closure6()), g = c.fold$2(d, !0, new u._formatTableResponse__closure7(n)), c = H.length, m = y.type, h = y.columnValue, E = 0; E < H.length; H.length === c || (0, u.throwConcurrentModificationError)(H), ++E)
18891
- C = H[E], g ? (I = i.$index(0, h), F = C.length, D >= F && $.JSArray_methods.addAll$1(C, u.List_List$filled(D - F + 1, O, !1, a)), C[D] = I) : (I = m == null ? O : u.DataTypeExtension_toData(m, O), F = C.length, D >= F && $.JSArray_methods.addAll$1(C, u.List_List$filled(D - F + 1, O, !1, a)), C[D] = I);
18889
+ for (y = c.firstWhere$1(d, new u._formatTableResponse__closure6()), g = c.fold$2(d, !0, new u._formatTableResponse__closure7(n)), c = N.length, m = y.type, h = y.columnValue, E = 0; E < N.length; N.length === c || (0, u.throwConcurrentModificationError)(N), ++E)
18890
+ C = N[E], g ? (I = i.$index(0, h), M = C.length, D >= M && $.JSArray_methods.addAll$1(C, u.List_List$filled(D - M + 1, w, !1, a)), C[D] = I) : (I = m == null ? w : u.DataTypeExtension_toData(m, w), M = C.length, D >= M && $.JSArray_methods.addAll$1(C, u.List_List$filled(D - M + 1, w, !1, a)), C[D] = I);
18892
18891
  else if ($.JSArray_methods.contains$1(u._setArrayType(["_metric_name", "_metric_value"], s), p))
18893
18892
  for (c = p === "_metric_value", m = p === "_metric_name", x = 0; x < l.length; ++x)
18894
- M = l[x], u.ListExtension_elementAtOrNull(H, x) == null && (H.push(u.List_List$of(H[0], !0, a)), j.push(u.List_List$of(j[0], !0, a))), m ? (h = H[x], I = M.label, F = h.length, D >= F && $.JSArray_methods.addAll$1(h, u.List_List$filled(D - F + 1, O, !1, a)), h[D] = I, j[x].push(I)) : c && (h = H[x], I = i.$index(0, M.id), F = h.length, D >= F && $.JSArray_methods.addAll$1(h, u.List_List$filled(D - F + 1, O, !1, a)), h[D] = I);
18893
+ R = l[x], u.ListExtension_elementAtOrNull(N, x) == null && (N.push(u.List_List$of(N[0], !0, a)), K.push(u.List_List$of(K[0], !0, a))), m ? (h = N[x], I = R.label, M = h.length, D >= M && $.JSArray_methods.addAll$1(h, u.List_List$filled(D - M + 1, w, !1, a)), h[D] = I, K[x].push(I)) : c && (h = N[x], I = i.$index(0, R.id), M = h.length, D >= M && $.JSArray_methods.addAll$1(h, u.List_List$filled(D - M + 1, w, !1, a)), h[D] = I);
18895
18894
  else
18896
- for (L = 0; L < H.length; ++L)
18897
- c = H[L], m = i.$index(0, p), h = c.length, D >= h && $.JSArray_methods.addAll$1(c, u.List_List$filled(D - h + 1, O, !1, a)), c[D] = m, j[L].push(i.$index(0, p));
18898
- return _.addAll$1$ax(e, u.ListExtensions_mapIndexed(H, new u._formatTableResponse__closure8(j, n), r.List_dynamic, r.Map_String_dynamic)), e;
18895
+ for (L = 0; L < N.length; ++L)
18896
+ c = N[L], m = i.$index(0, p), h = c.length, D >= h && $.JSArray_methods.addAll$1(c, u.List_List$filled(D - h + 1, w, !1, a)), c[D] = m, K[L].push(i.$index(0, p));
18897
+ return _.addAll$1$ax(e, u.ListExtensions_mapIndexed(N, new u._formatTableResponse__closure8(K, n), r.List_dynamic, r.Map_String_dynamic)), e;
18899
18898
  },
18900
18899
  $signature: 78
18901
18900
  }, u._formatTableResponse__closure4.prototype = {
@@ -19134,10 +19133,10 @@ Arguments: [` + d + "]";
19134
19133
  $signature: 98
19135
19134
  }, u.formatTableChartData_closure9.prototype = {
19136
19135
  call$2(e, n) {
19137
- var i, a, s, o, l, D, d, c, p, y, g, m, h, E, C, I, F, x, M = this, L = [], O = [], v = n.cells, H = _.getInterceptor$asx(v), j = H.get$length(v);
19138
- for (i = M.columnMappings, a = i.length, s = M.hasComparison, o = M.country, l = M.timezone, D = e < M.comparisonRowsLength, d = M._box_0, c = 0; c < i.length; i.length === a || (0, u.throwConcurrentModificationError)(i), ++c)
19139
- p = i[c], y = p.mainIndex, g = y >= 0 && y < j ? H.$index(v, y) : u.ListExtension_elementAtOrNull(v, y), y = p.column, m = y.type, h = m == null, L.push(h ? null : u.DataTypeExtension_toDisplay(m, y.aggregationType, o, y.decimal, y.dimensionOption, y.formatter, !1, y.timeFormatter, l, g)), s && (D ? (E = d.comparison.rows[e].cells, C = _.getInterceptor$asx(E), I = C.get$length(E), F = p.comparisonIndex, x = F >= 0 && F < I ? C.$index(E, F) : u.ListExtension_elementAtOrNull(E, F)) : x = u.ListExtension_elementAtOrNull([], p.comparisonIndex), O.push(h ? null : u.DataTypeExtension_toDisplay(m, y.aggregationType, o, y.decimal, y.dimensionOption, y.formatter, !1, y.timeFormatter, l, x)));
19140
- return n.copyWith$2$cells$comparisonCells(L, O);
19136
+ var i, a, s, o, l, D, d, c, p, y, g, m, h, E, C, I, M, x, R = this, L = [], w = [], v = n.cells, N = _.getInterceptor$asx(v), K = N.get$length(v);
19137
+ for (i = R.columnMappings, a = i.length, s = R.hasComparison, o = R.country, l = R.timezone, D = e < R.comparisonRowsLength, d = R._box_0, c = 0; c < i.length; i.length === a || (0, u.throwConcurrentModificationError)(i), ++c)
19138
+ p = i[c], y = p.mainIndex, g = y >= 0 && y < K ? N.$index(v, y) : u.ListExtension_elementAtOrNull(v, y), y = p.column, m = y.type, h = m == null, L.push(h ? null : u.DataTypeExtension_toDisplay(m, y.aggregationType, o, y.decimal, y.dimensionOption, y.formatter, !1, y.timeFormatter, l, g)), s && (D ? (E = d.comparison.rows[e].cells, C = _.getInterceptor$asx(E), I = C.get$length(E), M = p.comparisonIndex, x = M >= 0 && M < I ? C.$index(E, M) : u.ListExtension_elementAtOrNull(E, M)) : x = u.ListExtension_elementAtOrNull([], p.comparisonIndex), w.push(h ? null : u.DataTypeExtension_toDisplay(m, y.aggregationType, o, y.decimal, y.dimensionOption, y.formatter, !1, y.timeFormatter, l, x)));
19139
+ return n.copyWith$2$cells$comparisonCells(L, w);
19141
19140
  },
19142
19141
  $signature: 7
19143
19142
  }, u.TZDateTime.prototype = {
@@ -19573,8 +19572,8 @@ Arguments: [` + d + "]";
19573
19572
  return a.message;
19574
19573
  }
19575
19574
  }())), n(b, "DateTime__parseFormat", "$get$DateTime__parseFormat", () => u.RegExp_RegExp("^([+-]?\\d{4,6})-?(\\d\\d)-?(\\d\\d)(?:[ T](\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d+))?)?)?( ?[zZ]| ?([-+])(\\d\\d)(?::?(\\d\\d))?)?)?$", !1)), n(b, "_hashSeed", "$get$_hashSeed", () => u.objectHashCode($.Type_Object_xQ6)), n(b, "Endian_host", "$get$Endian_host", () => u.NativeByteData_NativeByteData$view(u.NativeUint16List_NativeUint16List$fromList(u._setArrayType([1], r.JSArray_int)).buffer, 0, null).getInt8(0) === 1 ? $.C_Endian0 : $.C_Endian), n(b, "_clockKey", "$get$_clockKey", () => new u.Object()), n(b, "en_USSymbols", "$get$en_USSymbols", () => new u.DateSymbols("en_US", $.List_BC_AD, $.List_6xs, $.List_qpm, $.List_qpm, $.List_cIc, $.List_cIc, $.List_h8w, $.List_h8w, $.List_wMy, $.List_wMy, $.List_gc6, $.List_gc6, $.List_3US, $.List_Q1_Q2_Q3_Q4, $.List_bJM, $.List_AM_PM)), i(b, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => u.UninitializedLocaleData$("initializeDateFormatting(<locale>)", b.$get$en_USSymbols())), i(b, "dateTimePatterns", "$get$dateTimePatterns", () => u.UninitializedLocaleData$("initializeDateFormatting(<locale>)", $.Map_EQ6TW)), n(b, "asciiZeroCodeUnit", "$get$asciiZeroCodeUnit", () => 48), n(b, "DateFormat__matchers", "$get$DateFormat__matchers", () => u._setArrayType([u.RegExp_RegExp("^'(?:[^']|'')*'", !1), u.RegExp_RegExp("^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|D+|m+|s+|v+|z+|Z+)", !1), u.RegExp_RegExp("^[^'GyMkSEahKHcLQdDmsvzZ]+", !1)], u.findType("JSArray<RegExp>"))), n(b, "_DateFormatQuotedField__twoEscapedQuotes", "$get$_DateFormatQuotedField__twoEscapedQuotes", () => u.RegExp_RegExp("''", !1)), n(b, "asciiDigitMatcher", "$get$asciiDigitMatcher", () => u.RegExp_RegExp("^\\d+", !1)), i(b, "_availableLocales", "$get$_availableLocales", () => {
19576
- var a, s, o = u.EnLocale$($.StartOfWeek_1), l = u.EnLocale$($.StartOfWeek_1), D = u.EnLocale$($.StartOfWeek_1), d = u.EnLocale$($.StartOfWeek_1), c = u.EnLocale$($.StartOfWeek_1), p = u.EnLocale$($.StartOfWeek_2), y = u.EnLocale$($.StartOfWeek_2), g = u.EnLocale$($.StartOfWeek_1), m = u.EnLocale$($.StartOfWeek_1), h = u.EsLocale$($.StartOfWeek_2), E = u.EsLocale$($.StartOfWeek_2), C = u.EsLocale$($.StartOfWeek_1), I = u.FrLocale$($.StartOfWeek_2), F = u.FrLocale$($.StartOfWeek_2), x = u.FrLocale$($.StartOfWeek_1), M = u.ZhCnLocale$($.StartOfWeek_1), L = u.ZhCnLocale$($.StartOfWeek_1), O = u.ZhLocale$($.StartOfWeek_1), v = u.ZhLocale$($.StartOfWeek_1), H = u.DeLocale$($.StartOfWeek_2), j = u.DeLocale$($.StartOfWeek_2), c0 = u.DeLocale$($.StartOfWeek_2), m0 = u.DeLocale$($.StartOfWeek_2), a0 = u.ItLocale$($.StartOfWeek_2), h0 = u.ItLocale$($.StartOfWeek_2), b0 = u.ArLyLocale$(!0, $.StartOfWeek_0), M0 = u.ArLyLocale$(!1, $.StartOfWeek_0), R0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_1), A0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_1), I0 = u.ArSaMaDzKwTnLocale$(!0, $.StartOfWeek_1), x0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_0), F0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_0);
19577
- return u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), a = u.PtLocale$($.StartOfWeek_2), s = u.PtLocale$($.StartOfWeek_1), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.LinkedHashMap_LinkedHashMap$_literal(["en", o, "en_us", l, "en_sg", D, "en_au", d, "en_ca", c, "en_gb", p, "en_ie", y, "en_il", g, "en_nz", m, "es", h, "es_do", E, "es_us", C, "fr", I, "fr_ch", F, "fr_ca", x, "zh", M, "zh_cn", L, "zh_hk", O, "zh_tw", v, "de", H, "de_de", j, "de_at", c0, "de_ch", m0, "it", a0, "it_ch", h0, "ar", b0, "ar_ly", M0, "ar_dz", R0, "ar_kw", A0, "ar_sa", I0, "ar_ma", x0, "ar_tn", F0, "az", new u.AzLocale($.StartOfWeek_2), "id", new u.IdLocale($.StartOfWeek_1), "ja", new u.JaLocale($.StartOfWeek_1), "ko", new u.KoLocale($.StartOfWeek_1), "ru", new u.RuLocale($.StartOfWeek_2), "uk", new u.UkLocale($.StartOfWeek_2), "hi", new u.HiLocale($.StartOfWeek_1), "pt", a, "pt_br", s, "pl", new u.PlLocale($.StartOfWeek_2), "tr", new u.TrLocale($.StartOfWeek_2), "sv", new u.SvLocale($.StartOfWeek_2), "nb", new u.NbLocale($.StartOfWeek_2), "fa", new u.FaLocale($.StartOfWeek_0), "bn", new u.BnLocale($.StartOfWeek_1), "nl", new u.NlLocale($.StartOfWeek_2), "th", new u.ThLocale($.StartOfWeek_1)], r.String, u.findType("Locale"));
19575
+ var a, s, o = u.EnLocale$($.StartOfWeek_1), l = u.EnLocale$($.StartOfWeek_1), D = u.EnLocale$($.StartOfWeek_1), d = u.EnLocale$($.StartOfWeek_1), c = u.EnLocale$($.StartOfWeek_1), p = u.EnLocale$($.StartOfWeek_2), y = u.EnLocale$($.StartOfWeek_2), g = u.EnLocale$($.StartOfWeek_1), m = u.EnLocale$($.StartOfWeek_1), h = u.EsLocale$($.StartOfWeek_2), E = u.EsLocale$($.StartOfWeek_2), C = u.EsLocale$($.StartOfWeek_1), I = u.FrLocale$($.StartOfWeek_2), M = u.FrLocale$($.StartOfWeek_2), x = u.FrLocale$($.StartOfWeek_1), R = u.ZhCnLocale$($.StartOfWeek_1), L = u.ZhCnLocale$($.StartOfWeek_1), w = u.ZhLocale$($.StartOfWeek_1), v = u.ZhLocale$($.StartOfWeek_1), N = u.DeLocale$($.StartOfWeek_2), K = u.DeLocale$($.StartOfWeek_2), c0 = u.DeLocale$($.StartOfWeek_2), m0 = u.DeLocale$($.StartOfWeek_2), u0 = u.ItLocale$($.StartOfWeek_2), h0 = u.ItLocale$($.StartOfWeek_2), I0 = u.ArLyLocale$(!0, $.StartOfWeek_0), x0 = u.ArLyLocale$(!1, $.StartOfWeek_0), L0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_1), A0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_1), F0 = u.ArSaMaDzKwTnLocale$(!0, $.StartOfWeek_1), O0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_0), M0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_0);
19576
+ return u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), a = u.PtLocale$($.StartOfWeek_2), s = u.PtLocale$($.StartOfWeek_1), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.LinkedHashMap_LinkedHashMap$_literal(["en", o, "en_us", l, "en_sg", D, "en_au", d, "en_ca", c, "en_gb", p, "en_ie", y, "en_il", g, "en_nz", m, "es", h, "es_do", E, "es_us", C, "fr", I, "fr_ch", M, "fr_ca", x, "zh", R, "zh_cn", L, "zh_hk", w, "zh_tw", v, "de", N, "de_de", K, "de_at", c0, "de_ch", m0, "it", u0, "it_ch", h0, "ar", I0, "ar_ly", x0, "ar_dz", L0, "ar_kw", A0, "ar_sa", F0, "ar_ma", O0, "ar_tn", M0, "az", new u.AzLocale($.StartOfWeek_2), "id", new u.IdLocale($.StartOfWeek_1), "ja", new u.JaLocale($.StartOfWeek_1), "ko", new u.KoLocale($.StartOfWeek_1), "ru", new u.RuLocale($.StartOfWeek_2), "uk", new u.UkLocale($.StartOfWeek_2), "hi", new u.HiLocale($.StartOfWeek_1), "pt", a, "pt_br", s, "pl", new u.PlLocale($.StartOfWeek_2), "tr", new u.TrLocale($.StartOfWeek_2), "sv", new u.SvLocale($.StartOfWeek_2), "nb", new u.NbLocale($.StartOfWeek_2), "fa", new u.FaLocale($.StartOfWeek_0), "bn", new u.BnLocale($.StartOfWeek_1), "nl", new u.NlLocale($.StartOfWeek_2), "th", new u.ThLocale($.StartOfWeek_1)], r.String, u.findType("Locale"));
19578
19577
  }), n(b, "_UTC", "$get$_UTC", () => {
19579
19578
  var a = r.JSArray_int;
19580
19579
  return u.Location$("UTC", u._setArrayType([-864e13], a), u._setArrayType([0], a), u._setArrayType([$.TimeZone_0_false_UTC], r.JSArray_TimeZone));
@@ -19633,188 +19632,188 @@ Arguments: [` + d + "]";
19633
19632
  });
19634
19633
  })();
19635
19634
  };
19636
- })(Se);
19637
- const Ee = Se;
19638
- Ee.load({});
19639
- var Ve = Ee;
19640
- const ue = new Intl.Collator(void 0, { numeric: !0, sensitivity: "base" }), Ye = (() => {
19635
+ })(Ae);
19636
+ const Te = Ae;
19637
+ Te.load({});
19638
+ var Ye = Te;
19639
+ const le = new Intl.Collator(void 0, { numeric: !0, sensitivity: "base" }), Ge = (() => {
19641
19640
  const T = new Intl.DateTimeFormat("en-US", { weekday: "short" });
19642
19641
  return Array.from(
19643
19642
  { length: 7 },
19644
- (R, w) => T.format(new Date(1970, 0, 4 + w)).toLowerCase().slice(0, 3)
19643
+ (F, O) => T.format(new Date(1970, 0, 4 + O)).toLowerCase().slice(0, 3)
19645
19644
  );
19646
19645
  })();
19647
- function se(T) {
19646
+ function _e(T) {
19648
19647
  if (T == null || T === "") return null;
19649
- const R = String(T).trim();
19650
- if (R === "") return null;
19651
- const w = R.toLowerCase().slice(0, 3), J = Ye.indexOf(w);
19652
- if (J !== -1 && R.length <= 3)
19648
+ const F = String(T).trim();
19649
+ if (F === "") return null;
19650
+ const O = F.toLowerCase().slice(0, 3), J = Ge.indexOf(O);
19651
+ if (J !== -1 && F.length <= 3)
19653
19652
  return { type: "dayName", value: J };
19654
- const P = R.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})\s+(\d{1,2}):(\d{2})(?::(\d{2}))?$/);
19653
+ const P = F.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})\s+(\d{1,2}):(\d{2})(?::(\d{2}))?$/);
19655
19654
  if (P) {
19656
- const [, k, V, Q, Z, W, K = "0"] = P;
19655
+ const [, k, X, V, e0, q, z = "0"] = P;
19657
19656
  return {
19658
19657
  type: "fullDateTime",
19659
19658
  value: new Date(
19660
- parseInt(Q),
19661
- parseInt(V) - 1,
19659
+ parseInt(V),
19660
+ parseInt(X) - 1,
19662
19661
  parseInt(k),
19663
- parseInt(Z),
19664
- parseInt(W),
19665
- parseInt(K)
19662
+ parseInt(e0),
19663
+ parseInt(q),
19664
+ parseInt(z)
19666
19665
  ).getTime()
19667
19666
  };
19668
19667
  }
19669
- const B = R.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/);
19668
+ const B = F.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/);
19670
19669
  if (B) {
19671
- const [, k, V, Q] = B;
19670
+ const [, k, X, V] = B;
19672
19671
  return {
19673
19672
  type: "date",
19674
- value: new Date(parseInt(Q), parseInt(V) - 1, parseInt(k)).getTime()
19673
+ value: new Date(parseInt(V), parseInt(X) - 1, parseInt(k)).getTime()
19675
19674
  };
19676
19675
  }
19677
- const N = R.match(/^(\d{4})\/(\d{1,2})\/(\d{1,2})$/);
19678
- if (N) {
19679
- const [, k, V, Q] = N;
19676
+ const H = F.match(/^(\d{4})\/(\d{1,2})\/(\d{1,2})$/);
19677
+ if (H) {
19678
+ const [, k, X, V] = H;
19680
19679
  return {
19681
19680
  type: "date",
19682
- value: new Date(parseInt(k), parseInt(V) - 1, parseInt(Q)).getTime()
19681
+ value: new Date(parseInt(k), parseInt(X) - 1, parseInt(V)).getTime()
19683
19682
  };
19684
19683
  }
19685
- const U = R.match(/^(\d{1,2})\/(\d{4})$/);
19684
+ const U = F.match(/^(\d{1,2})\/(\d{4})$/);
19686
19685
  if (U) {
19687
- const [, k, V] = U;
19686
+ const [, k, X] = U;
19688
19687
  return {
19689
19688
  type: "monthYear",
19690
- value: new Date(parseInt(V), parseInt(k) - 1, 1).getTime()
19689
+ value: new Date(parseInt(X), parseInt(k) - 1, 1).getTime()
19691
19690
  };
19692
19691
  }
19693
- const q = R.match(/^(\d{1,2}):(\d{2})(?::(\d{2}))?$/);
19694
- if (q) {
19695
- const [, k, V, Q = "0"] = q;
19692
+ const Q = F.match(/^(\d{1,2}):(\d{2})(?::(\d{2}))?$/);
19693
+ if (Q) {
19694
+ const [, k, X, V = "0"] = Q;
19696
19695
  return {
19697
19696
  type: "time",
19698
- value: parseInt(k) * 3600 + parseInt(V) * 60 + parseInt(Q)
19697
+ value: parseInt(k) * 3600 + parseInt(X) * 60 + parseInt(V)
19699
19698
  };
19700
19699
  }
19701
- return /^\d+$/.test(R) ? { type: "number", value: parseInt(R) } : null;
19700
+ return /^\d+$/.test(F) ? { type: "number", value: parseInt(F) } : null;
19702
19701
  }
19703
- function oe(T, R) {
19704
- const w = se(T), J = se(R);
19705
- return !w && !J ? null : w ? J ? (w.type === J.type, w.value - J.value) : -1 : 1;
19702
+ function De(T, F) {
19703
+ const O = _e(T), J = _e(F);
19704
+ return !O && !J ? null : O ? J ? (O.type === J.type, O.value - J.value) : -1 : 1;
19706
19705
  }
19707
- function Ge(T, R) {
19706
+ function ze(T, F) {
19708
19707
  var J;
19709
- const w = { isRollup: T.isRollup };
19710
- for (let P = 0; P < R.length; P++) {
19711
- const B = R[P].key;
19712
- B && (w[B] = {
19708
+ const O = { isRollup: T.isRollup };
19709
+ for (let P = 0; P < F.length; P++) {
19710
+ const B = F[P].key;
19711
+ B && (O[B] = {
19713
19712
  main: T.cells[P],
19714
19713
  comparison: (J = T.comparisonCells) == null ? void 0 : J[P]
19715
19714
  });
19716
19715
  }
19717
- return w;
19716
+ return O;
19718
19717
  }
19719
- function ze(T, R) {
19718
+ function We(T, F) {
19720
19719
  if (T <= 0) return [];
19721
- const w = {};
19722
- for (const J of R) w[J.key] = void 0;
19723
- return Array.from({ length: T }, () => ({ ...w }));
19720
+ const O = {};
19721
+ for (const J of F) O[J.key] = void 0;
19722
+ return Array.from({ length: T }, () => ({ ...O }));
19724
19723
  }
19725
- function q0(T, R, w) {
19724
+ function Q0(T, F, O) {
19726
19725
  var P, B;
19727
- if (((P = T[R]) == null ? void 0 : P.main) !== void 0) return T[R].main;
19728
- const J = w.findIndex((N) => N.key === R);
19726
+ if (((P = T[F]) == null ? void 0 : P.main) !== void 0) return T[F].main;
19727
+ const J = O.findIndex((H) => H.key === F);
19729
19728
  return J >= 0 ? (B = T.cells) == null ? void 0 : B[J] : void 0;
19730
19729
  }
19731
- function We(T) {
19732
- var u0, l0, s0, D0, f0, p0;
19730
+ function je(T) {
19731
+ var a0, o0, s0, D0, f0, p0;
19733
19732
  const {
19734
- rows: R = [],
19735
- columns: w = [],
19733
+ rows: F = [],
19734
+ columns: O = [],
19736
19735
  globalSorts: J = [],
19737
19736
  filter: P = null,
19738
19737
  grandTotalPosition: B = null,
19739
- pageSize: N = 0
19738
+ pageSize: H = 0
19740
19739
  } = T;
19741
- let U = Array.isArray(R) ? [...R] : [];
19742
- B === "BOTTOM" && ((u0 = U.at(-1)) != null && u0.isRollup) && U.pop(), B === "TOP" && ((l0 = U[0]) != null && l0.isRollup) && U.shift();
19743
- let q = 0;
19744
- for (const X of U)
19745
- X.isRollup && q++, X.groupIndex = q;
19740
+ let U = Array.isArray(F) ? [...F] : [];
19741
+ B === "BOTTOM" && ((a0 = U.at(-1)) != null && a0.isRollup) && U.pop(), B === "TOP" && ((o0 = U[0]) != null && o0.isRollup) && U.shift();
19742
+ let Q = 0;
19743
+ for (const Y of U)
19744
+ Y.isRollup && Q++, Y.groupIndex = Q;
19746
19745
  const k = {};
19747
- for (const X of w) k[X.key] = X.type === "NUMERIC";
19748
- const V = J.filter(
19749
- (X) => X.key && w.some((G) => G.key === X.key)
19750
- ), Q = V.length > 0;
19751
- let Z = R;
19752
- P !== null && (Z = Z.filter((X) => !(P !== "" && (X.isRollup === !0 || !X.cells.some((G) => ((G == null ? void 0 : G.toLowerCase()) || "").includes(P == null ? void 0 : P.toLowerCase()))))).map((X) => ({ ...Ge(X, w), groupIndex: X.groupIndex })));
19753
- const W = {};
19754
- for (const X of Z) {
19755
- const G = X.groupIndex;
19756
- G !== void 0 && (W[G] || (W[G] = [])).push(X);
19746
+ for (const Y of O) k[Y.key] = Y.type === "NUMERIC";
19747
+ const X = J.filter(
19748
+ (Y) => Y.key && O.some((W) => W.key === Y.key)
19749
+ ), V = X.length > 0;
19750
+ let e0 = F;
19751
+ P !== null && (e0 = e0.filter((Y) => !(P !== "" && (Y.isRollup === !0 || !Y.cells.some((W) => ((W == null ? void 0 : W.toLowerCase()) || "").includes(P == null ? void 0 : P.toLowerCase()))))).map((Y) => ({ ...ze(Y, O), groupIndex: Y.groupIndex })));
19752
+ const q = {};
19753
+ for (const Y of e0) {
19754
+ const W = Y.groupIndex;
19755
+ W !== void 0 && (q[W] || (q[W] = [])).push(Y);
19757
19756
  }
19758
- Q && Object.values(W).forEach((X) => {
19759
- const G = X.filter((t0) => t0.isRollup), n0 = X.filter((t0) => !t0.isRollup);
19757
+ V && Object.values(q).forEach((Y) => {
19758
+ const W = Y.filter((t0) => t0.isRollup), n0 = Y.filter((t0) => !t0.isRollup);
19760
19759
  n0.sort((t0, i0) => {
19761
- for (const { key: z, type: r0 } of V) {
19762
- const _0 = r0 === "ASC" ? 1 : -1, e0 = q0(t0, z, w) ?? "", t = q0(i0, z, w) ?? "";
19763
- if (k[z]) {
19764
- const u = Number(e0) - Number(t);
19760
+ for (const { key: j, type: r0 } of X) {
19761
+ const _0 = r0 === "ASC" ? 1 : -1, Z = Q0(t0, j, O) ?? "", t = Q0(i0, j, O) ?? "";
19762
+ if (k[j]) {
19763
+ const u = Number(Z) - Number(t);
19765
19764
  if (u !== 0) return u * _0;
19766
19765
  } else {
19767
- const u = oe(e0, t);
19766
+ const u = De(Z, t);
19768
19767
  if (u !== null && u !== 0)
19769
19768
  return u * _0;
19770
- const _ = ue.compare(String(e0), String(t));
19769
+ const _ = le.compare(String(Z), String(t));
19771
19770
  if (_ !== 0) return _ * _0;
19772
19771
  }
19773
19772
  }
19774
19773
  return 0;
19775
- }), W[X[0].groupIndex] = G.concat(n0);
19774
+ }), q[Y[0].groupIndex] = W.concat(n0);
19776
19775
  });
19777
- let K;
19778
- if (Q) {
19779
- const X = B === null ? (() => {
19780
- const t0 = Object.keys(W).find((i0) => {
19781
- const z = W[i0] || [], r0 = z.some((e0) => e0.isRollup), _0 = z.some((e0) => !e0.isRollup);
19776
+ let z;
19777
+ if (V) {
19778
+ const Y = B === null ? (() => {
19779
+ const t0 = Object.keys(q).find((i0) => {
19780
+ const j = q[i0] || [], r0 = j.some((Z) => Z.isRollup), _0 = j.some((Z) => !Z.isRollup);
19782
19781
  return r0 && !_0;
19783
19782
  });
19784
19783
  return t0 !== void 0 ? Number(t0) : -1;
19785
- })() : -1, G = ((s0 = V[0]) == null ? void 0 : s0.key) ?? ((D0 = w.find((t0) => k[t0.key])) == null ? void 0 : D0.key), n0 = ((f0 = V[0]) == null ? void 0 : f0.type) === "ASC" ? 1 : (((p0 = V[0]) == null ? void 0 : p0.type) === "DESC", -1);
19786
- K = Object.keys(W).map(Number).sort((t0, i0) => {
19787
- if (!G) return t0 - i0;
19788
- if (X !== -1) {
19789
- if (t0 === X) return -1;
19790
- if (i0 === X) return 1;
19784
+ })() : -1, W = ((s0 = X[0]) == null ? void 0 : s0.key) ?? ((D0 = O.find((t0) => k[t0.key])) == null ? void 0 : D0.key), n0 = ((f0 = X[0]) == null ? void 0 : f0.type) === "ASC" ? 1 : (((p0 = X[0]) == null ? void 0 : p0.type) === "DESC", -1);
19785
+ z = Object.keys(q).map(Number).sort((t0, i0) => {
19786
+ if (!W) return t0 - i0;
19787
+ if (Y !== -1) {
19788
+ if (t0 === Y) return -1;
19789
+ if (i0 === Y) return 1;
19791
19790
  }
19792
- const z = W[t0].find((u) => u.isRollup), r0 = W[i0].find((u) => u.isRollup), _0 = z ? q0(z, G, w) ?? "" : "", e0 = r0 ? q0(r0, G, w) ?? "" : "";
19793
- if (k[G]) return (Number(_0) - Number(e0)) * n0;
19794
- const t = oe(_0, e0);
19795
- return t !== null ? t * n0 : ue.compare(String(_0), String(e0)) * n0;
19791
+ const j = q[t0].find((u) => u.isRollup), r0 = q[i0].find((u) => u.isRollup), _0 = j ? Q0(j, W, O) ?? "" : "", Z = r0 ? Q0(r0, W, O) ?? "" : "";
19792
+ if (k[W]) return (Number(_0) - Number(Z)) * n0;
19793
+ const t = De(_0, Z);
19794
+ return t !== null ? t * n0 : le.compare(String(_0), String(Z)) * n0;
19796
19795
  });
19797
19796
  } else
19798
- K = Object.keys(W).map(Number).sort((X, G) => X - G);
19799
- const Y = [];
19800
- for (const X of K)
19801
- for (const { groupIndex: G, ...n0 } of W[X])
19802
- Y.push(n0);
19803
- if (N > 0) {
19804
- const X = Y.length % N;
19805
- let G = 0;
19806
- X > 0 ? G = N - X : Y.length === 0 && (G = N), G > 0 && Y.push(...ze(G, w));
19797
+ z = Object.keys(q).map(Number).sort((Y, W) => Y - W);
19798
+ const G = [];
19799
+ for (const Y of z)
19800
+ for (const { groupIndex: W, ...n0 } of q[Y])
19801
+ G.push(n0);
19802
+ if (H > 0) {
19803
+ const Y = G.length % H;
19804
+ let W = 0;
19805
+ Y > 0 ? W = H - Y : G.length === 0 && (W = H), W > 0 && G.push(...We(W, O));
19807
19806
  }
19808
- return { data: Y };
19807
+ return { data: G };
19809
19808
  }
19810
- var je = { processTableData: We };
19811
- const Ke = Xe, Ze = Ve, et = je;
19812
- var re = {
19809
+ var Ke = { processTableData: je };
19810
+ const Ze = Ve, et = Ye, tt = Ke;
19811
+ var ae = {
19812
+ ...tt,
19813
19813
  ...et,
19814
- ...Ze,
19815
- ...Ke
19816
- }, Z0 = /* @__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))(Z0 || {}), tt = /* @__PURE__ */ ((T) => (T.Asc = "ASC", T.Desc = "DESC", T))(tt || {}), ee = /* @__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))(ee || {}), rt = /* @__PURE__ */ ((T) => (T.String = "STRING", T.Timestamp = "TIMESTAMP", T.Bool = "BOOL", T.Numeric = "NUMERIC", T))(rt || {}), nt = /* @__PURE__ */ ((T) => (T.MTD = "MTD", T))(nt || {}), it = /* @__PURE__ */ ((T) => (T.Scorecard = "SCORECARD", T.Spacer = "SPACER", T.Table = "TABLE", T.BarChart = "BARCHART", T.StackBarChart = "STACKBARCHART", T.ClusteredStackBarChart = "CLUSTEREDSTACKBARCHART", T.LineChart = "LINECHART", T.StackLineChart = "STACKLINECHART", T.Circular = "CIRCULAR", T))(it || {}), at = /* @__PURE__ */ ((T) => (T.EXCEL = "excel", T.PDF = "pdf", T.PDFFULLSIZE = "pdfFullSize", T.PDFRECEIPT = "pdfReceipt", T))(at || {}), ut = /* @__PURE__ */ ((T) => (T.PORTRAIT = "portrait", T.LANDSCAPE = "landscape", T))(ut || {});
19817
- function Wt(T) {
19814
+ ...Ze
19815
+ }, te = /* @__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))(te || {}), rt = /* @__PURE__ */ ((T) => (T.Asc = "ASC", T.Desc = "DESC", T))(rt || {}), re = /* @__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))(re || {}), nt = /* @__PURE__ */ ((T) => (T.String = "STRING", T.Timestamp = "TIMESTAMP", T.Bool = "BOOL", T.Numeric = "NUMERIC", T))(nt || {}), it = /* @__PURE__ */ ((T) => (T.MTD = "MTD", T))(it || {}), at = /* @__PURE__ */ ((T) => (T.Scorecard = "SCORECARD", T.Spacer = "SPACER", T.Table = "TABLE", T.BarChart = "BARCHART", T.StackBarChart = "STACKBARCHART", T.ClusteredStackBarChart = "CLUSTEREDSTACKBARCHART", T.LineChart = "LINECHART", T.StackLineChart = "STACKLINECHART", T.Circular = "CIRCULAR", T))(at || {}), ut = /* @__PURE__ */ ((T) => (T.EXCEL = "excel", T.PDF = "pdf", T.PDFFULLSIZE = "pdfFullSize", T.PDFRECEIPT = "pdfReceipt", T))(ut || {}), st = /* @__PURE__ */ ((T) => (T.PORTRAIT = "portrait", T.LANDSCAPE = "landscape", T))(st || {});
19816
+ function Kt(T) {
19818
19817
  switch (T) {
19819
19818
  case "excel":
19820
19819
  return "Excel";
@@ -19828,7 +19827,7 @@ function Wt(T) {
19828
19827
  return "Unknown";
19829
19828
  }
19830
19829
  }
19831
- function jt(T) {
19830
+ function Zt(T) {
19832
19831
  switch (T) {
19833
19832
  case "landscape":
19834
19833
  return "report.common.landscape";
@@ -19838,112 +19837,112 @@ function jt(T) {
19838
19837
  return "report.input.unknown";
19839
19838
  }
19840
19839
  }
19841
- const v0 = "/report-settings", st = async () => {
19842
- const { businessId: T } = d0(y0());
19840
+ const B0 = "/report-settings", ot = async () => {
19841
+ const { businessId: T } = d0($0());
19843
19842
  if (T) {
19844
- const R = {
19843
+ const F = {
19845
19844
  fetchType: g0.Get,
19846
- url: `${v0}/${T.value}/reports`
19845
+ url: `${B0}/${T.value}/reports`
19847
19846
  };
19848
- return E0.fetch(R);
19847
+ return E0.fetch(F);
19849
19848
  } else
19850
19849
  return Promise.reject(new Error("Business Id is not defined"));
19851
- }, ot = (T) => {
19852
- const { businessId: R } = d0(y0()), w = {
19850
+ }, lt = (T) => {
19851
+ const { businessId: F } = d0($0()), O = {
19853
19852
  fetchType: g0.Put,
19854
- url: `${v0}/${R.value}/reports/${T.id}`,
19853
+ url: `${B0}/${F.value}/reports/${T.id}`,
19855
19854
  data: T
19856
19855
  };
19857
- return E0.fetch(w);
19858
- }, lt = (T) => {
19859
- const { businessId: R } = d0(y0()), w = {
19856
+ return E0.fetch(O);
19857
+ }, _t = (T) => {
19858
+ const { businessId: F } = d0($0()), O = {
19860
19859
  fetchType: g0.Post,
19861
- url: `${v0}/${R.value}/reports`,
19860
+ url: `${B0}/${F.value}/reports`,
19862
19861
  data: T
19863
19862
  };
19864
- return E0.fetch(w);
19865
- }, _t = (T) => {
19866
- const { businessId: R } = d0(y0()), w = {
19863
+ return E0.fetch(O);
19864
+ }, Dt = (T) => {
19865
+ const { businessId: F } = d0($0()), O = {
19867
19866
  fetchType: g0.Delete,
19868
- url: `${v0}/${R.value}/reports/${T.id}`
19867
+ url: `${B0}/${F.value}/reports/${T.id}`
19869
19868
  };
19870
- return E0.fetch(w);
19871
- }, Dt = (T) => {
19872
- const { businessId: R } = d0(y0()), w = {
19869
+ return E0.fetch(O);
19870
+ }, dt = (T) => {
19871
+ const { businessId: F } = d0($0()), O = {
19873
19872
  fetchType: g0.Put,
19874
- url: `${v0}/${R.value}/reports/default`,
19873
+ url: `${B0}/${F.value}/reports/default`,
19875
19874
  data: { defaultReport: T }
19876
19875
  };
19877
- return E0.fetch(w);
19878
- }, Kt = (T, R) => {
19879
- const { businessId: w } = d0(y0()), J = {
19876
+ return E0.fetch(O);
19877
+ }, er = (T, F) => {
19878
+ const { businessId: O } = d0($0()), J = {
19880
19879
  fetchType: g0.Put,
19881
- url: `${v0}/${w.value}/reports/${T}/pos-support`,
19882
- data: { isSupportPos: R }
19880
+ url: `${B0}/${O.value}/reports/${T}/pos-support`,
19881
+ data: { isSupportPos: F }
19883
19882
  };
19884
19883
  return E0.fetch(J);
19885
- }, dt = async () => {
19886
- const { businessId: T } = d0(y0());
19884
+ }, ct = async () => {
19885
+ const { businessId: T } = d0($0());
19887
19886
  if (T) {
19888
- const R = {
19887
+ const F = {
19889
19888
  fetchType: g0.Get,
19890
- url: `${v0}/${T.value}/overview-report`
19889
+ url: `${B0}/${T.value}/overview-report`
19891
19890
  };
19892
- return E0.fetch(R);
19891
+ return E0.fetch(F);
19893
19892
  } else
19894
19893
  return Promise.reject(new Error("Business Id is not defined"));
19895
- }, ct = async () => {
19896
- const { businessId: T } = d0(y0());
19894
+ }, ft = async () => {
19895
+ const { businessId: T } = d0($0());
19897
19896
  if (T) {
19898
- const R = {
19897
+ const F = {
19899
19898
  fetchType: g0.Get,
19900
- url: `${v0}/${T.value}/config`
19899
+ url: `${B0}/${T.value}/config`
19901
19900
  };
19902
- return E0.fetch(R);
19901
+ return E0.fetch(F);
19903
19902
  } else
19904
19903
  return Promise.reject(new Error("Business Id is not defined"));
19905
- }, ft = "/report-settings", pt = async () => {
19906
- const { businessId: T } = d0(y0());
19904
+ }, pt = "/report-settings", $t = async () => {
19905
+ const { businessId: T } = d0($0());
19907
19906
  if (T) {
19908
- const R = {
19907
+ const F = {
19909
19908
  fetchType: g0.Get,
19910
- url: `${ft}/${T.value}/categories`
19909
+ url: `${pt}/${T.value}/categories`
19911
19910
  };
19912
- return E0.fetch(R);
19911
+ return E0.fetch(F);
19913
19912
  } else
19914
19913
  return Promise.reject(new Error("Business Id is not defined"));
19915
19914
  };
19916
- function z0(T, R = {}) {
19917
- const w = localStorage.getItem(T);
19918
- return w === null && (R == null ? void 0 : R.fallback) !== void 0 ? R.fallback : w === null ? null : R.format ? R.format(w) : w;
19915
+ function W0(T, F = {}) {
19916
+ const O = localStorage.getItem(T);
19917
+ return O === null && (F == null ? void 0 : F.fallback) !== void 0 ? F.fallback : O === null ? null : F.format ? F.format(O) : O;
19919
19918
  }
19920
- const N0 = {
19921
- get: z0,
19922
- getJson: (T) => z0(T, {
19919
+ const k0 = {
19920
+ get: W0,
19921
+ getJson: (T) => W0(T, {
19923
19922
  fallback: {},
19924
- format: (R) => JSON.parse(R)
19923
+ format: (F) => JSON.parse(F)
19925
19924
  }),
19926
- getNumber: (T) => z0(T, {
19925
+ getNumber: (T) => W0(T, {
19927
19926
  fallback: null,
19928
- format: (R) => Number(R)
19927
+ format: (F) => Number(F)
19929
19928
  }),
19930
19929
  set: localStorage.setItem,
19931
- setJson: (T, R) => {
19932
- localStorage.setItem(T, JSON.stringify(R));
19930
+ setJson: (T, F) => {
19931
+ localStorage.setItem(T, JSON.stringify(F));
19933
19932
  }
19934
- }, $t = () => {
19933
+ }, yt = () => {
19935
19934
  const T = {
19936
19935
  fetchType: g0.Get,
19937
19936
  url: "/schemas"
19938
19937
  };
19939
19938
  return E0.fetch(T);
19940
- }, yt = "mf-reportschema-store", gt = U0(yt, () => {
19941
- const T = o0([]), R = ye();
19942
- async function w() {
19939
+ }, gt = "mf-reportschema-store", mt = q0(gt, () => {
19940
+ const T = l0([]), F = he();
19941
+ async function O() {
19943
19942
  try {
19944
- T.value = await $t();
19943
+ T.value = await yt();
19945
19944
  } catch (J) {
19946
- console.log(J), R.open({
19945
+ console.log(J), F.open({
19947
19946
  title: "Get Schema Error",
19948
19947
  message: "Internal Server Error",
19949
19948
  type: "error"
@@ -19952,39 +19951,101 @@ const N0 = {
19952
19951
  }
19953
19952
  return {
19954
19953
  schemas: T,
19955
- getSchema: w
19954
+ getSchema: O
19956
19955
  };
19957
19956
  });
19958
- async function mt(T, R) {
19959
- const { businessId: w } = d0(y0());
19960
- if (!w.value)
19957
+ async function ht(T, F) {
19958
+ const { businessId: O } = d0($0());
19959
+ if (!O.value)
19961
19960
  return Promise.reject(new Error("Failed to grant permission. Business Id is not defined"));
19962
- if (!T || !R)
19961
+ if (!T || !F)
19963
19962
  return Promise.reject(new Error("Failed to grant permission. Permission key or report label is not defined"));
19964
19963
  const J = {
19965
19964
  fetchType: g0.Post,
19966
- url: `/businesses/${w.value}/my-permissions/report-manage`,
19967
- data: { permissionKey: T, label: R }
19965
+ url: `/businesses/${O.value}/my-permissions/report-manage`,
19966
+ data: { permissionKey: T, label: F }
19967
+ };
19968
+ await Le.fetch(J);
19969
+ }
19970
+ function St(T) {
19971
+ const F = T.permissionKey || T.id;
19972
+ return F ? `business::report::reports::${F}` : null;
19973
+ }
19974
+ function Ce() {
19975
+ const { sessionUser: T } = ie(), F = $e(), { country: O } = d0($0()), J = R0(() => {
19976
+ const q = F.flags.find(
19977
+ (z) => z.key === K0.report_portal_permission_th_control_temp
19978
+ );
19979
+ return O.value.toUpperCase() === "TH" && (q == null ? void 0 : q.value) === !0;
19980
+ }), P = R0(() => {
19981
+ if (J.value)
19982
+ return !0;
19983
+ const q = F.flags.find(
19984
+ (z) => z.key === K0.report_portal_permission
19985
+ );
19986
+ return (q == null ? void 0 : q.value) === !0;
19987
+ }), B = R0(
19988
+ () => {
19989
+ var q, z;
19990
+ return Array.isArray((q = T.value) == null ? void 0 : q.permissions) ? (z = T.value) == null ? void 0 : z.permissions : [];
19991
+ }
19992
+ );
19993
+ function H(q, z) {
19994
+ if (!P.value) return !0;
19995
+ const G = St(q);
19996
+ return !G || !B.value.length ? !1 : z.some((a0) => Z0([{
19997
+ action: a0,
19998
+ // Report subjects are custom strings; cast to satisfy CaslPermission type
19999
+ subject: G
20000
+ }], B.value).granted);
20001
+ }
20002
+ function U(q) {
20003
+ return H(q, [T0.update, T0.manage]);
20004
+ }
20005
+ function Q(q) {
20006
+ return H(q, [T0.read, T0.manage]);
20007
+ }
20008
+ function k(q) {
20009
+ return H(q, [T0.delete, T0.manage]);
20010
+ }
20011
+ function X(q) {
20012
+ return H(q, [T0.manage]);
20013
+ }
20014
+ function V(q) {
20015
+ return H(q, [T0.create, T0.manage]);
20016
+ }
20017
+ const e0 = R0(() => {
20018
+ if (!P.value) return !0;
20019
+ const q = "business::report::createReport";
20020
+ return B.value.length ? [T0.create, T0.manage].some((z) => Z0([{
20021
+ action: z,
20022
+ subject: q
20023
+ }], B.value).granted) : !1;
20024
+ });
20025
+ return {
20026
+ isReportPermissionEnabled: P,
20027
+ canRead: Q,
20028
+ canUpdate: U,
20029
+ canDelete: k,
20030
+ canManage: X,
20031
+ canDuplicate: V,
20032
+ canCreateReport: e0
19968
20033
  };
19969
- await Me.fetch(J);
19970
20034
  }
19971
- const ht = "mf-reportreport-store", ne = U0(ht, () => {
19972
- const { business: T, globalFilters: R } = d0(V0()), { schemas: w } = d0(gt()), { flags: J } = d0(ce()), P = o0([]), B = o0([]), N = o0(0), U = ye(), q = w0(() => P.value.filter((f) => f.editable)), k = w0(() => P.value.filter((f) => !f.editable)), V = o0(!1), Q = o0(""), Z = o0(), W = o0(), K = w0(() => {
20035
+ const Et = "mf-reportreport-store", ue = q0(Et, () => {
20036
+ const { business: T, globalFilters: F } = d0(Y0()), { schemas: O } = d0(mt()), { flags: J } = d0($e()), P = l0([]), B = l0([]), H = l0(0), U = he(), Q = R0(() => P.value.filter((f) => f.editable)), k = R0(() => P.value.filter((f) => !f.editable)), X = l0(!1), V = l0(""), e0 = l0(), q = l0(), z = R0(() => {
19973
20037
  const f = J.value.find(
19974
- (r) => r.key === j0.report_portal_integration_custom_report
20038
+ (r) => r.key === K0.report_portal_integration_custom_report
19975
20039
  );
19976
20040
  return typeof (f == null ? void 0 : f.value) == "number" ? f.value : null;
19977
- }), Y = w0(() => {
19978
- const f = J.value.find((r) => r.key === j0.report_portal_permission);
19979
- return (f == null ? void 0 : f.value) === !0;
19980
- }), u0 = w0(() => K.value === null ? !0 : K.value - q.value.length > 0);
19981
- async function l0() {
19982
- return W.value = await dt(), W.value;
20041
+ }), { isReportPermissionEnabled: G } = Ce(), a0 = R0(() => z.value === null ? !0 : z.value - Q.value.length > 0);
20042
+ async function o0() {
20043
+ return q.value = await ct(), q.value;
19983
20044
  }
19984
20045
  async function s0() {
19985
20046
  var f;
19986
20047
  try {
19987
- P.value = await st(), B.value = await pt(), P.value.find((e) => e.id === Q.value) || (Q.value = ((f = P.value.find((e) => e.isDefault)) == null ? void 0 : f.id) || P.value[0].id);
20048
+ P.value = await ot(), B.value = await $t(), P.value.find((e) => e.id === V.value) || (V.value = ((f = P.value.find((e) => e.isDefault)) == null ? void 0 : f.id) || P.value[0].id);
19988
20049
  } catch (r) {
19989
20050
  console.log(r), U.open({
19990
20051
  title: "Report Fetch Error",
@@ -19993,21 +20054,21 @@ const ht = "mf-reportreport-store", ne = U0(ht, () => {
19993
20054
  });
19994
20055
  }
19995
20056
  }
19996
- const D0 = w0(
19997
- () => P.value.find((f) => f.id === Q.value)
20057
+ const D0 = R0(
20058
+ () => P.value.find((f) => f.id === V.value)
19998
20059
  );
19999
20060
  function f0(f) {
20000
20061
  var e;
20001
- const r = (e = w.value.find((n) => n.name === f.schemaName)) == null ? void 0 : e.fields.find((n) => n.name === f.name);
20062
+ const r = (e = O.value.find((n) => n.name === f.schemaName)) == null ? void 0 : e.fields.find((n) => n.name === f.name);
20002
20063
  return r == null ? void 0 : r.type;
20003
20064
  }
20004
- Y0(
20065
+ G0(
20005
20066
  () => {
20006
20067
  var f;
20007
20068
  return (f = D0.value) == null ? void 0 : f.globalFilters;
20008
20069
  },
20009
20070
  (f) => {
20010
- R.value = (f ?? []).map((r) => ({
20071
+ F.value = (f ?? []).map((r) => ({
20011
20072
  ...r,
20012
20073
  values: Array.isArray(r.values) ? [...r.values] : [],
20013
20074
  type: f0(r)
@@ -20015,18 +20076,18 @@ const ht = "mf-reportreport-store", ne = U0(ht, () => {
20015
20076
  },
20016
20077
  { deep: !0 }
20017
20078
  );
20018
- const p0 = o0(), X = o0(0), G = o0(), n0 = o0(null), t0 = o0(null), i0 = o0(!1), z = o0(!1), r0 = o0(!1);
20079
+ const p0 = l0(), Y = l0(0), W = l0(), n0 = l0(null), t0 = l0(null), i0 = l0(!1), j = l0(!1), r0 = l0(!1);
20019
20080
  async function _0(f) {
20020
- const r = q.value.findIndex((n) => n.id === f.id);
20081
+ const r = Q.value.findIndex((n) => n.id === f.id);
20021
20082
  let e;
20022
20083
  if (r >= 0)
20023
- e = await ot(f);
20024
- else {
20025
20084
  e = await lt(f);
20085
+ else {
20086
+ e = await _t(f);
20026
20087
  try {
20027
- if (Y.value) {
20028
- await mt(e.id, e.name);
20029
- const n = ge(), { businessId: i } = d0(y0());
20088
+ if (G.value) {
20089
+ await ht(e.id, e.name);
20090
+ const n = ie(), { businessId: i } = d0($0());
20030
20091
  await n.fetchUserPermissions(void 0, i.value);
20031
20092
  }
20032
20093
  } catch (n) {
@@ -20038,20 +20099,20 @@ const ht = "mf-reportreport-store", ne = U0(ht, () => {
20038
20099
  }
20039
20100
  return u(e.id), await s0(), e;
20040
20101
  }
20041
- async function e0(f) {
20042
- await _t(f), await s0();
20102
+ async function Z(f) {
20103
+ await Dt(f), await s0();
20043
20104
  }
20044
20105
  async function t(f) {
20045
- await Dt(f), await l0();
20106
+ await dt(f), await o0();
20046
20107
  }
20047
20108
  function u(f) {
20048
- Q.value = f;
20109
+ V.value = f;
20049
20110
  }
20050
- const _ = o0(null);
20111
+ const _ = l0(null);
20051
20112
  function $() {
20052
20113
  var f;
20053
20114
  if ((f = T.value) != null && f._id) {
20054
- const r = N0.getJson("pinReport")[T.value._id];
20115
+ const r = k0.getJson("pinReport")[T.value._id];
20055
20116
  if ((r == null ? void 0 : r.length) > 0) {
20056
20117
  _.value = r;
20057
20118
  return;
@@ -20062,72 +20123,69 @@ const ht = "mf-reportreport-store", ne = U0(ht, () => {
20062
20123
  function S(f) {
20063
20124
  var r;
20064
20125
  if (T.value && f) {
20065
- const e = N0.getJson("pinReport");
20066
- e[(r = T.value) == null ? void 0 : r._id] ? e[T.value._id].push(f.id) : e[T.value._id] = [f.id], N0.setJson("pinReport", e), $();
20126
+ const e = k0.getJson("pinReport");
20127
+ e[(r = T.value) == null ? void 0 : r._id] ? e[T.value._id].push(f.id) : e[T.value._id] = [f.id], k0.setJson("pinReport", e), $();
20067
20128
  }
20068
20129
  }
20069
20130
  function b(f) {
20070
20131
  if (T.value) {
20071
- const r = N0.getJson("pinReport");
20132
+ const r = k0.getJson("pinReport");
20072
20133
  r[T.value._id].length === 1 ? r[T.value._id] = [] : r[T.value._id] = r[T.value._id].filter(
20073
20134
  (e) => e !== f
20074
- ), N0.setJson("pinReport", r), $();
20135
+ ), k0.setJson("pinReport", r), $();
20075
20136
  }
20076
20137
  }
20077
20138
  async function A() {
20078
- return await ct();
20139
+ return await ft();
20079
20140
  }
20080
20141
  return {
20081
20142
  isOpenDownloadDialog: i0,
20082
- isOpenFeedbackDialog: z,
20143
+ isOpenFeedbackDialog: j,
20083
20144
  isOpenEmailDialog: r0,
20084
- currentSelectWidgetType: Z,
20145
+ currentSelectWidgetType: e0,
20085
20146
  reports: P,
20086
20147
  categories: B,
20087
20148
  currentReport: D0,
20088
20149
  editingReport: p0,
20089
- editingTileIndex: X,
20090
- editingTile: G,
20150
+ editingTileIndex: Y,
20151
+ editingTile: W,
20091
20152
  editingGlobalFilterIndex: n0,
20092
20153
  editingGlobalFilter: t0,
20093
- currentReportId: Q,
20094
- editableReports: q,
20154
+ currentReportId: V,
20155
+ editableReports: Q,
20095
20156
  nonEditableReports: k,
20096
- isOpenAddReportDialog: V,
20097
- overviewReport: W,
20157
+ isOpenAddReportDialog: X,
20158
+ overviewReport: q,
20098
20159
  pinReport: _,
20099
- scrollPositionY: N,
20100
- customReportQuota: K,
20101
- canCreateCustomReport: u0,
20160
+ scrollPositionY: H,
20161
+ customReportQuota: z,
20162
+ canCreateCustomReport: a0,
20102
20163
  createOrUpdateReport: _0,
20103
- removeReport: e0,
20164
+ removeReport: Z,
20104
20165
  updateCurrentReportId: u,
20105
20166
  getReports: s0,
20106
20167
  updateDefaultReport: t,
20107
- getOverviewReport: l0,
20168
+ getOverviewReport: o0,
20108
20169
  refreshPinReport: $,
20109
20170
  cachePinReport: S,
20110
20171
  clearPinReport: b,
20111
20172
  getReportConfig: A
20112
20173
  };
20113
- }), St = "mf-reportnavigation", Ae = U0(St, () => {
20114
- const { disabled: T } = d0(Re()), { sessionUser: R } = ge(), w = ce(), J = w0(() => {
20115
- const Q = w.flags.find((Z) => Z.key === j0.report_portal_permission);
20116
- return (Q == null ? void 0 : Q.value) === !0;
20117
- });
20118
- function P(Q) {
20119
- var Y;
20120
- if (!J.value) return !0;
20121
- const Z = ((Y = R.value) == null ? void 0 : Y.permissions) ?? [];
20122
- if (!Array.isArray(Z) || Z.length === 0) return !1;
20123
- const W = {
20124
- action: xe.manage,
20125
- subject: Q
20174
+ }), At = "mf-reportnavigation", be = q0(At, () => {
20175
+ const { disabled: T } = d0(Oe()), { sessionUser: F } = ie(), { isReportPermissionEnabled: O } = Ce();
20176
+ function J(X) {
20177
+ var z;
20178
+ if (!O.value) return !0;
20179
+ const V = ((z = F.value) == null ? void 0 : z.permissions) ?? [];
20180
+ if (!Array.isArray(V) || V.length === 0) return !1;
20181
+ const e0 = {
20182
+ action: T0.manage,
20183
+ subject: X
20126
20184
  };
20127
- return Le([W], Z).granted;
20185
+ return Z0([e0], V).granted;
20128
20186
  }
20129
- const B = o0("v5"), N = o0(!1), U = w0(() => {
20130
- const Q = !P("business::report::accessInsight"), Z = !P("business::report::accessSetting"), W = !P("business::report::accessIntegration"), K = [
20187
+ const P = l0("v5"), B = l0(!1), H = R0(() => {
20188
+ const X = !J("business::report::accessInsight"), V = !J("business::report::accessSetting"), e0 = !J("business::report::accessIntegration"), q = [
20131
20189
  {
20132
20190
  label: "overview",
20133
20191
  value: "overview",
@@ -20142,93 +20200,93 @@ const ht = "mf-reportreport-store", ne = U0(ht, () => {
20142
20200
  label: "insight",
20143
20201
  value: "insight",
20144
20202
  route: "insights",
20145
- badge: () => we(Ne.FmPill, { variant: "beta" }),
20146
- disabled: Q
20203
+ badge: () => ve(ke.FmPill, { variant: "beta" }),
20204
+ disabled: X
20147
20205
  },
20148
20206
  {
20149
20207
  label: "setting",
20150
20208
  value: "setting",
20151
20209
  route: "setting",
20152
- disabled: Z
20210
+ disabled: V
20153
20211
  }
20154
20212
  ];
20155
- return T.value || K.push({
20213
+ return T.value || q.push({
20156
20214
  label: "integration",
20157
20215
  value: "integration",
20158
20216
  route: "integrations",
20159
- disabled: W
20160
- }), K;
20161
- }), q = o0(""), { currentRoute: k } = ke();
20162
- function V(Q) {
20163
- switch (Q.name) {
20217
+ disabled: e0
20218
+ }), q;
20219
+ }), U = l0(""), { currentRoute: Q } = Ue();
20220
+ function k(X) {
20221
+ switch (X.name) {
20164
20222
  case "report":
20165
20223
  case "reports":
20166
- q.value = "report";
20224
+ U.value = "report";
20167
20225
  break;
20168
20226
  case "overview":
20169
- q.value = "overview";
20227
+ U.value = "overview";
20170
20228
  break;
20171
20229
  case "setting":
20172
- q.value = "setting";
20230
+ U.value = "setting";
20173
20231
  break;
20174
20232
  case "insights":
20175
- q.value = "insight";
20233
+ U.value = "insight";
20176
20234
  break;
20177
20235
  case "integration":
20178
20236
  case "integrations":
20179
- q.value = "integration";
20237
+ U.value = "integration";
20180
20238
  break;
20181
20239
  }
20182
20240
  }
20183
- return Y0(
20184
- k,
20185
- (Q) => {
20186
- V(Q);
20241
+ return G0(
20242
+ Q,
20243
+ (X) => {
20244
+ k(X);
20187
20245
  },
20188
20246
  { immediate: !0 }
20189
20247
  ), {
20190
- selectedNavigationTab: q,
20191
- navigationTabs: U,
20192
- version: B,
20193
- suppressReportRouteSync: N
20248
+ selectedNavigationTab: U,
20249
+ navigationTabs: H,
20250
+ version: P,
20251
+ suppressReportRouteSync: B
20194
20252
  };
20195
20253
  });
20196
- var Te = /* @__PURE__ */ ((T) => (T.generating = "GENERATING", T.completed = "COMPLETED", T.failed = "FAILED", T.canceled = "CANCELLED", T))(Te || {});
20197
- const Et = "/assets/formatChartData.worker-Df5ziPQ2.js", W0 = /* @__PURE__ */ new Map();
20198
- function le(T) {
20254
+ var Ie = /* @__PURE__ */ ((T) => (T.generating = "GENERATING", T.completed = "COMPLETED", T.failed = "FAILED", T.canceled = "CANCELLED", T))(Ie || {});
20255
+ const Tt = "/assets/formatChartData.worker-CxcSukKp.js", j0 = /* @__PURE__ */ new Map();
20256
+ function de(T) {
20199
20257
  return new Worker(T, { type: "module" });
20200
20258
  }
20201
- async function At(T) {
20202
- if (W0.has(T))
20203
- return le(W0.get(T));
20204
- let R = T;
20259
+ async function Ct(T) {
20260
+ if (j0.has(T))
20261
+ return de(j0.get(T));
20262
+ let F = T;
20205
20263
  if (location.hostname !== new URL(import.meta.url).hostname) {
20206
- const P = new URL(T.replace(/^\//, ""), import.meta.url).href, B = await fetch(P).then((U) => U.text()), N = new Blob([B], { type: "application/javascript" });
20207
- R = URL.createObjectURL(N);
20264
+ const P = new URL(T.replace(/^\//, ""), import.meta.url).href, B = await fetch(P).then((U) => U.text()), H = new Blob([B], { type: "application/javascript" });
20265
+ F = URL.createObjectURL(H);
20208
20266
  }
20209
- const J = le(R);
20210
- return W0.set(T, R), J;
20267
+ const J = de(F);
20268
+ return j0.set(T, F), J;
20211
20269
  }
20212
- async function Tt(T, R) {
20213
- const w = await At(T);
20214
- return w.postMessage(R), await new Promise((J) => {
20215
- w.onmessage = async (P) => {
20270
+ async function bt(T, F) {
20271
+ const O = await Ct(T);
20272
+ return O.postMessage(F), await new Promise((J) => {
20273
+ O.onmessage = async (P) => {
20216
20274
  const B = P.data;
20217
- w.terminate(), J(B);
20275
+ O.terminate(), J(B);
20218
20276
  };
20219
20277
  });
20220
20278
  }
20221
- const Ct = "mf-reportwidget-size", Ce = U0(Ct, () => {
20222
- const T = o0([]);
20223
- function R(w, J) {
20279
+ const It = "mf-reportwidget-size", Fe = q0(It, () => {
20280
+ const T = l0([]);
20281
+ function F(O, J) {
20224
20282
  var P;
20225
20283
  try {
20226
- if (!w) return;
20284
+ if (!O) return;
20227
20285
  let B;
20228
- const N = w.$el, U = (P = N == null ? void 0 : N.querySelector) == null ? void 0 : P.call(N, "canvas");
20286
+ const H = O.$el, U = (P = H == null ? void 0 : H.querySelector) == null ? void 0 : P.call(H, "canvas");
20229
20287
  if (U) {
20230
- const q = U.getBoundingClientRect();
20231
- B = { width: Math.round(q.width), height: Math.round(q.height) };
20288
+ const Q = U.getBoundingClientRect();
20289
+ B = { width: Math.round(Q.width), height: Math.round(Q.height) };
20232
20290
  }
20233
20291
  if (B && B.width > 0 && B.height > 0)
20234
20292
  return typeof J == "number" && (T.value[J] = B), B;
@@ -20236,328 +20294,328 @@ const Ct = "mf-reportwidget-size", Ce = U0(Ct, () => {
20236
20294
  console.log(B);
20237
20295
  }
20238
20296
  }
20239
- return { sizes: T, extractChartSize: R };
20240
- }), bt = "mf-reportreport-sort-store", be = U0(bt, () => {
20241
- const T = o0([]);
20242
- function R(P, B) {
20297
+ return { sizes: T, extractChartSize: F };
20298
+ }), Ft = "mf-reportreport-sort-store", Me = q0(Ft, () => {
20299
+ const T = l0([]);
20300
+ function F(P, B) {
20243
20301
  if (P == null) return;
20244
- const N = Array.isArray(B) ? B.filter((k) => k && k.key) : [], U = T.value.findIndex((k) => k.tileIndex === P), q = { tileIndex: P, sorts: N };
20245
- U !== -1 ? T.value.splice(U, 1, q) : T.value.push(q);
20302
+ const H = Array.isArray(B) ? B.filter((k) => k && k.key) : [], U = T.value.findIndex((k) => k.tileIndex === P), Q = { tileIndex: P, sorts: H };
20303
+ U !== -1 ? T.value.splice(U, 1, Q) : T.value.push(Q);
20246
20304
  }
20247
- function w(P) {
20305
+ function O(P) {
20248
20306
  var B;
20249
- return P == null ? [] : ((B = T.value.find((N) => N.tileIndex === P)) == null ? void 0 : B.sorts) ?? [];
20307
+ return P == null ? [] : ((B = T.value.find((H) => H.tileIndex === P)) == null ? void 0 : B.sorts) ?? [];
20250
20308
  }
20251
20309
  function J(P) {
20252
20310
  typeof P == "number" ? T.value = T.value.filter((B) => B.tileIndex !== P) : T.value = [];
20253
20311
  }
20254
- return { tileSort: T, setTileSorts: R, getTileSorts: w, clearTileSorts: J };
20312
+ return { tileSort: T, setTileSorts: F, getTileSorts: O, clearTileSorts: J };
20255
20313
  });
20256
- async function It(T, R) {
20257
- for (let w = 0; w < T.length; w++)
20314
+ async function Mt(T, F) {
20315
+ for (let O = 0; O < T.length; O++)
20258
20316
  try {
20259
- return await T[w]();
20317
+ return await T[O]();
20260
20318
  } catch (J) {
20261
- if (J.message === "Unauthorized" || w === T.length - 1) throw J;
20262
- await new Promise((P) => setTimeout(P, R));
20319
+ if (J.message === "Unauthorized" || O === T.length - 1) throw J;
20320
+ await new Promise((P) => setTimeout(P, F));
20263
20321
  }
20264
20322
  throw new Error("No callback");
20265
20323
  }
20266
- const Zt = async (T, R, w) => {
20324
+ const tr = async (T, F, O) => {
20267
20325
  var s0, D0, f0, p0;
20268
- const { businessId: J, country: P } = d0(y0()), { currentReport: B } = ne(), {
20269
- selectedRestaurantIds: N,
20326
+ const { businessId: J, country: P } = d0($0()), { currentReport: B } = ue(), {
20327
+ selectedRestaurantIds: H,
20270
20328
  selectedWarehouseIds: U,
20271
- selectedLocationIds: q,
20329
+ selectedLocationIds: Q,
20272
20330
  dateRange: k,
20273
- compareDateRange: V,
20274
- timeRange: Q,
20275
- globalFilters: Z,
20276
- timezone: W
20277
- } = V0();
20278
- if (q.length === 0)
20331
+ compareDateRange: X,
20332
+ timeRange: V,
20333
+ globalFilters: e0,
20334
+ timezone: q
20335
+ } = Y0();
20336
+ if (Q.length === 0)
20279
20337
  return null;
20280
- const K = ie(T, Z, w ?? ""), Y = {
20338
+ const z = se(T, e0, O ?? ""), G = {
20281
20339
  fetchType: g0.Post,
20282
20340
  url: `/${J.value}/postgres-query`,
20283
- data: re.getQueryRequests({
20284
- widget: K,
20341
+ data: ae.getQueryRequests({
20342
+ widget: z,
20285
20343
  dateRange: [k.startDate, k.endDate],
20286
- compareDateRange: V.startDate && V.endDate ? [V.startDate, V.endDate] : void 0,
20344
+ compareDateRange: X.startDate && X.endDate ? [X.startDate, X.endDate] : void 0,
20287
20345
  timeRange: [
20288
- C0().tz(W).hour(Number((s0 = Q.start) == null ? void 0 : s0.hour)).minute(Number((D0 = Q.start) == null ? void 0 : D0.minute)).toISOString(),
20289
- C0().tz(W).hour(Number((f0 = Q.end) == null ? void 0 : f0.hour)).minute(Number((p0 = Q.end) == null ? void 0 : p0.minute)).endOf("minutes").toISOString()
20346
+ b0().tz(q).hour(Number((s0 = V.start) == null ? void 0 : s0.hour)).minute(Number((D0 = V.start) == null ? void 0 : D0.minute)).toISOString(),
20347
+ b0().tz(q).hour(Number((f0 = V.end) == null ? void 0 : f0.hour)).minute(Number((p0 = V.end) == null ? void 0 : p0.minute)).endOf("minutes").toISOString()
20290
20348
  ],
20291
20349
  businessIds: J.value ? [J.value] : [],
20292
- restaurantIds: N,
20350
+ restaurantIds: H,
20293
20351
  warehouseIds: U,
20294
- timezone: W
20295
- }).map((X, G) => {
20296
- const n0 = G === 0 ? 3e3 : 12e3;
20352
+ timezone: q
20353
+ }).map((Y, W) => {
20354
+ const n0 = W === 0 ? 3e3 : 12e3;
20297
20355
  return {
20298
- ...X,
20299
- limit: N.length > 50 ? T.config.limit || n0 : T.config.limit,
20356
+ ...Y,
20357
+ limit: H.length > 50 ? T.config.limit || n0 : T.config.limit,
20300
20358
  skipStringSpaceGrouping: !!(B != null && B.batch),
20301
20359
  reportId: B == null ? void 0 : B.id
20302
20360
  };
20303
20361
  }),
20304
20362
  requestConfig: {
20305
20363
  timeout: 1e3 * 60 * 5,
20306
- signal: R
20364
+ signal: F
20307
20365
  }
20308
- }, u0 = [() => E0.fetch(Y)];
20309
- N.length < 50 && u0.push(() => E0.fetch(Y)), u0.push(() => (Y.url = Y.url.replace("postgres-query", "query"), E0.fetch(Y)));
20310
- const l0 = await It(u0, 2e3);
20311
- return (await Tt(Et, {
20312
- responses: l0,
20366
+ }, a0 = [() => E0.fetch(G)];
20367
+ H.length < 50 && a0.push(() => E0.fetch(G)), a0.push(() => (G.url = G.url.replace("postgres-query", "query"), E0.fetch(G)));
20368
+ const o0 = await Mt(a0, 2e3);
20369
+ return (await bt(Tt, {
20370
+ responses: o0,
20313
20371
  widget: JSON.parse(JSON.stringify(T)),
20314
20372
  country: P.value,
20315
- timezone: W
20373
+ timezone: q
20316
20374
  })).data;
20317
20375
  };
20318
- function Ie(T) {
20319
- const R = T.config;
20376
+ function Re(T) {
20377
+ const F = T.config;
20320
20378
  return {
20321
- showTitle: R.showTitle,
20322
- titleFontSize: R.titleFontSize,
20323
- titleBold: R.titleBold,
20324
- titleItalic: R.titleItalic,
20325
- titleUnderline: R.titleUnderline,
20326
- chartColors: R.chartColors,
20327
- chartColorLayers: R.chartColorLayers,
20328
- chartBreakdownColors: R.chartBreakdownColors,
20329
- chartUseSecondaryMetricShades: R.chartUseSecondaryMetricShades,
20330
- chartColorBinding: R.chartColorBinding,
20331
- stackBarOverlap: R.stackBarOverlap,
20332
- lineStyles: R.lineStyles,
20333
- lineStyleBinding: R.lineStyleBinding,
20334
- showLabel: R.showLabel,
20335
- labelAlign: R.labelAlign,
20336
- labelAnchor: R.labelAnchor,
20337
- labelRotation: R.labelRotation,
20338
- labelOffset: R.labelOffset,
20339
- labelFontSize: R.labelFontSize,
20340
- showX: R.showX,
20341
- xPosition: R.xPosition,
20342
- showXGrid: R.showXGrid,
20343
- showXTick: R.showXTick,
20344
- xTickFontSize: R.xTickFontSize,
20345
- showY: R.showY,
20346
- yPosition: R.yPosition,
20347
- showYGrid: R.showYGrid,
20348
- showYTick: R.showYTick,
20349
- yTickFontSize: R.yTickFontSize,
20350
- showLegend: R.showLegend,
20351
- legendPosition: R.legendPosition,
20352
- usePointStyle: R.usePointStyle,
20353
- legendFontSize: R.legendFontSize,
20354
- legendColor: R.legendColor,
20355
- legendMaxWidth: R.legendMaxWidth
20379
+ showTitle: F.showTitle,
20380
+ titleFontSize: F.titleFontSize,
20381
+ titleBold: F.titleBold,
20382
+ titleItalic: F.titleItalic,
20383
+ titleUnderline: F.titleUnderline,
20384
+ chartColors: F.chartColors,
20385
+ chartColorLayers: F.chartColorLayers,
20386
+ chartBreakdownColors: F.chartBreakdownColors,
20387
+ chartUseSecondaryMetricShades: F.chartUseSecondaryMetricShades,
20388
+ chartColorBinding: F.chartColorBinding,
20389
+ stackBarOverlap: F.stackBarOverlap,
20390
+ lineStyles: F.lineStyles,
20391
+ lineStyleBinding: F.lineStyleBinding,
20392
+ showLabel: F.showLabel,
20393
+ labelAlign: F.labelAlign,
20394
+ labelAnchor: F.labelAnchor,
20395
+ labelRotation: F.labelRotation,
20396
+ labelOffset: F.labelOffset,
20397
+ labelFontSize: F.labelFontSize,
20398
+ showX: F.showX,
20399
+ xPosition: F.xPosition,
20400
+ showXGrid: F.showXGrid,
20401
+ showXTick: F.showXTick,
20402
+ xTickFontSize: F.xTickFontSize,
20403
+ showY: F.showY,
20404
+ yPosition: F.yPosition,
20405
+ showYGrid: F.showYGrid,
20406
+ showYTick: F.showYTick,
20407
+ yTickFontSize: F.yTickFontSize,
20408
+ showLegend: F.showLegend,
20409
+ legendPosition: F.legendPosition,
20410
+ usePointStyle: F.usePointStyle,
20411
+ legendFontSize: F.legendFontSize,
20412
+ legendColor: F.legendColor,
20413
+ legendMaxWidth: F.legendMaxWidth
20356
20414
  };
20357
20415
  }
20358
- function Fe(T) {
20359
- const R = T.config;
20416
+ function xe(T) {
20417
+ const F = T.config;
20360
20418
  return {
20361
- rowHeight: R.rowHeight,
20362
- colWidths: R.colWidths
20419
+ rowHeight: F.rowHeight,
20420
+ colWidths: F.colWidths
20363
20421
  };
20364
20422
  }
20365
- const er = async ({
20423
+ const rr = async ({
20366
20424
  reportType: T,
20367
- index: R,
20368
- orientationTypes: w,
20425
+ index: F,
20426
+ orientationTypes: O,
20369
20427
  isCombinedLocationLayout: J,
20370
20428
  locationIds: P,
20371
20429
  timeRange: B,
20372
- dateRange: N
20430
+ dateRange: H
20373
20431
  }) => {
20374
- const { businessId: U } = d0(y0()), { restaurants: q, warehouses: k, globalFilters: V, timezone: Q } = V0(), { currentReport: Z, overviewReport: W } = ne(), { selectedNavigationTab: K } = Ae(), { sizes: Y } = Ce(), { getTileSorts: u0 } = be();
20375
- let l0 = Z == null ? void 0 : Z.id, s0 = (Z == null ? void 0 : Z.tiles) ?? [];
20376
- K === "overview" && W && (l0 = W == null ? void 0 : W.id, s0 = (W == null ? void 0 : W.tiles) ?? []);
20377
- const D0 = s0.filter((i0, z) => typeof R == "number" ? z === R : !0).map((i0) => ie(i0.widget, V, i0.id)), f0 = {
20432
+ const { businessId: U } = d0($0()), { restaurants: Q, warehouses: k, globalFilters: X, timezone: V } = Y0(), { currentReport: e0, overviewReport: q } = ue(), { selectedNavigationTab: z } = be(), { sizes: G } = Fe(), { getTileSorts: a0 } = Me();
20433
+ let o0 = e0 == null ? void 0 : e0.id, s0 = (e0 == null ? void 0 : e0.tiles) ?? [];
20434
+ z === "overview" && q && (o0 = q == null ? void 0 : q.id, s0 = (q == null ? void 0 : q.tiles) ?? []);
20435
+ const D0 = s0.filter((i0, j) => typeof F == "number" ? j === F : !0).map((i0) => se(i0.widget, X, i0.id)), f0 = {
20378
20436
  fetchType: g0.Post,
20379
- url: `/${U.value}/file?lang=${J0()}`,
20437
+ url: `/${U.value}/file?lang=${H0()}`,
20380
20438
  data: {
20381
20439
  configs: [
20382
- ...D0.map((i0, z) => {
20383
- var _0, e0, t, u;
20384
- const r0 = Y[R ?? z];
20440
+ ...D0.map((i0, j) => {
20441
+ var _0, Z, t, u;
20442
+ const r0 = G[F ?? j];
20385
20443
  return {
20386
- requests: re.getQueryRequests({
20444
+ requests: ae.getQueryRequests({
20387
20445
  widget: i0,
20388
- dateRange: [N.startDate, N.endDate],
20446
+ dateRange: [H.startDate, H.endDate],
20389
20447
  timeRange: [
20390
- C0().tz(Q).set("hour", Number((_0 = B.start) == null ? void 0 : _0.hour)).set("minute", Number((e0 = B.start) == null ? void 0 : e0.minute)).toISOString(),
20391
- C0().tz(Q).set("hour", Number((t = B.end) == null ? void 0 : t.hour)).set("minute", Number((u = B.end) == null ? void 0 : u.minute)).toISOString()
20448
+ b0().tz(V).set("hour", Number((_0 = B.start) == null ? void 0 : _0.hour)).set("minute", Number((Z = B.start) == null ? void 0 : Z.minute)).toISOString(),
20449
+ b0().tz(V).set("hour", Number((t = B.end) == null ? void 0 : t.hour)).set("minute", Number((u = B.end) == null ? void 0 : u.minute)).toISOString()
20392
20450
  ],
20393
20451
  businessIds: U ? [U.value] : [],
20394
20452
  restaurantIds: P.filter(
20395
- (_) => q.find(($) => $.id === _)
20453
+ (_) => Q.find(($) => $.id === _)
20396
20454
  ),
20397
20455
  warehouseIds: P.filter(
20398
20456
  (_) => k.find(($) => $.id === _)
20399
20457
  ),
20400
- timezone: Q
20458
+ timezone: V
20401
20459
  }),
20402
- index: R || z,
20460
+ index: F || j,
20403
20461
  drillDimension: null,
20404
20462
  chartWidth: (r0 == null ? void 0 : r0.width) ?? i0.config.chartWidth,
20405
20463
  chartHeight: (r0 == null ? void 0 : r0.height) ?? i0.config.chartHeight,
20406
- ...Ie(i0),
20407
- ...Fe(i0),
20408
- globalSorts: u0(R ?? z)
20464
+ ...Re(i0),
20465
+ ...xe(i0),
20466
+ globalSorts: a0(F ?? j)
20409
20467
  };
20410
20468
  })
20411
20469
  ],
20412
- reportId: l0,
20470
+ reportId: o0,
20413
20471
  type: T,
20414
- orientationTypes: w,
20472
+ orientationTypes: O,
20415
20473
  isCombinedLocationLayout: J
20416
20474
  },
20417
20475
  requestConfig: {
20418
20476
  responseType: "arraybuffer",
20419
20477
  timeout: 1e3 * 60 * 60 * 24
20420
20478
  }
20421
- }, { headers: p0, data: X } = await te.rawFetch(f0), G = p0["content-disposition"].split("filename=")[1].replaceAll('"', ""), n0 = window.URL.createObjectURL(new Blob([new Uint8Array(X).buffer])), t0 = document.createElement("a");
20422
- t0.href = n0, t0.setAttribute("download", decodeURIComponent(G)), document.body.appendChild(t0), t0.click(), t0.remove();
20423
- }, tr = async ({
20479
+ }, { headers: p0, data: Y } = await ne.rawFetch(f0), W = p0["content-disposition"].split("filename=")[1].replaceAll('"', ""), n0 = window.URL.createObjectURL(new Blob([new Uint8Array(Y).buffer])), t0 = document.createElement("a");
20480
+ t0.href = n0, t0.setAttribute("download", decodeURIComponent(W)), document.body.appendChild(t0), t0.click(), t0.remove();
20481
+ }, nr = async ({
20424
20482
  emails: T,
20425
- types: R,
20426
- dateRange: w,
20483
+ types: F,
20484
+ dateRange: O,
20427
20485
  timeRange: J,
20428
20486
  locationIds: P,
20429
20487
  orientationTypes: B,
20430
- isCombinedLocationLayout: N
20488
+ isCombinedLocationLayout: H
20431
20489
  }) => {
20432
- const { businessId: U } = d0(y0()), { currentReport: q, overviewReport: k } = ne(), { selectedNavigationTab: V } = Ae(), { restaurants: Q, warehouses: Z, globalFilters: W, timezone: K } = V0(), { sizes: Y } = Ce(), { getTileSorts: u0 } = be();
20490
+ const { businessId: U } = d0($0()), { currentReport: Q, overviewReport: k } = ue(), { selectedNavigationTab: X } = be(), { restaurants: V, warehouses: e0, globalFilters: q, timezone: z } = Y0(), { sizes: G } = Fe(), { getTileSorts: a0 } = Me();
20433
20491
  if (T.length === 0) {
20434
20492
  console.error("No email addresses provided.");
20435
20493
  return;
20436
20494
  }
20437
- let l0 = (q == null ? void 0 : q.id) || "", s0 = (q == null ? void 0 : q.name) || "", D0 = (q == null ? void 0 : q.tiles) ?? [];
20438
- V === "overview" && k && (l0 = k == null ? void 0 : k.id, s0 = k.name, D0 = (k == null ? void 0 : k.tiles) ?? []);
20439
- const f0 = D0.map((X) => ie(X.widget, W, X.id)), p0 = {
20495
+ let o0 = (Q == null ? void 0 : Q.id) || "", s0 = (Q == null ? void 0 : Q.name) || "", D0 = (Q == null ? void 0 : Q.tiles) ?? [];
20496
+ X === "overview" && k && (o0 = k == null ? void 0 : k.id, s0 = k.name, D0 = (k == null ? void 0 : k.tiles) ?? []);
20497
+ const f0 = D0.map((Y) => se(Y.widget, q, Y.id)), p0 = {
20440
20498
  businessId: U.value,
20441
- status: Te.generating,
20499
+ status: Ie.generating,
20442
20500
  dateRange: {
20443
- start: w.startDate,
20444
- end: w.endDate
20501
+ start: O.startDate,
20502
+ end: O.endDate
20445
20503
  },
20446
20504
  reportName: s0,
20447
20505
  emails: T,
20448
- configs: f0.map((X, G) => {
20449
- var t0, i0, z, r0;
20450
- const n0 = Y[G];
20506
+ configs: f0.map((Y, W) => {
20507
+ var t0, i0, j, r0;
20508
+ const n0 = G[W];
20451
20509
  return {
20452
- requests: re.getQueryRequests({
20453
- widget: X,
20454
- dateRange: [w.startDate, w.endDate],
20510
+ requests: ae.getQueryRequests({
20511
+ widget: Y,
20512
+ dateRange: [O.startDate, O.endDate],
20455
20513
  timeRange: [
20456
- C0().tz(K).hour(Number((t0 = J.start) == null ? void 0 : t0.hour)).minute(Number((i0 = J.start) == null ? void 0 : i0.minute)).toISOString(),
20457
- C0().tz(K).hour(Number((z = J.end) == null ? void 0 : z.hour)).minute(Number((r0 = J.end) == null ? void 0 : r0.minute)).endOf("minutes").toISOString()
20514
+ b0().tz(z).hour(Number((t0 = J.start) == null ? void 0 : t0.hour)).minute(Number((i0 = J.start) == null ? void 0 : i0.minute)).toISOString(),
20515
+ b0().tz(z).hour(Number((j = J.end) == null ? void 0 : j.hour)).minute(Number((r0 = J.end) == null ? void 0 : r0.minute)).endOf("minutes").toISOString()
20458
20516
  ],
20459
20517
  businessIds: U ? [U.value] : [],
20460
20518
  restaurantIds: P.filter(
20461
- (_0) => Q.find((e0) => e0.id === _0)
20519
+ (_0) => V.find((Z) => Z.id === _0)
20462
20520
  ),
20463
20521
  warehouseIds: P.filter(
20464
- (_0) => Z.find((e0) => e0.id === _0)
20522
+ (_0) => e0.find((Z) => Z.id === _0)
20465
20523
  ),
20466
- timezone: K
20524
+ timezone: z
20467
20525
  }),
20468
- index: G,
20526
+ index: W,
20469
20527
  drillDimension: null,
20470
- chartWidth: (n0 == null ? void 0 : n0.width) ?? X.config.chartWidth,
20471
- chartHeight: (n0 == null ? void 0 : n0.height) ?? X.config.chartHeight,
20472
- ...Ie(X),
20473
- ...Fe(X),
20474
- globalSorts: u0(G)
20528
+ chartWidth: (n0 == null ? void 0 : n0.width) ?? Y.config.chartWidth,
20529
+ chartHeight: (n0 == null ? void 0 : n0.height) ?? Y.config.chartHeight,
20530
+ ...Re(Y),
20531
+ ...xe(Y),
20532
+ globalSorts: a0(W)
20475
20533
  };
20476
20534
  }),
20477
- reportId: l0,
20478
- type: R,
20535
+ reportId: o0,
20536
+ type: F,
20479
20537
  orientationTypes: B,
20480
- isCombinedLocationLayout: N
20538
+ isCombinedLocationLayout: H
20481
20539
  };
20482
- await te.fetch({
20540
+ await ne.fetch({
20483
20541
  fetchType: g0.Post,
20484
- url: `/${U.value}/reports/email?lang=${J0()}`,
20542
+ url: `/${U.value}/reports/email?lang=${H0()}`,
20485
20543
  data: p0,
20486
20544
  requestConfig: { timeout: 1e3 * 60 * 3 }
20487
20545
  });
20488
- }, rr = async (T) => {
20489
- const { businessId: R } = d0(y0());
20490
- await te.fetch({
20546
+ }, ir = async (T) => {
20547
+ const { businessId: F } = d0($0());
20548
+ await ne.fetch({
20491
20549
  fetchType: g0.Post,
20492
- url: `/${R.value}/reports/resend-email?lang=${J0()}`,
20550
+ url: `/${F.value}/reports/resend-email?lang=${H0()}`,
20493
20551
  data: { jobId: T },
20494
20552
  requestConfig: { timeout: 1e3 * 60 * 3 }
20495
20553
  });
20496
- }, nr = async () => {
20497
- const { businessId: T } = d0(y0());
20554
+ }, ar = async () => {
20555
+ const { businessId: T } = d0($0());
20498
20556
  return await E0.fetch({
20499
20557
  fetchType: g0.Get,
20500
20558
  url: `/${T.value}/reports/email-recipients`
20501
20559
  });
20502
- }, ir = async (T) => {
20503
- const { businessId: R } = d0(y0());
20560
+ }, ur = async (T) => {
20561
+ const { businessId: F } = d0($0());
20504
20562
  await E0.fetch({
20505
20563
  fetchType: g0.Post,
20506
- url: `/${R.value}/reports/email-recipient/delete`,
20564
+ url: `/${F.value}/reports/email-recipient/delete`,
20507
20565
  data: { email: T }
20508
20566
  });
20509
20567
  };
20510
- function _e(T = [], R = []) {
20511
- const w = (B) => `${B.schemaName}:${B.name}:${B.operator}:${B.option ?? ""}:${B.dataFormula ?? ""}`, J = /* @__PURE__ */ new Map(), P = [];
20568
+ function ce(T = [], F = []) {
20569
+ const O = (B) => `${B.schemaName}:${B.name}:${B.operator}:${B.option ?? ""}:${B.dataFormula ?? ""}`, J = /* @__PURE__ */ new Map(), P = [];
20512
20570
  for (const B of T) {
20513
20571
  if (!B || !Array.isArray(B.values) || B.values.length === 0) continue;
20514
- if (B.option === Z0.DateTime || B.operator === ee.Between) {
20572
+ if (B.option === te.DateTime || B.operator === re.Between) {
20515
20573
  P.push({ ...B });
20516
20574
  continue;
20517
20575
  }
20518
- const U = w(B);
20576
+ const U = O(B);
20519
20577
  J.set(U, { ...B });
20520
20578
  }
20521
- for (const B of R) {
20579
+ for (const B of F) {
20522
20580
  if (!B || !Array.isArray(B.values) || B.values.length === 0) continue;
20523
- if (B.option === Z0.DateTime || B.operator === ee.Between) {
20581
+ if (B.option === te.DateTime || B.operator === re.Between) {
20524
20582
  P.push({ ...B });
20525
20583
  continue;
20526
20584
  }
20527
- const U = w(B);
20585
+ const U = O(B);
20528
20586
  if (J.has(U)) {
20529
- const q = J.get(U), k = Array.from(
20530
- /* @__PURE__ */ new Set([...q.values ?? [], ...B.values ?? []])
20587
+ const Q = J.get(U), k = Array.from(
20588
+ /* @__PURE__ */ new Set([...Q.values ?? [], ...B.values ?? []])
20531
20589
  );
20532
- q.values = k, J.set(U, q);
20590
+ Q.values = k, J.set(U, Q);
20533
20591
  } else
20534
20592
  J.set(U, { ...B });
20535
20593
  }
20536
20594
  return [...Array.from(J.values()), ...P];
20537
20595
  }
20538
- function Ft(T, R, w) {
20596
+ function Rt(T, F, O) {
20539
20597
  const J = [], P = /* @__PURE__ */ new Map();
20540
20598
  return T.forEach((B) => {
20541
- B && (R.includes(B.schemaName) && J.push(B), w.forEach((N, U) => {
20542
- var q;
20543
- N.includes(B.schemaName) && (P.has(U) || P.set(U, []), (q = P.get(U)) == null || q.push(B));
20599
+ B && (F.includes(B.schemaName) && J.push(B), O.forEach((H, U) => {
20600
+ var Q;
20601
+ H.includes(B.schemaName) && (P.has(U) || P.set(U, []), (Q = P.get(U)) == null || Q.push(B));
20544
20602
  }));
20545
20603
  }), { mainFilters: J, joinFilters: P };
20546
20604
  }
20547
- function ie(T, R, w) {
20548
- var q, k;
20549
- const J = JSON.parse(JSON.stringify(T)), P = R.filter((V) => {
20550
- var Q;
20551
- return (Q = V.tileIds) == null ? void 0 : Q.includes(w);
20552
- }).map((V) => {
20553
- var Q;
20605
+ function se(T, F, O) {
20606
+ var Q, k;
20607
+ const J = JSON.parse(JSON.stringify(T)), P = F.filter((X) => {
20608
+ var V;
20609
+ return (V = X.tileIds) == null ? void 0 : V.includes(O);
20610
+ }).map((X) => {
20611
+ var V;
20554
20612
  return {
20555
- ...V,
20613
+ ...X,
20556
20614
  values: Array.from(
20557
- new Set(((Q = V.values) == null ? void 0 : Q.map((Z) => Z === "" ? "NULL" : Z)) ?? [])
20615
+ new Set(((V = X.values) == null ? void 0 : V.map((e0) => e0 === "" ? "NULL" : e0)) ?? [])
20558
20616
  )
20559
20617
  };
20560
- }), B = ((q = J.config.joinDatasources) == null ? void 0 : q.map((V) => V.schemaNames ?? [])) ?? [], { mainFilters: N, joinFilters: U } = Ft(
20618
+ }), B = ((Q = J.config.joinDatasources) == null ? void 0 : Q.map((X) => X.schemaNames ?? [])) ?? [], { mainFilters: H, joinFilters: U } = Rt(
20561
20619
  P,
20562
20620
  J.config.schemaNames,
20563
20621
  B
@@ -20566,49 +20624,49 @@ function ie(T, R, w) {
20566
20624
  ...J,
20567
20625
  config: {
20568
20626
  ...J.config,
20569
- filters: _e(J.config.filters ?? [], N),
20570
- joinDatasources: ((k = J.config.joinDatasources) == null ? void 0 : k.map((V, Q) => ({
20571
- ...V,
20572
- filters: _e(V.filters ?? [], U.get(Q) ?? [])
20627
+ filters: ce(J.config.filters ?? [], H),
20628
+ joinDatasources: ((k = J.config.joinDatasources) == null ? void 0 : k.map((X, V) => ({
20629
+ ...X,
20630
+ filters: ce(X.filters ?? [], U.get(V) ?? [])
20573
20631
  }))) ?? []
20574
20632
  }
20575
20633
  };
20576
20634
  }
20577
- let Q0;
20578
- const Mt = new Uint8Array(16);
20579
- function Rt() {
20580
- if (!Q0 && (Q0 = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Q0))
20635
+ let X0;
20636
+ const xt = new Uint8Array(16);
20637
+ function Lt() {
20638
+ if (!X0 && (X0 = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !X0))
20581
20639
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
20582
- return Q0(Mt);
20640
+ return X0(xt);
20583
20641
  }
20584
- const $0 = [];
20642
+ const y0 = [];
20585
20643
  for (let T = 0; T < 256; ++T)
20586
- $0.push((T + 256).toString(16).slice(1));
20587
- function xt(T, R = 0) {
20588
- return $0[T[R + 0]] + $0[T[R + 1]] + $0[T[R + 2]] + $0[T[R + 3]] + "-" + $0[T[R + 4]] + $0[T[R + 5]] + "-" + $0[T[R + 6]] + $0[T[R + 7]] + "-" + $0[T[R + 8]] + $0[T[R + 9]] + "-" + $0[T[R + 10]] + $0[T[R + 11]] + $0[T[R + 12]] + $0[T[R + 13]] + $0[T[R + 14]] + $0[T[R + 15]];
20644
+ y0.push((T + 256).toString(16).slice(1));
20645
+ function Ot(T, F = 0) {
20646
+ return y0[T[F + 0]] + y0[T[F + 1]] + y0[T[F + 2]] + y0[T[F + 3]] + "-" + y0[T[F + 4]] + y0[T[F + 5]] + "-" + y0[T[F + 6]] + y0[T[F + 7]] + "-" + y0[T[F + 8]] + y0[T[F + 9]] + "-" + y0[T[F + 10]] + y0[T[F + 11]] + y0[T[F + 12]] + y0[T[F + 13]] + y0[T[F + 14]] + y0[T[F + 15]];
20589
20647
  }
20590
- const Lt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), De = {
20591
- randomUUID: Lt
20648
+ const wt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), fe = {
20649
+ randomUUID: wt
20592
20650
  };
20593
- function ar(T, R, w) {
20594
- if (De.randomUUID && !R && !T)
20595
- return De.randomUUID();
20651
+ function sr(T, F, O) {
20652
+ if (fe.randomUUID && !F && !T)
20653
+ return fe.randomUUID();
20596
20654
  T = T || {};
20597
- const J = T.random || (T.rng || Rt)();
20598
- if (J[6] = J[6] & 15 | 64, J[8] = J[8] & 63 | 128, R) {
20599
- w = w || 0;
20655
+ const J = T.random || (T.rng || Lt)();
20656
+ if (J[6] = J[6] & 15 | 64, J[8] = J[8] & 63 | 128, F) {
20657
+ O = O || 0;
20600
20658
  for (let P = 0; P < 16; ++P)
20601
- R[w + P] = J[P];
20602
- return R;
20659
+ F[O + P] = J[P];
20660
+ return F;
20603
20661
  }
20604
- return xt(J);
20662
+ return Ot(J);
20605
20663
  }
20606
- const de = (T, R = "en") => C0().set("hour", T.hour).set("minute", T.minute).locale(R).format("h:mm A"), Ot = (T, R) => {
20607
- const w = C0().set("hour", T.hour).set("minute", T.minute);
20608
- return C0().set("hour", R.hour).set("minute", R.minute) < w ? "+1" : "";
20609
- }, wt = { class: "px-24 py-16 rounded-lg shadow-light-300" }, vt = { class: "text-fm-color-typo-primary" }, Bt = { class: "text-fm-color-typo-secondary" }, Pt = { class: "fm-typo-en-body-lg-600 mb-8" }, Jt = { class: "flex items-center justify-center w-full" }, Ht = { class: "fm-typo-en-body-lg-600 mb-8" }, Nt = { class: "flex items-center justify-center" }, kt = { class: "flex flex-row mb-4 px-4 gap-2" }, ur = /* @__PURE__ */ fe({
20664
+ const pe = (T, F = "en") => b0().set("hour", T.hour).set("minute", T.minute).locale(F).format("h:mm A"), vt = (T, F) => {
20665
+ const O = b0().set("hour", T.hour).set("minute", T.minute);
20666
+ return b0().set("hour", F.hour).set("minute", F.minute) < O ? "+1" : "";
20667
+ }, Bt = { class: "px-24 py-16 rounded-lg shadow-light-300" }, Pt = { class: "text-fm-color-typo-primary" }, Jt = { class: "text-fm-color-typo-secondary" }, Ht = { class: "fm-typo-en-body-lg-600 mb-8" }, Nt = { class: "flex items-center justify-center w-full" }, kt = { class: "fm-typo-en-body-lg-600 mb-8" }, Ut = { class: "flex items-center justify-center" }, qt = { class: "flex flex-row mb-4 px-4 gap-2" }, or = /* @__PURE__ */ ye({
20610
20668
  __name: "TimeRangeSelect",
20611
- props: /* @__PURE__ */ X0({
20669
+ props: /* @__PURE__ */ V0({
20612
20670
  defaultDateRange: {
20613
20671
  type: Array,
20614
20672
  default: () => [
@@ -20645,143 +20703,143 @@ const de = (T, R = "en") => C0().set("hour", T.hour).set("minute", T.minute).loc
20645
20703
  },
20646
20704
  selectTimeDefaultModifiers: {}
20647
20705
  }),
20648
- emits: /* @__PURE__ */ X0(["update", "chip-closed"], ["update:timeRange", "update:selectTimeDefault"]),
20649
- setup(T, { emit: R }) {
20650
- const { t: w, locale: J } = Oe(), P = K0(T, "timeRange"), B = R, N = K0(T, "selectTimeDefault");
20651
- function U(K) {
20652
- K && (P.value = K, B("update", P.value)), Q.value = !1;
20706
+ emits: /* @__PURE__ */ V0(["update", "chip-closed"], ["update:timeRange", "update:selectTimeDefault"]),
20707
+ setup(T, { emit: F }) {
20708
+ const { t: O, locale: J } = we(), P = ee(T, "timeRange"), B = F, H = ee(T, "selectTimeDefault");
20709
+ function U(z) {
20710
+ z && (P.value = z, B("update", P.value)), V.value = !1;
20653
20711
  }
20654
- function q(K) {
20655
- const Y = K.split(":"), u0 = C0().set("hour", Number(Y[0])).set("minute", Number(Y[1]));
20712
+ function Q(z) {
20713
+ const G = z.split(":"), a0 = b0().set("hour", Number(G[0])).set("minute", Number(G[1]));
20656
20714
  return {
20657
- hours: Number(u0.format("h")),
20658
- minutes: Number(u0.format("m")),
20659
- period: u0.format("A")
20715
+ hours: Number(a0.format("h")),
20716
+ minutes: Number(a0.format("m")),
20717
+ period: a0.format("A")
20660
20718
  };
20661
20719
  }
20662
- const k = o0(JSON.parse(JSON.stringify(P.value)));
20663
- function V(K, Y) {
20664
- k.value.start = JSON.parse(JSON.stringify(K)), k.value.end = JSON.parse(JSON.stringify(Y));
20720
+ const k = l0(JSON.parse(JSON.stringify(P.value)));
20721
+ function X(z, G) {
20722
+ k.value.start = JSON.parse(JSON.stringify(z)), k.value.end = JSON.parse(JSON.stringify(G));
20665
20723
  }
20666
- Y0(
20724
+ G0(
20667
20725
  () => [P.value, T.defaultDateRange],
20668
20726
  () => {
20669
20727
  if (P.value) {
20670
- const K = T.defaultDateRange.findIndex(
20671
- (Y) => {
20672
- var u0, l0, s0, D0;
20673
- return Y.startTime.hour === ((u0 = P.value.start) == null ? void 0 : u0.hour) && Y.startTime.minute === ((l0 = P.value.start) == null ? void 0 : l0.minute) && Y.endTime.hour === ((s0 = P.value.end) == null ? void 0 : s0.hour) && Y.endTime.minute === ((D0 = P.value.end) == null ? void 0 : D0.minute);
20728
+ const z = T.defaultDateRange.findIndex(
20729
+ (G) => {
20730
+ var a0, o0, s0, D0;
20731
+ return G.startTime.hour === ((a0 = P.value.start) == null ? void 0 : a0.hour) && G.startTime.minute === ((o0 = P.value.start) == null ? void 0 : o0.minute) && G.endTime.hour === ((s0 = P.value.end) == null ? void 0 : s0.hour) && G.endTime.minute === ((D0 = P.value.end) == null ? void 0 : D0.minute);
20674
20732
  }
20675
20733
  ) + 1;
20676
- K !== 0 ? N.value = K : N.value = T.defaultDateRange.length + 1;
20734
+ z !== 0 ? H.value = z : H.value = T.defaultDateRange.length + 1;
20677
20735
  }
20678
20736
  },
20679
20737
  { deep: !0, immediate: !0 }
20680
20738
  );
20681
- const Q = o0(!1);
20682
- function Z(K) {
20683
- B("chip-closed", K);
20739
+ const V = l0(!1);
20740
+ function e0(z) {
20741
+ B("chip-closed", z);
20684
20742
  }
20685
- const W = w0(() => T.label ? T.label : Ue({
20743
+ const q = R0(() => T.label ? T.label : qe({
20686
20744
  startTime: P.value.start,
20687
20745
  endTime: P.value.end,
20688
20746
  locale: J.value
20689
20747
  }));
20690
- return (K, Y) => {
20691
- const u0 = O0("FmChip"), l0 = O0("FmRadio"), s0 = O0("FmMenuDivider"), D0 = O0("FmRadioGroup"), f0 = O0("FmTimeInput"), p0 = O0("FmButton"), X = O0("FmPopover");
20692
- return k0(), G0("div", null, [
20693
- T0(X, {
20694
- "show-popover": Q.value,
20748
+ return (z, G) => {
20749
+ const a0 = v0("FmChip"), o0 = v0("FmRadio"), s0 = v0("FmMenuDivider"), D0 = v0("FmRadioGroup"), f0 = v0("FmTimeInput"), p0 = v0("FmButton"), Y = v0("FmPopover");
20750
+ return U0(), z0("div", null, [
20751
+ C0(Y, {
20752
+ "show-popover": V.value,
20695
20753
  placement: "bottom",
20696
- onPopoverChanged: Y[6] || (Y[6] = (G) => Q.value = G)
20754
+ onPopoverChanged: G[6] || (G[6] = (W) => V.value = W)
20697
20755
  }, {
20698
- "popover-button": P0(() => [
20699
- T0(qe, {
20756
+ "popover-button": J0(() => [
20757
+ C0(Qe, {
20700
20758
  "left-icon": T.label ? "filter_alt" : "schedule",
20701
- label: W.value,
20759
+ label: q.value,
20702
20760
  removable: T.removable,
20703
- onChipClosed: Y[0] || (Y[0] = (G) => Z(!0))
20761
+ onChipClosed: G[0] || (G[0] = (W) => e0(!0))
20704
20762
  }, null, 8, ["left-icon", "label", "removable"])
20705
20763
  ]),
20706
- default: P0(() => {
20707
- var G, n0, t0, i0;
20764
+ default: J0(() => {
20765
+ var W, n0, t0, i0;
20708
20766
  return [
20709
- L0("div", wt, [
20710
- T0(D0, {
20711
- modelValue: N.value,
20712
- "onUpdate:modelValue": Y[1] || (Y[1] = (z) => N.value = z)
20767
+ w0("div", Bt, [
20768
+ C0(D0, {
20769
+ modelValue: H.value,
20770
+ "onUpdate:modelValue": G[1] || (G[1] = (j) => H.value = j)
20713
20771
  }, {
20714
- default: P0(() => [
20715
- (k0(!0), G0(ae, null, Be(T.defaultDateRange, (z, r0) => (k0(), pe(l0, {
20772
+ default: J0(() => [
20773
+ (U0(!0), z0(oe, null, Pe(T.defaultDateRange, (j, r0) => (U0(), ge(o0, {
20716
20774
  key: `range_${r0}`,
20717
20775
  value: r0 + 1,
20718
- label: z.name,
20719
- onClick: (_0) => V(z.startTime, z.endTime)
20776
+ label: j.name,
20777
+ onClick: (_0) => X(j.startTime, j.endTime)
20720
20778
  }, {
20721
- label: P0(() => [
20722
- L0("p", vt, [
20723
- $e(B0(z.name) + " ", 1),
20724
- Pe(T0(u0, {
20725
- label: S0(w)("report.common.default"),
20779
+ label: J0(() => [
20780
+ w0("p", Pt, [
20781
+ me(P0(j.name) + " ", 1),
20782
+ Je(C0(a0, {
20783
+ label: S0(O)("report.common.default"),
20726
20784
  class: "bg-fm-color-system-info-100 border-fm-color-typo-info text-fm-color-typo-info",
20727
20785
  compact: ""
20728
20786
  }, null, 8, ["label"]), [
20729
- [Je, z.isDefault]
20787
+ [He, j.isDefault]
20730
20788
  ])
20731
20789
  ]),
20732
- L0("p", Bt, B0(S0(de)(z.startTime, S0(J0)())) + " - " + B0(S0(de)(z.endTime, S0(J0)())) + " " + B0(S0(Ot)(z.startTime, z.endTime)), 1)
20790
+ w0("p", Jt, P0(S0(pe)(j.startTime, S0(H0)())) + " - " + P0(S0(pe)(j.endTime, S0(H0)())) + " " + P0(S0(vt)(j.startTime, j.endTime)), 1)
20733
20791
  ]),
20734
20792
  _: 2
20735
20793
  }, 1032, ["value", "label", "onClick"]))), 128)),
20736
- T0(s0),
20737
- T0(l0, {
20794
+ C0(s0),
20795
+ C0(o0, {
20738
20796
  key: "range_custom",
20739
- label: S0(w)("report.common.custom"),
20797
+ label: S0(O)("report.common.custom"),
20740
20798
  value: T.defaultDateRange.length + 1
20741
20799
  }, null, 8, ["label", "value"])
20742
20800
  ]),
20743
20801
  _: 1
20744
20802
  }, 8, ["modelValue"]),
20745
- N.value === T.defaultDateRange.length + 1 ? (k0(), G0(ae, { key: 0 }, [
20746
- L0("p", Pt, B0(S0(w)("report.date.startingTime")), 1),
20747
- L0("div", Jt, [
20748
- T0(f0, {
20749
- "model-value": q(`${(G = k.value.start) == null ? void 0 : G.hour}:${(n0 = k.value.start) == null ? void 0 : n0.minute}`),
20750
- "onUpdate:modelValue": Y[2] || (Y[2] = (z) => {
20803
+ H.value === T.defaultDateRange.length + 1 ? (U0(), z0(oe, { key: 0 }, [
20804
+ w0("p", Ht, P0(S0(O)("report.date.startingTime")), 1),
20805
+ w0("div", Nt, [
20806
+ C0(f0, {
20807
+ "model-value": Q(`${(W = k.value.start) == null ? void 0 : W.hour}:${(n0 = k.value.start) == null ? void 0 : n0.minute}`),
20808
+ "onUpdate:modelValue": G[2] || (G[2] = (j) => {
20751
20809
  if (k.value.start) {
20752
- const r0 = S0(C0)(`${z.hours}:${z.minutes} ${z.period}`, "h:m A").locale(
20753
- S0(J0)()
20810
+ const r0 = S0(b0)(`${j.hours}:${j.minutes} ${j.period}`, "h:m A").locale(
20811
+ S0(H0)()
20754
20812
  );
20755
20813
  k.value.start.hour = r0.get("hour"), k.value.start.minute = r0.get("minute");
20756
20814
  }
20757
20815
  })
20758
20816
  }, null, 8, ["model-value"])
20759
20817
  ]),
20760
- L0("p", Ht, B0(S0(w)("report.date.endingTime")), 1),
20761
- L0("div", Nt, [
20762
- T0(f0, {
20763
- "model-value": q(`${(t0 = k.value.end) == null ? void 0 : t0.hour}:${(i0 = k.value.end) == null ? void 0 : i0.minute}`),
20764
- "onUpdate:modelValue": Y[3] || (Y[3] = (z) => {
20818
+ w0("p", kt, P0(S0(O)("report.date.endingTime")), 1),
20819
+ w0("div", Ut, [
20820
+ C0(f0, {
20821
+ "model-value": Q(`${(t0 = k.value.end) == null ? void 0 : t0.hour}:${(i0 = k.value.end) == null ? void 0 : i0.minute}`),
20822
+ "onUpdate:modelValue": G[3] || (G[3] = (j) => {
20765
20823
  if (k.value.end) {
20766
- const r0 = S0(C0)(`${z.hours}:${z.minutes} ${z.period}`, "h:m A").locale(
20767
- S0(J0)()
20824
+ const r0 = S0(b0)(`${j.hours}:${j.minutes} ${j.period}`, "h:m A").locale(
20825
+ S0(H0)()
20768
20826
  );
20769
20827
  k.value.end.hour = r0.get("hour"), k.value.end.minute = r0.get("minute");
20770
20828
  }
20771
20829
  })
20772
20830
  }, null, 8, ["model-value"])
20773
20831
  ])
20774
- ], 64)) : ve("", !0),
20775
- L0("div", kt, [
20776
- Y[7] || (Y[7] = L0("div", { class: "grow" }, null, -1)),
20777
- T0(p0, {
20778
- label: S0(w)("report.common.cancel"),
20832
+ ], 64)) : Be("", !0),
20833
+ w0("div", qt, [
20834
+ G[7] || (G[7] = w0("div", { class: "grow" }, null, -1)),
20835
+ C0(p0, {
20836
+ label: S0(O)("report.common.cancel"),
20779
20837
  variant: "tertiary",
20780
- onClick: Y[4] || (Y[4] = (z) => Q.value = !1)
20838
+ onClick: G[4] || (G[4] = (j) => V.value = !1)
20781
20839
  }, null, 8, ["label"]),
20782
- T0(p0, {
20783
- label: S0(w)("report.common.apply"),
20784
- onClick: Y[5] || (Y[5] = () => U(JSON.parse(JSON.stringify(k.value))))
20840
+ C0(p0, {
20841
+ label: S0(O)("report.common.apply"),
20842
+ onClick: G[5] || (G[5] = () => U(JSON.parse(JSON.stringify(k.value))))
20785
20843
  }, null, 8, ["label"])
20786
20844
  ])
20787
20845
  ])
@@ -20792,9 +20850,9 @@ const de = (T, R = "en") => C0().set("hour", T.hour).set("minute", T.minute).loc
20792
20850
  ]);
20793
20851
  };
20794
20852
  }
20795
- }), sr = /* @__PURE__ */ fe({
20853
+ }), lr = /* @__PURE__ */ ye({
20796
20854
  __name: "BaseDialog",
20797
- props: /* @__PURE__ */ X0({
20855
+ props: /* @__PURE__ */ V0({
20798
20856
  title: {
20799
20857
  type: String,
20800
20858
  default: "Title"
@@ -20811,35 +20869,35 @@ const de = (T, R = "en") => C0().set("hour", T.hour).set("minute", T.minute).loc
20811
20869
  modelValue: { type: Boolean, required: !0 },
20812
20870
  modelModifiers: {}
20813
20871
  }),
20814
- emits: /* @__PURE__ */ X0(["confirm"], ["update:modelValue"]),
20815
- setup(T, { emit: R }) {
20816
- const w = K0(T, "modelValue"), J = T, P = R;
20817
- return Y0(w, () => {
20818
- w.value ? document.body.style.overflow = "hidden" : document.body.style.overflow = "scroll";
20819
- }), (B, N) => {
20820
- const U = O0("FmButton"), q = O0("FmDialog");
20821
- return k0(), pe(q, {
20822
- modelValue: w.value,
20823
- "onUpdate:modelValue": N[2] || (N[2] = (k) => w.value = k),
20872
+ emits: /* @__PURE__ */ V0(["confirm"], ["update:modelValue"]),
20873
+ setup(T, { emit: F }) {
20874
+ const O = ee(T, "modelValue"), J = T, P = F;
20875
+ return G0(O, () => {
20876
+ O.value ? document.body.style.overflow = "hidden" : document.body.style.overflow = "scroll";
20877
+ }), (B, H) => {
20878
+ const U = v0("FmButton"), Q = v0("FmDialog");
20879
+ return U0(), ge(Q, {
20880
+ modelValue: O.value,
20881
+ "onUpdate:modelValue": H[2] || (H[2] = (k) => O.value = k),
20824
20882
  overlay: ""
20825
20883
  }, {
20826
- "dialog-header": P0(() => [
20827
- $e(B0(J.title), 1)
20884
+ "dialog-header": J0(() => [
20885
+ me(P0(J.title), 1)
20828
20886
  ]),
20829
- default: P0(() => [
20830
- He(B.$slots, "content")
20887
+ default: J0(() => [
20888
+ Ne(B.$slots, "content")
20831
20889
  ]),
20832
- "dialog-footer": P0(() => [
20833
- N[3] || (N[3] = L0("div", { class: "grow" }, null, -1)),
20834
- T0(U, {
20890
+ "dialog-footer": J0(() => [
20891
+ H[3] || (H[3] = w0("div", { class: "grow" }, null, -1)),
20892
+ C0(U, {
20835
20893
  label: J.secondaryButtonLabel,
20836
20894
  variant: "tertiary",
20837
- onClick: N[0] || (N[0] = (k) => w.value = !1)
20895
+ onClick: H[0] || (H[0] = (k) => O.value = !1)
20838
20896
  }, null, 8, ["label"]),
20839
- T0(U, {
20897
+ C0(U, {
20840
20898
  label: J.primaryButtonLabel,
20841
20899
  variant: "primary",
20842
- onClick: N[1] || (N[1] = (k) => P("confirm"))
20900
+ onClick: H[1] || (H[1] = (k) => P("confirm"))
20843
20901
  }, null, 8, ["label"])
20844
20902
  ]),
20845
20903
  _: 3
@@ -20848,33 +20906,34 @@ const de = (T, R = "en") => C0().set("hour", T.hour).set("minute", T.minute).loc
20848
20906
  }
20849
20907
  });
20850
20908
  export {
20851
- ee as C,
20852
- rt as D,
20853
- nt as P,
20854
- at as R,
20855
- tt as S,
20856
- it as W,
20857
- ur as _,
20858
- ne as a,
20859
- gt as b,
20860
- Z0 as c,
20861
- sr as d,
20862
- Ce as e,
20863
- be as f,
20864
- Tt as g,
20865
- ut as h,
20866
- er as i,
20867
- Wt as j,
20868
- Ot as k,
20869
- ir as l,
20870
- nr as m,
20871
- jt as n,
20872
- Te as o,
20873
- tr as p,
20874
- Zt as q,
20875
- rr as r,
20876
- Kt as s,
20877
- de as t,
20878
- Ae as u,
20879
- ar as v
20909
+ re as C,
20910
+ nt as D,
20911
+ it as P,
20912
+ ut as R,
20913
+ rt as S,
20914
+ at as W,
20915
+ or as _,
20916
+ ue as a,
20917
+ mt as b,
20918
+ Ce as c,
20919
+ te as d,
20920
+ lr as e,
20921
+ Fe as f,
20922
+ Me as g,
20923
+ bt as h,
20924
+ st as i,
20925
+ rr as j,
20926
+ Kt as k,
20927
+ vt as l,
20928
+ ur as m,
20929
+ ar as n,
20930
+ Zt as o,
20931
+ Ie as p,
20932
+ tr as q,
20933
+ ir as r,
20934
+ er as s,
20935
+ pe as t,
20936
+ be as u,
20937
+ sr as v,
20938
+ nr as w
20880
20939
  };