@feedmepos/mf-report 5.22.25 → 5.22.26-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/App-K5_EZRDx.js +298 -0
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-CD7LSCLM.js → BaseDialog.vue_vue_type_script_setup_true_lang-B3lk2lJW.js} +1128 -1292
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-BP474uxj.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-BVsmF7O1.js} +5 -5
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-C55xh4bx.js → Default.vue_vue_type_script_setup_true_lang-CXOVc4Mx.js} +2 -2
  5. package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-D2K2ghV_.js → FilterSelector.vue_vue_type_script_setup_true_lang-CYNrXo6U.js} +19 -19
  6. package/dist/InsightView-DjyJEPMi.js +664 -0
  7. package/dist/{Integration-CAsNSCR4.js → Integration-BJiiG52P.js} +40 -40
  8. package/dist/{Integrations-CIeyn0dF.js → Integrations-1AE-ZriG.js} +14 -13
  9. package/dist/Layout-CWkjX6Dz.js +19 -0
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-CBY5Meyc.js → MenuTab.vue_vue_type_script_setup_true_lang-CMfvPaez.js} +13 -13
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DsOmTqFV.js → NavigationTab.vue_vue_type_script_setup_true_lang-CLpD4WdM.js} +24 -24
  12. package/dist/{NoData.vue_vue_type_script_setup_true_lang-BcdcgnzD.js → NoData.vue_vue_type_script_setup_true_lang-CDKHIlF2.js} +1 -1
  13. package/dist/OverviewView-DyGx_V_d.js +62 -0
  14. package/dist/{Report-CMYhrVbI.js → Report-mpMokvC5.js} +15 -14
  15. package/dist/{ReportEditor-BU6Hq9yx.js → ReportEditor-C7M1iR2K.js} +24 -23
  16. package/dist/{ReportView-8F14F_jz.js → ReportView-5egrKEAE.js} +18 -17
  17. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-SWjNNZ_J.js → SelectComponent.vue_vue_type_script_setup_true_lang-Df40itH5.js} +1 -1
  18. package/dist/Setting-acpfrtmh.js +326 -0
  19. package/dist/{TileEditor-BRHXTLEK.js → TileEditor-BZbN_SJj.js} +131 -131
  20. package/dist/{TransitionFade-DbsPAg2T.js → TransitionFade-CoIjp_fE.js} +12 -12
  21. package/dist/app-VvWXAWWb.js +11540 -0
  22. package/dist/app.js +1 -1
  23. package/dist/useRestaurantPermission-C31iMnay.js +65 -0
  24. package/dist/vue-i18n-DVWuTfed.js +2727 -0
  25. package/package.json +1 -1
  26. package/dist/App-C5_KJN8G.js +0 -294
  27. package/dist/InsightView-BCZKzqRM.js +0 -670
  28. package/dist/Layout-BFvrEBq5.js +0 -29
  29. package/dist/NoPermission.vue_vue_type_script_setup_true_lang-obph7BUZ.js +0 -25
  30. package/dist/OverviewView-gvsp6532.js +0 -63
  31. package/dist/Setting-BtWmZpk0.js +0 -328
  32. package/dist/app-WBPZfxon.js +0 -6658
  33. package/dist/useRestaurantPermission-BtPLwoC9.js +0 -64
  34. package/dist/vue-i18n-CvU0g5WR.js +0 -7253
@@ -1,64 +1,63 @@
1
- import { a as $0, F as m0, l as E0, m as we, c as ye, k as ee, n as b0, A as te, t as J0, b as z0, d as ve, r as ne, u as Be } from "./vue-i18n-CvU0g5WR.js";
2
- import { storeToRefs as d0, defineStore as X0 } from "pinia";
3
- import { ref as _0, computed as A0, watch as W0, h as Pe, defineComponent as me, mergeModels as G0, useModel as re, resolveComponent as v0, createElementBlock as j0, openBlock as q0, createVNode as I0, withCtx as H0, createElementVNode as w0, createCommentVNode as Je, Fragment as le, renderList as He, createBlock as ge, createTextVNode as he, withDirectives as Ne, toDisplayString as P0, unref as S0, vShow as ke, renderSlot as Ue } from "vue";
4
- import { useSnackbar as Se, components as qe } from "@feedmepos/ui-library";
5
- import { useCoreStore as ie, detectLocale as N0 } from "@feedmepos/mf-common";
6
- import { d as T0 } from "./app-WBPZfxon.js";
7
- import { useRouter as Qe } from "vue-router";
8
- import { c as Xe, a as Ve } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BP474uxj.js";
9
- function Ae(E) {
10
- throw new Error('Could not dynamically require "' + E + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
1
+ import { u as y0, F as m0, x as E0, y as Ie, a as V0, b as Fe, w as Me, g as Re, d as A0, c as de, r as K0 } from "./app-VvWXAWWb.js";
2
+ import { storeToRefs as d0, defineStore as Y0 } from "pinia";
3
+ import { ref as D0, computed as H0, watch as Z0, defineComponent as ce, mergeModels as X0, useModel as j0, resolveComponent as O0, createElementBlock as G0, openBlock as k0, createVNode as C0, withCtx as B0, createElementVNode as L0, createCommentVNode as xe, Fragment as ie, renderList as Le, createBlock as fe, createTextVNode as pe, withDirectives as Oe, toDisplayString as v0, unref as S0, vShow as we, renderSlot as ve } from "vue";
4
+ import { useSnackbar as $e } from "@feedmepos/ui-library";
5
+ import { u as Be } from "./vue-i18n-DVWuTfed.js";
6
+ import { useCoreStore as Pe, detectLocale as P0 } from "@feedmepos/mf-common";
7
+ import { c as Je, a as He } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BVsmF7O1.js";
8
+ function ye(A) {
9
+ throw new Error('Could not dynamically require "' + A + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
11
10
  }
12
- var Ee = {};
13
- (function(E) {
14
- var I = typeof globalThis < "u" ? globalThis : window, O = Object.create(I);
15
- O.scheduleImmediate = typeof setImmediate < "u" ? function(N) {
16
- setImmediate(N);
17
- } : function(N) {
18
- setTimeout(N, 0);
19
- }, O.exports = E, 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 P = !I.window;
11
+ var me = {};
12
+ (function(A) {
13
+ var F = typeof globalThis < "u" ? globalThis : window, w = Object.create(F);
14
+ w.scheduleImmediate = typeof setImmediate < "u" ? function(k) {
15
+ setImmediate(k);
16
+ } : function(k) {
17
+ setTimeout(k, 0);
18
+ }, w.exports = A, typeof process < "u" && (w.process = process), typeof __dirname < "u" && (w.__dirname = __dirname), typeof __filename < "u" && (w.__filename = __filename), typeof Buffer < "u" && (w.Buffer = Buffer);
19
+ var P = !F.window;
21
20
  try {
22
- typeof WorkerGlobalScope < "u" && I instanceof WorkerGlobalScope && (P = !1), typeof process < "u" && process.versions && process.versions.hasOwnProperty("electron") && process.versions.hasOwnProperty("node") && (P = !0);
21
+ typeof WorkerGlobalScope < "u" && F instanceof WorkerGlobalScope && (P = !1), typeof process < "u" && process.versions && process.versions.hasOwnProperty("electron") && process.versions.hasOwnProperty("node") && (P = !0);
23
22
  } catch {
24
23
  }
25
24
  if (P) {
26
- var B = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : Ae)("url");
27
- Object.defineProperty(O, "location", {
25
+ var B = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : ye)("url");
26
+ Object.defineProperty(w, "location", {
28
27
  value: {
29
28
  get href() {
30
29
  return B.pathToFileURL ? B.pathToFileURL(process.cwd()).href + "/" : "file://" + function() {
31
- var N = process.cwd();
32
- return process.platform != "win32" ? N : "/" + N.replace(/\\/g, "/");
30
+ var k = process.cwd();
31
+ return process.platform != "win32" ? k : "/" + k.replace(/\\/g, "/");
33
32
  }() + "/";
34
33
  }
35
34
  }
36
35
  }), function() {
37
- function N() {
36
+ function k() {
38
37
  try {
39
38
  throw new Error();
40
- } catch (X) {
41
- var Q = X.stack, q = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), H = null;
39
+ } catch (z) {
40
+ var q = z.stack, U = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), N = null;
42
41
  do {
43
- var Y = q.exec(Q);
44
- Y != null && (H = Y);
45
- } while (Y != null);
46
- return H[1];
42
+ var V = U.exec(q);
43
+ V != null && (N = V);
44
+ } while (V != null);
45
+ return N[1];
47
46
  }
48
47
  }
49
48
  var J = null;
50
- Object.defineProperty(O, "document", {
49
+ Object.defineProperty(w, "document", {
51
50
  value: {
52
51
  get currentScript() {
53
- return J == null && (J = { src: N() }), J;
52
+ return J == null && (J = { src: k() }), J;
54
53
  }
55
54
  }
56
55
  });
57
- }(), O.dartDeferredLibraryLoader = function(N, J, Q) {
56
+ }(), w.dartDeferredLibraryLoader = function(k, J, q) {
58
57
  try {
59
- load(N), J();
60
- } catch (q) {
61
- Q(q);
58
+ load(k), J();
59
+ } catch (U) {
60
+ q(U);
62
61
  }
63
62
  };
64
63
  }
@@ -69,16 +68,16 @@ var Ee = {};
69
68
  e[a] = r[a];
70
69
  }
71
70
  }
72
- function Q(r, e) {
71
+ function q(r, e) {
73
72
  for (var n = Object.keys(r), i = 0; i < n.length; i++) {
74
73
  var a = n[i];
75
74
  e.hasOwnProperty(a) || (e[a] = r[a]);
76
75
  }
77
76
  }
78
- function q(r, e) {
77
+ function U(r, e) {
79
78
  Object.assign(e, r);
80
79
  }
81
- var H = function() {
80
+ var N = function() {
82
81
  var r = function() {
83
82
  };
84
83
  r.prototype = { p: {} };
@@ -97,9 +96,9 @@ var Ee = {};
97
96
  }
98
97
  return !1;
99
98
  }();
100
- function Y(r, e) {
99
+ function V(r, e) {
101
100
  if (r.prototype.constructor = r, r.prototype["$is" + r.name] = r, e != null) {
102
- if (H) {
101
+ if (N) {
103
102
  r.prototype.__proto__ = e.prototype;
104
103
  return;
105
104
  }
@@ -107,17 +106,17 @@ var Ee = {};
107
106
  J(r.prototype, n), r.prototype = n;
108
107
  }
109
108
  }
110
- function X(r, e) {
109
+ function z(r, e) {
111
110
  for (var n = 0; n < e.length; n++)
112
- Y(e[n], r);
111
+ V(e[n], r);
113
112
  }
114
- function t0(r, e) {
115
- q(e.prototype, r.prototype), r.prototype.constructor = r;
113
+ function r0(r, e) {
114
+ U(e.prototype, r.prototype), r.prototype.constructor = r;
116
115
  }
117
- function G(r, e) {
118
- Q(e.prototype, r.prototype), r.prototype.constructor = r;
116
+ function W(r, e) {
117
+ q(e.prototype, r.prototype), r.prototype.constructor = r;
119
118
  }
120
- function j(r, e, n, i) {
119
+ function Z(r, e, n, i) {
121
120
  var a = r;
122
121
  r[e] = a, r[n] = function() {
123
122
  r[n] = function() {
@@ -134,7 +133,7 @@ var Ee = {};
134
133
  return s;
135
134
  };
136
135
  }
137
- function k(r, e, n, i) {
136
+ function X(r, e, n, i) {
138
137
  var a = r;
139
138
  r[e] = a, r[n] = function() {
140
139
  return r[e] === a && (r[e] = i()), r[n] = function() {
@@ -142,7 +141,7 @@ var Ee = {};
142
141
  }, r[e];
143
142
  };
144
143
  }
145
- function K(r, e, n, i) {
144
+ function u0(r, e, n, i) {
146
145
  var a = r;
147
146
  r[e] = a, r[n] = function() {
148
147
  if (r[e] === a) {
@@ -155,17 +154,17 @@ var Ee = {};
155
154
  }, o;
156
155
  };
157
156
  }
158
- function a0(r) {
157
+ function o0(r) {
159
158
  return r.immutable$list = Array, r.fixed$length = Array, r;
160
159
  }
161
- function n0(r) {
160
+ function s0(r) {
162
161
  return r;
163
162
  }
164
- function l0(r) {
163
+ function _0(r) {
165
164
  for (var e = 0; e < r.length; ++e)
166
165
  r[e];
167
166
  }
168
- function c0(r, e) {
167
+ function f0(r, e) {
169
168
  var n = null;
170
169
  return r ? function(i) {
171
170
  return n === null && (n = t.closureFromTearOff(e)), new n(i, this);
@@ -179,20 +178,20 @@ var Ee = {};
179
178
  return e === null && (e = t.closureFromTearOff(r).prototype), e;
180
179
  };
181
180
  }
182
- var V = 0;
183
- function z(r, e, n, i, a, s, o, l, D, d) {
184
- return typeof l == "number" && (l += V), { co: r, iS: e, iI: n, rC: i, dV: a, cs: s, fs: o, fT: l, aI: D || 0, nDA: d };
181
+ var Q = 0;
182
+ function Y(r, e, n, i, a, s, o, l, D, d) {
183
+ return typeof l == "number" && (l += Q), { co: r, iS: e, iI: n, rC: i, dV: a, cs: s, fs: o, fT: l, aI: D || 0, nDA: d };
185
184
  }
186
- function u0(r, e, n, i, a, s, o, l) {
187
- var D = z(r, !0, !1, n, i, a, s, o, l, !1), d = p0(D);
185
+ function n0(r, e, n, i, a, s, o, l) {
186
+ var D = Y(r, !0, !1, n, i, a, s, o, l, !1), d = p0(D);
188
187
  r[e] = d;
189
188
  }
190
- function r0(r, e, n, i, a, s, o, l, D, d) {
189
+ function e0(r, e, n, i, a, s, o, l, D, d) {
191
190
  n = !!n;
192
- var c = z(r, !1, n, i, a, s, o, l, D, !!d), p = c0(n, c);
191
+ var c = Y(r, !1, n, i, a, s, o, l, D, !!d), p = f0(n, c);
193
192
  r[e] = p;
194
193
  }
195
- function s0(r) {
194
+ function i0(r) {
196
195
  var e = b.interceptorsByTag;
197
196
  if (!e) {
198
197
  b.interceptorsByTag = r;
@@ -200,7 +199,7 @@ var Ee = {};
200
199
  }
201
200
  J(r, e);
202
201
  }
203
- function W(r) {
202
+ function G(r) {
204
203
  var e = b.leafTags;
205
204
  if (!e) {
206
205
  b.leafTags = r;
@@ -208,24 +207,24 @@ var Ee = {};
208
207
  }
209
208
  J(r, e);
210
209
  }
211
- function i0(r) {
210
+ function t0(r) {
212
211
  var e = b.types, n = e.length;
213
212
  return e.push.apply(e, r), n;
214
213
  }
215
- function D0(r, e) {
214
+ function l0(r, e) {
216
215
  return J(e, r), r;
217
216
  }
218
- var e0 = function() {
217
+ var K = function() {
219
218
  var r = function(n, i, a, s, o) {
220
219
  return function(l, D, d, c) {
221
- return r0(l, D, n, i, a, s, [d], c, o, !1);
220
+ return e0(l, D, n, i, a, s, [d], c, o, !1);
222
221
  };
223
222
  }, e = function(n, i, a, s) {
224
223
  return function(o, l, D, d) {
225
- return u0(o, l, n, i, a, [D], d, s);
224
+ return n0(o, l, n, i, a, [D], d, s);
226
225
  };
227
226
  };
228
- return { inherit: Y, inheritMany: X, mixin: t0, mixinHard: G, installStaticTearOff: u0, installInstanceTearOff: r0, _instance_0u: r(0, 0, null, ["call$0"], 0), _instance_1u: r(0, 1, null, ["call$1"], 0), _instance_2u: r(0, 2, null, ["call$2"], 0), _instance_0i: r(1, 0, null, ["call$0"], 0), _instance_1i: r(1, 1, null, ["call$1"], 0), _instance_2i: r(1, 2, null, ["call$2"], 0), _static_0: e(0, null, ["call$0"], 0), _static_1: e(1, null, ["call$1"], 0), _static_2: e(2, null, ["call$2"], 0), makeConstList: a0, lazy: k, lazyFinal: K, lazyOld: j, updateHolder: D0, convertToFastObject: n0, updateTypes: i0, setOrUpdateInterceptorsByTag: s0, setOrUpdateLeafTags: W };
227
+ return { inherit: V, inheritMany: z, mixin: r0, mixinHard: W, installStaticTearOff: n0, installInstanceTearOff: e0, _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: X, lazyFinal: u0, lazyOld: Z, updateHolder: l0, convertToFastObject: s0, updateTypes: t0, setOrUpdateInterceptorsByTag: i0, setOrUpdateLeafTags: G };
229
228
  }(), t = {
230
229
  JS_CONST: function() {
231
230
  },
@@ -272,8 +271,8 @@ var Ee = {};
272
271
  }
273
272
  },
274
273
  Sort__dualPivotQuicksort(r, e, n, i) {
275
- var a, s, o, l, D, d, c, p, y, m, g = _.JSInt_methods._tdivFast$1(n - e + 1, 6), h = e + g, A = n - g, C = _.JSInt_methods._tdivFast$1(e + n, 2), F = C - g, M = C + g, x = u.getInterceptor$asx(r), R = x.$index(r, h), L = x.$index(r, F), w = x.$index(r, C), v = x.$index(r, M), U = x.$index(r, A);
276
- if (i.call$2(R, L) > 0 && (a = L, L = R, R = a), i.call$2(v, U) > 0 && (a = U, U = v, v = a), i.call$2(R, w) > 0 && (a = w, w = R, R = a), i.call$2(L, w) > 0 && (a = w, w = L, L = a), i.call$2(R, v) > 0 && (a = v, v = R, R = a), i.call$2(w, v) > 0 && (a = v, v = w, w = a), i.call$2(L, U) > 0 && (a = U, U = L, L = a), i.call$2(L, w) > 0 && (a = w, w = L, L = a), i.call$2(v, U) > 0 && (a = U, U = v, v = a), x.$indexSet(r, h, R), x.$indexSet(r, C, w), x.$indexSet(r, A, U), x.$indexSet(r, F, x.$index(r, e)), x.$indexSet(r, M, x.$index(r, n)), s = e + 1, o = n - 1, u.$eq$(i.call$2(L, v), 0)) {
274
+ var a, s, o, l, D, d, c, p, y, m, g = _.JSInt_methods._tdivFast$1(n - e + 1, 6), h = e + g, E = n - g, C = _.JSInt_methods._tdivFast$1(e + n, 2), I = C - g, M = C + g, x = u.getInterceptor$asx(r), R = x.$index(r, h), L = x.$index(r, I), O = x.$index(r, C), v = x.$index(r, M), H = x.$index(r, E);
275
+ if (i.call$2(R, L) > 0 && (a = L, L = R, R = a), i.call$2(v, H) > 0 && (a = H, H = v, v = a), i.call$2(R, O) > 0 && (a = O, O = R, R = a), i.call$2(L, O) > 0 && (a = O, O = L, L = a), i.call$2(R, v) > 0 && (a = v, v = R, R = 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, R), x.$indexSet(r, C, O), x.$indexSet(r, E, H), 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
276
  for (l = s; l <= o; ++l)
278
277
  if (D = x.$index(r, l), d = i.call$2(D, L), d !== 0)
279
278
  if (d < 0)
@@ -308,7 +307,7 @@ var Ee = {};
308
307
  y = !1;
309
308
  }
310
309
  if (m = s - 1, x.$indexSet(r, e, x.$index(r, m)), x.$indexSet(r, m, L), m = o + 1, x.$indexSet(r, n, x.$index(r, m)), x.$indexSet(r, m, v), t.Sort__doSort(r, e, s - 2, i), t.Sort__doSort(r, o + 2, n, i), !y)
311
- if (s < h && o > A) {
310
+ if (s < h && o > E) {
312
311
  for (; u.$eq$(i.call$2(x.$index(r, s), L), 0); )
313
312
  ++s;
314
313
  for (; u.$eq$(i.call$2(x.$index(r, o), v), 0); )
@@ -576,14 +575,14 @@ var Ee = {};
576
575
  return t.Primitives__generalApplyFunction(r, e, n);
577
576
  },
578
577
  Primitives__generalApplyFunction(r, e, n) {
579
- var i, a, s, o, l, D, d, c, p, y, m, g, h = Array.isArray(e) ? e : t.List_List$of(e, !0, f.dynamic), A = h.length, C = r.$requiredArgCount;
580
- if (A < C)
578
+ var i, a, s, o, l, D, d, c, p, y, m, g, h = Array.isArray(e) ? e : t.List_List$of(e, !0, f.dynamic), E = h.length, C = r.$requiredArgCount;
579
+ if (E < C)
581
580
  return t.Primitives_functionNoSuchMethod(r, h, n);
582
581
  if (i = r.$defaultValues, a = i == null, s = a ? null : i(), o = u.getInterceptor$(r), l = o["call*"], typeof l == "string" && (l = o[l]), a)
583
- return n != null && n.__js_helper$_length !== 0 ? t.Primitives_functionNoSuchMethod(r, h, n) : A === C ? l.apply(r, h) : t.Primitives_functionNoSuchMethod(r, h, n);
582
+ return n != null && n.__js_helper$_length !== 0 ? t.Primitives_functionNoSuchMethod(r, h, n) : E === C ? l.apply(r, h) : t.Primitives_functionNoSuchMethod(r, h, n);
584
583
  if (Array.isArray(s))
585
- return n != null && n.__js_helper$_length !== 0 ? t.Primitives_functionNoSuchMethod(r, h, n) : (D = C + s.length, A > D ? t.Primitives_functionNoSuchMethod(r, h, null) : (A < D && (d = s.slice(A - C), h === e && (h = t.List_List$of(h, !0, f.dynamic)), _.JSArray_methods.addAll$1(h, d)), l.apply(r, h)));
586
- if (A > C)
584
+ return n != null && n.__js_helper$_length !== 0 ? t.Primitives_functionNoSuchMethod(r, h, n) : (D = C + s.length, E > D ? t.Primitives_functionNoSuchMethod(r, h, null) : (E < D && (d = s.slice(E - C), h === e && (h = t.List_List$of(h, !0, f.dynamic)), _.JSArray_methods.addAll$1(h, d)), l.apply(r, h)));
585
+ if (E > C)
587
586
  return t.Primitives_functionNoSuchMethod(r, h, n);
588
587
  if (h === e && (h = t.List_List$of(h, !0, f.dynamic)), c = Object.keys(s), n == null)
589
588
  for (a = c.length, p = 0; p < c.length; c.length === a || (0, t.throwConcurrentModificationError)(c), ++p) {
@@ -673,9 +672,9 @@ var Ee = {};
673
672
  case 5007:
674
673
  return a = t.S(e), t.saveStackTrace(r, new t.NullError(a + " (Error " + i + ")", h));
675
674
  }
676
- return r instanceof TypeError ? (s = S.$get$TypeErrorDecoder_noSuchMethodPattern(), o = S.$get$TypeErrorDecoder_notClosurePattern(), l = S.$get$TypeErrorDecoder_nullCallPattern(), D = S.$get$TypeErrorDecoder_nullLiteralCallPattern(), d = S.$get$TypeErrorDecoder_undefinedCallPattern(), c = S.$get$TypeErrorDecoder_undefinedLiteralCallPattern(), p = S.$get$TypeErrorDecoder_nullPropertyPattern(), S.$get$TypeErrorDecoder_nullLiteralPropertyPattern(), y = S.$get$TypeErrorDecoder_undefinedPropertyPattern(), m = S.$get$TypeErrorDecoder_undefinedLiteralPropertyPattern(), g = s.matchTypeError$1(e), g != null ? t.saveStackTrace(r, t.JsNoSuchMethodError$(e, g)) : (g = o.matchTypeError$1(e), g != null ? (g.method = "call", t.saveStackTrace(r, t.JsNoSuchMethodError$(e, g))) : (g = l.matchTypeError$1(e), g == null ? (g = D.matchTypeError$1(e), g == null ? (g = d.matchTypeError$1(e), g == null ? (g = c.matchTypeError$1(e), g == null ? (g = p.matchTypeError$1(e), g == null ? (g = D.matchTypeError$1(e), g == null ? (g = y.matchTypeError$1(e), g == null ? (g = m.matchTypeError$1(e), a = g != null) : a = !0) : a = !0) : a = !0) : a = !0) : a = !0) : a = !0) : a = !0, a ? t.saveStackTrace(r, new t.NullError(e, g == null ? h : g.method)) : t.saveStackTrace(r, new t.UnknownJsTypeError(typeof e == "string" ? e : ""))))) : r instanceof RangeError ? typeof e == "string" && e.indexOf("call stack") !== -1 ? new t.StackOverflowError() : (e = function(A) {
675
+ return r instanceof TypeError ? (s = S.$get$TypeErrorDecoder_noSuchMethodPattern(), o = S.$get$TypeErrorDecoder_notClosurePattern(), l = S.$get$TypeErrorDecoder_nullCallPattern(), D = S.$get$TypeErrorDecoder_nullLiteralCallPattern(), d = S.$get$TypeErrorDecoder_undefinedCallPattern(), c = S.$get$TypeErrorDecoder_undefinedLiteralCallPattern(), p = S.$get$TypeErrorDecoder_nullPropertyPattern(), S.$get$TypeErrorDecoder_nullLiteralPropertyPattern(), y = S.$get$TypeErrorDecoder_undefinedPropertyPattern(), m = S.$get$TypeErrorDecoder_undefinedLiteralPropertyPattern(), g = s.matchTypeError$1(e), g != null ? t.saveStackTrace(r, t.JsNoSuchMethodError$(e, g)) : (g = o.matchTypeError$1(e), g != null ? (g.method = "call", t.saveStackTrace(r, t.JsNoSuchMethodError$(e, g))) : (g = l.matchTypeError$1(e), g == null ? (g = D.matchTypeError$1(e), g == null ? (g = d.matchTypeError$1(e), g == null ? (g = c.matchTypeError$1(e), g == null ? (g = p.matchTypeError$1(e), g == null ? (g = D.matchTypeError$1(e), g == null ? (g = y.matchTypeError$1(e), g == null ? (g = m.matchTypeError$1(e), a = g != null) : a = !0) : a = !0) : a = !0) : a = !0) : a = !0) : a = !0) : a = !0, a ? t.saveStackTrace(r, new t.NullError(e, g == null ? h : g.method)) : t.saveStackTrace(r, new t.UnknownJsTypeError(typeof e == "string" ? e : ""))))) : r instanceof RangeError ? typeof e == "string" && e.indexOf("call stack") !== -1 ? new t.StackOverflowError() : (e = function(E) {
677
676
  try {
678
- return String(A);
677
+ return String(E);
679
678
  } catch {
680
679
  }
681
680
  return null;
@@ -697,13 +696,13 @@ var Ee = {};
697
696
  return e;
698
697
  },
699
698
  Closure_fromTearOff(r) {
700
- var e, n, i, a, s, o, l, D, d, c, p = r.co, y = r.iS, m = r.iI, g = r.nDA, h = r.aI, A = r.fs, C = r.cs, F = A[0], M = C[0], x = p[F], R = r.fT;
699
+ var e, n, i, a, s, o, l, D, d, c, p = r.co, y = r.iS, m = r.iI, g = r.nDA, h = r.aI, E = r.fs, C = r.cs, I = E[0], M = C[0], x = p[I], R = r.fT;
701
700
  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
701
  this.$initialize();
703
- } : n = function(w, v) {
704
- this.$initialize(w, v);
705
- }, e.constructor = n, n.prototype = e, e.$_name = F, e.$_target = x, i = !y, i ? a = t.Closure_forwardCallTo(F, x, m, g) : (e.$static_name = F, a = x), e.$signature = t.Closure__computeSignatureFunctionNewRti(R, y, m), e[M] = a, s = a, o = 1; o < A.length; ++o)
706
- l = A[o], typeof l == "string" ? (D = p[l], d = l, l = D) : d = "", c = C[o], c != null && (i && (l = t.Closure_forwardCallTo(d, l, m, g)), e[c] = l), o === h && (s = l);
702
+ } : n = function(O, v) {
703
+ this.$initialize(O, v);
704
+ }, e.constructor = n, n.prototype = e, e.$_name = I, e.$_target = x, i = !y, i ? a = t.Closure_forwardCallTo(I, x, m, g) : (e.$static_name = I, a = x), e.$signature = t.Closure__computeSignatureFunctionNewRti(R, y, m), e[M] = a, s = a, o = 1; o < E.length; ++o)
705
+ 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, m, g)), e[c] = l), o === h && (s = l);
707
706
  return e["call*"] = s, e.$requiredArgCount = r.rC, e.$defaultValues = r.dV, n;
708
707
  },
709
708
  Closure__computeSignatureFunctionNewRti(r, e, n) {
@@ -1149,7 +1148,7 @@ var Ee = {};
1149
1148
  return t._Universe_eval(b.typeUniverse, r, !1);
1150
1149
  },
1151
1150
  _substitute(r, e, n, i) {
1152
- var a, s, o, l, D, d, c, p, y, m, g, h, A, C, F, M, x = e._kind;
1151
+ var a, s, o, l, D, d, c, p, y, m, g, h, E, C, I, M, x = e._kind;
1153
1152
  switch (x) {
1154
1153
  case 5:
1155
1154
  case 1:
@@ -1170,9 +1169,9 @@ var Ee = {};
1170
1169
  case 12:
1171
1170
  return y = e._primary, m = t._substitute(r, y, n, i), g = e._rest, h = t._substituteFunctionParameters(r, g, n, i), m === y && h === g ? e : t._Universe__lookupFunctionRti(r, m, h);
1172
1171
  case 13:
1173
- return A = e._rest, i += A.length, C = t._substituteArray(r, A, n, i), D = e._primary, d = t._substitute(r, D, n, i), C === A && d === D ? e : t._Universe__lookupGenericFunctionRti(r, d, C, !0);
1172
+ 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
1173
  case 14:
1175
- return F = e._primary, F < i || (M = n[F - i], M == null) ? e : M;
1174
+ return I = e._primary, I < i || (M = n[I - i], M == null) ? e : M;
1176
1175
  default:
1177
1176
  throw t.wrapException(t.AssertionError$("Attempted to substitute unexpected RTI kind " + x));
1178
1177
  }
@@ -1432,7 +1431,7 @@ var Ee = {};
1432
1431
  return s + "})";
1433
1432
  },
1434
1433
  _functionRtiToString(r, e, n) {
1435
- var i, a, s, o, l, D, d, c, p, y, m, g, h, A, C, F, M, x, R, L, w, v = ", ";
1434
+ var i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, I, M, x, R, L, O, v = ", ";
1436
1435
  if (n != null) {
1437
1436
  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
1437
  e.push("T" + (s + o));
@@ -1441,16 +1440,16 @@ var Ee = {};
1441
1440
  d += ">";
1442
1441
  } else
1443
1442
  d = "", a = null;
1444
- for (l = r._primary, g = r._rest, h = g._requiredPositional, A = h.length, C = g._optionalPositional, F = C.length, M = g._named, x = M.length, R = t._rtiToString(l, e), L = "", w = "", o = 0; o < A; ++o, w = v)
1445
- L += w + t._rtiToString(h[o], e);
1446
- if (F > 0) {
1447
- for (L += w + "[", w = "", o = 0; o < F; ++o, w = v)
1448
- L += w + t._rtiToString(C[o], e);
1443
+ for (l = r._primary, g = r._rest, h = g._requiredPositional, E = h.length, C = g._optionalPositional, I = C.length, M = g._named, x = M.length, R = t._rtiToString(l, e), L = "", O = "", o = 0; o < E; ++o, O = v)
1444
+ L += O + t._rtiToString(h[o], e);
1445
+ if (I > 0) {
1446
+ for (L += O + "[", O = "", o = 0; o < I; ++o, O = v)
1447
+ L += O + t._rtiToString(C[o], e);
1449
1448
  L += "]";
1450
1449
  }
1451
1450
  if (x > 0) {
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];
1451
+ for (L += O + "{", O = "", o = 0; o < x; o += 3, O = v)
1452
+ L += O, M[o + 1] && (L += "required "), L += t._rtiToString(M[o + 2], e) + " " + M[o];
1454
1453
  L += "}";
1455
1454
  }
1456
1455
  return a != null && (e.toString, e.length = a), d + "(" + L + ") => " + R;
@@ -1811,33 +1810,33 @@ var Ee = {};
1811
1810
  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
1811
  },
1813
1812
  _isFunctionSubtype(r, e, n, i, a) {
1814
- var s, o, l, D, d, c, p, y, m, g, h, A, C, F, M, x, R, L, w, v, U, Z;
1813
+ var s, o, l, D, d, c, p, y, m, g, h, E, C, I, M, x, R, L, O, v, H, j;
1815
1814
  if (!t._isSubtype(r, e._primary, n, i._primary, a) || (s = e._rest, o = i._rest, l = s._requiredPositional, D = o._requiredPositional, d = l.length, c = D.length, d > c) || (p = c - d, y = s._optionalPositional, m = o._optionalPositional, g = y.length, h = m.length, d + g < c + h))
1816
1815
  return !1;
1817
- for (A = 0; A < d; ++A)
1818
- if (C = l[A], !t._isSubtype(r, D[A], a, C, n))
1816
+ for (E = 0; E < d; ++E)
1817
+ if (C = l[E], !t._isSubtype(r, D[E], a, C, n))
1819
1818
  return !1;
1820
- for (A = 0; A < p; ++A)
1821
- if (C = y[A], !t._isSubtype(r, D[d + A], a, C, n))
1819
+ for (E = 0; E < p; ++E)
1820
+ if (C = y[E], !t._isSubtype(r, D[d + E], a, C, n))
1822
1821
  return !1;
1823
- for (A = 0; A < h; ++A)
1824
- if (C = y[p + A], !t._isSubtype(r, m[A], a, C, n))
1822
+ for (E = 0; E < h; ++E)
1823
+ if (C = y[p + E], !t._isSubtype(r, m[E], a, C, n))
1825
1824
  return !1;
1826
- for (F = s._named, M = o._named, x = F.length, R = M.length, L = 0, w = 0; w < R; w += 3)
1827
- for (v = M[w]; ; ) {
1828
- if (L >= x || (U = F[L], L += 3, v < U))
1825
+ for (I = s._named, M = o._named, x = I.length, R = M.length, L = 0, O = 0; O < R; O += 3)
1826
+ for (v = M[O]; ; ) {
1827
+ if (L >= x || (H = I[L], L += 3, v < H))
1829
1828
  return !1;
1830
- if (Z = F[L - 2], U < v) {
1831
- if (Z)
1829
+ if (j = I[L - 2], H < v) {
1830
+ if (j)
1832
1831
  return !1;
1833
1832
  continue;
1834
1833
  }
1835
- if (C = M[w + 1], Z && !C || (C = F[L - 1], !t._isSubtype(r, M[w + 2], a, C, n)))
1834
+ if (C = M[O + 1], j && !C || (C = I[L - 1], !t._isSubtype(r, M[O + 2], a, C, n)))
1836
1835
  return !1;
1837
1836
  break;
1838
1837
  }
1839
1838
  for (; L < x; ) {
1840
- if (F[L + 1])
1839
+ if (I[L + 1])
1841
1840
  return !1;
1842
1841
  L += 3;
1843
1842
  }
@@ -2297,11 +2296,11 @@ var Ee = {};
2297
2296
  return new t.DateTime(Date.now(), !1);
2298
2297
  },
2299
2298
  DateTime_parse(r) {
2300
- var e, n, i, a, s, o, l, D, d, c, p, y, m, g, h, A, C = S.$get$DateTime__parseFormat().firstMatch$1(r);
2299
+ var e, n, i, a, s, o, l, D, d, c, p, y, m, g, h, E, C = S.$get$DateTime__parseFormat().firstMatch$1(r);
2301
2300
  if (C != null) {
2302
- if (e = new t.DateTime_parse_parseIntOrZero(), n = C._match, i = n[1], i.toString, a = t.int_parse(i), i = n[2], i.toString, s = t.int_parse(i), i = n[3], i.toString, o = t.int_parse(i), l = e.call$1(n[4]), D = e.call$1(n[5]), d = e.call$1(n[6]), c = new t.DateTime_parse_parseMilliAndMicroseconds().call$1(n[7]), p = _.JSInt_methods._tdivFast$1(c, 1e3), n[8] != null ? (y = n[9], y != null && (m = y === "-" ? -1 : 1, i = n[10], i.toString, g = t.int_parse(i), D -= m * (e.call$1(n[11]) + 60 * g)), h = !0) : h = !1, A = t.Primitives_valueFromDecomposedDate(a, s, o, l, D, d, p + _.JSNumber_methods.round$0(c % 1e3 / 1e3), h), A == null)
2301
+ if (e = new t.DateTime_parse_parseIntOrZero(), n = C._match, i = n[1], i.toString, a = t.int_parse(i), i = n[2], i.toString, s = t.int_parse(i), i = n[3], i.toString, o = t.int_parse(i), l = e.call$1(n[4]), D = e.call$1(n[5]), d = e.call$1(n[6]), c = new t.DateTime_parse_parseMilliAndMicroseconds().call$1(n[7]), p = _.JSInt_methods._tdivFast$1(c, 1e3), n[8] != null ? (y = n[9], y != null && (m = y === "-" ? -1 : 1, i = n[10], i.toString, g = t.int_parse(i), D -= m * (e.call$1(n[11]) + 60 * g)), h = !0) : h = !1, E = t.Primitives_valueFromDecomposedDate(a, s, o, l, D, d, p + _.JSNumber_methods.round$0(c % 1e3 / 1e3), h), E == null)
2303
2302
  throw t.wrapException(t.FormatException$("Time out of range", r, null));
2304
- return t.DateTime$_withValue(A, h);
2303
+ return t.DateTime$_withValue(E, h);
2305
2304
  } else
2306
2305
  throw t.wrapException(t.FormatException$("Invalid date format", r, null));
2307
2306
  },
@@ -2508,8 +2507,8 @@ var Ee = {};
2508
2507
  o.digest = e, o._extended = n, o._hash_sink$_sink = i, o._currentChunk = a, o._lengthInBytes = 0, o._pendingData = s, o._isClosed = !1;
2509
2508
  },
2510
2509
  DateSymbols: function(e, n, i, a, s, o, l, D, d, c, p, y, m, g, h) {
2511
- var A = this;
2512
- A.NAME = e, A.ERAS = n, A.ERANAMES = i, A.NARROWMONTHS = a, A.STANDALONENARROWMONTHS = s, A.MONTHS = o, A.STANDALONEMONTHS = l, A.SHORTMONTHS = D, A.STANDALONESHORTMONTHS = d, A.WEEKDAYS = c, A.STANDALONEWEEKDAYS = p, A.SHORTWEEKDAYS = y, A.STANDALONESHORTWEEKDAYS = m, A.STANDALONENARROWWEEKDAYS = g, A.AMPMS = h;
2510
+ var E = this;
2511
+ E.NAME = e, E.ERAS = n, E.ERANAMES = i, E.NARROWMONTHS = a, E.STANDALONENARROWMONTHS = s, E.MONTHS = o, E.STANDALONEMONTHS = l, E.SHORTMONTHS = D, E.STANDALONESHORTMONTHS = d, E.WEEKDAYS = c, E.STANDALONEWEEKDAYS = p, E.SHORTWEEKDAYS = y, E.STANDALONESHORTWEEKDAYS = m, E.STANDALONENARROWWEEKDAYS = g, E.AMPMS = h;
2513
2512
  },
2514
2513
  DateBuilder: function(e, n) {
2515
2514
  var i = this;
@@ -2811,7 +2810,7 @@ var Ee = {};
2811
2810
  `;
2812
2811
  },
2813
2812
  Materialize_getMergeSql(r, e, n, i, a, s, o) {
2814
- var l, D, d, c, p, y, m, g, h, A, C, F, 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;
2813
+ var l, D, d, c, p, y, m, g, 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
2814
  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
2815
  (
2817
2816
  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
@@ -2826,15 +2825,15 @@ var Ee = {};
2826
2825
  SELECT
2827
2826
  ` + m + `
2828
2827
  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), m = l.get$isNotEmpty(o) ? x : "", A = u.getInterceptor$asx(a), C = A.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 : "", A = A.get$isNotEmpty(a) ? R : "", F = "DELETE FROM `" + c + "` target_table WHERE NOT EXISTS (\n select id,docId from (" + g + `) source_table
2828
+ `, 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), m = 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, `,
2829
+ `), 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 (" + g + `) source_table
2831
2830
  WHERE source_table.id = target_table.id
2832
2831
  and source_table.docId = target_table.docId
2833
2832
  )
2834
2833
  ` + l + `
2835
- ` + A + `
2834
+ ` + E + `
2836
2835
  and target_table.docId in UNNEST(@docIds)
2837
- `) : F = "", "MERGE INTO `" + L + "` AS target_table USING (\n" + g + `
2836
+ `) : I = "", "MERGE INTO `" + L + "` AS target_table USING (\n" + g + `
2838
2837
  ) AS source_table ON
2839
2838
  target_table.id = source_table.id
2840
2839
  and target_table.docId = source_table.docId
@@ -2848,22 +2847,22 @@ and target_table.docId in UNNEST(@docIds)
2848
2847
  when not matched by target
2849
2848
  then insert (` + h + ") values (" + h + `);
2850
2849
 
2851
- ` + F + `
2850
+ ` + I + `
2852
2851
  `;
2853
2852
  },
2854
2853
  Materialize_getMaterializeInfoSql(r, e, n, i, a) {
2855
- var s, o, l, D, d, c, p, y, m, g, h = '") AND TIMESTAMP("', A = "CAST(JSON_VALUE(", C = ", '$._restaurantId') AS STRING) AS restaurantId,", F = r.source, M = F.field, x = M != null;
2856
- return F.type === _.SOURCE_TYPE_2 ? (s = F.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 = F.timeColumn, D.toString, d = o.join$1(s, ","), c = F.dateColumns, c == null && (c = t._setArrayType([], f.JSArray_String)), p = D + ' between TIMESTAMP("' + i + h + e + '")', F = u.getInterceptor$asx(c), y = F.get$isNotEmpty(c) ? "SELECT * REPLACE(" + F.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, m = `docs AS (
2854
+ var s, o, l, D, d, c, p, y, m, g, h = '") AND TIMESTAMP("', E = "CAST(JSON_VALUE(", C = ", '$._restaurantId') AS STRING) AS restaurantId,", I = r.source, M = I.field, x = M != null;
2855
+ 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, m = `docs AS (
2857
2856
  SELECT * FROM (
2858
2857
  SELECT TO_JSON_STRING(src) AS data, ` + l + " AS id, '' AS db_name, " + D + ` AS publish_time, false AS deleted,
2859
2858
  ROW_NUMBER() OVER (PARTITION BY ` + d + " ORDER BY " + D + ` DESC) as rn
2860
2859
  FROM (` + y + `) AS src
2861
2860
  ) WHERE rn=1
2862
2861
  )`) : m = "docs AS (\n SELECT data, db_name, publish_time, deleted, id FROM `" + r.get$fullRawTableName() + '`\n WHERE publish_time between TIMESTAMP("' + i + h + e + `")
2863
- )`, F = r.getTransformedTableQuery$1$getParentDocs(!0), s = x ? `child_table AS (
2862
+ )`, I = r.getTransformedTableQuery$1$getParentDocs(!0), s = x ? `child_table AS (
2864
2863
  ` + r.getTransformedTableQuery$1$getParentDocs(!1) + `
2865
2864
  ),
2866
- ` : "", o = r.name._name, D = n ? A + o + C : "", x ? (g = n ? A + o + C : "", M = ` UNION ALL
2865
+ ` : "", o = r.name._name, D = n ? E + o + C : "", x ? (g = n ? E + o + C : "", M = ` UNION ALL
2867
2866
  SELECT
2868
2867
  CAST(JSON_VALUE(` + o + `, '$._docId') AS STRING) AS docId,
2869
2868
  ` + g + `
@@ -2873,7 +2872,7 @@ and target_table.docId in UNNEST(@docIds)
2873
2872
  `) : M = "", g = n ? "ARRAY_AGG(DISTINCT restaurantId IGNORE NULLS) restaurantIds," : "", `WITH
2874
2873
  ` + m + `,
2875
2874
  parent_table AS (
2876
- ` + F + `
2875
+ ` + I + `
2877
2876
  ),
2878
2877
  ` + s + `
2879
2878
  formatted_table as (SELECT
@@ -2979,16 +2978,16 @@ select
2979
2978
  Index$(r, e, n) {
2980
2979
  return new t.Index(r, e, n);
2981
2980
  },
2982
- Schema$(r, e, n, i, a, s, o, l, D, d, c, p, y, m, g, h, A, C, F, M, x, R, L) {
2983
- return new t.Schema(F, h, s, g, L, R, y, m, c, p, D, x, a, C, A, M, i, l, o, d, e, r, n);
2981
+ Schema$(r, e, n, i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, I, M, x, R, L) {
2982
+ return new t.Schema(I, h, s, g, L, R, y, m, c, p, D, x, a, C, E, M, i, l, o, d, e, r, n);
2984
2983
  },
2985
- Schema_Schema$build(r, e, n, i, a, s, o, l, D, d, c, p, y, m, g, h, A, C, F, M, x, R, L) {
2986
- var w = s.call$1(F), v = g.call$1(F);
2987
- return t.Schema$(r, e, n, i, a, w, o, l, D ?? 300, d, c, p, y, m, v, h, A, C, F, M, x, R, L);
2984
+ Schema_Schema$build(r, e, n, i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, I, M, x, R, L) {
2985
+ var O = s.call$1(I), v = g.call$1(I);
2986
+ return t.Schema$(r, e, n, i, a, O, o, l, D ?? 300, d, c, p, y, m, v, h, E, C, I, M, x, R, L);
2988
2987
  },
2989
2988
  Schema_fromJson(r) {
2990
- var e, n, i, a, s, o, l, D, d, c, p, y, m, g, h, A, C, F = null, M = u.map$1$ax(r.$index(0, "fields"), new t.Schema_fromJson_closure()).toList$0(0), x = r.$index(0, "label"), R = t.EnumByName_byName(_.List_ZR3, r.$index(0, "name")), L = u.map$1$ax(r.$index(0, "joins"), new t.Schema_fromJson_closure0()).toList$0(0), w = t.TopLevelFilters_fromJson(r.$index(0, "topLevelFilters")), v = r.$index(0, "source"), U = t.EnumByName_byName(_.List_ytA, v.$index(0, "type")), Z = v.$index(0, "table"), f0 = v.$index(0, "field"), g0 = v.$index(0, "dataset"), o0 = f.nullable_List_dynamic, h0 = o0._as(v.$index(0, "uniqueKey"));
2991
- return h0 = h0 == null ? F : u.cast$1$0$ax(h0, f.String), e = v.$index(0, "timeColumn"), v = o0._as(v.$index(0, "dateColumns")), v = v == null ? F : u.cast$1$0$ax(v, f.String), n = r.$index(0, "rawTableName"), i = r.$index(0, "dynamicRawTable"), a = r.$index(0, "materializedTableName"), s = r.$index(0, "materializedPostgresqlTableName"), o = r.$index(0, "isJoinOnly"), l = r.$index(0, "isMaterializeOnly"), D = r.$index(0, "isContinuousUpdate"), d = r.$index(0, "interval"), c = r.$index(0, "partition"), p = r.$index(0, "clusters"), p == null && (p = t._setArrayType([], f.JSArray_String)), y = r.$index(0, "indexes"), y = y == null ? F : u.map$1$ax(y, new t.Schema_fromJson_closure1()), y == null && (y = t._setArrayType([], f.JSArray_Index)), m = r.$index(0, "filters"), m = m == null ? F : u.map$1$ax(m, new t.Schema_fromJson_closure2()).toList$0(0), m == null && (m = t._setArrayType([], f.JSArray_QueryRequestFilter)), g = r.$index(0, "isGlobal"), g == null && (g = !1), h = r.$index(0, "isAiHidden"), h == null && (h = !1), o0 = o0._as(r.$index(0, "aiKeywords")), o0 = o0 == null ? F : u.cast$1$0$ax(o0, f.String), o0 == null && (o0 = t._setArrayType([], f.JSArray_String)), A = r.$index(0, "aiCategory"), C = r.$index(0, "aiPriority"), C == null && (C = 3), t.Schema$(A, o0, C, p, i, M, m, y, d, h, D, g, o, l, L, x, s, a, R, c, n, new t.Source(U, Z, f0, g0, h0, e, v), w);
2989
+ var e, n, i, a, s, o, l, D, d, c, p, y, m, g, 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_ZR3, 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"), g0 = v.$index(0, "dataset"), a0 = f.nullable_List_dynamic, h0 = a0._as(v.$index(0, "uniqueKey"));
2990
+ 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)), m = r.$index(0, "filters"), m = m == null ? I : u.map$1$ax(m, new t.Schema_fromJson_closure2()).toList$0(0), m == null && (m = t._setArrayType([], f.JSArray_QueryRequestFilter)), g = r.$index(0, "isGlobal"), g == null && (g = !1), h = r.$index(0, "isAiHidden"), h == null && (h = !1), 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, M, m, y, d, h, D, g, o, l, L, x, s, a, R, c, n, new t.Source(H, j, c0, g0, h0, e, v), O);
2992
2991
  },
2993
2992
  Field_Field$numeric(r, e, n, i, a, s, o, l, D) {
2994
2993
  return new t._NumericField(s, o, _.DATA_TYPE_3, e, a, l, n, D, i, !1, r);
@@ -3003,16 +3002,16 @@ select
3003
3002
  return new t._BoolField(s, o, _.DATA_TYPE_2, e, a, l, n, D, i, !1, r);
3004
3003
  },
3005
3004
  Field_fromJson(r) {
3006
- var e, n, i, a, s, o, l, D, d = "name", c = "schemaName", p = "pointTo", y = "formula", m = "label", g = "hidden", h = "isAiHidden", A = null, C = "description";
3005
+ var e, n, i, a, s, o, l, D, d = "name", c = "schemaName", p = "pointTo", y = "formula", m = "label", g = "hidden", h = "isAiHidden", E = null, C = "description";
3007
3006
  switch (t.EnumByName_byName(_.List_k6a, r.$index(0, "type")).index) {
3008
3007
  case 0:
3009
- return e = r.$index(0, d), n = t.EnumByName_byName(_.List_ZR3, r.$index(0, c)), i = r.$index(0, p), a = r.$index(0, y), s = r.$index(0, m), o = r.$index(0, g), l = r.$index(0, h), D = r.$index(0, "isCompareIgnoreSpaces"), D == null && (D = !1), t.Field_Field$string(r.$index(0, C), a, o, l, D, s, e, i, A, n);
3008
+ return e = r.$index(0, d), n = t.EnumByName_byName(_.List_ZR3, r.$index(0, c)), i = r.$index(0, p), a = r.$index(0, y), s = r.$index(0, m), o = r.$index(0, g), l = r.$index(0, h), D = r.$index(0, "isCompareIgnoreSpaces"), D == null && (D = !1), t.Field_Field$string(r.$index(0, C), a, o, l, D, s, e, i, E, n);
3010
3009
  case 2:
3011
- return e = r.$index(0, d), n = t.EnumByName_byName(_.List_ZR3, r.$index(0, c)), i = r.$index(0, p), a = r.$index(0, y), s = r.$index(0, m), o = r.$index(0, g), l = r.$index(0, h), t.Field_Field$bool(r.$index(0, C), a, o, l, s, e, i, A, n);
3010
+ return e = r.$index(0, d), n = t.EnumByName_byName(_.List_ZR3, r.$index(0, c)), i = r.$index(0, p), a = r.$index(0, y), s = r.$index(0, m), o = r.$index(0, g), l = r.$index(0, h), t.Field_Field$bool(r.$index(0, C), a, o, l, s, e, i, E, n);
3012
3011
  case 3:
3013
- return e = r.$index(0, d), n = t.EnumByName_byName(_.List_ZR3, r.$index(0, c)), i = r.$index(0, p), a = r.$index(0, y), s = r.$index(0, m), o = r.$index(0, g), l = r.$index(0, h), t.Field_Field$numeric(r.$index(0, C), a, o, l, s, e, i, A, n);
3012
+ return e = r.$index(0, d), n = t.EnumByName_byName(_.List_ZR3, r.$index(0, c)), i = r.$index(0, p), a = r.$index(0, y), s = r.$index(0, m), o = r.$index(0, g), l = r.$index(0, h), t.Field_Field$numeric(r.$index(0, C), a, o, l, s, e, i, E, n);
3014
3013
  case 1:
3015
- return e = r.$index(0, d), n = t.EnumByName_byName(_.List_ZR3, r.$index(0, c)), i = r.$index(0, p), a = r.$index(0, y), s = r.$index(0, m), o = r.$index(0, g), l = r.$index(0, h), t.Field_Field$timestamp(r.$index(0, C), a, o, l, s, e, i, A, n);
3014
+ return e = r.$index(0, d), n = t.EnumByName_byName(_.List_ZR3, r.$index(0, c)), i = r.$index(0, p), a = r.$index(0, y), s = r.$index(0, m), o = r.$index(0, g), l = r.$index(0, h), t.Field_Field$timestamp(r.$index(0, C), a, o, l, s, e, i, E, n);
3016
3015
  }
3017
3016
  },
3018
3017
  Join_fromJson(r) {
@@ -3111,9 +3110,9 @@ select
3111
3110
  Index: function(e, n, i) {
3112
3111
  this.column = e, this.customName = n, this.indexMethod = i;
3113
3112
  },
3114
- Schema: function(e, n, i, a, s, o, l, D, d, c, p, y, m, g, h, A, C, F, M, x, R, L, w) {
3113
+ Schema: function(e, n, i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, I, M, x, R, L, O) {
3115
3114
  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 = m, v.materializedTableName = g, v.materializedPostgresqlTableName = h, v.partition = A, v.clusters = C, v.indexes = F, v._materializeTablePrefix = v._rawTablePrefix = "", v.filters = M, v.isAiHidden = x, v.aiKeywords = R, v.aiCategory = L, v.aiPriority = w;
3115
+ 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 = m, v.materializedTableName = g, 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 = O;
3117
3116
  },
3118
3117
  Schema_visualizationSchema_closure: function() {
3119
3118
  },
@@ -3312,8 +3311,8 @@ select
3312
3311
  s.field = e, s.id = n, s.alias = i, s.formula = a;
3313
3312
  },
3314
3313
  QueryRequest: function(e, n, i, a, s, o, l, D, d, c, p, y, m, g, h) {
3315
- var A = this;
3316
- A.schemaName = e, A.dimensions = n, A.metrics = i, A.joins = a, A.timeDimension = s, A.restaurantIds = o, A.warehouseIds = l, A.businessIds = D, A.filters = d, A.sorts = c, A.limit = p, A.timezone = y, A.rollup = m, A.rollupPosition = g, A.blendConditions = h;
3314
+ var E = this;
3315
+ E.schemaName = e, E.dimensions = n, E.metrics = i, E.joins = a, E.timeDimension = s, E.restaurantIds = o, E.warehouseIds = l, E.businessIds = D, E.filters = d, E.sorts = c, E.limit = p, E.timezone = y, E.rollup = m, E.rollupPosition = g, E.blendConditions = h;
3317
3316
  },
3318
3317
  QueryRequest_closure: function() {
3319
3318
  },
@@ -4013,9 +4012,9 @@ select
4013
4012
  DataSourceRowColumnConfig_columnIds_closure1: function(e) {
4014
4013
  this.$this = e;
4015
4014
  },
4016
- TableDatasourceConfigModel: function(e, n, i, a, s, o, l, D, d, c, p, y, m, g, h, A, C, F, M, x) {
4015
+ TableDatasourceConfigModel: function(e, n, i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, I, M, x) {
4017
4016
  var R = this;
4018
- 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 = m, R.metrics = g, R.filters = h, R.sorts = A, R.limit = C, R.isComparable = F, R.periodType = M, R.timezone = x;
4017
+ 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 = m, R.metrics = g, R.filters = h, R.sorts = E, R.limit = C, R.isComparable = I, R.periodType = M, R.timezone = x;
4019
4018
  },
4020
4019
  TableDatasourceConfigModel_drilledDimensions_closure: function(e) {
4021
4020
  this.$this = e;
@@ -4077,9 +4076,9 @@ select
4077
4076
  var e, n, i, a, s, o = "breakdownDimension", l = t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson(r), D = r.$index(0, o) != null ? t.QueryRequestDimension_fromJson(r.$index(0, o)) : null, d = r.$index(0, "isTransposed");
4078
4077
  return d == null && (d = !1), e = r.$index(0, "showLabel"), e == null && (e = !1), n = r.$index(0, "drillDimension"), i = r.$index(0, "isBlend"), i == null && (i = !1), a = r.$index(0, "joinDatasources"), a == null && (a = []), a = t.List_List$from(a, f.Map_String_dynamic), s = t._arrayInstanceType(a)._eval$1("MappedListIterable<1,JoinDatasourceConfig>"), s = t.List_List$of(new t.MappedListIterable(a, new t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson_closure(l), s), !0, s._eval$1("ListIterable.E")), new t.BaseXYDatasourceConfigModel(e, n, D, d, i, r.$index(0, "isCumulative"), s, l.schemaNames, l.dimensions, l.metrics, l.filters, l.sorts, l.limit, l.isComparable, l.periodType, l.timezone);
4079
4078
  },
4080
- BaseXYDatasourceConfigModel: function(e, n, i, a, s, o, l, D, d, c, p, y, m, g, h, A) {
4079
+ BaseXYDatasourceConfigModel: function(e, n, i, a, s, o, l, D, d, c, p, y, m, g, h, E) {
4081
4080
  var C = this;
4082
- C.showLabel = e, C._xy_datasource_config_model$_drillDimension = n, C.breakdownDimension = i, C.isTransposed = a, C.isBlend = s, C.isCumulative = o, C._joinDatasources = l, C.schemaNames = D, C.dimensions = d, C.metrics = c, C.filters = p, C.sorts = y, C.limit = m, C.isComparable = g, C.periodType = h, C.timezone = A;
4081
+ C.showLabel = e, C._xy_datasource_config_model$_drillDimension = n, C.breakdownDimension = i, C.isTransposed = a, C.isBlend = s, C.isCumulative = o, C._joinDatasources = l, C.schemaNames = D, C.dimensions = d, C.metrics = c, C.filters = p, C.sorts = y, C.limit = m, C.isComparable = g, C.periodType = h, C.timezone = E;
4083
4082
  },
4084
4083
  BaseXYDatasourceConfigModel_joinDatasources_closure: function(e) {
4085
4084
  this.$this = e;
@@ -4206,40 +4205,40 @@ select
4206
4205
  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));
4207
4206
  },
4208
4207
  getMergeInfoSql(r) {
4209
- 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"));
4208
+ 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"));
4210
4209
  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);
4211
4210
  },
4212
4211
  getClearTableSql(r) {
4213
- var e = _.C_JsonCodec.decode$2$reviver(O.JSON.stringify(r), null), n = u.getInterceptor$asx(e), i = t._getQueryEngine(n.$index(e, "bigQuery"));
4212
+ var e = _.C_JsonCodec.decode$2$reviver(w.JSON.stringify(r), null), n = u.getInterceptor$asx(e), i = t._getQueryEngine(n.$index(e, "bigQuery"));
4214
4213
  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;
4215
4214
  `;
4216
4215
  },
4217
4216
  getMergeSql(r) {
4218
- 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"));
4217
+ 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"));
4219
4218
  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);
4220
4219
  },
4221
4220
  getSchemas(r) {
4222
- 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,@>>");
4223
- 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));
4221
+ 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,@>>");
4222
+ 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));
4224
4223
  },
4225
4224
  getVisualizationSchemas(r) {
4226
- 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,@>>");
4227
- 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));
4225
+ 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,@>>");
4226
+ 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));
4228
4227
  },
4229
4228
  requestJsonToSql(r) {
4230
- var e = _.C_JsonCodec.decode$2$reviver(O.JSON.stringify(r), null), n = u.getInterceptor$asx(e);
4231
- 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));
4229
+ var e = _.C_JsonCodec.decode$2$reviver(w.JSON.stringify(r), null), n = u.getInterceptor$asx(e);
4230
+ 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));
4232
4231
  },
4233
4232
  sqlResponsesToQueryResponses(r) {
4234
- 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"));
4235
- 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));
4233
+ 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"));
4234
+ 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));
4236
4235
  },
4237
4236
  getQueryRequests(r) {
4238
- 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), m = t.ReportWidgetModel_fromJson(y.$index(p, "widget")), g = u.map$1$ax(y.$index(p, "dateRange"), new t.getQueryRequests_closure()).toList$0(0), h = y.$index(p, "compareDateRange");
4239
- 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 = m.config, h = t._arrayInstanceType(g)._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(g, 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));
4237
+ 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), m = t.ReportWidgetModel_fromJson(y.$index(p, "widget")), g = u.map$1$ax(y.$index(p, "dateRange"), new t.getQueryRequests_closure()).toList$0(0), h = y.$index(p, "compareDateRange");
4238
+ 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 = m.config, h = t._arrayInstanceType(g)._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(g, 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));
4240
4239
  },
4241
4240
  getCreateMaterializedTableSql(r) {
4242
- var e = _.C_JsonCodec.decode$2$reviver(O.JSON.stringify(r), null), n = u.getInterceptor$asx(e), i = t._getQueryEngine(n.$index(e, "bigQuery"));
4241
+ var e = _.C_JsonCodec.decode$2$reviver(w.JSON.stringify(r), null), n = u.getInterceptor$asx(e), i = t._getQueryEngine(n.$index(e, "bigQuery"));
4243
4242
  return n = t.Schema_fromJson(n.$index(e, "request").$index(0, "schema")), n.setConnection$1(i.context.connection), t.Materialize_get_createMaterializedTableSql(n);
4244
4243
  },
4245
4244
  getSchemas_closure: function() {
@@ -4278,7 +4277,7 @@ select
4278
4277
  Exports: function() {
4279
4278
  },
4280
4279
  main() {
4281
- 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()));
4280
+ 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()));
4282
4281
  },
4283
4282
  _Exports: function() {
4284
4283
  },
@@ -4582,16 +4581,16 @@ select
4582
4581
  }, f.Location);
4583
4582
  },
4584
4583
  _deserializeLocation(r) {
4585
- 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), m = s.getUint32(28, !1), g = _.C_AsciiCodec.decode$1(t.NativeUint8List_NativeUint8List$view(r.buffer, r.byteOffset + o, l)), h = t._setArrayType([], f.JSArray_String), A = t._setArrayType([], f.JSArray_TimeZone), C = f.JSArray_int, F = t._setArrayType([], C), M = t._setArrayType([], C), x = D + d;
4584
+ 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), m = s.getUint32(28, !1), g = _.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;
4586
4585
  for (e = D, n = e; e < x; ++e)
4587
4586
  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);
4588
4587
  for (n = c, e = 0; e < p; ++e, n = a)
4589
- a = n + 8, A.push(new t.TimeZone(s.getInt32(n, !1) * 1e3, s.getUint8(n + 4) === 1, h[s.getUint8(n + 5)]));
4588
+ a = n + 8, E.push(new t.TimeZone(s.getInt32(n, !1) * 1e3, s.getUint8(n + 4) === 1, h[s.getUint8(n + 5)]));
4590
4589
  for (n = y, e = 0; e < m; ++e)
4591
- F.push(_.JSNumber_methods.toInt$0(s.getFloat64(n, !1)) * 1e3), n += 8;
4590
+ I.push(_.JSNumber_methods.toInt$0(s.getFloat64(n, !1)) * 1e3), n += 8;
4592
4591
  for (e = 0; e < m; ++e)
4593
4592
  M.push(s.getUint8(n)), ++n;
4594
- return t.Location$(g, F, M, A);
4593
+ return t.Location$(g, I, M, E);
4595
4594
  }
4596
4595
  }, u = {
4597
4596
  makeDispatchRecord(r, e, n, i) {
@@ -8191,8 +8190,8 @@ Arguments: [` + D + "]";
8191
8190
  return _.JSArray_methods.fold$2(this._getJoins$1(r), "", new t.QueryRequest__getSqlJoins_closure(this, r));
8192
8191
  },
8193
8192
  _getRollupSelect$4$rollupIndex$schemaLibrary$sourceTableName$useFormula(r, e, n, i) {
8194
- var a, s, o, l, D, d, c, p, y = this, m = r != null, g = y.dimensions, h = f.QueryRequestDimension, A = t.ListExtensions_whereIndexed(g, new t.QueryRequest__getRollupSelect_closure(r), h), C = A.get$isEmpty(A) ? "" : "PARTITION BY " + t.MappedIterable_MappedIterable(A, new t.QueryRequest__getRollupSelect_closure0(), A.$ti._eval$1("Iterable.E"), f.String).join$1(0, ","), F = f.String;
8195
- return h = t.List_List$of(t.ListExtensions_mapIndexed(g, new t.QueryRequest__getRollupSelect_closure1(y, e, r, C), h, F), !0, F), a = y.metrics, s = f.JSArray_String, _.JSArray_methods.addAll$1(h, t.IterableExtension_foldIndexed(a, t._setArrayType([], s), new t.QueryRequest__getRollupSelect_closure2(y, e, r, C))), o = y.sorts, l = t._arrayInstanceType(o), D = l._eval$1("MappedListIterable<1,String>"), _.JSArray_methods.addAll$1(h, new t.MappedListIterable(o, new t.QueryRequest__getRollupSelect_closure3(y, e, r, C), D)), h = _.JSArray_methods.join$1(h, ","), d = u.getInterceptor$ax(g), c = t.List_List$of(d.map$1$1(g, new t.QueryRequest__getRollupSelect_closure4(i), F), !0, F), _.JSArray_methods.addAll$1(c, u.fold$2$ax(a, t._setArrayType([], s), new t.QueryRequest__getRollupSelect_closure5(i, m))), _.JSArray_methods.addAll$1(c, new t.MappedListIterable(o, new t.QueryRequest__getRollupSelect_closure6(), D)), c.push("" + m + " _is_rollup"), p = "select " + _.JSArray_methods.join$1(c, ",") + " from (" + ("select " + h + " from " + n) + ")", d.get$isNotEmpty(g) && (g = t.List_List$of(d.map$1$1(g, new t.QueryRequest__getRollupSelect_closure7(), F), !0, F), h = l._eval$1("MappedIterable<1,String>"), _.JSArray_methods.addAll$1(g, t.List_List$of(new t.MappedIterable(new t.WhereIterable(o, new t.QueryRequest__getRollupSelect_closure8(), l._eval$1("WhereIterable<1>")), new t.QueryRequest__getRollupSelect_closure9(), h), !0, h._eval$1("Iterable.E"))), p = p + " group by " + _.JSArray_methods.join$1(g, ",")), p;
8193
+ var a, s, o, l, D, d, c, p, y = this, m = r != null, g = y.dimensions, h = f.QueryRequestDimension, E = t.ListExtensions_whereIndexed(g, new t.QueryRequest__getRollupSelect_closure(r), h), C = E.get$isEmpty(E) ? "" : "PARTITION BY " + t.MappedIterable_MappedIterable(E, new t.QueryRequest__getRollupSelect_closure0(), E.$ti._eval$1("Iterable.E"), f.String).join$1(0, ","), I = f.String;
8194
+ return h = t.List_List$of(t.ListExtensions_mapIndexed(g, new t.QueryRequest__getRollupSelect_closure1(y, e, r, C), h, I), !0, I), a = y.metrics, s = f.JSArray_String, _.JSArray_methods.addAll$1(h, t.IterableExtension_foldIndexed(a, t._setArrayType([], s), new t.QueryRequest__getRollupSelect_closure2(y, e, r, C))), o = y.sorts, l = t._arrayInstanceType(o), D = l._eval$1("MappedListIterable<1,String>"), _.JSArray_methods.addAll$1(h, new t.MappedListIterable(o, new t.QueryRequest__getRollupSelect_closure3(y, e, r, C), D)), h = _.JSArray_methods.join$1(h, ","), d = u.getInterceptor$ax(g), c = t.List_List$of(d.map$1$1(g, new t.QueryRequest__getRollupSelect_closure4(i), I), !0, I), _.JSArray_methods.addAll$1(c, u.fold$2$ax(a, t._setArrayType([], s), new t.QueryRequest__getRollupSelect_closure5(i, m))), _.JSArray_methods.addAll$1(c, new t.MappedListIterable(o, new t.QueryRequest__getRollupSelect_closure6(), D)), c.push("" + m + " _is_rollup"), p = "select " + _.JSArray_methods.join$1(c, ",") + " from (" + ("select " + h + " from " + n) + ")", d.get$isNotEmpty(g) && (g = t.List_List$of(d.map$1$1(g, new t.QueryRequest__getRollupSelect_closure7(), I), !0, I), h = l._eval$1("MappedIterable<1,String>"), _.JSArray_methods.addAll$1(g, t.List_List$of(new t.MappedIterable(new t.WhereIterable(o, new t.QueryRequest__getRollupSelect_closure8(), l._eval$1("WhereIterable<1>")), new t.QueryRequest__getRollupSelect_closure9(), h), !0, h._eval$1("Iterable.E"))), p = p + " group by " + _.JSArray_methods.join$1(g, ",")), p;
8196
8195
  },
8197
8196
  get$_hasFillGap() {
8198
8197
  var r = u.where$1$ax(this.dimensions, new t.QueryRequest__hasFillGap_closure());
@@ -8222,10 +8221,10 @@ Arguments: [` + D + "]";
8222
8221
  return new t._GetSourceTableResponse("SELECT " + new t.MappedListIterable(i, new t.QueryRequest__getSourceTable_closure0(p), a).join$1(0, ",") + " FROM (" + ("SELECT " + s + " FROM `" + o + "` AS " + l + D + d + c) + ")", p);
8223
8222
  },
8224
8223
  _getFillGapTable$2$schemaLibrary$sourceTableName(r, e) {
8225
- var n, i, a, s, o, l, D, d, c, p, y, m = this, g = " CROSS JOIN ", h = f.JSArray_String, A = t._setArrayType([], h), C = m._getTimeFilters$1(r.getSchema$1(m.schemaName));
8224
+ var n, i, a, s, o, l, D, d, c, p, y, m = this, g = " CROSS JOIN ", h = f.JSArray_String, E = t._setArrayType([], h), C = m._getTimeFilters$1(r.getSchema$1(m.schemaName));
8226
8225
  for (n = m.dimensions, i = u.getInterceptor$ax(n), a = i.get$iterator(n), s = m.timeDimension != null, o = m.timezone; a.moveNext$0(); )
8227
- l = a.get$current(), D = l.getColumn$1(r), l.fillGap && D.dataType === _.DATA_TYPE_1 && s && (d = l.generateTimestampArraySql$2$timeFilters$timezone(C, o), D = l.option, D.toString, A.push("SELECT " + t.DimensionOptionExtension_formatSql(D, t.uniqueAlias(l.get$alias()), o) + " " + t.uniqueAlias(l.get$alias()) + " FROM " + t.S(d) + " " + t.uniqueAlias(l.get$alias()) + " GROUP BY " + t.uniqueAlias(l.get$alias())));
8228
- return a = f.String, c = t.ListExtensions_mapIndexed(A, new t.QueryRequest__getFillGapTable_closure(), a, a).join$1(0, g), a = t.List_List$of(i.map$1$1(n, new t.QueryRequest__getFillGapTable_closure0(), a), !0, a), _.JSArray_methods.addAll$1(a, u.fold$2$ax(m.metrics, t._setArrayType([], h), new t.QueryRequest__getFillGapTable_closure1(m, r))), s = m.sorts, _.JSArray_methods.addAll$1(a, new t.MappedListIterable(s, new t.QueryRequest__getFillGapTable_closure2(m, r), t._arrayInstanceType(s)._eval$1("MappedListIterable<1,String>"))), p = t._setArrayType(["SELECT " + _.JSArray_methods.join$1(a, ",") + " FROM (" + c + ")"], h), y = i.where$1(n, new t.QueryRequest__getFillGapTable_closure3()), y.get$isEmpty(y) || p.push("(SELECT DISTINCT " + new t.MappedIterable(y, new t.QueryRequest__getFillGapTable_closure4(), y.$ti._eval$1("MappedIterable<1,String>")).join$1(0, ",") + " FROM " + e + ")"), _.JSArray_methods.join$1(p, g);
8226
+ l = a.get$current(), D = l.getColumn$1(r), l.fillGap && D.dataType === _.DATA_TYPE_1 && s && (d = l.generateTimestampArraySql$2$timeFilters$timezone(C, o), D = l.option, D.toString, E.push("SELECT " + t.DimensionOptionExtension_formatSql(D, t.uniqueAlias(l.get$alias()), o) + " " + t.uniqueAlias(l.get$alias()) + " FROM " + t.S(d) + " " + t.uniqueAlias(l.get$alias()) + " GROUP BY " + t.uniqueAlias(l.get$alias())));
8227
+ return a = f.String, c = t.ListExtensions_mapIndexed(E, new t.QueryRequest__getFillGapTable_closure(), a, a).join$1(0, g), a = t.List_List$of(i.map$1$1(n, new t.QueryRequest__getFillGapTable_closure0(), a), !0, a), _.JSArray_methods.addAll$1(a, u.fold$2$ax(m.metrics, t._setArrayType([], h), new t.QueryRequest__getFillGapTable_closure1(m, r))), s = m.sorts, _.JSArray_methods.addAll$1(a, new t.MappedListIterable(s, new t.QueryRequest__getFillGapTable_closure2(m, r), t._arrayInstanceType(s)._eval$1("MappedListIterable<1,String>"))), p = t._setArrayType(["SELECT " + _.JSArray_methods.join$1(a, ",") + " FROM (" + c + ")"], h), y = i.where$1(n, new t.QueryRequest__getFillGapTable_closure3()), y.get$isEmpty(y) || p.push("(SELECT DISTINCT " + new t.MappedIterable(y, new t.QueryRequest__getFillGapTable_closure4(), y.$ti._eval$1("MappedIterable<1,String>")).join$1(0, ",") + " FROM " + e + ")"), _.JSArray_methods.join$1(p, g);
8229
8228
  },
8230
8229
  _getFullTable$3$fillGapTableName$schemaLibrary$sourceTableName(r, e, n) {
8231
8230
  var i, a = "fill_gap_table", s = this.dimensions, o = f.String, l = u.getInterceptor$ax(s), D = t.List_List$of(l.map$1$1(s, new t.QueryRequest__getFullTable_closure(a, n), o), !0, o);
@@ -8860,8 +8859,8 @@ Arguments: [` + D + "]";
8860
8859
  $signature: 1
8861
8860
  }, t.billSchema_closure.prototype = {
8862
8861
  call$1(r) {
8863
- 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", m = "grossTotal", g = "rounding", h = "takeawayPrice", A = "thirdPartyExtraCharge", C = "deliveryFee", F = "nettTotal", M = "deliveryFeeWithTax", x = "deliveryFeeWithoutTax", R = "otherChargeWithTax", L = "otherChargeWithoutTax", w = "discountInclusiveTaxTotal";
8864
- 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", T.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, T.IFNULLi, !0, !1, "Item count", c, c, T.COALESi, r), t.Field_Field$numeric(e, "IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !1, !1, "Tax", p, p, T.COALEStax, r), t.Field_Field$numeric(e, T.IFNULLdiT, !1, !1, "Discount", y, y, T.COALESdit, r), t.Field_Field$numeric(e, T.IFNULLg, !1, !1, "Item gross", m, m, T.COALESg, r), t.Field_Field$numeric(e, T.x28IFNULnI, !1, !1, "Bill gross", "billGrossTotal", e, T.x28COALEnC, r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, !1, "Rounding", g, g, T.COALESr, r), t.Field_Field$numeric(e, "IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, !1, "SST", "sstTotal", "nettTaxes.SST.total", T.COALESss, r), t.Field_Field$string(e, e, !0, !1, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, r), t.Field_Field$numeric(e, T.IFNULLs, !1, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", T.COALESse, r), t.Field_Field$string(e, e, !0, !1, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, r), t.Field_Field$numeric(e, T.x28IFNULo, !1, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", T.x28COALEo, r), t.Field_Field$numeric(e, T.x28IFNULgx2d, !1, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, T.x28COALEgx2d, r), t.Field_Field$numeric(e, T.IFNULLta, !1, !1, "Takeaway", h, h, T.COALEStak, r), t.Field_Field$numeric(e, T.IFNULLth, !1, !1, "Extra charge", A, A, T.COALESth, r), t.Field_Field$numeric(e, T.IFNULLde_, !1, !1, "Delivery fee", C, C, T.COALESdex2c, r), t.Field_Field$numeric(e, T.IFNULLn, !1, !1, "Nett", F, F, T.COALESn, r), t.Field_Field$numeric(e, T.x28IFNULgx2bd, !1, !1, "Item gross before charges", "grossBeforeCharges", e, T.x28COALEgx2bd, r), t.Field_Field$numeric(e, T.x28IFNULn_, !1, !1, "Bill gross before charges", "billGrossBeforeCharges", e, T.x28COALEn_, r), t.Field_Field$numeric(e, e, !1, !1, "Member Recency", "recency", e, T.MIN_EX, r), t.Field_Field$numeric(e, e, !1, !1, "Member frequency", "frequency", e, T.COUNT_, r), t.Field_Field$numeric(e, e, !1, !1, "Member monetary", "monetary", e, T.SUM__n, r), t.Field_Field$numeric(e, T.IFNULLdeWT, !1, !1, "Delivery fee with tax", M, M, T.COALESdex5f_, r), t.Field_Field$numeric(e, T.IFNULLdeWo, !1, !1, "Delivery fee without tax", x, x, T.COALESdex5fo, r), t.Field_Field$numeric(e, T.IFNULLoT, !1, !1, "Other charge with tax", R, R, T.COALESo_, r), t.Field_Field$numeric(e, T.IFNULLoo, !1, !1, "Other charge without tax", L, L, T.COALESoo, r), t.Field_Field$numeric("Bill duration in seconds from creation to completion", e, !1, !1, "Duration", "duration", e, T.EXTRAC, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant", "restaurantName", e, T.x28selecn, r), t.Field_Field$numeric(e, e, !1, !1, "Labour hour", "labourHour", e, T.x28selecS, r), t.Field_Field$string(e, e, !1, !1, !1, "Payments", "payments", e, T.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, T.x28selecsta, r), t.Field_Field$numeric(e, T.IFNULLdiI, !1, !1, "Discount inc tax", w, w, T.COALESdii, r), t.Field_Field$string(e, e, !1, !1, !1, "Payment Summaries", "paymentSummaries", e, T.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);
8862
+ 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", m = "grossTotal", g = "rounding", h = "takeawayPrice", E = "thirdPartyExtraCharge", C = "deliveryFee", I = "nettTotal", M = "deliveryFeeWithTax", x = "deliveryFeeWithoutTax", R = "otherChargeWithTax", L = "otherChargeWithoutTax", O = "discountInclusiveTaxTotal";
8863
+ 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", T.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, T.IFNULLi, !0, !1, "Item count", c, c, T.COALESi, r), t.Field_Field$numeric(e, "IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !1, !1, "Tax", p, p, T.COALEStax, r), t.Field_Field$numeric(e, T.IFNULLdiT, !1, !1, "Discount", y, y, T.COALESdit, r), t.Field_Field$numeric(e, T.IFNULLg, !1, !1, "Item gross", m, m, T.COALESg, r), t.Field_Field$numeric(e, T.x28IFNULnI, !1, !1, "Bill gross", "billGrossTotal", e, T.x28COALEnC, r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, !1, "Rounding", g, g, T.COALESr, r), t.Field_Field$numeric(e, "IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, !1, "SST", "sstTotal", "nettTaxes.SST.total", T.COALESss, r), t.Field_Field$string(e, e, !0, !1, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, r), t.Field_Field$numeric(e, T.IFNULLs, !1, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", T.COALESse, r), t.Field_Field$string(e, e, !0, !1, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, r), t.Field_Field$numeric(e, T.x28IFNULo, !1, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", T.x28COALEo, r), t.Field_Field$numeric(e, T.x28IFNULgx2d, !1, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, T.x28COALEgx2d, r), t.Field_Field$numeric(e, T.IFNULLta, !1, !1, "Takeaway", h, h, T.COALEStak, r), t.Field_Field$numeric(e, T.IFNULLth, !1, !1, "Extra charge", E, E, T.COALESth, r), t.Field_Field$numeric(e, T.IFNULLde_, !1, !1, "Delivery fee", C, C, T.COALESdex2c, r), t.Field_Field$numeric(e, T.IFNULLn, !1, !1, "Nett", I, I, T.COALESn, r), t.Field_Field$numeric(e, T.x28IFNULgx2bd, !1, !1, "Item gross before charges", "grossBeforeCharges", e, T.x28COALEgx2bd, r), t.Field_Field$numeric(e, T.x28IFNULn_, !1, !1, "Bill gross before charges", "billGrossBeforeCharges", e, T.x28COALEn_, r), t.Field_Field$numeric(e, e, !1, !1, "Member Recency", "recency", e, T.MIN_EX, r), t.Field_Field$numeric(e, e, !1, !1, "Member frequency", "frequency", e, T.COUNT_, r), t.Field_Field$numeric(e, e, !1, !1, "Member monetary", "monetary", e, T.SUM__n, r), t.Field_Field$numeric(e, T.IFNULLdeWT, !1, !1, "Delivery fee with tax", M, M, T.COALESdex5f_, r), t.Field_Field$numeric(e, T.IFNULLdeWo, !1, !1, "Delivery fee without tax", x, x, T.COALESdex5fo, r), t.Field_Field$numeric(e, T.IFNULLoT, !1, !1, "Other charge with tax", R, R, T.COALESo_, r), t.Field_Field$numeric(e, T.IFNULLoo, !1, !1, "Other charge without tax", L, L, T.COALESoo, r), t.Field_Field$numeric("Bill duration in seconds from creation to completion", e, !1, !1, "Duration", "duration", e, T.EXTRAC, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant", "restaurantName", e, T.x28selecn, r), t.Field_Field$numeric(e, e, !1, !1, "Labour hour", "labourHour", e, T.x28selecS, r), t.Field_Field$string(e, e, !1, !1, !1, "Payments", "payments", e, T.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, T.x28selecsta, r), t.Field_Field$numeric(e, T.IFNULLdiI, !1, !1, "Discount inc tax", O, O, T.COALESdii, r), t.Field_Field$string(e, e, !1, !1, !1, "Payment Summaries", "paymentSummaries", e, T.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);
8865
8864
  },
8866
8865
  $signature: 0
8867
8866
  }, t.billSchema_closure0.prototype = {
@@ -9000,8 +8999,8 @@ Arguments: [` + D + "]";
9000
8999
  $signature: 1
9001
9000
  }, t.completeTimeBillSchema_closure.prototype = {
9002
9001
  call$1(r) {
9003
- 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", m = "grossTotal", g = "rounding", h = "takeawayPrice", A = "thirdPartyExtraCharge", C = "deliveryFee", F = "nettTotal", M = "deliveryFeeWithTax", x = "deliveryFeeWithoutTax", R = "otherChargeWithTax", L = "otherChargeWithoutTax", w = "discountInclusiveTaxTotal";
9004
- 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", T.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", T.COALESp, r), t.Field_Field$string(e, e, !1, !1, !1, "Integrated order ID", d, d, e, r), t.Field_Field$numeric(e, T.IFNULLi, !0, !1, "Item count", c, c, T.COALESi, r), t.Field_Field$numeric(e, "IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !1, !1, "Tax", p, p, T.COALEStax, r), t.Field_Field$numeric(e, T.IFNULLdiT, !1, !1, "Discount", y, y, T.COALESdit, r), t.Field_Field$numeric(e, T.IFNULLg, !1, !1, "Item gross", m, m, T.COALESg, r), t.Field_Field$numeric(e, T.x28IFNULnI, !1, !1, "Bill gross", "billGrossTotal", e, T.x28COALEnC, r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, !1, "Rounding", g, g, T.COALESr, r), t.Field_Field$numeric(e, "IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, !1, "SST", "sstTotal", "nettTaxes.SST.total", T.COALESss, r), t.Field_Field$string(e, e, !0, !1, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, r), t.Field_Field$numeric(e, T.IFNULLs, !1, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", T.COALESse, r), t.Field_Field$string(e, e, !0, !1, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, r), t.Field_Field$numeric(e, T.x28IFNULo, !1, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", T.x28COALEo, r), t.Field_Field$numeric(e, T.x28IFNULgx2d, !1, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, T.x28COALEgx2d, r), t.Field_Field$numeric(e, T.IFNULLta, !1, !1, "Takeaway", h, h, T.COALEStak, r), t.Field_Field$numeric(e, T.IFNULLth, !1, !1, "Extra charge", A, A, T.COALESth, r), t.Field_Field$numeric(e, T.IFNULLde_, !1, !1, "Delivery fee", C, C, T.COALESdex2c, r), t.Field_Field$numeric(e, T.IFNULLn, !1, !1, "Nett", F, F, T.COALESn, r), t.Field_Field$numeric(e, T.x28IFNULgx2bd, !1, !1, "Item gross before charges", "grossBeforeCharges", e, T.x28COALEgx2bd, r), t.Field_Field$numeric(e, T.x28IFNULn_, !1, !1, "Bill gross before charges", "billGrossBeforeCharges", e, T.x28COALEn_, r), t.Field_Field$numeric(e, e, !1, !1, "Member Recency", "recency", e, T.MIN_EX, r), t.Field_Field$numeric(e, e, !1, !1, "Member frequency", "frequency", e, T.COUNT_, r), t.Field_Field$numeric(e, e, !1, !1, "Member monetary", "monetary", e, T.SUM__n, r), t.Field_Field$numeric(e, T.IFNULLdeWT, !1, !1, "Delivery fee with tax", M, M, T.COALESdex5f_, r), t.Field_Field$numeric(e, T.IFNULLdeWo, !1, !1, "Delivery fee without tax", x, x, T.COALESdex5fo, r), t.Field_Field$numeric(e, T.IFNULLoT, !1, !1, "Other charge with tax", R, R, T.COALESo_, r), t.Field_Field$numeric(e, T.IFNULLoo, !1, !1, "Other charge without tax", L, L, T.COALESoo, r), t.Field_Field$numeric(e, e, !1, !1, "Duration", "duration", e, T.EXTRAC, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant", "restaurantName", e, T.x28selecn, r), t.Field_Field$numeric(e, e, !1, !1, "Labour hour", "labourHour", e, T.x28selecS, r), t.Field_Field$string(e, e, !1, !1, !1, "Payments", "payments", e, T.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, T.x28selecsta, r), t.Field_Field$numeric(e, T.IFNULLdiI, !1, !1, "Discount inc tax", w, w, T.COALESdii, r), t.Field_Field$string(e, e, !1, !1, !1, "Payment Summaries", "paymentSummaries", e, T.x28selecstC, r)], f.JSArray_Field);
9002
+ 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", m = "grossTotal", g = "rounding", h = "takeawayPrice", E = "thirdPartyExtraCharge", C = "deliveryFee", I = "nettTotal", M = "deliveryFeeWithTax", x = "deliveryFeeWithoutTax", R = "otherChargeWithTax", L = "otherChargeWithoutTax", O = "discountInclusiveTaxTotal";
9003
+ 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", T.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", T.COALESp, r), t.Field_Field$string(e, e, !1, !1, !1, "Integrated order ID", d, d, e, r), t.Field_Field$numeric(e, T.IFNULLi, !0, !1, "Item count", c, c, T.COALESi, r), t.Field_Field$numeric(e, "IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !1, !1, "Tax", p, p, T.COALEStax, r), t.Field_Field$numeric(e, T.IFNULLdiT, !1, !1, "Discount", y, y, T.COALESdit, r), t.Field_Field$numeric(e, T.IFNULLg, !1, !1, "Item gross", m, m, T.COALESg, r), t.Field_Field$numeric(e, T.x28IFNULnI, !1, !1, "Bill gross", "billGrossTotal", e, T.x28COALEnC, r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, !1, "Rounding", g, g, T.COALESr, r), t.Field_Field$numeric(e, "IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, !1, "SST", "sstTotal", "nettTaxes.SST.total", T.COALESss, r), t.Field_Field$string(e, e, !0, !1, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, r), t.Field_Field$numeric(e, T.IFNULLs, !1, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", T.COALESse, r), t.Field_Field$string(e, e, !0, !1, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, r), t.Field_Field$numeric(e, T.x28IFNULo, !1, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", T.x28COALEo, r), t.Field_Field$numeric(e, T.x28IFNULgx2d, !1, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, T.x28COALEgx2d, r), t.Field_Field$numeric(e, T.IFNULLta, !1, !1, "Takeaway", h, h, T.COALEStak, r), t.Field_Field$numeric(e, T.IFNULLth, !1, !1, "Extra charge", E, E, T.COALESth, r), t.Field_Field$numeric(e, T.IFNULLde_, !1, !1, "Delivery fee", C, C, T.COALESdex2c, r), t.Field_Field$numeric(e, T.IFNULLn, !1, !1, "Nett", I, I, T.COALESn, r), t.Field_Field$numeric(e, T.x28IFNULgx2bd, !1, !1, "Item gross before charges", "grossBeforeCharges", e, T.x28COALEgx2bd, r), t.Field_Field$numeric(e, T.x28IFNULn_, !1, !1, "Bill gross before charges", "billGrossBeforeCharges", e, T.x28COALEn_, r), t.Field_Field$numeric(e, e, !1, !1, "Member Recency", "recency", e, T.MIN_EX, r), t.Field_Field$numeric(e, e, !1, !1, "Member frequency", "frequency", e, T.COUNT_, r), t.Field_Field$numeric(e, e, !1, !1, "Member monetary", "monetary", e, T.SUM__n, r), t.Field_Field$numeric(e, T.IFNULLdeWT, !1, !1, "Delivery fee with tax", M, M, T.COALESdex5f_, r), t.Field_Field$numeric(e, T.IFNULLdeWo, !1, !1, "Delivery fee without tax", x, x, T.COALESdex5fo, r), t.Field_Field$numeric(e, T.IFNULLoT, !1, !1, "Other charge with tax", R, R, T.COALESo_, r), t.Field_Field$numeric(e, T.IFNULLoo, !1, !1, "Other charge without tax", L, L, T.COALESoo, r), t.Field_Field$numeric(e, e, !1, !1, "Duration", "duration", e, T.EXTRAC, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant", "restaurantName", e, T.x28selecn, r), t.Field_Field$numeric(e, e, !1, !1, "Labour hour", "labourHour", e, T.x28selecS, r), t.Field_Field$string(e, e, !1, !1, !1, "Payments", "payments", e, T.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, T.x28selecsta, r), t.Field_Field$numeric(e, T.IFNULLdiI, !1, !1, "Discount inc tax", O, O, T.COALESdii, r), t.Field_Field$string(e, e, !1, !1, !1, "Payment Summaries", "paymentSummaries", e, T.x28selecstC, r)], f.JSArray_Field);
9005
9004
  },
9006
9005
  $signature: 0
9007
9006
  }, t.completeTimeBillSchema_closure0.prototype = {
@@ -9070,10 +9069,10 @@ Arguments: [` + D + "]";
9070
9069
  $signature: 1
9071
9070
  }, t.flattenItemSchema_closure.prototype = {
9072
9071
  call$1(r) {
9073
- var e = null, n = "itemCreatedAt", i = "billCompletedAt", a = "perXUnit", s = "takeawayId", o = "takeawayName", l = "productId", D = "isRefund", d = "servedAt", c = "isTakeaway", p = "quantity", y = "unitQuantity", m = "billAdjustmentTotal", g = "itemAdjustmentTotal", h = "grossTotal", A = "takeawayPrice", C = "nettTotal", F = "layerNettTotal", M = "layerBillAdjustmentTotal", x = "layerItemAdjustmentTotal", R = "layerGrossTotal", L = "layerTakeawayPrice", w = "layerTaxTotal", v = "layerScTotal", U = "layerOtherChargeTotal", Z = "customAttributes", f0 = "layerZeroParentId", g0 = "collectedAt", o0 = "subCategories", h0 = "billAdjustmentInclusiveTaxTotal", F0 = "itemAdjustmentInclusiveTaxTotal", x0 = "layerBillAdjustmentInclusiveTaxTotal", L0 = "layerItemAdjustmentInclusiveTaxTotal", C0 = "billAdjustmentExclusiveTaxTotal", M0 = "itemAdjustmentExclusiveTaxTotal", O0 = "layerBillAdjustmentExclusiveTaxTotal", R0 = "layerItemAdjustmentExclusiveTaxTotal";
9072
+ var e = null, n = "itemCreatedAt", i = "billCompletedAt", a = "perXUnit", s = "takeawayId", o = "takeawayName", l = "productId", D = "isRefund", d = "servedAt", c = "isTakeaway", p = "quantity", y = "unitQuantity", m = "billAdjustmentTotal", g = "itemAdjustmentTotal", h = "grossTotal", E = "takeawayPrice", C = "nettTotal", I = "layerNettTotal", M = "layerBillAdjustmentTotal", x = "layerItemAdjustmentTotal", R = "layerGrossTotal", L = "layerTakeawayPrice", O = "layerTaxTotal", v = "layerScTotal", H = "layerOtherChargeTotal", j = "customAttributes", c0 = "layerZeroParentId", g0 = "collectedAt", a0 = "subCategories", h0 = "billAdjustmentInclusiveTaxTotal", b0 = "itemAdjustmentInclusiveTaxTotal", M0 = "layerBillAdjustmentInclusiveTaxTotal", R0 = "layerItemAdjustmentInclusiveTaxTotal", T0 = "billAdjustmentExclusiveTaxTotal", I0 = "itemAdjustmentExclusiveTaxTotal", x0 = "layerBillAdjustmentExclusiveTaxTotal", F0 = "layerItemAdjustmentExclusiveTaxTotal";
9074
9073
  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)
9075
9074
  `, !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
9076
- `, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway ID", s, s, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway name", o, o, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Code", "code", "code", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Product ID", l, l, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant ID", "variantId", "variant.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant", "variantName", "variant.name", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", D, D, e, r), t.Field_Field$string(e, e, !1, !1, !1, "User id", "createdById", "createdBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "User", "createdByName", "createdBy.name", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Sent time", "sentAt", "sentAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Served time", d, d, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Printed time", "printedAt", "printBy.printAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Void time", "voidAt", "void.voidAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void reason", "voidReason", "void.reason", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidedById", "void.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void user", "voidedByName", "void.by.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidApprovedById", "void.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", e, r), t.Field_Field$bool(e, e, !0, !1, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", e, r), t.Field_Field$bool(e, e, !0, !1, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", e, r), t.Field_Field$bool(e, e, !1, !1, "Takeaway", c, c, e, r), t.Field_Field$numeric(e, "@quantity*IF(@isRefund, -1, 1)", !1, !1, "Qty", p, p, T.x40quant, r), t.Field_Field$numeric(e, "@unitQuantity*IF(@isRefund, -1, 1)", !1, !1, "Unit qty", y, y, T.x40unit_, r), t.Field_Field$numeric(e, "@sstTotal*IF(@isRefund, -1, 1)", !1, !1, "SST", "sstTotal", "sst.total", T.x40sst_t, r), t.Field_Field$numeric(e, e, !0, !1, "SST %", "sstPercentage", "sst.percentage", e, r), t.Field_Field$numeric(e, e, !0, !1, "SC %", "serviceChargePercentage", "sc.percentage", e, r), t.Field_Field$numeric(e, "@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "SC", "serviceChargeTotal", "sc.total", T.x40servi, r), t.Field_Field$numeric(e, "@otherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Other charge", "otherChargeTotal", "otherCharge.total", T.x40other, r), t.Field_Field$numeric(e, T.x40billA, !1, !1, "Bill discount", m, m, T.x40bill_, r), t.Field_Field$numeric(e, T.x40itemA, !1, !1, "Item discount", g, g, T.x40item_, r), t.Field_Field$numeric(e, "@grossTotal*IF(@isRefund, -1, 1)", !1, !1, "Gross", h, h, T.x40gross, r), t.Field_Field$numeric(e, T.x28_grosT, !1, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, T.x28_gros_, r), t.Field_Field$numeric(e, "@takeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Takeaway price", A, A, T.x40takea, r), t.Field_Field$numeric(e, "@nettTotal*IF(@isRefund, -1, 1)", !1, !1, "Nett", C, C, T.x40nett_, r), t.Field_Field$string(e, e, !1, !1, !1, "Parent ID", "parentId", "parent.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Parent name", "parentName", "parent.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Addon type", "addonType", "addon.type", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Addon ID", "addonId", "addon.selectionId", e, r), t.Field_Field$string(e, "SPLIT(@addonId, '/')[OFFSET(0)]", !1, !1, !1, "Group ID", "groupId", e, "SPLIT_PART(@addon_id, '/',1)", r), t.Field_Field$numeric("Item depth: 0 = main item. 1+ = addon/modifier level. -1 = bill level modifier, usually not consider item sales.", e, !1, !1, "Layer", "layer", "layer", e, r), t.Field_Field$numeric(e, "@addonPrice*IF(@isRefund, -1, 1)", !1, !1, "Addon price", "addonPrice", "addon.price", T.x40addon, r), t.Field_Field$numeric(e, "@taxTotal*IF(@isRefund, -1, 1)", !1, !1, "Tax", "taxTotal", "tax.total", "@tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, T.x28IFNULb, !1, !1, "Discount", "discountTotal", e, T.x28COALEb, r), t.Field_Field$numeric(e, T.x28IFNULgx2bb, !1, !1, "Gross before charges", "grossBeforeCharges", e, T.x28COALEgx2bb, r), t.Field_Field$string(e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING([IF(@code='', NULL, @code), @name], ' '))", !1, !1, !1, "Summary", "summary", e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN @code='' THEN NULL ELSE @code END, @name], ' '))", r), t.Field_Field$numeric(e, "@layerNettTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer nett", F, F, "@layer_nett_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount", M, M, "@layer_bill_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount", x, x, "@layer_item_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerGrossTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer gross total", R, R, "@layer_gross_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerTakeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Layer takeaway price", L, L, "@layer_takeaway_price*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer tax total", w, w, "@layer_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerScTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer sc", v, v, "@layer_sc_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerOtherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer other charge", U, U, "@layer_other_charge_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "(IFNULL(@layerGrossTotal,0)+IFNULL(@layerBillAdjustmentTotal,0)+IFNULL(@layerItemAdjustmentTotal,0))*IF(@isRefund, -1, 1)", !1, !1, "Layer gross before charges", "layerGrossBeforeCharges", e, "(COALESCE(@layer_gross_total,0)+COALESCE(@layer_bill_adjustment_total,0)+COALESCE(@layer_item_adjustment_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$string(e, e, !1, !1, !1, "Custom attributes", Z, Z, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent ID", f0, f0, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Charge variant", "chargeVariant", e, "(select variant from charges where charges.parent_id=@layer_zero_parent_id and charges.restaurant_id=@restaurant_id and charges.bill_id=@bill_id and charges.code != 'SERVICE_CHARGE')", r), t.Field_Field$timestamp(e, e, !1, !1, "Collected time", g0, g0, e, r), t.Field_Field$numeric(e, e, !1, !1, "Costing", "costing", "costing", e, r), t.Field_Field$numeric(e, "ROUND(TIMESTAMP_DIFF(IFNULL(@servedAt, CURRENT_TIMESTAMP), @sentAt, SECOND),0)", !1, !1, "Preparation seconds", "preparationSeconds", e, "ROUND(EXTRACT(EPOCH FROM AGE(COALESCE(@served_at, CURRENT_TIMESTAMP),@sent_at)),0)", r), t.Field_Field$numeric("Computed: nett total minus costing", "(@nettTotal-coalesce(@costing, 0))", !1, !1, "Profit", "profit", e, "(@nett_total-coalesce(@costing, 0))", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent name", "layerZeroParentName", e, "(select name from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent code", "layerZeroParentCode", e, "(select code from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent category", "layerZeroParentCategory", e, "(select category_name from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Sub categories", o0, o0, e, r), t.Field_Field$numeric(e, "@billAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Bill discount inc tax", h0, h0, "@bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@itemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Item discount inc tax", F0, F0, "@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", C0, C0, "@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", M0, M0, "@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", R0, R0, "@layer_item_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r)], f.JSArray_Field);
9075
+ `, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway ID", s, s, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway name", o, o, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Code", "code", "code", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Product ID", l, l, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant ID", "variantId", "variant.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant", "variantName", "variant.name", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", D, D, e, r), t.Field_Field$string(e, e, !1, !1, !1, "User id", "createdById", "createdBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "User", "createdByName", "createdBy.name", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Sent time", "sentAt", "sentAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Served time", d, d, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Printed time", "printedAt", "printBy.printAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Void time", "voidAt", "void.voidAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void reason", "voidReason", "void.reason", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidedById", "void.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void user", "voidedByName", "void.by.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidApprovedById", "void.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", e, r), t.Field_Field$bool(e, e, !0, !1, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", e, r), t.Field_Field$bool(e, e, !0, !1, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", e, r), t.Field_Field$bool(e, e, !1, !1, "Takeaway", c, c, e, r), t.Field_Field$numeric(e, "@quantity*IF(@isRefund, -1, 1)", !1, !1, "Qty", p, p, T.x40quant, r), t.Field_Field$numeric(e, "@unitQuantity*IF(@isRefund, -1, 1)", !1, !1, "Unit qty", y, y, T.x40unit_, r), t.Field_Field$numeric(e, "@sstTotal*IF(@isRefund, -1, 1)", !1, !1, "SST", "sstTotal", "sst.total", T.x40sst_t, r), t.Field_Field$numeric(e, e, !0, !1, "SST %", "sstPercentage", "sst.percentage", e, r), t.Field_Field$numeric(e, e, !0, !1, "SC %", "serviceChargePercentage", "sc.percentage", e, r), t.Field_Field$numeric(e, "@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "SC", "serviceChargeTotal", "sc.total", T.x40servi, r), t.Field_Field$numeric(e, "@otherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Other charge", "otherChargeTotal", "otherCharge.total", T.x40other, r), t.Field_Field$numeric(e, T.x40billA, !1, !1, "Bill discount", m, m, T.x40bill_, r), t.Field_Field$numeric(e, T.x40itemA, !1, !1, "Item discount", g, g, T.x40item_, r), t.Field_Field$numeric(e, "@grossTotal*IF(@isRefund, -1, 1)", !1, !1, "Gross", h, h, T.x40gross, r), t.Field_Field$numeric(e, T.x28_grosT, !1, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, T.x28_gros_, r), t.Field_Field$numeric(e, "@takeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Takeaway price", E, E, T.x40takea, r), t.Field_Field$numeric(e, "@nettTotal*IF(@isRefund, -1, 1)", !1, !1, "Nett", C, C, T.x40nett_, r), t.Field_Field$string(e, e, !1, !1, !1, "Parent ID", "parentId", "parent.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Parent name", "parentName", "parent.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Addon type", "addonType", "addon.type", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Addon ID", "addonId", "addon.selectionId", e, r), t.Field_Field$string(e, "SPLIT(@addonId, '/')[OFFSET(0)]", !1, !1, !1, "Group ID", "groupId", e, "SPLIT_PART(@addon_id, '/',1)", r), t.Field_Field$numeric("Item depth: 0 = main item. 1+ = addon/modifier level. -1 = bill level modifier, usually not consider item sales.", e, !1, !1, "Layer", "layer", "layer", e, r), t.Field_Field$numeric(e, "@addonPrice*IF(@isRefund, -1, 1)", !1, !1, "Addon price", "addonPrice", "addon.price", T.x40addon, r), t.Field_Field$numeric(e, "@taxTotal*IF(@isRefund, -1, 1)", !1, !1, "Tax", "taxTotal", "tax.total", "@tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, T.x28IFNULb, !1, !1, "Discount", "discountTotal", e, T.x28COALEb, r), t.Field_Field$numeric(e, T.x28IFNULgx2bb, !1, !1, "Gross before charges", "grossBeforeCharges", e, T.x28COALEgx2bb, r), t.Field_Field$string(e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING([IF(@code='', NULL, @code), @name], ' '))", !1, !1, !1, "Summary", "summary", e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN @code='' THEN NULL ELSE @code END, @name], ' '))", r), t.Field_Field$numeric(e, "@layerNettTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer nett", 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", 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", g0, g0, e, r), t.Field_Field$numeric(e, e, !1, !1, "Costing", "costing", "costing", e, r), t.Field_Field$numeric(e, "ROUND(TIMESTAMP_DIFF(IFNULL(@servedAt, CURRENT_TIMESTAMP), @sentAt, SECOND),0)", !1, !1, "Preparation seconds", "preparationSeconds", e, "ROUND(EXTRACT(EPOCH FROM AGE(COALESCE(@served_at, CURRENT_TIMESTAMP),@sent_at)),0)", r), t.Field_Field$numeric("Computed: nett total minus costing", "(@nettTotal-coalesce(@costing, 0))", !1, !1, "Profit", "profit", e, "(@nett_total-coalesce(@costing, 0))", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent name", "layerZeroParentName", e, "(select name from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent code", "layerZeroParentCode", e, "(select code from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent category", "layerZeroParentCategory", e, "(select category_name from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Sub categories", 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", T0, T0, "@bill_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@itemAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Item discount exc tax", 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);
9077
9076
  },
9078
9077
  $signature: 0
9079
9078
  }, t.flattenItemSchema_closure0.prototype = {
@@ -9180,8 +9179,8 @@ Arguments: [` + D + "]";
9180
9179
  $signature: 1
9181
9180
  }, t.inventoryAdjustmentSkuSchema_closure.prototype = {
9182
9181
  call$1(r) {
9183
- var e = null, n = "locationId", i = "inventoryAdjustmentId", a = "fromBalance", s = "toBalance", o = "unitPrecision", l = "unitName", D = "unitAbbrev", d = "amountCost", c = "fromBalanceCost", p = "toBalanceCost", y = "trackingAmount", m = "trackingUnitName", g = "trackingUnitAbbrev", h = "conversion", A = "customAttributes", C = "defaultCostPerUnit";
9184
- 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$string(e, e, !1, !1, !1, "Warehouse ID", "warehouseId", "_warehouseId", 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$string(e, e, !1, !1, !1, "Location ID", n, n, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Inventory Adjustment ID", i, i, e, r), t.Field_Field$numeric("Stock quantity change. Positive = in, negative = out", e, !1, !1, "Amount", "amount", "amount", e, r), t.Field_Field$numeric(e, "IF(@amount>=0, @amount, 0)", !1, !1, "In", "in", e, T.CASE_Wax3e, r), t.Field_Field$numeric(e, "IF(@amount<0, @amount, 0)", !1, !1, "Out", "out", e, T.CASE_Wax3c, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string("Values: SALES, DAMAGE, PURCHASE, TRANSFER, ADJUSTMENT, OPENING, PRODUCTION", e, !1, !1, !1, "Type", "type", "type", e, r), t.Field_Field$numeric(e, e, !1, !1, "From balance", a, a, e, r), t.Field_Field$numeric(e, e, !1, !1, "To balance", s, s, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Name", "name", "name", 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, "Unit ID", "unitId", "unitId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Unit Precision", o, o, e, r), t.Field_Field$string(e, e, !1, !1, !1, "SKU ID", "skuId", "skuId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Unit", l, l, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Unit abbrev.", D, D, e, r), t.Field_Field$numeric(e, e, !1, !1, "Amount cost", d, d, "case when @amount<0 then -@amount_cost else @amount_cost end", r), t.Field_Field$numeric(e, e, !1, !1, "From balance cost", c, c, e, r), t.Field_Field$numeric(e, e, !1, !1, "To balance cost", p, p, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Name (unit)", "nameUnit", e, "concat(@name,' (',@unit_abbrev,')')", r), t.Field_Field$numeric(e, e, !1, !1, "Daily consumption", "dailyConsumption", e, "(sum(@amount) filter (where type in ('SALES','DAMAGE')) over (partition by @name)/(EXTRACT(DAY FROM (!end - !start))+1))", r), t.Field_Field$numeric(e, e, !1, !1, "Days outstanding", "daysOutstanding", e, "-(last_value(@to_balance) over (partition by @name order by @created_at asc ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING)/(sum(@amount) filter (where type in ('SALES','DAMAGE')) over (partition by @name)/(EXTRACT(DAY FROM (!end - !start))+1)))", r), t.Field_Field$numeric(e, e, !1, !1, "Tracking amount", y, y, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Tracking unit", m, m, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Tracking unit abbrev.", g, g, e, r), t.Field_Field$numeric(e, e, !1, !1, "Conversion", h, h, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Custom attributes", A, A, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Ref", "ref", "ref", e, r), t.Field_Field$numeric(e, e, !1, !1, "Default unit cost", C, C, e, r), t.Field_Field$bool(e, e, !1, !1, "From closing template", "fromClosingTemplate", e, "((select 1 from closing_draft_skus where closing_adjustment_id = @inventory_adjustment_id and sku_id = @sku_id limit 1) is not null)", r), t.Field_Field$numeric(e, e, !1, !1, "Default cost", "defaultCost", e, "@default_cost_per_unit*@amount", r)], f.JSArray_Field);
9182
+ var e = null, n = "locationId", i = "inventoryAdjustmentId", a = "fromBalance", s = "toBalance", o = "unitPrecision", l = "unitName", D = "unitAbbrev", d = "amountCost", c = "fromBalanceCost", p = "toBalanceCost", y = "trackingAmount", m = "trackingUnitName", g = "trackingUnitAbbrev", h = "conversion", E = "customAttributes", C = "defaultCostPerUnit";
9183
+ 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$string(e, e, !1, !1, !1, "Warehouse ID", "warehouseId", "_warehouseId", 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$string(e, e, !1, !1, !1, "Location ID", n, n, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Inventory Adjustment ID", i, i, e, r), t.Field_Field$numeric("Stock quantity change. Positive = in, negative = out", e, !1, !1, "Amount", "amount", "amount", e, r), t.Field_Field$numeric(e, "IF(@amount>=0, @amount, 0)", !1, !1, "In", "in", e, T.CASE_Wax3e, r), t.Field_Field$numeric(e, "IF(@amount<0, @amount, 0)", !1, !1, "Out", "out", e, T.CASE_Wax3c, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string("Values: SALES, DAMAGE, PURCHASE, TRANSFER, ADJUSTMENT, OPENING, PRODUCTION", e, !1, !1, !1, "Type", "type", "type", e, r), t.Field_Field$numeric(e, e, !1, !1, "From balance", a, a, e, r), t.Field_Field$numeric(e, e, !1, !1, "To balance", s, s, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Name", "name", "name", 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, "Unit ID", "unitId", "unitId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Unit Precision", o, o, e, r), t.Field_Field$string(e, e, !1, !1, !1, "SKU ID", "skuId", "skuId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Unit", l, l, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Unit abbrev.", D, D, e, r), t.Field_Field$numeric(e, e, !1, !1, "Amount cost", d, d, "case when @amount<0 then -@amount_cost else @amount_cost end", r), t.Field_Field$numeric(e, e, !1, !1, "From balance cost", c, c, e, r), t.Field_Field$numeric(e, e, !1, !1, "To balance cost", p, p, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Name (unit)", "nameUnit", e, "concat(@name,' (',@unit_abbrev,')')", r), t.Field_Field$numeric(e, e, !1, !1, "Daily consumption", "dailyConsumption", e, "(sum(@amount) filter (where type in ('SALES','DAMAGE')) over (partition by @name)/(EXTRACT(DAY FROM (!end - !start))+1))", r), t.Field_Field$numeric(e, e, !1, !1, "Days outstanding", "daysOutstanding", e, "-(last_value(@to_balance) over (partition by @name order by @created_at asc ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING)/(sum(@amount) filter (where type in ('SALES','DAMAGE')) over (partition by @name)/(EXTRACT(DAY FROM (!end - !start))+1)))", r), t.Field_Field$numeric(e, e, !1, !1, "Tracking amount", y, y, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Tracking unit", m, m, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Tracking unit abbrev.", g, g, e, r), t.Field_Field$numeric(e, e, !1, !1, "Conversion", h, h, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Custom attributes", E, E, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Ref", "ref", "ref", e, r), t.Field_Field$numeric(e, e, !1, !1, "Default unit cost", C, C, e, r), t.Field_Field$bool(e, e, !1, !1, "From closing template", "fromClosingTemplate", e, "((select 1 from closing_draft_skus where closing_adjustment_id = @inventory_adjustment_id and sku_id = @sku_id limit 1) is not null)", r), t.Field_Field$numeric(e, e, !1, !1, "Default cost", "defaultCost", e, "@default_cost_per_unit*@amount", r)], f.JSArray_Field);
9185
9184
  },
9186
9185
  $signature: 0
9187
9186
  }, t.inventoryAdjustmentSkuSchema_closure0.prototype = {
@@ -9550,8 +9549,8 @@ limit 1) when @tier is null then null else @tier::numeric end)`, r), t.Field_Fie
9550
9549
  $signature: 1
9551
9550
  }, t.refundBillSchema_closure.prototype = {
9552
9551
  call$1(r) {
9553
- 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", m = "discountTotal", g = "grossTotal", h = "rounding", A = "takeawayPrice", C = "thirdPartyExtraCharge", F = "deliveryFee", M = "nettTotal";
9554
- 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", T.COALESp, r), t.Field_Field$string(e, e, !1, !1, !1, "Integrated order ID", c, c, e, r), t.Field_Field$numeric(e, T.IFNULLi, !0, !1, "Item count", p, p, T.COALESi, r), t.Field_Field$numeric(e, "IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !0, !1, e, y, y, T.COALEStax, r), t.Field_Field$numeric(e, T.IFNULLdiT, !1, !1, "Discount", m, m, T.COALESdit, r), t.Field_Field$numeric(e, T.IFNULLg, !1, !1, "Gross", g, g, T.COALESg, r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, !1, "Rounding", h, h, T.COALESr, r), t.Field_Field$numeric(e, "IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !1, !1, "SST", "sstTotal", "nettTaxes.SST.total", T.COALESss, r), t.Field_Field$string(e, e, !1, !1, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, r), t.Field_Field$numeric(e, T.IFNULLs, !1, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", T.COALESse, r), t.Field_Field$string(e, e, !1, !1, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, r), t.Field_Field$numeric(e, T.x28IFNULo, !1, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", T.x28COALEo, r), t.Field_Field$numeric(e, T.x28IFNULgx2d, !1, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, T.x28COALEgx2d, r), t.Field_Field$numeric(e, T.IFNULLta, !1, !1, D, A, A, T.COALEStak, r), t.Field_Field$numeric(e, T.IFNULLth, !1, !1, "Extra charge", C, C, T.COALESth, r), t.Field_Field$numeric(e, T.IFNULLde_, !1, !1, "Delivery fee", F, F, T.COALESdex2c, r), t.Field_Field$numeric(e, T.IFNULLn, !1, !1, "Nett", M, M, T.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, T.MIN_EX, r), t.Field_Field$numeric(e, e, !1, !1, "Member frequency", "frequency", e, T.COUNT_, r), t.Field_Field$numeric(e, e, !1, !1, "Member monetary", "monetary", e, T.SUM__n, r)], f.JSArray_Field);
9552
+ 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", m = "discountTotal", g = "grossTotal", h = "rounding", E = "takeawayPrice", C = "thirdPartyExtraCharge", I = "deliveryFee", M = "nettTotal";
9553
+ 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", T.COALESp, r), t.Field_Field$string(e, e, !1, !1, !1, "Integrated order ID", c, c, e, r), t.Field_Field$numeric(e, T.IFNULLi, !0, !1, "Item count", p, p, T.COALESi, r), t.Field_Field$numeric(e, "IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !0, !1, e, y, y, T.COALEStax, r), t.Field_Field$numeric(e, T.IFNULLdiT, !1, !1, "Discount", m, m, T.COALESdit, r), t.Field_Field$numeric(e, T.IFNULLg, !1, !1, "Gross", g, g, T.COALESg, r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, !1, "Rounding", h, h, T.COALESr, r), t.Field_Field$numeric(e, "IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !1, !1, "SST", "sstTotal", "nettTaxes.SST.total", T.COALESss, r), t.Field_Field$string(e, e, !1, !1, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, r), t.Field_Field$numeric(e, T.IFNULLs, !1, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", T.COALESse, r), t.Field_Field$string(e, e, !1, !1, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, r), t.Field_Field$numeric(e, T.x28IFNULo, !1, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", T.x28COALEo, r), t.Field_Field$numeric(e, T.x28IFNULgx2d, !1, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, T.x28COALEgx2d, r), t.Field_Field$numeric(e, T.IFNULLta, !1, !1, D, E, E, T.COALEStak, r), t.Field_Field$numeric(e, T.IFNULLth, !1, !1, "Extra charge", C, C, T.COALESth, r), t.Field_Field$numeric(e, T.IFNULLde_, !1, !1, "Delivery fee", I, I, T.COALESdex2c, r), t.Field_Field$numeric(e, T.IFNULLn, !1, !1, "Nett", M, M, T.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, T.MIN_EX, r), t.Field_Field$numeric(e, e, !1, !1, "Member frequency", "frequency", e, T.COUNT_, r), t.Field_Field$numeric(e, e, !1, !1, "Member monetary", "monetary", e, T.SUM__n, r)], f.JSArray_Field);
9555
9554
  },
9556
9555
  $signature: 0
9557
9556
  }, t.refundBillSchema_closure0.prototype = {
@@ -10554,12 +10553,12 @@ limit 1) when @tier is null then null else @tier::numeric end)`, r), t.Field_Fie
10554
10553
  var e = u.LegacyJavaScriptObject.prototype;
10555
10554
  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;
10556
10555
  }(), function() {
10557
- var e = e0._static_2, n = e0._static_1, i = e0._instance_1u, a = e0._instance_0u;
10556
+ var e = K._static_2, n = K._static_1, i = K._instance_1u, a = K._instance_0u;
10558
10557
  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);
10559
10558
  var s;
10560
10559
  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);
10561
10560
  }(), function() {
10562
- var e = e0.mixin, n = e0.inherit, i = e0.inheritMany;
10561
+ var e = K.mixin, n = K.inherit, i = K.inheritMany;
10563
10562
  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.changePaymentActivitySchema_closure, t.changePaymentActivitySchema_closure0, t.chargeSchema_closure, t.chargeSchema_closure0, t.closingDraftSchema_closure, t.closingDraftSchema_closure0, t.closingDraftSkuSchema_closure, t.closingDraftSkuSchema_closure0, t.closingSkuSchema_closure, t.closingSkuSchema_closure0, t.collectibleCollectionSchema_closure, t.collectibleCollectionSchema_closure0, t.collectibleConfigSchema_closure, t.collectibleConfigSchema_closure0, t.collectibleTransactionSchema_closure, t.collectibleTransactionSchema_closure0, t.completeTimeBillSchema_closure, t.completeTimeBillSchema_closure0, t.counterSchema_closure, t.counterSchema_closure0, t.creditTransactionSchema_closure, t.creditTransactionSchema_closure0, t.dailyForecastSalesSchema_closure, t.dailyForecastSalesSchema_closure0, t.discountSchema_closure, t.discountSchema_closure0, t.drawerSchema_closure, t.drawerSchema_closure0, t.flattenItemSchema_closure, t.flattenItemSchema_closure0, t.internalPurchaseOrderSchema_closure, t.internalPurchaseOrderSchema_closure0, t.internalPurchaseOrderDeliveryFulfillmentSchema_closure, t.internalPurchaseOrderDeliveryFulfillmentSchema_closure0, t.internalPurchaseOrderDeliveryFulfillmentSkuSchema_closure, t.internalPurchaseOrderDeliveryFulfillmentSkuSchema_closure0, t.internalPurchaseOrderDeliveryOrderSchema_closure, t.internalPurchaseOrderDeliveryOrderSchema_closure0, t.internalPurchaseOrderDeliveryOrderSkuSchema_closure, t.internalPurchaseOrderDeliveryOrderSkuSchema_closure0, t.internalPurchaseOrderItemSchema_closure, t.internalPurchaseOrderItemSchema_closure0, t.inventoryAdjustmentSchema_closure, t.inventoryAdjustmentSchema_closure0, t.inventoryAdjustmentPhysicalSkuSchema_closure, t.inventoryAdjustmentPhysicalSkuSchema_closure0, t.inventoryAdjustmentSkuSchema_closure, t.inventoryAdjustmentSkuSchema_closure0, t.inventoryV1FlattenInventorySchema_closure, t.inventoryV1FlattenInventorySchema_closure0, t.itemSchema_closure, t.itemSchema_closure0, t.itemMovementSchema_closure, t.itemMovementSchema_closure0, t.kitchenStationSchema_closure, t.kitchenStationSchema_closure0, t.memberSchema_closure, t.memberSchema_closure0, t.memberStorePurchaseSchema_closure, t.memberStorePurchaseSchema_closure0, t.memberStorePurchasePaymentSchema_closure, t.memberStorePurchasePaymentSchema_closure0, t.memberTitleSchema_closure, t.memberTitleSchema_closure0, t.memberV2Schema_closure, t.memberV2Schema_closure0, t.membershipSchema_closure, t.membershipSchema_closure0, t.membershipTitleSchema_closure, t.membershipTitleSchema_closure0, t.menuV3GroupSchema_closure, t.menuV3GroupSchema_closure0, t.menuV3ItemSchema_closure, t.menuV3ItemSchema_closure0, t.menuV3SkuSchema_closure, t.menuV3SkuSchema_closure0, t.menuV4CatalogItemSchema_closure, t.menuV4CatalogItemSchema_closure0, t.menuV4GroupSchema_closure, t.menuV4GroupSchema_closure0, t.menuV4ItemSchema_closure, t.menuV4ItemSchema_closure0, t.menuV4ItemInventoryBindingSchema_closure, t.menuV4ItemInventoryBindingSchema_closure0, t.menuV4SkuSchema_closure, t.menuV4SkuSchema_closure0, t.parentFlattenItemSchema_closure, t.parentFlattenItemSchema_closure0, t.paymentSchema_closure, t.paymentSchema_closure0, t.paymentTimePaymentSchema_closure, t.paymentTimePaymentSchema_closure0, t.purchaseOrderSchema_closure, t.purchaseOrderSchema_closure0, t.purchaseOrderDeliveryFulfillmentSchema_closure, t.purchaseOrderDeliveryFulfillmentSchema_closure0, t.purchaseOrderDeliveryFulfillmentSkuSchema_closure, t.purchaseOrderDeliveryFulfillmentSkuSchema_closure0, t.purchaseOrderDeliveryOrderSchema_closure, t.purchaseOrderDeliveryOrderSchema_closure0, t.purchaseOrderDeliveryOrderSkuSchema_closure, t.purchaseOrderDeliveryOrderSkuSchema_closure0, t.purchaseOrderItemSchema_closure, t.purchaseOrderItemSchema_closure0, t.recommendationCallSchema_closure, t.recommendationCallSchema_closure0, t.recordSchema_closure, t.recordSchema_closure0, t.refundBillSchema_closure, t.refundBillSchema_closure0, t.restaurantSchema_closure, t.restaurantSchema_closure0, t.restaurantFeatureSchema_closure, t.restaurantFeatureSchema_closure0, t.restaurantLocationSchema_closure, t.restaurantLocationSchema_closure0, t.reviewSchema_closure, t.reviewSchema_closure0, t.salePaymentSchema_closure, t.salePaymentSchema_closure0, t.saleTransactionSchema_closure, t.saleTransactionSchema_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);
10564
10563
  }();
10565
10564
  var b = {
@@ -10745,7 +10744,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
10745
10744
  };
10746
10745
  }();
10747
10746
  (function() {
10748
- var e = e0.makeConstList;
10747
+ var e = K.makeConstList;
10749
10748
  _.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) {
10750
10749
  var a = Object.prototype.toString.call(i);
10751
10750
  return a.substring(8, a.length - 1);
@@ -10762,7 +10761,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
10762
10761
  }
10763
10762
  }
10764
10763
  function s(d, c) {
10765
- return O.HTMLElement && d instanceof HTMLElement ? "HTMLElement" : a(d, c);
10764
+ return w.HTMLElement && d instanceof HTMLElement ? "HTMLElement" : a(d, c);
10766
10765
  }
10767
10766
  function o(d) {
10768
10767
  if (typeof window > "u" || typeof window[d] > "u") return null;
@@ -10847,7 +10846,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
10847
10846
  })(), function() {
10848
10847
  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$();
10849
10848
  }(), function() {
10850
- var e = e0.lazyFinal, n = e0.lazy;
10849
+ var e = K.lazyFinal, n = K.lazy;
10851
10850
  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({
10852
10851
  toString: function() {
10853
10852
  return "$receiver$";
@@ -10884,8 +10883,8 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
10884
10883
  return i.message;
10885
10884
  }
10886
10885
  }())), 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", () => {
10887
- var i, a, s = t.EnLocale$(_.StartOfWeek_1), o = t.EnLocale$(_.StartOfWeek_1), l = t.EnLocale$(_.StartOfWeek_1), D = t.EnLocale$(_.StartOfWeek_1), d = t.EnLocale$(_.StartOfWeek_1), c = t.EnLocale$(_.StartOfWeek_2), p = t.EnLocale$(_.StartOfWeek_2), y = t.EnLocale$(_.StartOfWeek_1), m = t.EnLocale$(_.StartOfWeek_1), g = t.EsLocale$(_.StartOfWeek_2), h = t.EsLocale$(_.StartOfWeek_2), A = t.EsLocale$(_.StartOfWeek_1), C = t.FrLocale$(_.StartOfWeek_2), F = t.FrLocale$(_.StartOfWeek_2), M = t.FrLocale$(_.StartOfWeek_1), x = t.ZhCnLocale$(_.StartOfWeek_1), R = t.ZhCnLocale$(_.StartOfWeek_1), L = t.ZhLocale$(_.StartOfWeek_1), w = t.ZhLocale$(_.StartOfWeek_1), v = t.DeLocale$(_.StartOfWeek_2), U = t.DeLocale$(_.StartOfWeek_2), Z = t.DeLocale$(_.StartOfWeek_2), f0 = t.DeLocale$(_.StartOfWeek_2), g0 = t.ItLocale$(_.StartOfWeek_2), o0 = t.ItLocale$(_.StartOfWeek_2), h0 = t.ArLyLocale$(!0, _.StartOfWeek_0), F0 = t.ArLyLocale$(!1, _.StartOfWeek_0), x0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_1), L0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_1), C0 = t.ArSaMaDzKwTnLocale$(!0, _.StartOfWeek_1), M0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_0), O0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_0);
10888
- return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), i = t.PtLocale$(_.StartOfWeek_2), a = t.PtLocale$(_.StartOfWeek_1), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.LinkedHashMap_LinkedHashMap$_literal(["en", s, "en_us", o, "en_sg", l, "en_au", D, "en_ca", d, "en_gb", c, "en_ie", p, "en_il", y, "en_nz", m, "es", g, "es_do", h, "es_us", A, "fr", C, "fr_ch", F, "fr_ca", M, "zh", x, "zh_cn", R, "zh_hk", L, "zh_tw", w, "de", v, "de_de", U, "de_at", Z, "de_ch", f0, "it", g0, "it_ch", o0, "ar", h0, "ar_ly", F0, "ar_dz", x0, "ar_kw", L0, "ar_sa", C0, "ar_ma", M0, "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"));
10886
+ var i, a, s = t.EnLocale$(_.StartOfWeek_1), o = t.EnLocale$(_.StartOfWeek_1), l = t.EnLocale$(_.StartOfWeek_1), D = t.EnLocale$(_.StartOfWeek_1), d = t.EnLocale$(_.StartOfWeek_1), c = t.EnLocale$(_.StartOfWeek_2), p = t.EnLocale$(_.StartOfWeek_2), y = t.EnLocale$(_.StartOfWeek_1), m = t.EnLocale$(_.StartOfWeek_1), g = t.EsLocale$(_.StartOfWeek_2), h = t.EsLocale$(_.StartOfWeek_2), E = t.EsLocale$(_.StartOfWeek_1), C = t.FrLocale$(_.StartOfWeek_2), 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), 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), g0 = 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), T0 = t.ArSaMaDzKwTnLocale$(!0, _.StartOfWeek_1), I0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_0), x0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_0);
10887
+ return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), i = t.PtLocale$(_.StartOfWeek_2), a = t.PtLocale$(_.StartOfWeek_1), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.LinkedHashMap_LinkedHashMap$_literal(["en", s, "en_us", o, "en_sg", l, "en_au", D, "en_ca", d, "en_gb", c, "en_ie", p, "en_il", y, "en_nz", m, "es", g, "es_do", h, "es_us", E, "fr", C, "fr_ch", I, "fr_ca", M, "zh", x, "zh_cn", R, "zh_hk", L, "zh_tw", O, "de", v, "de_de", H, "de_at", j, "de_ch", c0, "it", g0, "it_ch", a0, "ar", h0, "ar_ly", b0, "ar_dz", M0, "ar_kw", R0, "ar_sa", T0, "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"));
10889
10888
  }), e(S, "addonFlattenItemSchema", "$get$addonFlattenItemSchema", () => {
10890
10889
  var i = "createdAt", a = null, s = t.Source_Source$couchdb("", ""), o = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], f.JSArray_Permission), i);
10891
10890
  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);
@@ -11309,7 +11308,7 @@ from member_store_purchases
11309
11308
  (function() {
11310
11309
  var e = function(l) {
11311
11310
  var D = {};
11312
- return D[l] = 1, Object.keys(e0.convertToFastObject(D))[0];
11311
+ return D[l] = 1, Object.keys(K.convertToFastObject(D))[0];
11313
11312
  };
11314
11313
  b.getIsolateTag = function(l) {
11315
11314
  return e("___dart_" + l + b.isolateTag);
@@ -11322,7 +11321,7 @@ from member_store_purchases
11322
11321
  }
11323
11322
  }
11324
11323
  b.dispatchPropertyName = b.getIsolateTag("dispatch_record");
11325
- })(), 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";
11324
+ })(), K.setOrUpdateInterceptorsByTag({ ArrayBuffer: u.Interceptor, DataView: t.NativeTypedData, ArrayBufferView: t.NativeTypedData, Uint16Array: t.NativeUint16List, Uint32Array: t.NativeUint32List, Uint8Array: t.NativeUint8List }), K.setOrUpdateLeafTags({ ArrayBuffer: !0, DataView: !0, ArrayBufferView: !1, Uint16Array: !0, Uint32Array: !0, Uint8Array: !1 }), t.NativeTypedArray.$nativeSuperclassTag = "ArrayBufferView", t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.$nativeSuperclassTag = "ArrayBufferView", t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.$nativeSuperclassTag = "ArrayBufferView", t.NativeTypedArrayOfInt.$nativeSuperclassTag = "ArrayBufferView";
11326
11325
  }(), Function.prototype.call$1 = function(r) {
11327
11326
  return this(r);
11328
11327
  }, Function.prototype.call$0 = function() {
@@ -11337,7 +11336,7 @@ from member_store_purchases
11337
11336
  return this(r, e, n, i, a, s, o, l);
11338
11337
  }, Function.prototype.call$1$0 = function() {
11339
11338
  return this();
11340
- }, l0($), function(r) {
11339
+ }, _0($), function(r) {
11341
11340
  if (typeof document > "u") {
11342
11341
  r(null);
11343
11342
  return;
@@ -11360,22 +11359,22 @@ from member_store_purchases
11360
11359
  typeof dartMainRunner == "function" ? dartMainRunner(e, []) : e([]);
11361
11360
  });
11362
11361
  })();
11363
- })(Ee);
11364
- const Ye = Ee;
11365
- var Ge = Ye, Te = {};
11366
- (function(E) {
11367
- E.load = function(I, O) {
11362
+ })(me);
11363
+ const Ne = me;
11364
+ var ke = Ne, ge = {};
11365
+ (function(A) {
11366
+ A.load = function(F, w) {
11368
11367
  var P = typeof process < "u" && (process.versions || {}).hasOwnProperty("node"), B = P ? Object.create(globalThis) : globalThis;
11369
11368
  if (B.scheduleImmediate = typeof setImmediate < "u" ? function(J) {
11370
11369
  setImmediate(J);
11371
11370
  } : function(J) {
11372
11371
  setTimeout(J, 0);
11373
- }, B.exports = O || E, typeof process < "u" && (B.process = process), typeof __dirname < "u" && (B.__dirname = __dirname), typeof __filename < "u" && (B.__filename = __filename), typeof Buffer < "u" && (B.Buffer = Buffer), P) {
11374
- var N = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : Ae)("url");
11372
+ }, B.exports = w || A, typeof process < "u" && (B.process = process), typeof __dirname < "u" && (B.__dirname = __dirname), typeof __filename < "u" && (B.__filename = __filename), typeof Buffer < "u" && (B.Buffer = Buffer), P) {
11373
+ var k = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : ye)("url");
11375
11374
  Object.defineProperty(B, "location", {
11376
11375
  value: {
11377
11376
  get href() {
11378
- return N.pathToFileURL ? N.pathToFileURL(process.cwd()).href + "/" : "file://" + function() {
11377
+ return k.pathToFileURL ? k.pathToFileURL(process.cwd()).href + "/" : "file://" + function() {
11379
11378
  var J = process.cwd();
11380
11379
  return process.platform != "win32" ? J : "/" + J.replace(/\\/g, "/");
11381
11380
  }() + "/";
@@ -11385,48 +11384,48 @@ var Ge = Ye, Te = {};
11385
11384
  function J() {
11386
11385
  try {
11387
11386
  throw new Error();
11388
- } catch (t0) {
11389
- var q = t0.stack, H = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), Y = null;
11387
+ } catch (r0) {
11388
+ var U = r0.stack, N = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), V = null;
11390
11389
  do {
11391
- var X = H.exec(q);
11392
- X != null && (Y = X);
11393
- } while (X != null);
11394
- return Y[1];
11390
+ var z = N.exec(U);
11391
+ z != null && (V = z);
11392
+ } while (z != null);
11393
+ return V[1];
11395
11394
  }
11396
11395
  }
11397
- var Q = null;
11396
+ var q = null;
11398
11397
  Object.defineProperty(B, "document", {
11399
11398
  value: {
11400
11399
  get currentScript() {
11401
- return Q == null && (Q = { src: J() }), Q;
11400
+ return q == null && (q = { src: J() }), q;
11402
11401
  }
11403
11402
  }
11404
11403
  });
11405
- }(), B.dartDeferredLibraryLoader = function(J, Q, q) {
11404
+ }(), B.dartDeferredLibraryLoader = function(J, q, U) {
11406
11405
  try {
11407
- load(J), Q();
11408
- } catch (H) {
11409
- q(H);
11406
+ load(J), q();
11407
+ } catch (N) {
11408
+ U(N);
11410
11409
  }
11411
11410
  };
11412
11411
  }
11413
11412
  (function() {
11414
- function Q(e, n) {
11413
+ function q(e, n) {
11415
11414
  for (var i = Object.keys(e), a = 0; a < i.length; a++) {
11416
11415
  var s = i[a];
11417
11416
  n[s] = e[s];
11418
11417
  }
11419
11418
  }
11420
- function q(e, n) {
11419
+ function U(e, n) {
11421
11420
  for (var i = Object.keys(e), a = 0; a < i.length; a++) {
11422
11421
  var s = i[a];
11423
11422
  n.hasOwnProperty(s) || (n[s] = e[s]);
11424
11423
  }
11425
11424
  }
11426
- function H(e, n) {
11425
+ function N(e, n) {
11427
11426
  Object.assign(n, e);
11428
11427
  }
11429
- var Y = function() {
11428
+ var V = function() {
11430
11429
  var e = function() {
11431
11430
  };
11432
11431
  e.prototype = { p: {} };
@@ -11445,27 +11444,27 @@ var Ge = Ye, Te = {};
11445
11444
  }
11446
11445
  return !1;
11447
11446
  }();
11448
- function X(e, n) {
11447
+ function z(e, n) {
11449
11448
  if (e.prototype.constructor = e, e.prototype["$is" + e.name] = e, n != null) {
11450
- if (Y) {
11449
+ if (V) {
11451
11450
  e.prototype.__proto__ = n.prototype;
11452
11451
  return;
11453
11452
  }
11454
11453
  var i = Object.create(n.prototype);
11455
- Q(e.prototype, i), e.prototype = i;
11454
+ q(e.prototype, i), e.prototype = i;
11456
11455
  }
11457
11456
  }
11458
- function t0(e, n) {
11457
+ function r0(e, n) {
11459
11458
  for (var i = 0; i < n.length; i++)
11460
- X(n[i], e);
11459
+ z(n[i], e);
11461
11460
  }
11462
- function G(e, n) {
11463
- H(n.prototype, e.prototype), e.prototype.constructor = e;
11461
+ function W(e, n) {
11462
+ N(n.prototype, e.prototype), e.prototype.constructor = e;
11464
11463
  }
11465
- function j(e, n) {
11466
- q(n.prototype, e.prototype), e.prototype.constructor = e;
11464
+ function Z(e, n) {
11465
+ U(n.prototype, e.prototype), e.prototype.constructor = e;
11467
11466
  }
11468
- function k(e, n, i, a) {
11467
+ function X(e, n, i, a) {
11469
11468
  var s = e;
11470
11469
  e[n] = s, e[i] = function() {
11471
11470
  e[i] = function() {
@@ -11482,7 +11481,7 @@ var Ge = Ye, Te = {};
11482
11481
  return o;
11483
11482
  };
11484
11483
  }
11485
- function K(e, n, i, a) {
11484
+ function u0(e, n, i, a) {
11486
11485
  var s = e;
11487
11486
  e[n] = s, e[i] = function() {
11488
11487
  return e[n] === s && (e[n] = a()), e[i] = function() {
@@ -11490,7 +11489,7 @@ var Ge = Ye, Te = {};
11490
11489
  }, e[n];
11491
11490
  };
11492
11491
  }
11493
- function a0(e, n, i, a) {
11492
+ function o0(e, n, i, a) {
11494
11493
  var s = e;
11495
11494
  e[n] = s, e[i] = function() {
11496
11495
  if (e[n] === s) {
@@ -11503,13 +11502,13 @@ var Ge = Ye, Te = {};
11503
11502
  }, l;
11504
11503
  };
11505
11504
  }
11506
- function n0(e) {
11505
+ function s0(e) {
11507
11506
  return e.immutable$list = Array, e.fixed$length = Array, e;
11508
11507
  }
11509
- function l0(e) {
11508
+ function _0(e) {
11510
11509
  return e;
11511
11510
  }
11512
- function c0(e) {
11511
+ function f0(e) {
11513
11512
  for (var n = 0; n < e.length; ++n)
11514
11513
  e[n];
11515
11514
  }
@@ -11521,59 +11520,59 @@ var Ge = Ye, Te = {};
11521
11520
  return i === null && (i = u.closureFromTearOff(n)), new i(this, null);
11522
11521
  };
11523
11522
  }
11524
- function V(e) {
11523
+ function Q(e) {
11525
11524
  var n = null;
11526
11525
  return function() {
11527
11526
  return n === null && (n = u.closureFromTearOff(e).prototype), n;
11528
11527
  };
11529
11528
  }
11530
- var z = 0;
11531
- function u0(e, n, i, a, s, o, l, D, d, c) {
11532
- return typeof D == "number" && (D += z), { co: e, iS: n, iI: i, rC: a, dV: s, cs: o, fs: l, fT: D, aI: d || 0, nDA: c };
11529
+ var Y = 0;
11530
+ function n0(e, n, i, a, s, o, l, D, d, c) {
11531
+ return typeof D == "number" && (D += Y), { co: e, iS: n, iI: i, rC: a, dV: s, cs: o, fs: l, fT: D, aI: d || 0, nDA: c };
11533
11532
  }
11534
- function r0(e, n, i, a, s, o, l, D) {
11535
- var d = u0(e, !0, !1, i, a, s, o, l, D, !1), c = V(d);
11533
+ function e0(e, n, i, a, s, o, l, D) {
11534
+ var d = n0(e, !0, !1, i, a, s, o, l, D, !1), c = Q(d);
11536
11535
  e[n] = c;
11537
11536
  }
11538
- function s0(e, n, i, a, s, o, l, D, d, c) {
11537
+ function i0(e, n, i, a, s, o, l, D, d, c) {
11539
11538
  i = !!i;
11540
- var p = u0(e, !1, i, a, s, o, l, D, d, !!c), y = p0(i, p);
11539
+ var p = n0(e, !1, i, a, s, o, l, D, d, !!c), y = p0(i, p);
11541
11540
  e[n] = y;
11542
11541
  }
11543
- function W(e) {
11542
+ function G(e) {
11544
11543
  var n = T.interceptorsByTag;
11545
11544
  if (!n) {
11546
11545
  T.interceptorsByTag = e;
11547
11546
  return;
11548
11547
  }
11549
- Q(e, n);
11548
+ q(e, n);
11550
11549
  }
11551
- function i0(e) {
11550
+ function t0(e) {
11552
11551
  var n = T.leafTags;
11553
11552
  if (!n) {
11554
11553
  T.leafTags = e;
11555
11554
  return;
11556
11555
  }
11557
- Q(e, n);
11556
+ q(e, n);
11558
11557
  }
11559
- function D0(e) {
11558
+ function l0(e) {
11560
11559
  var n = T.types, i = n.length;
11561
11560
  return n.push.apply(n, e), i;
11562
11561
  }
11563
- function e0(e, n) {
11564
- return Q(n, e), e;
11562
+ function K(e, n) {
11563
+ return q(n, e), e;
11565
11564
  }
11566
11565
  var t = function() {
11567
11566
  var e = function(i, a, s, o, l) {
11568
11567
  return function(D, d, c, p) {
11569
- return s0(D, d, i, a, s, o, [c], p, l, !1);
11568
+ return i0(D, d, i, a, s, o, [c], p, l, !1);
11570
11569
  };
11571
11570
  }, n = function(i, a, s, o) {
11572
11571
  return function(l, D, d, c) {
11573
- return r0(l, D, i, a, s, [d], c, o);
11572
+ return e0(l, D, i, a, s, [d], c, o);
11574
11573
  };
11575
11574
  };
11576
- return { inherit: X, inheritMany: t0, mixin: G, mixinHard: j, installStaticTearOff: r0, installInstanceTearOff: s0, _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: n0, lazy: K, lazyFinal: a0, lazyOld: k, updateHolder: e0, convertToFastObject: l0, updateTypes: D0, setOrUpdateInterceptorsByTag: W, setOrUpdateLeafTags: i0 };
11575
+ return { inherit: z, inheritMany: r0, mixin: W, mixinHard: Z, installStaticTearOff: e0, 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: o0, lazyOld: X, updateHolder: K, convertToFastObject: _0, updateTypes: l0, setOrUpdateInterceptorsByTag: G, setOrUpdateLeafTags: t0 };
11577
11576
  }(), u = {
11578
11577
  JS_CONST: function() {
11579
11578
  },
@@ -11623,15 +11622,15 @@ var Ge = Ye, Te = {};
11623
11622
  }
11624
11623
  },
11625
11624
  Sort__dualPivotQuicksort(e, n, i, a) {
11626
- var s, o, l, D, d, c, p, y, m, g, h = $.JSInt_methods._tdivFast$1(i - n + 1, 6), A = n + h, C = i - h, F = $.JSInt_methods._tdivFast$1(n + i, 2), M = F - h, x = F + h, R = _.getInterceptor$asx(e), L = R.$index(e, A), w = R.$index(e, M), v = R.$index(e, F), U = R.$index(e, x), Z = R.$index(e, C);
11627
- if (a.call$2(L, w) > 0 && (s = w, w = L, L = s), a.call$2(U, Z) > 0 && (s = Z, Z = U, U = s), a.call$2(L, v) > 0 && (s = v, v = L, L = s), a.call$2(w, v) > 0 && (s = v, v = w, w = s), a.call$2(L, U) > 0 && (s = U, U = L, L = s), a.call$2(v, U) > 0 && (s = U, U = v, v = s), a.call$2(w, Z) > 0 && (s = Z, Z = w, w = s), a.call$2(w, v) > 0 && (s = v, v = w, w = s), a.call$2(U, Z) > 0 && (s = Z, Z = U, U = s), R.$indexSet(e, A, L), R.$indexSet(e, F, v), R.$indexSet(e, C, Z), R.$indexSet(e, M, R.$index(e, n)), R.$indexSet(e, x, R.$index(e, i)), o = n + 1, l = i - 1, _.$eq$(a.call$2(w, U), 0)) {
11625
+ var s, o, l, D, d, c, p, y, m, g, h = $.JSInt_methods._tdivFast$1(i - n + 1, 6), E = n + h, C = i - h, I = $.JSInt_methods._tdivFast$1(n + i, 2), M = I - h, x = I + h, R = _.getInterceptor$asx(e), L = R.$index(e, E), O = R.$index(e, M), v = R.$index(e, I), H = R.$index(e, x), j = R.$index(e, C);
11626
+ 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), R.$indexSet(e, E, L), R.$indexSet(e, I, v), R.$indexSet(e, C, j), R.$indexSet(e, M, R.$index(e, n)), R.$indexSet(e, x, R.$index(e, i)), o = n + 1, l = i - 1, _.$eq$(a.call$2(O, H), 0)) {
11628
11627
  for (D = o; D <= l; ++D)
11629
- if (d = R.$index(e, D), c = a.call$2(d, w), c !== 0)
11628
+ if (d = R.$index(e, D), c = a.call$2(d, O), c !== 0)
11630
11629
  if (c < 0)
11631
11630
  D !== o && (R.$indexSet(e, D, R.$index(e, o)), R.$indexSet(e, o, d)), ++o;
11632
11631
  else
11633
11632
  for (; ; )
11634
- if (c = a.call$2(R.$index(e, l), w), c > 0) {
11633
+ if (c = a.call$2(R.$index(e, l), O), c > 0) {
11635
11634
  --l;
11636
11635
  continue;
11637
11636
  } else if (p = l - 1, c < 0) {
@@ -11644,37 +11643,37 @@ var Ge = Ye, Te = {};
11644
11643
  m = !0;
11645
11644
  } else {
11646
11645
  for (D = o; D <= l; ++D)
11647
- if (d = R.$index(e, D), a.call$2(d, w) < 0)
11646
+ if (d = R.$index(e, D), a.call$2(d, O) < 0)
11648
11647
  D !== o && (R.$indexSet(e, D, R.$index(e, o)), R.$indexSet(e, o, d)), ++o;
11649
- else if (a.call$2(d, U) > 0)
11648
+ else if (a.call$2(d, H) > 0)
11650
11649
  for (; ; )
11651
- if (a.call$2(R.$index(e, l), U) > 0) {
11650
+ if (a.call$2(R.$index(e, l), H) > 0) {
11652
11651
  if (--l, l < D)
11653
11652
  break;
11654
11653
  continue;
11655
11654
  } else {
11656
- 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;
11655
+ p = l - 1, a.call$2(R.$index(e, l), O) < 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;
11657
11656
  break;
11658
11657
  }
11659
11658
  m = !1;
11660
11659
  }
11661
- if (g = o - 1, R.$indexSet(e, n, R.$index(e, g)), R.$indexSet(e, g, w), g = l + 1, R.$indexSet(e, i, R.$index(e, g)), R.$indexSet(e, g, U), u.Sort__doSort(e, n, o - 2, a), u.Sort__doSort(e, l + 2, i, a), !m)
11662
- if (o < A && l > C) {
11663
- for (; _.$eq$(a.call$2(R.$index(e, o), w), 0); )
11660
+ if (g = o - 1, R.$indexSet(e, n, R.$index(e, g)), R.$indexSet(e, g, O), g = l + 1, R.$indexSet(e, i, R.$index(e, g)), R.$indexSet(e, g, H), u.Sort__doSort(e, n, o - 2, a), u.Sort__doSort(e, l + 2, i, a), !m)
11661
+ if (o < E && l > C) {
11662
+ for (; _.$eq$(a.call$2(R.$index(e, o), O), 0); )
11664
11663
  ++o;
11665
- for (; _.$eq$(a.call$2(R.$index(e, l), U), 0); )
11664
+ for (; _.$eq$(a.call$2(R.$index(e, l), H), 0); )
11666
11665
  --l;
11667
11666
  for (D = o; D <= l; ++D)
11668
- if (d = R.$index(e, D), a.call$2(d, w) === 0)
11667
+ if (d = R.$index(e, D), a.call$2(d, O) === 0)
11669
11668
  D !== o && (R.$indexSet(e, D, R.$index(e, o)), R.$indexSet(e, o, d)), ++o;
11670
- else if (a.call$2(d, U) === 0)
11669
+ else if (a.call$2(d, H) === 0)
11671
11670
  for (; ; )
11672
- if (a.call$2(R.$index(e, l), U) === 0) {
11671
+ if (a.call$2(R.$index(e, l), H) === 0) {
11673
11672
  if (--l, l < D)
11674
11673
  break;
11675
11674
  continue;
11676
11675
  } else {
11677
- 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;
11676
+ p = l - 1, a.call$2(R.$index(e, l), O) < 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;
11678
11677
  break;
11679
11678
  }
11680
11679
  u.Sort__doSort(e, o, l, a);
@@ -11916,34 +11915,34 @@ var Ge = Ye, Te = {};
11916
11915
  return u.Primitives__generalApplyFunction(e, n, i);
11917
11916
  },
11918
11917
  Primitives__generalApplyFunction(e, n, i) {
11919
- var a, s, o, l, D, d, c, p, y, m, g, h, A = Array.isArray(n) ? n : u.List_List$of(n, !0, r.dynamic), C = A.length, F = e.$requiredArgCount;
11920
- if (C < F)
11921
- return u.Primitives_functionNoSuchMethod(e, A, i);
11918
+ var a, s, o, l, D, d, c, p, y, m, g, h, E = Array.isArray(n) ? n : u.List_List$of(n, !0, r.dynamic), C = E.length, I = e.$requiredArgCount;
11919
+ if (C < I)
11920
+ return u.Primitives_functionNoSuchMethod(e, E, i);
11922
11921
  if (a = e.$defaultValues, s = a == null, o = s ? null : a(), l = _.getInterceptor$(e), D = l["call*"], typeof D == "string" && (D = l[D]), s)
11923
- return i != null && i.__js_helper$_length !== 0 ? u.Primitives_functionNoSuchMethod(e, A, i) : C === F ? D.apply(e, A) : u.Primitives_functionNoSuchMethod(e, A, i);
11922
+ return i != null && i.__js_helper$_length !== 0 ? u.Primitives_functionNoSuchMethod(e, E, i) : C === I ? D.apply(e, E) : u.Primitives_functionNoSuchMethod(e, E, i);
11924
11923
  if (Array.isArray(o))
11925
- return i != null && i.__js_helper$_length !== 0 ? u.Primitives_functionNoSuchMethod(e, A, i) : (d = F + o.length, C > d ? u.Primitives_functionNoSuchMethod(e, A, null) : (C < d && (c = o.slice(C - F), A === n && (A = u.List_List$of(A, !0, r.dynamic)), $.JSArray_methods.addAll$1(A, c)), D.apply(e, A)));
11926
- if (C > F)
11927
- return u.Primitives_functionNoSuchMethod(e, A, i);
11928
- if (A === n && (A = u.List_List$of(A, !0, r.dynamic)), p = Object.keys(o), i == null)
11924
+ return i != null && i.__js_helper$_length !== 0 ? u.Primitives_functionNoSuchMethod(e, E, i) : (d = I + o.length, C > d ? u.Primitives_functionNoSuchMethod(e, E, null) : (C < d && (c = o.slice(C - I), E === n && (E = u.List_List$of(E, !0, r.dynamic)), $.JSArray_methods.addAll$1(E, c)), D.apply(e, E)));
11925
+ if (C > I)
11926
+ return u.Primitives_functionNoSuchMethod(e, E, i);
11927
+ if (E === n && (E = u.List_List$of(E, !0, r.dynamic)), p = Object.keys(o), i == null)
11929
11928
  for (s = p.length, y = 0; y < p.length; p.length === s || (0, u.throwConcurrentModificationError)(p), ++y) {
11930
11929
  if (m = o[p[y]], $.C__Required === m)
11931
- return u.Primitives_functionNoSuchMethod(e, A, i);
11932
- $.JSArray_methods.add$1(A, m);
11930
+ return u.Primitives_functionNoSuchMethod(e, E, i);
11931
+ $.JSArray_methods.add$1(E, m);
11933
11932
  }
11934
11933
  else {
11935
11934
  for (s = p.length, g = 0, y = 0; y < p.length; p.length === s || (0, u.throwConcurrentModificationError)(p), ++y)
11936
11935
  if (h = p[y], i.containsKey$1(h))
11937
- ++g, $.JSArray_methods.add$1(A, i.$index(0, h));
11936
+ ++g, $.JSArray_methods.add$1(E, i.$index(0, h));
11938
11937
  else {
11939
11938
  if (m = o[h], $.C__Required === m)
11940
- return u.Primitives_functionNoSuchMethod(e, A, i);
11941
- $.JSArray_methods.add$1(A, m);
11939
+ return u.Primitives_functionNoSuchMethod(e, E, i);
11940
+ $.JSArray_methods.add$1(E, m);
11942
11941
  }
11943
11942
  if (g !== i.__js_helper$_length)
11944
- return u.Primitives_functionNoSuchMethod(e, A, i);
11943
+ return u.Primitives_functionNoSuchMethod(e, E, i);
11945
11944
  }
11946
- return D.apply(e, A);
11945
+ return D.apply(e, E);
11947
11946
  },
11948
11947
  diagnoseIndexError(e, n) {
11949
11948
  var i, a = "index";
@@ -12002,24 +12001,24 @@ var Ge = Ye, Te = {};
12002
12001
  return r.Error._is(n) && n.$thrownJsError == null && (n.$thrownJsError = e), n;
12003
12002
  },
12004
12003
  _unwrapNonDartException(e) {
12005
- var n, i, a, s, o, l, D, d, c, p, y, m, g, h, A = null;
12004
+ var n, i, a, s, o, l, D, d, c, p, y, m, g, h, E = null;
12006
12005
  if (!("message" in e))
12007
12006
  return e;
12008
12007
  if (n = e.message, "number" in e && typeof e.number == "number" && (i = e.number, a = i & 65535, ($.JSInt_methods._shrOtherPositive$1(i, 16) & 8191) === 10))
12009
12008
  switch (a) {
12010
12009
  case 438:
12011
- return u.saveStackTrace(e, u.JsNoSuchMethodError$(u.S(n) + " (Error " + a + ")", A));
12010
+ return u.saveStackTrace(e, u.JsNoSuchMethodError$(u.S(n) + " (Error " + a + ")", E));
12012
12011
  case 445:
12013
12012
  case 5007:
12014
- return s = u.S(n), u.saveStackTrace(e, new u.NullError(s + " (Error " + a + ")", A));
12013
+ return s = u.S(n), u.saveStackTrace(e, new u.NullError(s + " (Error " + a + ")", E));
12015
12014
  }
12016
- return e instanceof TypeError ? (o = b.$get$TypeErrorDecoder_noSuchMethodPattern(), l = b.$get$TypeErrorDecoder_notClosurePattern(), D = b.$get$TypeErrorDecoder_nullCallPattern(), d = b.$get$TypeErrorDecoder_nullLiteralCallPattern(), c = b.$get$TypeErrorDecoder_undefinedCallPattern(), p = b.$get$TypeErrorDecoder_undefinedLiteralCallPattern(), y = b.$get$TypeErrorDecoder_nullPropertyPattern(), b.$get$TypeErrorDecoder_nullLiteralPropertyPattern(), m = b.$get$TypeErrorDecoder_undefinedPropertyPattern(), g = b.$get$TypeErrorDecoder_undefinedLiteralPropertyPattern(), h = o.matchTypeError$1(n), h != null ? u.saveStackTrace(e, u.JsNoSuchMethodError$(n, h)) : (h = l.matchTypeError$1(n), h != null ? (h.method = "call", u.saveStackTrace(e, u.JsNoSuchMethodError$(n, h))) : (h = D.matchTypeError$1(n), h == null ? (h = d.matchTypeError$1(n), h == null ? (h = c.matchTypeError$1(n), h == null ? (h = p.matchTypeError$1(n), h == null ? (h = y.matchTypeError$1(n), h == null ? (h = d.matchTypeError$1(n), h == null ? (h = m.matchTypeError$1(n), h == null ? (h = g.matchTypeError$1(n), s = h != null) : s = !0) : s = !0) : s = !0) : s = !0) : s = !0) : s = !0) : s = !0, s ? u.saveStackTrace(e, new u.NullError(n, h == null ? A : h.method)) : u.saveStackTrace(e, new u.UnknownJsTypeError(typeof n == "string" ? n : ""))))) : e instanceof RangeError ? typeof n == "string" && n.indexOf("call stack") !== -1 ? new u.StackOverflowError() : (n = function(C) {
12015
+ return e instanceof TypeError ? (o = b.$get$TypeErrorDecoder_noSuchMethodPattern(), l = b.$get$TypeErrorDecoder_notClosurePattern(), D = b.$get$TypeErrorDecoder_nullCallPattern(), d = b.$get$TypeErrorDecoder_nullLiteralCallPattern(), c = b.$get$TypeErrorDecoder_undefinedCallPattern(), p = b.$get$TypeErrorDecoder_undefinedLiteralCallPattern(), y = b.$get$TypeErrorDecoder_nullPropertyPattern(), b.$get$TypeErrorDecoder_nullLiteralPropertyPattern(), m = b.$get$TypeErrorDecoder_undefinedPropertyPattern(), g = b.$get$TypeErrorDecoder_undefinedLiteralPropertyPattern(), h = o.matchTypeError$1(n), h != null ? u.saveStackTrace(e, u.JsNoSuchMethodError$(n, h)) : (h = l.matchTypeError$1(n), h != null ? (h.method = "call", u.saveStackTrace(e, u.JsNoSuchMethodError$(n, h))) : (h = D.matchTypeError$1(n), h == null ? (h = d.matchTypeError$1(n), h == null ? (h = c.matchTypeError$1(n), h == null ? (h = p.matchTypeError$1(n), h == null ? (h = y.matchTypeError$1(n), h == null ? (h = d.matchTypeError$1(n), h == null ? (h = m.matchTypeError$1(n), h == null ? (h = g.matchTypeError$1(n), s = h != null) : s = !0) : s = !0) : s = !0) : s = !0) : s = !0) : s = !0) : s = !0, s ? u.saveStackTrace(e, new u.NullError(n, h == null ? E : h.method)) : u.saveStackTrace(e, new u.UnknownJsTypeError(typeof n == "string" ? n : ""))))) : e instanceof RangeError ? typeof n == "string" && n.indexOf("call stack") !== -1 ? new u.StackOverflowError() : (n = function(C) {
12017
12016
  try {
12018
12017
  return String(C);
12019
12018
  } catch {
12020
12019
  }
12021
12020
  return null;
12022
- }(e), u.saveStackTrace(e, new u.ArgumentError(!1, A, A, typeof n == "string" ? n.replace(/^RangeError:\s*/, "") : n))) : typeof InternalError == "function" && e instanceof InternalError && typeof n == "string" && n === "too much recursion" ? new u.StackOverflowError() : e;
12021
+ }(e), u.saveStackTrace(e, new u.ArgumentError(!1, E, E, typeof n == "string" ? n.replace(/^RangeError:\s*/, "") : n))) : typeof InternalError == "function" && e instanceof InternalError && typeof n == "string" && n === "too much recursion" ? new u.StackOverflowError() : e;
12023
12022
  },
12024
12023
  objectHashCode(e) {
12025
12024
  return e == null || typeof e != "object" ? _.get$hashCode$(e) : u.Primitives_objectHashCode(e);
@@ -12031,13 +12030,13 @@ var Ge = Ye, Te = {};
12031
12030
  return n;
12032
12031
  },
12033
12032
  Closure_fromTearOff(e) {
12034
- var n, i, a, s, o, l, D, d, c, p, y = e.co, m = e.iS, g = e.iI, h = e.nDA, A = e.aI, C = e.fs, F = e.cs, M = C[0], x = F[0], R = y[M], L = e.fT;
12033
+ var n, i, a, s, o, l, D, d, c, p, y = e.co, m = e.iS, g = e.iI, h = e.nDA, E = e.aI, C = e.fs, I = e.cs, M = C[0], x = I[0], R = y[M], L = e.fT;
12035
12034
  for (L.toString, n = Object.create(m ? new u.StaticClosure().constructor.prototype : new u.BoundClosure(null, null).constructor.prototype), n.$initialize = n.constructor, m ? i = function() {
12036
12035
  this.$initialize();
12037
- } : i = function(v, U) {
12038
- this.$initialize(v, U);
12036
+ } : i = function(v, H) {
12037
+ this.$initialize(v, H);
12039
12038
  }, n.constructor = i, i.prototype = n, n.$_name = M, n.$_target = R, a = !m, a ? s = u.Closure_forwardCallTo(M, R, g, h) : (n.$static_name = M, s = R), n.$signature = u.Closure__computeSignatureFunctionNewRti(L, m, g), n[x] = s, o = s, l = 1; l < C.length; ++l)
12040
- D = C[l], typeof D == "string" ? (d = y[D], c = D, D = d) : c = "", p = F[l], p != null && (a && (D = u.Closure_forwardCallTo(c, D, g, h)), n[p] = D), l === A && (o = D);
12039
+ 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, g, h)), n[p] = D), l === E && (o = D);
12041
12040
  return n["call*"] = o, n.$requiredArgCount = e.rC, n.$defaultValues = e.dV, i;
12042
12041
  },
12043
12042
  Closure__computeSignatureFunctionNewRti(e, n, i) {
@@ -12484,7 +12483,7 @@ var Ge = Ye, Te = {};
12484
12483
  return u._Universe_eval(T.typeUniverse, e, !1);
12485
12484
  },
12486
12485
  _substitute(e, n, i, a) {
12487
- var s, o, l, D, d, c, p, y, m, g, h, A, C, F, M, x, R = n._kind;
12486
+ var s, o, l, D, d, c, p, y, m, g, h, E, C, I, M, x, R = n._kind;
12488
12487
  switch (R) {
12489
12488
  case 5:
12490
12489
  case 1:
@@ -12503,9 +12502,9 @@ var Ge = Ye, Te = {};
12503
12502
  case 10:
12504
12503
  return d = n._primary, c = u._substitute(e, d, i, a), p = n._rest, y = u._substituteArray(e, p, i, a), c === d && y === p ? n : u._Universe__lookupBindingRti(e, c, y);
12505
12504
  case 12:
12506
- return m = n._primary, g = u._substitute(e, m, i, a), h = n._rest, A = u._substituteFunctionParameters(e, h, i, a), g === m && A === h ? n : u._Universe__lookupFunctionRti(e, g, A);
12505
+ return m = n._primary, g = u._substitute(e, m, i, a), h = n._rest, E = u._substituteFunctionParameters(e, h, i, a), g === m && E === h ? n : u._Universe__lookupFunctionRti(e, g, E);
12507
12506
  case 13:
12508
- return C = n._rest, a += C.length, F = u._substituteArray(e, C, i, a), d = n._primary, c = u._substitute(e, d, i, a), F === C && c === d ? n : u._Universe__lookupGenericFunctionRti(e, c, F, !0);
12507
+ 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);
12509
12508
  case 14:
12510
12509
  return M = n._primary, M < a || (x = i[M - a], x == null) ? n : x;
12511
12510
  default:
@@ -12771,28 +12770,28 @@ var Ge = Ye, Te = {};
12771
12770
  return o + "})";
12772
12771
  },
12773
12772
  _functionRtiToString(e, n, i) {
12774
- var a, s, o, l, D, d, c, p, y, m, g, h, A, C, F, M, x, R, L, w, v, U = ", ";
12773
+ var a, s, o, l, D, d, c, p, y, m, g, h, E, C, I, M, x, R, L, O, v, H = ", ";
12775
12774
  if (i != null) {
12776
12775
  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)
12777
12776
  n.push("T" + (o + l));
12778
- for (D = r.nullable_Object, d = r.legacy_Object, c = "<", p = "", l = 0; l < a; ++l, p = U)
12777
+ for (D = r.nullable_Object, d = r.legacy_Object, c = "<", p = "", l = 0; l < a; ++l, p = H)
12779
12778
  c = $.JSString_methods.$add(c + p, n[n.length - 1 - l]), y = i[l], m = y._kind, m === 2 || m === 3 || m === 4 || m === 5 || y === D ? g = !0 : y !== d ? g = !1 : g = !0, g || (c += " extends " + u._rtiToString(y, n));
12780
12779
  c += ">";
12781
12780
  } else
12782
12781
  c = "", s = null;
12783
- for (D = e._primary, h = e._rest, A = h._requiredPositional, C = A.length, F = h._optionalPositional, M = F.length, x = h._named, R = x.length, L = u._rtiToString(D, n), w = "", v = "", l = 0; l < C; ++l, v = U)
12784
- w += v + u._rtiToString(A[l], n);
12782
+ 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), O = "", v = "", l = 0; l < C; ++l, v = H)
12783
+ O += v + u._rtiToString(E[l], n);
12785
12784
  if (M > 0) {
12786
- for (w += v + "[", v = "", l = 0; l < M; ++l, v = U)
12787
- w += v + u._rtiToString(F[l], n);
12788
- w += "]";
12785
+ for (O += v + "[", v = "", l = 0; l < M; ++l, v = H)
12786
+ O += v + u._rtiToString(I[l], n);
12787
+ O += "]";
12789
12788
  }
12790
12789
  if (R > 0) {
12791
- for (w += v + "{", v = "", l = 0; l < R; l += 3, v = U)
12792
- w += v, x[l + 1] && (w += "required "), w += u._rtiToString(x[l + 2], n) + " " + x[l];
12793
- w += "}";
12790
+ for (O += v + "{", v = "", l = 0; l < R; l += 3, v = H)
12791
+ O += v, x[l + 1] && (O += "required "), O += u._rtiToString(x[l + 2], n) + " " + x[l];
12792
+ O += "}";
12794
12793
  }
12795
- return s != null && (n.toString, n.length = s), c + "(" + w + ") => " + L;
12794
+ return s != null && (n.toString, n.length = s), c + "(" + O + ") => " + L;
12796
12795
  },
12797
12796
  _rtiToString(e, n) {
12798
12797
  var i, a, s, o, l, D, d = e._kind;
@@ -12912,8 +12911,8 @@ var Ge = Ye, Te = {};
12912
12911
  return l ?? (a = new u.Rti(null, null), a._kind = 11, a._primary = n, a._rest = i, a._canonicalRecipe = o, s = u._Universe__installTypeTests(e, a), e.eC.set(o, s), s);
12913
12912
  },
12914
12913
  _Universe__lookupFunctionRti(e, n, i) {
12915
- var a, s, o, l, D, d = n._canonicalRecipe, c = i._requiredPositional, p = c.length, y = i._optionalPositional, m = y.length, g = i._named, h = g.length, A = "(" + u._Universe__canonicalRecipeJoin(c);
12916
- return m > 0 && (a = p > 0 ? "," : "", A += a + "[" + u._Universe__canonicalRecipeJoin(y) + "]"), h > 0 && (a = p > 0 ? "," : "", A += a + "{" + u._Universe__canonicalRecipeJoinNamed(g) + "}"), s = d + (A + ")"), o = e.eC.get(s), o ?? (l = new u.Rti(null, null), l._kind = 12, l._primary = n, l._rest = i, l._canonicalRecipe = s, D = u._Universe__installTypeTests(e, l), e.eC.set(s, D), D);
12914
+ var a, s, o, l, D, d = n._canonicalRecipe, c = i._requiredPositional, p = c.length, y = i._optionalPositional, m = y.length, g = i._named, h = g.length, E = "(" + u._Universe__canonicalRecipeJoin(c);
12915
+ return m > 0 && (a = p > 0 ? "," : "", E += a + "[" + u._Universe__canonicalRecipeJoin(y) + "]"), h > 0 && (a = p > 0 ? "," : "", E += a + "{" + u._Universe__canonicalRecipeJoinNamed(g) + "}"), s = d + (E + ")"), o = e.eC.get(s), o ?? (l = new u.Rti(null, null), l._kind = 12, l._primary = n, l._rest = i, l._canonicalRecipe = s, D = u._Universe__installTypeTests(e, l), e.eC.set(s, D), D);
12917
12916
  },
12918
12917
  _Universe__lookupGenericFunctionRti(e, n, i, a) {
12919
12918
  var s, o = n._canonicalRecipe + ("<" + u._Universe__canonicalRecipeJoin(i) + ">"), l = e.eC.get(o);
@@ -13150,35 +13149,35 @@ var Ge = Ye, Te = {};
13150
13149
  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);
13151
13150
  },
13152
13151
  _isFunctionSubtype(e, n, i, a, s) {
13153
- var o, l, D, d, c, p, y, m, g, h, A, C, F, M, x, R, L, w, v, U, Z, f0;
13154
- if (!u._isSubtype(e, n._primary, i, a._primary, s) || (o = n._rest, l = a._rest, D = o._requiredPositional, d = l._requiredPositional, c = D.length, p = d.length, c > p) || (y = p - c, m = o._optionalPositional, g = l._optionalPositional, h = m.length, A = g.length, c + h < p + A))
13152
+ var o, l, D, d, c, p, y, m, g, h, E, C, I, M, x, R, L, O, v, H, j, c0;
13153
+ if (!u._isSubtype(e, n._primary, i, a._primary, s) || (o = n._rest, l = a._rest, D = o._requiredPositional, d = l._requiredPositional, c = D.length, p = d.length, c > p) || (y = p - c, m = o._optionalPositional, g = l._optionalPositional, h = m.length, E = g.length, c + h < p + E))
13155
13154
  return !1;
13156
13155
  for (C = 0; C < c; ++C)
13157
- if (F = D[C], !u._isSubtype(e, d[C], s, F, i))
13156
+ if (I = D[C], !u._isSubtype(e, d[C], s, I, i))
13158
13157
  return !1;
13159
13158
  for (C = 0; C < y; ++C)
13160
- if (F = m[C], !u._isSubtype(e, d[c + C], s, F, i))
13159
+ if (I = m[C], !u._isSubtype(e, d[c + C], s, I, i))
13161
13160
  return !1;
13162
- for (C = 0; C < A; ++C)
13163
- if (F = m[y + C], !u._isSubtype(e, g[C], s, F, i))
13161
+ for (C = 0; C < E; ++C)
13162
+ if (I = m[y + C], !u._isSubtype(e, g[C], s, I, i))
13164
13163
  return !1;
13165
- for (M = o._named, x = l._named, R = M.length, L = x.length, w = 0, v = 0; v < L; v += 3)
13166
- for (U = x[v]; ; ) {
13167
- if (w >= R || (Z = M[w], w += 3, U < Z))
13164
+ for (M = o._named, x = l._named, R = M.length, L = x.length, O = 0, v = 0; v < L; v += 3)
13165
+ for (H = x[v]; ; ) {
13166
+ if (O >= R || (j = M[O], O += 3, H < j))
13168
13167
  return !1;
13169
- if (f0 = M[w - 2], Z < U) {
13170
- if (f0)
13168
+ if (c0 = M[O - 2], j < H) {
13169
+ if (c0)
13171
13170
  return !1;
13172
13171
  continue;
13173
13172
  }
13174
- if (F = x[v + 1], f0 && !F || (F = M[w - 1], !u._isSubtype(e, x[v + 2], s, F, i)))
13173
+ if (I = x[v + 1], c0 && !I || (I = M[O - 1], !u._isSubtype(e, x[v + 2], s, I, i)))
13175
13174
  return !1;
13176
13175
  break;
13177
13176
  }
13178
- for (; w < R; ) {
13179
- if (M[w + 1])
13177
+ for (; O < R; ) {
13178
+ if (M[O + 1])
13180
13179
  return !1;
13181
- w += 3;
13180
+ O += 3;
13182
13181
  }
13183
13182
  return !0;
13184
13183
  },
@@ -13608,11 +13607,11 @@ var Ge = Ye, Te = {};
13608
13607
  return new u.DateTime(Date.now(), !1);
13609
13608
  },
13610
13609
  DateTime_parse(e) {
13611
- var n, i, a, s, o, l, D, d, c, p, y, m, g, h, A, C, F = b.$get$DateTime__parseFormat().firstMatch$1(e);
13612
- if (F != null) {
13613
- if (n = new u.DateTime_parse_parseIntOrZero(), i = F.__js_helper$_match, a = i[1], a.toString, s = u.int_parse(a), a = i[2], a.toString, o = u.int_parse(a), a = i[3], a.toString, l = u.int_parse(a), D = n.call$1(i[4]), d = n.call$1(i[5]), c = n.call$1(i[6]), p = new u.DateTime_parse_parseMilliAndMicroseconds().call$1(i[7]), y = $.JSInt_methods._tdivFast$1(p, 1e3), i[8] != null ? (m = i[9], m != null && (g = m === "-" ? -1 : 1, a = i[10], a.toString, h = u.int_parse(a), d -= g * (n.call$1(i[11]) + 60 * h)), A = !0) : A = !1, C = u.Primitives_valueFromDecomposedDate(s, o, l, D, d, c, y + $.JSNumber_methods.round$0(p % 1e3 / 1e3), A), C == null)
13610
+ var n, i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, I = b.$get$DateTime__parseFormat().firstMatch$1(e);
13611
+ if (I != null) {
13612
+ if (n = new u.DateTime_parse_parseIntOrZero(), i = I.__js_helper$_match, a = i[1], a.toString, s = u.int_parse(a), a = i[2], a.toString, o = u.int_parse(a), a = i[3], a.toString, l = u.int_parse(a), D = n.call$1(i[4]), d = n.call$1(i[5]), c = n.call$1(i[6]), p = new u.DateTime_parse_parseMilliAndMicroseconds().call$1(i[7]), y = $.JSInt_methods._tdivFast$1(p, 1e3), i[8] != null ? (m = i[9], m != null && (g = m === "-" ? -1 : 1, a = i[10], a.toString, h = u.int_parse(a), d -= g * (n.call$1(i[11]) + 60 * h)), E = !0) : E = !1, C = u.Primitives_valueFromDecomposedDate(s, o, l, D, d, c, y + $.JSNumber_methods.round$0(p % 1e3 / 1e3), E), C == null)
13614
13613
  throw u.wrapException(u.FormatException$("Time out of range", e, null));
13615
- return u.DateTime$_withValue(C, A);
13614
+ return u.DateTime$_withValue(C, E);
13616
13615
  } else
13617
13616
  throw u.wrapException(u.FormatException$("Invalid date format", e, null));
13618
13617
  },
@@ -13870,9 +13869,9 @@ var Ge = Ye, Te = {};
13870
13869
  var l = this;
13871
13870
  l.digest = n, l._extended = i, l._hash_sink$_sink = a, l._currentChunk = s, l._lengthInBytes = 0, l._pendingData = o, l._isClosed = !1;
13872
13871
  },
13873
- DateSymbols: function(n, i, a, s, o, l, D, d, c, p, y, m, g, h, A, C, F) {
13872
+ DateSymbols: function(n, i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, I) {
13874
13873
  var M = this;
13875
- 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 = m, M.STANDALONESHORTWEEKDAYS = g, M.STANDALONENARROWWEEKDAYS = h, M.SHORTQUARTERS = A, M.QUARTERS = C, M.AMPMS = F;
13874
+ 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 = m, M.STANDALONESHORTWEEKDAYS = g, M.STANDALONENARROWWEEKDAYS = h, M.SHORTQUARTERS = E, M.QUARTERS = C, M.AMPMS = I;
13876
13875
  },
13877
13876
  DateBuilder: function(n, i) {
13878
13877
  var a = this;
@@ -14483,8 +14482,8 @@ var Ge = Ye, Te = {};
14483
14482
  var m = this;
14484
14483
  m.sparklineDimension = n, m.isCumulative = i, m.schemaNames = a, m.dimensions = s, m.metrics = o, m.filters = l, m.sorts = D, m.limit = d, m.isComparable = c, m.periodType = p, m.timezone = y;
14485
14484
  },
14486
- TableDatasourceConfigModel$(e, n, i, a, s, o, l, D, d, c, p, y, m, g, h, A, C, F, M, x) {
14487
- return new u.TableDatasourceConfigModel(n, D, F, m, g, A, o, a, h, e, d, C, i, p, s, M, c, l, y, x);
14485
+ TableDatasourceConfigModel$(e, n, i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, I, M, x) {
14486
+ return new u.TableDatasourceConfigModel(n, D, I, m, g, E, o, a, h, e, d, C, i, p, s, M, c, l, y, x);
14488
14487
  },
14489
14488
  TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson(e) {
14490
14489
  var n, i, a, s, o, l, D, d, c, p = "showGrandTotal", y = u.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson(e), m = e.$index(0, "rollup");
@@ -14528,9 +14527,9 @@ var Ge = Ye, Te = {};
14528
14527
  DataSourceRowColumnConfig_columnIds_closure1: function(n) {
14529
14528
  this.$this = n;
14530
14529
  },
14531
- TableDatasourceConfigModel: function(n, i, a, s, o, l, D, d, c, p, y, m, g, h, A, C, F, M, x, R) {
14530
+ TableDatasourceConfigModel: function(n, i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, I, M, x, R) {
14532
14531
  var L = this;
14533
- 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 = m, L.dimensions = g, L.metrics = h, L.filters = A, L.sorts = C, L.limit = F, L.isComparable = M, L.periodType = x, L.timezone = R;
14532
+ 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 = m, L.dimensions = g, L.metrics = h, L.filters = E, L.sorts = C, L.limit = I, L.isComparable = M, L.periodType = x, L.timezone = R;
14534
14533
  },
14535
14534
  TableDatasourceConfigModel_drilledDimensions_closure: function(n) {
14536
14535
  this.$this = n;
@@ -14581,8 +14580,8 @@ var Ge = Ye, Te = {};
14581
14580
  return d == null && (d = !1), n = e.$index(0, "showLabel"), n == null && (n = !1), i = e.$index(0, "drillDimension"), e.$index(0, "isBlend"), a = e.$index(0, "joinDatasources"), a == null && (a = []), a = u.List_List$from(a, r.Map_String_dynamic), s = u._arrayInstanceType(a)._eval$1("MappedListIterable<1,JoinDatasourceConfig>"), u.List_List$of(new u.MappedListIterable(a, new u.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson_closure(l), s), !0, s._eval$1("ListIterable.E")), new u.BaseXYDatasourceConfigModel(n, i, D, d, e.$index(0, "isCumulative"), l.schemaNames, l.dimensions, l.metrics, l.filters, l.sorts, l.limit, l.isComparable, l.periodType, l.timezone);
14582
14581
  },
14583
14582
  BaseXYDatasourceConfigModel: function(n, i, a, s, o, l, D, d, c, p, y, m, g, h) {
14584
- var A = this;
14585
- A.showLabel = n, A._xy_datasource_config_model$_drillDimension = i, A.breakdownDimension = a, A.isTransposed = s, A.isCumulative = o, A.schemaNames = l, A.dimensions = D, A.metrics = d, A.filters = c, A.sorts = p, A.limit = y, A.isComparable = m, A.periodType = g, A.timezone = h;
14583
+ var E = this;
14584
+ E.showLabel = n, E._xy_datasource_config_model$_drillDimension = i, E.breakdownDimension = a, E.isTransposed = s, E.isCumulative = o, E.schemaNames = l, E.dimensions = D, E.metrics = d, E.filters = c, E.sorts = p, E.limit = y, E.isComparable = m, E.periodType = g, E.timezone = h;
14586
14585
  },
14587
14586
  BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson_closure: function(n) {
14588
14587
  this.baseConfig = n;
@@ -14614,32 +14613,32 @@ var Ge = Ye, Te = {};
14614
14613
  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;
14615
14614
  },
14616
14615
  formatBaseXYChartData(e, n, i, a, s) {
14617
- var o, l, D, d, c, p, y, m, g, h, A, C, F, M, x, R, L, w, v, U, Z, f0, g0, o0, h0, F0, x0, L0, C0, M0, O0, R0, k0 = null;
14616
+ var o, l, D, d, c, p, y, m, g, h, E, C, I, M, x, R, L, O, v, H, j, c0, g0, a0, h0, b0, M0, R0, T0, I0, x0, F0, J0 = null;
14618
14617
  if (i.length === 0)
14619
- 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 ? k0 : D.dateRange, k0));
14620
- for (d = $.JSArray_methods.get$first(i).columns, o = u._arrayInstanceType(d), l = o._eval$1("WhereIterable<1>"), c = u.List_List$of(new u.WhereIterable(d, new u.formatBaseXYChartData_closure(), l), !0, l._eval$1("Iterable.E")), l = u._arrayInstanceType(c)._eval$1("WhereIterable<1>"), p = u.List_List$of(new u.WhereIterable(c, new u.formatBaseXYChartData_closure0(), l), !0, l._eval$1("Iterable.E")), l = r.QueryResponse, y = u._formatRows(u.ListExtension_sublistOrEmpty(i, 0, 1, l), s), m = u._formatRows(u.ListExtension_sublistOrEmpty(i, 1, 2, l), s), m.length !== 0 && (o = o._eval$1("MappedListIterable<1,ComparisonDataColumn>"), g = u.List_List$of(new u.MappedListIterable(d, new u.formatBaseXYChartData_closure1(), o), !0, o._eval$1("ListIterable.E")), h = u.compare(new u.ComparisonData(g, m), new u.ComparisonData(g, y)), m = h.comparison, y = h.main), o = r.String, l = u.LinkedHashMap_LinkedHashMap$_empty(o, r.bool), D = p.length, A = 0; C = p.length, A < C; p.length === D || (0, u.throwConcurrentModificationError)(p), ++A)
14621
- F = p[A], l.$indexSet(0, F.id, F.nullable);
14622
- for (D = u.LinkedHashMap_LinkedHashMap$_empty(o, o), A = 0; A < p.length; p.length === C || (0, u.throwConcurrentModificationError)(p), ++A)
14623
- F = p[A], D.$indexSet(0, F.id, F.label);
14618
+ 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 ? J0 : D.dateRange, J0));
14619
+ for (d = $.JSArray_methods.get$first(i).columns, o = u._arrayInstanceType(d), l = o._eval$1("WhereIterable<1>"), c = u.List_List$of(new u.WhereIterable(d, new u.formatBaseXYChartData_closure(), l), !0, l._eval$1("Iterable.E")), l = u._arrayInstanceType(c)._eval$1("WhereIterable<1>"), p = u.List_List$of(new u.WhereIterable(c, new u.formatBaseXYChartData_closure0(), l), !0, l._eval$1("Iterable.E")), l = r.QueryResponse, y = u._formatRows(u.ListExtension_sublistOrEmpty(i, 0, 1, l), s), m = u._formatRows(u.ListExtension_sublistOrEmpty(i, 1, 2, l), s), m.length !== 0 && (o = o._eval$1("MappedListIterable<1,ComparisonDataColumn>"), g = u.List_List$of(new u.MappedListIterable(d, new u.formatBaseXYChartData_closure1(), o), !0, o._eval$1("ListIterable.E")), h = u.compare(new u.ComparisonData(g, m), new u.ComparisonData(g, y)), m = h.comparison, y = h.main), o = r.String, l = u.LinkedHashMap_LinkedHashMap$_empty(o, r.bool), D = p.length, E = 0; C = p.length, E < C; p.length === D || (0, u.throwConcurrentModificationError)(p), ++E)
14620
+ I = p[E], l.$indexSet(0, I.id, I.nullable);
14621
+ for (D = u.LinkedHashMap_LinkedHashMap$_empty(o, o), E = 0; E < p.length; p.length === C || (0, u.throwConcurrentModificationError)(p), ++E)
14622
+ I = p[E], D.$indexSet(0, I.id, I.label);
14624
14623
  if (M = u.LinkedHashMap_LinkedHashMap$_empty(o, o), x = u.LinkedHashMap_LinkedHashMap$_empty(o, o), n.breakdownDimension == null) {
14625
14624
  for (C = u.LinkedHashMap_LinkedHashMap$_empty(o, r.int), R = 0; R < d.length; ++R)
14626
14625
  C.$indexSet(0, d[R].id, R);
14627
- for (M.addAll$1(0, D), L = p.length, A = 0; A < p.length; p.length === L || (0, u.throwConcurrentModificationError)(p), ++A)
14628
- w = p[A].id, x.$indexSet(0, w, w);
14626
+ for (M.addAll$1(0, D), L = p.length, E = 0; E < p.length; p.length === L || (0, u.throwConcurrentModificationError)(p), ++E)
14627
+ O = p[E].id, x.$indexSet(0, O, O);
14629
14628
  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")), m.length !== 0 && (L = u._arrayInstanceType(m)._eval$1("ExpandIterable<1,List<@>>"), m = u.List_List$of(new u.ExpandIterable(m, new u.formatBaseXYChartData_closure3(p, C), L), !0, L._eval$1("Iterable.E")));
14630
14629
  } else if (c.length > 1) {
14631
14630
  for (C = u.LinkedHashMap_LinkedHashMap$_empty(o, r.int), R = 0; R < d.length; ++R)
14632
14631
  C.$indexSet(0, d[R].id, R);
14633
14632
  C = new u.formatBaseXYChartData_expandRowsByMetric($.JSArray_methods.indexWhere$1(d, new u.formatBaseXYChartData_closure4(n)), p, C, D, M, x), y = C.call$1(y), m.length !== 0 && (m = C.call$1(m));
14634
14633
  }
14635
- for (C = r.JSArray_String, v = u._setArrayType([], C), U = u._setArrayType([], C), C = y.length, A = 0; A < y.length; y.length === C || (0, u.throwConcurrentModificationError)(y), ++A)
14636
- Z = y[A], L = _.getInterceptor$asx(Z), v.push(_.toString$0$(L.$index(Z, 0))), U.push(_.toString$0$(L.$index(Z, 1)));
14637
- for (C = u.LinkedHashSet_LinkedHashSet$from(v, o), v = u.List_List$of(C, !0, u._instanceType(C)._precomputed1), o = u.LinkedHashSet_LinkedHashSet$from(U, o), f0 = u.List_List$of(o, !0, u._instanceType(o)._precomputed1), g0 = u._setArrayType([], r.JSArray_XYDatasetModel), o = f0.length, C = _.getInterceptor$asx(m), L = r.JSArray_nullable_num, A = 0; A < f0.length; f0.length === o || (0, u.throwConcurrentModificationError)(f0), ++A) {
14638
- for (o0 = f0[A], h0 = u._setArrayType([], L), F0 = u._setArrayType([], L), x0 = x.$index(0, o0), w = l.$index(0, x0 ?? o0), L0 = w === !0, w = M.$index(0, o0), C0 = w ?? D.$index(0, o0), C0 == null && (C0 = o0), w = v.length, M0 = 0; M0 < v.length; v.length === w || (0, u.throwConcurrentModificationError)(v), ++M0)
14639
- O0 = v[M0], R0 = u.IterableExtension_firstWhereOrNull(y, new u.formatBaseXYChartData_closure5(O0, o0)), h0.push(u._parseMetricValue(R0 == null ? k0 : u.ListExtension_elementAtOrNull(R0, 2), L0)), C.get$length(m) !== 0 && (R0 = u.IterableExtension_firstWhereOrNull(m, new u.formatBaseXYChartData_closure6(O0, o0)), F0.push(u._parseMetricValue(R0 == null ? k0 : u.ListExtension_elementAtOrNull(R0, 2), L0)));
14640
- g0.push(new u.XYDatasetModel(C0, !1, h0)), F0.length !== 0 && g0.push(new u.XYDatasetModel(C0, !0, F0));
14634
+ 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)
14635
+ j = y[E], L = _.getInterceptor$asx(j), v.push(_.toString$0$(L.$index(j, 0))), H.push(_.toString$0$(L.$index(j, 1)));
14636
+ 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), g0 = u._setArrayType([], r.JSArray_XYDatasetModel), o = c0.length, C = _.getInterceptor$asx(m), L = r.JSArray_nullable_num, E = 0; E < c0.length; c0.length === o || (0, u.throwConcurrentModificationError)(c0), ++E) {
14637
+ 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 = M.$index(0, a0), T0 = O ?? D.$index(0, a0), T0 == null && (T0 = a0), O = v.length, I0 = 0; I0 < v.length; v.length === O || (0, u.throwConcurrentModificationError)(v), ++I0)
14638
+ x0 = v[I0], F0 = u.IterableExtension_firstWhereOrNull(y, new u.formatBaseXYChartData_closure5(x0, a0)), h0.push(u._parseMetricValue(F0 == null ? J0 : u.ListExtension_elementAtOrNull(F0, 2), R0)), C.get$length(m) !== 0 && (F0 = u.IterableExtension_firstWhereOrNull(m, new u.formatBaseXYChartData_closure6(x0, a0)), b0.push(u._parseMetricValue(F0 == null ? J0 : u.ListExtension_elementAtOrNull(F0, 2), R0)));
14639
+ g0.push(new u.XYDatasetModel(T0, !1, h0)), b0.length !== 0 && g0.push(new u.XYDatasetModel(T0, !0, b0));
14641
14640
  }
14642
- return g0 = u.accumulate(n, g0), o = u.IterableExtension_get_firstOrNull(i), o = o == null ? k0 : o.dateRange, l = u.ListExtension_elementAtOrNull(i, 1), new u.BaseXYChartDataModel(e, v, g0, new u.DateComparison(o, l == null ? k0 : l.dateRange));
14641
+ return g0 = u.accumulate(n, g0), o = u.IterableExtension_get_firstOrNull(i), o = o == null ? J0 : o.dateRange, l = u.ListExtension_elementAtOrNull(i, 1), new u.BaseXYChartDataModel(e, v, g0, new u.DateComparison(o, l == null ? J0 : l.dateRange));
14643
14642
  },
14644
14643
  _formatRows_closure: function(n, i) {
14645
14644
  this.response = n, this.timezone = i;
@@ -14706,14 +14705,14 @@ var Ge = Ye, Te = {};
14706
14705
  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")));
14707
14706
  },
14708
14707
  formatCircularChartData(e, n, i, a) {
14709
- var s, o, l, D, d, c, p, y, m, g, h, A, C, F, M = null;
14708
+ var s, o, l, D, d, c, p, y, m, g, h, E, C, I, M = null;
14710
14709
  if (n.length === 0)
14711
14710
  return s = u._setArrayType([], r.JSArray_String), new u.CircularDataModel(u._setArrayType([], r.JSArray_CircularDatasetModel), s, new u.DateComparison(M, M));
14712
14711
  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, m = 0; m < o.length; o.length === y || (0, u.throwConcurrentModificationError)(o), ++m)
14713
14712
  p.push(_.toString$0$(_.$index$asx(o[m], 0)));
14714
14713
  for (y = u.LinkedHashSet_LinkedHashSet$from(p, r.String), p = u.List_List$of(y, !0, u._instanceType(y)._precomputed1), g = u._setArrayType([], r.JSArray_CircularDatasetModel), y = p.length, m = 0; m < y; ++m)
14715
- h = p[m], A = u.IterableExtension_firstWhereOrNull(o, new u.formatCircularChartData_closure0(h)), C = A == null ? M : u.ListExtension_elementAtOrNull(A, 1), C == null && (C = 0), l.length !== 0 ? (A = u.IterableExtension_firstWhereOrNull(l, new u.formatCircularChartData_closure1(h)), F = A == null ? M : u.ListExtension_elementAtOrNull(A, 1), F == null && (F = 0)) : F = M, g.push(new u.CircularDatasetModel(h, u.num_parse(C), F));
14716
- 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, A = u.ListExtension_elementAtOrNull(n, 1), new u.CircularDataModel(g, s, new u.DateComparison(y, A == null ? M : A.dateRange));
14714
+ h = p[m], 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, g.push(new u.CircularDatasetModel(h, u.num_parse(C), I));
14715
+ 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(g, s, new u.DateComparison(y, E == null ? M : E.dateRange));
14717
14716
  },
14718
14717
  _formatRows_closure0: function(n, i) {
14719
14718
  this.response = n, this.timezone = i;
@@ -14742,14 +14741,14 @@ var Ge = Ye, Te = {};
14742
14741
  return new u.RowInfo(o, _.map$1$1$ax(i, new u._getRowInfo_closure(e, n, a, o), s).join$0(0));
14743
14742
  },
14744
14743
  compare(e, n) {
14745
- var i, a, s, o, l, D, d, c, p, y, m, g, h, A, C, F, M, x, R, L, w = {};
14746
- 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), m = r.dynamic, g = 0; g < d.length; d.length === c || (0, u.throwConcurrentModificationError)(d), ++g) {
14747
- if (h = d[g], A = u._getRowInfo(a, w.dates, o, h), C = D.$index(0, A.id), F = C == null ? null : _.toList$0$ax(C), F == null) {
14748
- for (C = A.row, M = u.List_List$of(u.ListExtensions_slice(C, 0, y.get$length(o), m), !0, m), 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)
14744
+ var i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, I, M, x, R, L, O = {};
14745
+ 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), m = r.dynamic, g = 0; g < d.length; d.length === c || (0, u.throwConcurrentModificationError)(d), ++g) {
14746
+ if (h = d[g], E = u._getRowInfo(a, O.dates, o, h), C = D.$index(0, E.id), I = C == null ? null : _.toList$0$ax(C), I == null) {
14747
+ for (C = E.row, M = u.List_List$of(u.ListExtensions_slice(C, 0, y.get$length(o), m), !0, m), 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)
14749
14748
  R[L] = null;
14750
- $.JSArray_methods.addAll$1(M, R), F = M;
14749
+ $.JSArray_methods.addAll$1(M, R), I = M;
14751
14750
  }
14752
- s.push(A.row), i.push(F);
14751
+ s.push(E.row), i.push(I);
14753
14752
  }
14754
14753
  return new u.ComparisonResult(s, i);
14755
14754
  },
@@ -14791,21 +14790,21 @@ var Ge = Ye, Te = {};
14791
14790
  this._box_0 = n, this.comparison = i, this.comparisonIndexes = a;
14792
14791
  },
14793
14792
  _formatSparkline(e, n, i, a) {
14794
- var s, o, l, D, d, c, p, y, m, g, h, A, C;
14793
+ var s, o, l, D, d, c, p, y, m, g, h, E, C;
14795
14794
  if (n == null)
14796
14795
  return null;
14797
14796
  for (s = n.rows, o = u._arrayInstanceType(s)._eval$1("MappedListIterable<1,List<@>>"), l = u.List_List$of(new u.MappedListIterable(s, new u._formatSparkline_closure(n, i, a), o), !0, o._eval$1("ListIterable.E")), o = u._arrayInstanceType(l)._eval$1("MappedListIterable<1,List<@>>"), l = u.List_List$of(new u.MappedListIterable(l, new u._formatSparkline_closure0(n, $.JSArray_methods.indexWhere$1(n.columns, new u._formatSparkline_closure1())), o), !0, o._eval$1("ListIterable.E")), o = r.JSArray_String, D = u._setArrayType([], o), d = u._setArrayType([], o), s = l.length, c = 0; c < l.length; l.length === s || (0, u.throwConcurrentModificationError)(l), ++c)
14798
14797
  p = l[c], o = _.getInterceptor$asx(p), D.push(_.toString$0$(o.$index(p, 0))), d.push(_.toString$0$(o.$index(p, 1)));
14799
14798
  for (s = r.String, o = u.LinkedHashSet_LinkedHashSet$from(D, s), D = u.List_List$of(o, !0, u._instanceType(o)._precomputed1), s = u.LinkedHashSet_LinkedHashSet$from(d, s), d = u.List_List$of(s, !0, u._instanceType(s)._precomputed1), y = u._setArrayType([], r.JSArray_XYDatasetModel), s = d.length, o = r.JSArray_num, c = 0; c < d.length; d.length === s || (0, u.throwConcurrentModificationError)(d), ++c) {
14800
- for (m = d[c], g = u._setArrayType([], o), h = D.length, A = 0; A < D.length; D.length === h || (0, u.throwConcurrentModificationError)(D), ++A)
14801
- C = u.IterableExtension_firstWhereOrNull(l, new u._formatSparkline_closure2(D[A], m)), C = C == null ? null : u.ListExtension_elementAtOrNull(C, 2), g.push(C ?? 0);
14799
+ for (m = d[c], g = u._setArrayType([], o), h = D.length, E = 0; E < D.length; D.length === h || (0, u.throwConcurrentModificationError)(D), ++E)
14800
+ C = u.IterableExtension_firstWhereOrNull(l, new u._formatSparkline_closure2(D[E], m)), C = C == null ? null : u.ListExtension_elementAtOrNull(C, 2), g.push(C ?? 0);
14802
14801
  y.push(new u.XYDatasetModel(m, !1, g));
14803
14802
  }
14804
14803
  return new u.SparklineDataModel($.SparklineType_0, D, u.accumulate(e, y));
14805
14804
  },
14806
14805
  formatScoreCardChartData(e, n, i, a) {
14807
- var s, o, l, D, d, c, p, y, m, g, h, A, C, F, M = null;
14808
- 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), m = o.optionType, g = o.aggregationType, h = o.decimal, A = o.timeFormatter, C = o.formatter, l = u.DataTypeExtension_toDisplay(s, g, i, h, m, C, !1, A, a, l), F = y == null, (F ? M : y.value.$index(0, o.id)) != null ? s = u.DataTypeExtension_toDisplay(s, g, i, h, m, C, !1, A, a, F ? M : y.value.$index(0, o.id)) : s = M, new u.ScorecardDataModel(M, l, s, u._formatSparkline(e, c, i, a)));
14806
+ var s, o, l, D, d, c, p, y, m, g, h, E, C, I, M = null;
14807
+ 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), m = o.optionType, g = o.aggregationType, h = o.decimal, E = o.timeFormatter, C = o.formatter, l = u.DataTypeExtension_toDisplay(s, g, i, h, m, C, !1, E, a, l), I = y == null, (I ? M : y.value.$index(0, o.id)) != null ? s = u.DataTypeExtension_toDisplay(s, g, i, h, m, 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)));
14809
14808
  },
14810
14809
  _formatSparkline_closure: function(n, i, a) {
14811
14810
  this.response = n, this.country = i, this.timezone = a;
@@ -14828,14 +14827,14 @@ var Ge = Ye, Te = {};
14828
14827
  formatScoreCardChartData_closure: function() {
14829
14828
  },
14830
14829
  _formatTableResponse(e, n, i, a) {
14831
- var s, o, l, D, d, c, p, y, m, g, h, A = null, C = i.columns, F = u._arrayInstanceType(C), M = F._eval$1("WhereIterable<1>"), x = r.String;
14832
- for (F = u.List_List$of(new u.MappedIterable(new u.WhereIterable(C, new u._formatTableResponse_closure(e), M), new u._formatTableResponse_closure0(), F._eval$1("MappedIterable<1,String>")), !0, x), 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(F, u._setArrayType([], l), new u._formatTableResponse_closure2(i))), D = u.List_List$of(new u.WhereIterable(C, new u._formatTableResponse_closure3(), M), !0, M._eval$1("Iterable.E")), M = u.LinkedHashMap_LinkedHashMap$_empty(x, r.QueryResponseColumn), C = D.length, d = 0; d < D.length; D.length === C || (0, u.throwConcurrentModificationError)(D), ++d)
14830
+ var s, o, l, D, d, c, p, y, m, g, h, E = null, C = i.columns, I = u._arrayInstanceType(C), M = I._eval$1("WhereIterable<1>"), x = r.String;
14831
+ for (I = u.List_List$of(new u.MappedIterable(new u.WhereIterable(C, new u._formatTableResponse_closure(e), M), new u._formatTableResponse_closure0(), I._eval$1("MappedIterable<1,String>")), !0, x), 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(I, u._setArrayType([], l), new u._formatTableResponse_closure2(i))), D = u.List_List$of(new u.WhereIterable(C, new u._formatTableResponse_closure3(), M), !0, M._eval$1("Iterable.E")), M = u.LinkedHashMap_LinkedHashMap$_empty(x, r.QueryResponseColumn), C = D.length, d = 0; d < D.length; D.length === C || (0, u.throwConcurrentModificationError)(D), ++d)
14833
14832
  c = D[d], M.$indexSet(0, c.id, c);
14834
- for (C = u.List_List$of(u.ListExtensions_mapIndexed(e.get$columnIds(), new u._formatTableResponse_closure4(e, M, i), x, o), !0, o), C.length !== 0 ? (p = u._setArrayType([], l), u._getRecursivePermutations(C, p, 0, u._setArrayType([], r.JSArray__Header_dynamic), r._Header_dynamic), y = p) : y = [], C = u.List_List$of(s, !0, o), F = y.length, d = 0; d < y.length; y.length === F || (0, u.throwConcurrentModificationError)(y), ++d)
14833
+ for (C = u.List_List$of(u.ListExtensions_mapIndexed(e.get$columnIds(), new u._formatTableResponse_closure4(e, M, i), x, o), !0, o), C.length !== 0 ? (p = u._setArrayType([], l), u._getRecursivePermutations(C, p, 0, u._setArrayType([], r.JSArray__Header_dynamic), r._Header_dynamic), y = p) : y = [], C = u.List_List$of(s, !0, o), I = y.length, d = 0; d < y.length; y.length === I || (0, u.throwConcurrentModificationError)(y), ++d)
14835
14834
  C.push(y[d]);
14836
- 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", A, A, $.DATA_TYPE_3, A, A, !1, A, A, A, !1)], r.JSArray__Header_dynamic)), C.push(u._setArrayType([new u._Header("_is_rollup", "Rollup", A, A, $.DATA_TYPE_2, A, A, !0, A, A, A, !1)], r.JSArray__Header_dynamic)), F = r.Map_String_dynamic, m = u.LinkedHashMap_LinkedHashMap$_empty(x, F), M = _.get$iterator$ax($.JSArray_methods.fold$2(i.rows, u._setArrayType([], r.JSArray_Map_String_dynamic), new u._formatTableResponse_closure5(C, D))), x = r.dynamic; M.moveNext$0(); )
14835
+ 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", E, E, $.DATA_TYPE_3, E, E, !1, E, E, E, !1)], r.JSArray__Header_dynamic)), C.push(u._setArrayType([new u._Header("_is_rollup", "Rollup", E, E, $.DATA_TYPE_2, E, E, !0, E, E, E, !1)], r.JSArray__Header_dynamic)), I = r.Map_String_dynamic, m = u.LinkedHashMap_LinkedHashMap$_empty(x, I), M = _.get$iterator$ax($.JSArray_methods.fold$2(i.rows, u._setArrayType([], r.JSArray_Map_String_dynamic), new u._formatTableResponse_closure5(C, D))), x = r.dynamic; M.moveNext$0(); )
14837
14836
  s = M.get$current(), g = u._asString(s.$index(0, "id")), h = m.$index(0, g), h == null ? m.$indexSet(0, g, s) : (s = u.ListExtensions_mapIndexed(u.List_List$from(h.$index(0, "value"), x), new u._formatTableResponse_closure6(C, s), x, x), h.$indexSet(0, "value", u.List_List$of(s, !0, s.$ti._eval$1("Iterable.E"))));
14838
- return M = m.get$values(m), F = u.ListExtensions_mapIndexed(u.List_List$of(M, !0, u._instanceType(M)._eval$1("Iterable.E")), new u._formatTableResponse_closure7(), F, r.TableRowModel), M = u._arrayInstanceType(C)._eval$1("MappedListIterable<1,TableColumnModel>"), new u.TableDataModel(u.List_List$of(F, !0, F.$ti._eval$1("Iterable.E")), u.List_List$of(new u.MappedListIterable(C, new u._formatTableResponse_closure8(n, a), M), !0, M._eval$1("ListIterable.E")));
14837
+ return M = m.get$values(m), I = u.ListExtensions_mapIndexed(u.List_List$of(M, !0, u._instanceType(M)._eval$1("Iterable.E")), new u._formatTableResponse_closure7(), I, r.TableRowModel), M = u._arrayInstanceType(C)._eval$1("MappedListIterable<1,TableColumnModel>"), new u.TableDataModel(u.List_List$of(I, !0, I.$ti._eval$1("Iterable.E")), u.List_List$of(new u.MappedListIterable(C, new u._formatTableResponse_closure8(n, a), M), !0, M._eval$1("ListIterable.E")));
14839
14838
  },
14840
14839
  _formatTableData(e, n, i, a) {
14841
14840
  var s, o, l, D, d, c, p, y, m, g, h = {};
@@ -14846,16 +14845,16 @@ var Ge = Ye, Te = {};
14846
14845
  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")));
14847
14846
  },
14848
14847
  formatTableChartData(e, n, i, a) {
14849
- var s, o, l, D, d, c, p, y, m, g, h, A, C, F, M, x, R, L, w, v, U = {};
14848
+ var s, o, l, D, d, c, p, y, m, g, h, E, C, I, M, x, R, L, O, v, H = {};
14850
14849
  if (n.length === 0)
14851
14850
  return new u.TableDataModel(u._setArrayType([], r.JSArray_TableRowModel), u._setArrayType([], r.JSArray_TableColumnModel));
14852
- for (e.isBlend && (s = u.List_List$of(e.get$dimensions(), !0, r.QueryRequestDimension), $.JSArray_methods.addAll$1(s, $.JSArray_methods.fold$2(e.get$joinDatasources(), u._setArrayType([], r.JSArray_QueryRequestDimension), new u.formatTableChartData_closure())), o = u.List_List$of(e.get$metrics(), !0, r.QueryRequestMetric), $.JSArray_methods.addAll$1(o, $.JSArray_methods.fold$2(e.get$joinDatasources(), u._setArrayType([], r.JSArray_QueryRequestMetric), new u.formatTableChartData_closure0())), l = u._setArrayType([], r.JSArray_JoinDatasourceConfig), D = e.rowsPerPage, d = e.get$columnIds(), c = e.get$rowIds(), p = e.get$drillDimension(), e = u.TableDatasourceConfigModel$(d, e.columnsWidth, s, p, e.filters, !0, e.isComparable, e.isDrillable, l, e.limit, o, e.periodType, e.rollup, e.rollupPosition, c, D, e.schemaNames, e.showGrandTotal, e.sorts, e.timezone)), y = e.get$joinDatasources().length + 1, s = r.QueryResponse, m = u._formatTableData(e, u.ListExtension_sublistOrEmpty(n, 0, y, s), i, a), g = U.comparison = u._formatTableData(e, u.ListExtension_sublistOrEmpty(n, y, y * 2, s), i, a), s = g.rows, s.length !== 0 && (o = m.rows, l = u._arrayInstanceType(o)._eval$1("MappedListIterable<1,List<@>>"), l = u.List_List$of(new u.MappedListIterable(o, new u.formatTableChartData_closure1(), l), !0, l._eval$1("ListIterable.E")), D = m.columns, d = u._arrayInstanceType(D)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), d = u.List_List$of(new u.MappedListIterable(D, new u.formatTableChartData_closure2(), d), !0, d._eval$1("ListIterable.E")), D = u._arrayInstanceType(s)._eval$1("MappedListIterable<1,List<@>>"), D = u.List_List$of(new u.MappedListIterable(s, new u.formatTableChartData_closure3(), D), !0, D._eval$1("ListIterable.E")), c = g.columns, p = u._arrayInstanceType(c)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), h = u.compare(new u.ComparisonData(u.List_List$of(new u.MappedListIterable(c, new u.formatTableChartData_closure4(), p), !0, p._eval$1("ListIterable.E")), D), new u.ComparisonData(d, l)), l = r.TableRowModel, o = u.ListExtensions_mapIndexed(o, new u.formatTableChartData_closure5(h), l, l), m = m.copyWith$1$rows(u.List_List$of(o, !0, o.$ti._eval$1("Iterable.E"))), l = u.ListExtensions_mapIndexed(s, new u.formatTableChartData_closure6(h), l, l), U.comparison = g.copyWith$1$rows(u.List_List$of(l, !0, l.$ti._eval$1("Iterable.E")))), s = m.columns, o = u._arrayInstanceType(s)._eval$1("WhereIterable<1>"), A = u.List_List$of(new u.WhereIterable(s, new u.formatTableChartData_closure7(), o), !0, o._eval$1("Iterable.E")), o = r.String, l = r.int, C = u.LinkedHashMap_LinkedHashMap$_empty(o, l), F = 0; F < s.length; ++F)
14853
- M = s[F], C.$indexSet(0, M.key + "_" + M.hide, F);
14854
- for (x = u.LinkedHashMap_LinkedHashMap$_empty(o, l), F = 0; s = U.comparison.columns, F < s.length; ++F)
14855
- M = s[F], x.$indexSet(0, M.key + "_" + M.hide, F);
14856
- for (R = u._setArrayType([], r.JSArray__ColumnMapping), s = A.length, L = 0; L < s; ++L)
14857
- M = A[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));
14858
- return s = r.MappedListIterable__ColumnMapping_TableColumnModel, v = u.List_List$of(new u.MappedListIterable(R, new u.formatTableChartData_closure8(), s), !0, s._eval$1("ListIterable.E")), s = U.comparison.rows.length, o = r.TableRowModel, o = u.ListExtensions_mapIndexed(m.rows, new u.formatTableChartData_closure9(U, R, i, a, s !== 0, s), o, o), m.copyWith$2$columns$rows(v, u.List_List$of(o, !0, o.$ti._eval$1("Iterable.E")));
14851
+ for (e.isBlend && (s = u.List_List$of(e.get$dimensions(), !0, r.QueryRequestDimension), $.JSArray_methods.addAll$1(s, $.JSArray_methods.fold$2(e.get$joinDatasources(), u._setArrayType([], r.JSArray_QueryRequestDimension), new u.formatTableChartData_closure())), o = u.List_List$of(e.get$metrics(), !0, r.QueryRequestMetric), $.JSArray_methods.addAll$1(o, $.JSArray_methods.fold$2(e.get$joinDatasources(), u._setArrayType([], r.JSArray_QueryRequestMetric), new u.formatTableChartData_closure0())), l = u._setArrayType([], r.JSArray_JoinDatasourceConfig), D = e.rowsPerPage, d = e.get$columnIds(), c = e.get$rowIds(), p = e.get$drillDimension(), e = u.TableDatasourceConfigModel$(d, e.columnsWidth, s, p, e.filters, !0, e.isComparable, e.isDrillable, l, e.limit, o, e.periodType, e.rollup, e.rollupPosition, c, D, e.schemaNames, e.showGrandTotal, e.sorts, e.timezone)), y = e.get$joinDatasources().length + 1, s = r.QueryResponse, m = u._formatTableData(e, u.ListExtension_sublistOrEmpty(n, 0, y, s), i, a), g = H.comparison = u._formatTableData(e, u.ListExtension_sublistOrEmpty(n, y, y * 2, s), i, a), s = g.rows, s.length !== 0 && (o = m.rows, l = u._arrayInstanceType(o)._eval$1("MappedListIterable<1,List<@>>"), l = u.List_List$of(new u.MappedListIterable(o, new u.formatTableChartData_closure1(), l), !0, l._eval$1("ListIterable.E")), D = m.columns, d = u._arrayInstanceType(D)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), d = u.List_List$of(new u.MappedListIterable(D, new u.formatTableChartData_closure2(), d), !0, d._eval$1("ListIterable.E")), D = u._arrayInstanceType(s)._eval$1("MappedListIterable<1,List<@>>"), D = u.List_List$of(new u.MappedListIterable(s, new u.formatTableChartData_closure3(), D), !0, D._eval$1("ListIterable.E")), c = g.columns, p = u._arrayInstanceType(c)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), h = u.compare(new u.ComparisonData(u.List_List$of(new u.MappedListIterable(c, new u.formatTableChartData_closure4(), p), !0, p._eval$1("ListIterable.E")), D), new u.ComparisonData(d, l)), l = r.TableRowModel, o = u.ListExtensions_mapIndexed(o, new u.formatTableChartData_closure5(h), l, l), m = m.copyWith$1$rows(u.List_List$of(o, !0, o.$ti._eval$1("Iterable.E"))), l = u.ListExtensions_mapIndexed(s, new u.formatTableChartData_closure6(h), l, l), H.comparison = g.copyWith$1$rows(u.List_List$of(l, !0, l.$ti._eval$1("Iterable.E")))), s = m.columns, o = u._arrayInstanceType(s)._eval$1("WhereIterable<1>"), E = u.List_List$of(new u.WhereIterable(s, new u.formatTableChartData_closure7(), o), !0, o._eval$1("Iterable.E")), o = r.String, l = r.int, C = u.LinkedHashMap_LinkedHashMap$_empty(o, l), I = 0; I < s.length; ++I)
14852
+ M = s[I], C.$indexSet(0, M.key + "_" + M.hide, I);
14853
+ for (x = u.LinkedHashMap_LinkedHashMap$_empty(o, l), I = 0; s = H.comparison.columns, I < s.length; ++I)
14854
+ M = s[I], x.$indexSet(0, M.key + "_" + M.hide, I);
14855
+ for (R = u._setArrayType([], r.JSArray__ColumnMapping), s = E.length, L = 0; L < s; ++L)
14856
+ M = E[L], o = M.key, O = o + "_" + M.hide, o = u.stringReplaceAllUnchecked(o, ".", "_"), l = C.$index(0, O), l == null && (l = -1), D = x.$index(0, O), R.push(new u._ColumnMapping(M, o, l, D ?? -1));
14857
+ 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 = H.comparison.rows.length, o = r.TableRowModel, o = u.ListExtensions_mapIndexed(m.rows, new u.formatTableChartData_closure9(H, R, i, a, s !== 0, s), o, o), m.copyWith$2$columns$rows(v, u.List_List$of(o, !0, o.$ti._eval$1("Iterable.E")));
14859
14858
  },
14860
14859
  _formatTableResponse_closure: function(n) {
14861
14860
  this.config = n;
@@ -15102,8 +15101,8 @@ var Ge = Ye, Te = {};
15102
15101
  IterableExtension_mapIndexed$body(e, n, i, a, s) {
15103
15102
  return u._makeSyncStarIterable(function() {
15104
15103
  var o = e, l = n, D = 0, d = 1, c, p, y, m;
15105
- return function(h, A) {
15106
- for (h === 1 && (c = A, D = d); ; )
15104
+ return function(h, E) {
15105
+ for (h === 1 && (c = E, D = d); ; )
15107
15106
  switch (D) {
15108
15107
  case 0:
15109
15108
  p = o.get$iterator(o), y = 0;
@@ -15251,11 +15250,11 @@ var Ge = Ye, Te = {};
15251
15250
  }, r.Location);
15252
15251
  },
15253
15252
  _deserializeLocation(e) {
15254
- 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), m = o.getUint32(24, !1), g = o.getUint32(28, !1), h = $.C_AsciiCodec.decode$1(u.NativeUint8List_NativeUint8List$view(e.buffer, e.byteOffset + l, D)), A = u._setArrayType([], r.JSArray_String), C = u._setArrayType([], r.JSArray_TimeZone), F = r.JSArray_int, M = u._setArrayType([], F), x = u._setArrayType([], F), R = d + c;
15253
+ 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), m = o.getUint32(24, !1), g = 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;
15255
15254
  for (n = d, i = n; n < R; ++n)
15256
- e[n] === 0 && (F = e.buffer, a = e.byteOffset, F = new Uint8Array(F, a + i, n - i), A.push($.C_AsciiCodec.decode$1(F)), i = n + 1);
15255
+ 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);
15257
15256
  for (i = p, n = 0; n < y; ++n, i = s)
15258
- s = i + 8, C.push(new u.TimeZone(o.getInt32(i, !1) * 1e3, o.getUint8(i + 4) === 1, A[o.getUint8(i + 5)]));
15257
+ s = i + 8, C.push(new u.TimeZone(o.getInt32(i, !1) * 1e3, o.getUint8(i + 4) === 1, E[o.getUint8(i + 5)]));
15259
15258
  for (i = m, n = 0; n < g; ++n)
15260
15259
  M.push($.JSNumber_methods.toInt$0(o.getFloat64(i, !1)) * 1e3), i += 8;
15261
15260
  for (n = 0; n < g; ++n)
@@ -17273,21 +17272,21 @@ Arguments: [` + d + "]";
17273
17272
  }
17274
17273
  }, u.FormatException.prototype = {
17275
17274
  toString$0(e) {
17276
- var n, i, a, s, o, l, D, d, c, p, y, m = this.message, g = m !== "" ? "FormatException: " + m : "FormatException", h = this.offset, A = this.source;
17277
- if (typeof A == "string") {
17278
- if (h != null ? n = h < 0 || h > A.length : n = !1, n && (h = null), h == null)
17279
- return A.length > 78 && (A = $.JSString_methods.substring$2(A, 0, 75) + "..."), g + `
17280
- ` + A;
17275
+ var n, i, a, s, o, l, D, d, c, p, y, m = this.message, g = m !== "" ? "FormatException: " + m : "FormatException", h = this.offset, E = this.source;
17276
+ if (typeof E == "string") {
17277
+ if (h != null ? n = h < 0 || h > E.length : n = !1, n && (h = null), h == null)
17278
+ return E.length > 78 && (E = $.JSString_methods.substring$2(E, 0, 75) + "..."), g + `
17279
+ ` + E;
17281
17280
  for (i = 1, a = 0, s = !1, o = 0; o < h; ++o)
17282
- l = $.JSString_methods._codeUnitAt$1(A, o), l === 10 ? ((a !== o || !s) && ++i, a = o + 1, s = !1) : l === 13 && (++i, a = o + 1, s = !0);
17281
+ l = $.JSString_methods._codeUnitAt$1(E, o), l === 10 ? ((a !== o || !s) && ++i, a = o + 1, s = !1) : l === 13 && (++i, a = o + 1, s = !0);
17283
17282
  for (g = i > 1 ? g + (" (at line " + i + ", character " + (h - a + 1) + `)
17284
17283
  `) : g + (" (at character " + (h + 1) + `)
17285
- `), D = A.length, o = h; o < D; ++o)
17286
- if (l = $.JSString_methods.codeUnitAt$1(A, o), l === 10 || l === 13) {
17284
+ `), D = E.length, o = h; o < D; ++o)
17285
+ if (l = $.JSString_methods.codeUnitAt$1(E, o), l === 10 || l === 13) {
17287
17286
  D = o;
17288
17287
  break;
17289
17288
  }
17290
- return D - a > 78 ? h - a < 75 ? (d = a + 75, c = a, p = "", y = "...") : (D - h < 75 ? (c = D - 75, d = D, y = "") : (c = h - 36, d = h + 36, y = "..."), p = "...") : (d = D, c = a, p = "", y = ""), g + p + $.JSString_methods.substring$2(A, c, d) + y + `
17289
+ return D - a > 78 ? h - a < 75 ? (d = a + 75, c = a, p = "", y = "...") : (D - h < 75 ? (c = D - 75, d = D, y = "") : (c = h - 36, d = h + 36, y = "..."), p = "...") : (d = D, c = a, p = "", y = ""), g + p + $.JSString_methods.substring$2(E, c, d) + y + `
17291
17290
  ` + $.JSString_methods.$mul(" ", h - c + p.length) + `^
17292
17291
  `;
17293
17292
  } else
@@ -18296,8 +18295,8 @@ Arguments: [` + d + "]";
18296
18295
  }
18297
18296
  }, u.QueryResponse_fromJson_closure.prototype = {
18298
18297
  call$1(e) {
18299
- var n, i, a = null, s = "aggregationType", o = "optionType", l = "timeFormatter", D = "formatter", d = u.EnumByName_byName($.List_eNF, 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")), m = e.$index(0, "id"), g = 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, A = e.$index(0, "decimal"), C = e.$index(0, l) != null ? u.EnumByName_byName($.List_YsB, e.$index(0, l)) : a, F = e.$index(0, D) != null ? u.EnumByName_byName($.List_0, e.$index(0, D)) : a, M = e.$index(0, "nullable");
18300
- 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, m, g, h, A, C, F, M, n, i ?? !1);
18298
+ var n, i, a = null, s = "aggregationType", o = "optionType", l = "timeFormatter", D = "formatter", d = u.EnumByName_byName($.List_eNF, 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")), m = e.$index(0, "id"), g = 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");
18299
+ 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, m, g, h, E, C, I, M, n, i ?? !1);
18301
18300
  },
18302
18301
  $signature: 96
18303
18302
  }, u.QueryResponse_fromJson_closure0.prototype = {
@@ -19101,18 +19100,18 @@ Arguments: [` + d + "]";
19101
19100
  $signature: 0
19102
19101
  }, u._formatTableResponse_closure5.prototype = {
19103
19102
  call$2(e, n) {
19104
- var i, a, s, o, l, D, d, c, p, y, m, g, h, A, C, F, M, x, R, L, w = null, v = r.JSArray_List_dynamic, U = u._setArrayType([[]], v), Z = u._setArrayType([[]], v);
19103
+ var i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, I, M, x, R, L, O = null, v = r.JSArray_List_dynamic, H = u._setArrayType([[]], v), j = u._setArrayType([[]], v);
19105
19104
  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)
19106
19105
  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)
19107
- for (y = c.firstWhere$1(d, new u._formatTableResponse__closure6()), m = c.fold$2(d, !0, new u._formatTableResponse__closure7(n)), c = U.length, g = y.type, h = y.columnValue, A = 0; A < U.length; U.length === c || (0, u.throwConcurrentModificationError)(U), ++A)
19108
- C = U[A], m ? (F = i.$index(0, h), M = C.length, D >= M && $.JSArray_methods.addAll$1(C, u.List_List$filled(D - M + 1, w, !1, a)), C[D] = F) : (F = g == null ? w : u.DataTypeExtension_toData(g, w), M = C.length, D >= M && $.JSArray_methods.addAll$1(C, u.List_List$filled(D - M + 1, w, !1, a)), C[D] = F);
19106
+ for (y = c.firstWhere$1(d, new u._formatTableResponse__closure6()), m = c.fold$2(d, !0, new u._formatTableResponse__closure7(n)), c = H.length, g = y.type, h = y.columnValue, E = 0; E < H.length; H.length === c || (0, u.throwConcurrentModificationError)(H), ++E)
19107
+ C = H[E], m ? (I = i.$index(0, h), M = C.length, D >= M && $.JSArray_methods.addAll$1(C, u.List_List$filled(D - M + 1, O, !1, a)), C[D] = I) : (I = g == null ? O : u.DataTypeExtension_toData(g, O), M = C.length, D >= M && $.JSArray_methods.addAll$1(C, u.List_List$filled(D - M + 1, O, !1, a)), C[D] = I);
19109
19108
  else if ($.JSArray_methods.contains$1(u._setArrayType(["_metric_name", "_metric_value"], s), p))
19110
19109
  for (c = p === "_metric_value", g = p === "_metric_name", x = 0; x < l.length; ++x)
19111
- R = l[x], u.ListExtension_elementAtOrNull(U, x) == null && (U.push(u.List_List$of(U[0], !0, a)), Z.push(u.List_List$of(Z[0], !0, a))), g ? (h = U[x], F = R.label, M = h.length, D >= M && $.JSArray_methods.addAll$1(h, u.List_List$filled(D - M + 1, w, !1, a)), h[D] = F, Z[x].push(F)) : c && (h = U[x], F = i.$index(0, R.id), M = h.length, D >= M && $.JSArray_methods.addAll$1(h, u.List_List$filled(D - M + 1, w, !1, a)), h[D] = F);
19110
+ R = 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))), g ? (h = H[x], I = R.label, M = h.length, D >= M && $.JSArray_methods.addAll$1(h, u.List_List$filled(D - M + 1, O, !1, a)), h[D] = I, j[x].push(I)) : c && (h = H[x], I = i.$index(0, R.id), M = h.length, D >= M && $.JSArray_methods.addAll$1(h, u.List_List$filled(D - M + 1, O, !1, a)), h[D] = I);
19112
19111
  else
19113
- for (L = 0; L < U.length; ++L)
19114
- c = U[L], g = i.$index(0, p), h = c.length, D >= h && $.JSArray_methods.addAll$1(c, u.List_List$filled(D - h + 1, w, !1, a)), c[D] = g, Z[L].push(i.$index(0, p));
19115
- return _.addAll$1$ax(e, u.ListExtensions_mapIndexed(U, new u._formatTableResponse__closure8(Z, n), r.List_dynamic, r.Map_String_dynamic)), e;
19112
+ for (L = 0; L < H.length; ++L)
19113
+ c = H[L], g = 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] = g, j[L].push(i.$index(0, p));
19114
+ return _.addAll$1$ax(e, u.ListExtensions_mapIndexed(H, new u._formatTableResponse__closure8(j, n), r.List_dynamic, r.Map_String_dynamic)), e;
19116
19115
  },
19117
19116
  $signature: 79
19118
19117
  }, u._formatTableResponse__closure4.prototype = {
@@ -19351,10 +19350,10 @@ Arguments: [` + d + "]";
19351
19350
  $signature: 99
19352
19351
  }, u.formatTableChartData_closure9.prototype = {
19353
19352
  call$2(e, n) {
19354
- var i, a, s, o, l, D, d, c, p, y, m, g, h, A, C, F, M, x, R = this, L = [], w = [], v = n.cells, U = _.getInterceptor$asx(v), Z = U.get$length(v);
19353
+ var i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, I, M, x, R = this, L = [], O = [], v = n.cells, H = _.getInterceptor$asx(v), j = H.get$length(v);
19355
19354
  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)
19356
- p = i[c], y = p.mainIndex, m = y >= 0 && y < Z ? U.$index(v, y) : u.ListExtension_elementAtOrNull(v, y), y = p.column, g = y.type, h = g == null, L.push(h ? null : u.DataTypeExtension_toDisplay(g, y.aggregationType, o, y.decimal, y.dimensionOption, y.formatter, !1, y.timeFormatter, l, m)), s && (D ? (A = d.comparison.rows[e].cells, C = _.getInterceptor$asx(A), F = C.get$length(A), M = p.comparisonIndex, x = M >= 0 && M < F ? C.$index(A, M) : u.ListExtension_elementAtOrNull(A, M)) : x = u.ListExtension_elementAtOrNull([], p.comparisonIndex), w.push(h ? null : u.DataTypeExtension_toDisplay(g, y.aggregationType, o, y.decimal, y.dimensionOption, y.formatter, !1, y.timeFormatter, l, x)));
19357
- return n.copyWith$2$cells$comparisonCells(L, w);
19355
+ p = i[c], y = p.mainIndex, m = y >= 0 && y < j ? H.$index(v, y) : u.ListExtension_elementAtOrNull(v, y), y = p.column, g = y.type, h = g == null, L.push(h ? null : u.DataTypeExtension_toDisplay(g, y.aggregationType, o, y.decimal, y.dimensionOption, y.formatter, !1, y.timeFormatter, l, m)), s && (D ? (E = d.comparison.rows[e].cells, C = _.getInterceptor$asx(E), 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), O.push(h ? null : u.DataTypeExtension_toDisplay(g, y.aggregationType, o, y.decimal, y.dimensionOption, y.formatter, !1, y.timeFormatter, l, x)));
19356
+ return n.copyWith$2$cells$comparisonCells(L, O);
19358
19357
  },
19359
19358
  $signature: 7
19360
19359
  }, u.TZDateTime.prototype = {
@@ -19792,8 +19791,8 @@ Arguments: [` + d + "]";
19792
19791
  return a.message;
19793
19792
  }
19794
19793
  }())), 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", () => {
19795
- var a, s, o = u.EnLocale$($.StartOfWeek_1), l = u.EnLocale$($.StartOfWeek_1), D = u.EnLocale$($.StartOfWeek_1), d = u.EnLocale$($.StartOfWeek_1), c = u.EnLocale$($.StartOfWeek_1), p = u.EnLocale$($.StartOfWeek_2), y = u.EnLocale$($.StartOfWeek_2), m = u.EnLocale$($.StartOfWeek_1), g = u.EnLocale$($.StartOfWeek_1), h = u.EsLocale$($.StartOfWeek_2), A = u.EsLocale$($.StartOfWeek_2), C = u.EsLocale$($.StartOfWeek_1), F = u.FrLocale$($.StartOfWeek_2), M = u.FrLocale$($.StartOfWeek_2), x = u.FrLocale$($.StartOfWeek_1), R = u.ZhCnLocale$($.StartOfWeek_1), L = u.ZhCnLocale$($.StartOfWeek_1), w = u.ZhLocale$($.StartOfWeek_1), v = u.ZhLocale$($.StartOfWeek_1), U = u.DeLocale$($.StartOfWeek_2), Z = u.DeLocale$($.StartOfWeek_2), f0 = u.DeLocale$($.StartOfWeek_2), g0 = u.DeLocale$($.StartOfWeek_2), o0 = u.ItLocale$($.StartOfWeek_2), h0 = u.ItLocale$($.StartOfWeek_2), F0 = u.ArLyLocale$(!0, $.StartOfWeek_0), x0 = u.ArLyLocale$(!1, $.StartOfWeek_0), L0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_1), C0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_1), M0 = u.ArSaMaDzKwTnLocale$(!0, $.StartOfWeek_1), O0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_0), R0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_0);
19796
- return u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), a = u.PtLocale$($.StartOfWeek_2), s = u.PtLocale$($.StartOfWeek_1), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.LinkedHashMap_LinkedHashMap$_literal(["en", o, "en_us", l, "en_sg", D, "en_au", d, "en_ca", c, "en_gb", p, "en_ie", y, "en_il", m, "en_nz", g, "es", h, "es_do", A, "es_us", C, "fr", F, "fr_ch", M, "fr_ca", x, "zh", R, "zh_cn", L, "zh_hk", w, "zh_tw", v, "de", U, "de_de", Z, "de_at", f0, "de_ch", g0, "it", o0, "it_ch", h0, "ar", F0, "ar_ly", x0, "ar_dz", L0, "ar_kw", C0, "ar_sa", M0, "ar_ma", O0, "ar_tn", R0, "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"));
19794
+ var a, s, o = u.EnLocale$($.StartOfWeek_1), l = u.EnLocale$($.StartOfWeek_1), D = u.EnLocale$($.StartOfWeek_1), d = u.EnLocale$($.StartOfWeek_1), c = u.EnLocale$($.StartOfWeek_1), p = u.EnLocale$($.StartOfWeek_2), y = u.EnLocale$($.StartOfWeek_2), m = u.EnLocale$($.StartOfWeek_1), g = u.EnLocale$($.StartOfWeek_1), h = u.EsLocale$($.StartOfWeek_2), E = u.EsLocale$($.StartOfWeek_2), C = u.EsLocale$($.StartOfWeek_1), 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), 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), g0 = 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), T0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_1), I0 = u.ArSaMaDzKwTnLocale$(!0, $.StartOfWeek_1), x0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_0), F0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_0);
19795
+ return u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), a = u.PtLocale$($.StartOfWeek_2), s = u.PtLocale$($.StartOfWeek_1), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.LinkedHashMap_LinkedHashMap$_literal(["en", o, "en_us", l, "en_sg", D, "en_au", d, "en_ca", c, "en_gb", p, "en_ie", y, "en_il", m, "en_nz", g, "es", h, "es_do", E, "es_us", C, "fr", I, "fr_ch", M, "fr_ca", x, "zh", R, "zh_cn", L, "zh_hk", O, "zh_tw", v, "de", H, "de_de", j, "de_at", c0, "de_ch", g0, "it", a0, "it_ch", h0, "ar", b0, "ar_ly", M0, "ar_dz", R0, "ar_kw", T0, "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"));
19797
19796
  }), n(b, "_UTC", "$get$_UTC", () => {
19798
19797
  var a = r.JSArray_int;
19799
19798
  return u.Location$("UTC", u._setArrayType([-864e13], a), u._setArrayType([0], a), u._setArrayType([$.TimeZone_0_false_UTC], r.JSArray_TimeZone));
@@ -19828,7 +19827,7 @@ Arguments: [` + d + "]";
19828
19827
  return this(e, n, i);
19829
19828
  }, Function.prototype.call$8 = function(e, n, i, a, s, o, l, D) {
19830
19829
  return this(e, n, i, a, s, o, l, D);
19831
- }, c0(S), function(e) {
19830
+ }, f0(S), function(e) {
19832
19831
  if (typeof document > "u") {
19833
19832
  e(null);
19834
19833
  return;
@@ -19852,189 +19851,189 @@ Arguments: [` + d + "]";
19852
19851
  });
19853
19852
  })();
19854
19853
  };
19855
- })(Te);
19856
- const Ce = Te;
19857
- Ce.load({});
19858
- var ze = Ce;
19859
- const _e = new Intl.Collator(void 0, { numeric: !0, sensitivity: "base" }), We = (() => {
19860
- const E = new Intl.DateTimeFormat("en-US", { weekday: "short" });
19854
+ })(ge);
19855
+ const he = ge;
19856
+ he.load({});
19857
+ var Ue = he;
19858
+ const ae = new Intl.Collator(void 0, { numeric: !0, sensitivity: "base" }), qe = (() => {
19859
+ const A = new Intl.DateTimeFormat("en-US", { weekday: "short" });
19861
19860
  return Array.from(
19862
19861
  { length: 7 },
19863
- (I, O) => E.format(new Date(1970, 0, 4 + O)).toLowerCase().slice(0, 3)
19862
+ (F, w) => A.format(new Date(1970, 0, 4 + w)).toLowerCase().slice(0, 3)
19864
19863
  );
19865
19864
  })();
19866
- function De(E) {
19867
- if (E == null || E === "") return null;
19868
- const I = String(E).trim();
19869
- if (I === "") return null;
19870
- const O = I.toLowerCase().slice(0, 3), P = We.indexOf(O);
19871
- if (P !== -1 && I.length <= 3)
19865
+ function ue(A) {
19866
+ if (A == null || A === "") return null;
19867
+ const F = String(A).trim();
19868
+ if (F === "") return null;
19869
+ const w = F.toLowerCase().slice(0, 3), P = qe.indexOf(w);
19870
+ if (P !== -1 && F.length <= 3)
19872
19871
  return { type: "dayName", value: P };
19873
- const B = I.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})\s+(\d{1,2}):(\d{2})(?::(\d{2}))?$/);
19872
+ const B = F.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})\s+(\d{1,2}):(\d{2})(?::(\d{2}))?$/);
19874
19873
  if (B) {
19875
- const [, H, Y, X, t0, G, j = "0"] = B;
19874
+ const [, N, V, z, r0, W, Z = "0"] = B;
19876
19875
  return {
19877
19876
  type: "fullDateTime",
19878
19877
  value: new Date(
19879
- parseInt(X),
19880
- parseInt(Y) - 1,
19881
- parseInt(H),
19882
- parseInt(t0),
19883
- parseInt(G),
19884
- parseInt(j)
19878
+ parseInt(z),
19879
+ parseInt(V) - 1,
19880
+ parseInt(N),
19881
+ parseInt(r0),
19882
+ parseInt(W),
19883
+ parseInt(Z)
19885
19884
  ).getTime()
19886
19885
  };
19887
19886
  }
19888
- const N = I.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/);
19889
- if (N) {
19890
- const [, H, Y, X] = N;
19887
+ const k = F.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/);
19888
+ if (k) {
19889
+ const [, N, V, z] = k;
19891
19890
  return {
19892
19891
  type: "date",
19893
- value: new Date(parseInt(X), parseInt(Y) - 1, parseInt(H)).getTime()
19892
+ value: new Date(parseInt(z), parseInt(V) - 1, parseInt(N)).getTime()
19894
19893
  };
19895
19894
  }
19896
- const J = I.match(/^(\d{4})\/(\d{1,2})\/(\d{1,2})$/);
19895
+ const J = F.match(/^(\d{4})\/(\d{1,2})\/(\d{1,2})$/);
19897
19896
  if (J) {
19898
- const [, H, Y, X] = J;
19897
+ const [, N, V, z] = J;
19899
19898
  return {
19900
19899
  type: "date",
19901
- value: new Date(parseInt(H), parseInt(Y) - 1, parseInt(X)).getTime()
19900
+ value: new Date(parseInt(N), parseInt(V) - 1, parseInt(z)).getTime()
19902
19901
  };
19903
19902
  }
19904
- const Q = I.match(/^(\d{1,2})\/(\d{4})$/);
19905
- if (Q) {
19906
- const [, H, Y] = Q;
19903
+ const q = F.match(/^(\d{1,2})\/(\d{4})$/);
19904
+ if (q) {
19905
+ const [, N, V] = q;
19907
19906
  return {
19908
19907
  type: "monthYear",
19909
- value: new Date(parseInt(Y), parseInt(H) - 1, 1).getTime()
19908
+ value: new Date(parseInt(V), parseInt(N) - 1, 1).getTime()
19910
19909
  };
19911
19910
  }
19912
- const q = I.match(/^(\d{1,2}):(\d{2})(?::(\d{2}))?$/);
19913
- if (q) {
19914
- const [, H, Y, X = "0"] = q;
19911
+ const U = F.match(/^(\d{1,2}):(\d{2})(?::(\d{2}))?$/);
19912
+ if (U) {
19913
+ const [, N, V, z = "0"] = U;
19915
19914
  return {
19916
19915
  type: "time",
19917
- value: parseInt(H) * 3600 + parseInt(Y) * 60 + parseInt(X)
19916
+ value: parseInt(N) * 3600 + parseInt(V) * 60 + parseInt(z)
19918
19917
  };
19919
19918
  }
19920
- return /^\d+$/.test(I) ? { type: "number", value: parseInt(I) } : null;
19919
+ return /^\d+$/.test(F) ? { type: "number", value: parseInt(F) } : null;
19921
19920
  }
19922
- function de(E, I) {
19923
- const O = De(E), P = De(I);
19924
- return !O && !P ? null : O ? P ? (O.type === P.type, O.value - P.value) : -1 : 1;
19921
+ function se(A, F) {
19922
+ const w = ue(A), P = ue(F);
19923
+ return !w && !P ? null : w ? P ? (w.type === P.type, w.value - P.value) : -1 : 1;
19925
19924
  }
19926
- function je(E, I) {
19925
+ function Qe(A, F) {
19927
19926
  var P;
19928
- const O = { isRollup: E.isRollup };
19929
- for (let B = 0; B < I.length; B++) {
19930
- const N = I[B].key;
19931
- N && (O[N] = {
19932
- main: E.cells[B],
19933
- comparison: (P = E.comparisonCells) == null ? void 0 : P[B]
19927
+ const w = { isRollup: A.isRollup };
19928
+ for (let B = 0; B < F.length; B++) {
19929
+ const k = F[B].key;
19930
+ k && (w[k] = {
19931
+ main: A.cells[B],
19932
+ comparison: (P = A.comparisonCells) == null ? void 0 : P[B]
19934
19933
  });
19935
19934
  }
19936
- return O;
19935
+ return w;
19937
19936
  }
19938
- function Ke(E, I) {
19939
- if (E <= 0) return [];
19940
- const O = {};
19941
- for (const P of I) O[P.key] = void 0;
19942
- return Array.from({ length: E }, () => ({ ...O }));
19937
+ function Xe(A, F) {
19938
+ if (A <= 0) return [];
19939
+ const w = {};
19940
+ for (const P of F) w[P.key] = void 0;
19941
+ return Array.from({ length: A }, () => ({ ...w }));
19943
19942
  }
19944
- function V0(E, I, O) {
19945
- var B, N;
19946
- if (((B = E[I]) == null ? void 0 : B.main) !== void 0) return E[I].main;
19947
- const P = O.findIndex((J) => J.key === I);
19948
- return P >= 0 ? (N = E.cells) == null ? void 0 : N[P] : void 0;
19943
+ function q0(A, F, w) {
19944
+ var B, k;
19945
+ if (((B = A[F]) == null ? void 0 : B.main) !== void 0) return A[F].main;
19946
+ const P = w.findIndex((J) => J.key === F);
19947
+ return P >= 0 ? (k = A.cells) == null ? void 0 : k[P] : void 0;
19949
19948
  }
19950
- function Ze(E) {
19951
- var K, a0, n0, l0, c0, p0;
19949
+ function Ve(A) {
19950
+ var u0, o0, s0, _0, f0, p0;
19952
19951
  const {
19953
- rows: I = [],
19954
- columns: O = [],
19952
+ rows: F = [],
19953
+ columns: w = [],
19955
19954
  globalSorts: P = [],
19956
19955
  filter: B = null,
19957
- grandTotalPosition: N = null,
19956
+ grandTotalPosition: k = null,
19958
19957
  pageSize: J = 0
19959
- } = E;
19960
- let Q = Array.isArray(I) ? [...I] : [];
19961
- N === "BOTTOM" && ((K = Q.at(-1)) != null && K.isRollup) && Q.pop(), N === "TOP" && ((a0 = Q[0]) != null && a0.isRollup) && Q.shift();
19962
- let q = 0;
19963
- for (const V of Q)
19964
- V.isRollup && q++, V.groupIndex = q;
19965
- const H = {};
19966
- for (const V of O) H[V.key] = V.type === "NUMERIC";
19967
- const Y = P.filter(
19968
- (V) => V.key && O.some((z) => z.key === V.key)
19969
- ), X = Y.length > 0;
19970
- let t0 = I;
19971
- B !== null && (t0 = t0.filter((V) => !(B !== "" && (V.isRollup === !0 || !V.cells.some((z) => ((z == null ? void 0 : z.toLowerCase()) || "").includes(B == null ? void 0 : B.toLowerCase()))))).map((V) => ({ ...je(V, O), groupIndex: V.groupIndex })));
19972
- const G = {};
19973
- for (const V of t0) {
19974
- const z = V.groupIndex;
19975
- z !== void 0 && (G[z] || (G[z] = [])).push(V);
19958
+ } = A;
19959
+ let q = Array.isArray(F) ? [...F] : [];
19960
+ k === "BOTTOM" && ((u0 = q.at(-1)) != null && u0.isRollup) && q.pop(), k === "TOP" && ((o0 = q[0]) != null && o0.isRollup) && q.shift();
19961
+ let U = 0;
19962
+ for (const Q of q)
19963
+ Q.isRollup && U++, Q.groupIndex = U;
19964
+ const N = {};
19965
+ for (const Q of w) N[Q.key] = Q.type === "NUMERIC";
19966
+ const V = P.filter(
19967
+ (Q) => Q.key && w.some((Y) => Y.key === Q.key)
19968
+ ), z = V.length > 0;
19969
+ let r0 = F;
19970
+ B !== null && (r0 = r0.filter((Q) => !(B !== "" && (Q.isRollup === !0 || !Q.cells.some((Y) => ((Y == null ? void 0 : Y.toLowerCase()) || "").includes(B == null ? void 0 : B.toLowerCase()))))).map((Q) => ({ ...Qe(Q, w), groupIndex: Q.groupIndex })));
19971
+ const W = {};
19972
+ for (const Q of r0) {
19973
+ const Y = Q.groupIndex;
19974
+ Y !== void 0 && (W[Y] || (W[Y] = [])).push(Q);
19976
19975
  }
19977
- X && Object.values(G).forEach((V) => {
19978
- const z = V.filter((r0) => r0.isRollup), u0 = V.filter((r0) => !r0.isRollup);
19979
- u0.sort((r0, s0) => {
19980
- for (const { key: W, type: i0 } of Y) {
19981
- const D0 = i0 === "ASC" ? 1 : -1, e0 = V0(r0, W, O) ?? "", t = V0(s0, W, O) ?? "";
19982
- if (H[W]) {
19983
- const u = Number(e0) - Number(t);
19984
- if (u !== 0) return u * D0;
19976
+ z && Object.values(W).forEach((Q) => {
19977
+ const Y = Q.filter((e0) => e0.isRollup), n0 = Q.filter((e0) => !e0.isRollup);
19978
+ n0.sort((e0, i0) => {
19979
+ for (const { key: G, type: t0 } of V) {
19980
+ const l0 = t0 === "ASC" ? 1 : -1, K = q0(e0, G, w) ?? "", t = q0(i0, G, w) ?? "";
19981
+ if (N[G]) {
19982
+ const u = Number(K) - Number(t);
19983
+ if (u !== 0) return u * l0;
19985
19984
  } else {
19986
- const u = de(e0, t);
19985
+ const u = se(K, t);
19987
19986
  if (u !== null && u !== 0)
19988
- return u * D0;
19989
- const _ = _e.compare(String(e0), String(t));
19990
- if (_ !== 0) return _ * D0;
19987
+ return u * l0;
19988
+ const _ = ae.compare(String(K), String(t));
19989
+ if (_ !== 0) return _ * l0;
19991
19990
  }
19992
19991
  }
19993
19992
  return 0;
19994
- }), G[V[0].groupIndex] = z.concat(u0);
19993
+ }), W[Q[0].groupIndex] = Y.concat(n0);
19995
19994
  });
19996
- let j;
19997
- if (X) {
19998
- const V = N === null ? (() => {
19999
- const r0 = Object.keys(G).find((s0) => {
20000
- const W = G[s0] || [], i0 = W.some((e0) => e0.isRollup), D0 = W.some((e0) => !e0.isRollup);
20001
- return i0 && !D0;
19995
+ let Z;
19996
+ if (z) {
19997
+ const Q = k === null ? (() => {
19998
+ const e0 = Object.keys(W).find((i0) => {
19999
+ const G = W[i0] || [], t0 = G.some((K) => K.isRollup), l0 = G.some((K) => !K.isRollup);
20000
+ return t0 && !l0;
20002
20001
  });
20003
- return r0 !== void 0 ? Number(r0) : -1;
20004
- })() : -1, z = ((n0 = Y[0]) == null ? void 0 : n0.key) ?? ((l0 = O.find((r0) => H[r0.key])) == null ? void 0 : l0.key), u0 = ((c0 = Y[0]) == null ? void 0 : c0.type) === "ASC" ? 1 : (((p0 = Y[0]) == null ? void 0 : p0.type) === "DESC", -1);
20005
- j = Object.keys(G).map(Number).sort((r0, s0) => {
20006
- if (!z) return r0 - s0;
20007
- if (V !== -1) {
20008
- if (r0 === V) return -1;
20009
- if (s0 === V) return 1;
20002
+ return e0 !== void 0 ? Number(e0) : -1;
20003
+ })() : -1, Y = ((s0 = V[0]) == null ? void 0 : s0.key) ?? ((_0 = w.find((e0) => N[e0.key])) == null ? void 0 : _0.key), n0 = ((f0 = V[0]) == null ? void 0 : f0.type) === "ASC" ? 1 : (((p0 = V[0]) == null ? void 0 : p0.type) === "DESC", -1);
20004
+ Z = Object.keys(W).map(Number).sort((e0, i0) => {
20005
+ if (!Y) return e0 - i0;
20006
+ if (Q !== -1) {
20007
+ if (e0 === Q) return -1;
20008
+ if (i0 === Q) return 1;
20010
20009
  }
20011
- const W = G[r0].find((u) => u.isRollup), i0 = G[s0].find((u) => u.isRollup), D0 = W ? V0(W, z, O) ?? "" : "", e0 = i0 ? V0(i0, z, O) ?? "" : "";
20012
- if (H[z]) return (Number(D0) - Number(e0)) * u0;
20013
- const t = de(D0, e0);
20014
- return t !== null ? t * u0 : _e.compare(String(D0), String(e0)) * u0;
20010
+ const G = W[e0].find((u) => u.isRollup), t0 = W[i0].find((u) => u.isRollup), l0 = G ? q0(G, Y, w) ?? "" : "", K = t0 ? q0(t0, Y, w) ?? "" : "";
20011
+ if (N[Y]) return (Number(l0) - Number(K)) * n0;
20012
+ const t = se(l0, K);
20013
+ return t !== null ? t * n0 : ae.compare(String(l0), String(K)) * n0;
20015
20014
  });
20016
20015
  } else
20017
- j = Object.keys(G).map(Number).sort((V, z) => V - z);
20018
- const k = [];
20019
- for (const V of j)
20020
- for (const { groupIndex: z, ...u0 } of G[V])
20021
- k.push(u0);
20016
+ Z = Object.keys(W).map(Number).sort((Q, Y) => Q - Y);
20017
+ const X = [];
20018
+ for (const Q of Z)
20019
+ for (const { groupIndex: Y, ...n0 } of W[Q])
20020
+ X.push(n0);
20022
20021
  if (J > 0) {
20023
- const V = k.length % J;
20024
- let z = 0;
20025
- V > 0 ? z = J - V : k.length === 0 && (z = J), z > 0 && k.push(...Ke(z, O));
20022
+ const Q = X.length % J;
20023
+ let Y = 0;
20024
+ Q > 0 ? Y = J - Q : X.length === 0 && (Y = J), Y > 0 && X.push(...Xe(Y, w));
20026
20025
  }
20027
- return { data: k };
20026
+ return { data: X };
20028
20027
  }
20029
- var et = { processTableData: Ze };
20030
- const tt = Ge, rt = ze, nt = et;
20031
- var ae = {
20032
- ...nt,
20033
- ...rt,
20034
- ...tt
20035
- }, Q0 = /* @__PURE__ */ ((E) => (E.DateTime = "DATE_TIME", E.Hour = "HOUR", E.Day = "DAY", E.Week = "WEEK", E.Month = "MONTH", E.TimeOfDay = "TIME_OF_DAY", E.HourOfDay = "HOUR_OF_DAY", E.DayOfWeek = "DAY_OF_WEEK", E.DayOfMonth = "DAY_OF_MONTH", E.MonthOfYear = "MONTH_OF_YEAR", E.Year = "YEAR", E.YearMonthDay = "YEAR_MONTH_DAY", E))(Q0 || {}), it = /* @__PURE__ */ ((E) => (E.Asc = "ASC", E.Desc = "DESC", E))(it || {}), ue = /* @__PURE__ */ ((E) => (E.Equal = "EQUAL", E.NotEqual = "NOT_EQUAL", E.GreaterThan = "GREATER_THAN", E.LessThan = "LESS_THAN", E.GreaterThanOrEqual = "GREATER_THAN_OR_EQUAL", E.LessThanOrEqual = "LESS_THAN_OR_EQUAL", E.Between = "BETWEEN", E.Like = "LIKE", E.NotLike = "NOT_LIKE", E.And = "AND", E.Or = "OR", E))(ue || {}), at = /* @__PURE__ */ ((E) => (E.String = "STRING", E.Timestamp = "TIMESTAMP", E.Bool = "BOOL", E.Numeric = "NUMERIC", E))(at || {}), ut = /* @__PURE__ */ ((E) => (E.MTD = "MTD", E))(ut || {}), st = /* @__PURE__ */ ((E) => (E.Scorecard = "SCORECARD", E.Spacer = "SPACER", E.Table = "TABLE", E.BarChart = "BARCHART", E.StackBarChart = "STACKBARCHART", E.ClusteredStackBarChart = "CLUSTEREDSTACKBARCHART", E.LineChart = "LINECHART", E.StackLineChart = "STACKLINECHART", E.Circular = "CIRCULAR", E))(st || {}), ot = /* @__PURE__ */ ((E) => (E.EXCEL = "excel", E.PDF = "pdf", E.PDFFULLSIZE = "pdfFullSize", E.PDFRECEIPT = "pdfReceipt", E))(ot || {}), lt = /* @__PURE__ */ ((E) => (E.PORTRAIT = "portrait", E.LANDSCAPE = "landscape", E))(lt || {});
20036
- function ir(E) {
20037
- switch (E) {
20028
+ var Ye = { processTableData: Ve };
20029
+ const Ge = ke, ze = Ue, We = Ye;
20030
+ var ee = {
20031
+ ...We,
20032
+ ...ze,
20033
+ ...Ge
20034
+ }, U0 = /* @__PURE__ */ ((A) => (A.DateTime = "DATE_TIME", A.Hour = "HOUR", A.Day = "DAY", A.Week = "WEEK", A.Month = "MONTH", A.TimeOfDay = "TIME_OF_DAY", A.HourOfDay = "HOUR_OF_DAY", A.DayOfWeek = "DAY_OF_WEEK", A.DayOfMonth = "DAY_OF_MONTH", A.MonthOfYear = "MONTH_OF_YEAR", A.Year = "YEAR", A.YearMonthDay = "YEAR_MONTH_DAY", A))(U0 || {}), je = /* @__PURE__ */ ((A) => (A.Asc = "ASC", A.Desc = "DESC", A))(je || {}), te = /* @__PURE__ */ ((A) => (A.Equal = "EQUAL", A.NotEqual = "NOT_EQUAL", A.GreaterThan = "GREATER_THAN", A.LessThan = "LESS_THAN", A.GreaterThanOrEqual = "GREATER_THAN_OR_EQUAL", A.LessThanOrEqual = "LESS_THAN_OR_EQUAL", A.Between = "BETWEEN", A.Like = "LIKE", A.NotLike = "NOT_LIKE", A.And = "AND", A.Or = "OR", A))(te || {}), Ke = /* @__PURE__ */ ((A) => (A.String = "STRING", A.Timestamp = "TIMESTAMP", A.Bool = "BOOL", A.Numeric = "NUMERIC", A))(Ke || {}), Ze = /* @__PURE__ */ ((A) => (A.MTD = "MTD", A))(Ze || {}), et = /* @__PURE__ */ ((A) => (A.Scorecard = "SCORECARD", A.Spacer = "SPACER", A.Table = "TABLE", A.BarChart = "BARCHART", A.StackBarChart = "STACKBARCHART", A.ClusteredStackBarChart = "CLUSTEREDSTACKBARCHART", A.LineChart = "LINECHART", A.StackLineChart = "STACKLINECHART", A.Circular = "CIRCULAR", A))(et || {}), tt = /* @__PURE__ */ ((A) => (A.EXCEL = "excel", A.PDF = "pdf", A.PDFFULLSIZE = "pdfFullSize", A.PDFRECEIPT = "pdfReceipt", A))(tt || {}), rt = /* @__PURE__ */ ((A) => (A.PORTRAIT = "portrait", A.LANDSCAPE = "landscape", A))(rt || {});
20035
+ function Gt(A) {
20036
+ switch (A) {
20038
20037
  case "excel":
20039
20038
  return "Excel";
20040
20039
  case "pdf":
@@ -20047,8 +20046,8 @@ function ir(E) {
20047
20046
  return "Unknown";
20048
20047
  }
20049
20048
  }
20050
- function ar(E) {
20051
- switch (E) {
20049
+ function zt(A) {
20050
+ switch (A) {
20052
20051
  case "landscape":
20053
20052
  return "report.common.landscape";
20054
20053
  case "portrait":
@@ -20057,112 +20056,112 @@ function ar(E) {
20057
20056
  return "report.input.unknown";
20058
20057
  }
20059
20058
  }
20060
- const B0 = "/report-settings", _t = async () => {
20061
- const { businessId: E } = d0($0());
20062
- if (E) {
20063
- const I = {
20059
+ const w0 = "/report-settings", nt = async () => {
20060
+ const { businessId: A } = d0(y0());
20061
+ if (A) {
20062
+ const F = {
20064
20063
  fetchType: m0.Get,
20065
- url: `${B0}/${E.value}/reports`
20064
+ url: `${w0}/${A.value}/reports`
20066
20065
  };
20067
- return E0.fetch(I);
20066
+ return E0.fetch(F);
20068
20067
  } else
20069
20068
  return Promise.reject(new Error("Business Id is not defined"));
20070
- }, Dt = (E) => {
20071
- const { businessId: I } = d0($0()), O = {
20069
+ }, it = (A) => {
20070
+ const { businessId: F } = d0(y0()), w = {
20072
20071
  fetchType: m0.Put,
20073
- url: `${B0}/${I.value}/reports/${E.id}`,
20074
- data: E
20072
+ url: `${w0}/${F.value}/reports/${A.id}`,
20073
+ data: A
20075
20074
  };
20076
- return E0.fetch(O);
20077
- }, dt = (E) => {
20078
- const { businessId: I } = d0($0()), O = {
20075
+ return E0.fetch(w);
20076
+ }, at = (A) => {
20077
+ const { businessId: F } = d0(y0()), w = {
20079
20078
  fetchType: m0.Post,
20080
- url: `${B0}/${I.value}/reports`,
20081
- data: E
20079
+ url: `${w0}/${F.value}/reports`,
20080
+ data: A
20082
20081
  };
20083
- return E0.fetch(O);
20084
- }, ct = (E) => {
20085
- const { businessId: I } = d0($0()), O = {
20082
+ return E0.fetch(w);
20083
+ }, ut = (A) => {
20084
+ const { businessId: F } = d0(y0()), w = {
20086
20085
  fetchType: m0.Delete,
20087
- url: `${B0}/${I.value}/reports/${E.id}`
20086
+ url: `${w0}/${F.value}/reports/${A.id}`
20088
20087
  };
20089
- return E0.fetch(O);
20090
- }, ft = (E) => {
20091
- const { businessId: I } = d0($0()), O = {
20088
+ return E0.fetch(w);
20089
+ }, st = (A) => {
20090
+ const { businessId: F } = d0(y0()), w = {
20092
20091
  fetchType: m0.Put,
20093
- url: `${B0}/${I.value}/reports/default`,
20094
- data: { defaultReport: E }
20092
+ url: `${w0}/${F.value}/reports/default`,
20093
+ data: { defaultReport: A }
20095
20094
  };
20096
- return E0.fetch(O);
20097
- }, ur = (E, I) => {
20098
- const { businessId: O } = d0($0()), P = {
20095
+ return E0.fetch(w);
20096
+ }, Wt = (A, F) => {
20097
+ const { businessId: w } = d0(y0()), P = {
20099
20098
  fetchType: m0.Put,
20100
- url: `${B0}/${O.value}/reports/${E}/pos-support`,
20101
- data: { isSupportPos: I }
20099
+ url: `${w0}/${w.value}/reports/${A}/pos-support`,
20100
+ data: { isSupportPos: F }
20102
20101
  };
20103
20102
  return E0.fetch(P);
20104
- }, pt = async () => {
20105
- const { businessId: E } = d0($0());
20106
- if (E) {
20107
- const I = {
20103
+ }, ot = async () => {
20104
+ const { businessId: A } = d0(y0());
20105
+ if (A) {
20106
+ const F = {
20108
20107
  fetchType: m0.Get,
20109
- url: `${B0}/${E.value}/overview-report`
20108
+ url: `${w0}/${A.value}/overview-report`
20110
20109
  };
20111
- return E0.fetch(I);
20110
+ return E0.fetch(F);
20112
20111
  } else
20113
20112
  return Promise.reject(new Error("Business Id is not defined"));
20114
- }, $t = async () => {
20115
- const { businessId: E } = d0($0());
20116
- if (E) {
20117
- const I = {
20113
+ }, lt = async () => {
20114
+ const { businessId: A } = d0(y0());
20115
+ if (A) {
20116
+ const F = {
20118
20117
  fetchType: m0.Get,
20119
- url: `${B0}/${E.value}/config`
20118
+ url: `${w0}/${A.value}/config`
20120
20119
  };
20121
- return E0.fetch(I);
20120
+ return E0.fetch(F);
20122
20121
  } else
20123
20122
  return Promise.reject(new Error("Business Id is not defined"));
20124
- }, yt = "/report-settings", mt = async () => {
20125
- const { businessId: E } = d0($0());
20126
- if (E) {
20127
- const I = {
20123
+ }, _t = "/report-settings", Dt = async () => {
20124
+ const { businessId: A } = d0(y0());
20125
+ if (A) {
20126
+ const F = {
20128
20127
  fetchType: m0.Get,
20129
- url: `${yt}/${E.value}/categories`
20128
+ url: `${_t}/${A.value}/categories`
20130
20129
  };
20131
- return E0.fetch(I);
20130
+ return E0.fetch(F);
20132
20131
  } else
20133
20132
  return Promise.reject(new Error("Business Id is not defined"));
20134
20133
  };
20135
- function K0(E, I = {}) {
20136
- const O = localStorage.getItem(E);
20137
- return O === null && (I == null ? void 0 : I.fallback) !== void 0 ? I.fallback : O === null ? null : I.format ? I.format(O) : O;
20134
+ function z0(A, F = {}) {
20135
+ const w = localStorage.getItem(A);
20136
+ return w === null && (F == null ? void 0 : F.fallback) !== void 0 ? F.fallback : w === null ? null : F.format ? F.format(w) : w;
20138
20137
  }
20139
- const U0 = {
20140
- get: K0,
20141
- getJson: (E) => K0(E, {
20138
+ const N0 = {
20139
+ get: z0,
20140
+ getJson: (A) => z0(A, {
20142
20141
  fallback: {},
20143
- format: (I) => JSON.parse(I)
20142
+ format: (F) => JSON.parse(F)
20144
20143
  }),
20145
- getNumber: (E) => K0(E, {
20144
+ getNumber: (A) => z0(A, {
20146
20145
  fallback: null,
20147
- format: (I) => Number(I)
20146
+ format: (F) => Number(F)
20148
20147
  }),
20149
20148
  set: localStorage.setItem,
20150
- setJson: (E, I) => {
20151
- localStorage.setItem(E, JSON.stringify(I));
20149
+ setJson: (A, F) => {
20150
+ localStorage.setItem(A, JSON.stringify(F));
20152
20151
  }
20153
- }, gt = () => {
20154
- const E = {
20152
+ }, dt = () => {
20153
+ const A = {
20155
20154
  fetchType: m0.Get,
20156
20155
  url: "/schemas"
20157
20156
  };
20158
- return E0.fetch(E);
20159
- }, ht = "mf-reportschema-store", St = X0(ht, () => {
20160
- const E = _0([]), I = Se();
20161
- async function O() {
20157
+ return E0.fetch(A);
20158
+ }, ct = "mf-reportschema-store", ft = Y0(ct, () => {
20159
+ const A = D0([]), F = $e();
20160
+ async function w() {
20162
20161
  try {
20163
- E.value = await gt();
20162
+ A.value = await dt();
20164
20163
  } catch (P) {
20165
- console.log(P), I.open({
20164
+ console.log(P), F.open({
20166
20165
  title: "Get Schema Error",
20167
20166
  message: "Internal Server Error",
20168
20167
  type: "error"
@@ -20170,148 +20169,79 @@ const U0 = {
20170
20169
  }
20171
20170
  }
20172
20171
  return {
20173
- schemas: E,
20174
- getSchema: O
20172
+ schemas: A,
20173
+ getSchema: w
20175
20174
  };
20176
20175
  });
20177
- async function At(E, I) {
20178
- const { businessId: O } = d0($0());
20179
- if (!O.value)
20176
+ async function pt(A, F) {
20177
+ const { businessId: w } = d0(y0());
20178
+ if (!w.value)
20180
20179
  return Promise.reject(new Error("Failed to grant permission. Business Id is not defined"));
20181
- if (!E || !I)
20180
+ if (!A || !F)
20182
20181
  return Promise.reject(new Error("Failed to grant permission. Permission key or report label is not defined"));
20183
20182
  const P = {
20184
20183
  fetchType: m0.Post,
20185
- url: `/businesses/${O.value}/my-permissions/report-manage`,
20186
- data: { permissionKey: E, label: I }
20184
+ url: `/businesses/${w.value}/my-permissions/report-manage`,
20185
+ data: { permissionKey: A, label: F }
20187
20186
  };
20188
- await we.fetch(P);
20189
- }
20190
- function Et(E) {
20191
- const I = E.permissionKey || E.id;
20192
- return I ? `business::report::reports::${I}` : null;
20187
+ await Ie.fetch(P);
20193
20188
  }
20194
- function be() {
20195
- const { sessionUser: E } = ie(), I = ye(), { country: O } = d0($0()), P = J0.report_reports_allDefaultReports, B = J0.report_reports_allCustomReports, N = A0(() => {
20196
- const k = I.flags.find(
20197
- (K) => K.key === ee.report_portal_permission_th_control_temp
20198
- );
20199
- return O.value.toUpperCase() === "TH" && (k == null ? void 0 : k.value) === !0;
20200
- }), J = A0(() => {
20201
- if (N.value)
20202
- return !0;
20203
- const k = I.flags.find(
20204
- (K) => K.key === ee.report_portal_permission
20205
- );
20206
- return (k == null ? void 0 : k.value) === !0;
20207
- }), Q = A0(
20208
- () => {
20209
- var k, K;
20210
- return Array.isArray((k = E.value) == null ? void 0 : k.permissions) ? (K = E.value) == null ? void 0 : K.permissions : [];
20211
- }
20212
- );
20213
- function q(k, K) {
20214
- if (!J.value) return !0;
20215
- const a0 = Et(k);
20216
- return !a0 || !Q.value.length ? !1 : K.some((n0) => {
20217
- const l0 = {
20218
- action: n0,
20219
- // Report subjects are custom strings; cast to satisfy CaslPermission type
20220
- subject: a0,
20221
- coverSubject: k != null && k.isDefault ? P : B
20222
- };
20223
- return te([l0], Q.value).granted;
20224
- });
20225
- }
20226
- function H(k) {
20227
- return q(k, [b0.update, b0.manage]);
20228
- }
20229
- function Y(k) {
20230
- return q(k, [b0.read, b0.manage]);
20231
- }
20232
- function X(k) {
20233
- return q(k, [b0.delete, b0.manage]);
20234
- }
20235
- function t0(k) {
20236
- return q(k, [b0.manage]);
20237
- }
20238
- function G(k) {
20239
- return q(k, [b0.create, b0.manage]);
20240
- }
20241
- const j = A0(() => {
20242
- if (!J.value) return !0;
20243
- const k = J0.report_createReport;
20244
- return Q.value.length ? [b0.create, b0.manage].some((K) => te([{
20245
- action: K,
20246
- subject: k
20247
- }], Q.value).granted) : !1;
20248
- });
20249
- return {
20250
- isReportPermissionEnabled: J,
20251
- canRead: Y,
20252
- canUpdate: H,
20253
- canDelete: X,
20254
- canManage: t0,
20255
- canDuplicate: G,
20256
- canCreateReport: j
20257
- };
20258
- }
20259
- const Tt = "mf-reportreport-store", se = X0(Tt, () => {
20260
- const { business: E, globalFilters: I } = d0(z0()), { schemas: O } = d0(St()), { flags: P } = d0(ye()), B = _0([]), N = _0([]), J = _0(0), Q = Se(), q = A0(() => B.value.filter((f) => f.editable)), H = A0(() => B.value.filter((f) => !f.editable)), Y = _0(!1), X = _0(""), t0 = _0(), G = _0(), j = A0(() => {
20189
+ const $t = "mf-reportreport-store", re = Y0($t, () => {
20190
+ const { business: A, globalFilters: F } = d0(V0()), { schemas: w } = d0(ft()), { flags: P } = d0(Fe()), B = D0([]), k = D0([]), J = D0(0), q = $e(), U = H0(() => B.value.filter((f) => f.editable)), N = H0(() => B.value.filter((f) => !f.editable)), V = D0(!1), z = D0(""), r0 = D0(), W = D0(), Z = H0(() => {
20261
20191
  const f = P.value.find(
20262
- (r) => r.key === ee.report_portal_integration_custom_report
20192
+ (r) => r.key === Me.report_portal_integration_custom_report
20263
20193
  );
20264
20194
  return typeof (f == null ? void 0 : f.value) == "number" ? f.value : null;
20265
- }), { isReportPermissionEnabled: k } = be(), K = A0(() => j.value === null ? !0 : j.value - q.value.length > 0);
20266
- async function a0() {
20267
- return G.value = await pt(), G.value;
20195
+ }), { isReportPermissionEnabled: X } = Re(), u0 = H0(() => Z.value === null ? !0 : Z.value - U.value.length > 0);
20196
+ async function o0() {
20197
+ return W.value = await ot(), W.value;
20268
20198
  }
20269
- async function n0() {
20199
+ async function s0() {
20270
20200
  var f;
20271
20201
  try {
20272
- B.value = await _t(), N.value = await mt(), B.value.find((e) => e.id === X.value) || (X.value = ((f = B.value.find((e) => e.isDefault)) == null ? void 0 : f.id) || B.value[0].id);
20202
+ B.value = await nt(), k.value = await Dt(), B.value.find((e) => e.id === z.value) || (z.value = ((f = B.value.find((e) => e.isDefault)) == null ? void 0 : f.id) || B.value[0].id);
20273
20203
  } catch (r) {
20274
- console.log(r), Q.open({
20204
+ console.log(r), q.open({
20275
20205
  title: "Report Fetch Error",
20276
20206
  message: "Internal Server Error",
20277
20207
  type: "error"
20278
20208
  });
20279
20209
  }
20280
20210
  }
20281
- const l0 = A0(
20282
- () => B.value.find((f) => f.id === X.value)
20211
+ const _0 = H0(
20212
+ () => B.value.find((f) => f.id === z.value)
20283
20213
  );
20284
- function c0(f) {
20214
+ function f0(f) {
20285
20215
  var e;
20286
- const r = (e = O.value.find((n) => n.name === f.schemaName)) == null ? void 0 : e.fields.find((n) => n.name === f.name);
20216
+ const r = (e = w.value.find((n) => n.name === f.schemaName)) == null ? void 0 : e.fields.find((n) => n.name === f.name);
20287
20217
  return r == null ? void 0 : r.type;
20288
20218
  }
20289
- W0(
20219
+ Z0(
20290
20220
  () => {
20291
20221
  var f;
20292
- return (f = l0.value) == null ? void 0 : f.globalFilters;
20222
+ return (f = _0.value) == null ? void 0 : f.globalFilters;
20293
20223
  },
20294
20224
  (f) => {
20295
- I.value = (f ?? []).map((r) => ({
20225
+ F.value = (f ?? []).map((r) => ({
20296
20226
  ...r,
20297
20227
  values: Array.isArray(r.values) ? [...r.values] : [],
20298
- type: c0(r)
20228
+ type: f0(r)
20299
20229
  }));
20300
20230
  },
20301
20231
  { deep: !0 }
20302
20232
  );
20303
- const p0 = _0(), V = _0(0), z = _0(), u0 = _0(null), r0 = _0(null), s0 = _0(!1), W = _0(!1), i0 = _0(!1);
20304
- async function D0(f) {
20305
- const r = q.value.findIndex((n) => n.id === f.id);
20233
+ const p0 = D0(), Q = D0(0), Y = D0(), n0 = D0(null), e0 = D0(null), i0 = D0(!1), G = D0(!1), t0 = D0(!1);
20234
+ async function l0(f) {
20235
+ const r = U.value.findIndex((n) => n.id === f.id);
20306
20236
  let e;
20307
20237
  if (r >= 0)
20308
- e = await Dt(f);
20238
+ e = await it(f);
20309
20239
  else {
20310
- e = await dt(f);
20240
+ e = await at(f);
20311
20241
  try {
20312
- if (k.value) {
20313
- await At(e.id, e.name);
20314
- const n = ie(), { businessId: i } = d0($0());
20242
+ if (X.value) {
20243
+ await pt(e.id, e.name);
20244
+ const n = Pe(), { businessId: i } = d0(y0());
20315
20245
  await n.fetchUserPermissions(void 0, i.value);
20316
20246
  }
20317
20247
  } catch (n) {
@@ -20321,22 +20251,22 @@ const Tt = "mf-reportreport-store", se = X0(Tt, () => {
20321
20251
  });
20322
20252
  }
20323
20253
  }
20324
- return u(e.id), await n0(), e;
20254
+ return u(e.id), await s0(), e;
20325
20255
  }
20326
- async function e0(f) {
20327
- await ct(f), await n0();
20256
+ async function K(f) {
20257
+ await ut(f), await s0();
20328
20258
  }
20329
20259
  async function t(f) {
20330
- await ft(f), await a0();
20260
+ await st(f), await o0();
20331
20261
  }
20332
20262
  function u(f) {
20333
- X.value = f;
20263
+ z.value = f;
20334
20264
  }
20335
- const _ = _0(null);
20265
+ const _ = D0(null);
20336
20266
  function $() {
20337
20267
  var f;
20338
- if ((f = E.value) != null && f._id) {
20339
- const r = U0.getJson("pinReport")[E.value._id];
20268
+ if ((f = A.value) != null && f._id) {
20269
+ const r = N0.getJson("pinReport")[A.value._id];
20340
20270
  if ((r == null ? void 0 : r.length) > 0) {
20341
20271
  _.value = r;
20342
20272
  return;
@@ -20346,645 +20276,553 @@ const Tt = "mf-reportreport-store", se = X0(Tt, () => {
20346
20276
  }
20347
20277
  function S(f) {
20348
20278
  var r;
20349
- if (E.value && f) {
20350
- const e = U0.getJson("pinReport");
20351
- e[(r = E.value) == null ? void 0 : r._id] ? e[E.value._id].push(f.id) : e[E.value._id] = [f.id], U0.setJson("pinReport", e), $();
20279
+ if (A.value && f) {
20280
+ const e = N0.getJson("pinReport");
20281
+ e[(r = A.value) == null ? void 0 : r._id] ? e[A.value._id].push(f.id) : e[A.value._id] = [f.id], N0.setJson("pinReport", e), $();
20352
20282
  }
20353
20283
  }
20354
20284
  function b(f) {
20355
- if (E.value) {
20356
- const r = U0.getJson("pinReport");
20357
- r[E.value._id].length === 1 ? r[E.value._id] = [] : r[E.value._id] = r[E.value._id].filter(
20285
+ if (A.value) {
20286
+ const r = N0.getJson("pinReport");
20287
+ r[A.value._id].length === 1 ? r[A.value._id] = [] : r[A.value._id] = r[A.value._id].filter(
20358
20288
  (e) => e !== f
20359
- ), U0.setJson("pinReport", r), $();
20289
+ ), N0.setJson("pinReport", r), $();
20360
20290
  }
20361
20291
  }
20362
20292
  async function T() {
20363
- return await $t();
20293
+ return await lt();
20364
20294
  }
20365
20295
  return {
20366
- isOpenDownloadDialog: s0,
20367
- isOpenFeedbackDialog: W,
20368
- isOpenEmailDialog: i0,
20369
- currentSelectWidgetType: t0,
20296
+ isOpenDownloadDialog: i0,
20297
+ isOpenFeedbackDialog: G,
20298
+ isOpenEmailDialog: t0,
20299
+ currentSelectWidgetType: r0,
20370
20300
  reports: B,
20371
- categories: N,
20372
- currentReport: l0,
20301
+ categories: k,
20302
+ currentReport: _0,
20373
20303
  editingReport: p0,
20374
- editingTileIndex: V,
20375
- editingTile: z,
20376
- editingGlobalFilterIndex: u0,
20377
- editingGlobalFilter: r0,
20378
- currentReportId: X,
20379
- editableReports: q,
20380
- nonEditableReports: H,
20381
- isOpenAddReportDialog: Y,
20382
- overviewReport: G,
20304
+ editingTileIndex: Q,
20305
+ editingTile: Y,
20306
+ editingGlobalFilterIndex: n0,
20307
+ editingGlobalFilter: e0,
20308
+ currentReportId: z,
20309
+ editableReports: U,
20310
+ nonEditableReports: N,
20311
+ isOpenAddReportDialog: V,
20312
+ overviewReport: W,
20383
20313
  pinReport: _,
20384
20314
  scrollPositionY: J,
20385
- customReportQuota: j,
20386
- canCreateCustomReport: K,
20387
- createOrUpdateReport: D0,
20388
- removeReport: e0,
20315
+ customReportQuota: Z,
20316
+ canCreateCustomReport: u0,
20317
+ createOrUpdateReport: l0,
20318
+ removeReport: K,
20389
20319
  updateCurrentReportId: u,
20390
- getReports: n0,
20320
+ getReports: s0,
20391
20321
  updateDefaultReport: t,
20392
- getOverviewReport: a0,
20322
+ getOverviewReport: o0,
20393
20323
  refreshPinReport: $,
20394
20324
  cachePinReport: S,
20395
20325
  clearPinReport: b,
20396
20326
  getReportConfig: T
20397
20327
  };
20398
- }), Ct = "mf-reportnavigation", Ie = X0(Ct, () => {
20399
- const { disabled: E } = d0(ve()), { sessionUser: I } = ie(), { isReportPermissionEnabled: O } = be();
20400
- function P(j) {
20401
- var n0;
20402
- if (!O.value) return !0;
20403
- const k = Array.isArray((n0 = I.value) == null ? void 0 : n0.permissions) ? I.value.permissions : [];
20404
- if (!Array.isArray(k) || k.length === 0) return !1;
20405
- const K = {
20406
- action: b0.manage,
20407
- subject: j
20408
- };
20409
- return te([K], k).granted;
20410
- }
20411
- const B = _0("v5"), N = _0(!1), J = A0(
20412
- () => P(J0.report_accessOverview)
20413
- ), Q = A0(
20414
- () => P(J0.report_accessInsight)
20415
- ), q = A0(
20416
- () => P(J0.report_accessSetting)
20417
- ), H = A0(
20418
- () => P(J0.report_accessIntegration)
20419
- ), Y = A0(() => {
20420
- const j = !J.value, k = !Q.value, K = !q.value, a0 = !H.value, n0 = [
20421
- {
20422
- label: "overview",
20423
- value: "overview",
20424
- route: "overview",
20425
- disabled: j
20426
- },
20427
- {
20428
- label: "report",
20429
- value: "report",
20430
- route: "reports"
20431
- },
20432
- {
20433
- label: "insight",
20434
- value: "insight",
20435
- route: "insights",
20436
- badge: () => Pe(qe.FmPill, { variant: "beta" }),
20437
- disabled: k
20438
- },
20439
- {
20440
- label: "setting",
20441
- value: "setting",
20442
- route: "setting",
20443
- disabled: K
20444
- }
20445
- ];
20446
- return E.value || n0.push({
20447
- label: "integration",
20448
- value: "integration",
20449
- route: "integrations",
20450
- disabled: a0
20451
- }), n0;
20452
- }), X = _0(""), { currentRoute: t0 } = Qe();
20453
- function G(j) {
20454
- switch (j.name) {
20455
- case "report":
20456
- case "reports":
20457
- X.value = "report";
20458
- break;
20459
- case "overview":
20460
- X.value = "overview";
20461
- break;
20462
- case "setting":
20463
- X.value = "setting";
20464
- break;
20465
- case "insights":
20466
- X.value = "insight";
20467
- break;
20468
- case "integration":
20469
- case "integrations":
20470
- X.value = "integration";
20471
- break;
20472
- }
20473
- }
20474
- return W0(
20475
- t0,
20476
- (j) => {
20477
- G(j);
20478
- },
20479
- { immediate: !0 }
20480
- ), {
20481
- selectedNavigationTab: X,
20482
- navigationTabs: Y,
20483
- isOverviewAccessible: J,
20484
- isInsightAccessible: Q,
20485
- isSettingAccessible: q,
20486
- isIntegrationAccessible: H,
20487
- version: B,
20488
- suppressReportRouteSync: N
20489
- };
20490
20328
  });
20491
- var Fe = /* @__PURE__ */ ((E) => (E.generating = "GENERATING", E.completed = "COMPLETED", E.failed = "FAILED", E.canceled = "CANCELLED", E))(Fe || {});
20492
- const bt = "/assets/formatChartData.worker-BQ5WtHKL.js", Z0 = /* @__PURE__ */ new Map();
20493
- function ce(E) {
20494
- return new Worker(E, { type: "module" });
20329
+ var Se = /* @__PURE__ */ ((A) => (A.generating = "GENERATING", A.completed = "COMPLETED", A.failed = "FAILED", A.canceled = "CANCELLED", A))(Se || {});
20330
+ const yt = "/assets/formatChartData.worker-BQ5WtHKL.js", W0 = /* @__PURE__ */ new Map();
20331
+ function oe(A) {
20332
+ return new Worker(A, { type: "module" });
20495
20333
  }
20496
- async function It(E) {
20497
- if (Z0.has(E))
20498
- return ce(Z0.get(E));
20499
- let I = E;
20334
+ async function mt(A) {
20335
+ if (W0.has(A))
20336
+ return oe(W0.get(A));
20337
+ let F = A;
20500
20338
  if (location.hostname !== new URL(import.meta.url).hostname) {
20501
- const B = new URL(E.replace(/^\//, ""), import.meta.url).href, N = await fetch(B).then((Q) => Q.text()), J = new Blob([N], { type: "application/javascript" });
20502
- I = URL.createObjectURL(J);
20339
+ const B = new URL(A.replace(/^\//, ""), import.meta.url).href, k = await fetch(B).then((q) => q.text()), J = new Blob([k], { type: "application/javascript" });
20340
+ F = URL.createObjectURL(J);
20503
20341
  }
20504
- const P = ce(I);
20505
- return Z0.set(E, I), P;
20342
+ const P = oe(F);
20343
+ return W0.set(A, F), P;
20506
20344
  }
20507
- async function Ft(E, I) {
20508
- const O = await It(E);
20509
- return O.postMessage(I), await new Promise((P) => {
20510
- O.onmessage = async (B) => {
20511
- const N = B.data;
20512
- O.terminate(), P(N);
20345
+ async function gt(A, F) {
20346
+ const w = await mt(A);
20347
+ return w.postMessage(F), await new Promise((P) => {
20348
+ w.onmessage = async (B) => {
20349
+ const k = B.data;
20350
+ w.terminate(), P(k);
20513
20351
  };
20514
20352
  });
20515
20353
  }
20516
- const Mt = "mf-reportwidget-size", Me = X0(Mt, () => {
20517
- const E = _0([]);
20518
- function I(O, P) {
20354
+ const ht = "mf-reportwidget-size", Ee = Y0(ht, () => {
20355
+ const A = D0([]);
20356
+ function F(w, P) {
20519
20357
  var B;
20520
20358
  try {
20521
- if (!O) return;
20522
- let N;
20523
- const J = O.$el, Q = (B = J == null ? void 0 : J.querySelector) == null ? void 0 : B.call(J, "canvas");
20524
- if (Q) {
20525
- const q = Q.getBoundingClientRect();
20526
- N = { width: Math.round(q.width), height: Math.round(q.height) };
20359
+ if (!w) return;
20360
+ let k;
20361
+ const J = w.$el, q = (B = J == null ? void 0 : J.querySelector) == null ? void 0 : B.call(J, "canvas");
20362
+ if (q) {
20363
+ const U = q.getBoundingClientRect();
20364
+ k = { width: Math.round(U.width), height: Math.round(U.height) };
20527
20365
  }
20528
- if (N && N.width > 0 && N.height > 0)
20529
- return typeof P == "number" && (E.value[P] = N), N;
20530
- } catch (N) {
20531
- console.log(N);
20366
+ if (k && k.width > 0 && k.height > 0)
20367
+ return typeof P == "number" && (A.value[P] = k), k;
20368
+ } catch (k) {
20369
+ console.log(k);
20532
20370
  }
20533
20371
  }
20534
- return { sizes: E, extractChartSize: I };
20535
- }), Rt = "mf-reportreport-sort-store", Re = X0(Rt, () => {
20536
- const E = _0([]);
20537
- function I(B, N) {
20372
+ return { sizes: A, extractChartSize: F };
20373
+ }), St = "mf-reportreport-sort-store", Ae = Y0(St, () => {
20374
+ const A = D0([]);
20375
+ function F(B, k) {
20538
20376
  if (B == null) return;
20539
- const J = Array.isArray(N) ? N.filter((H) => H && H.key) : [], Q = E.value.findIndex((H) => H.tileIndex === B), q = { tileIndex: B, sorts: J };
20540
- Q !== -1 ? E.value.splice(Q, 1, q) : E.value.push(q);
20377
+ const J = Array.isArray(k) ? k.filter((N) => N && N.key) : [], q = A.value.findIndex((N) => N.tileIndex === B), U = { tileIndex: B, sorts: J };
20378
+ q !== -1 ? A.value.splice(q, 1, U) : A.value.push(U);
20541
20379
  }
20542
- function O(B) {
20543
- var N;
20544
- return B == null ? [] : ((N = E.value.find((J) => J.tileIndex === B)) == null ? void 0 : N.sorts) ?? [];
20380
+ function w(B) {
20381
+ var k;
20382
+ return B == null ? [] : ((k = A.value.find((J) => J.tileIndex === B)) == null ? void 0 : k.sorts) ?? [];
20545
20383
  }
20546
20384
  function P(B) {
20547
- typeof B == "number" ? E.value = E.value.filter((N) => N.tileIndex !== B) : E.value = [];
20385
+ typeof B == "number" ? A.value = A.value.filter((k) => k.tileIndex !== B) : A.value = [];
20548
20386
  }
20549
- return { tileSort: E, setTileSorts: I, getTileSorts: O, clearTileSorts: P };
20387
+ return { tileSort: A, setTileSorts: F, getTileSorts: w, clearTileSorts: P };
20550
20388
  });
20551
- function xe(E = []) {
20389
+ function Te(A = []) {
20552
20390
  return Array.from(
20553
- new Set(E.map((I) => I === "" ? "NULL" : I))
20391
+ new Set(A.map((F) => F === "" ? "NULL" : F))
20554
20392
  );
20555
20393
  }
20556
- function xt(E) {
20394
+ function Et(A) {
20557
20395
  return [
20558
- E.schemaName,
20559
- E.name,
20560
- E.option ?? "",
20561
- E.dataFormula ?? "",
20562
- E.operator
20396
+ A.schemaName,
20397
+ A.name,
20398
+ A.option ?? "",
20399
+ A.dataFormula ?? "",
20400
+ A.operator
20563
20401
  ].join(":");
20564
20402
  }
20565
- function Lt(E) {
20566
- const I = (O, P) => T0().set("hour", O).set("minute", P).set("second", 0).set("millisecond", 0).toISOString();
20567
- return !E.startTime || !E.endTime ? [] : [
20568
- I(E.startTime.hour, E.startTime.minute),
20569
- I(E.endTime.hour, E.endTime.minute)
20403
+ function At(A) {
20404
+ const F = (w, P) => A0().set("hour", w).set("minute", P).set("second", 0).set("millisecond", 0).toISOString();
20405
+ return !A.startTime || !A.endTime ? [] : [
20406
+ F(A.startTime.hour, A.startTime.minute),
20407
+ F(A.endTime.hour, A.endTime.minute)
20570
20408
  ];
20571
20409
  }
20572
- function Ot(E, I) {
20410
+ function Tt(A, F) {
20573
20411
  return {
20574
- schemaName: E.schemaName,
20575
- name: E.name,
20576
- operator: I.operator,
20577
- option: E.option ?? null,
20578
- values: xe(I.values),
20579
- dataFormula: E.dataFormula,
20412
+ schemaName: A.schemaName,
20413
+ name: A.name,
20414
+ operator: F.operator,
20415
+ option: A.option ?? null,
20416
+ values: Te(F.values),
20417
+ dataFormula: A.dataFormula,
20580
20418
  isGlobalFilter: !0
20581
20419
  };
20582
20420
  }
20583
- function wt(E, I) {
20584
- const O = Lt(I);
20585
- return O.length !== 2 ? null : {
20586
- schemaName: E.schemaName,
20587
- name: E.name,
20588
- operator: ue.Between,
20589
- option: E.option ?? Q0.TimeOfDay,
20590
- values: O,
20591
- dataFormula: E.dataFormula,
20421
+ function Ct(A, F) {
20422
+ const w = At(F);
20423
+ return w.length !== 2 ? null : {
20424
+ schemaName: A.schemaName,
20425
+ name: A.name,
20426
+ operator: te.Between,
20427
+ option: A.option ?? U0.TimeOfDay,
20428
+ values: w,
20429
+ dataFormula: A.dataFormula,
20592
20430
  isGlobalFilter: !0
20593
20431
  };
20594
20432
  }
20595
- function vt(E) {
20596
- var P, B, N, J;
20597
- const I = Array.from(
20598
- new Set((E.values ?? []).map((Q) => Q === "" ? "NULL" : Q))
20433
+ function bt(A) {
20434
+ var P, B, k, J;
20435
+ const F = Array.from(
20436
+ new Set((A.values ?? []).map((q) => q === "" ? "NULL" : q))
20599
20437
  );
20600
- if (I.length === 1 && String(I[0]) === "(EMPTY)") {
20601
- const Q = Object.values(Q0).includes(
20602
- String(E.option ?? "")
20603
- ), q = E.option === Q0.TimeOfDay ? ["1000-01-01T23:59:59.999Z", "1000-01-01T00:00:00.000Z"] : [Q ? "-1" : "(EMPTY)"];
20438
+ if (F.length === 1 && String(F[0]) === "(EMPTY)") {
20439
+ const q = Object.values(U0).includes(
20440
+ String(A.option ?? "")
20441
+ ), U = A.option === U0.TimeOfDay ? ["1000-01-01T23:59:59.999Z", "1000-01-01T00:00:00.000Z"] : [q ? "-1" : "(EMPTY)"];
20604
20442
  return [
20605
20443
  {
20606
- schemaName: E.schemaName,
20607
- name: E.name,
20608
- operator: E.operator,
20609
- option: E.option ?? null,
20610
- values: q,
20611
- dataFormula: E.dataFormula,
20444
+ schemaName: A.schemaName,
20445
+ name: A.name,
20446
+ operator: A.operator,
20447
+ option: A.option ?? null,
20448
+ values: U,
20449
+ dataFormula: A.dataFormula,
20612
20450
  isGlobalFilter: !0
20613
20451
  }
20614
20452
  ];
20615
20453
  }
20616
- if ((((P = E.customTimeRanges) == null ? void 0 : P.length) ?? 0) > 0) {
20617
- const Q = new Set(I.map((q) => String(q)));
20618
- return ((B = E.customTimeRanges) == null ? void 0 : B.filter((q) => {
20619
- const H = String(q.name ?? "");
20620
- return Q.has(H);
20621
- }).map((q) => wt(E, q)).filter((q) => !!q)) ?? [];
20454
+ if ((((P = A.customTimeRanges) == null ? void 0 : P.length) ?? 0) > 0) {
20455
+ const q = new Set(F.map((U) => String(U)));
20456
+ return ((B = A.customTimeRanges) == null ? void 0 : B.filter((U) => {
20457
+ const N = String(U.name ?? "");
20458
+ return q.has(N);
20459
+ }).map((U) => Ct(A, U)).filter((U) => !!U)) ?? [];
20622
20460
  }
20623
- if ((((N = E.customOptions) == null ? void 0 : N.length) ?? 0) > 0) {
20624
- const Q = new Set(I.map((q) => String(q)));
20625
- return ((J = E.customOptions) == null ? void 0 : J.filter((q) => {
20626
- const H = String(q.label ?? "");
20627
- return Q.has(H);
20628
- }).map((q) => Ot(E, q)).filter((q) => Array.isArray(q.values) && q.values.length > 0)) ?? [];
20461
+ if ((((k = A.customOptions) == null ? void 0 : k.length) ?? 0) > 0) {
20462
+ const q = new Set(F.map((U) => String(U)));
20463
+ return ((J = A.customOptions) == null ? void 0 : J.filter((U) => {
20464
+ const N = String(U.label ?? "");
20465
+ return q.has(N);
20466
+ }).map((U) => Tt(A, U)).filter((U) => Array.isArray(U.values) && U.values.length > 0)) ?? [];
20629
20467
  }
20630
- return I.length === 0 ? [] : [
20468
+ return F.length === 0 ? [] : [
20631
20469
  {
20632
- schemaName: E.schemaName,
20633
- name: E.name,
20634
- operator: E.operator,
20635
- option: E.option ?? null,
20636
- values: I,
20637
- dataFormula: E.dataFormula,
20470
+ schemaName: A.schemaName,
20471
+ name: A.name,
20472
+ operator: A.operator,
20473
+ option: A.option ?? null,
20474
+ values: F,
20475
+ dataFormula: A.dataFormula,
20638
20476
  isGlobalFilter: !0
20639
20477
  }
20640
20478
  ];
20641
20479
  }
20642
- function fe({
20643
- originalFilters: E,
20644
- globalFilters: I,
20645
- schemaNames: O
20480
+ function le({
20481
+ originalFilters: A,
20482
+ globalFilters: F,
20483
+ schemaNames: w
20646
20484
  }) {
20647
- const P = /* @__PURE__ */ new Map(), B = [], N = new Set((O ?? []).map((H) => String(H))), J = (H) => N.has(H.schemaName ?? ""), Q = I.filter(J), q = (H) => {
20648
- if (!H || !J(H) || !Array.isArray(H.values) || H.values.length === 0)
20485
+ const P = /* @__PURE__ */ new Map(), B = [], k = new Set((w ?? []).map((N) => String(N))), J = (N) => k.has(N.schemaName ?? ""), q = F.filter(J), U = (N) => {
20486
+ if (!N || !J(N) || !Array.isArray(N.values) || N.values.length === 0)
20649
20487
  return;
20650
- const Y = {
20651
- ...H,
20652
- values: xe(H.values)
20488
+ const V = {
20489
+ ...N,
20490
+ values: Te(N.values)
20653
20491
  };
20654
- if (Y.option === Q0.TimeOfDay && Y.operator === ue.Between) {
20655
- B.push(Y);
20492
+ if (V.option === U0.TimeOfDay && V.operator === te.Between) {
20493
+ B.push(V);
20656
20494
  return;
20657
20495
  }
20658
- const t0 = xt(Y), G = P.get(t0);
20659
- if (!G) {
20660
- P.set(t0, Y);
20496
+ const r0 = Et(V), W = P.get(r0);
20497
+ if (!W) {
20498
+ P.set(r0, V);
20661
20499
  return;
20662
20500
  }
20663
- G.values = [
20664
- ...G.values ?? [],
20665
- ...Y.values
20666
- ], P.set(t0, G);
20501
+ W.values = [
20502
+ ...W.values ?? [],
20503
+ ...V.values
20504
+ ], P.set(r0, W);
20667
20505
  };
20668
- return E.forEach(q), Q.forEach(q), [...Array.from(P.values()), ...B];
20506
+ return A.forEach(U), q.forEach(U), [...Array.from(P.values()), ...B];
20669
20507
  }
20670
- function oe(E, I, O) {
20671
- var N;
20672
- const P = JSON.parse(JSON.stringify(E)), B = I.filter((J) => {
20673
- var Q;
20674
- return (Q = J.tileIds) == null ? void 0 : Q.includes(O);
20675
- }).flatMap((J) => vt(J));
20508
+ function ne(A, F, w) {
20509
+ var k;
20510
+ const P = JSON.parse(JSON.stringify(A)), B = F.filter((J) => {
20511
+ var q;
20512
+ return (q = J.tileIds) == null ? void 0 : q.includes(w);
20513
+ }).flatMap((J) => bt(J));
20676
20514
  return {
20677
20515
  ...P,
20678
20516
  config: {
20679
20517
  ...P.config,
20680
- filters: fe({
20518
+ filters: le({
20681
20519
  originalFilters: P.config.filters ?? [],
20682
20520
  globalFilters: B ?? [],
20683
20521
  schemaNames: P.config.schemaNames
20684
20522
  }),
20685
- joinDatasources: ((N = P.config.joinDatasources) == null ? void 0 : N.map((J, Q) => {
20686
- var q;
20523
+ joinDatasources: ((k = P.config.joinDatasources) == null ? void 0 : k.map((J, q) => {
20524
+ var U;
20687
20525
  return {
20688
20526
  ...J,
20689
- filters: fe({
20527
+ filters: le({
20690
20528
  originalFilters: J.filters ?? [],
20691
20529
  globalFilters: B ?? [],
20692
- schemaNames: (q = P.config.joinDatasources) == null ? void 0 : q[Q].schemaNames
20530
+ schemaNames: (U = P.config.joinDatasources) == null ? void 0 : U[q].schemaNames
20693
20531
  })
20694
20532
  };
20695
20533
  })) ?? []
20696
20534
  }
20697
20535
  };
20698
20536
  }
20699
- async function Bt(E, I) {
20700
- for (let O = 0; O < E.length; O++)
20537
+ async function It(A, F) {
20538
+ for (let w = 0; w < A.length; w++)
20701
20539
  try {
20702
- return await E[O]();
20540
+ return await A[w]();
20703
20541
  } catch (P) {
20704
- if (P.message === "Unauthorized" || O === E.length - 1) throw P;
20705
- await new Promise((B) => setTimeout(B, I));
20542
+ if (P.message === "Unauthorized" || w === A.length - 1) throw P;
20543
+ await new Promise((B) => setTimeout(B, F));
20706
20544
  }
20707
20545
  throw new Error("No callback");
20708
20546
  }
20709
- const sr = async (E, I, O) => {
20710
- var n0, l0, c0, p0;
20711
- const { businessId: P, country: B } = d0($0()), { currentReport: N } = se(), {
20547
+ const jt = async (A, F, w) => {
20548
+ var s0, _0, f0, p0;
20549
+ const { businessId: P, country: B } = d0(y0()), { currentReport: k } = re(), {
20712
20550
  selectedRestaurantIds: J,
20713
- selectedWarehouseIds: Q,
20714
- selectedLocationIds: q,
20715
- dateRange: H,
20716
- compareDateRange: Y,
20717
- timeRange: X,
20718
- globalFilters: t0,
20719
- timezone: G
20720
- } = z0();
20721
- if (q.length === 0)
20551
+ selectedWarehouseIds: q,
20552
+ selectedLocationIds: U,
20553
+ dateRange: N,
20554
+ compareDateRange: V,
20555
+ timeRange: z,
20556
+ globalFilters: r0,
20557
+ timezone: W
20558
+ } = V0();
20559
+ if (U.length === 0)
20722
20560
  return null;
20723
- const j = oe(E, t0, O ?? ""), k = {
20561
+ const Z = ne(A, r0, w ?? ""), X = {
20724
20562
  fetchType: m0.Post,
20725
20563
  url: `/${P.value}/postgres-query`,
20726
- data: ae.getQueryRequests({
20727
- widget: j,
20728
- dateRange: [H.startDate, H.endDate],
20729
- compareDateRange: Y.startDate && Y.endDate ? [Y.startDate, Y.endDate] : void 0,
20564
+ data: ee.getQueryRequests({
20565
+ widget: Z,
20566
+ dateRange: [N.startDate, N.endDate],
20567
+ compareDateRange: V.startDate && V.endDate ? [V.startDate, V.endDate] : void 0,
20730
20568
  timeRange: [
20731
- T0().tz(G).hour(Number((n0 = X.start) == null ? void 0 : n0.hour)).minute(Number((l0 = X.start) == null ? void 0 : l0.minute)).toISOString(),
20732
- T0().tz(G).hour(Number((c0 = X.end) == null ? void 0 : c0.hour)).minute(Number((p0 = X.end) == null ? void 0 : p0.minute)).endOf("minutes").toISOString()
20569
+ A0().tz(W).hour(Number((s0 = z.start) == null ? void 0 : s0.hour)).minute(Number((_0 = z.start) == null ? void 0 : _0.minute)).toISOString(),
20570
+ A0().tz(W).hour(Number((f0 = z.end) == null ? void 0 : f0.hour)).minute(Number((p0 = z.end) == null ? void 0 : p0.minute)).endOf("minutes").toISOString()
20733
20571
  ],
20734
20572
  businessIds: P.value ? [P.value] : [],
20735
20573
  restaurantIds: J,
20736
- warehouseIds: Q,
20737
- timezone: G
20738
- }).map((V, z) => {
20739
- const u0 = z === 0 ? 3e3 : 12e3;
20574
+ warehouseIds: q,
20575
+ timezone: W
20576
+ }).map((Q, Y) => {
20577
+ const n0 = Y === 0 ? 3e3 : 12e3;
20740
20578
  return {
20741
- ...V,
20742
- limit: J.length > 50 ? E.config.limit || u0 : E.config.limit,
20743
- skipStringSpaceGrouping: !!(N != null && N.batch),
20744
- reportId: N == null ? void 0 : N.id
20579
+ ...Q,
20580
+ limit: J.length > 50 ? A.config.limit || n0 : A.config.limit,
20581
+ skipStringSpaceGrouping: !!(k != null && k.batch),
20582
+ reportId: k == null ? void 0 : k.id
20745
20583
  };
20746
20584
  }),
20747
20585
  requestConfig: {
20748
20586
  timeout: 1e3 * 60 * 5,
20749
- signal: I
20587
+ signal: F
20750
20588
  }
20751
- }, K = [() => E0.fetch(k)];
20752
- J.length < 50 && K.push(() => E0.fetch(k)), K.push(() => (k.url = k.url.replace("postgres-query", "query"), E0.fetch(k)));
20753
- const a0 = await Bt(K, 2e3);
20754
- return (await Ft(bt, {
20755
- responses: a0,
20756
- widget: JSON.parse(JSON.stringify(E)),
20589
+ }, u0 = [() => E0.fetch(X)];
20590
+ J.length < 50 && u0.push(() => E0.fetch(X)), u0.push(() => (X.url = X.url.replace("postgres-query", "query"), E0.fetch(X)));
20591
+ const o0 = await It(u0, 2e3);
20592
+ return (await gt(yt, {
20593
+ responses: o0,
20594
+ widget: JSON.parse(JSON.stringify(A)),
20757
20595
  country: B.value,
20758
- timezone: G
20596
+ timezone: W
20759
20597
  })).data;
20760
20598
  };
20761
- function Le(E) {
20762
- const I = E.config;
20599
+ function Ce(A) {
20600
+ const F = A.config;
20763
20601
  return {
20764
- showTitle: I.showTitle,
20765
- titleFontSize: I.titleFontSize,
20766
- titleBold: I.titleBold,
20767
- titleItalic: I.titleItalic,
20768
- titleUnderline: I.titleUnderline,
20769
- chartColors: I.chartColors,
20770
- chartColorLayers: I.chartColorLayers,
20771
- chartBreakdownColors: I.chartBreakdownColors,
20772
- chartUseSecondaryMetricShades: I.chartUseSecondaryMetricShades,
20773
- chartColorBinding: I.chartColorBinding,
20774
- stackBarOverlap: I.stackBarOverlap,
20775
- lineStyles: I.lineStyles,
20776
- lineStyleBinding: I.lineStyleBinding,
20777
- showLabel: I.showLabel,
20778
- labelAlign: I.labelAlign,
20779
- labelAnchor: I.labelAnchor,
20780
- labelRotation: I.labelRotation,
20781
- labelOffset: I.labelOffset,
20782
- labelFontSize: I.labelFontSize,
20783
- showX: I.showX,
20784
- xPosition: I.xPosition,
20785
- showXGrid: I.showXGrid,
20786
- showXTick: I.showXTick,
20787
- xTickFontSize: I.xTickFontSize,
20788
- showY: I.showY,
20789
- yPosition: I.yPosition,
20790
- showYGrid: I.showYGrid,
20791
- showYTick: I.showYTick,
20792
- yTickFontSize: I.yTickFontSize,
20793
- showLegend: I.showLegend,
20794
- legendPosition: I.legendPosition,
20795
- usePointStyle: I.usePointStyle,
20796
- legendFontSize: I.legendFontSize,
20797
- legendColor: I.legendColor,
20798
- legendMaxWidth: I.legendMaxWidth
20602
+ showTitle: F.showTitle,
20603
+ titleFontSize: F.titleFontSize,
20604
+ titleBold: F.titleBold,
20605
+ titleItalic: F.titleItalic,
20606
+ titleUnderline: F.titleUnderline,
20607
+ chartColors: F.chartColors,
20608
+ chartColorLayers: F.chartColorLayers,
20609
+ chartBreakdownColors: F.chartBreakdownColors,
20610
+ chartUseSecondaryMetricShades: F.chartUseSecondaryMetricShades,
20611
+ chartColorBinding: F.chartColorBinding,
20612
+ stackBarOverlap: F.stackBarOverlap,
20613
+ lineStyles: F.lineStyles,
20614
+ lineStyleBinding: F.lineStyleBinding,
20615
+ showLabel: F.showLabel,
20616
+ labelAlign: F.labelAlign,
20617
+ labelAnchor: F.labelAnchor,
20618
+ labelRotation: F.labelRotation,
20619
+ labelOffset: F.labelOffset,
20620
+ labelFontSize: F.labelFontSize,
20621
+ showX: F.showX,
20622
+ xPosition: F.xPosition,
20623
+ showXGrid: F.showXGrid,
20624
+ showXTick: F.showXTick,
20625
+ xTickFontSize: F.xTickFontSize,
20626
+ showY: F.showY,
20627
+ yPosition: F.yPosition,
20628
+ showYGrid: F.showYGrid,
20629
+ showYTick: F.showYTick,
20630
+ yTickFontSize: F.yTickFontSize,
20631
+ showLegend: F.showLegend,
20632
+ legendPosition: F.legendPosition,
20633
+ usePointStyle: F.usePointStyle,
20634
+ legendFontSize: F.legendFontSize,
20635
+ legendColor: F.legendColor,
20636
+ legendMaxWidth: F.legendMaxWidth
20799
20637
  };
20800
20638
  }
20801
- function Oe(E) {
20802
- const I = E.config;
20639
+ function be(A) {
20640
+ const F = A.config;
20803
20641
  return {
20804
- rowHeight: I.rowHeight,
20805
- colWidths: I.colWidths
20642
+ rowHeight: F.rowHeight,
20643
+ colWidths: F.colWidths
20806
20644
  };
20807
20645
  }
20808
- const or = async ({
20809
- reportType: E,
20810
- index: I,
20811
- orientationTypes: O,
20646
+ const Kt = async ({
20647
+ reportType: A,
20648
+ index: F,
20649
+ orientationTypes: w,
20812
20650
  isCombinedLocationLayout: P,
20813
20651
  locationIds: B,
20814
- timeRange: N,
20652
+ timeRange: k,
20815
20653
  dateRange: J
20816
20654
  }) => {
20817
- const { businessId: Q } = d0($0()), { restaurants: q, warehouses: H, globalFilters: Y, timezone: X } = z0(), { currentReport: t0, overviewReport: G } = se(), { selectedNavigationTab: j } = Ie(), { sizes: k } = Me(), { getTileSorts: K } = Re();
20818
- let a0 = t0 == null ? void 0 : t0.id, n0 = (t0 == null ? void 0 : t0.tiles) ?? [];
20819
- j === "overview" && G && (a0 = G == null ? void 0 : G.id, n0 = (G == null ? void 0 : G.tiles) ?? []);
20820
- const l0 = n0.filter((s0, W) => typeof I == "number" ? W === I : !0).map((s0) => oe(s0.widget, Y, s0.id)), c0 = {
20655
+ const { businessId: q } = d0(y0()), { restaurants: U, warehouses: N, globalFilters: V, timezone: z } = V0(), { currentReport: r0, overviewReport: W } = re(), { selectedNavigationTab: Z } = de(), { sizes: X } = Ee(), { getTileSorts: u0 } = Ae();
20656
+ let o0 = r0 == null ? void 0 : r0.id, s0 = (r0 == null ? void 0 : r0.tiles) ?? [];
20657
+ Z === "overview" && W && (o0 = W == null ? void 0 : W.id, s0 = (W == null ? void 0 : W.tiles) ?? []);
20658
+ const _0 = s0.filter((i0, G) => typeof F == "number" ? G === F : !0).map((i0) => ne(i0.widget, V, i0.id)), f0 = {
20821
20659
  fetchType: m0.Post,
20822
- url: `/${Q.value}/file?lang=${N0()}`,
20660
+ url: `/${q.value}/file?lang=${P0()}`,
20823
20661
  data: {
20824
20662
  configs: [
20825
- ...l0.map((s0, W) => {
20826
- var D0, e0, t, u;
20827
- const i0 = k[I ?? W];
20663
+ ..._0.map((i0, G) => {
20664
+ var l0, K, t, u;
20665
+ const t0 = X[F ?? G];
20828
20666
  return {
20829
- requests: ae.getQueryRequests({
20830
- widget: s0,
20667
+ requests: ee.getQueryRequests({
20668
+ widget: i0,
20831
20669
  dateRange: [J.startDate, J.endDate],
20832
20670
  timeRange: [
20833
- T0().tz(X).set("hour", Number((D0 = N.start) == null ? void 0 : D0.hour)).set("minute", Number((e0 = N.start) == null ? void 0 : e0.minute)).toISOString(),
20834
- T0().tz(X).set("hour", Number((t = N.end) == null ? void 0 : t.hour)).set("minute", Number((u = N.end) == null ? void 0 : u.minute)).toISOString()
20671
+ A0().tz(z).set("hour", Number((l0 = k.start) == null ? void 0 : l0.hour)).set("minute", Number((K = k.start) == null ? void 0 : K.minute)).toISOString(),
20672
+ A0().tz(z).set("hour", Number((t = k.end) == null ? void 0 : t.hour)).set("minute", Number((u = k.end) == null ? void 0 : u.minute)).toISOString()
20835
20673
  ],
20836
- businessIds: Q ? [Q.value] : [],
20674
+ businessIds: q ? [q.value] : [],
20837
20675
  restaurantIds: B.filter(
20838
- (_) => q.find(($) => $.id === _)
20676
+ (_) => U.find(($) => $.id === _)
20839
20677
  ),
20840
20678
  warehouseIds: B.filter(
20841
- (_) => H.find(($) => $.id === _)
20679
+ (_) => N.find(($) => $.id === _)
20842
20680
  ),
20843
- timezone: X
20681
+ timezone: z
20844
20682
  }),
20845
- index: I || W,
20683
+ index: F || G,
20846
20684
  drillDimension: null,
20847
- chartWidth: (i0 == null ? void 0 : i0.width) ?? s0.config.chartWidth,
20848
- chartHeight: (i0 == null ? void 0 : i0.height) ?? s0.config.chartHeight,
20849
- ...Le(s0),
20850
- ...Oe(s0),
20851
- globalSorts: K(I ?? W)
20685
+ chartWidth: (t0 == null ? void 0 : t0.width) ?? i0.config.chartWidth,
20686
+ chartHeight: (t0 == null ? void 0 : t0.height) ?? i0.config.chartHeight,
20687
+ ...Ce(i0),
20688
+ ...be(i0),
20689
+ globalSorts: u0(F ?? G)
20852
20690
  };
20853
20691
  })
20854
20692
  ],
20855
- reportId: a0,
20856
- type: E,
20857
- orientationTypes: O,
20693
+ reportId: o0,
20694
+ type: A,
20695
+ orientationTypes: w,
20858
20696
  isCombinedLocationLayout: P
20859
20697
  },
20860
20698
  requestConfig: {
20861
20699
  responseType: "arraybuffer",
20862
20700
  timeout: 1e3 * 60 * 60 * 24
20863
20701
  }
20864
- }, { headers: p0, data: V } = await ne.rawFetch(c0), z = p0["content-disposition"].split("filename=")[1].replaceAll('"', ""), u0 = window.URL.createObjectURL(new Blob([new Uint8Array(V).buffer])), r0 = document.createElement("a");
20865
- r0.href = u0, r0.setAttribute("download", decodeURIComponent(z)), document.body.appendChild(r0), r0.click(), r0.remove();
20866
- }, lr = async ({
20867
- emails: E,
20868
- types: I,
20869
- dateRange: O,
20702
+ }, { headers: p0, data: Q } = await K0.rawFetch(f0), Y = p0["content-disposition"].split("filename=")[1].replaceAll('"', ""), n0 = window.URL.createObjectURL(new Blob([new Uint8Array(Q).buffer])), e0 = document.createElement("a");
20703
+ e0.href = n0, e0.setAttribute("download", decodeURIComponent(Y)), document.body.appendChild(e0), e0.click(), e0.remove();
20704
+ }, Zt = async ({
20705
+ emails: A,
20706
+ types: F,
20707
+ dateRange: w,
20870
20708
  timeRange: P,
20871
20709
  locationIds: B,
20872
- orientationTypes: N,
20710
+ orientationTypes: k,
20873
20711
  isCombinedLocationLayout: J
20874
20712
  }) => {
20875
- const { businessId: Q } = d0($0()), { currentReport: q, overviewReport: H } = se(), { selectedNavigationTab: Y } = Ie(), { restaurants: X, warehouses: t0, globalFilters: G, timezone: j } = z0(), { sizes: k } = Me(), { getTileSorts: K } = Re();
20876
- if (E.length === 0) {
20713
+ const { businessId: q } = d0(y0()), { currentReport: U, overviewReport: N } = re(), { selectedNavigationTab: V } = de(), { restaurants: z, warehouses: r0, globalFilters: W, timezone: Z } = V0(), { sizes: X } = Ee(), { getTileSorts: u0 } = Ae();
20714
+ if (A.length === 0) {
20877
20715
  console.error("No email addresses provided.");
20878
20716
  return;
20879
20717
  }
20880
- let a0 = (q == null ? void 0 : q.id) || "", n0 = (q == null ? void 0 : q.name) || "", l0 = (q == null ? void 0 : q.tiles) ?? [];
20881
- Y === "overview" && H && (a0 = H == null ? void 0 : H.id, n0 = H.name, l0 = (H == null ? void 0 : H.tiles) ?? []);
20882
- const c0 = l0.map((V) => oe(V.widget, G, V.id)), p0 = {
20883
- businessId: Q.value,
20884
- status: Fe.generating,
20718
+ let o0 = (U == null ? void 0 : U.id) || "", s0 = (U == null ? void 0 : U.name) || "", _0 = (U == null ? void 0 : U.tiles) ?? [];
20719
+ V === "overview" && N && (o0 = N == null ? void 0 : N.id, s0 = N.name, _0 = (N == null ? void 0 : N.tiles) ?? []);
20720
+ const f0 = _0.map((Q) => ne(Q.widget, W, Q.id)), p0 = {
20721
+ businessId: q.value,
20722
+ status: Se.generating,
20885
20723
  dateRange: {
20886
- start: O.startDate,
20887
- end: O.endDate
20724
+ start: w.startDate,
20725
+ end: w.endDate
20888
20726
  },
20889
- reportName: n0,
20890
- emails: E,
20891
- configs: c0.map((V, z) => {
20892
- var r0, s0, W, i0;
20893
- const u0 = k[z];
20727
+ reportName: s0,
20728
+ emails: A,
20729
+ configs: f0.map((Q, Y) => {
20730
+ var e0, i0, G, t0;
20731
+ const n0 = X[Y];
20894
20732
  return {
20895
- requests: ae.getQueryRequests({
20896
- widget: V,
20897
- dateRange: [O.startDate, O.endDate],
20733
+ requests: ee.getQueryRequests({
20734
+ widget: Q,
20735
+ dateRange: [w.startDate, w.endDate],
20898
20736
  timeRange: [
20899
- T0().tz(j).hour(Number((r0 = P.start) == null ? void 0 : r0.hour)).minute(Number((s0 = P.start) == null ? void 0 : s0.minute)).toISOString(),
20900
- T0().tz(j).hour(Number((W = P.end) == null ? void 0 : W.hour)).minute(Number((i0 = P.end) == null ? void 0 : i0.minute)).endOf("minutes").toISOString()
20737
+ A0().tz(Z).hour(Number((e0 = P.start) == null ? void 0 : e0.hour)).minute(Number((i0 = P.start) == null ? void 0 : i0.minute)).toISOString(),
20738
+ A0().tz(Z).hour(Number((G = P.end) == null ? void 0 : G.hour)).minute(Number((t0 = P.end) == null ? void 0 : t0.minute)).endOf("minutes").toISOString()
20901
20739
  ],
20902
- businessIds: Q ? [Q.value] : [],
20740
+ businessIds: q ? [q.value] : [],
20903
20741
  restaurantIds: B.filter(
20904
- (D0) => X.find((e0) => e0.id === D0)
20742
+ (l0) => z.find((K) => K.id === l0)
20905
20743
  ),
20906
20744
  warehouseIds: B.filter(
20907
- (D0) => t0.find((e0) => e0.id === D0)
20745
+ (l0) => r0.find((K) => K.id === l0)
20908
20746
  ),
20909
- timezone: j
20747
+ timezone: Z
20910
20748
  }),
20911
- index: z,
20749
+ index: Y,
20912
20750
  drillDimension: null,
20913
- chartWidth: (u0 == null ? void 0 : u0.width) ?? V.config.chartWidth,
20914
- chartHeight: (u0 == null ? void 0 : u0.height) ?? V.config.chartHeight,
20915
- ...Le(V),
20916
- ...Oe(V),
20917
- globalSorts: K(z)
20751
+ chartWidth: (n0 == null ? void 0 : n0.width) ?? Q.config.chartWidth,
20752
+ chartHeight: (n0 == null ? void 0 : n0.height) ?? Q.config.chartHeight,
20753
+ ...Ce(Q),
20754
+ ...be(Q),
20755
+ globalSorts: u0(Y)
20918
20756
  };
20919
20757
  }),
20920
- reportId: a0,
20921
- type: I,
20922
- orientationTypes: N,
20758
+ reportId: o0,
20759
+ type: F,
20760
+ orientationTypes: k,
20923
20761
  isCombinedLocationLayout: J
20924
20762
  };
20925
- await ne.fetch({
20763
+ await K0.fetch({
20926
20764
  fetchType: m0.Post,
20927
- url: `/${Q.value}/reports/email?lang=${N0()}`,
20765
+ url: `/${q.value}/reports/email?lang=${P0()}`,
20928
20766
  data: p0,
20929
20767
  requestConfig: { timeout: 1e3 * 60 * 3 }
20930
20768
  });
20931
- }, _r = async (E) => {
20932
- const { businessId: I } = d0($0());
20933
- await ne.fetch({
20769
+ }, er = async (A) => {
20770
+ const { businessId: F } = d0(y0());
20771
+ await K0.fetch({
20934
20772
  fetchType: m0.Post,
20935
- url: `/${I.value}/reports/resend-email?lang=${N0()}`,
20936
- data: { jobId: E },
20773
+ url: `/${F.value}/reports/resend-email?lang=${P0()}`,
20774
+ data: { jobId: A },
20937
20775
  requestConfig: { timeout: 1e3 * 60 * 3 }
20938
20776
  });
20939
- }, Dr = async () => {
20940
- const { businessId: E } = d0($0());
20777
+ }, tr = async () => {
20778
+ const { businessId: A } = d0(y0());
20941
20779
  return await E0.fetch({
20942
20780
  fetchType: m0.Get,
20943
- url: `/${E.value}/reports/email-recipients`
20781
+ url: `/${A.value}/reports/email-recipients`
20944
20782
  });
20945
- }, dr = async (E) => {
20946
- const { businessId: I } = d0($0());
20783
+ }, rr = async (A) => {
20784
+ const { businessId: F } = d0(y0());
20947
20785
  await E0.fetch({
20948
20786
  fetchType: m0.Post,
20949
- url: `/${I.value}/reports/email-recipient/delete`,
20950
- data: { email: E }
20787
+ url: `/${F.value}/reports/email-recipient/delete`,
20788
+ data: { email: A }
20951
20789
  });
20952
20790
  };
20953
- let Y0;
20954
- const Pt = new Uint8Array(16);
20955
- function Jt() {
20956
- if (!Y0 && (Y0 = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Y0))
20791
+ let Q0;
20792
+ const Ft = new Uint8Array(16);
20793
+ function Mt() {
20794
+ if (!Q0 && (Q0 = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Q0))
20957
20795
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
20958
- return Y0(Pt);
20796
+ return Q0(Ft);
20959
20797
  }
20960
- const y0 = [];
20961
- for (let E = 0; E < 256; ++E)
20962
- y0.push((E + 256).toString(16).slice(1));
20963
- function Ht(E, I = 0) {
20964
- return y0[E[I + 0]] + y0[E[I + 1]] + y0[E[I + 2]] + y0[E[I + 3]] + "-" + y0[E[I + 4]] + y0[E[I + 5]] + "-" + y0[E[I + 6]] + y0[E[I + 7]] + "-" + y0[E[I + 8]] + y0[E[I + 9]] + "-" + y0[E[I + 10]] + y0[E[I + 11]] + y0[E[I + 12]] + y0[E[I + 13]] + y0[E[I + 14]] + y0[E[I + 15]];
20798
+ const $0 = [];
20799
+ for (let A = 0; A < 256; ++A)
20800
+ $0.push((A + 256).toString(16).slice(1));
20801
+ function Rt(A, F = 0) {
20802
+ return $0[A[F + 0]] + $0[A[F + 1]] + $0[A[F + 2]] + $0[A[F + 3]] + "-" + $0[A[F + 4]] + $0[A[F + 5]] + "-" + $0[A[F + 6]] + $0[A[F + 7]] + "-" + $0[A[F + 8]] + $0[A[F + 9]] + "-" + $0[A[F + 10]] + $0[A[F + 11]] + $0[A[F + 12]] + $0[A[F + 13]] + $0[A[F + 14]] + $0[A[F + 15]];
20965
20803
  }
20966
- const Nt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), pe = {
20967
- randomUUID: Nt
20804
+ const xt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), _e = {
20805
+ randomUUID: xt
20968
20806
  };
20969
- function cr(E, I, O) {
20970
- if (pe.randomUUID && !I && !E)
20971
- return pe.randomUUID();
20972
- E = E || {};
20973
- const P = E.random || (E.rng || Jt)();
20974
- if (P[6] = P[6] & 15 | 64, P[8] = P[8] & 63 | 128, I) {
20975
- O = O || 0;
20807
+ function nr(A, F, w) {
20808
+ if (_e.randomUUID && !F && !A)
20809
+ return _e.randomUUID();
20810
+ A = A || {};
20811
+ const P = A.random || (A.rng || Mt)();
20812
+ if (P[6] = P[6] & 15 | 64, P[8] = P[8] & 63 | 128, F) {
20813
+ w = w || 0;
20976
20814
  for (let B = 0; B < 16; ++B)
20977
- I[O + B] = P[B];
20978
- return I;
20815
+ F[w + B] = P[B];
20816
+ return F;
20979
20817
  }
20980
- return Ht(P);
20818
+ return Rt(P);
20981
20819
  }
20982
- const $e = (E, I = "en") => T0().set("hour", E.hour).set("minute", E.minute).locale(I).format("h:mm A"), kt = (E, I) => {
20983
- const O = T0().set("hour", E.hour).set("minute", E.minute);
20984
- return T0().set("hour", I.hour).set("minute", I.minute) < O ? "+1" : "";
20985
- }, Ut = { class: "px-24 py-16 rounded-lg shadow-light-300" }, qt = { class: "text-fm-color-typo-primary" }, Qt = { class: "text-fm-color-typo-secondary" }, Xt = { class: "fm-typo-en-body-lg-600 mb-8" }, Vt = { class: "flex items-center justify-center w-full" }, Yt = { class: "fm-typo-en-body-lg-600 mb-8" }, Gt = { class: "flex items-center justify-center" }, zt = { class: "flex flex-row mb-4 px-4 gap-2" }, fr = /* @__PURE__ */ me({
20820
+ const De = (A, F = "en") => A0().set("hour", A.hour).set("minute", A.minute).locale(F).format("h:mm A"), Lt = (A, F) => {
20821
+ const w = A0().set("hour", A.hour).set("minute", A.minute);
20822
+ return A0().set("hour", F.hour).set("minute", F.minute) < w ? "+1" : "";
20823
+ }, Ot = { class: "px-24 py-16 rounded-lg shadow-light-300" }, wt = { class: "text-fm-color-typo-primary" }, vt = { class: "text-fm-color-typo-secondary" }, Bt = { class: "fm-typo-en-body-lg-600 mb-8" }, Pt = { class: "flex items-center justify-center w-full" }, Jt = { class: "fm-typo-en-body-lg-600 mb-8" }, Ht = { class: "flex items-center justify-center" }, Nt = { class: "flex flex-row mb-4 px-4 gap-2" }, ir = /* @__PURE__ */ ce({
20986
20824
  __name: "TimeRangeSelect",
20987
- props: /* @__PURE__ */ G0({
20825
+ props: /* @__PURE__ */ X0({
20988
20826
  defaultDateRange: {
20989
20827
  type: Array,
20990
20828
  default: () => [
@@ -21021,143 +20859,143 @@ const $e = (E, I = "en") => T0().set("hour", E.hour).set("minute", E.minute).loc
21021
20859
  },
21022
20860
  selectTimeDefaultModifiers: {}
21023
20861
  }),
21024
- emits: /* @__PURE__ */ G0(["update", "chip-closed"], ["update:timeRange", "update:selectTimeDefault"]),
21025
- setup(E, { emit: I }) {
21026
- const { t: O, locale: P } = Be(), B = re(E, "timeRange"), N = I, J = re(E, "selectTimeDefault");
21027
- function Q(j) {
21028
- j && (B.value = j, N("update", B.value)), X.value = !1;
20862
+ emits: /* @__PURE__ */ X0(["update", "chip-closed"], ["update:timeRange", "update:selectTimeDefault"]),
20863
+ setup(A, { emit: F }) {
20864
+ const { t: w, locale: P } = Be(), B = j0(A, "timeRange"), k = F, J = j0(A, "selectTimeDefault");
20865
+ function q(Z) {
20866
+ Z && (B.value = Z, k("update", B.value)), z.value = !1;
21029
20867
  }
21030
- function q(j) {
21031
- const k = j.split(":"), K = T0().set("hour", Number(k[0])).set("minute", Number(k[1]));
20868
+ function U(Z) {
20869
+ const X = Z.split(":"), u0 = A0().set("hour", Number(X[0])).set("minute", Number(X[1]));
21032
20870
  return {
21033
- hours: Number(K.format("h")),
21034
- minutes: Number(K.format("m")),
21035
- period: K.format("A")
20871
+ hours: Number(u0.format("h")),
20872
+ minutes: Number(u0.format("m")),
20873
+ period: u0.format("A")
21036
20874
  };
21037
20875
  }
21038
- const H = _0(JSON.parse(JSON.stringify(B.value)));
21039
- function Y(j, k) {
21040
- H.value.start = JSON.parse(JSON.stringify(j)), H.value.end = JSON.parse(JSON.stringify(k));
20876
+ const N = D0(JSON.parse(JSON.stringify(B.value)));
20877
+ function V(Z, X) {
20878
+ N.value.start = JSON.parse(JSON.stringify(Z)), N.value.end = JSON.parse(JSON.stringify(X));
21041
20879
  }
21042
- W0(
21043
- () => [B.value, E.defaultDateRange],
20880
+ Z0(
20881
+ () => [B.value, A.defaultDateRange],
21044
20882
  () => {
21045
20883
  if (B.value) {
21046
- const j = E.defaultDateRange.findIndex(
21047
- (k) => {
21048
- var K, a0, n0, l0;
21049
- return k.startTime.hour === ((K = B.value.start) == null ? void 0 : K.hour) && k.startTime.minute === ((a0 = B.value.start) == null ? void 0 : a0.minute) && k.endTime.hour === ((n0 = B.value.end) == null ? void 0 : n0.hour) && k.endTime.minute === ((l0 = B.value.end) == null ? void 0 : l0.minute);
20884
+ const Z = A.defaultDateRange.findIndex(
20885
+ (X) => {
20886
+ var u0, o0, s0, _0;
20887
+ return X.startTime.hour === ((u0 = B.value.start) == null ? void 0 : u0.hour) && X.startTime.minute === ((o0 = B.value.start) == null ? void 0 : o0.minute) && X.endTime.hour === ((s0 = B.value.end) == null ? void 0 : s0.hour) && X.endTime.minute === ((_0 = B.value.end) == null ? void 0 : _0.minute);
21050
20888
  }
21051
20889
  ) + 1;
21052
- j !== 0 ? J.value = j : J.value = E.defaultDateRange.length + 1;
20890
+ Z !== 0 ? J.value = Z : J.value = A.defaultDateRange.length + 1;
21053
20891
  }
21054
20892
  },
21055
20893
  { deep: !0, immediate: !0 }
21056
20894
  );
21057
- const X = _0(!1);
21058
- function t0(j) {
21059
- N("chip-closed", j);
20895
+ const z = D0(!1);
20896
+ function r0(Z) {
20897
+ k("chip-closed", Z);
21060
20898
  }
21061
- const G = A0(() => E.label ? E.label : Xe({
20899
+ const W = H0(() => A.label ? A.label : Je({
21062
20900
  startTime: B.value.start,
21063
20901
  endTime: B.value.end,
21064
20902
  locale: P.value
21065
20903
  }));
21066
- return (j, k) => {
21067
- const K = v0("FmChip"), a0 = v0("FmRadio"), n0 = v0("FmMenuDivider"), l0 = v0("FmRadioGroup"), c0 = v0("FmTimeInput"), p0 = v0("FmButton"), V = v0("FmPopover");
21068
- return q0(), j0("div", null, [
21069
- I0(V, {
21070
- "show-popover": X.value,
20904
+ return (Z, X) => {
20905
+ const u0 = O0("FmChip"), o0 = O0("FmRadio"), s0 = O0("FmMenuDivider"), _0 = O0("FmRadioGroup"), f0 = O0("FmTimeInput"), p0 = O0("FmButton"), Q = O0("FmPopover");
20906
+ return k0(), G0("div", null, [
20907
+ C0(Q, {
20908
+ "show-popover": z.value,
21071
20909
  placement: "bottom",
21072
- onPopoverChanged: k[6] || (k[6] = (z) => X.value = z)
20910
+ onPopoverChanged: X[6] || (X[6] = (Y) => z.value = Y)
21073
20911
  }, {
21074
- "popover-button": H0(() => [
21075
- I0(Ve, {
21076
- "left-icon": E.label ? "filter_alt" : "schedule",
21077
- label: G.value,
21078
- removable: E.removable,
21079
- onChipClosed: k[0] || (k[0] = (z) => t0(!0))
20912
+ "popover-button": B0(() => [
20913
+ C0(He, {
20914
+ "left-icon": A.label ? "filter_alt" : "schedule",
20915
+ label: W.value,
20916
+ removable: A.removable,
20917
+ onChipClosed: X[0] || (X[0] = (Y) => r0(!0))
21080
20918
  }, null, 8, ["left-icon", "label", "removable"])
21081
20919
  ]),
21082
- default: H0(() => {
21083
- var z, u0, r0, s0;
20920
+ default: B0(() => {
20921
+ var Y, n0, e0, i0;
21084
20922
  return [
21085
- w0("div", Ut, [
21086
- I0(l0, {
20923
+ L0("div", Ot, [
20924
+ C0(_0, {
21087
20925
  modelValue: J.value,
21088
- "onUpdate:modelValue": k[1] || (k[1] = (W) => J.value = W)
20926
+ "onUpdate:modelValue": X[1] || (X[1] = (G) => J.value = G)
21089
20927
  }, {
21090
- default: H0(() => [
21091
- (q0(!0), j0(le, null, He(E.defaultDateRange, (W, i0) => (q0(), ge(a0, {
21092
- key: `range_${i0}`,
21093
- value: i0 + 1,
21094
- label: W.name,
21095
- onClick: (D0) => Y(W.startTime, W.endTime)
20928
+ default: B0(() => [
20929
+ (k0(!0), G0(ie, null, Le(A.defaultDateRange, (G, t0) => (k0(), fe(o0, {
20930
+ key: `range_${t0}`,
20931
+ value: t0 + 1,
20932
+ label: G.name,
20933
+ onClick: (l0) => V(G.startTime, G.endTime)
21096
20934
  }, {
21097
- label: H0(() => [
21098
- w0("p", qt, [
21099
- he(P0(W.name) + " ", 1),
21100
- Ne(I0(K, {
21101
- label: S0(O)("report.common.default"),
20935
+ label: B0(() => [
20936
+ L0("p", wt, [
20937
+ pe(v0(G.name) + " ", 1),
20938
+ Oe(C0(u0, {
20939
+ label: S0(w)("report.common.default"),
21102
20940
  class: "bg-fm-color-system-info-100 border-fm-color-typo-info text-fm-color-typo-info",
21103
20941
  compact: ""
21104
20942
  }, null, 8, ["label"]), [
21105
- [ke, W.isDefault]
20943
+ [we, G.isDefault]
21106
20944
  ])
21107
20945
  ]),
21108
- w0("p", Qt, P0(S0($e)(W.startTime, S0(N0)())) + " - " + P0(S0($e)(W.endTime, S0(N0)())) + " " + P0(S0(kt)(W.startTime, W.endTime)), 1)
20946
+ L0("p", vt, v0(S0(De)(G.startTime, S0(P0)())) + " - " + v0(S0(De)(G.endTime, S0(P0)())) + " " + v0(S0(Lt)(G.startTime, G.endTime)), 1)
21109
20947
  ]),
21110
20948
  _: 2
21111
20949
  }, 1032, ["value", "label", "onClick"]))), 128)),
21112
- I0(n0),
21113
- I0(a0, {
20950
+ C0(s0),
20951
+ C0(o0, {
21114
20952
  key: "range_custom",
21115
- label: S0(O)("report.common.custom"),
21116
- value: E.defaultDateRange.length + 1
20953
+ label: S0(w)("report.common.custom"),
20954
+ value: A.defaultDateRange.length + 1
21117
20955
  }, null, 8, ["label", "value"])
21118
20956
  ]),
21119
20957
  _: 1
21120
20958
  }, 8, ["modelValue"]),
21121
- J.value === E.defaultDateRange.length + 1 ? (q0(), j0(le, { key: 0 }, [
21122
- w0("p", Xt, P0(S0(O)("report.date.startingTime")), 1),
21123
- w0("div", Vt, [
21124
- I0(c0, {
21125
- "model-value": q(`${(z = H.value.start) == null ? void 0 : z.hour}:${(u0 = H.value.start) == null ? void 0 : u0.minute}`),
21126
- "onUpdate:modelValue": k[2] || (k[2] = (W) => {
21127
- if (H.value.start) {
21128
- const i0 = S0(T0)(`${W.hours}:${W.minutes} ${W.period}`, "h:m A").locale(
21129
- S0(N0)()
20959
+ J.value === A.defaultDateRange.length + 1 ? (k0(), G0(ie, { key: 0 }, [
20960
+ L0("p", Bt, v0(S0(w)("report.date.startingTime")), 1),
20961
+ L0("div", Pt, [
20962
+ C0(f0, {
20963
+ "model-value": U(`${(Y = N.value.start) == null ? void 0 : Y.hour}:${(n0 = N.value.start) == null ? void 0 : n0.minute}`),
20964
+ "onUpdate:modelValue": X[2] || (X[2] = (G) => {
20965
+ if (N.value.start) {
20966
+ const t0 = S0(A0)(`${G.hours}:${G.minutes} ${G.period}`, "h:m A").locale(
20967
+ S0(P0)()
21130
20968
  );
21131
- H.value.start.hour = i0.get("hour"), H.value.start.minute = i0.get("minute");
20969
+ N.value.start.hour = t0.get("hour"), N.value.start.minute = t0.get("minute");
21132
20970
  }
21133
20971
  })
21134
20972
  }, null, 8, ["model-value"])
21135
20973
  ]),
21136
- w0("p", Yt, P0(S0(O)("report.date.endingTime")), 1),
21137
- w0("div", Gt, [
21138
- I0(c0, {
21139
- "model-value": q(`${(r0 = H.value.end) == null ? void 0 : r0.hour}:${(s0 = H.value.end) == null ? void 0 : s0.minute}`),
21140
- "onUpdate:modelValue": k[3] || (k[3] = (W) => {
21141
- if (H.value.end) {
21142
- const i0 = S0(T0)(`${W.hours}:${W.minutes} ${W.period}`, "h:m A").locale(
21143
- S0(N0)()
20974
+ L0("p", Jt, v0(S0(w)("report.date.endingTime")), 1),
20975
+ L0("div", Ht, [
20976
+ C0(f0, {
20977
+ "model-value": U(`${(e0 = N.value.end) == null ? void 0 : e0.hour}:${(i0 = N.value.end) == null ? void 0 : i0.minute}`),
20978
+ "onUpdate:modelValue": X[3] || (X[3] = (G) => {
20979
+ if (N.value.end) {
20980
+ const t0 = S0(A0)(`${G.hours}:${G.minutes} ${G.period}`, "h:m A").locale(
20981
+ S0(P0)()
21144
20982
  );
21145
- H.value.end.hour = i0.get("hour"), H.value.end.minute = i0.get("minute");
20983
+ N.value.end.hour = t0.get("hour"), N.value.end.minute = t0.get("minute");
21146
20984
  }
21147
20985
  })
21148
20986
  }, null, 8, ["model-value"])
21149
20987
  ])
21150
- ], 64)) : Je("", !0),
21151
- w0("div", zt, [
21152
- k[7] || (k[7] = w0("div", { class: "grow" }, null, -1)),
21153
- I0(p0, {
21154
- label: S0(O)("report.common.cancel"),
20988
+ ], 64)) : xe("", !0),
20989
+ L0("div", Nt, [
20990
+ X[7] || (X[7] = L0("div", { class: "grow" }, null, -1)),
20991
+ C0(p0, {
20992
+ label: S0(w)("report.common.cancel"),
21155
20993
  variant: "tertiary",
21156
- onClick: k[4] || (k[4] = (W) => X.value = !1)
20994
+ onClick: X[4] || (X[4] = (G) => z.value = !1)
21157
20995
  }, null, 8, ["label"]),
21158
- I0(p0, {
21159
- label: S0(O)("report.common.apply"),
21160
- onClick: k[5] || (k[5] = () => Q(JSON.parse(JSON.stringify(H.value))))
20996
+ C0(p0, {
20997
+ label: S0(w)("report.common.apply"),
20998
+ onClick: X[5] || (X[5] = () => q(JSON.parse(JSON.stringify(N.value))))
21161
20999
  }, null, 8, ["label"])
21162
21000
  ])
21163
21001
  ])
@@ -21168,9 +21006,9 @@ const $e = (E, I = "en") => T0().set("hour", E.hour).set("minute", E.minute).loc
21168
21006
  ]);
21169
21007
  };
21170
21008
  }
21171
- }), pr = /* @__PURE__ */ me({
21009
+ }), ar = /* @__PURE__ */ ce({
21172
21010
  __name: "BaseDialog",
21173
- props: /* @__PURE__ */ G0({
21011
+ props: /* @__PURE__ */ X0({
21174
21012
  title: {
21175
21013
  type: String,
21176
21014
  default: "Title"
@@ -21187,35 +21025,35 @@ const $e = (E, I = "en") => T0().set("hour", E.hour).set("minute", E.minute).loc
21187
21025
  modelValue: { type: Boolean, required: !0 },
21188
21026
  modelModifiers: {}
21189
21027
  }),
21190
- emits: /* @__PURE__ */ G0(["confirm"], ["update:modelValue"]),
21191
- setup(E, { emit: I }) {
21192
- const O = re(E, "modelValue"), P = E, B = I;
21193
- return W0(O, () => {
21194
- O.value ? document.body.style.overflow = "hidden" : document.body.style.overflow = "scroll";
21195
- }), (N, J) => {
21196
- const Q = v0("FmButton"), q = v0("FmDialog");
21197
- return q0(), ge(q, {
21198
- modelValue: O.value,
21199
- "onUpdate:modelValue": J[2] || (J[2] = (H) => O.value = H),
21028
+ emits: /* @__PURE__ */ X0(["confirm"], ["update:modelValue"]),
21029
+ setup(A, { emit: F }) {
21030
+ const w = j0(A, "modelValue"), P = A, B = F;
21031
+ return Z0(w, () => {
21032
+ w.value ? document.body.style.overflow = "hidden" : document.body.style.overflow = "scroll";
21033
+ }), (k, J) => {
21034
+ const q = O0("FmButton"), U = O0("FmDialog");
21035
+ return k0(), fe(U, {
21036
+ modelValue: w.value,
21037
+ "onUpdate:modelValue": J[2] || (J[2] = (N) => w.value = N),
21200
21038
  overlay: ""
21201
21039
  }, {
21202
- "dialog-header": H0(() => [
21203
- he(P0(P.title), 1)
21040
+ "dialog-header": B0(() => [
21041
+ pe(v0(P.title), 1)
21204
21042
  ]),
21205
- default: H0(() => [
21206
- Ue(N.$slots, "content")
21043
+ default: B0(() => [
21044
+ ve(k.$slots, "content")
21207
21045
  ]),
21208
- "dialog-footer": H0(() => [
21209
- J[3] || (J[3] = w0("div", { class: "grow" }, null, -1)),
21210
- I0(Q, {
21046
+ "dialog-footer": B0(() => [
21047
+ J[3] || (J[3] = L0("div", { class: "grow" }, null, -1)),
21048
+ C0(q, {
21211
21049
  label: P.secondaryButtonLabel,
21212
21050
  variant: "tertiary",
21213
- onClick: J[0] || (J[0] = (H) => O.value = !1)
21051
+ onClick: J[0] || (J[0] = (N) => w.value = !1)
21214
21052
  }, null, 8, ["label"]),
21215
- I0(Q, {
21053
+ C0(q, {
21216
21054
  label: P.primaryButtonLabel,
21217
21055
  variant: "primary",
21218
- onClick: J[1] || (J[1] = (H) => B("confirm"))
21056
+ onClick: J[1] || (J[1] = (N) => B("confirm"))
21219
21057
  }, null, 8, ["label"])
21220
21058
  ]),
21221
21059
  _: 3
@@ -21224,34 +21062,32 @@ const $e = (E, I = "en") => T0().set("hour", E.hour).set("minute", E.minute).loc
21224
21062
  }
21225
21063
  });
21226
21064
  export {
21227
- ue as C,
21228
- at as D,
21229
- ut as P,
21230
- ot as R,
21231
- it as S,
21232
- st as W,
21233
- fr as _,
21234
- se as a,
21235
- St as b,
21236
- be as c,
21237
- Q0 as d,
21238
- pr as e,
21239
- Me as f,
21240
- Re as g,
21241
- Ft as h,
21242
- lt as i,
21243
- or as j,
21244
- ir as k,
21245
- kt as l,
21246
- dr as m,
21247
- Dr as n,
21248
- ar as o,
21249
- Fe as p,
21250
- sr as q,
21251
- _r as r,
21252
- ur as s,
21253
- $e as t,
21254
- Ie as u,
21255
- cr as v,
21256
- lr as w
21065
+ te as C,
21066
+ Ke as D,
21067
+ Ze as P,
21068
+ tt as R,
21069
+ je as S,
21070
+ et as W,
21071
+ ir as _,
21072
+ ft as a,
21073
+ U0 as b,
21074
+ ar as c,
21075
+ Ee as d,
21076
+ Ae as e,
21077
+ gt as f,
21078
+ rt as g,
21079
+ Kt as h,
21080
+ Gt as i,
21081
+ Lt as j,
21082
+ rr as k,
21083
+ tr as l,
21084
+ zt as m,
21085
+ Se as n,
21086
+ Zt as o,
21087
+ jt as q,
21088
+ er as r,
21089
+ Wt as s,
21090
+ De as t,
21091
+ re as u,
21092
+ nr as v
21257
21093
  };