@feedmepos/mf-report 5.17.3 → 5.18.1-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 (27) hide show
  1. package/dist/App-BnUGnhPB.js +152 -0
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-zm9n1O33.js → BaseDialog.vue_vue_type_script_setup_true_lang-BrHd550j.js} +276 -275
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-BTAGYDCz.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-uiSe3Jon.js} +2 -2
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-CgYGO4yx.js → Default.vue_vue_type_script_setup_true_lang-4V19EFBP.js} +2 -2
  5. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-C8cyy9bU.js → DynamicWidget.vue_vue_type_script_setup_true_lang-B75aeM0i.js} +5 -5
  6. package/dist/{InsightView-DHJpgIpN.js → InsightView-DCIgjpGL.js} +5 -5
  7. package/dist/{Integration-1nQoa-4L.js → Integration-CWUSF_o7.js} +2 -2
  8. package/dist/{Integrations-CwUDvDyk.js → Integrations-BOVIAEgw.js} +3 -3
  9. package/dist/{Layout-BGv-nIpA.js → Layout-Dco__bZI.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-2WVMDoeu.js → MenuTab.vue_vue_type_script_setup_true_lang-BJM6sKQU.js} +6 -6
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-WtoZmgSS.js → NavigationTab.vue_vue_type_script_setup_true_lang-4v9iLIA2.js} +9599 -9310
  12. package/dist/{NoData.vue_vue_type_script_setup_true_lang-jqchPoxC.js → NoData.vue_vue_type_script_setup_true_lang-Divo8W18.js} +1 -1
  13. package/dist/{OverviewView-BoCmq1bd.js → OverviewView-CUPsimnH.js} +5 -5
  14. package/dist/Report-BljRc1xi.js +449 -0
  15. package/dist/{ReportEditor-xcYNm8FC.js → ReportEditor-DgAWdCZe.js} +6 -6
  16. package/dist/ReportView-CMRcpoTz.js +252 -0
  17. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-DgqTEstg.js → SelectComponent.vue_vue_type_script_setup_true_lang-mR2PeX3S.js} +1 -1
  18. package/dist/{Setting-4tVYcTe9.js → Setting-BciZnr8l.js} +4 -4
  19. package/dist/{TileEditor-Bf1rvmkB.js → TileEditor-DgawblCV.js} +7 -7
  20. package/dist/{TransitionFade-Dqqv1vPC.js → TransitionFade-1tV8-j1Z.js} +5 -5
  21. package/dist/app.js +71 -23
  22. package/dist/{helper-DhCLLL6W.js → helper-UCnMF9KV.js} +1 -1
  23. package/dist/{vue-i18n-DFboGk6x.js → vue-i18n-CTLGxUiF.js} +2238 -2224
  24. package/package.json +1 -1
  25. package/dist/App-C0PwmiVf.js +0 -149
  26. package/dist/Report-BM6y_VoL.js +0 -426
  27. package/dist/ReportView-AqpMV-lD.js +0 -192
@@ -1,7 +1,7 @@
1
- import { k as B0, a as c0, F as Z, t as e0, b as R0, c as tu, o as ru, d as _0, e as fu, w as H0, r as N0, l as iu } from "./vue-i18n-DFboGk6x.js";
1
+ import { k as Q0, a as e0, F as Z, t as x0, b as R0, c as tu, o as ru, d as p0, e as fu, w as H0, r as N0, l as iu } from "./vue-i18n-CTLGxUiF.js";
2
2
  import { storeToRefs as X, defineStore as D0 } from "pinia";
3
- import { ref as G, computed as m0, watch as q0, h as nu, defineComponent as bu, mergeModels as Q0, useModel as su, resolveComponent as G0, createBlock as lu, openBlock as ou, withCtx as v0, createElementVNode as _u, createVNode as V0, renderSlot as pu, createTextVNode as $u, toDisplayString as yu } from "vue";
4
- import { useSnackbar as j0, components as gu } from "@feedmepos/ui-library";
3
+ import { ref as V, computed as m0, watch as q0, h as nu, defineComponent as bu, mergeModels as G0, useModel as su, resolveComponent as V0, createBlock as lu, openBlock as ou, withCtx as v0, createElementVNode as _u, createVNode as z0, renderSlot as pu, createTextVNode as $u, toDisplayString as yu } from "vue";
4
+ import { useSnackbar as Y0, components as gu } from "@feedmepos/ui-library";
5
5
  import { useRouter as Su } from "vue-router";
6
6
  import { detectLocale as k0 } from "@feedmepos/mf-common";
7
7
  function mu(y) {
@@ -9,7 +9,7 @@ function mu(y) {
9
9
  }
10
10
  var O0 = {};
11
11
  (function(y) {
12
- var T = typeof B0 < "u" ? B0 : window, E = Object.create(T);
12
+ var T = typeof Q0 < "u" ? Q0 : window, E = Object.create(T);
13
13
  E.scheduleImmediate = typeof setImmediate < "u" ? function(C) {
14
14
  setImmediate(C);
15
15
  } : function(C) {
@@ -21,11 +21,11 @@ var O0 = {};
21
21
  } catch {
22
22
  }
23
23
  if (M) {
24
- var v = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : mu)("url");
24
+ var L = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : mu)("url");
25
25
  Object.defineProperty(E, "location", {
26
26
  value: {
27
27
  get href() {
28
- return v.pathToFileURL ? v.pathToFileURL(process.cwd()).href + "/" : "file://" + function() {
28
+ return L.pathToFileURL ? L.pathToFileURL(process.cwd()).href + "/" : "file://" + function() {
29
29
  var C = process.cwd();
30
30
  return process.platform != "win32" ? C : "/" + C.replace(/\\/g, "/");
31
31
  }() + "/";
@@ -35,33 +35,33 @@ var O0 = {};
35
35
  function C() {
36
36
  try {
37
37
  throw new Error();
38
- } catch (Q) {
39
- var H = Q.stack, k = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), q = null;
38
+ } catch (B) {
39
+ var H = B.stack, k = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), U = null;
40
40
  do {
41
- var U = k.exec(H);
42
- U != null && (q = U);
43
- } while (U != null);
44
- return q[1];
41
+ var q = k.exec(H);
42
+ q != null && (U = q);
43
+ } while (q != null);
44
+ return U[1];
45
45
  }
46
46
  }
47
- var w = null;
47
+ var v = null;
48
48
  Object.defineProperty(E, "document", {
49
49
  value: {
50
50
  get currentScript() {
51
- return w == null && (w = { src: C() }), w;
51
+ return v == null && (v = { src: C() }), v;
52
52
  }
53
53
  }
54
54
  });
55
- }(), E.dartDeferredLibraryLoader = function(C, w, H) {
55
+ }(), E.dartDeferredLibraryLoader = function(C, v, H) {
56
56
  try {
57
- load(C), w();
57
+ load(C), v();
58
58
  } catch (k) {
59
59
  H(k);
60
60
  }
61
61
  };
62
62
  }
63
63
  (function() {
64
- function w(e, x) {
64
+ function v(e, x) {
65
65
  for (var c = Object.keys(e), d = 0; d < c.length; d++) {
66
66
  var a = c[d];
67
67
  x[a] = e[a];
@@ -76,7 +76,7 @@ var O0 = {};
76
76
  function k(e, x) {
77
77
  Object.assign(x, e);
78
78
  }
79
- var q = function() {
79
+ var U = function() {
80
80
  var e = function() {
81
81
  };
82
82
  e.prototype = { p: {} };
@@ -95,27 +95,27 @@ var O0 = {};
95
95
  }
96
96
  return !1;
97
97
  }();
98
- function U(e, x) {
98
+ function q(e, x) {
99
99
  if (e.prototype.constructor = e, e.prototype["$is" + e.name] = e, x != null) {
100
- if (q) {
100
+ if (U) {
101
101
  e.prototype.__proto__ = x.prototype;
102
102
  return;
103
103
  }
104
104
  var c = Object.create(x.prototype);
105
- w(e.prototype, c), e.prototype = c;
105
+ v(e.prototype, c), e.prototype = c;
106
106
  }
107
107
  }
108
- function Q(e, x) {
108
+ function B(e, x) {
109
109
  for (var c = 0; c < x.length; c++)
110
- U(x[c], e);
110
+ q(x[c], e);
111
111
  }
112
- function V(e, x) {
112
+ function Y(e, x) {
113
113
  k(x.prototype, e.prototype), e.prototype.constructor = e;
114
114
  }
115
- function W(e, x) {
115
+ function G(e, x) {
116
116
  H(x.prototype, e.prototype), e.prototype.constructor = e;
117
117
  }
118
- function u0(e, x, c, d) {
118
+ function n0(e, x, c, d) {
119
119
  var a = e;
120
120
  e[x] = a, e[c] = function() {
121
121
  e[c] = function() {
@@ -132,7 +132,7 @@ var O0 = {};
132
132
  return t;
133
133
  };
134
134
  }
135
- function i0(e, x, c, d) {
135
+ function a0(e, x, c, d) {
136
136
  var a = e;
137
137
  e[x] = a, e[c] = function() {
138
138
  return e[x] === a && (e[x] = d()), e[c] = function() {
@@ -140,7 +140,7 @@ var O0 = {};
140
140
  }, e[x];
141
141
  };
142
142
  }
143
- function n0(e, x, c, d) {
143
+ function t0(e, x, c, d) {
144
144
  var a = e;
145
145
  e[x] = a, e[c] = function() {
146
146
  if (e[x] === a) {
@@ -153,13 +153,13 @@ var O0 = {};
153
153
  }, f;
154
154
  };
155
155
  }
156
- function x0(e) {
156
+ function c0(e) {
157
157
  return e.immutable$list = Array, e.fixed$length = Array, e;
158
158
  }
159
159
  function d0(e) {
160
160
  return e;
161
161
  }
162
- function f0(e) {
162
+ function i0(e) {
163
163
  for (var x = 0; x < e.length; ++x)
164
164
  e[x];
165
165
  }
@@ -171,7 +171,7 @@ var O0 = {};
171
171
  return c === null && (c = u.closureFromTearOff(x)), new c(this, null);
172
172
  };
173
173
  }
174
- function p0(e) {
174
+ function o0(e) {
175
175
  var x = null;
176
176
  return function() {
177
177
  return x === null && (x = u.closureFromTearOff(e).prototype), x;
@@ -181,22 +181,22 @@ var O0 = {};
181
181
  function b0(e, x, c, d, a, t, f, i, b, s) {
182
182
  return typeof i == "number" && (i += K), { co: e, iS: x, iI: c, rC: d, dV: a, cs: t, fs: f, fT: i, aI: b || 0, nDA: s };
183
183
  }
184
- function a0(e, x, c, d, a, t, f, i) {
185
- var b = b0(e, !0, !1, c, d, a, t, f, i, !1), s = p0(b);
184
+ function u0(e, x, c, d, a, t, f, i) {
185
+ var b = b0(e, !0, !1, c, d, a, t, f, i, !1), s = o0(b);
186
186
  e[x] = s;
187
187
  }
188
- function t0(e, x, c, d, a, t, f, i, b, s) {
188
+ function r0(e, x, c, d, a, t, f, i, b, s) {
189
189
  c = !!c;
190
190
  var l = b0(e, !1, c, d, a, t, f, i, b, !!s), o = l0(c, l);
191
191
  e[x] = o;
192
192
  }
193
- function j(e) {
193
+ function W(e) {
194
194
  var x = P.interceptorsByTag;
195
195
  if (!x) {
196
196
  P.interceptorsByTag = e;
197
197
  return;
198
198
  }
199
- w(e, x);
199
+ v(e, x);
200
200
  }
201
201
  function s0(e) {
202
202
  var x = P.leafTags;
@@ -204,26 +204,26 @@ var O0 = {};
204
204
  P.leafTags = e;
205
205
  return;
206
206
  }
207
- w(e, x);
207
+ v(e, x);
208
208
  }
209
- function r0(e) {
209
+ function f0(e) {
210
210
  var x = P.types, c = x.length;
211
211
  return x.push.apply(x, e), c;
212
212
  }
213
- function o0(e, x) {
214
- return w(x, e), e;
213
+ function _0(e, x) {
214
+ return v(x, e), e;
215
215
  }
216
- var B = function() {
216
+ var Q = function() {
217
217
  var e = function(c, d, a, t, f) {
218
218
  return function(i, b, s, l) {
219
- return t0(i, b, c, d, a, t, [s], l, f, !1);
219
+ return r0(i, b, c, d, a, t, [s], l, f, !1);
220
220
  };
221
221
  }, x = function(c, d, a, t) {
222
222
  return function(f, i, b, s) {
223
- return a0(f, i, c, d, a, [b], s, t);
223
+ return u0(f, i, c, d, a, [b], s, t);
224
224
  };
225
225
  };
226
- return { inherit: U, inheritMany: Q, mixin: V, mixinHard: W, installStaticTearOff: a0, installInstanceTearOff: t0, _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: x(0, null, ["call$0"], 0), _static_1: x(1, null, ["call$1"], 0), _static_2: x(2, null, ["call$2"], 0), makeConstList: x0, lazy: i0, lazyFinal: n0, lazyOld: u0, updateHolder: o0, convertToFastObject: d0, updateTypes: r0, setOrUpdateInterceptorsByTag: j, setOrUpdateLeafTags: s0 };
226
+ return { inherit: q, inheritMany: B, mixin: Y, mixinHard: G, installStaticTearOff: u0, installInstanceTearOff: r0, _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: x(0, null, ["call$0"], 0), _static_1: x(1, null, ["call$1"], 0), _static_2: x(2, null, ["call$2"], 0), makeConstList: c0, lazy: a0, lazyFinal: t0, lazyOld: n0, updateHolder: _0, convertToFastObject: d0, updateTypes: f0, setOrUpdateInterceptorsByTag: W, setOrUpdateLeafTags: s0 };
227
227
  }(), u = {
228
228
  JS_CONST: function() {
229
229
  },
@@ -260,8 +260,8 @@ var O0 = {};
260
260
  }
261
261
  },
262
262
  Sort__dualPivotQuicksort(e, x, c, d) {
263
- var a, t, f, i, b, s, l, o, _, m, g = r.JSInt_methods._tdivFast$1(c - x + 1, 6), S = x + g, A = c - g, F = r.JSInt_methods._tdivFast$1(x + c, 2), R = F - g, D = F + g, I = $.getInterceptor$asx(e), L = I.$index(e, S), O = I.$index(e, R), J = I.$index(e, F), N = I.$index(e, D), z = I.$index(e, A);
264
- if (d.call$2(L, O) > 0 && (a = O, O = L, L = a), d.call$2(N, z) > 0 && (a = z, z = N, N = a), d.call$2(L, J) > 0 && (a = J, J = L, L = a), d.call$2(O, J) > 0 && (a = J, J = O, O = a), d.call$2(L, N) > 0 && (a = N, N = L, L = a), d.call$2(J, N) > 0 && (a = N, N = J, J = a), d.call$2(O, z) > 0 && (a = z, z = O, O = a), d.call$2(O, J) > 0 && (a = J, J = O, O = a), d.call$2(N, z) > 0 && (a = z, z = N, N = a), I.$indexSet(e, S, L), I.$indexSet(e, F, J), I.$indexSet(e, A, z), I.$indexSet(e, R, I.$index(e, x)), I.$indexSet(e, D, I.$index(e, c)), t = x + 1, f = c - 1, $.$eq$(d.call$2(O, N), 0)) {
263
+ var a, t, f, i, b, s, l, o, _, m, g = r.JSInt_methods._tdivFast$1(c - x + 1, 6), S = x + g, A = c - g, F = r.JSInt_methods._tdivFast$1(x + c, 2), R = F - g, D = F + g, I = $.getInterceptor$asx(e), w = I.$index(e, S), O = I.$index(e, R), J = I.$index(e, F), N = I.$index(e, D), z = I.$index(e, A);
264
+ if (d.call$2(w, O) > 0 && (a = O, O = w, w = a), d.call$2(N, z) > 0 && (a = z, z = N, N = a), d.call$2(w, J) > 0 && (a = J, J = w, w = a), d.call$2(O, J) > 0 && (a = J, J = O, O = a), d.call$2(w, N) > 0 && (a = N, N = w, w = a), d.call$2(J, N) > 0 && (a = N, N = J, J = a), d.call$2(O, z) > 0 && (a = z, z = O, O = a), d.call$2(O, J) > 0 && (a = J, J = O, O = a), d.call$2(N, z) > 0 && (a = z, z = N, N = a), I.$indexSet(e, S, w), I.$indexSet(e, F, J), I.$indexSet(e, A, z), I.$indexSet(e, R, I.$index(e, x)), I.$indexSet(e, D, I.$index(e, c)), t = x + 1, f = c - 1, $.$eq$(d.call$2(O, N), 0)) {
265
265
  for (i = t; i <= f; ++i)
266
266
  if (b = I.$index(e, i), s = d.call$2(b, O), s !== 0)
267
267
  if (s < 0)
@@ -658,12 +658,12 @@ var O0 = {};
658
658
  return x;
659
659
  },
660
660
  Closure_fromTearOff(e) {
661
- var x, c, d, a, t, f, i, b, s, l, o = e.co, _ = e.iS, m = e.iI, g = e.nDA, S = e.aI, A = e.fs, F = e.cs, R = A[0], D = F[0], I = o[R], L = e.fT;
662
- for (L.toString, x = Object.create(_ ? new u.StaticClosure().constructor.prototype : new u.BoundClosure(null, null).constructor.prototype), x.$initialize = x.constructor, _ ? c = function() {
661
+ var x, c, d, a, t, f, i, b, s, l, o = e.co, _ = e.iS, m = e.iI, g = e.nDA, S = e.aI, A = e.fs, F = e.cs, R = A[0], D = F[0], I = o[R], w = e.fT;
662
+ for (w.toString, x = Object.create(_ ? new u.StaticClosure().constructor.prototype : new u.BoundClosure(null, null).constructor.prototype), x.$initialize = x.constructor, _ ? c = function() {
663
663
  this.$initialize();
664
664
  } : c = function(J, N) {
665
665
  this.$initialize(J, N);
666
- }, x.constructor = c, c.prototype = x, x.$_name = R, x.$_target = I, d = !_, d ? a = u.Closure_forwardCallTo(R, I, m, g) : (x.$static_name = R, a = I), x.$signature = u.Closure__computeSignatureFunctionNewRti(L, _, m), x[D] = a, t = a, f = 1; f < A.length; ++f)
666
+ }, x.constructor = c, c.prototype = x, x.$_name = R, x.$_target = I, d = !_, d ? a = u.Closure_forwardCallTo(R, I, m, g) : (x.$static_name = R, a = I), x.$signature = u.Closure__computeSignatureFunctionNewRti(w, _, m), x[D] = a, t = a, f = 1; f < A.length; ++f)
667
667
  i = A[f], typeof i == "string" ? (b = o[i], s = i, i = b) : s = "", l = F[f], l != null && (d && (i = u.Closure_forwardCallTo(s, i, m, g)), x[l] = i), f === S && (t = i);
668
668
  return x["call*"] = t, x.$requiredArgCount = e.rC, x.$defaultValues = e.dV, c;
669
669
  },
@@ -1393,7 +1393,7 @@ var O0 = {};
1393
1393
  return t + "})";
1394
1394
  },
1395
1395
  _functionRtiToString(e, x, c) {
1396
- var d, a, t, f, i, b, s, l, o, _, m, g, S, A, F, R, D, I, L, O, J, N = ", ";
1396
+ var d, a, t, f, i, b, s, l, o, _, m, g, S, A, F, R, D, I, w, O, J, N = ", ";
1397
1397
  if (c != null) {
1398
1398
  for (d = c.length, x == null ? (x = u._setArrayType([], n.JSArray_String), a = null) : a = x.length, t = x.length, f = d; f > 0; --f)
1399
1399
  x.push("T" + (t + f));
@@ -1402,7 +1402,7 @@ var O0 = {};
1402
1402
  s += ">";
1403
1403
  } else
1404
1404
  s = "", a = null;
1405
- for (i = e._primary, g = e._rest, S = g._requiredPositional, A = S.length, F = g._optionalPositional, R = F.length, D = g._named, I = D.length, L = u._rtiToString(i, x), O = "", J = "", f = 0; f < A; ++f, J = N)
1405
+ for (i = e._primary, g = e._rest, S = g._requiredPositional, A = S.length, F = g._optionalPositional, R = F.length, D = g._named, I = D.length, w = u._rtiToString(i, x), O = "", J = "", f = 0; f < A; ++f, J = N)
1406
1406
  O += J + u._rtiToString(S[f], x);
1407
1407
  if (R > 0) {
1408
1408
  for (O += J + "[", J = "", f = 0; f < R; ++f, J = N)
@@ -1414,7 +1414,7 @@ var O0 = {};
1414
1414
  O += J, D[f + 1] && (O += "required "), O += u._rtiToString(D[f + 2], x) + " " + D[f];
1415
1415
  O += "}";
1416
1416
  }
1417
- return a != null && (x.toString, x.length = a), s + "(" + O + ") => " + L;
1417
+ return a != null && (x.toString, x.length = a), s + "(" + O + ") => " + w;
1418
1418
  },
1419
1419
  _rtiToString(e, x) {
1420
1420
  var c, d, a, t, f, i, b = e._kind;
@@ -1772,7 +1772,7 @@ var O0 = {};
1772
1772
  return b === 12 ? x === n.JavaScriptFunction ? !0 : t ? !1 : u._isFunctionSubtype(e, x, c, d, a) : f === 9 ? b !== 9 ? !1 : u._isInterfaceSubtype(e, x, c, d, a) : (t = f === 11, t && d === n.Record ? !0 : t && b === 11 ? u._isRecordSubtype(e, x, c, d, a) : !1);
1773
1773
  },
1774
1774
  _isFunctionSubtype(e, x, c, d, a) {
1775
- var t, f, i, b, s, l, o, _, m, g, S, A, F, R, D, I, L, O, J, N, z, y0;
1775
+ var t, f, i, b, s, l, o, _, m, g, S, A, F, R, D, I, w, O, J, N, z, y0;
1776
1776
  if (!u._isSubtype(e, x._primary, c, d._primary, a) || (t = x._rest, f = d._rest, i = t._requiredPositional, b = f._requiredPositional, s = i.length, l = b.length, s > l) || (o = l - s, _ = t._optionalPositional, m = f._optionalPositional, g = _.length, S = m.length, s + g < l + S))
1777
1777
  return !1;
1778
1778
  for (A = 0; A < s; ++A)
@@ -1784,7 +1784,7 @@ var O0 = {};
1784
1784
  for (A = 0; A < S; ++A)
1785
1785
  if (F = _[o + A], !u._isSubtype(e, m[A], a, F, c))
1786
1786
  return !1;
1787
- for (R = t._named, D = f._named, I = R.length, L = D.length, O = 0, J = 0; J < L; J += 3)
1787
+ for (R = t._named, D = f._named, I = R.length, w = D.length, O = 0, J = 0; J < w; J += 3)
1788
1788
  for (N = D[J]; ; ) {
1789
1789
  if (O >= I || (z = R[O], O += 3, N < z))
1790
1790
  return !1;
@@ -2882,8 +2882,8 @@ and target_table.docId in UNNEST(@docIds)
2882
2882
  return u.Schema$(e, x, D, d, a, t ?? 300, f, i, b, s, I, o, _, m, g, S, A, F, R);
2883
2883
  },
2884
2884
  Schema_fromJson(e) {
2885
- var x, c, d, a, t, f, i, b, s, l, o, _, m, g = $.map$1$ax(e.$index(0, "fields"), new u.Schema_fromJson_closure()).toList$0(0), S = e.$index(0, "label"), A = u.EnumByName_byName(r.List_9YI, e.$index(0, "name")), F = $.map$1$ax(e.$index(0, "joins"), new u.Schema_fromJson_closure0()).toList$0(0), R = u.TopLevelFilters_fromJson(e.$index(0, "topLevelFilters")), D = e.$index(0, "source"), I = u.EnumByName_byName(r.List_SOURCE_TYPE_0_SOURCE_TYPE_1, D.$index(0, "type")), L = D.$index(0, "table");
2886
- return D = D.$index(0, "field"), x = e.$index(0, "rawTableName"), c = e.$index(0, "dynamicRawTable"), d = e.$index(0, "materializedTableName"), a = e.$index(0, "materializedPostgresqlTableName"), t = e.$index(0, "isJoinOnly"), f = e.$index(0, "isMaterializeOnly"), i = e.$index(0, "isContinuousUpdate"), b = e.$index(0, "interval"), s = e.$index(0, "partition"), l = e.$index(0, "clusters"), l == null && (l = u._setArrayType([], n.JSArray_String)), o = e.$index(0, "indexes"), o = o == null ? null : $.map$1$ax(o, new u.Schema_fromJson_closure1()), o == null && (o = u._setArrayType([], n.JSArray_Index)), _ = e.$index(0, "filters"), _ = _ == null ? null : $.map$1$ax(_, new u.Schema_fromJson_closure2()).toList$0(0), _ == null && (_ = u._setArrayType([], n.JSArray_QueryRequestFilter)), m = e.$index(0, "isGlobal"), m == null && (m = !1), u.Schema$(l, c, g, _, o, b, i, m, t, f, F, S, a, d, A, s, x, new u.Source(I, L, D), R);
2885
+ var x, c, d, a, t, f, i, b, s, l, o, _, m, g = $.map$1$ax(e.$index(0, "fields"), new u.Schema_fromJson_closure()).toList$0(0), S = e.$index(0, "label"), A = u.EnumByName_byName(r.List_9YI, e.$index(0, "name")), F = $.map$1$ax(e.$index(0, "joins"), new u.Schema_fromJson_closure0()).toList$0(0), R = u.TopLevelFilters_fromJson(e.$index(0, "topLevelFilters")), D = e.$index(0, "source"), I = u.EnumByName_byName(r.List_SOURCE_TYPE_0_SOURCE_TYPE_1, D.$index(0, "type")), w = D.$index(0, "table");
2886
+ return D = D.$index(0, "field"), x = e.$index(0, "rawTableName"), c = e.$index(0, "dynamicRawTable"), d = e.$index(0, "materializedTableName"), a = e.$index(0, "materializedPostgresqlTableName"), t = e.$index(0, "isJoinOnly"), f = e.$index(0, "isMaterializeOnly"), i = e.$index(0, "isContinuousUpdate"), b = e.$index(0, "interval"), s = e.$index(0, "partition"), l = e.$index(0, "clusters"), l == null && (l = u._setArrayType([], n.JSArray_String)), o = e.$index(0, "indexes"), o = o == null ? null : $.map$1$ax(o, new u.Schema_fromJson_closure1()), o == null && (o = u._setArrayType([], n.JSArray_Index)), _ = e.$index(0, "filters"), _ = _ == null ? null : $.map$1$ax(_, new u.Schema_fromJson_closure2()).toList$0(0), _ == null && (_ = u._setArrayType([], n.JSArray_QueryRequestFilter)), m = e.$index(0, "isGlobal"), m == null && (m = !1), u.Schema$(l, c, g, _, o, b, i, m, t, f, F, S, a, d, A, s, x, new u.Source(I, w, D), R);
2887
2887
  },
2888
2888
  Field_Field$numeric(e, x, c, d, a, t, f) {
2889
2889
  return new u._NumericField(d, a, r.DATA_TYPE_3, e, t, c, x, f);
@@ -3858,8 +3858,8 @@ and target_table.docId in UNNEST(@docIds)
3858
3858
  this.$this = x;
3859
3859
  },
3860
3860
  TableDatasourceConfigModel: function(x, c, d, a, t, f, i, b, s, l, o, _, m, g, S, A, F, R, D, I) {
3861
- var L = this;
3862
- L.columnsWidth = x, L.isDrillable = c, L.showGrandTotal = d, L.rollup = a, L.rollupPosition = t, L.rowsPerPage = f, L.isBlend = i, L._table_datasource_config_model$_drillDimension = b, L._rowIds = s, L._columnIds = l, L._joinDatasources = o, L.schemaNames = _, L.dimensions = m, L.metrics = g, L.filters = S, L.sorts = A, L.limit = F, L.isComparable = R, L.periodType = D, L.timezone = I;
3861
+ var w = this;
3862
+ w.columnsWidth = x, w.isDrillable = c, w.showGrandTotal = d, w.rollup = a, w.rollupPosition = t, w.rowsPerPage = f, w.isBlend = i, w._table_datasource_config_model$_drillDimension = b, w._rowIds = s, w._columnIds = l, w._joinDatasources = o, w.schemaNames = _, w.dimensions = m, w.metrics = g, w.filters = S, w.sorts = A, w.limit = F, w.isComparable = R, w.periodType = D, w.timezone = I;
3863
3863
  },
3864
3864
  TableDatasourceConfigModel_drilledDimensions_closure: function(x) {
3865
3865
  this.$this = x;
@@ -8338,8 +8338,8 @@ Arguments: [` + b + "]";
8338
8338
  $signature: 1
8339
8339
  }, u.billSchema_closure.prototype = {
8340
8340
  call$1(e) {
8341
- var x = null, c = "seqNumber", d = "deliveryName", a = "isRefund", t = "isPickup", f = "isInHouseDelivery", i = "isDelivery", b = "completedAt", s = "integratedOrderId", l = "itemCount", o = "taxTotal", _ = "discountTotal", m = "grossTotal", g = "rounding", S = "takeawayPrice", A = "thirdPartyExtraCharge", F = "deliveryFee", R = "nettTotal", D = "deliveryFeeWithTax", I = "deliveryFeeWithoutTax", L = "otherChargeWithTax", O = "otherChargeWithoutTax", J = "discountInclusiveTaxTotal";
8342
- return u._setArrayType([u.Field_Field$string(x, !1, "ID", "id", "_id", x, e), u.Field_Field$string(x, !0, x, "docId", "_docId", x, e), u.Field_Field$timestamp(x, !0, x, "publishedAt", "_publishedAt", x, e), u.Field_Field$timestamp(x, !1, "Time", "createdAt", "_createdAt", x, e), u.Field_Field$string(x, !1, "Restaurant ID", "restaurantId", "_restaurantId", x, e), u.Field_Field$string(x, !1, "Status", "status", "status", x, e), u.Field_Field$string(x, !1, "No.", c, c, x, e), u.Field_Field$string(x, !1, "Table", "slot", "slot", x, e), u.Field_Field$string(x, !1, "Delivery", d, d, x, e), u.Field_Field$string(x, !1, "Refund ID", "refundFrom", "refundedFrom", x, e), u.Field_Field$bool(x, !1, "Refund", a, a, x, e), u.Field_Field$string(x, !0, x, "refundApprovedById", "refund.approvedBy.id", x, e), u.Field_Field$string(x, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", x, e), u.Field_Field$string(x, !0, x, "refundedById", "refund.by.id", x, e), u.Field_Field$string(x, !1, "Refund user", "refundedByName", "refund.by.name", x, e), u.Field_Field$string(x, !1, "Refund reason", "refundReason", "refund.reason", x, e), u.Field_Field$string(x, !1, "Member ID", "memberId", "membership.id", x, e), u.Field_Field$string(x, !1, "Member user ID", "memberUserId", "membership.userId", x, e), u.Field_Field$string(x, !1, "Member name", "memberUserName", "membership.name", x, e), u.Field_Field$string(x, !0, "Member phone", "memberPhoneNumber", "membership.phoneNumber", x, e), u.Field_Field$timestamp(x, !1, "Member birthday", "memberBirthday", "membership.birthday", x, e), u.Field_Field$string(x, !1, "Remark", "remark", "remark", x, e), u.Field_Field$string(x, !1, "Source", "source", "source", "(case when @source='' then 'FEEDME' else @source end)", e), u.Field_Field$string(x, !1, "Type", "type", "type", x, e), u.Field_Field$bool(x, !0, "Pickup", t, t, x, e), u.Field_Field$bool(x, !0, "Is in house delivery", f, f, x, e), u.Field_Field$bool(x, !0, "Is other delivery", i, i, x, e), u.Field_Field$bool(x, !0, "Is takeaway", "isTakeaway", "is.takeaway", x, e), u.Field_Field$timestamp(x, !1, "Closed at", b, b, x, e), u.Field_Field$string(x, !0, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", x, e), u.Field_Field$string(x, !0, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", x, e), u.Field_Field$string(x, !0, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", x, e), u.Field_Field$string(x, !0, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", x, e), u.Field_Field$numeric("IFNULL(@pax,0)*IF(@isRefund, -1, 1)", !1, "Pax", "pax", "person", h.COALESp, e), u.Field_Field$string(x, !1, "Integrated order ID", s, s, x, e), u.Field_Field$numeric(h.IFNULLi, !0, "Item count", l, l, h.COALESi, e), u.Field_Field$numeric("IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !1, "Tax", o, o, h.COALEStax, e), u.Field_Field$numeric(h.IFNULLdi, !1, "Discount", _, _, h.COALESdi, e), u.Field_Field$numeric(h.IFNULLg, !1, "Item gross", m, m, h.COALESg, e), u.Field_Field$numeric("(IFNULL(@nettTotal,0)-IFNULL(@rounding,0)-IFNULL(@discountTotal,0)-IFNULL(@thirdPartyExtraCharge,0)-IFNULL(@deliveryFee,0)-IFNULL(@taxTotal,0)-IFNULL(@serviceChargeTotal,0))*IF(@isRefund, -1, 1)", !1, "Bill gross", "billGrossTotal", x, "(COALESCE(@nett_total,0)-COALESCE(@rounding,0)-COALESCE(@discount_total,0)-COALESCE(@third_party_extra_charge,0)-COALESCE(@delivery_fee,0)-COALESCE(@tax_total,0)-COALESCE(@service_charge_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric("IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, "Rounding", g, g, h.COALESr, e), u.Field_Field$numeric("IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, "SST", "sstTotal", "nettTaxes.SST.total", h.COALESss, e), u.Field_Field$string(x, !0, "SST %", "sstPercentage", "nettTaxes.SST.percentage", x, e), u.Field_Field$numeric(h.IFNULLs, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", h.COALESse, e), u.Field_Field$string(x, !0, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", x, e), u.Field_Field$numeric(h.x28IFNULo, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", h.x28COALEo, e), u.Field_Field$numeric(h.x28IFNULgx2d, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", x, h.x28COALEgx2d, e), u.Field_Field$numeric(h.IFNULLta, !1, "Takeaway", S, S, h.COALEStak, e), u.Field_Field$numeric(h.IFNULLth, !1, "Extra charge", A, A, h.COALESth, e), u.Field_Field$numeric(h.IFNULLde, !1, "Delivery fee", F, F, h.COALESde, e), u.Field_Field$numeric(h.IFNULLn, !1, "Nett", R, R, h.COALESn, e), u.Field_Field$numeric("(IFNULL(@grossTotal,0)+IFNULL(@deliveryFeeWithTax,0)+IFNULL(@otherChargeWithTax,0)+IFNULL(@discountTotal,0))*IF(@isRefund, -1, 1)", !1, "Item gross before charges", "grossBeforeCharges", x, "(COALESCE(@gross_total,0)+COALESCE(@delivery_fee_with_tax,0)+COALESCE(@other_charge_with_tax,0)+COALESCE(@discount_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric("(IFNULL(@nettTotal,0)-IFNULL(@rounding,0)-(case when @otherChargeWithTax>0 then 0 else IFNULL(@thirdPartyExtraCharge,0) end)-(case when @deliveryFeeWithTax>0 then 0 else IFNULL(@deliveryFee,0) end)-IFNULL(@taxTotal,0)-IFNULL(@serviceChargeTotal,0))*IF(@isRefund, -1, 1)", !1, "Bill gross before charges", "billGrossBeforeCharges", x, "(COALESCE(@nett_total,0)-COALESCE(@rounding,0)-(case when @other_charge_with_tax>0 then 0 else COALESCE(@third_party_extra_charge,0) end)-(case when @delivery_fee_with_tax>0 then 0 else COALESCE(@delivery_fee,0) end)-COALESCE(@tax_total,0)-COALESCE(@service_charge_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric(x, !1, "Member Recency", "recency", x, h.MIN_EX, e), u.Field_Field$numeric(x, !1, "Member frequency", "frequency", x, h.COUNT_, e), u.Field_Field$numeric(x, !1, "Member monetary", "monetary", x, h.SUM__n, e), u.Field_Field$numeric("IFNULL(@deliveryFeeWithTax,0)*IF(@isRefund, -1, 1)", !1, "Delivery fee with tax", D, D, "COALESCE(@delivery_fee_with_tax,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric("IFNULL(@deliveryFeeWithoutTax,0)*IF(@isRefund, -1, 1)", !1, "Delivery fee without tax", I, I, "COALESCE(@delivery_fee_without_tax,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric("IFNULL(@otherChargeWithTax,0)*IF(@isRefund, -1, 1)", !1, "Other charge with tax", L, L, "COALESCE(@other_charge_with_tax,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric("IFNULL(@otherChargeWithoutTax,0)*IF(@isRefund, -1, 1)", !1, "Other charge without tax", O, O, "COALESCE(@other_charge_without_tax,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric(x, !1, "Duration", "duration", x, "EXTRACT(EPOCH FROM (@completed_at-@created_at))", e), u.Field_Field$string(x, !1, "Restaurant", "restaurantName", x, "(select name from restaurants where restaurants.id=@restaurant_id)", e), u.Field_Field$numeric(x, !1, "Labour hour", "labourHour", x, `(select SUM(ROUND(
8341
+ var x = null, c = "seqNumber", d = "deliveryName", a = "isRefund", t = "isPickup", f = "isInHouseDelivery", i = "isDelivery", b = "completedAt", s = "integratedOrderId", l = "itemCount", o = "taxTotal", _ = "discountTotal", m = "grossTotal", g = "rounding", S = "takeawayPrice", A = "thirdPartyExtraCharge", F = "deliveryFee", R = "nettTotal", D = "deliveryFeeWithTax", I = "deliveryFeeWithoutTax", w = "otherChargeWithTax", O = "otherChargeWithoutTax", J = "discountInclusiveTaxTotal";
8342
+ return u._setArrayType([u.Field_Field$string(x, !1, "ID", "id", "_id", x, e), u.Field_Field$string(x, !0, x, "docId", "_docId", x, e), u.Field_Field$timestamp(x, !0, x, "publishedAt", "_publishedAt", x, e), u.Field_Field$timestamp(x, !1, "Time", "createdAt", "_createdAt", x, e), u.Field_Field$string(x, !1, "Restaurant ID", "restaurantId", "_restaurantId", x, e), u.Field_Field$string(x, !1, "Status", "status", "status", x, e), u.Field_Field$string(x, !1, "No.", c, c, x, e), u.Field_Field$string(x, !1, "Table", "slot", "slot", x, e), u.Field_Field$string(x, !1, "Delivery", d, d, x, e), u.Field_Field$string(x, !1, "Refund ID", "refundFrom", "refundedFrom", x, e), u.Field_Field$bool(x, !1, "Refund", a, a, x, e), u.Field_Field$string(x, !0, x, "refundApprovedById", "refund.approvedBy.id", x, e), u.Field_Field$string(x, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", x, e), u.Field_Field$string(x, !0, x, "refundedById", "refund.by.id", x, e), u.Field_Field$string(x, !1, "Refund user", "refundedByName", "refund.by.name", x, e), u.Field_Field$string(x, !1, "Refund reason", "refundReason", "refund.reason", x, e), u.Field_Field$string(x, !1, "Member ID", "memberId", "membership.id", x, e), u.Field_Field$string(x, !1, "Member user ID", "memberUserId", "membership.userId", x, e), u.Field_Field$string(x, !1, "Member name", "memberUserName", "membership.name", x, e), u.Field_Field$string(x, !0, "Member phone", "memberPhoneNumber", "membership.phoneNumber", x, e), u.Field_Field$timestamp(x, !1, "Member birthday", "memberBirthday", "membership.birthday", x, e), u.Field_Field$string(x, !1, "Remark", "remark", "remark", x, e), u.Field_Field$string(x, !1, "Source", "source", "source", "(case when @source='' then 'FEEDME' else @source end)", e), u.Field_Field$string(x, !1, "Type", "type", "type", x, e), u.Field_Field$bool(x, !0, "Pickup", t, t, x, e), u.Field_Field$bool(x, !0, "Is in house delivery", f, f, x, e), u.Field_Field$bool(x, !0, "Is other delivery", i, i, x, e), u.Field_Field$bool(x, !0, "Is takeaway", "isTakeaway", "is.takeaway", x, e), u.Field_Field$timestamp(x, !1, "Closed at", b, b, x, e), u.Field_Field$string(x, !0, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", x, e), u.Field_Field$string(x, !0, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", x, e), u.Field_Field$string(x, !0, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", x, e), u.Field_Field$string(x, !0, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", x, e), u.Field_Field$numeric("IFNULL(@pax,0)*IF(@isRefund, -1, 1)", !1, "Pax", "pax", "person", h.COALESp, e), u.Field_Field$string(x, !1, "Integrated order ID", s, s, x, e), u.Field_Field$numeric(h.IFNULLi, !0, "Item count", l, l, h.COALESi, e), u.Field_Field$numeric("IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !1, "Tax", o, o, h.COALEStax, e), u.Field_Field$numeric(h.IFNULLdi, !1, "Discount", _, _, h.COALESdi, e), u.Field_Field$numeric(h.IFNULLg, !1, "Item gross", m, m, h.COALESg, e), u.Field_Field$numeric("(IFNULL(@nettTotal,0)-IFNULL(@rounding,0)-IFNULL(@discountTotal,0)-IFNULL(@thirdPartyExtraCharge,0)-IFNULL(@deliveryFee,0)-IFNULL(@taxTotal,0)-IFNULL(@serviceChargeTotal,0))*IF(@isRefund, -1, 1)", !1, "Bill gross", "billGrossTotal", x, "(COALESCE(@nett_total,0)-COALESCE(@rounding,0)-COALESCE(@discount_total,0)-COALESCE(@third_party_extra_charge,0)-COALESCE(@delivery_fee,0)-COALESCE(@tax_total,0)-COALESCE(@service_charge_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric("IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, "Rounding", g, g, h.COALESr, e), u.Field_Field$numeric("IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, "SST", "sstTotal", "nettTaxes.SST.total", h.COALESss, e), u.Field_Field$string(x, !0, "SST %", "sstPercentage", "nettTaxes.SST.percentage", x, e), u.Field_Field$numeric(h.IFNULLs, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", h.COALESse, e), u.Field_Field$string(x, !0, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", x, e), u.Field_Field$numeric(h.x28IFNULo, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", h.x28COALEo, e), u.Field_Field$numeric(h.x28IFNULgx2d, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", x, h.x28COALEgx2d, e), u.Field_Field$numeric(h.IFNULLta, !1, "Takeaway", S, S, h.COALEStak, e), u.Field_Field$numeric(h.IFNULLth, !1, "Extra charge", A, A, h.COALESth, e), u.Field_Field$numeric(h.IFNULLde, !1, "Delivery fee", F, F, h.COALESde, e), u.Field_Field$numeric(h.IFNULLn, !1, "Nett", R, R, h.COALESn, e), u.Field_Field$numeric("(IFNULL(@grossTotal,0)+IFNULL(@deliveryFeeWithTax,0)+IFNULL(@otherChargeWithTax,0)+IFNULL(@discountTotal,0))*IF(@isRefund, -1, 1)", !1, "Item gross before charges", "grossBeforeCharges", x, "(COALESCE(@gross_total,0)+COALESCE(@delivery_fee_with_tax,0)+COALESCE(@other_charge_with_tax,0)+COALESCE(@discount_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric("(IFNULL(@nettTotal,0)-IFNULL(@rounding,0)-(case when @otherChargeWithTax>0 then 0 else IFNULL(@thirdPartyExtraCharge,0) end)-(case when @deliveryFeeWithTax>0 then 0 else IFNULL(@deliveryFee,0) end)-IFNULL(@taxTotal,0)-IFNULL(@serviceChargeTotal,0))*IF(@isRefund, -1, 1)", !1, "Bill gross before charges", "billGrossBeforeCharges", x, "(COALESCE(@nett_total,0)-COALESCE(@rounding,0)-(case when @other_charge_with_tax>0 then 0 else COALESCE(@third_party_extra_charge,0) end)-(case when @delivery_fee_with_tax>0 then 0 else COALESCE(@delivery_fee,0) end)-COALESCE(@tax_total,0)-COALESCE(@service_charge_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric(x, !1, "Member Recency", "recency", x, h.MIN_EX, e), u.Field_Field$numeric(x, !1, "Member frequency", "frequency", x, h.COUNT_, e), u.Field_Field$numeric(x, !1, "Member monetary", "monetary", x, h.SUM__n, e), u.Field_Field$numeric("IFNULL(@deliveryFeeWithTax,0)*IF(@isRefund, -1, 1)", !1, "Delivery fee with tax", D, D, "COALESCE(@delivery_fee_with_tax,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric("IFNULL(@deliveryFeeWithoutTax,0)*IF(@isRefund, -1, 1)", !1, "Delivery fee without tax", I, I, "COALESCE(@delivery_fee_without_tax,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric("IFNULL(@otherChargeWithTax,0)*IF(@isRefund, -1, 1)", !1, "Other charge with tax", w, w, "COALESCE(@other_charge_with_tax,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric("IFNULL(@otherChargeWithoutTax,0)*IF(@isRefund, -1, 1)", !1, "Other charge without tax", O, O, "COALESCE(@other_charge_without_tax,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric(x, !1, "Duration", "duration", x, "EXTRACT(EPOCH FROM (@completed_at-@created_at))", e), u.Field_Field$string(x, !1, "Restaurant", "restaurantName", x, "(select name from restaurants where restaurants.id=@restaurant_id)", e), u.Field_Field$numeric(x, !1, "Labour hour", "labourHour", x, `(select SUM(ROUND(
8343
8343
  (case when EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_at))<86400
8344
8344
  then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_at)) else 86400 end)/3600,2)) from timesheets where restaurant_id=@restaurant_id and timesheets.created_at < !end and coalesce(timesheets.ended_at,!end) > !start and DATE_TRUNC('day',@created_at AT TIME ZONE 'Asia/Kuala_Lumpur') between DATE_TRUNC('day',timesheets.created_at AT TIME ZONE 'Asia/Kuala_Lumpur') and DATE_TRUNC('day',COALESCE(timesheets.ended_at,!end) AT TIME ZONE 'Asia/Kuala_Lumpur')+INTERVAL '1 day'-INTERVAL '1 second')`, e), u.Field_Field$string(x, !1, "Payments", "payments", x, "(select string_agg(distinct name, ',') from payments where payments.bill_id=@id and payments.restaurant_id=@restaurant_id)", e), u.Field_Field$string(x, !1, "Items", "items", x, "(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)", e), u.Field_Field$string(x, !1, "Discount reasons", "discountReasons", x, "(select string_agg(distinct adjustments.reason, ',') from adjustments where adjustments.bill_id=@id and adjustments.restaurant_id=@restaurant_id)", e), u.Field_Field$numeric("IFNULL(@discountInclusiveTaxTotal,0)*IF(@isRefund, -1, 1)", !1, "Discount inc tax", J, J, "COALESCE(@discount_inclusive_tax_total,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$string(x, !1, "Payment Summaries", "paymentSummaries", x, "(select string_agg(distinct CONCAT(name, CASE WHEN card_type is not null THEN CONCAT(' (',card_type, ')') WHEN payment_gateway_issuer is not null THEN CONCAT(' (',payment_gateway_issuer, ')') ELSE '' END), ',') from payments where payments.bill_id=@id and payments.restaurant_id=@restaurant_id)", e)], n.JSArray_Field);
8345
8345
  },
@@ -8491,10 +8491,10 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
8491
8491
  $signature: 1
8492
8492
  }, u.flattenItemSchema_closure.prototype = {
8493
8493
  call$1(e) {
8494
- var x = null, c = "itemCreatedAt", d = "billCompletedAt", a = "perXUnit", t = "takeawayId", f = "takeawayName", i = "productId", b = "isRefund", s = "servedAt", l = "isTakeaway", o = "quantity", _ = "unitQuantity", m = "billAdjustmentTotal", g = "itemAdjustmentTotal", S = "grossTotal", A = "takeawayPrice", F = "nettTotal", R = "layerNettTotal", D = "layerBillAdjustmentTotal", I = "layerItemAdjustmentTotal", L = "layerGrossTotal", O = "layerTakeawayPrice", J = "layerTaxTotal", N = "layerScTotal", z = "layerOtherChargeTotal", y0 = "customAttributes", h0 = "layerZeroParentId", T0 = "collectedAt", A0 = "subCategories", I0 = "billAdjustmentInclusiveTaxTotal", E0 = "itemAdjustmentInclusiveTaxTotal", F0 = "layerBillAdjustmentInclusiveTaxTotal", C0 = "layerItemAdjustmentInclusiveTaxTotal";
8494
+ var x = null, c = "itemCreatedAt", d = "billCompletedAt", a = "perXUnit", t = "takeawayId", f = "takeawayName", i = "productId", b = "isRefund", s = "servedAt", l = "isTakeaway", o = "quantity", _ = "unitQuantity", m = "billAdjustmentTotal", g = "itemAdjustmentTotal", S = "grossTotal", A = "takeawayPrice", F = "nettTotal", R = "layerNettTotal", D = "layerBillAdjustmentTotal", I = "layerItemAdjustmentTotal", w = "layerGrossTotal", O = "layerTakeawayPrice", J = "layerTaxTotal", N = "layerScTotal", z = "layerOtherChargeTotal", y0 = "customAttributes", h0 = "layerZeroParentId", T0 = "collectedAt", A0 = "subCategories", I0 = "billAdjustmentInclusiveTaxTotal", E0 = "itemAdjustmentInclusiveTaxTotal", F0 = "layerBillAdjustmentInclusiveTaxTotal", C0 = "layerItemAdjustmentInclusiveTaxTotal";
8495
8495
  return u._setArrayType([u.Field_Field$string(x, !1, "ID", "id", "_id", x, e), u.Field_Field$string(x, !0, x, "docId", "_docId", x, e), u.Field_Field$string(x, !1, "Restaurant ID", "restaurantId", "_restaurantId", x, e), u.Field_Field$timestamp(x, !1, "Time", "createdAt", "_createdAt", x, e), u.Field_Field$timestamp(x, !0, x, "publishedAt", "_publishedAt", x, e), u.Field_Field$timestamp(x, !1, "Item time", c, c, x, e), u.Field_Field$timestamp(x, !1, "Bill close time", d, d, x, e), u.Field_Field$string(x, !1, "Bill ID", "billId", "billId", x, e), u.Field_Field$string(x, !1, "Status", "status", "status", x, e), u.Field_Field$string(x, !1, "Name", "name", "name", x, e), u.Field_Field$numeric(x, !1, "Per unit", a, a, x, e), u.Field_Field$string(x, !1, "Unit", "unit", "unit", x, e), u.Field_Field$string(`IF(@categoryName IS NULL OR @productId IS NULL OR REGEXP_CONTAINS(@productId, r'^\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)$'), 'Other', @categoryName)
8496
8496
  `, !1, "Category", "categoryName", "category", `CASE WHEN @category_name IS NULL OR @product_id IS NULL OR @product_id ~ '^\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)$' THEN 'Other' ELSE @category_name END
8497
- `, e), u.Field_Field$string(x, !1, "Takeaway ID", t, t, x, e), u.Field_Field$string(x, !1, "Takeaway name", f, f, x, e), u.Field_Field$string(x, !1, "Code", "code", "code", x, e), u.Field_Field$string(x, !1, "Remark", "remark", "remark", x, e), u.Field_Field$string(x, !1, "Product ID", i, i, x, e), u.Field_Field$string(x, !1, "Variant ID", "variantId", "variant.id", x, e), u.Field_Field$string(x, !1, "Variant", "variantName", "variant.name", x, e), u.Field_Field$bool(x, !1, "Refund", b, b, x, e), u.Field_Field$string(x, !1, "User id", "createdById", "createdBy.id", x, e), u.Field_Field$string(x, !1, "User", "createdByName", "createdBy.name", x, e), u.Field_Field$timestamp(x, !1, "Sent time", "sentAt", "sentAt", x, e), u.Field_Field$timestamp(x, !1, "Served time", s, s, x, e), u.Field_Field$timestamp(x, !1, "Printed time", "printedAt", "printBy.printAt", x, e), u.Field_Field$timestamp(x, !1, "Void time", "voidAt", "void.voidAt", x, e), u.Field_Field$string(x, !1, "Void reason", "voidReason", "void.reason", x, e), u.Field_Field$string(x, !0, x, "voidedById", "void.by.id", x, e), u.Field_Field$string(x, !1, "Void user", "voidedByName", "void.by.name", x, e), u.Field_Field$string(x, !0, x, "voidApprovedById", "void.approvedBy.id", x, e), u.Field_Field$string(x, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", x, e), u.Field_Field$bool(x, !0, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", x, e), u.Field_Field$bool(x, !0, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", x, e), u.Field_Field$bool(x, !1, "Takeaway", l, l, x, e), u.Field_Field$numeric("@quantity*IF(@isRefund, -1, 1)", !1, "Qty", o, o, h.x40quant, e), u.Field_Field$numeric("@unitQuantity*IF(@isRefund, -1, 1)", !1, "Unit qty", _, _, h.x40unit_, e), u.Field_Field$numeric("@sstTotal*IF(@isRefund, -1, 1)", !1, "SST", "sstTotal", "sst.total", h.x40sst_t, e), u.Field_Field$numeric(x, !0, "SST %", "sstPercentage", "sst.percentage", x, e), u.Field_Field$numeric(x, !0, "SC %", "serviceChargePercentage", "sc.percentage", x, e), u.Field_Field$numeric("@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, "SC", "serviceChargeTotal", "sc.total", h.x40servi, e), u.Field_Field$numeric("@otherChargeTotal*IF(@isRefund, -1, 1)", !1, "Other charge", "otherChargeTotal", "otherCharge.total", h.x40other, e), u.Field_Field$numeric(h.x40billA, !1, "Bill discount", m, m, h.x40bill_, e), u.Field_Field$numeric(h.x40itemA, !1, "Item discount", g, g, h.x40item_, e), u.Field_Field$numeric("@grossTotal*IF(@isRefund, -1, 1)", !1, "Gross", S, S, h.x40gross, e), u.Field_Field$numeric(h.x28_grosT, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", x, h.x28_gros_, e), u.Field_Field$numeric("@takeawayPrice*IF(@isRefund, -1, 1)", !1, "Takeaway price", A, A, h.x40takea, e), u.Field_Field$numeric("@nettTotal*IF(@isRefund, -1, 1)", !1, "Nett", F, F, h.x40nett_, e), u.Field_Field$string(x, !1, "Parent ID", "parentId", "parent.id", x, e), u.Field_Field$string(x, !1, "Parent name", "parentName", "parent.name", x, e), u.Field_Field$string(x, !1, "Addon type", "addonType", "addon.type", x, e), u.Field_Field$string(x, !1, "Addon ID", "addonId", "addon.selectionId", x, e), u.Field_Field$string("SPLIT(@addonId, '/')[OFFSET(0)]", !1, "Group ID", "groupId", x, "SPLIT_PART(@addon_id, '/',1)", e), u.Field_Field$numeric(x, !1, "Layer", "layer", "layer", x, e), u.Field_Field$numeric("@addonPrice*IF(@isRefund, -1, 1)", !1, "Addon price", "addonPrice", "addon.price", h.x40addon, e), u.Field_Field$numeric("@taxTotal*IF(@isRefund, -1, 1)", !1, "Tax", "taxTotal", "tax.total", "@tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric(h.x28IFNULb, !1, "Discount", "discountTotal", x, h.x28COALEb, e), u.Field_Field$numeric(h.x28IFNULgx2b, !1, "Gross before charges", "grossBeforeCharges", x, h.x28COALEgx2b, e), u.Field_Field$string("CONCAT(@quantity,'x ',ARRAY_TO_STRING([IF(@code='', NULL, @code), @name], ' '))", !1, "Summary", "summary", x, "CONCAT(@quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN @code='' THEN NULL ELSE @code END, @name], ' '))", e), u.Field_Field$numeric("@layerNettTotal*IF(@isRefund, -1, 1)", !1, "Layer nett", R, R, "@layer_nett_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric("@layerBillAdjustmentTotal*IF(@isRefund, -1, 1)", !1, "Layer bill discount", D, D, "@layer_bill_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric("@layerItemAdjustmentTotal*IF(@isRefund, -1, 1)", !1, "Layer item discount", I, I, "@layer_item_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric("@layerGrossTotal*IF(@isRefund, -1, 1)", !1, "Layer gross total", L, L, "@layer_gross_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric("@layerTakeawayPrice*IF(@isRefund, -1, 1)", !1, "Layer takeaway price", O, O, "@layer_takeaway_price*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric("@layerTaxTotal*IF(@isRefund, -1, 1)", !1, "Layer tax total", J, J, "@layer_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric("@layerScTotal*IF(@isRefund, -1, 1)", !1, "Layer sc", N, N, "@layer_sc_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric("@layerOtherChargeTotal*IF(@isRefund, -1, 1)", !1, "Layer other charge", z, z, "@layer_other_charge_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric("(IFNULL(@layerGrossTotal,0)+IFNULL(@layerBillAdjustmentTotal,0)+IFNULL(@layerItemAdjustmentTotal,0))*IF(@isRefund, -1, 1)", !1, "Layer gross before charges", "layerGrossBeforeCharges", x, "(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", e), u.Field_Field$string(x, !1, "Custom attributes", y0, y0, x, e), u.Field_Field$string(x, !1, "Layer 0 parent ID", h0, h0, x, e), u.Field_Field$string(x, !1, "Charge variant", "chargeVariant", x, "(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')", e), u.Field_Field$timestamp(x, !1, "Collected time", T0, T0, x, e), u.Field_Field$numeric(x, !1, "Costing", "costing", "costing", x, e), u.Field_Field$numeric("ROUND(TIMESTAMP_DIFF(IFNULL(@servedAt, CURRENT_TIMESTAMP), @sentAt, SECOND),0)", !1, "Preparation seconds", "preparationSeconds", x, "ROUND(EXTRACT(EPOCH FROM AGE(COALESCE(@served_at, CURRENT_TIMESTAMP),@sent_at)),0)", e), u.Field_Field$numeric("(@nettTotal-coalesce(@costing, 0))", !1, "Profit", "profit", x, "(@nett_total-coalesce(@costing, 0))", e), u.Field_Field$string(x, !1, "Layer 0 parent name", "layerZeroParentName", x, "(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)", e), u.Field_Field$string(x, !1, "Layer 0 parent code", "layerZeroParentCode", x, "(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)", e), u.Field_Field$string(x, !1, "Layer 0 parent category", "layerZeroParentCategory", x, "(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)", e), u.Field_Field$string(x, !1, "Sub categories", A0, A0, x, e), u.Field_Field$numeric("@billAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, "Bill discount inc tax", I0, I0, "@bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric("@itemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, "Item discount inc tax", E0, E0, "@item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric("@layerBillAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, "Layer bill discount inc tax", F0, F0, "@layer_bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric("@layerItemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, "Layer item discount inc tax", C0, C0, "@layer_item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", e)], n.JSArray_Field);
8497
+ `, e), u.Field_Field$string(x, !1, "Takeaway ID", t, t, x, e), u.Field_Field$string(x, !1, "Takeaway name", f, f, x, e), u.Field_Field$string(x, !1, "Code", "code", "code", x, e), u.Field_Field$string(x, !1, "Remark", "remark", "remark", x, e), u.Field_Field$string(x, !1, "Product ID", i, i, x, e), u.Field_Field$string(x, !1, "Variant ID", "variantId", "variant.id", x, e), u.Field_Field$string(x, !1, "Variant", "variantName", "variant.name", x, e), u.Field_Field$bool(x, !1, "Refund", b, b, x, e), u.Field_Field$string(x, !1, "User id", "createdById", "createdBy.id", x, e), u.Field_Field$string(x, !1, "User", "createdByName", "createdBy.name", x, e), u.Field_Field$timestamp(x, !1, "Sent time", "sentAt", "sentAt", x, e), u.Field_Field$timestamp(x, !1, "Served time", s, s, x, e), u.Field_Field$timestamp(x, !1, "Printed time", "printedAt", "printBy.printAt", x, e), u.Field_Field$timestamp(x, !1, "Void time", "voidAt", "void.voidAt", x, e), u.Field_Field$string(x, !1, "Void reason", "voidReason", "void.reason", x, e), u.Field_Field$string(x, !0, x, "voidedById", "void.by.id", x, e), u.Field_Field$string(x, !1, "Void user", "voidedByName", "void.by.name", x, e), u.Field_Field$string(x, !0, x, "voidApprovedById", "void.approvedBy.id", x, e), u.Field_Field$string(x, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", x, e), u.Field_Field$bool(x, !0, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", x, e), u.Field_Field$bool(x, !0, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", x, e), u.Field_Field$bool(x, !1, "Takeaway", l, l, x, e), u.Field_Field$numeric("@quantity*IF(@isRefund, -1, 1)", !1, "Qty", o, o, h.x40quant, e), u.Field_Field$numeric("@unitQuantity*IF(@isRefund, -1, 1)", !1, "Unit qty", _, _, h.x40unit_, e), u.Field_Field$numeric("@sstTotal*IF(@isRefund, -1, 1)", !1, "SST", "sstTotal", "sst.total", h.x40sst_t, e), u.Field_Field$numeric(x, !0, "SST %", "sstPercentage", "sst.percentage", x, e), u.Field_Field$numeric(x, !0, "SC %", "serviceChargePercentage", "sc.percentage", x, e), u.Field_Field$numeric("@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, "SC", "serviceChargeTotal", "sc.total", h.x40servi, e), u.Field_Field$numeric("@otherChargeTotal*IF(@isRefund, -1, 1)", !1, "Other charge", "otherChargeTotal", "otherCharge.total", h.x40other, e), u.Field_Field$numeric(h.x40billA, !1, "Bill discount", m, m, h.x40bill_, e), u.Field_Field$numeric(h.x40itemA, !1, "Item discount", g, g, h.x40item_, e), u.Field_Field$numeric("@grossTotal*IF(@isRefund, -1, 1)", !1, "Gross", S, S, h.x40gross, e), u.Field_Field$numeric(h.x28_grosT, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", x, h.x28_gros_, e), u.Field_Field$numeric("@takeawayPrice*IF(@isRefund, -1, 1)", !1, "Takeaway price", A, A, h.x40takea, e), u.Field_Field$numeric("@nettTotal*IF(@isRefund, -1, 1)", !1, "Nett", F, F, h.x40nett_, e), u.Field_Field$string(x, !1, "Parent ID", "parentId", "parent.id", x, e), u.Field_Field$string(x, !1, "Parent name", "parentName", "parent.name", x, e), u.Field_Field$string(x, !1, "Addon type", "addonType", "addon.type", x, e), u.Field_Field$string(x, !1, "Addon ID", "addonId", "addon.selectionId", x, e), u.Field_Field$string("SPLIT(@addonId, '/')[OFFSET(0)]", !1, "Group ID", "groupId", x, "SPLIT_PART(@addon_id, '/',1)", e), u.Field_Field$numeric(x, !1, "Layer", "layer", "layer", x, e), u.Field_Field$numeric("@addonPrice*IF(@isRefund, -1, 1)", !1, "Addon price", "addonPrice", "addon.price", h.x40addon, e), u.Field_Field$numeric("@taxTotal*IF(@isRefund, -1, 1)", !1, "Tax", "taxTotal", "tax.total", "@tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric(h.x28IFNULb, !1, "Discount", "discountTotal", x, h.x28COALEb, e), u.Field_Field$numeric(h.x28IFNULgx2b, !1, "Gross before charges", "grossBeforeCharges", x, h.x28COALEgx2b, e), u.Field_Field$string("CONCAT(@quantity,'x ',ARRAY_TO_STRING([IF(@code='', NULL, @code), @name], ' '))", !1, "Summary", "summary", x, "CONCAT(@quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN @code='' THEN NULL ELSE @code END, @name], ' '))", e), u.Field_Field$numeric("@layerNettTotal*IF(@isRefund, -1, 1)", !1, "Layer nett", R, R, "@layer_nett_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric("@layerBillAdjustmentTotal*IF(@isRefund, -1, 1)", !1, "Layer bill discount", D, D, "@layer_bill_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric("@layerItemAdjustmentTotal*IF(@isRefund, -1, 1)", !1, "Layer item discount", I, I, "@layer_item_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric("@layerGrossTotal*IF(@isRefund, -1, 1)", !1, "Layer gross total", w, w, "@layer_gross_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric("@layerTakeawayPrice*IF(@isRefund, -1, 1)", !1, "Layer takeaway price", O, O, "@layer_takeaway_price*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric("@layerTaxTotal*IF(@isRefund, -1, 1)", !1, "Layer tax total", J, J, "@layer_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric("@layerScTotal*IF(@isRefund, -1, 1)", !1, "Layer sc", N, N, "@layer_sc_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric("@layerOtherChargeTotal*IF(@isRefund, -1, 1)", !1, "Layer other charge", z, z, "@layer_other_charge_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric("(IFNULL(@layerGrossTotal,0)+IFNULL(@layerBillAdjustmentTotal,0)+IFNULL(@layerItemAdjustmentTotal,0))*IF(@isRefund, -1, 1)", !1, "Layer gross before charges", "layerGrossBeforeCharges", x, "(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", e), u.Field_Field$string(x, !1, "Custom attributes", y0, y0, x, e), u.Field_Field$string(x, !1, "Layer 0 parent ID", h0, h0, x, e), u.Field_Field$string(x, !1, "Charge variant", "chargeVariant", x, "(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')", e), u.Field_Field$timestamp(x, !1, "Collected time", T0, T0, x, e), u.Field_Field$numeric(x, !1, "Costing", "costing", "costing", x, e), u.Field_Field$numeric("ROUND(TIMESTAMP_DIFF(IFNULL(@servedAt, CURRENT_TIMESTAMP), @sentAt, SECOND),0)", !1, "Preparation seconds", "preparationSeconds", x, "ROUND(EXTRACT(EPOCH FROM AGE(COALESCE(@served_at, CURRENT_TIMESTAMP),@sent_at)),0)", e), u.Field_Field$numeric("(@nettTotal-coalesce(@costing, 0))", !1, "Profit", "profit", x, "(@nett_total-coalesce(@costing, 0))", e), u.Field_Field$string(x, !1, "Layer 0 parent name", "layerZeroParentName", x, "(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)", e), u.Field_Field$string(x, !1, "Layer 0 parent code", "layerZeroParentCode", x, "(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)", e), u.Field_Field$string(x, !1, "Layer 0 parent category", "layerZeroParentCategory", x, "(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)", e), u.Field_Field$string(x, !1, "Sub categories", A0, A0, x, e), u.Field_Field$numeric("@billAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, "Bill discount inc tax", I0, I0, "@bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric("@itemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, "Item discount inc tax", E0, E0, "@item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric("@layerBillAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, "Layer bill discount inc tax", F0, F0, "@layer_bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", e), u.Field_Field$numeric("@layerItemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, "Layer item discount inc tax", C0, C0, "@layer_item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", e)], n.JSArray_Field);
8498
8498
  },
8499
8499
  $signature: 0
8500
8500
  }, u.flattenItemSchema_closure0.prototype = {
@@ -9848,12 +9848,12 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
9848
9848
  var x = $.LegacyJavaScriptObject.prototype;
9849
9849
  x.super$LegacyJavaScriptObject$toString = x.toString$0, x = u.JsLinkedHashMap.prototype, x.super$JsLinkedHashMap$internalContainsKey = x.internalContainsKey$1, x.super$JsLinkedHashMap$internalGet = x.internalGet$1, x.super$JsLinkedHashMap$internalSet = x.internalSet$2, x = u.Field.prototype, x.super$Field$getSql = x.getSql$3$option$schema$value, x = u.BaseDatasourceConfigModel.prototype, x.super$BaseDatasourceConfigModel$toRequests = x.toRequests$1, x.super$BaseDatasourceConfigModel$toJson = x.toJson$0;
9850
9850
  }(), function() {
9851
- var x = B._static_2, c = B._static_1, d = B._instance_1u, a = B._instance_0u;
9851
+ var x = Q._static_2, c = Q._static_1, d = Q._instance_1u, a = Q._instance_0u;
9852
9852
  x(u, "collection___defaultEquals$closure", "_defaultEquals", 33), c(u, "collection___defaultHashCode$closure", "_defaultHashCode", 22), c(u, "convert___defaultToEncodable$closure", "_defaultToEncodable", 3), c(u, "core__identityHashCode$closure", "identityHashCode", 22), c(u, "core_RegExp_escape$closure", "RegExp_escape", 4), x(u, "core__identical$closure", "identical", 33);
9853
9853
  var t;
9854
9854
  d(t = u.DateBuilder.prototype, "get$setYear", "setYear$1", 6), d(t, "get$setMonth", "setMonth$1", 6), d(t, "get$setDay", "setDay$1", 6), d(t, "get$setDayOfYear", "setDayOfYear$1", 6), d(t, "get$setHour", "setHour$1", 6), d(t, "get$setMinute", "setMinute$1", 6), d(t, "get$setSecond", "setSecond$1", 6), d(t, "get$setFractionalSecond", "setFractionalSecond$1", 6), c(u, "date_format_DateFormat_localeExists$closure", "DateFormat_localeExists", 76), a(u.DateFormat.prototype, "get$_initDigitMatcher", "_initDigitMatcher$0", 48), d(u.ReCase.prototype, "get$_upperCaseFirstLetter", "_upperCaseFirstLetter$1", 4), c(u, "js_compiler__getMergeInfoSql$closure", "getMergeInfoSql", 3), c(u, "js_compiler__getClearTableSql$closure", "getClearTableSql", 3), c(u, "js_compiler__getMergeSql$closure", "getMergeSql", 3), c(u, "js_compiler__getSchemas$closure", "getSchemas", 3), c(u, "js_compiler__getVisualizationSchemas$closure", "getVisualizationSchemas", 3), c(u, "js_compiler__requestJsonToSql$closure", "requestJsonToSql", 3), c(u, "js_compiler__sqlResponsesToQueryResponses$closure", "sqlResponsesToQueryResponses", 3), c(u, "js_compiler__getQueryRequests$closure", "getQueryRequests", 3), c(u, "js_compiler__getCreateMaterializedTableSql$closure", "getCreateMaterializedTableSql", 3);
9855
9855
  }(), function() {
9856
- var x = B.mixin, c = B.inherit, d = B.inheritMany;
9856
+ var x = Q.mixin, c = Q.inherit, d = Q.inheritMany;
9857
9857
  c(u.Object, null), d(u.Object, [u.JS_CONST, $.Interceptor, $.ArrayIterator, u.Error, u._ListBase_Object_ListMixin, u.Iterable, u.ListIterator, u.Iterator, u.EmptyIterator, u.FixedLengthListMixin, u.UnmodifiableListMixin, u.Symbol, u.MapView, u.ConstantMap, u.Closure, u.JSInvocationMirror, u.TypeErrorDecoder, u.NullThrownFromJavaScriptException, u._Required, u.MapMixin, u.LinkedHashMapCell, u.LinkedHashMapKeyIterator, u.JSSyntaxRegExp, u._MatchImplementation, u._AllMatchesIterator, u.StringMatch, u._StringAllMatchesIterator, u._Cell, u.Rti, u._FunctionParameters, u._Type, u._IterationMarker, u._SyncStarIterator, u.StreamTransformerBase, u.__SetBase_Object_SetMixin, u._LinkedHashSetCell, u._LinkedHashSetIterator, u.ListMixin, u._UnmodifiableMapMixin, u.SetMixin, u.Codec, u._JsonStringifier, u._Utf8Encoder, u.DateTime, u.Duration, u._Enum, u.OutOfMemoryError, u.StackOverflowError, u._Exception, u.FormatException, u.MapEntry, u.Null, u.Sink, u.StringBuffer, u.Endian, u.Digest, u.HashSink, u.DateSymbols, u.DateBuilder, u.DateFormat, u._DateFormatField, u.StringStack, u.UninitializedLocaleData, u.LocaleDataException, u.Jiffy, u.Locale, u.JiffyException, u.Connection, u.SchemaLibrary, u.QueryEngineContext, u.Permission, u.TopLevelFilters, u.Source, u.Index, u.Schema, u.Field, u.Join, u.JoinCondition, u.QueryRequestComparisonTarget, u.QueryRequestComparison, u.QueryRequestCommonField, u._GetSourceTableResponse, u._PlainSqlColumn, u.QueryRequest, u.QueryRequestTimeDimension, u.QueryResponseColumn, u.DateTimeRange, u.QueryResponse, u.QueryResponseRow, u.VisualizationSchema, u.VisualizationField, u.QueryEngine, u.BaseDatasourceConfigModel, u.DataSourceDrillConfig, u.DataSourceRowColumnConfig, u.JoinDatasourceCondition, u.GlobalFilterModel, u.ReportWidgetModel, u.ReCase, u.TZDateTime, u.TimeZoneInitException, u.LocationNotFoundException, u.Location, u.TimeZone, u.TzInstant, u.LocationDatabase]), d($.Interceptor, [$.JSBool, $.JSNull, $.JavaScriptObject, $.JSArray, $.JSNumber, $.JSString, u.NativeTypedData]), c($.LegacyJavaScriptObject, $.JavaScriptObject), d($.LegacyJavaScriptObject, [$.PlainJavaScriptObject, $.UnknownJavaScriptObject, $.JavaScriptFunction, u.BufferModule, u.BufferConstants, u.Buffer, u.ConsoleModule, u.Console, u.EventEmitter, u.Promise, u.Date, u.JsError, u.Atomics, u.Modules, u.Module, u.Net, u.Socket, u.NetAddress, u.NetServer, u.NodeJsError, u.Process, u.CPUUsage, u.Release, u.StreamModule, u.Readable, u.Writable, u.Duplex, u.Transform, u.WritableOptions, u.ReadableOptions, u.Immediate, u.Timeout, u.TTY, u.Util, u.Exports, u._Exports]), c($.JSUnmodifiableArray, $.JSArray), d($.JSNumber, [$.JSInt, $.JSNumNotInt]), d(u.Error, [u.LateError, u.TypeError, u.JsNoSuchMethodError, u.UnknownJsTypeError, u.RuntimeError, u._Error, u.JsonUnsupportedObjectError, u.AssertionError, u.NullThrownError, u.ArgumentError, u.NoSuchMethodError, u.UnsupportedError, u.UnimplementedError, u.StateError, u.ConcurrentModificationError, u.CyclicInitializationError]), c(u.ListBase, u._ListBase_Object_ListMixin), d(u.ListBase, [u.UnmodifiableListBase, u.TypedDataBuffer]), c(u.CodeUnits, u.UnmodifiableListBase), d(u.Iterable, [u.EfficientLengthIterable, u.MappedIterable, u.WhereIterable, u._ConstantMapKeyIterable, u.IterableBase, u._StringAllMatchesIterable]), d(u.EfficientLengthIterable, [u.ListIterable, u.EmptyIterable, u.LinkedHashMapKeyIterable]), d(u.ListIterable, [u.SubListIterable, u.MappedListIterable, u.ReversedListIterable, u._JsonMapKeyIterable, u._GeneratorIterable]), c(u.EfficientLengthMappedIterable, u.MappedIterable), d(u.Iterator, [u.MappedIterator, u.WhereIterator]), c(u._UnmodifiableMapView_MapView__UnmodifiableMapMixin, u.MapView), c(u.UnmodifiableMapView, u._UnmodifiableMapView_MapView__UnmodifiableMapMixin), c(u.ConstantMapView, u.UnmodifiableMapView), d(u.Closure, [u.Closure2Args, u.Closure0Args, u.TearOffClosure, u.initHooks_closure, u.initHooks_closure1, u._LinkedCustomHashMap_closure, u.MapMixin_entries_closure, u.DateTime_parse_parseIntOrZero, u.DateTime_parse_parseMilliAndMicroseconds, u.DateFormat_dateTimeConstructor_closure, u.DateFormat__checkDateOnly_closure, u.DateFormat__initDigitMatcher_closure, u.DateFormat__initDigitMatcher_closure0, u._DateFormatPatternField_parseStandaloneDay_closure, u.Jiffy__parseString_closure, u.SchemaLibrary_getSchema_closure, u.SchemaLibrary_visualizationSchemas_closure, u.SchemaLibrary_visualizationSchemas_closure0, u.Materialize_get_createMaterializedTableSql_closure, u.Materialize_get_createMaterializedTableSql_closure0, u.Materialize_get_createMaterializedTableSql_closure1, u.Materialize_get_createMaterializedTableSql_closure2, u.Materialize_getMergeSql_closure, u.Materialize_getMergeSql_closure0, u.Materialize_getMergeSql_closure1, u.Materialize_getMergeSql_closure2, u.Materialize_getMergeSql_closure3, u.Materialize_getMergeSql_closure4, u.TopLevelFilters_fromJson_closure, u.TopLevelFilters_toJson_closure, u.Schema_visualizationSchema_closure, u.Schema_visualizationSchema_closure0, u.Schema_visualizationSchema_closure1, u.Schema_fromJson_closure, u.Schema_fromJson_closure0, u.Schema_fromJson_closure1, u.Schema_fromJson_closure2, u.Schema_toJson_closure, u.Schema_toJson_closure0, u.Schema_toJson_closure1, u.Schema_toJson_closure2, u.Field_getQueryPlainSql_closure, u.Join_fromJson_closure, u.Join_toJson_closure, u.QueryRequestComparison_QueryRequestComparison$nested_closure, u.QueryRequestComparison_getToValues_closure, u.QueryRequestComparison_getToValues__closure0, u.QueryRequestComparison_getToValues_closure0, u.QueryRequestComparison_getToValues__closure, u.QueryRequestComparison_getFromValue_closure, u.QueryRequestComparison_getSql_closure, u.QueryRequestComparison_getSql_closure0, u.uniqueAlias_closure, u.QueryRequestCommonField_getAggregatedSql_closure, u.QueryRequestDimension_getPlainSql_closure, u.QueryRequestDimension_getColumn_closure, u.QueryRequestMetric_getColumn_closure, u.QueryRequestMetric_getPlainSql_closure, u.QueryRequest__closure0, u.QueryRequest__closure, u.QueryRequest__getJoins_closure, u.QueryRequest__getJoins__closure, u.QueryRequest_fromJson_closure, u.QueryRequest_fromJson_closure0, u.QueryRequest_fromJson_closure1, u.QueryRequest_fromJson_closure2, u.QueryRequest_fromJson_closure3, u.QueryRequest_fromJson_closure4, u.QueryRequest_toJson_closure, u.QueryRequest_toJson_closure0, u.QueryRequest_toJson_closure1, u.QueryRequest_toJson_closure2, u.QueryRequest_toJson_closure3, u.QueryRequest_toJson_closure4, u.QueryRequest_getColumns_closure, u.QueryRequest_getColumns_closure0, u.QueryRequest__getPlainSqlColumns_closure, u.QueryRequest__getPlainSqlColumns_closure0, u.QueryRequest__getPlainSqlColumns_closure1, u.QueryRequest__getPlainSqlColumns__closure, u.QueryRequest__getPlainSqlSorts_closure, u.QueryRequest__getSqlFilters_closure, u.QueryRequest__getSqlFilters_closure0, u.QueryRequest__getSqlFilters_closure1, u.QueryRequest__getSqlFilters_closure2, u.QueryRequest__getSqlFilters_closure3, u.QueryRequest__getSqlFilters_closure4, u.QueryRequest__getSqlJoins__closure, u.QueryRequest__getSqlJoins__closure0, u.QueryRequest__getRollupSelect_closure0, u.QueryRequest__getRollupSelect_closure2, u.QueryRequest__getRollupSelect_closure3, u.QueryRequest__getRollupSelect_closure4, u.QueryRequest__getRollupSelect_closure6, u.QueryRequest__getRollupSelect_closure7, u.QueryRequest__getRollupSelect_closure8, u.QueryRequest__getRollupSelect_closure9, u.QueryRequest__hasFillGap_closure, u.QueryRequest__getSqlSelectSorts_closure, u.QueryRequest__getSqlSelectSorts__closure, u.QueryRequest__getSqlSelectSorts__closure0, u.QueryRequest_getSqlSelect_closure, u.QueryRequest_getSqlSelect_closure0, u.QueryRequest_getSqlSelect_closure1, u.QueryRequest__transformSqlAlias_closure, u.QueryRequest__getSourceTable_closure, u.QueryRequest__getSourceTable_closure0, u.QueryRequest__getFillGapTable_closure0, u.QueryRequest__getFillGapTable__closure1, u.QueryRequest__getFillGapTable__closure2, u.QueryRequest__getFillGapTable_closure2, u.QueryRequest__getFillGapTable__closure, u.QueryRequest__getFillGapTable__closure0, u.QueryRequest__getFillGapTable_closure3, u.QueryRequest__getFillGapTable_closure4, u.QueryRequest__getFullTable_closure, u.QueryRequest__getFullTable_closure1, u.QueryRequest__getFullTable_closure2, u.QueryRequestSort_getPlainSql_closure, u.QueryRequestSort_getSortSql_closure, u.QueryResponse$map_closure, u.QueryResponse_toJson_closure, u.QueryResponse_toJson_closure0, u.VisualizationSchema_toJson_closure, u.VisualizationSchema_toJson_closure0, u.VisualizationField_filterDimensionOptions_closure, u.VisualizationField_fillGapDimensionOptions_closure, u.VisualizationField_isNumericAggregations_closure, u.VisualizationField_toJson_closure, u.VisualizationField_toJson_closure0, u.VisualizationField_toJson_closure1, u.VisualizationField_toJson_closure2, u.VisualizationField_toJson_closure3, u.VisualizationField_toJson_closure4, u.VisualizationField_toJson_closure5, u.VisualizationField_toJson_closure6, u.addonFlattenItemSchema_closure, u.addonFlattenItemSchema_closure0, u.adjustmentSchema_closure, u.adjustmentSchema_closure0, u.billSchema_closure, u.billSchema_closure0, u.businessSchema_closure, u.businessSchema_closure0, u.campaignSchema_closure, u.campaignSchema_closure0, u.campaignTierSchema_closure, u.campaignTierSchema_closure0, u.chargeSchema_closure, u.chargeSchema_closure0, u.closingDraftSchema_closure, u.closingDraftSchema_closure0, u.closingSkuSchema_closure, u.closingSkuSchema_closure0, u.collectibleCollectionSchema_closure, u.collectibleCollectionSchema_closure0, u.collectibleConfigSchema_closure, u.collectibleConfigSchema_closure0, u.collectibleTransactionSchema_closure, u.collectibleTransactionSchema_closure0, u.counterSchema_closure, u.counterSchema_closure0, u.creditTransactionSchema_closure, u.creditTransactionSchema_closure0, u.drawerSchema_closure, u.drawerSchema_closure0, u.flattenItemSchema_closure, u.flattenItemSchema_closure0, u.internalPurchaseOrderSchema_closure, u.internalPurchaseOrderSchema_closure0, u.internalPurchaseOrderDeliveryFulfillmentSchema_closure, u.internalPurchaseOrderDeliveryFulfillmentSchema_closure0, u.internalPurchaseOrderDeliveryFulfillmentSkuSchema_closure, u.internalPurchaseOrderDeliveryFulfillmentSkuSchema_closure0, u.internalPurchaseOrderDeliveryOrderSchema_closure, u.internalPurchaseOrderDeliveryOrderSchema_closure0, u.internalPurchaseOrderDeliveryOrderSkuSchema_closure, u.internalPurchaseOrderDeliveryOrderSkuSchema_closure0, u.internalPurchaseOrderItemSchema_closure, u.internalPurchaseOrderItemSchema_closure0, u.inventoryAdjustmentSchema_closure, u.inventoryAdjustmentSchema_closure0, u.inventoryAdjustmentPhysicalSkuSchema_closure, u.inventoryAdjustmentPhysicalSkuSchema_closure0, u.inventoryAdjustmentSkuSchema_closure, u.inventoryAdjustmentSkuSchema_closure0, u.inventoryV1FlattenInventorySchema_closure, u.inventoryV1FlattenInventorySchema_closure0, u.itemSchema_closure, u.itemSchema_closure0, u.itemMovementSchema_closure, u.itemMovementSchema_closure0, u.kitchenStationSchema_closure, u.kitchenStationSchema_closure0, u.memberSchema_closure, u.memberSchema_closure0, u.memberStorePurchaseSchema_closure, u.memberStorePurchaseSchema_closure0, u.memberStorePurchasePaymentSchema_closure, u.memberStorePurchasePaymentSchema_closure0, u.memberTitleSchema_closure, u.memberTitleSchema_closure0, u.memberV2Schema_closure, u.memberV2Schema_closure0, u.membershipSchema_closure, u.membershipSchema_closure0, u.membershipTitleSchema_closure, u.membershipTitleSchema_closure0, u.menuV3GroupSchema_closure, u.menuV3GroupSchema_closure0, u.menuV3ItemSchema_closure, u.menuV3ItemSchema_closure0, u.menuV3SkuSchema_closure, u.menuV3SkuSchema_closure0, u.menuV4GroupSchema_closure, u.menuV4GroupSchema_closure0, u.menuV4ItemSchema_closure, u.menuV4ItemSchema_closure0, u.menuV4ItemInventoryBindingSchema_closure, u.menuV4ItemInventoryBindingSchema_closure0, u.menuV4SkuSchema_closure, u.menuV4SkuSchema_closure0, u.parentFlattenItemSchema_closure, u.parentFlattenItemSchema_closure0, u.paymentSchema_closure, u.paymentSchema_closure0, u.paymentTimePaymentSchema_closure, u.paymentTimePaymentSchema_closure0, u.purchaseOrderSchema_closure, u.purchaseOrderSchema_closure0, u.purchaseOrderDeliveryFulfillmentSchema_closure, u.purchaseOrderDeliveryFulfillmentSchema_closure0, u.purchaseOrderDeliveryFulfillmentSkuSchema_closure, u.purchaseOrderDeliveryFulfillmentSkuSchema_closure0, u.purchaseOrderDeliveryOrderSchema_closure, u.purchaseOrderDeliveryOrderSchema_closure0, u.purchaseOrderDeliveryOrderSkuSchema_closure, u.purchaseOrderDeliveryOrderSkuSchema_closure0, u.purchaseOrderItemSchema_closure, u.purchaseOrderItemSchema_closure0, u.recommendationCallSchema_closure, u.recommendationCallSchema_closure0, u.recordSchema_closure, u.recordSchema_closure0, u.refundBillSchema_closure, u.refundBillSchema_closure0, u.restaurantSchema_closure, u.restaurantSchema_closure0, u.restaurantFeatureSchema_closure, u.restaurantFeatureSchema_closure0, u.restaurantLocationSchema_closure, u.restaurantLocationSchema_closure0, u.reviewSchema_closure, u.reviewSchema_closure0, u.slotSchema_closure, u.slotSchema_closure0, u.staffSchema_closure, u.staffSchema_closure0, u.stockSchema_closure, u.stockSchema_closure0, u.storeBundleSchema_closure, u.storeBundleSchema_closure0, u.storeTransactionSchema_closure, u.storeTransactionSchema_closure0, u.subItemSchema_closure, u.subItemSchema_closure0, u.timesheetSchema_closure, u.timesheetSchema_closure0, u.timesheetRecordSchema_closure, u.timesheetRecordSchema_closure0, u.unitCostHistorySchema_closure, u.unitCostHistorySchema_closure0, u.userSchema_closure, u.userSchema_closure0, u.voucherClaimSchema_closure, u.voucherClaimSchema_closure0, u.voucherClaimRedemptionSchema_closure, u.voucherClaimRedemptionSchema_closure0, u.warehouseLocationSchema_closure, u.warehouseLocationSchema_closure0, u.QueryEngine_getSql_closure, u.BaseDatasourceConfigModel_drilledDimensionIds_closure, u.BaseDatasourceConfigModel_metricIds_closure, u.BaseDatasourceConfigModel_toJson_closure, u.BaseDatasourceConfigModel_toJson_closure0, u.BaseDatasourceConfigModel_toJson_closure1, u.BaseDatasourceConfigModel_toJson_closure2, u.BaseDatasourceConfigModel_toJson_closure3, u.BaseDatasourceConfigModel_toJson_closure4, u.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure, u.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure0, u.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure1, u.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure2, u.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure3, u.DataSourceDrillConfig_drilledDimensions_closure, u.DataSourceRowColumnConfig_rowIds_closure, u.DataSourceRowColumnConfig_rowIds_closure0, u.DataSourceRowColumnConfig_rowIds_closure2, u.DataSourceRowColumnConfig_rowIds_closure1, u.DataSourceRowColumnConfig_columnIds_closure, u.DataSourceRowColumnConfig_columnIds_closure0, u.DataSourceRowColumnConfig_columnIds_closure1, u.TableDatasourceConfigModel_joinDatasources_closure, u.TableDatasourceConfigModel_toRequests___closure, u.TableDatasourceConfigModel_toRequests_closure0, u.TableDatasourceConfigModel_toJson_closure, u.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson_closure, u.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson___closure, u.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson___closure0, u.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson____closure, u.JoinDatasourceConfig_JoinDatasourceConfig$fromJson_closure, u.JoinDatasourceConfig_toJson_closure, u.JoinDatasourceCondition_JoinDatasourceCondition$fromJson_closure, u.JoinDatasourceCondition_toJson_closure, u.getSchemas_closure, u.getVisualizationSchemas_closure, u.sqlResponsesToQueryResponses_closure, u.sqlResponsesToQueryResponses_closure1, u.getQueryRequests_closure, u.getQueryRequests_closure0, u.getQueryRequests_closure1, u.getQueryRequests_closure2, u.getQueryRequests_closure3, u.getQueryRequests_closure4, u.getQueryRequests_closure5, u.getQueryRequests_closure6, u.getQueryRequests_closure7, u.getQueryRequests_closure8, u.getQueryRequests_closure9]), d(u.Closure2Args, [u.ConstantMap_map_closure, u.Primitives_functionNoSuchMethod_closure, u.JsLinkedHashMap_addAll_closure, u.initHooks_closure0, u.LinkedHashMap_LinkedHashMap$from_closure, u.MapBase_mapToString_closure, u._JsonStringifier_writeMap_closure, u.NoSuchMethodError_toString_closure, u.DateFormat__fieldConstructors_closure, u.DateFormat__fieldConstructors_closure0, u.DateFormat__fieldConstructors_closure1, u.Jiffy__parseMap_closure, u.Join_getConditionsSql_closure, u.QueryRequest_closure, u.QueryRequest_closure0, u.QueryRequest__getPlainSqlColumns_closure2, u.QueryRequest__getSqlJoins_closure, u.QueryRequest__getRollupSelect_closure, u.QueryRequest__getRollupSelect_closure1, u.QueryRequest__getRollupSelect_closure5, u.QueryRequest__getSqlSelectSorts_closure0, u.QueryRequest__getSortedLimitTable_closure, u.QueryRequest__getFillGapTable_closure, u.QueryRequest__getFillGapTable_closure1, u.QueryRequest__getFullTable_closure0, u.VisualizationSchema_closure, u.DataSourceDrillConfig__availableIds_closure, u.DataSourceRowColumnConfig__availableIds_closure, u.DataSourceRowColumnConfig__availableIds_closure0, u.TableDatasourceConfigModel_drilledDimensions_closure, u.TableDatasourceConfigModel_toRequests_closure, u.TableDatasourceConfigModel_toRequests__closure0, u.TableDatasourceConfigModel_toRequests__closure, u.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson__closure, u.sqlResponsesToQueryResponses_closure0]), c(u.ConstantStringMap, u.ConstantMap), c(u.NullError, u.TypeError), d(u.TearOffClosure, [u.StaticClosure, u.BoundClosure]), c(u.MapBase, u.MapMixin), d(u.MapBase, [u.JsLinkedHashMap, u._JsonMap]), d(u.IterableBase, [u._AllMatchesIterable, u._SyncStarIterable]), c(u.NativeTypedArray, u.NativeTypedData), c(u._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, u.NativeTypedArray), c(u._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, u._NativeTypedArrayOfInt_NativeTypedArray_ListMixin), c(u.NativeTypedArrayOfInt, u._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin), d(u.NativeTypedArrayOfInt, [u.NativeUint16List, u.NativeUint32List, u.NativeUint8List]), c(u._TypeError, u._Error), d(u.JsLinkedHashMap, [u._LinkedIdentityHashMap, u._LinkedCustomHashMap]), c(u._SetBase, u.__SetBase_Object_SetMixin), c(u._LinkedHashSet, u._SetBase), d(u.Codec, [u.Encoding, u.JsonCodec]), d(u.Encoding, [u.AsciiCodec, u.Utf8Codec]), c(u.Converter, u.StreamTransformerBase), d(u.Converter, [u._UnicodeSubsetDecoder, u.JsonEncoder, u.JsonDecoder, u.Utf8Encoder]), c(u.AsciiDecoder, u._UnicodeSubsetDecoder), c(u.JsonCyclicError, u.JsonUnsupportedObjectError), c(u._JsonStringStringifier, u._JsonStringifier), d(u.ArgumentError, [u.RangeError, u.IndexError]), c(u.DigestSink, u.Sink), c(u._Sha1Sink, u.HashSink), d(u._DateFormatField, [u._DateFormatLiteralField, u._DateFormatQuotedField, u._DateFormatPatternField]), d(u._Enum, [u.StartOfWeek, u.Units, u.SOURCE_TYPE, u.SCHEMA_NAME, u.DATA_TYPE, u.AGGREGATION_TYPE, u.COMPARISON_OPERATOR, u.DIMENSION_OPTION, u.TIME_FORMATTER, u.PERIOD_TYPE, u.SORT_TYPE, u.PermissionType, u.INDEX_METHOD, u.FIELD_TYPE, u.ChartType]), d(u.Locale, [u.ArLyLocale, u.ArSaMaDzKwTnLocale, u.AzLocale, u.BnLocale, u.DeLocale, u.EnLocale, u.EsLocale, u.FaLocale, u.FrLocale, u.HiLocale, u.IdLocale, u.ItLocale, u.JaLocale, u.KoLocale, u.NbLocale, u.NlLocale, u.PlLocale, u.PtLocale, u.RuLocale, u.SvLocale, u.ThLocale, u.TrLocale, u.UkLocale, u.ZhCnLocale, u.ZhLocale]), d(u.NodeJsError, [u.JsAssertionError, u.JsRangeError, u.JsReferenceError, u.JsSyntaxError, u.JsTypeError, u.JsSystemError]), d(u.Socket, [u.TTYReadStream, u.TTYWriteStream]), d(u.Field, [u._NumericField, u._TimestampField, u._BoolField, u._StringField]), d(u.QueryRequestComparisonTarget, [u._QueryRequestComparisonTargetValue, u._QueryRequestComparisonTargetVariable]), d(u.QueryRequestCommonField, [u.QueryRequestDimension, u.QueryRequestMetric, u.QueryRequestFilter, u.QueryRequestSort]), d(u.Closure0Args, [u.QueryRequestDimension_generateTimestampArraySql_closure, u.QueryRequestDimension_generateTimestampArraySql_closure0, u.QueryRequest__getSqlFilters__closure]), d(u.BaseDatasourceConfigModel, [u._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, u.ScorecardDatasourceConfigModel, u._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig, u._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig, u._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig]), c(u.CircularDatasourceConfigModel, u._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig), c(u._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig, u._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig), c(u.TableDatasourceConfigModel, u._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig), c(u.JoinDatasourceConfig, u._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig), c(u.BaseXYDatasourceConfigModel, u._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig), c(u._IntBuffer, u.TypedDataBuffer), c(u.Uint8Buffer, u._IntBuffer), x(u.UnmodifiableListBase, u.UnmodifiableListMixin), x(u._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, u.ListMixin), x(u._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, u.FixedLengthListMixin), x(u._ListBase_Object_ListMixin, u.ListMixin), x(u._UnmodifiableMapView_MapView__UnmodifiableMapMixin, u._UnmodifiableMapMixin), x(u.__SetBase_Object_SetMixin, u.SetMixin), x(u._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, u.DataSourceDrillConfig), x(u._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig, u.DataSourceRowColumnConfig), x(u._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig, u.DataSourceRowColumnConfig), x(u._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig, u.DataSourceDrillConfig), x(u._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, u.DataSourceDrillConfig);
9858
9858
  }();
9859
9859
  var P = {
@@ -10004,7 +10004,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
10004
10004
  };
10005
10005
  }();
10006
10006
  (function() {
10007
- var x = B.makeConstList;
10007
+ var x = Q.makeConstList;
10008
10008
  r.Interceptor_methods = $.Interceptor.prototype, r.JSArray_methods = $.JSArray.prototype, r.JSInt_methods = $.JSInt.prototype, r.JSNumber_methods = $.JSNumber.prototype, r.JSString_methods = $.JSString.prototype, r.JavaScriptFunction_methods = $.JavaScriptFunction.prototype, r.JavaScriptObject_methods = $.JavaScriptObject.prototype, r.NativeUint8List_methods = u.NativeUint8List.prototype, r.PlainJavaScriptObject_methods = $.PlainJavaScriptObject.prototype, r.UnknownJavaScriptObject_methods = $.UnknownJavaScriptObject.prototype, r.AGGREGATION_TYPE_0 = new u.AGGREGATION_TYPE(0, "SUM"), r.AGGREGATION_TYPE_1 = new u.AGGREGATION_TYPE(1, "AVERAGE"), r.AGGREGATION_TYPE_10 = new u.AGGREGATION_TYPE(10, "CUMULATIVE_SUM"), r.AGGREGATION_TYPE_11 = new u.AGGREGATION_TYPE(11, "CUMULATIVE_AVERAGE"), r.AGGREGATION_TYPE_12 = new u.AGGREGATION_TYPE(12, "CUMULATIVE_COUNT"), r.AGGREGATION_TYPE_2 = new u.AGGREGATION_TYPE(2, "COUNT"), r.AGGREGATION_TYPE_3 = new u.AGGREGATION_TYPE(3, "COUNT_DISTINCT"), r.AGGREGATION_TYPE_4 = new u.AGGREGATION_TYPE(4, "FIRST"), r.AGGREGATION_TYPE_5 = new u.AGGREGATION_TYPE(5, "LAST"), r.AGGREGATION_TYPE_6 = new u.AGGREGATION_TYPE(6, "ANY"), r.AGGREGATION_TYPE_7 = new u.AGGREGATION_TYPE(7, "MERGE"), r.AGGREGATION_TYPE_8 = new u.AGGREGATION_TYPE(8, "MIN"), r.AGGREGATION_TYPE_9 = new u.AGGREGATION_TYPE(9, "MAX"), r.AsciiDecoder_false = new u.AsciiDecoder(!1), r.COMPARISON_OPERATOR_0 = new u.COMPARISON_OPERATOR(0, "EQUAL"), r.COMPARISON_OPERATOR_1 = new u.COMPARISON_OPERATOR(1, "NOT_EQUAL"), r.COMPARISON_OPERATOR_10 = new u.COMPARISON_OPERATOR(10, "OR"), r.COMPARISON_OPERATOR_2 = new u.COMPARISON_OPERATOR(2, "GREATER_THAN"), r.COMPARISON_OPERATOR_3 = new u.COMPARISON_OPERATOR(3, "LESS_THAN"), r.COMPARISON_OPERATOR_4 = new u.COMPARISON_OPERATOR(4, "GREATER_THAN_OR_EQUAL"), r.COMPARISON_OPERATOR_5 = new u.COMPARISON_OPERATOR(5, "LESS_THAN_OR_EQUAL"), r.COMPARISON_OPERATOR_6 = new u.COMPARISON_OPERATOR(6, "BETWEEN"), r.COMPARISON_OPERATOR_7 = new u.COMPARISON_OPERATOR(7, "LIKE"), r.COMPARISON_OPERATOR_8 = new u.COMPARISON_OPERATOR(8, "NOT_LIKE"), r.C_AsciiCodec = new u.AsciiCodec(), r.C_EmptyIterator = new u.EmptyIterator(), r.C_Endian = new u.Endian(), r.C_Endian0 = new u.Endian(), r.C_JS_CONST = function(d) {
10009
10009
  var a = Object.prototype.toString.call(d);
10010
10010
  return a.substring(8, a.length - 1);
@@ -10106,7 +10106,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
10106
10106
  })(), function() {
10107
10107
  p._JS_INTEROP_INTERCEPTOR_TAG = null, p.Primitives__identityHashCodeProperty = null, p.BoundClosure__receiverFieldNameCache = null, p.BoundClosure__interceptorFieldNameCache = null, p.getTagFunction = null, p.alternateTagFunction = null, p.prototypeForTagFunction = null, p.dispatchRecordsForInstanceTags = null, p.interceptorsForUncacheableTags = null, p.initNativeDispatchFlag = null, p._toStringVisiting = u._setArrayType([], u.findType("JSArray<Object>")), p.cachedDateSymbols = null, p.lastDateSymbolLocale = null, p._defaultLocale = null, p.DateFormat__useNativeDigitsByDefault = u.LinkedHashMap_LinkedHashMap$_empty(n.String, n.bool), p.DateFormat__digitMatchers = u.LinkedHashMap_LinkedHashMap$_empty(n.String, u.findType("RegExp")), p.Jiffy____defaultLocale = u._Cell$(), p.VisualizationField__filterDimensionOptions = u._setArrayType([r.DIMENSION_OPTION_5, r.DIMENSION_OPTION_6, r.DIMENSION_OPTION_7, r.DIMENSION_OPTION_8, r.DIMENSION_OPTION_9], n.JSArray_DIMENSION_OPTION), p.VisualizationField__fillGapDimensionOptions = u._setArrayType([r.DIMENSION_OPTION_1, r.DIMENSION_OPTION_2, r.DIMENSION_OPTION_3, r.DIMENSION_OPTION_4, r.DIMENSION_OPTION_6, r.DIMENSION_OPTION_7, r.DIMENSION_OPTION_8, r.DIMENSION_OPTION_9, r.DIMENSION_OPTION_10], n.JSArray_DIMENSION_OPTION), p.VisualizationField__isNumericAggregations = u._setArrayType([r.AGGREGATION_TYPE_2, r.AGGREGATION_TYPE_3], n.JSArray_AGGREGATION_TYPE), p.___local = u._Cell$();
10108
10108
  }(), function() {
10109
- var x = B.lazyFinal, c = B.lazy;
10109
+ var x = Q.lazyFinal, c = Q.lazy;
10110
10110
  x(p, "DART_CLOSURE_PROPERTY_NAME", "$get$DART_CLOSURE_PROPERTY_NAME", () => u.getIsolateAffinityTag("_$dart_dartClosure")), x(p, "TypeErrorDecoder_noSuchMethodPattern", "$get$TypeErrorDecoder_noSuchMethodPattern", () => u.TypeErrorDecoder_extractPattern(u.TypeErrorDecoder_provokeCallErrorOn({
10111
10111
  toString: function() {
10112
10112
  return "$receiver$";
@@ -10143,8 +10143,8 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
10143
10143
  return d.message;
10144
10144
  }
10145
10145
  }())), x(p, "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)), x(p, "_hashSeed", "$get$_hashSeed", () => u.objectHashCode(r.Type_Object_xQ6)), x(p, "Endian_host", "$get$Endian_host", () => u.NativeByteData_NativeByteData$view(u.NativeUint16List_NativeUint16List$fromList(u._setArrayType([1], n.JSArray_int)).buffer, 0, null).getInt8(0) === 1 ? r.C_Endian0 : r.C_Endian), x(p, "_clockKey", "$get$_clockKey", () => new u.Object()), x(p, "en_USSymbols", "$get$en_USSymbols", () => new u.DateSymbols("en_US", r.List_BC_AD, r.List_6xs, r.List_qpm, r.List_qpm, r.List_cIc, r.List_cIc, r.List_h8w, r.List_h8w, r.List_wMy, r.List_wMy, r.List_gc6, r.List_gc6, r.List_3US, r.List_AM_PM)), c(p, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => u.UninitializedLocaleData$("initializeDateFormatting(<locale>)", p.$get$en_USSymbols())), c(p, "dateTimePatterns", "$get$dateTimePatterns", () => u.UninitializedLocaleData$("initializeDateFormatting(<locale>)", r.Map_EQ6TW)), x(p, "asciiZeroCodeUnit", "$get$asciiZeroCodeUnit", () => 48), x(p, "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>"))), x(p, "_DateFormatQuotedField__twoEscapedQuotes", "$get$_DateFormatQuotedField__twoEscapedQuotes", () => u.RegExp_RegExp("''", !1)), x(p, "asciiDigitMatcher", "$get$asciiDigitMatcher", () => u.RegExp_RegExp("^\\d+", !1)), c(p, "_availableLocales", "$get$_availableLocales", () => {
10146
- var d, a, t = u.EnLocale$(r.StartOfWeek_1), f = u.EnLocale$(r.StartOfWeek_1), i = u.EnLocale$(r.StartOfWeek_1), b = u.EnLocale$(r.StartOfWeek_1), s = u.EnLocale$(r.StartOfWeek_1), l = u.EnLocale$(r.StartOfWeek_2), o = u.EnLocale$(r.StartOfWeek_2), _ = u.EnLocale$(r.StartOfWeek_1), m = u.EnLocale$(r.StartOfWeek_1), g = u.EsLocale$(r.StartOfWeek_2), S = u.EsLocale$(r.StartOfWeek_2), A = u.EsLocale$(r.StartOfWeek_1), F = u.FrLocale$(r.StartOfWeek_2), R = u.FrLocale$(r.StartOfWeek_2), D = u.FrLocale$(r.StartOfWeek_1), I = u.ZhCnLocale$(r.StartOfWeek_1), L = u.ZhCnLocale$(r.StartOfWeek_1), O = u.ZhLocale$(r.StartOfWeek_1), J = u.ZhLocale$(r.StartOfWeek_1), N = u.DeLocale$(r.StartOfWeek_2), z = u.DeLocale$(r.StartOfWeek_2), y0 = u.DeLocale$(r.StartOfWeek_2), h0 = u.DeLocale$(r.StartOfWeek_2), T0 = u.ItLocale$(r.StartOfWeek_2), A0 = u.ItLocale$(r.StartOfWeek_2), I0 = u.ArLyLocale$(!0, r.StartOfWeek_0), E0 = u.ArLyLocale$(!1, r.StartOfWeek_0), F0 = u.ArSaMaDzKwTnLocale$(!1, r.StartOfWeek_1), C0 = u.ArSaMaDzKwTnLocale$(!1, r.StartOfWeek_1), cu = u.ArSaMaDzKwTnLocale$(!0, r.StartOfWeek_1), du = u.ArSaMaDzKwTnLocale$(!1, r.StartOfWeek_0), au = u.ArSaMaDzKwTnLocale$(!1, r.StartOfWeek_0);
10147
- return u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), d = u.PtLocale$(r.StartOfWeek_2), a = u.PtLocale$(r.StartOfWeek_1), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.LinkedHashMap_LinkedHashMap$_literal(["en", t, "en_us", f, "en_sg", i, "en_au", b, "en_ca", s, "en_gb", l, "en_ie", o, "en_il", _, "en_nz", m, "es", g, "es_do", S, "es_us", A, "fr", F, "fr_ch", R, "fr_ca", D, "zh", I, "zh_cn", L, "zh_hk", O, "zh_tw", J, "de", N, "de_de", z, "de_at", y0, "de_ch", h0, "it", T0, "it_ch", A0, "ar", I0, "ar_ly", E0, "ar_dz", F0, "ar_kw", C0, "ar_sa", cu, "ar_ma", du, "ar_tn", au, "az", new u.AzLocale(), "id", new u.IdLocale(), "ja", new u.JaLocale(), "ko", new u.KoLocale(), "ru", new u.RuLocale(), "uk", new u.UkLocale(), "hi", new u.HiLocale(), "pt", d, "pt_br", a, "pl", new u.PlLocale(), "tr", new u.TrLocale(), "sv", new u.SvLocale(), "nb", new u.NbLocale(), "fa", new u.FaLocale(), "bn", new u.BnLocale(), "nl", new u.NlLocale(), "th", new u.ThLocale()], n.String, u.findType("Locale"));
10146
+ var d, a, t = u.EnLocale$(r.StartOfWeek_1), f = u.EnLocale$(r.StartOfWeek_1), i = u.EnLocale$(r.StartOfWeek_1), b = u.EnLocale$(r.StartOfWeek_1), s = u.EnLocale$(r.StartOfWeek_1), l = u.EnLocale$(r.StartOfWeek_2), o = u.EnLocale$(r.StartOfWeek_2), _ = u.EnLocale$(r.StartOfWeek_1), m = u.EnLocale$(r.StartOfWeek_1), g = u.EsLocale$(r.StartOfWeek_2), S = u.EsLocale$(r.StartOfWeek_2), A = u.EsLocale$(r.StartOfWeek_1), F = u.FrLocale$(r.StartOfWeek_2), R = u.FrLocale$(r.StartOfWeek_2), D = u.FrLocale$(r.StartOfWeek_1), I = u.ZhCnLocale$(r.StartOfWeek_1), w = u.ZhCnLocale$(r.StartOfWeek_1), O = u.ZhLocale$(r.StartOfWeek_1), J = u.ZhLocale$(r.StartOfWeek_1), N = u.DeLocale$(r.StartOfWeek_2), z = u.DeLocale$(r.StartOfWeek_2), y0 = u.DeLocale$(r.StartOfWeek_2), h0 = u.DeLocale$(r.StartOfWeek_2), T0 = u.ItLocale$(r.StartOfWeek_2), A0 = u.ItLocale$(r.StartOfWeek_2), I0 = u.ArLyLocale$(!0, r.StartOfWeek_0), E0 = u.ArLyLocale$(!1, r.StartOfWeek_0), F0 = u.ArSaMaDzKwTnLocale$(!1, r.StartOfWeek_1), C0 = u.ArSaMaDzKwTnLocale$(!1, r.StartOfWeek_1), cu = u.ArSaMaDzKwTnLocale$(!0, r.StartOfWeek_1), du = u.ArSaMaDzKwTnLocale$(!1, r.StartOfWeek_0), au = u.ArSaMaDzKwTnLocale$(!1, r.StartOfWeek_0);
10147
+ return u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), d = u.PtLocale$(r.StartOfWeek_2), a = u.PtLocale$(r.StartOfWeek_1), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.LinkedHashMap_LinkedHashMap$_literal(["en", t, "en_us", f, "en_sg", i, "en_au", b, "en_ca", s, "en_gb", l, "en_ie", o, "en_il", _, "en_nz", m, "es", g, "es_do", S, "es_us", A, "fr", F, "fr_ch", R, "fr_ca", D, "zh", I, "zh_cn", w, "zh_hk", O, "zh_tw", J, "de", N, "de_de", z, "de_at", y0, "de_ch", h0, "it", T0, "it_ch", A0, "ar", I0, "ar_ly", E0, "ar_dz", F0, "ar_kw", C0, "ar_sa", cu, "ar_ma", du, "ar_tn", au, "az", new u.AzLocale(), "id", new u.IdLocale(), "ja", new u.JaLocale(), "ko", new u.KoLocale(), "ru", new u.RuLocale(), "uk", new u.UkLocale(), "hi", new u.HiLocale(), "pt", d, "pt_br", a, "pl", new u.PlLocale(), "tr", new u.TrLocale(), "sv", new u.SvLocale(), "nb", new u.NbLocale(), "fa", new u.FaLocale(), "bn", new u.BnLocale(), "nl", new u.NlLocale(), "th", new u.ThLocale()], n.String, u.findType("Locale"));
10148
10148
  }), x(p, "addonFlattenItemSchema", "$get$addonFlattenItemSchema", () => {
10149
10149
  var d = "createdAt", a = u.Source_Source$couchdb("", ""), t = u.TopLevelFilters$(u._setArrayType([u.Permission_Permission$restaurant("restaurantId")], n.JSArray_Permission), d);
10150
10150
  return u.Schema_Schema$build(u._setArrayType(["restaurantId"], n.JSArray_String), null, new u.addonFlattenItemSchema_closure(), r.List_empty, null, null, !1, !1, !0, !1, new u.addonFlattenItemSchema_closure0(), "Addon", "flatten_items", "flatten_item", r.SCHEMA_NAME_6, d, "", a, t);
@@ -10378,7 +10378,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
10378
10378
  (function() {
10379
10379
  var x = function(i) {
10380
10380
  var b = {};
10381
- return b[i] = 1, Object.keys(B.convertToFastObject(b))[0];
10381
+ return b[i] = 1, Object.keys(Q.convertToFastObject(b))[0];
10382
10382
  };
10383
10383
  P.getIsolateTag = function(i) {
10384
10384
  return x("___dart_" + i + P.isolateTag);
@@ -10391,7 +10391,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
10391
10391
  }
10392
10392
  }
10393
10393
  P.dispatchPropertyName = P.getIsolateTag("dispatch_record");
10394
- })(), B.setOrUpdateInterceptorsByTag({ ArrayBuffer: $.Interceptor, DataView: u.NativeTypedData, ArrayBufferView: u.NativeTypedData, Uint16Array: u.NativeUint16List, Uint32Array: u.NativeUint32List, Uint8Array: u.NativeUint8List }), B.setOrUpdateLeafTags({ ArrayBuffer: !0, DataView: !0, ArrayBufferView: !1, Uint16Array: !0, Uint32Array: !0, Uint8Array: !1 }), u.NativeTypedArray.$nativeSuperclassTag = "ArrayBufferView", u._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.$nativeSuperclassTag = "ArrayBufferView", u._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.$nativeSuperclassTag = "ArrayBufferView", u.NativeTypedArrayOfInt.$nativeSuperclassTag = "ArrayBufferView";
10394
+ })(), Q.setOrUpdateInterceptorsByTag({ ArrayBuffer: $.Interceptor, DataView: u.NativeTypedData, ArrayBufferView: u.NativeTypedData, Uint16Array: u.NativeUint16List, Uint32Array: u.NativeUint32List, Uint8Array: u.NativeUint8List }), Q.setOrUpdateLeafTags({ ArrayBuffer: !0, DataView: !0, ArrayBufferView: !1, Uint16Array: !0, Uint32Array: !0, Uint8Array: !1 }), u.NativeTypedArray.$nativeSuperclassTag = "ArrayBufferView", u._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.$nativeSuperclassTag = "ArrayBufferView", u._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.$nativeSuperclassTag = "ArrayBufferView", u.NativeTypedArrayOfInt.$nativeSuperclassTag = "ArrayBufferView";
10395
10395
  }(), Function.prototype.call$1 = function(e) {
10396
10396
  return this(e);
10397
10397
  }, Function.prototype.call$0 = function() {
@@ -10404,7 +10404,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
10404
10404
  return this(e, x, c);
10405
10405
  }, Function.prototype.call$8 = function(e, x, c, d, a, t, f, i) {
10406
10406
  return this(e, x, c, d, a, t, f, i);
10407
- }, f0($0), function(e) {
10407
+ }, i0($0), function(e) {
10408
10408
  if (typeof document > "u") {
10409
10409
  e(null);
10410
10410
  return;
@@ -10428,7 +10428,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
10428
10428
  });
10429
10429
  })();
10430
10430
  })(O0);
10431
- var P0 = /* @__PURE__ */ ((y) => (y.DateTime = "DATE_TIME", y.Hour = "HOUR", y.Day = "DAY", y.Week = "WEEK", y.Month = "MONTH", y.TimeOfDay = "TIME_OF_DAY", y.HourOfDay = "HOUR_OF_DAY", y.DayOfWeek = "DAY_OF_WEEK", y.DayOfMonth = "DAY_OF_MONTH", y.MonthOfYear = "MONTH_OF_YEAR", y.Year = "YEAR", y))(P0 || {}), hu = /* @__PURE__ */ ((y) => (y.Asc = "ASC", y.Desc = "DESC", y))(hu || {}), J0 = /* @__PURE__ */ ((y) => (y.Equal = "EQUAL", y.NotEqual = "NOT_EQUAL", y.GreaterThan = "GREATER_THAN", y.LessThan = "LESS_THAN", y.GreaterThanOrEqual = "GREATER_THAN_OR_EQUAL", y.LessThanOrEqual = "LESS_THAN_OR_EQUAL", y.Between = "BETWEEN", y.Like = "LIKE", y.NotLike = "NOT_LIKE", y.And = "AND", y.Or = "OR", y))(J0 || {}), Tu = /* @__PURE__ */ ((y) => (y.String = "STRING", y.Timestamp = "TIMESTAMP", y.Bool = "BOOL", y.Numeric = "NUMERIC", y))(Tu || {}), Au = /* @__PURE__ */ ((y) => (y.MTD = "MTD", y))(Au || {}), Iu = /* @__PURE__ */ ((y) => (y.Scorecard = "SCORECARD", y.Spacer = "SPACER", y.Table = "TABLE", y.BarChart = "BARCHART", y.StackBarChart = "STACKBARCHART", y.LineChart = "LINECHART", y.StackLineChart = "STACKLINECHART", y.Circular = "CIRCULAR", y))(Iu || {}), Eu = /* @__PURE__ */ ((y) => (y.EXCEL = "excel", y.PDF = "pdf", y.PDFFULLSIZE = "pdfFullSize", y.PDFRECEIPT = "pdfReceipt", y))(Eu || {}), Fu = /* @__PURE__ */ ((y) => (y.LANDSCAPE = "landscape", y.PORTRAIT = "portrait", y))(Fu || {});
10431
+ var P0 = /* @__PURE__ */ ((y) => (y.DateTime = "DATE_TIME", y.Hour = "HOUR", y.Day = "DAY", y.Week = "WEEK", y.Month = "MONTH", y.TimeOfDay = "TIME_OF_DAY", y.HourOfDay = "HOUR_OF_DAY", y.DayOfWeek = "DAY_OF_WEEK", y.DayOfMonth = "DAY_OF_MONTH", y.MonthOfYear = "MONTH_OF_YEAR", y.Year = "YEAR", y))(P0 || {}), hu = /* @__PURE__ */ ((y) => (y.Asc = "ASC", y.Desc = "DESC", y))(hu || {}), J0 = /* @__PURE__ */ ((y) => (y.Equal = "EQUAL", y.NotEqual = "NOT_EQUAL", y.GreaterThan = "GREATER_THAN", y.LessThan = "LESS_THAN", y.GreaterThanOrEqual = "GREATER_THAN_OR_EQUAL", y.LessThanOrEqual = "LESS_THAN_OR_EQUAL", y.Between = "BETWEEN", y.Like = "LIKE", y.NotLike = "NOT_LIKE", y.And = "AND", y.Or = "OR", y))(J0 || {}), Tu = /* @__PURE__ */ ((y) => (y.String = "STRING", y.Timestamp = "TIMESTAMP", y.Bool = "BOOL", y.Numeric = "NUMERIC", y))(Tu || {}), Au = /* @__PURE__ */ ((y) => (y.MTD = "MTD", y))(Au || {}), Iu = /* @__PURE__ */ ((y) => (y.Scorecard = "SCORECARD", y.Spacer = "SPACER", y.Table = "TABLE", y.BarChart = "BARCHART", y.StackBarChart = "STACKBARCHART", y.LineChart = "LINECHART", y.StackLineChart = "STACKLINECHART", y.Circular = "CIRCULAR", y))(Iu || {}), Eu = /* @__PURE__ */ ((y) => (y.EXCEL = "excel", y.PDF = "pdf", y.PDFFULLSIZE = "pdfFullSize", y.PDFRECEIPT = "pdfReceipt", y))(Eu || {}), Fu = /* @__PURE__ */ ((y) => (y.PORTRAIT = "portrait", y.LANDSCAPE = "landscape", y))(Fu || {});
10432
10432
  function ax(y) {
10433
10433
  switch (y) {
10434
10434
  case "excel":
@@ -10454,81 +10454,81 @@ function tx(y) {
10454
10454
  }
10455
10455
  }
10456
10456
  const S0 = "/report-settings", Cu = async () => {
10457
- const { businessId: y } = X(c0());
10457
+ const { businessId: y } = X(e0());
10458
10458
  if (y) {
10459
10459
  const T = {
10460
10460
  fetchType: Z.Get,
10461
10461
  url: `${S0}/${y.value}/reports`
10462
10462
  };
10463
- return e0.fetch(T);
10463
+ return x0.fetch(T);
10464
10464
  } else
10465
10465
  return Promise.reject(new Error("Business Id is not defined"));
10466
10466
  }, Mu = (y) => {
10467
- const { businessId: T } = X(c0()), E = {
10467
+ const { businessId: T } = X(e0()), E = {
10468
10468
  fetchType: Z.Put,
10469
10469
  url: `${S0}/${T.value}/reports/${y.id}`,
10470
10470
  data: y
10471
10471
  };
10472
- return e0.fetch(E);
10472
+ return x0.fetch(E);
10473
10473
  }, Ru = (y) => {
10474
- const { businessId: T } = X(c0()), E = {
10474
+ const { businessId: T } = X(e0()), E = {
10475
10475
  fetchType: Z.Post,
10476
10476
  url: `${S0}/${T.value}/reports`,
10477
10477
  data: y
10478
10478
  };
10479
- return e0.fetch(E);
10479
+ return x0.fetch(E);
10480
10480
  }, Du = (y) => {
10481
- const { businessId: T } = X(c0()), E = {
10481
+ const { businessId: T } = X(e0()), E = {
10482
10482
  fetchType: Z.Delete,
10483
10483
  url: `${S0}/${T.value}/reports/${y.id}`
10484
10484
  };
10485
- return e0.fetch(E);
10485
+ return x0.fetch(E);
10486
10486
  }, Ou = (y) => {
10487
- const { businessId: T } = X(c0()), E = {
10487
+ const { businessId: T } = X(e0()), E = {
10488
10488
  fetchType: Z.Put,
10489
10489
  url: `${S0}/${T.value}/reports/default`,
10490
10490
  data: { defaultReport: y }
10491
10491
  };
10492
- return e0.fetch(E);
10492
+ return x0.fetch(E);
10493
10493
  }, vu = async () => {
10494
- const { businessId: y } = X(c0());
10494
+ const { businessId: y } = X(e0());
10495
10495
  if (y) {
10496
10496
  const T = {
10497
10497
  fetchType: Z.Get,
10498
10498
  url: `${S0}/${y.value}/overview-report`
10499
10499
  };
10500
- return e0.fetch(T);
10500
+ return x0.fetch(T);
10501
10501
  } else
10502
10502
  return Promise.reject(new Error("Business Id is not defined"));
10503
10503
  }, Lu = async () => {
10504
- const { businessId: y } = X(c0());
10504
+ const { businessId: y } = X(e0());
10505
10505
  if (y) {
10506
10506
  const T = {
10507
10507
  fetchType: Z.Get,
10508
10508
  url: `${S0}/${y.value}/config`
10509
10509
  };
10510
- return e0.fetch(T);
10510
+ return x0.fetch(T);
10511
10511
  } else
10512
10512
  return Promise.reject(new Error("Business Id is not defined"));
10513
10513
  }, wu = "/report-settings", Pu = async () => {
10514
- const { businessId: y } = X(c0());
10514
+ const { businessId: y } = X(e0());
10515
10515
  if (y) {
10516
10516
  const T = {
10517
10517
  fetchType: Z.Get,
10518
10518
  url: `${wu}/${y.value}/categories`
10519
10519
  };
10520
- return e0.fetch(T);
10520
+ return x0.fetch(T);
10521
10521
  } else
10522
10522
  return Promise.reject(new Error("Business Id is not defined"));
10523
10523
  }, Ju = (y) => {
10524
- const { businessId: T } = X(c0()), E = {
10524
+ const { businessId: T } = X(e0()), E = {
10525
10525
  fetchType: Z.Post,
10526
10526
  url: `/report-settings/${T.value}/date-settings`,
10527
10527
  data: {
10528
10528
  ...y
10529
10529
  }
10530
10530
  };
10531
- return e0.fetch(E);
10531
+ return x0.fetch(E);
10532
10532
  };
10533
10533
  function L0(y, T = {}) {
10534
10534
  const E = localStorage.getItem(y);
@@ -10553,9 +10553,9 @@ const g0 = {
10553
10553
  fetchType: Z.Get,
10554
10554
  url: "/schemas"
10555
10555
  };
10556
- return e0.fetch(y);
10556
+ return x0.fetch(y);
10557
10557
  }, Nu = "mf-reportschema-store", qu = D0(Nu, () => {
10558
- const y = G([]), T = j0();
10558
+ const y = V([]), T = Y0();
10559
10559
  async function E() {
10560
10560
  try {
10561
10561
  y.value = await Hu();
@@ -10571,20 +10571,20 @@ const g0 = {
10571
10571
  schemas: y,
10572
10572
  getSchema: E
10573
10573
  };
10574
- }), ku = "mf-reportreport-store", Y0 = D0(ku, () => {
10575
- const { business: y, globalFilters: T } = X(R0()), { schemas: E } = X(qu()), { flags: M } = X(tu()), v = G([]), C = G([]), w = G(0), H = j0(), k = m0(() => v.value.filter((e) => e.editable)), q = m0(() => v.value.filter((e) => !e.editable)), U = G(!1), Q = G(""), V = G(), W = G(), u0 = m0(() => {
10574
+ }), ku = "mf-reportreport-store", U0 = D0(ku, () => {
10575
+ const { business: y, globalFilters: T } = X(R0()), { schemas: E } = X(qu()), { flags: M } = X(tu()), L = V([]), C = V([]), v = V(0), H = Y0(), k = m0(() => L.value.filter((e) => e.editable)), U = m0(() => L.value.filter((e) => !e.editable)), q = V(!1), B = V(""), Y = V(), G = V(), n0 = m0(() => {
10576
10576
  const e = M.value.find(
10577
10577
  (x) => x.key === ru.report_portal_integration_custom_report
10578
10578
  );
10579
10579
  return typeof (e == null ? void 0 : e.value) == "number" ? e.value : null;
10580
- }), i0 = m0(() => u0.value === null ? !0 : u0.value - k.value.length > 0);
10581
- async function n0() {
10582
- return W.value = await vu(), W.value;
10580
+ }), a0 = m0(() => n0.value === null ? !0 : n0.value - k.value.length > 0);
10581
+ async function t0() {
10582
+ return G.value = await vu(), G.value;
10583
10583
  }
10584
- async function x0() {
10584
+ async function c0() {
10585
10585
  var e;
10586
10586
  try {
10587
- v.value = await Cu(), C.value = await Pu(), v.value.find((c) => c.id === Q.value) || (Q.value = ((e = v.value.find((c) => c.isDefault)) == null ? void 0 : e.id) || v.value[0].id);
10587
+ L.value = await Cu(), C.value = await Pu(), L.value.find((c) => c.id === B.value) || (B.value = ((e = L.value.find((c) => c.isDefault)) == null ? void 0 : e.id) || L.value[0].id);
10588
10588
  } catch (x) {
10589
10589
  console.log(x), H.open({
10590
10590
  title: "Report Fetch Error",
@@ -10594,9 +10594,9 @@ const g0 = {
10594
10594
  }
10595
10595
  }
10596
10596
  const d0 = m0(
10597
- () => v.value.find((e) => e.id === Q.value)
10597
+ () => L.value.find((e) => e.id === B.value)
10598
10598
  );
10599
- function f0(e) {
10599
+ function i0(e) {
10600
10600
  var c;
10601
10601
  const x = (c = E.value.find((d) => d.name === e.schemaName)) == null ? void 0 : c.fields.find((d) => d.name === e.name);
10602
10602
  return x == null ? void 0 : x.type;
@@ -10611,30 +10611,30 @@ const g0 = {
10611
10611
  ...x,
10612
10612
  options: [],
10613
10613
  values: [],
10614
- type: f0(x)
10614
+ type: i0(x)
10615
10615
  }));
10616
10616
  },
10617
10617
  { deep: !0 }
10618
10618
  );
10619
- const l0 = G(), p0 = G(0), K = G(), b0 = G(null), a0 = G(null), t0 = G(!1), j = G(!1), s0 = G(!1);
10620
- async function r0(e) {
10619
+ const l0 = V(), o0 = V(0), K = V(), b0 = V(null), u0 = V(null), r0 = V(!1), W = V(!1), s0 = V(!1);
10620
+ async function f0(e) {
10621
10621
  const x = k.value.findIndex((d) => d.id === e.id);
10622
10622
  let c;
10623
- x >= 0 ? c = (await Mu(e)).id : c = (await Ru(e)).id, await x0(), $(c);
10623
+ return x >= 0 ? c = await Mu(e) : c = await Ru(e), await c0(), $(c.id), c;
10624
10624
  }
10625
- async function o0(e) {
10625
+ async function _0(e) {
10626
10626
  return await Ju(e);
10627
10627
  }
10628
- async function B(e) {
10629
- await Du(e), await x0();
10628
+ async function Q(e) {
10629
+ await Du(e), await c0();
10630
10630
  }
10631
10631
  async function u(e) {
10632
- await Ou(e), await x0();
10632
+ await Ou(e), await c0();
10633
10633
  }
10634
10634
  function $(e) {
10635
- v.value.findIndex((c) => c.id === e) !== -1 && (Q.value = e);
10635
+ L.value.findIndex((c) => c.id === e) !== -1 && (B.value = e);
10636
10636
  }
10637
- const r = G(null);
10637
+ const r = V(null);
10638
10638
  function $0() {
10639
10639
  var e;
10640
10640
  if ((e = y.value) != null && e._id) {
@@ -10666,12 +10666,12 @@ const g0 = {
10666
10666
  const e = g0.getJson("feedback");
10667
10667
  if (!e[y.value._id])
10668
10668
  e[y.value._id] = {
10669
- date: _0().local().format("YYYY-MM-DD"),
10669
+ date: p0().local().format("YYYY-MM-DD"),
10670
10670
  feedback: !1
10671
10671
  };
10672
10672
  else {
10673
- const x = _0(e[y.value._id].date).local();
10674
- Math.abs(x.diff(_0().endOf("day").local(), "d")) >= 1 && !e[y.value._id].feedback && (j.value = !0);
10673
+ const x = p0(e[y.value._id].date).local();
10674
+ Math.abs(x.diff(p0().endOf("day").local(), "d")) >= 1 && !e[y.value._id].feedback && (W.value = !0);
10675
10675
  }
10676
10676
  g0.setJson("feedback", e);
10677
10677
  }
@@ -10680,43 +10680,43 @@ const g0 = {
10680
10680
  return await Lu();
10681
10681
  }
10682
10682
  return {
10683
- isOpenDownloadDialog: t0,
10684
- isOpenFeedbackDialog: j,
10683
+ isOpenDownloadDialog: r0,
10684
+ isOpenFeedbackDialog: W,
10685
10685
  isOpenEmailDialog: s0,
10686
- currentSelectWidgetType: V,
10687
- reports: v,
10686
+ currentSelectWidgetType: Y,
10687
+ reports: L,
10688
10688
  categories: C,
10689
10689
  currentReport: d0,
10690
10690
  editingReport: l0,
10691
- editingTileIndex: p0,
10691
+ editingTileIndex: o0,
10692
10692
  editingTile: K,
10693
10693
  editingGlobalFilterIndex: b0,
10694
- editingGlobalFilter: a0,
10695
- currentReportId: Q,
10694
+ editingGlobalFilter: u0,
10695
+ currentReportId: B,
10696
10696
  editableReports: k,
10697
- nonEditableReports: q,
10698
- isOpenAddReportDialog: U,
10699
- overviewReport: W,
10697
+ nonEditableReports: U,
10698
+ isOpenAddReportDialog: q,
10699
+ overviewReport: G,
10700
10700
  pinReport: r,
10701
- scrollPositionY: w,
10702
- customReportQuota: u0,
10703
- canCreateCustomReport: i0,
10704
- createOrUpdateReport: r0,
10705
- removeReport: B,
10701
+ scrollPositionY: v,
10702
+ customReportQuota: n0,
10703
+ canCreateCustomReport: a0,
10704
+ createOrUpdateReport: f0,
10705
+ removeReport: Q,
10706
10706
  updateCurrentReportId: $,
10707
- getReports: x0,
10707
+ getReports: c0,
10708
10708
  updateDefaultReport: u,
10709
10709
  checkFeedback: h,
10710
- getOverviewReport: n0,
10710
+ getOverviewReport: t0,
10711
10711
  refreshPinReport: $0,
10712
10712
  cachePinReport: p,
10713
10713
  clearPinReport: P,
10714
10714
  getReportConfig: n,
10715
- submitFeedback: o0
10715
+ submitFeedback: _0
10716
10716
  };
10717
10717
  }), Uu = "mf-reportnavigation", K0 = D0(Uu, () => {
10718
- const { disabled: y } = X(fu()), T = G("v5"), E = m0(() => {
10719
- const w = [
10718
+ const { disabled: y } = X(fu()), T = V("v5"), E = m0(() => {
10719
+ const v = [
10720
10720
  {
10721
10721
  label: "overview",
10722
10722
  value: "overview",
@@ -10739,14 +10739,14 @@ const g0 = {
10739
10739
  route: "setting"
10740
10740
  }
10741
10741
  ];
10742
- return y.value || w.push({
10742
+ return y.value || v.push({
10743
10743
  label: "integration",
10744
10744
  value: "integration",
10745
10745
  route: "integrations"
10746
- }), w;
10747
- }), M = G(""), { currentRoute: v } = Su();
10748
- function C(w) {
10749
- switch (w.name) {
10746
+ }), v;
10747
+ }), M = V(""), { currentRoute: L } = Su();
10748
+ function C(v) {
10749
+ switch (v.name) {
10750
10750
  case "report":
10751
10751
  case "reports":
10752
10752
  M.value = "report";
@@ -10767,9 +10767,9 @@ const g0 = {
10767
10767
  }
10768
10768
  }
10769
10769
  return q0(
10770
- v,
10771
- (w) => {
10772
- C(w);
10770
+ L,
10771
+ (v) => {
10772
+ C(v);
10773
10773
  },
10774
10774
  { immediate: !0 }
10775
10775
  ), {
@@ -10780,37 +10780,37 @@ const g0 = {
10780
10780
  });
10781
10781
  var Z0 = /* @__PURE__ */ ((y) => (y.generating = "GENERATING", y.completed = "COMPLETED", y.failed = "FAILED", y.canceled = "CANCELLED", y))(Z0 || {});
10782
10782
  const Bu = "/assets/formatChartData.worker-2gP9DT2G.js", w0 = /* @__PURE__ */ new Map();
10783
- function z0(y) {
10783
+ function X0(y) {
10784
10784
  return new Worker(y, { type: "module" });
10785
10785
  }
10786
10786
  async function Qu(y) {
10787
10787
  if (w0.has(y))
10788
- return z0(w0.get(y));
10788
+ return X0(w0.get(y));
10789
10789
  let T = y;
10790
10790
  if (location.hostname !== new URL(import.meta.url).hostname) {
10791
- const v = new URL(y.replace(/^\//, ""), import.meta.url).href, C = await fetch(v).then((H) => H.text()), w = new Blob([C], { type: "application/javascript" });
10792
- T = URL.createObjectURL(w);
10791
+ const L = new URL(y.replace(/^\//, ""), import.meta.url).href, C = await fetch(L).then((H) => H.text()), v = new Blob([C], { type: "application/javascript" });
10792
+ T = URL.createObjectURL(v);
10793
10793
  }
10794
- const M = z0(T);
10794
+ const M = X0(T);
10795
10795
  return w0.set(y, T), M;
10796
10796
  }
10797
10797
  async function Gu(y, T) {
10798
10798
  const E = await Qu(y);
10799
10799
  return E.postMessage(T), await new Promise((M) => {
10800
- E.onmessage = async (v) => {
10801
- const C = v.data;
10800
+ E.onmessage = async (L) => {
10801
+ const C = L.data;
10802
10802
  E.terminate(), M(C);
10803
10803
  };
10804
10804
  });
10805
10805
  }
10806
10806
  const Vu = "mf-reportwidget-size", uu = D0(Vu, () => {
10807
- const y = G([]);
10807
+ const y = V([]);
10808
10808
  function T(E, M) {
10809
- var v;
10809
+ var L;
10810
10810
  try {
10811
10811
  if (!E) return;
10812
10812
  let C;
10813
- const w = E.$el, H = (v = w == null ? void 0 : w.querySelector) == null ? void 0 : v.call(w, "canvas");
10813
+ const v = E.$el, H = (L = v == null ? void 0 : v.querySelector) == null ? void 0 : L.call(v, "canvas");
10814
10814
  if (H) {
10815
10815
  const k = H.getBoundingClientRect();
10816
10816
  C = { width: Math.round(k.width), height: Math.round(k.height) };
@@ -10823,64 +10823,65 @@ const Vu = "mf-reportwidget-size", uu = D0(Vu, () => {
10823
10823
  }
10824
10824
  return { sizes: y, extractChartSize: T };
10825
10825
  });
10826
- _0.extend(iu);
10826
+ p0.extend(iu);
10827
10827
  async function zu(y, T) {
10828
10828
  for (let E = 0; E < y.length; E++)
10829
10829
  try {
10830
10830
  return await y[E]();
10831
10831
  } catch (M) {
10832
10832
  if (M.message === "Unauthorized" || E === y.length - 1) throw M;
10833
- await new Promise((v) => setTimeout(v, T));
10833
+ await new Promise((L) => setTimeout(L, T));
10834
10834
  }
10835
10835
  throw new Error("No callback");
10836
10836
  }
10837
10837
  const rx = async (y, T, E) => {
10838
- var x0, d0, f0, l0;
10839
- const { businessId: M, country: v } = X(c0()), {
10840
- selectedRestaurantIds: C,
10841
- selectedWarehouseIds: w,
10842
- selectedLocationIds: H,
10843
- dateRange: k,
10838
+ var d0, i0, l0, o0;
10839
+ const { businessId: M, country: L } = X(e0()), { currentReport: C } = U0(), {
10840
+ selectedRestaurantIds: v,
10841
+ selectedWarehouseIds: H,
10842
+ selectedLocationIds: k,
10843
+ dateRange: U,
10844
10844
  compareDateRange: q,
10845
- timeRange: U,
10846
- globalFilters: Q
10845
+ timeRange: B,
10846
+ globalFilters: Y
10847
10847
  } = R0();
10848
- if (H.length === 0)
10848
+ if (k.length === 0)
10849
10849
  return null;
10850
- const V = H0(v.value), W = U0(y, Q, E ?? ""), u0 = {
10850
+ const G = H0(L.value), n0 = B0(y, Y, E ?? ""), a0 = {
10851
10851
  fetchType: Z.Post,
10852
10852
  url: `/${M.value}/postgres-query`,
10853
10853
  data: O0.getQueryRequests({
10854
- widget: W,
10855
- dateRange: [k.startDate, k.endDate],
10854
+ widget: n0,
10855
+ dateRange: [U.startDate, U.endDate],
10856
10856
  compareDateRange: q.startDate && q.endDate ? [q.startDate, q.endDate] : void 0,
10857
10857
  timeRange: [
10858
- _0().tz(V).set("hour", Number((x0 = U.start) == null ? void 0 : x0.hour)).set("minute", Number((d0 = U.start) == null ? void 0 : d0.minute)).toISOString(),
10859
- _0().tz(V).set("hour", Number((f0 = U.end) == null ? void 0 : f0.hour)).set("minute", Number((l0 = U.end) == null ? void 0 : l0.minute)).toISOString()
10858
+ p0().tz(G).set("hour", Number((d0 = B.start) == null ? void 0 : d0.hour)).set("minute", Number((i0 = B.start) == null ? void 0 : i0.minute)).toISOString(),
10859
+ p0().tz(G).set("hour", Number((l0 = B.end) == null ? void 0 : l0.hour)).set("minute", Number((o0 = B.end) == null ? void 0 : o0.minute)).toISOString()
10860
10860
  ],
10861
10861
  businessIds: M.value ? [M.value] : [],
10862
- restaurantIds: C,
10863
- warehouseIds: w,
10864
- timezone: V
10865
- }).map((p0, K) => {
10866
- const b0 = K === 0 ? 3e3 : 12e3;
10862
+ restaurantIds: v,
10863
+ warehouseIds: H,
10864
+ timezone: G
10865
+ }).map((K, b0) => {
10866
+ const u0 = b0 === 0 ? 3e3 : 12e3;
10867
10867
  return {
10868
- ...p0,
10869
- limit: C.length > 50 ? y.config.limit || b0 : y.config.limit
10868
+ ...K,
10869
+ limit: v.length > 50 ? y.config.limit || u0 : y.config.limit,
10870
+ skipStringSpaceGrouping: !!(C != null && C.batch)
10870
10871
  };
10871
10872
  }),
10872
10873
  requestConfig: {
10873
10874
  timeout: 1e3 * 60 * 5,
10874
10875
  signal: T
10875
10876
  }
10876
- }, i0 = [() => e0.fetch(u0)];
10877
- C.length < 50 && i0.push(() => e0.fetch(u0)), i0.push(() => (u0.url = u0.url.replace("postgres-query", "query"), e0.fetch(u0)));
10878
- const n0 = await zu(i0, 2e3);
10877
+ }, t0 = [() => x0.fetch(a0)];
10878
+ v.length < 50 && t0.push(() => x0.fetch(a0)), t0.push(() => (a0.url = a0.url.replace("postgres-query", "query"), x0.fetch(a0)));
10879
+ const c0 = await zu(t0, 2e3);
10879
10880
  return (await Gu(Bu, {
10880
- responses: n0,
10881
+ responses: c0,
10881
10882
  widget: JSON.parse(JSON.stringify(y)),
10882
- country: v.value,
10883
- timezone: V
10883
+ country: L.value,
10884
+ timezone: G
10884
10885
  })).data;
10885
10886
  };
10886
10887
  function xu(y) {
@@ -10926,48 +10927,48 @@ const fx = async ({
10926
10927
  index: T,
10927
10928
  orientationTypes: E,
10928
10929
  isCombinedLocationLayout: M,
10929
- locationIds: v,
10930
+ locationIds: L,
10930
10931
  timeRange: C,
10931
- dateRange: w
10932
+ dateRange: v
10932
10933
  }) => {
10933
- const { businessId: H, country: k } = X(c0()), { restaurants: q, warehouses: U, globalFilters: Q } = R0(), { currentReport: V, overviewReport: W } = Y0(), { selectedNavigationTab: u0 } = K0(), { sizes: i0 } = uu();
10934
- let n0 = V == null ? void 0 : V.id, x0 = (V == null ? void 0 : V.tiles) ?? [];
10935
- u0 === "overview" && W && (n0 = W == null ? void 0 : W.id, x0 = (W == null ? void 0 : W.tiles) ?? []);
10936
- const d0 = H0(k.value), f0 = x0.filter((j, s0) => typeof T == "number" ? s0 === T : !0).map((j) => U0(j.widget, Q, j.id)), l0 = {
10934
+ const { businessId: H, country: k } = X(e0()), { restaurants: U, warehouses: q, globalFilters: B } = R0(), { currentReport: Y, overviewReport: G } = U0(), { selectedNavigationTab: n0 } = K0(), { sizes: a0 } = uu();
10935
+ let t0 = Y == null ? void 0 : Y.id, c0 = (Y == null ? void 0 : Y.tiles) ?? [];
10936
+ n0 === "overview" && G && (t0 = G == null ? void 0 : G.id, c0 = (G == null ? void 0 : G.tiles) ?? []);
10937
+ const d0 = H0(k.value), i0 = c0.filter((W, s0) => typeof T == "number" ? s0 === T : !0).map((W) => B0(W.widget, B, W.id)), l0 = {
10937
10938
  fetchType: Z.Post,
10938
10939
  url: `/${H.value}/file?lang=${k0()}`,
10939
10940
  data: {
10940
10941
  configs: [
10941
- ...f0.map((j, s0) => {
10942
- var o0, B, u, $;
10943
- const r0 = i0[T ?? s0];
10942
+ ...i0.map((W, s0) => {
10943
+ var _0, Q, u, $;
10944
+ const f0 = a0[T ?? s0];
10944
10945
  return {
10945
10946
  requests: O0.getQueryRequests({
10946
- widget: j,
10947
- dateRange: [w.startDate, w.endDate],
10947
+ widget: W,
10948
+ dateRange: [v.startDate, v.endDate],
10948
10949
  timeRange: [
10949
- _0().tz(d0).set("hour", Number((o0 = C.start) == null ? void 0 : o0.hour)).set("minute", Number((B = C.start) == null ? void 0 : B.minute)).toISOString(),
10950
- _0().tz(d0).set("hour", Number((u = C.end) == null ? void 0 : u.hour)).set("minute", Number(($ = C.end) == null ? void 0 : $.minute)).toISOString()
10950
+ p0().tz(d0).set("hour", Number((_0 = C.start) == null ? void 0 : _0.hour)).set("minute", Number((Q = C.start) == null ? void 0 : Q.minute)).toISOString(),
10951
+ p0().tz(d0).set("hour", Number((u = C.end) == null ? void 0 : u.hour)).set("minute", Number(($ = C.end) == null ? void 0 : $.minute)).toISOString()
10951
10952
  ],
10952
10953
  businessIds: H ? [H.value] : [],
10953
- restaurantIds: v.filter(
10954
- (r) => q.find(($0) => $0.id === r)
10955
- ),
10956
- warehouseIds: v.filter(
10954
+ restaurantIds: L.filter(
10957
10955
  (r) => U.find(($0) => $0.id === r)
10958
10956
  ),
10957
+ warehouseIds: L.filter(
10958
+ (r) => q.find(($0) => $0.id === r)
10959
+ ),
10959
10960
  timezone: d0
10960
10961
  }),
10961
10962
  index: T || s0,
10962
10963
  drillDimension: null,
10963
- chartWidth: (r0 == null ? void 0 : r0.width) ?? j.config.chartWidth,
10964
- chartHeight: (r0 == null ? void 0 : r0.height) ?? j.config.chartHeight,
10965
- ...xu(j),
10966
- ...eu(j)
10964
+ chartWidth: (f0 == null ? void 0 : f0.width) ?? W.config.chartWidth,
10965
+ chartHeight: (f0 == null ? void 0 : f0.height) ?? W.config.chartHeight,
10966
+ ...xu(W),
10967
+ ...eu(W)
10967
10968
  };
10968
10969
  })
10969
10970
  ],
10970
- reportId: n0,
10971
+ reportId: t0,
10971
10972
  type: y,
10972
10973
  orientationTypes: E,
10973
10974
  isCombinedLocationLayout: M
@@ -10976,74 +10977,74 @@ const fx = async ({
10976
10977
  responseType: "arraybuffer",
10977
10978
  timeout: 1e3 * 60 * 60 * 24
10978
10979
  }
10979
- }, { headers: p0, data: K } = await N0.rawFetch(l0), b0 = p0["content-disposition"].split("filename=")[1].replaceAll('"', ""), a0 = window.URL.createObjectURL(new Blob([new Uint8Array(K).buffer])), t0 = document.createElement("a");
10980
- t0.href = a0, t0.setAttribute("download", decodeURIComponent(b0)), document.body.appendChild(t0), t0.click(), t0.remove();
10980
+ }, { headers: o0, data: K } = await N0.rawFetch(l0), b0 = o0["content-disposition"].split("filename=")[1].replaceAll('"', ""), u0 = window.URL.createObjectURL(new Blob([new Uint8Array(K).buffer])), r0 = document.createElement("a");
10981
+ r0.href = u0, r0.setAttribute("download", decodeURIComponent(b0)), document.body.appendChild(r0), r0.click(), r0.remove();
10981
10982
  }, ix = async ({
10982
10983
  emails: y,
10983
10984
  types: T,
10984
10985
  dateRange: E,
10985
10986
  timeRange: M,
10986
- locationIds: v,
10987
+ locationIds: L,
10987
10988
  orientationTypes: C,
10988
- isCombinedLocationLayout: w
10989
+ isCombinedLocationLayout: v
10989
10990
  }) => {
10990
- const { businessId: H, country: k } = X(c0()), { currentReport: q, overviewReport: U } = Y0(), { selectedNavigationTab: Q } = K0(), { restaurants: V, warehouses: W, globalFilters: u0 } = R0(), { sizes: i0 } = uu();
10991
+ const { businessId: H, country: k } = X(e0()), { currentReport: U, overviewReport: q } = U0(), { selectedNavigationTab: B } = K0(), { restaurants: Y, warehouses: G, globalFilters: n0 } = R0(), { sizes: a0 } = uu();
10991
10992
  if (y.length === 0) {
10992
10993
  console.error("No email addresses provided.");
10993
10994
  return;
10994
10995
  }
10995
- let n0 = (q == null ? void 0 : q.id) || "", x0 = (q == null ? void 0 : q.name) || "", d0 = (q == null ? void 0 : q.tiles) ?? [];
10996
- Q === "overview" && U && (n0 = U == null ? void 0 : U.id, x0 = U.name, d0 = (U == null ? void 0 : U.tiles) ?? []);
10997
- const f0 = H0(k.value), l0 = d0.map((K) => U0(K.widget, u0, K.id)), p0 = {
10996
+ let t0 = (U == null ? void 0 : U.id) || "", c0 = (U == null ? void 0 : U.name) || "", d0 = (U == null ? void 0 : U.tiles) ?? [];
10997
+ B === "overview" && q && (t0 = q == null ? void 0 : q.id, c0 = q.name, d0 = (q == null ? void 0 : q.tiles) ?? []);
10998
+ const i0 = H0(k.value), l0 = d0.map((K) => B0(K.widget, n0, K.id)), o0 = {
10998
10999
  businessId: H.value,
10999
11000
  status: Z0.generating,
11000
11001
  dateRange: {
11001
11002
  start: E.startDate,
11002
11003
  end: E.endDate
11003
11004
  },
11004
- reportName: x0,
11005
+ reportName: c0,
11005
11006
  emails: y,
11006
11007
  configs: l0.map((K, b0) => {
11007
- var t0, j, s0, r0;
11008
- const a0 = i0[b0];
11008
+ var r0, W, s0, f0;
11009
+ const u0 = a0[b0];
11009
11010
  return {
11010
11011
  requests: O0.getQueryRequests({
11011
11012
  widget: K,
11012
11013
  dateRange: [E.startDate, E.endDate],
11013
11014
  timeRange: [
11014
- _0().tz(f0).hour(Number((t0 = M.start) == null ? void 0 : t0.hour)).minute(Number((j = M.start) == null ? void 0 : j.minute)).toISOString(),
11015
- _0().tz(f0).hour(Number((s0 = M.end) == null ? void 0 : s0.hour)).minute(Number((r0 = M.end) == null ? void 0 : r0.minute)).toISOString()
11015
+ p0().tz(i0).hour(Number((r0 = M.start) == null ? void 0 : r0.hour)).minute(Number((W = M.start) == null ? void 0 : W.minute)).toISOString(),
11016
+ p0().tz(i0).hour(Number((s0 = M.end) == null ? void 0 : s0.hour)).minute(Number((f0 = M.end) == null ? void 0 : f0.minute)).toISOString()
11016
11017
  ],
11017
11018
  businessIds: H ? [H.value] : [],
11018
- restaurantIds: v.filter(
11019
- (o0) => V.find((B) => B.id === o0)
11019
+ restaurantIds: L.filter(
11020
+ (_0) => Y.find((Q) => Q.id === _0)
11020
11021
  ),
11021
- warehouseIds: v.filter(
11022
- (o0) => W.find((B) => B.id === o0)
11022
+ warehouseIds: L.filter(
11023
+ (_0) => G.find((Q) => Q.id === _0)
11023
11024
  ),
11024
- timezone: f0
11025
+ timezone: i0
11025
11026
  }),
11026
11027
  index: b0,
11027
11028
  drillDimension: null,
11028
- chartWidth: (a0 == null ? void 0 : a0.width) ?? K.config.chartWidth,
11029
- chartHeight: (a0 == null ? void 0 : a0.height) ?? K.config.chartHeight,
11029
+ chartWidth: (u0 == null ? void 0 : u0.width) ?? K.config.chartWidth,
11030
+ chartHeight: (u0 == null ? void 0 : u0.height) ?? K.config.chartHeight,
11030
11031
  ...xu(K),
11031
11032
  ...eu(K)
11032
11033
  };
11033
11034
  }),
11034
- reportId: n0,
11035
+ reportId: t0,
11035
11036
  type: T,
11036
11037
  orientationTypes: C,
11037
- isCombinedLocationLayout: w
11038
+ isCombinedLocationLayout: v
11038
11039
  };
11039
11040
  await N0.fetch({
11040
11041
  fetchType: Z.Post,
11041
11042
  url: `/${H.value}/reports/email?lang=${k0()}`,
11042
- data: p0,
11043
+ data: o0,
11043
11044
  requestConfig: { timeout: 1e3 * 60 * 3 }
11044
11045
  });
11045
11046
  }, nx = async (y) => {
11046
- const { businessId: T } = X(c0());
11047
+ const { businessId: T } = X(e0());
11047
11048
  await N0.fetch({
11048
11049
  fetchType: Z.Post,
11049
11050
  url: `/${T.value}/reports/resend-email?lang=${k0()}`,
@@ -11051,25 +11052,25 @@ const fx = async ({
11051
11052
  requestConfig: { timeout: 1e3 * 60 * 3 }
11052
11053
  });
11053
11054
  }, bx = async () => {
11054
- const { businessId: y } = X(c0());
11055
- return await e0.fetch({
11055
+ const { businessId: y } = X(e0());
11056
+ return await x0.fetch({
11056
11057
  fetchType: Z.Get,
11057
11058
  url: `/${y.value}/reports/email-recipients`
11058
11059
  });
11059
11060
  }, sx = async (y) => {
11060
- const { businessId: T } = X(c0());
11061
- await e0.fetch({
11061
+ const { businessId: T } = X(e0());
11062
+ await x0.fetch({
11062
11063
  fetchType: Z.Post,
11063
11064
  url: `/${T.value}/reports/email-recipient/delete`,
11064
11065
  data: { email: y }
11065
11066
  });
11066
11067
  };
11067
- function X0(y = [], T = []) {
11068
- const E = (C) => `${C.schemaName}:${C.name}:${C.operator}`, M = /* @__PURE__ */ new Map(), v = [];
11068
+ function W0(y = [], T = []) {
11069
+ const E = (C) => `${C.schemaName}:${C.name}:${C.operator}`, M = /* @__PURE__ */ new Map(), L = [];
11069
11070
  for (const C of y) {
11070
11071
  if (!C || !Array.isArray(C.values) || C.values.length === 0) continue;
11071
11072
  if (C.option === P0.DateTime || C.operator === J0.Between) {
11072
- v.push({ ...C });
11073
+ L.push({ ...C });
11073
11074
  continue;
11074
11075
  }
11075
11076
  const H = E(C);
@@ -11078,36 +11079,36 @@ function X0(y = [], T = []) {
11078
11079
  for (const C of T) {
11079
11080
  if (!C || !Array.isArray(C.values) || C.values.length === 0) continue;
11080
11081
  if (C.option === P0.DateTime || C.operator === J0.Between) {
11081
- v.push({ ...C });
11082
+ L.push({ ...C });
11082
11083
  continue;
11083
11084
  }
11084
11085
  const H = E(C);
11085
11086
  if (M.has(H)) {
11086
- const k = M.get(H), q = Array.from(
11087
+ const k = M.get(H), U = Array.from(
11087
11088
  /* @__PURE__ */ new Set([...k.values ?? [], ...C.values ?? []])
11088
11089
  );
11089
- k.values = q, M.set(H, k);
11090
+ k.values = U, M.set(H, k);
11090
11091
  } else
11091
11092
  M.set(H, { ...C });
11092
11093
  }
11093
- return [...Array.from(M.values()), ...v];
11094
+ return [...Array.from(M.values()), ...L];
11094
11095
  }
11095
11096
  function Xu(y, T, E) {
11096
- const M = [], v = /* @__PURE__ */ new Map();
11097
+ const M = [], L = /* @__PURE__ */ new Map();
11097
11098
  return y.forEach((C) => {
11098
- C && (T.includes(C.schemaName) && M.push(C), E.forEach((w, H) => {
11099
+ C && (T.includes(C.schemaName) && M.push(C), E.forEach((v, H) => {
11099
11100
  var k;
11100
- w.includes(C.schemaName) && (v.has(H) || v.set(H, []), (k = v.get(H)) == null || k.push(C));
11101
+ v.includes(C.schemaName) && (L.has(H) || L.set(H, []), (k = L.get(H)) == null || k.push(C));
11101
11102
  }));
11102
- }), { mainFilters: M, joinFilters: v };
11103
+ }), { mainFilters: M, joinFilters: L };
11103
11104
  }
11104
- function U0(y, T, E) {
11105
- var k, q;
11106
- const M = JSON.parse(JSON.stringify(y)), v = T.filter((U) => {
11107
- var Q;
11108
- return (Q = U.tileIds) == null ? void 0 : Q.some((V) => V === E);
11109
- }), C = ((k = M.config.joinDatasources) == null ? void 0 : k.map((U) => U.schemaNames ?? [])) ?? [], { mainFilters: w, joinFilters: H } = Xu(
11110
- v,
11105
+ function B0(y, T, E) {
11106
+ var k, U;
11107
+ const M = JSON.parse(JSON.stringify(y)), L = T.filter((q) => {
11108
+ var B;
11109
+ return (B = q.tileIds) == null ? void 0 : B.some((Y) => Y === E);
11110
+ }), C = ((k = M.config.joinDatasources) == null ? void 0 : k.map((q) => q.schemaNames ?? [])) ?? [], { mainFilters: v, joinFilters: H } = Xu(
11111
+ L,
11111
11112
  M.config.schemaNames,
11112
11113
  C
11113
11114
  );
@@ -11115,10 +11116,10 @@ function U0(y, T, E) {
11115
11116
  ...M,
11116
11117
  config: {
11117
11118
  ...M.config,
11118
- filters: X0(M.config.filters ?? [], w),
11119
- joinDatasources: ((q = M.config.joinDatasources) == null ? void 0 : q.map((U, Q) => ({
11120
- ...U,
11121
- filters: X0(U.filters ?? [], H.get(Q) ?? [])
11119
+ filters: W0(M.config.filters ?? [], v),
11120
+ joinDatasources: ((U = M.config.joinDatasources) == null ? void 0 : U.map((q, B) => ({
11121
+ ...q,
11122
+ filters: W0(q.filters ?? [], H.get(B) ?? [])
11122
11123
  }))) ?? []
11123
11124
  }
11124
11125
  };
@@ -11130,31 +11131,31 @@ function ju() {
11130
11131
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
11131
11132
  return M0(Wu);
11132
11133
  }
11133
- const Y = [];
11134
+ const j = [];
11134
11135
  for (let y = 0; y < 256; ++y)
11135
- Y.push((y + 256).toString(16).slice(1));
11136
+ j.push((y + 256).toString(16).slice(1));
11136
11137
  function Yu(y, T = 0) {
11137
- return Y[y[T + 0]] + Y[y[T + 1]] + Y[y[T + 2]] + Y[y[T + 3]] + "-" + Y[y[T + 4]] + Y[y[T + 5]] + "-" + Y[y[T + 6]] + Y[y[T + 7]] + "-" + Y[y[T + 8]] + Y[y[T + 9]] + "-" + Y[y[T + 10]] + Y[y[T + 11]] + Y[y[T + 12]] + Y[y[T + 13]] + Y[y[T + 14]] + Y[y[T + 15]];
11138
+ return j[y[T + 0]] + j[y[T + 1]] + j[y[T + 2]] + j[y[T + 3]] + "-" + j[y[T + 4]] + j[y[T + 5]] + "-" + j[y[T + 6]] + j[y[T + 7]] + "-" + j[y[T + 8]] + j[y[T + 9]] + "-" + j[y[T + 10]] + j[y[T + 11]] + j[y[T + 12]] + j[y[T + 13]] + j[y[T + 14]] + j[y[T + 15]];
11138
11139
  }
11139
- const Ku = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), W0 = {
11140
+ const Ku = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), j0 = {
11140
11141
  randomUUID: Ku
11141
11142
  };
11142
11143
  function lx(y, T, E) {
11143
- if (W0.randomUUID && !T && !y)
11144
- return W0.randomUUID();
11144
+ if (j0.randomUUID && !T && !y)
11145
+ return j0.randomUUID();
11145
11146
  y = y || {};
11146
11147
  const M = y.random || (y.rng || ju)();
11147
11148
  if (M[6] = M[6] & 15 | 64, M[8] = M[8] & 63 | 128, T) {
11148
11149
  E = E || 0;
11149
- for (let v = 0; v < 16; ++v)
11150
- T[E + v] = M[v];
11150
+ for (let L = 0; L < 16; ++L)
11151
+ T[E + L] = M[L];
11151
11152
  return T;
11152
11153
  }
11153
11154
  return Yu(M);
11154
11155
  }
11155
11156
  const ox = /* @__PURE__ */ bu({
11156
11157
  __name: "BaseDialog",
11157
- props: /* @__PURE__ */ Q0({
11158
+ props: /* @__PURE__ */ G0({
11158
11159
  title: {
11159
11160
  type: String,
11160
11161
  default: "Title"
@@ -11171,16 +11172,16 @@ const ox = /* @__PURE__ */ bu({
11171
11172
  modelValue: { type: Boolean, required: !0 },
11172
11173
  modelModifiers: {}
11173
11174
  }),
11174
- emits: /* @__PURE__ */ Q0(["confirm"], ["update:modelValue"]),
11175
+ emits: /* @__PURE__ */ G0(["confirm"], ["update:modelValue"]),
11175
11176
  setup(y, { emit: T }) {
11176
- const E = su(y, "modelValue"), M = y, v = T;
11177
+ const E = su(y, "modelValue"), M = y, L = T;
11177
11178
  return q0(E, () => {
11178
11179
  E.value ? document.body.style.overflow = "hidden" : document.body.style.overflow = "scroll";
11179
- }), (C, w) => {
11180
- const H = G0("FmButton"), k = G0("FmDialog");
11180
+ }), (C, v) => {
11181
+ const H = V0("FmButton"), k = V0("FmDialog");
11181
11182
  return ou(), lu(k, {
11182
11183
  modelValue: E.value,
11183
- "onUpdate:modelValue": w[2] || (w[2] = (q) => E.value = q),
11184
+ "onUpdate:modelValue": v[2] || (v[2] = (U) => E.value = U),
11184
11185
  overlay: ""
11185
11186
  }, {
11186
11187
  "dialog-header": v0(() => [
@@ -11190,16 +11191,16 @@ const ox = /* @__PURE__ */ bu({
11190
11191
  pu(C.$slots, "content")
11191
11192
  ]),
11192
11193
  "dialog-footer": v0(() => [
11193
- w[3] || (w[3] = _u("div", { class: "grow" }, null, -1)),
11194
- V0(H, {
11194
+ v[3] || (v[3] = _u("div", { class: "grow" }, null, -1)),
11195
+ z0(H, {
11195
11196
  label: M.secondaryButtonLabel,
11196
11197
  variant: "tertiary",
11197
- onClick: w[0] || (w[0] = (q) => E.value = !1)
11198
+ onClick: v[0] || (v[0] = (U) => E.value = !1)
11198
11199
  }, null, 8, ["label"]),
11199
- V0(H, {
11200
+ z0(H, {
11200
11201
  label: M.primaryButtonLabel,
11201
11202
  variant: "primary",
11202
- onClick: w[1] || (w[1] = (q) => v("confirm"))
11203
+ onClick: v[1] || (v[1] = (U) => L("confirm"))
11203
11204
  }, null, 8, ["label"])
11204
11205
  ]),
11205
11206
  _: 3
@@ -11215,17 +11216,17 @@ export {
11215
11216
  hu as S,
11216
11217
  Iu as W,
11217
11218
  ox as _,
11218
- Y0 as a,
11219
+ U0 as a,
11219
11220
  qu as b,
11220
11221
  P0 as c,
11221
11222
  uu as d,
11222
11223
  Fu as e,
11223
11224
  fx as f,
11224
11225
  ax as g,
11225
- Z0 as h,
11226
+ sx as h,
11226
11227
  bx as i,
11227
11228
  tx as j,
11228
- sx as k,
11229
+ Z0 as k,
11229
11230
  rx as q,
11230
11231
  nx as r,
11231
11232
  ix as s,