@feedmepos/mf-report 5.18.2-beta.6 → 5.18.2-beta.7

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.
@@ -1,6 +1,6 @@
1
1
  import { k as Q0, a as e0, F as Z, w as x0, b as R0, c as tu, v as ru, d as p0, e as fu, m as H0, r as N0, l as iu } from "./vue-i18n-Cjs2Btd-.js";
2
2
  import { storeToRefs as X, defineStore as D0 } from "pinia";
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";
3
+ import { ref as G, 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
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";
@@ -21,11 +21,11 @@ var O0 = {};
21
21
  } catch {
22
22
  }
23
23
  if (M) {
24
- var w = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : mu)("url");
24
+ var O = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : mu)("url");
25
25
  Object.defineProperty(E, "location", {
26
26
  value: {
27
27
  get href() {
28
- return w.pathToFileURL ? w.pathToFileURL(process.cwd()).href + "/" : "file://" + function() {
28
+ return O.pathToFileURL ? O.pathToFileURL(process.cwd()).href + "/" : "file://" + function() {
29
29
  var C = process.cwd();
30
30
  return process.platform != "win32" ? C : "/" + C.replace(/\\/g, "/");
31
31
  }() + "/";
@@ -36,38 +36,38 @@ var O0 = {};
36
36
  try {
37
37
  throw new Error();
38
38
  } catch (B) {
39
- var H = B.stack, k = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), U = null;
39
+ var J = B.stack, k = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), U = null;
40
40
  do {
41
- var q = k.exec(H);
41
+ var q = k.exec(J);
42
42
  q != null && (U = q);
43
43
  } while (q != null);
44
44
  return U[1];
45
45
  }
46
46
  }
47
- var v = null;
47
+ var P = null;
48
48
  Object.defineProperty(E, "document", {
49
49
  value: {
50
50
  get currentScript() {
51
- return v == null && (v = { src: C() }), v;
51
+ return P == null && (P = { src: C() }), P;
52
52
  }
53
53
  }
54
54
  });
55
- }(), E.dartDeferredLibraryLoader = function(C, v, H) {
55
+ }(), E.dartDeferredLibraryLoader = function(C, P, J) {
56
56
  try {
57
- load(C), v();
57
+ load(C), P();
58
58
  } catch (k) {
59
- H(k);
59
+ J(k);
60
60
  }
61
61
  };
62
62
  }
63
63
  (function() {
64
- function v(e, x) {
64
+ function P(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];
68
68
  }
69
69
  }
70
- function H(e, x) {
70
+ function J(e, x) {
71
71
  for (var c = Object.keys(e), d = 0; d < c.length; d++) {
72
72
  var a = c[d];
73
73
  x.hasOwnProperty(a) || (x[a] = e[a]);
@@ -102,7 +102,7 @@ var O0 = {};
102
102
  return;
103
103
  }
104
104
  var c = Object.create(x.prototype);
105
- v(e.prototype, c), e.prototype = c;
105
+ P(e.prototype, c), e.prototype = c;
106
106
  }
107
107
  }
108
108
  function B(e, x) {
@@ -112,8 +112,8 @@ var O0 = {};
112
112
  function Y(e, x) {
113
113
  k(x.prototype, e.prototype), e.prototype.constructor = e;
114
114
  }
115
- function G(e, x) {
116
- H(x.prototype, e.prototype), e.prototype.constructor = e;
115
+ function V(e, x) {
116
+ J(x.prototype, e.prototype), e.prototype.constructor = e;
117
117
  }
118
118
  function n0(e, x, c, d) {
119
119
  var a = e;
@@ -191,27 +191,27 @@ var O0 = {};
191
191
  e[x] = o;
192
192
  }
193
193
  function W(e) {
194
- var x = P.interceptorsByTag;
194
+ var x = w.interceptorsByTag;
195
195
  if (!x) {
196
- P.interceptorsByTag = e;
196
+ w.interceptorsByTag = e;
197
197
  return;
198
198
  }
199
- v(e, x);
199
+ P(e, x);
200
200
  }
201
201
  function s0(e) {
202
- var x = P.leafTags;
202
+ var x = w.leafTags;
203
203
  if (!x) {
204
- P.leafTags = e;
204
+ w.leafTags = e;
205
205
  return;
206
206
  }
207
- v(e, x);
207
+ P(e, x);
208
208
  }
209
209
  function f0(e) {
210
- var x = P.types, c = x.length;
210
+ var x = w.types, c = x.length;
211
211
  return x.push.apply(x, e), c;
212
212
  }
213
213
  function _0(e, x) {
214
- return v(x, e), e;
214
+ return P(x, e), e;
215
215
  }
216
216
  var Q = function() {
217
217
  var e = function(c, d, a, t, f) {
@@ -223,7 +223,7 @@ var O0 = {};
223
223
  return u0(f, i, c, d, a, [b], s, t);
224
224
  };
225
225
  };
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 };
226
+ return { inherit: q, inheritMany: B, mixin: Y, mixinHard: V, 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,15 +260,15 @@ 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), L = I.$index(e, S), v = I.$index(e, R), H = I.$index(e, F), N = I.$index(e, D), z = I.$index(e, A);
264
+ if (d.call$2(L, v) > 0 && (a = v, v = L, L = a), d.call$2(N, z) > 0 && (a = z, z = N, N = a), d.call$2(L, H) > 0 && (a = H, H = L, L = a), d.call$2(v, H) > 0 && (a = H, H = v, v = a), d.call$2(L, N) > 0 && (a = N, N = L, L = a), d.call$2(H, N) > 0 && (a = N, N = H, H = a), d.call$2(v, z) > 0 && (a = z, z = v, v = a), d.call$2(v, H) > 0 && (a = H, H = v, v = a), d.call$2(N, z) > 0 && (a = z, z = N, N = a), I.$indexSet(e, S, L), I.$indexSet(e, F, H), 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(v, N), 0)) {
265
265
  for (i = t; i <= f; ++i)
266
- if (b = I.$index(e, i), s = d.call$2(b, O), s !== 0)
266
+ if (b = I.$index(e, i), s = d.call$2(b, v), s !== 0)
267
267
  if (s < 0)
268
268
  i !== t && (I.$indexSet(e, i, I.$index(e, t)), I.$indexSet(e, t, b)), ++t;
269
269
  else
270
270
  for (; ; )
271
- if (s = d.call$2(I.$index(e, f), O), s > 0) {
271
+ if (s = d.call$2(I.$index(e, f), v), s > 0) {
272
272
  --f;
273
273
  continue;
274
274
  } else if (l = f - 1, s < 0) {
@@ -281,7 +281,7 @@ var O0 = {};
281
281
  _ = !0;
282
282
  } else {
283
283
  for (i = t; i <= f; ++i)
284
- if (b = I.$index(e, i), d.call$2(b, O) < 0)
284
+ if (b = I.$index(e, i), d.call$2(b, v) < 0)
285
285
  i !== t && (I.$indexSet(e, i, I.$index(e, t)), I.$indexSet(e, t, b)), ++t;
286
286
  else if (d.call$2(b, N) > 0)
287
287
  for (; ; )
@@ -290,19 +290,19 @@ var O0 = {};
290
290
  break;
291
291
  continue;
292
292
  } else {
293
- l = f - 1, d.call$2(I.$index(e, f), O) < 0 ? (I.$indexSet(e, i, I.$index(e, t)), o = t + 1, I.$indexSet(e, t, I.$index(e, f)), I.$indexSet(e, f, b), t = o) : (I.$indexSet(e, i, I.$index(e, f)), I.$indexSet(e, f, b)), f = l;
293
+ l = f - 1, d.call$2(I.$index(e, f), v) < 0 ? (I.$indexSet(e, i, I.$index(e, t)), o = t + 1, I.$indexSet(e, t, I.$index(e, f)), I.$indexSet(e, f, b), t = o) : (I.$indexSet(e, i, I.$index(e, f)), I.$indexSet(e, f, b)), f = l;
294
294
  break;
295
295
  }
296
296
  _ = !1;
297
297
  }
298
- if (m = t - 1, I.$indexSet(e, x, I.$index(e, m)), I.$indexSet(e, m, O), m = f + 1, I.$indexSet(e, c, I.$index(e, m)), I.$indexSet(e, m, N), u.Sort__doSort(e, x, t - 2, d), u.Sort__doSort(e, f + 2, c, d), !_)
298
+ if (m = t - 1, I.$indexSet(e, x, I.$index(e, m)), I.$indexSet(e, m, v), m = f + 1, I.$indexSet(e, c, I.$index(e, m)), I.$indexSet(e, m, N), u.Sort__doSort(e, x, t - 2, d), u.Sort__doSort(e, f + 2, c, d), !_)
299
299
  if (t < S && f > A) {
300
- for (; $.$eq$(d.call$2(I.$index(e, t), O), 0); )
300
+ for (; $.$eq$(d.call$2(I.$index(e, t), v), 0); )
301
301
  ++t;
302
302
  for (; $.$eq$(d.call$2(I.$index(e, f), N), 0); )
303
303
  --f;
304
304
  for (i = t; i <= f; ++i)
305
- if (b = I.$index(e, i), d.call$2(b, O) === 0)
305
+ if (b = I.$index(e, i), d.call$2(b, v) === 0)
306
306
  i !== t && (I.$indexSet(e, i, I.$index(e, t)), I.$indexSet(e, t, b)), ++t;
307
307
  else if (d.call$2(b, N) === 0)
308
308
  for (; ; )
@@ -311,7 +311,7 @@ var O0 = {};
311
311
  break;
312
312
  continue;
313
313
  } else {
314
- l = f - 1, d.call$2(I.$index(e, f), O) < 0 ? (I.$indexSet(e, i, I.$index(e, t)), o = t + 1, I.$indexSet(e, t, I.$index(e, f)), I.$indexSet(e, f, b), t = o) : (I.$indexSet(e, i, I.$index(e, f)), I.$indexSet(e, f, b)), f = l;
314
+ l = f - 1, d.call$2(I.$index(e, f), v) < 0 ? (I.$indexSet(e, i, I.$index(e, t)), o = t + 1, I.$indexSet(e, t, I.$index(e, f)), I.$indexSet(e, f, b), t = o) : (I.$indexSet(e, i, I.$index(e, f)), I.$indexSet(e, f, b)), f = l;
315
315
  break;
316
316
  }
317
317
  u.Sort__doSort(e, t, f, d);
@@ -375,7 +375,7 @@ var O0 = {};
375
375
  throw u.wrapException(u.UnsupportedError$("Cannot modify unmodifiable Map"));
376
376
  },
377
377
  unminifyOrTag(e) {
378
- var x = P.mangledGlobalNames[e];
378
+ var x = w.mangledGlobalNames[e];
379
379
  return x ?? e;
380
380
  },
381
381
  isJsIndexable(e, x) {
@@ -661,8 +661,8 @@ var O0 = {};
661
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
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() {
663
663
  this.$initialize();
664
- } : c = function(J, N) {
665
- this.$initialize(J, N);
664
+ } : c = function(H, N) {
665
+ this.$initialize(H, N);
666
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)
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;
@@ -790,7 +790,7 @@ var O0 = {};
790
790
  return u.Closure_fromTearOff(e);
791
791
  },
792
792
  BoundClosure_evalRecipe(e, x) {
793
- return u._Universe_evalInEnvironment(P.typeUniverse, u.instanceType(e._receiver), x);
793
+ return u._Universe_evalInEnvironment(w.typeUniverse, u.instanceType(e._receiver), x);
794
794
  },
795
795
  BoundClosure_receiverOf(e) {
796
796
  return e._receiver;
@@ -809,7 +809,7 @@ var O0 = {};
809
809
  throw u.wrapException(new u.CyclicInitializationError(e));
810
810
  },
811
811
  getIsolateAffinityTag(e) {
812
- return P.getIsolateTag(e);
812
+ return w.getIsolateTag(e);
813
813
  },
814
814
  defineProperty(e, x, c) {
815
815
  Object.defineProperty(e, x, { value: c, enumerable: !1, writable: !0, configurable: !0 });
@@ -817,50 +817,50 @@ var O0 = {};
817
817
  lookupAndCacheInterceptor(e) {
818
818
  var x, c, d, a, t, f = p.getTagFunction.call$1(e), i = p.dispatchRecordsForInstanceTags[f];
819
819
  if (i != null)
820
- return Object.defineProperty(e, P.dispatchPropertyName, { value: i, enumerable: !1, writable: !0, configurable: !0 }), i.i;
820
+ return Object.defineProperty(e, w.dispatchPropertyName, { value: i, enumerable: !1, writable: !0, configurable: !0 }), i.i;
821
821
  if (x = p.interceptorsForUncacheableTags[f], x != null)
822
822
  return x;
823
- if (c = P.interceptorsByTag[f], c == null && (d = p.alternateTagFunction.call$2(e, f), d != null)) {
823
+ if (c = w.interceptorsByTag[f], c == null && (d = p.alternateTagFunction.call$2(e, f), d != null)) {
824
824
  if (i = p.dispatchRecordsForInstanceTags[d], i != null)
825
- return Object.defineProperty(e, P.dispatchPropertyName, { value: i, enumerable: !1, writable: !0, configurable: !0 }), i.i;
825
+ return Object.defineProperty(e, w.dispatchPropertyName, { value: i, enumerable: !1, writable: !0, configurable: !0 }), i.i;
826
826
  if (x = p.interceptorsForUncacheableTags[d], x != null)
827
827
  return x;
828
- c = P.interceptorsByTag[d], f = d;
828
+ c = w.interceptorsByTag[d], f = d;
829
829
  }
830
830
  if (c == null)
831
831
  return null;
832
832
  if (x = c.prototype, a = f[0], a === "!")
833
- return i = u.makeLeafDispatchRecord(x), p.dispatchRecordsForInstanceTags[f] = i, Object.defineProperty(e, P.dispatchPropertyName, { value: i, enumerable: !1, writable: !0, configurable: !0 }), i.i;
833
+ return i = u.makeLeafDispatchRecord(x), p.dispatchRecordsForInstanceTags[f] = i, Object.defineProperty(e, w.dispatchPropertyName, { value: i, enumerable: !1, writable: !0, configurable: !0 }), i.i;
834
834
  if (a === "~")
835
835
  return p.interceptorsForUncacheableTags[f] = x, x;
836
836
  if (a === "-")
837
- return t = u.makeLeafDispatchRecord(x), Object.defineProperty(Object.getPrototypeOf(e), P.dispatchPropertyName, { value: t, enumerable: !1, writable: !0, configurable: !0 }), t.i;
837
+ return t = u.makeLeafDispatchRecord(x), Object.defineProperty(Object.getPrototypeOf(e), w.dispatchPropertyName, { value: t, enumerable: !1, writable: !0, configurable: !0 }), t.i;
838
838
  if (a === "+")
839
839
  return u.patchInteriorProto(e, x);
840
840
  if (a === "*")
841
841
  throw u.wrapException(u.UnimplementedError$(f));
842
- return P.leafTags[f] === !0 ? (t = u.makeLeafDispatchRecord(x), Object.defineProperty(Object.getPrototypeOf(e), P.dispatchPropertyName, { value: t, enumerable: !1, writable: !0, configurable: !0 }), t.i) : u.patchInteriorProto(e, x);
842
+ return w.leafTags[f] === !0 ? (t = u.makeLeafDispatchRecord(x), Object.defineProperty(Object.getPrototypeOf(e), w.dispatchPropertyName, { value: t, enumerable: !1, writable: !0, configurable: !0 }), t.i) : u.patchInteriorProto(e, x);
843
843
  },
844
844
  patchInteriorProto(e, x) {
845
845
  var c = Object.getPrototypeOf(e);
846
- return Object.defineProperty(c, P.dispatchPropertyName, { value: $.makeDispatchRecord(x, c, null, null), enumerable: !1, writable: !0, configurable: !0 }), x;
846
+ return Object.defineProperty(c, w.dispatchPropertyName, { value: $.makeDispatchRecord(x, c, null, null), enumerable: !1, writable: !0, configurable: !0 }), x;
847
847
  },
848
848
  makeLeafDispatchRecord(e) {
849
849
  return $.makeDispatchRecord(e, !1, null, !!e.$isJavaScriptIndexingBehavior);
850
850
  },
851
851
  makeDefaultDispatchRecord(e, x, c) {
852
852
  var d = x.prototype;
853
- return P.leafTags[e] === !0 ? u.makeLeafDispatchRecord(d) : $.makeDispatchRecord(d, c, null, null);
853
+ return w.leafTags[e] === !0 ? u.makeLeafDispatchRecord(d) : $.makeDispatchRecord(d, c, null, null);
854
854
  },
855
855
  initNativeDispatch() {
856
856
  p.initNativeDispatchFlag !== !0 && (p.initNativeDispatchFlag = !0, u.initNativeDispatchContinue());
857
857
  },
858
858
  initNativeDispatchContinue() {
859
859
  var e, x, c, d, a, t, f, i;
860
- if (p.dispatchRecordsForInstanceTags = /* @__PURE__ */ Object.create(null), p.interceptorsForUncacheableTags = /* @__PURE__ */ Object.create(null), u.initHooks(), e = P.interceptorsByTag, x = Object.getOwnPropertyNames(e), typeof window < "u")
860
+ if (p.dispatchRecordsForInstanceTags = /* @__PURE__ */ Object.create(null), p.interceptorsForUncacheableTags = /* @__PURE__ */ Object.create(null), u.initHooks(), e = w.interceptorsByTag, x = Object.getOwnPropertyNames(e), typeof window < "u")
861
861
  for (c = function() {
862
862
  }, d = 0; d < x.length; ++d)
863
- a = x[d], t = p.prototypeForTagFunction.call$1(a), t != null && (f = u.makeDefaultDispatchRecord(a, e[a], t), f != null && (Object.defineProperty(t, P.dispatchPropertyName, { value: f, enumerable: !1, writable: !0, configurable: !0 }), c.prototype = t));
863
+ a = x[d], t = p.prototypeForTagFunction.call$1(a), t != null && (f = u.makeDefaultDispatchRecord(a, e[a], t), f != null && (Object.defineProperty(t, w.dispatchPropertyName, { value: f, enumerable: !1, writable: !0, configurable: !0 }), c.prototype = t));
864
864
  for (d = 0; d < x.length; ++d)
865
865
  a = x[d], /^[A-Za-z_]/.test(a) && (i = e[a], e["!" + a] = i, e["~" + a] = i, e["-" + a] = i, e["+" + a] = i, e["*" + a] = i);
866
866
  },
@@ -1107,7 +1107,7 @@ var O0 = {};
1107
1107
  return e._canonicalRecipe;
1108
1108
  },
1109
1109
  findType(e) {
1110
- return u._Universe_eval(P.typeUniverse, e, !1);
1110
+ return u._Universe_eval(w.typeUniverse, e, !1);
1111
1111
  },
1112
1112
  _substitute(e, x, c, d) {
1113
1113
  var a, t, f, i, b, s, l, o, _, m, g, S, A, F, R, D, I = x._kind;
@@ -1155,7 +1155,7 @@ var O0 = {};
1155
1155
  return f === t && b === i && l === s ? x : (a = new u._FunctionParameters(), a._requiredPositional = f, a._optionalPositional = b, a._named = l, a);
1156
1156
  },
1157
1157
  _setArrayType(e, x) {
1158
- return e[P.arrayRti] = x, e;
1158
+ return e[w.arrayRti] = x, e;
1159
1159
  },
1160
1160
  closureFunctionType(e) {
1161
1161
  var x, c = e.$signature;
@@ -1170,7 +1170,7 @@ var O0 = {};
1170
1170
  return e instanceof u.Object ? (x = e.$ti, x ?? u._instanceTypeFromConstructor(e)) : Array.isArray(e) ? u._arrayInstanceType(e) : u._instanceTypeFromConstructor($.getInterceptor$(e));
1171
1171
  },
1172
1172
  _arrayInstanceType(e) {
1173
- var x = e[P.arrayRti], c = n.JSArray_dynamic;
1173
+ var x = e[w.arrayRti], c = n.JSArray_dynamic;
1174
1174
  return x == null || x.constructor !== c.constructor ? c : x;
1175
1175
  },
1176
1176
  _instanceType(e) {
@@ -1182,19 +1182,19 @@ var O0 = {};
1182
1182
  return c ?? u._instanceTypeFromConstructorMiss(e, x);
1183
1183
  },
1184
1184
  _instanceTypeFromConstructorMiss(e, x) {
1185
- var c = e instanceof u.Closure ? e.__proto__.__proto__.constructor : x, d = u._Universe_findErasedType(P.typeUniverse, c.name);
1185
+ var c = e instanceof u.Closure ? e.__proto__.__proto__.constructor : x, d = u._Universe_findErasedType(w.typeUniverse, c.name);
1186
1186
  return x.$ccache = d, d;
1187
1187
  },
1188
1188
  getTypeFromTypesTable(e) {
1189
- var x, c = P.types, d = c[e];
1190
- return typeof d == "string" ? (x = u._Universe_eval(P.typeUniverse, d, !1), c[e] = x, x) : d;
1189
+ var x, c = w.types, d = c[e];
1190
+ return typeof d == "string" ? (x = u._Universe_eval(w.typeUniverse, d, !1), c[e] = x, x) : d;
1191
1191
  },
1192
1192
  createRuntimeType(e) {
1193
1193
  var x, c, d, a = e._cachedRuntimeType;
1194
- return a ?? (x = e._canonicalRecipe, c = x.replace(/\*/g, ""), c === x ? e._cachedRuntimeType = new u._Type(e) : (d = u._Universe_eval(P.typeUniverse, c, !0), a = d._cachedRuntimeType, e._cachedRuntimeType = a ?? (d._cachedRuntimeType = new u._Type(d))));
1194
+ return a ?? (x = e._canonicalRecipe, c = x.replace(/\*/g, ""), c === x ? e._cachedRuntimeType = new u._Type(e) : (d = u._Universe_eval(w.typeUniverse, c, !0), a = d._cachedRuntimeType, e._cachedRuntimeType = a ?? (d._cachedRuntimeType = new u._Type(d))));
1195
1195
  },
1196
1196
  typeLiteral(e) {
1197
- return u.createRuntimeType(u._Universe_eval(P.typeUniverse, e, !1));
1197
+ return u.createRuntimeType(u._Universe_eval(w.typeUniverse, e, !1));
1198
1198
  },
1199
1199
  _installSpecializedIsTest(e) {
1200
1200
  var x, c, d, a, t = this;
@@ -1224,7 +1224,7 @@ var O0 = {};
1224
1224
  },
1225
1225
  _generalIsTestImplementation(e) {
1226
1226
  var x = this;
1227
- return e == null ? u._nullIs(x) : u._isSubtype(P.typeUniverse, u.instanceOrFunctionType(e, x), null, x, null);
1227
+ return e == null ? u._nullIs(x) : u._isSubtype(w.typeUniverse, u.instanceOrFunctionType(e, x), null, x, null);
1228
1228
  },
1229
1229
  _generalNullableIsTestImplementation(e) {
1230
1230
  return e == null ? !0 : this._primary._is(e);
@@ -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, L, v, H, 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,26 +1402,26 @@ 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)
1406
- O += J + u._rtiToString(S[f], x);
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), v = "", H = "", f = 0; f < A; ++f, H = N)
1406
+ v += H + u._rtiToString(S[f], x);
1407
1407
  if (R > 0) {
1408
- for (O += J + "[", J = "", f = 0; f < R; ++f, J = N)
1409
- O += J + u._rtiToString(F[f], x);
1410
- O += "]";
1408
+ for (v += H + "[", H = "", f = 0; f < R; ++f, H = N)
1409
+ v += H + u._rtiToString(F[f], x);
1410
+ v += "]";
1411
1411
  }
1412
1412
  if (I > 0) {
1413
- for (O += J + "{", J = "", f = 0; f < I; f += 3, J = N)
1414
- O += J, D[f + 1] && (O += "required "), O += u._rtiToString(D[f + 2], x) + " " + D[f];
1415
- O += "}";
1413
+ for (v += H + "{", H = "", f = 0; f < I; f += 3, H = N)
1414
+ v += H, D[f + 1] && (v += "required "), v += u._rtiToString(D[f + 2], x) + " " + D[f];
1415
+ v += "}";
1416
1416
  }
1417
- return a != null && (x.toString, x.length = a), s + "(" + O + ") => " + L;
1417
+ return a != null && (x.toString, x.length = a), s + "(" + v + ") => " + L;
1418
1418
  },
1419
1419
  _rtiToString(e, x) {
1420
1420
  var c, d, a, t, f, i, b = e._kind;
1421
1421
  return b === 5 ? "erased" : b === 2 ? "dynamic" : b === 3 ? "void" : b === 1 ? "Never" : b === 4 ? "any" : b === 6 ? (c = u._rtiToString(e._primary, x), c) : b === 7 ? (d = e._primary, c = u._rtiToString(d, x), a = d._kind, (a === 12 || a === 13 ? "(" + c + ")" : c) + "?") : b === 8 ? "FutureOr<" + u._rtiToString(e._primary, x) + ">" : b === 9 ? (t = u._unminifyOrTag(e._primary), f = e._rest, f.length > 0 ? t + ("<" + u._rtiArrayToString(f, x) + ">") : t) : b === 11 ? u._recordRtiToString(e, x) : b === 12 ? u._functionRtiToString(e, x, null) : b === 13 ? u._functionRtiToString(e._primary, x, e._rest) : b === 14 ? (i = e._primary, x[x.length - 1 - i]) : "?";
1422
1422
  },
1423
1423
  _unminifyOrTag(e) {
1424
- var x = P.mangledGlobalNames[e];
1424
+ var x = w.mangledGlobalNames[e];
1425
1425
  return x ?? e;
1426
1426
  },
1427
1427
  _Universe_findRule(e, x) {
@@ -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, L, v, H, 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,23 +1784,23 @@ 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)
1788
- for (N = D[J]; ; ) {
1789
- if (O >= I || (z = R[O], O += 3, N < z))
1787
+ for (R = t._named, D = f._named, I = R.length, L = D.length, v = 0, H = 0; H < L; H += 3)
1788
+ for (N = D[H]; ; ) {
1789
+ if (v >= I || (z = R[v], v += 3, N < z))
1790
1790
  return !1;
1791
- if (y0 = R[O - 2], z < N) {
1791
+ if (y0 = R[v - 2], z < N) {
1792
1792
  if (y0)
1793
1793
  return !1;
1794
1794
  continue;
1795
1795
  }
1796
- if (F = D[J + 1], y0 && !F || (F = R[O - 1], !u._isSubtype(e, D[J + 2], a, F, c)))
1796
+ if (F = D[H + 1], y0 && !F || (F = R[v - 1], !u._isSubtype(e, D[H + 2], a, F, c)))
1797
1797
  return !1;
1798
1798
  break;
1799
1799
  }
1800
- for (; O < I; ) {
1801
- if (R[O + 1])
1800
+ for (; v < I; ) {
1801
+ if (R[v + 1])
1802
1802
  return !1;
1803
- O += 3;
1803
+ v += 3;
1804
1804
  }
1805
1805
  return !0;
1806
1806
  },
@@ -1814,7 +1814,7 @@ var O0 = {};
1814
1814
  }
1815
1815
  if (f = t[m], f == null)
1816
1816
  return !1;
1817
- for (i = f.length, b = i > 0 ? new Array(i) : P.typeUniverse.sEA, s = 0; s < i; ++s)
1817
+ for (i = f.length, b = i > 0 ? new Array(i) : w.typeUniverse.sEA, s = 0; s < i; ++s)
1818
1818
  b[s] = u._Universe_evalInEnvironment(e, x, f[s]);
1819
1819
  return u._areArgumentsSubtypes(e, b, null, c, d._rest, a);
1820
1820
  }
@@ -1854,7 +1854,7 @@ var O0 = {};
1854
1854
  d = a[c], e[d] = x[d];
1855
1855
  },
1856
1856
  _Utils_newArrayOrEmpty(e) {
1857
- return e > 0 ? new Array(e) : P.typeUniverse.sEA;
1857
+ return e > 0 ? new Array(e) : w.typeUniverse.sEA;
1858
1858
  },
1859
1859
  Rti: function(x, c) {
1860
1860
  var d = this;
@@ -4440,8 +4440,8 @@ select
4440
4440
  return { i: e, p: x, e: c, x: d };
4441
4441
  },
4442
4442
  getNativeInterceptor(e) {
4443
- var x, c, d, a, t, f = e[P.dispatchPropertyName];
4444
- if (f == null && p.initNativeDispatchFlag == null && (u.initNativeDispatch(), f = e[P.dispatchPropertyName]), f != null) {
4443
+ var x, c, d, a, t, f = e[w.dispatchPropertyName];
4444
+ if (f == null && p.initNativeDispatchFlag == null && (u.initNativeDispatch(), f = e[w.dispatchPropertyName]), f != null) {
4445
4445
  if (x = f.p, x === !1)
4446
4446
  return f.i;
4447
4447
  if (x === !0)
@@ -4451,7 +4451,7 @@ select
4451
4451
  if (f.e === c)
4452
4452
  throw u.wrapException(u.UnimplementedError$("Return interceptor for " + u.S(x(e, f))));
4453
4453
  }
4454
- return d = e.constructor, d == null ? a = null : (t = p._JS_INTEROP_INTERCEPTOR_TAG, t == null && (t = p._JS_INTEROP_INTERCEPTOR_TAG = P.getIsolateTag("_$dart_js")), a = d[t]), a != null || (a = u.lookupAndCacheInterceptor(e), a != null) ? a : typeof e == "function" ? r.JavaScriptFunction_methods : (x = Object.getPrototypeOf(e), x == null || x === Object.prototype ? r.PlainJavaScriptObject_methods : (typeof d == "function" && (t = p._JS_INTEROP_INTERCEPTOR_TAG, t == null && (t = p._JS_INTEROP_INTERCEPTOR_TAG = P.getIsolateTag("_$dart_js")), Object.defineProperty(d, t, { value: r.UnknownJavaScriptObject_methods, enumerable: !1, writable: !0, configurable: !0 })), r.UnknownJavaScriptObject_methods));
4454
+ return d = e.constructor, d == null ? a = null : (t = p._JS_INTEROP_INTERCEPTOR_TAG, t == null && (t = p._JS_INTEROP_INTERCEPTOR_TAG = w.getIsolateTag("_$dart_js")), a = d[t]), a != null || (a = u.lookupAndCacheInterceptor(e), a != null) ? a : typeof e == "function" ? r.JavaScriptFunction_methods : (x = Object.getPrototypeOf(e), x == null || x === Object.prototype ? r.PlainJavaScriptObject_methods : (typeof d == "function" && (t = p._JS_INTEROP_INTERCEPTOR_TAG, t == null && (t = p._JS_INTEROP_INTERCEPTOR_TAG = w.getIsolateTag("_$dart_js")), Object.defineProperty(d, t, { value: r.UnknownJavaScriptObject_methods, enumerable: !1, writable: !0, configurable: !0 })), r.UnknownJavaScriptObject_methods));
4455
4455
  },
4456
4456
  JSArray_JSArray$fixed(e, x) {
4457
4457
  if (e < 0 || e > 4294967295)
@@ -4583,7 +4583,7 @@ select
4583
4583
  return e == null ? x == null : typeof e != "object" ? x != null && e === x : $.getInterceptor$(e).$eq(e, x);
4584
4584
  },
4585
4585
  $index$asx(e, x) {
4586
- return typeof x == "number" && (e.constructor == Array || typeof e == "string" || u.isJsIndexable(e, e[P.dispatchPropertyName])) && x >>> 0 === x && x < e.length ? e[x] : $.getInterceptor$asx(e).$index(e, x);
4586
+ return typeof x == "number" && (e.constructor == Array || typeof e == "string" || u.isJsIndexable(e, e[w.dispatchPropertyName])) && x >>> 0 === x && x < e.length ? e[x] : $.getInterceptor$asx(e).$index(e, x);
4587
4587
  },
4588
4588
  add$1$ax(e, x) {
4589
4589
  return $.getInterceptor$ax(e).add$1(e, x);
@@ -5671,10 +5671,10 @@ select
5671
5671
  $isNativeUint8List: 1
5672
5672
  }, u._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.prototype = {}, u._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.prototype = {}, u.Rti.prototype = {
5673
5673
  _eval$1(e) {
5674
- return u._Universe_evalInEnvironment(P.typeUniverse, this, e);
5674
+ return u._Universe_evalInEnvironment(w.typeUniverse, this, e);
5675
5675
  },
5676
5676
  _bind$1(e) {
5677
- return u._Universe_bind(P.typeUniverse, this, e);
5677
+ return u._Universe_bind(w.typeUniverse, this, e);
5678
5678
  }
5679
5679
  }, u._FunctionParameters.prototype = {}, u._Type.prototype = {
5680
5680
  toString$0(e) {
@@ -8338,10 +8338,10 @@ 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", L = "otherChargeWithTax", v = "otherChargeWithoutTax", H = "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", v, v, "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
- 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);
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", H, H, "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
  },
8346
8346
  $signature: 0
8347
8347
  }, u.billSchema_closure0.prototype = {
@@ -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", L = "layerGrossTotal", v = "layerTakeawayPrice", H = "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", 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", v, v, "@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", H, H, "@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 = {
@@ -9856,7 +9856,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
9856
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
- var P = {
9859
+ var w = {
9860
9860
  typeUniverse: { eC: /* @__PURE__ */ new Map(), tR: {}, eT: {}, tPV: {}, sEA: [] },
9861
9861
  mangledGlobalNames: { int: "int", double: "double", num: "num", String: "String", bool: "bool", Null: "Null", List: "List" },
9862
9862
  mangledNames: {},
@@ -9865,7 +9865,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
9865
9865
  leafTags: null,
9866
9866
  arrayRti: Symbol("$ti")
9867
9867
  };
9868
- u._Universe_addRules(P.typeUniverse, JSON.parse('{"PlainJavaScriptObject":"LegacyJavaScriptObject","UnknownJavaScriptObject":"LegacyJavaScriptObject","JavaScriptFunction":"LegacyJavaScriptObject","BufferModule":"LegacyJavaScriptObject","BufferConstants":"LegacyJavaScriptObject","Buffer":"LegacyJavaScriptObject","ConsoleModule":"LegacyJavaScriptObject","Console":"LegacyJavaScriptObject","EventEmitter":"LegacyJavaScriptObject","Promise":"LegacyJavaScriptObject","Date":"LegacyJavaScriptObject","JsError":"LegacyJavaScriptObject","Atomics":"LegacyJavaScriptObject","Modules":"LegacyJavaScriptObject","Module":"LegacyJavaScriptObject","Net":"LegacyJavaScriptObject","Socket":"LegacyJavaScriptObject","NetAddress":"LegacyJavaScriptObject","NetServer":"LegacyJavaScriptObject","NodeJsError":"LegacyJavaScriptObject","JsAssertionError":"LegacyJavaScriptObject","JsRangeError":"LegacyJavaScriptObject","JsReferenceError":"LegacyJavaScriptObject","JsSyntaxError":"LegacyJavaScriptObject","JsTypeError":"LegacyJavaScriptObject","JsSystemError":"LegacyJavaScriptObject","Process":"LegacyJavaScriptObject","CPUUsage":"LegacyJavaScriptObject","Release":"LegacyJavaScriptObject","StreamModule":"LegacyJavaScriptObject","Readable":"LegacyJavaScriptObject","Writable":"LegacyJavaScriptObject","Duplex":"LegacyJavaScriptObject","Transform":"LegacyJavaScriptObject","WritableOptions":"LegacyJavaScriptObject","ReadableOptions":"LegacyJavaScriptObject","Immediate":"LegacyJavaScriptObject","Timeout":"LegacyJavaScriptObject","TTY":"LegacyJavaScriptObject","TTYReadStream":"LegacyJavaScriptObject","TTYWriteStream":"LegacyJavaScriptObject","Util":"LegacyJavaScriptObject","Exports":"LegacyJavaScriptObject","_Exports":"LegacyJavaScriptObject","JSBool":{"bool":[]},"JSArray":{"List":["1"],"EfficientLengthIterable":["1"],"JSIndexable":["1"]},"JSUnmodifiableArray":{"JSArray":["1"],"List":["1"],"EfficientLengthIterable":["1"],"JSIndexable":["1"]},"JSNumber":{"double":[]},"JSInt":{"double":[],"int":[]},"JSNumNotInt":{"double":[]},"JSString":{"String":[],"JSIndexable":["@"]},"LateError":{"Error":[]},"CodeUnits":{"ListMixin":["int"],"List":["int"],"EfficientLengthIterable":["int"],"ListMixin.E":"int"},"EfficientLengthIterable":{"Iterable":["1"]},"ListIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"SubListIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1","ListIterable.E":"1"},"MappedIterable":{"Iterable":["2"],"Iterable.E":"2"},"EfficientLengthMappedIterable":{"MappedIterable":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2"},"MappedListIterable":{"ListIterable":["2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2","ListIterable.E":"2"},"WhereIterable":{"Iterable":["1"],"Iterable.E":"1"},"EmptyIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"UnmodifiableListBase":{"ListMixin":["1"],"List":["1"],"EfficientLengthIterable":["1"]},"ReversedListIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1","ListIterable.E":"1"},"Symbol":{"Symbol0":[]},"ConstantMapView":{"Map":["1","2"]},"ConstantMap":{"Map":["1","2"]},"ConstantStringMap":{"ConstantMap":["1","2"],"Map":["1","2"]},"_ConstantMapKeyIterable":{"Iterable":["1"],"Iterable.E":"1"},"NullError":{"Error":[]},"JsNoSuchMethodError":{"Error":[]},"UnknownJsTypeError":{"Error":[]},"RuntimeError":{"Error":[]},"JsLinkedHashMap":{"MapMixin":["1","2"],"Map":["1","2"],"MapMixin.V":"2","MapMixin.K":"1"},"LinkedHashMapKeyIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"JSSyntaxRegExp":{"RegExp":[]},"_MatchImplementation":{"RegExpMatch":[],"Match":[]},"_AllMatchesIterable":{"Iterable":["RegExpMatch"],"Iterable.E":"RegExpMatch"},"StringMatch":{"Match":[]},"_StringAllMatchesIterable":{"Iterable":["Match"],"Iterable.E":"Match"},"NativeTypedArray":{"JavaScriptIndexingBehavior":["1"],"JSIndexable":["1"]},"NativeTypedArrayOfInt":{"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"JSIndexable":["int"]},"NativeUint16List":{"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"JSIndexable":["int"],"ListMixin.E":"int"},"NativeUint32List":{"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"JSIndexable":["int"],"ListMixin.E":"int"},"NativeUint8List":{"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"JSIndexable":["int"],"ListMixin.E":"int"},"_Error":{"Error":[]},"_TypeError":{"Error":[]},"_SyncStarIterable":{"Iterable":["1"],"Iterable.E":"1"},"_LinkedIdentityHashMap":{"JsLinkedHashMap":["1","2"],"MapMixin":["1","2"],"Map":["1","2"],"MapMixin.V":"2","MapMixin.K":"1"},"_LinkedCustomHashMap":{"JsLinkedHashMap":["1","2"],"MapMixin":["1","2"],"Map":["1","2"],"MapMixin.V":"2","MapMixin.K":"1"},"_LinkedHashSet":{"SetMixin":["1"],"EfficientLengthIterable":["1"]},"IterableBase":{"Iterable":["1"]},"ListBase":{"ListMixin":["1"],"List":["1"],"EfficientLengthIterable":["1"]},"MapBase":{"MapMixin":["1","2"],"Map":["1","2"]},"MapMixin":{"Map":["1","2"]},"MapView":{"Map":["1","2"]},"UnmodifiableMapView":{"Map":["1","2"]},"_SetBase":{"SetMixin":["1"],"EfficientLengthIterable":["1"]},"_JsonMap":{"MapMixin":["String","@"],"Map":["String","@"],"MapMixin.V":"@","MapMixin.K":"String"},"_JsonMapKeyIterable":{"ListIterable":["String"],"EfficientLengthIterable":["String"],"Iterable":["String"],"Iterable.E":"String","ListIterable.E":"String"},"JsonUnsupportedObjectError":{"Error":[]},"JsonCyclicError":{"Error":[]},"List":{"EfficientLengthIterable":["1"]},"RegExpMatch":{"Match":[]},"AssertionError":{"Error":[]},"TypeError":{"Error":[]},"NullThrownError":{"Error":[]},"ArgumentError":{"Error":[]},"RangeError":{"Error":[]},"IndexError":{"Error":[]},"NoSuchMethodError":{"Error":[]},"UnsupportedError":{"Error":[]},"UnimplementedError":{"Error":[]},"StateError":{"Error":[]},"ConcurrentModificationError":{"Error":[]},"OutOfMemoryError":{"Error":[]},"StackOverflowError":{"Error":[]},"CyclicInitializationError":{"Error":[]},"_GeneratorIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1","ListIterable.E":"1"},"_DateFormatLiteralField":{"_DateFormatField":[]},"_DateFormatQuotedField":{"_DateFormatField":[]},"_DateFormatPatternField":{"_DateFormatField":[]},"ArLyLocale":{"Locale":[]},"ArSaMaDzKwTnLocale":{"Locale":[]},"AzLocale":{"Locale":[]},"BnLocale":{"Locale":[]},"DeLocale":{"Locale":[]},"EnLocale":{"Locale":[]},"EsLocale":{"Locale":[]},"FaLocale":{"Locale":[]},"FrLocale":{"Locale":[]},"HiLocale":{"Locale":[]},"IdLocale":{"Locale":[]},"ItLocale":{"Locale":[]},"JaLocale":{"Locale":[]},"KoLocale":{"Locale":[]},"NbLocale":{"Locale":[]},"NlLocale":{"Locale":[]},"PlLocale":{"Locale":[]},"PtLocale":{"Locale":[]},"RuLocale":{"Locale":[]},"SvLocale":{"Locale":[]},"ThLocale":{"Locale":[]},"TrLocale":{"Locale":[]},"UkLocale":{"Locale":[]},"ZhCnLocale":{"Locale":[]},"ZhLocale":{"Locale":[]},"_NumericField":{"Field":[]},"_TimestampField":{"Field":[]},"_BoolField":{"Field":[]},"_StringField":{"Field":[]},"TZDateTime":{"DateTime":[]},"TypedDataBuffer":{"ListMixin":["1"],"List":["1"],"EfficientLengthIterable":["1"]},"_IntBuffer":{"TypedDataBuffer":["int"],"ListMixin":["int"],"List":["int"],"EfficientLengthIterable":["int"]},"Uint8Buffer":{"TypedDataBuffer":["int"],"ListMixin":["int"],"List":["int"],"EfficientLengthIterable":["int"],"ListMixin.E":"int"}}')), u._Universe_addErasedTypes(P.typeUniverse, JSON.parse('{"ArrayIterator":1,"EfficientLengthIterable":1,"ListIterator":1,"MappedIterator":2,"WhereIterator":1,"EmptyIterator":1,"FixedLengthListMixin":1,"UnmodifiableListMixin":1,"UnmodifiableListBase":1,"LinkedHashMapKeyIterator":1,"NativeTypedArray":1,"_SyncStarIterator":1,"StreamTransformerBase":2,"_LinkedHashSetIterator":1,"IterableBase":1,"ListBase":1,"MapBase":2,"_UnmodifiableMapMixin":2,"MapView":2,"UnmodifiableMapView":2,"_SetBase":1,"_ListBase_Object_ListMixin":1,"_UnmodifiableMapView_MapView__UnmodifiableMapMixin":2,"__SetBase_Object_SetMixin":1,"Codec":2,"Converter":2,"Iterator":1,"Sink":1,"UninitializedLocaleData":1,"ReportWidgetModel":1}'));
9868
+ u._Universe_addRules(w.typeUniverse, JSON.parse('{"PlainJavaScriptObject":"LegacyJavaScriptObject","UnknownJavaScriptObject":"LegacyJavaScriptObject","JavaScriptFunction":"LegacyJavaScriptObject","BufferModule":"LegacyJavaScriptObject","BufferConstants":"LegacyJavaScriptObject","Buffer":"LegacyJavaScriptObject","ConsoleModule":"LegacyJavaScriptObject","Console":"LegacyJavaScriptObject","EventEmitter":"LegacyJavaScriptObject","Promise":"LegacyJavaScriptObject","Date":"LegacyJavaScriptObject","JsError":"LegacyJavaScriptObject","Atomics":"LegacyJavaScriptObject","Modules":"LegacyJavaScriptObject","Module":"LegacyJavaScriptObject","Net":"LegacyJavaScriptObject","Socket":"LegacyJavaScriptObject","NetAddress":"LegacyJavaScriptObject","NetServer":"LegacyJavaScriptObject","NodeJsError":"LegacyJavaScriptObject","JsAssertionError":"LegacyJavaScriptObject","JsRangeError":"LegacyJavaScriptObject","JsReferenceError":"LegacyJavaScriptObject","JsSyntaxError":"LegacyJavaScriptObject","JsTypeError":"LegacyJavaScriptObject","JsSystemError":"LegacyJavaScriptObject","Process":"LegacyJavaScriptObject","CPUUsage":"LegacyJavaScriptObject","Release":"LegacyJavaScriptObject","StreamModule":"LegacyJavaScriptObject","Readable":"LegacyJavaScriptObject","Writable":"LegacyJavaScriptObject","Duplex":"LegacyJavaScriptObject","Transform":"LegacyJavaScriptObject","WritableOptions":"LegacyJavaScriptObject","ReadableOptions":"LegacyJavaScriptObject","Immediate":"LegacyJavaScriptObject","Timeout":"LegacyJavaScriptObject","TTY":"LegacyJavaScriptObject","TTYReadStream":"LegacyJavaScriptObject","TTYWriteStream":"LegacyJavaScriptObject","Util":"LegacyJavaScriptObject","Exports":"LegacyJavaScriptObject","_Exports":"LegacyJavaScriptObject","JSBool":{"bool":[]},"JSArray":{"List":["1"],"EfficientLengthIterable":["1"],"JSIndexable":["1"]},"JSUnmodifiableArray":{"JSArray":["1"],"List":["1"],"EfficientLengthIterable":["1"],"JSIndexable":["1"]},"JSNumber":{"double":[]},"JSInt":{"double":[],"int":[]},"JSNumNotInt":{"double":[]},"JSString":{"String":[],"JSIndexable":["@"]},"LateError":{"Error":[]},"CodeUnits":{"ListMixin":["int"],"List":["int"],"EfficientLengthIterable":["int"],"ListMixin.E":"int"},"EfficientLengthIterable":{"Iterable":["1"]},"ListIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"SubListIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1","ListIterable.E":"1"},"MappedIterable":{"Iterable":["2"],"Iterable.E":"2"},"EfficientLengthMappedIterable":{"MappedIterable":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2"},"MappedListIterable":{"ListIterable":["2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2","ListIterable.E":"2"},"WhereIterable":{"Iterable":["1"],"Iterable.E":"1"},"EmptyIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"UnmodifiableListBase":{"ListMixin":["1"],"List":["1"],"EfficientLengthIterable":["1"]},"ReversedListIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1","ListIterable.E":"1"},"Symbol":{"Symbol0":[]},"ConstantMapView":{"Map":["1","2"]},"ConstantMap":{"Map":["1","2"]},"ConstantStringMap":{"ConstantMap":["1","2"],"Map":["1","2"]},"_ConstantMapKeyIterable":{"Iterable":["1"],"Iterable.E":"1"},"NullError":{"Error":[]},"JsNoSuchMethodError":{"Error":[]},"UnknownJsTypeError":{"Error":[]},"RuntimeError":{"Error":[]},"JsLinkedHashMap":{"MapMixin":["1","2"],"Map":["1","2"],"MapMixin.V":"2","MapMixin.K":"1"},"LinkedHashMapKeyIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"JSSyntaxRegExp":{"RegExp":[]},"_MatchImplementation":{"RegExpMatch":[],"Match":[]},"_AllMatchesIterable":{"Iterable":["RegExpMatch"],"Iterable.E":"RegExpMatch"},"StringMatch":{"Match":[]},"_StringAllMatchesIterable":{"Iterable":["Match"],"Iterable.E":"Match"},"NativeTypedArray":{"JavaScriptIndexingBehavior":["1"],"JSIndexable":["1"]},"NativeTypedArrayOfInt":{"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"JSIndexable":["int"]},"NativeUint16List":{"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"JSIndexable":["int"],"ListMixin.E":"int"},"NativeUint32List":{"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"JSIndexable":["int"],"ListMixin.E":"int"},"NativeUint8List":{"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"JSIndexable":["int"],"ListMixin.E":"int"},"_Error":{"Error":[]},"_TypeError":{"Error":[]},"_SyncStarIterable":{"Iterable":["1"],"Iterable.E":"1"},"_LinkedIdentityHashMap":{"JsLinkedHashMap":["1","2"],"MapMixin":["1","2"],"Map":["1","2"],"MapMixin.V":"2","MapMixin.K":"1"},"_LinkedCustomHashMap":{"JsLinkedHashMap":["1","2"],"MapMixin":["1","2"],"Map":["1","2"],"MapMixin.V":"2","MapMixin.K":"1"},"_LinkedHashSet":{"SetMixin":["1"],"EfficientLengthIterable":["1"]},"IterableBase":{"Iterable":["1"]},"ListBase":{"ListMixin":["1"],"List":["1"],"EfficientLengthIterable":["1"]},"MapBase":{"MapMixin":["1","2"],"Map":["1","2"]},"MapMixin":{"Map":["1","2"]},"MapView":{"Map":["1","2"]},"UnmodifiableMapView":{"Map":["1","2"]},"_SetBase":{"SetMixin":["1"],"EfficientLengthIterable":["1"]},"_JsonMap":{"MapMixin":["String","@"],"Map":["String","@"],"MapMixin.V":"@","MapMixin.K":"String"},"_JsonMapKeyIterable":{"ListIterable":["String"],"EfficientLengthIterable":["String"],"Iterable":["String"],"Iterable.E":"String","ListIterable.E":"String"},"JsonUnsupportedObjectError":{"Error":[]},"JsonCyclicError":{"Error":[]},"List":{"EfficientLengthIterable":["1"]},"RegExpMatch":{"Match":[]},"AssertionError":{"Error":[]},"TypeError":{"Error":[]},"NullThrownError":{"Error":[]},"ArgumentError":{"Error":[]},"RangeError":{"Error":[]},"IndexError":{"Error":[]},"NoSuchMethodError":{"Error":[]},"UnsupportedError":{"Error":[]},"UnimplementedError":{"Error":[]},"StateError":{"Error":[]},"ConcurrentModificationError":{"Error":[]},"OutOfMemoryError":{"Error":[]},"StackOverflowError":{"Error":[]},"CyclicInitializationError":{"Error":[]},"_GeneratorIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1","ListIterable.E":"1"},"_DateFormatLiteralField":{"_DateFormatField":[]},"_DateFormatQuotedField":{"_DateFormatField":[]},"_DateFormatPatternField":{"_DateFormatField":[]},"ArLyLocale":{"Locale":[]},"ArSaMaDzKwTnLocale":{"Locale":[]},"AzLocale":{"Locale":[]},"BnLocale":{"Locale":[]},"DeLocale":{"Locale":[]},"EnLocale":{"Locale":[]},"EsLocale":{"Locale":[]},"FaLocale":{"Locale":[]},"FrLocale":{"Locale":[]},"HiLocale":{"Locale":[]},"IdLocale":{"Locale":[]},"ItLocale":{"Locale":[]},"JaLocale":{"Locale":[]},"KoLocale":{"Locale":[]},"NbLocale":{"Locale":[]},"NlLocale":{"Locale":[]},"PlLocale":{"Locale":[]},"PtLocale":{"Locale":[]},"RuLocale":{"Locale":[]},"SvLocale":{"Locale":[]},"ThLocale":{"Locale":[]},"TrLocale":{"Locale":[]},"UkLocale":{"Locale":[]},"ZhCnLocale":{"Locale":[]},"ZhLocale":{"Locale":[]},"_NumericField":{"Field":[]},"_TimestampField":{"Field":[]},"_BoolField":{"Field":[]},"_StringField":{"Field":[]},"TZDateTime":{"DateTime":[]},"TypedDataBuffer":{"ListMixin":["1"],"List":["1"],"EfficientLengthIterable":["1"]},"_IntBuffer":{"TypedDataBuffer":["int"],"ListMixin":["int"],"List":["int"],"EfficientLengthIterable":["int"]},"Uint8Buffer":{"TypedDataBuffer":["int"],"ListMixin":["int"],"List":["int"],"EfficientLengthIterable":["int"],"ListMixin.E":"int"}}')), u._Universe_addErasedTypes(w.typeUniverse, JSON.parse('{"ArrayIterator":1,"EfficientLengthIterable":1,"ListIterator":1,"MappedIterator":2,"WhereIterator":1,"EmptyIterator":1,"FixedLengthListMixin":1,"UnmodifiableListMixin":1,"UnmodifiableListBase":1,"LinkedHashMapKeyIterator":1,"NativeTypedArray":1,"_SyncStarIterator":1,"StreamTransformerBase":2,"_LinkedHashSetIterator":1,"IterableBase":1,"ListBase":1,"MapBase":2,"_UnmodifiableMapMixin":2,"MapView":2,"UnmodifiableMapView":2,"_SetBase":1,"_ListBase_Object_ListMixin":1,"_UnmodifiableMapView_MapView__UnmodifiableMapMixin":2,"__SetBase_Object_SetMixin":1,"Codec":2,"Converter":2,"Iterator":1,"Sink":1,"UninitializedLocaleData":1,"ReportWidgetModel":1}'));
9869
9869
  var h = {
9870
9870
  x28_grosT: "(@grossTotal-IFNULL(@takeawayPrice,0))*IF(@isRefund, -1, 1)",
9871
9871
  x28_gros_: "(@gross_total-COALESCE(@takeaway_price,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END",
@@ -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), L = u.ZhCnLocale$(r.StartOfWeek_1), v = u.ZhLocale$(r.StartOfWeek_1), H = 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", v, "zh_tw", H, "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);
@@ -10380,17 +10380,17 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
10380
10380
  var b = {};
10381
10381
  return b[i] = 1, Object.keys(Q.convertToFastObject(b))[0];
10382
10382
  };
10383
- P.getIsolateTag = function(i) {
10384
- return x("___dart_" + i + P.isolateTag);
10383
+ w.getIsolateTag = function(i) {
10384
+ return x("___dart_" + i + w.isolateTag);
10385
10385
  };
10386
10386
  for (var c = "___dart_isolate_tags_", d = Object[c] || (Object[c] = /* @__PURE__ */ Object.create(null)), a = "_ZxYxX", t = 0; ; t++) {
10387
10387
  var f = x(a + "_" + t + "_");
10388
10388
  if (!(f in d)) {
10389
- d[f] = 1, P.isolateTag = f;
10389
+ d[f] = 1, w.isolateTag = f;
10390
10390
  break;
10391
10391
  }
10392
10392
  }
10393
- P.dispatchPropertyName = P.getIsolateTag("dispatch_record");
10393
+ w.dispatchPropertyName = w.getIsolateTag("dispatch_record");
10394
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);
@@ -10422,7 +10422,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
10422
10422
  for (var d = 0; d < x.length; ++d)
10423
10423
  x[d].addEventListener("load", c, !1);
10424
10424
  }(function(e) {
10425
- P.currentScript = e;
10425
+ w.currentScript = e;
10426
10426
  var x = u.main;
10427
10427
  typeof dartMainRunner == "function" ? dartMainRunner(x, []) : x([]);
10428
10428
  });
@@ -10555,7 +10555,7 @@ const g0 = {
10555
10555
  };
10556
10556
  return x0.fetch(y);
10557
10557
  }, Nu = "mf-reportschema-store", qu = D0(Nu, () => {
10558
- const y = V([]), T = Y0();
10558
+ const y = G([]), T = Y0();
10559
10559
  async function E() {
10560
10560
  try {
10561
10561
  y.value = await Hu();
@@ -10572,21 +10572,21 @@ const g0 = {
10572
10572
  getSchema: E
10573
10573
  };
10574
10574
  }), ku = "mf-reportreport-store", U0 = D0(ku, () => {
10575
- const { business: y, globalFilters: T } = X(R0()), { schemas: E } = X(qu()), { flags: M } = X(tu()), w = V([]), C = V([]), v = V(0), H = Y0(), k = m0(() => w.value.filter((e) => e.editable)), U = m0(() => w.value.filter((e) => !e.editable)), q = V(!1), B = V(""), Y = V(), G = V(), n0 = m0(() => {
10575
+ const { business: y, globalFilters: T } = X(R0()), { schemas: E } = X(qu()), { flags: M } = X(tu()), O = G([]), C = G([]), P = G(0), J = Y0(), k = m0(() => O.value.filter((e) => e.editable)), U = m0(() => O.value.filter((e) => !e.editable)), q = G(!1), B = G(""), Y = G(), V = G(), 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
10580
  }), a0 = m0(() => n0.value === null ? !0 : n0.value - k.value.length > 0);
10581
10581
  async function t0() {
10582
- return G.value = await vu(), G.value;
10582
+ return V.value = await vu(), V.value;
10583
10583
  }
10584
10584
  async function c0() {
10585
10585
  var e;
10586
10586
  try {
10587
- w.value = await Cu(), C.value = await Pu(), w.value.find((c) => c.id === B.value) || (B.value = ((e = w.value.find((c) => c.isDefault)) == null ? void 0 : e.id) || w.value[0].id);
10587
+ O.value = await Cu(), C.value = await Pu(), O.value.find((c) => c.id === B.value) || (B.value = ((e = O.value.find((c) => c.isDefault)) == null ? void 0 : e.id) || O.value[0].id);
10588
10588
  } catch (x) {
10589
- console.log(x), H.open({
10589
+ console.log(x), J.open({
10590
10590
  title: "Report Fetch Error",
10591
10591
  message: "Internal Server Error",
10592
10592
  type: "error"
@@ -10594,7 +10594,7 @@ const g0 = {
10594
10594
  }
10595
10595
  }
10596
10596
  const d0 = m0(
10597
- () => w.value.find((e) => e.id === B.value)
10597
+ () => O.value.find((e) => e.id === B.value)
10598
10598
  );
10599
10599
  function i0(e) {
10600
10600
  var c;
@@ -10616,7 +10616,7 @@ const g0 = {
10616
10616
  },
10617
10617
  { deep: !0 }
10618
10618
  );
10619
- const l0 = V(), o0 = V(0), K = V(), b0 = V(null), u0 = V(null), r0 = V(!1), W = V(!1), s0 = V(!1);
10619
+ const l0 = G(), o0 = G(0), K = G(), b0 = G(null), u0 = G(null), r0 = G(!1), W = G(!1), s0 = G(!1);
10620
10620
  async function f0(e) {
10621
10621
  const x = k.value.findIndex((d) => d.id === e.id);
10622
10622
  let c;
@@ -10634,7 +10634,7 @@ const g0 = {
10634
10634
  function $(e) {
10635
10635
  B.value = e;
10636
10636
  }
10637
- const r = V(null);
10637
+ const r = G(null);
10638
10638
  function $0() {
10639
10639
  var e;
10640
10640
  if ((e = y.value) != null && e._id) {
@@ -10653,7 +10653,7 @@ const g0 = {
10653
10653
  c[(x = y.value) == null ? void 0 : x._id] ? c[y.value._id].push(e.id) : c[y.value._id] = [e.id], g0.setJson("pinReport", c), $0();
10654
10654
  }
10655
10655
  }
10656
- function P(e) {
10656
+ function w(e) {
10657
10657
  if (y.value) {
10658
10658
  const x = g0.getJson("pinReport");
10659
10659
  x[y.value._id].length === 1 ? x[y.value._id] = [] : x[y.value._id] = x[y.value._id].filter(
@@ -10684,7 +10684,7 @@ const g0 = {
10684
10684
  isOpenFeedbackDialog: W,
10685
10685
  isOpenEmailDialog: s0,
10686
10686
  currentSelectWidgetType: Y,
10687
- reports: w,
10687
+ reports: O,
10688
10688
  categories: C,
10689
10689
  currentReport: d0,
10690
10690
  editingReport: l0,
@@ -10696,9 +10696,9 @@ const g0 = {
10696
10696
  editableReports: k,
10697
10697
  nonEditableReports: U,
10698
10698
  isOpenAddReportDialog: q,
10699
- overviewReport: G,
10699
+ overviewReport: V,
10700
10700
  pinReport: r,
10701
- scrollPositionY: v,
10701
+ scrollPositionY: P,
10702
10702
  customReportQuota: n0,
10703
10703
  canCreateCustomReport: a0,
10704
10704
  createOrUpdateReport: f0,
@@ -10710,13 +10710,13 @@ const g0 = {
10710
10710
  getOverviewReport: t0,
10711
10711
  refreshPinReport: $0,
10712
10712
  cachePinReport: p,
10713
- clearPinReport: P,
10713
+ clearPinReport: w,
10714
10714
  getReportConfig: n,
10715
10715
  submitFeedback: _0
10716
10716
  };
10717
10717
  }), Uu = "mf-reportnavigation", K0 = D0(Uu, () => {
10718
- const { disabled: y } = X(fu()), T = V("v5"), E = m0(() => {
10719
- const v = [
10718
+ const { disabled: y } = X(fu()), T = G("v5"), E = G(!1), M = m0(() => {
10719
+ const J = [
10720
10720
  {
10721
10721
  label: "overview",
10722
10722
  value: "overview",
@@ -10739,43 +10739,44 @@ const g0 = {
10739
10739
  route: "setting"
10740
10740
  }
10741
10741
  ];
10742
- return y.value || v.push({
10742
+ return y.value || J.push({
10743
10743
  label: "integration",
10744
10744
  value: "integration",
10745
10745
  route: "integrations"
10746
- }), v;
10747
- }), M = V(""), { currentRoute: w } = Su();
10748
- function C(v) {
10749
- switch (v.name) {
10746
+ }), J;
10747
+ }), O = G(""), { currentRoute: C } = Su();
10748
+ function P(J) {
10749
+ switch (J.name) {
10750
10750
  case "report":
10751
10751
  case "reports":
10752
- M.value = "report";
10752
+ O.value = "report";
10753
10753
  break;
10754
10754
  case "overview":
10755
- M.value = "overview";
10755
+ O.value = "overview";
10756
10756
  break;
10757
10757
  case "setting":
10758
- M.value = "setting";
10758
+ O.value = "setting";
10759
10759
  break;
10760
10760
  case "insights":
10761
- M.value = "insight";
10761
+ O.value = "insight";
10762
10762
  break;
10763
10763
  case "integration":
10764
10764
  case "integrations":
10765
- M.value = "integration";
10765
+ O.value = "integration";
10766
10766
  break;
10767
10767
  }
10768
10768
  }
10769
10769
  return q0(
10770
- w,
10771
- (v) => {
10772
- C(v);
10770
+ C,
10771
+ (J) => {
10772
+ P(J);
10773
10773
  },
10774
10774
  { immediate: !0 }
10775
10775
  ), {
10776
- selectedNavigationTab: M,
10777
- navigationTabs: E,
10778
- version: T
10776
+ selectedNavigationTab: O,
10777
+ navigationTabs: M,
10778
+ version: T,
10779
+ suppressReportRouteSync: E
10779
10780
  };
10780
10781
  });
10781
10782
  var Z0 = /* @__PURE__ */ ((y) => (y.generating = "GENERATING", y.completed = "COMPLETED", y.failed = "FAILED", y.canceled = "CANCELLED", y))(Z0 || {});
@@ -10788,8 +10789,8 @@ async function Qu(y) {
10788
10789
  return X0(w0.get(y));
10789
10790
  let T = y;
10790
10791
  if (location.hostname !== new URL(import.meta.url).hostname) {
10791
- const w = new URL(y.replace(/^\//, ""), import.meta.url).href, C = await fetch(w).then((H) => H.text()), v = new Blob([C], { type: "application/javascript" });
10792
- T = URL.createObjectURL(v);
10792
+ const O = new URL(y.replace(/^\//, ""), import.meta.url).href, C = await fetch(O).then((J) => J.text()), P = new Blob([C], { type: "application/javascript" });
10793
+ T = URL.createObjectURL(P);
10793
10794
  }
10794
10795
  const M = X0(T);
10795
10796
  return w0.set(y, T), M;
@@ -10797,22 +10798,22 @@ async function Qu(y) {
10797
10798
  async function Gu(y, T) {
10798
10799
  const E = await Qu(y);
10799
10800
  return E.postMessage(T), await new Promise((M) => {
10800
- E.onmessage = async (w) => {
10801
- const C = w.data;
10801
+ E.onmessage = async (O) => {
10802
+ const C = O.data;
10802
10803
  E.terminate(), M(C);
10803
10804
  };
10804
10805
  });
10805
10806
  }
10806
10807
  const Vu = "mf-reportwidget-size", uu = D0(Vu, () => {
10807
- const y = V([]);
10808
+ const y = G([]);
10808
10809
  function T(E, M) {
10809
- var w;
10810
+ var O;
10810
10811
  try {
10811
10812
  if (!E) return;
10812
10813
  let C;
10813
- const v = E.$el, H = (w = v == null ? void 0 : v.querySelector) == null ? void 0 : w.call(v, "canvas");
10814
- if (H) {
10815
- const k = H.getBoundingClientRect();
10814
+ const P = E.$el, J = (O = P == null ? void 0 : P.querySelector) == null ? void 0 : O.call(P, "canvas");
10815
+ if (J) {
10816
+ const k = J.getBoundingClientRect();
10816
10817
  C = { width: Math.round(k.width), height: Math.round(k.height) };
10817
10818
  }
10818
10819
  if (C && C.width > 0 && C.height > 0)
@@ -10830,15 +10831,15 @@ async function zu(y, T) {
10830
10831
  return await y[E]();
10831
10832
  } catch (M) {
10832
10833
  if (M.message === "Unauthorized" || E === y.length - 1) throw M;
10833
- await new Promise((w) => setTimeout(w, T));
10834
+ await new Promise((O) => setTimeout(O, T));
10834
10835
  }
10835
10836
  throw new Error("No callback");
10836
10837
  }
10837
10838
  const rx = async (y, T, E) => {
10838
10839
  var d0, i0, l0, o0;
10839
- const { businessId: M, country: w } = X(e0()), { currentReport: C } = U0(), {
10840
- selectedRestaurantIds: v,
10841
- selectedWarehouseIds: H,
10840
+ const { businessId: M, country: O } = X(e0()), { currentReport: C } = U0(), {
10841
+ selectedRestaurantIds: P,
10842
+ selectedWarehouseIds: J,
10842
10843
  selectedLocationIds: k,
10843
10844
  dateRange: U,
10844
10845
  compareDateRange: q,
@@ -10847,7 +10848,7 @@ const rx = async (y, T, E) => {
10847
10848
  } = R0();
10848
10849
  if (k.length === 0)
10849
10850
  return null;
10850
- const G = H0(w.value), n0 = B0(y, Y, E ?? ""), a0 = {
10851
+ const V = H0(O.value), n0 = B0(y, Y, E ?? ""), a0 = {
10851
10852
  fetchType: Z.Post,
10852
10853
  url: `/${M.value}/postgres-query`,
10853
10854
  data: O0.getQueryRequests({
@@ -10855,18 +10856,18 @@ const rx = async (y, T, E) => {
10855
10856
  dateRange: [U.startDate, U.endDate],
10856
10857
  compareDateRange: q.startDate && q.endDate ? [q.startDate, q.endDate] : void 0,
10857
10858
  timeRange: [
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()
10859
+ p0().tz(V).set("hour", Number((d0 = B.start) == null ? void 0 : d0.hour)).set("minute", Number((i0 = B.start) == null ? void 0 : i0.minute)).toISOString(),
10860
+ p0().tz(V).set("hour", Number((l0 = B.end) == null ? void 0 : l0.hour)).set("minute", Number((o0 = B.end) == null ? void 0 : o0.minute)).toISOString()
10860
10861
  ],
10861
10862
  businessIds: M.value ? [M.value] : [],
10862
- restaurantIds: v,
10863
- warehouseIds: H,
10864
- timezone: G
10863
+ restaurantIds: P,
10864
+ warehouseIds: J,
10865
+ timezone: V
10865
10866
  }).map((K, b0) => {
10866
10867
  const u0 = b0 === 0 ? 3e3 : 12e3;
10867
10868
  return {
10868
10869
  ...K,
10869
- limit: v.length > 50 ? y.config.limit || u0 : y.config.limit,
10870
+ limit: P.length > 50 ? y.config.limit || u0 : y.config.limit,
10870
10871
  skipStringSpaceGrouping: !!(C != null && C.batch)
10871
10872
  };
10872
10873
  }),
@@ -10875,13 +10876,13 @@ const rx = async (y, T, E) => {
10875
10876
  signal: T
10876
10877
  }
10877
10878
  }, 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
+ P.length < 50 && t0.push(() => x0.fetch(a0)), t0.push(() => (a0.url = a0.url.replace("postgres-query", "query"), x0.fetch(a0)));
10879
10880
  const c0 = await zu(t0, 2e3);
10880
10881
  return (await Gu(Bu, {
10881
10882
  responses: c0,
10882
10883
  widget: JSON.parse(JSON.stringify(y)),
10883
- country: w.value,
10884
- timezone: G
10884
+ country: O.value,
10885
+ timezone: V
10885
10886
  })).data;
10886
10887
  };
10887
10888
  function xu(y) {
@@ -10927,16 +10928,16 @@ const fx = async ({
10927
10928
  index: T,
10928
10929
  orientationTypes: E,
10929
10930
  isCombinedLocationLayout: M,
10930
- locationIds: w,
10931
+ locationIds: O,
10931
10932
  timeRange: C,
10932
- dateRange: v
10933
+ dateRange: P
10933
10934
  }) => {
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
+ const { businessId: J, country: k } = X(e0()), { restaurants: U, warehouses: q, globalFilters: B } = R0(), { currentReport: Y, overviewReport: V } = U0(), { selectedNavigationTab: n0 } = K0(), { sizes: a0 } = uu();
10935
10936
  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
+ n0 === "overview" && V && (t0 = V == null ? void 0 : V.id, c0 = (V == null ? void 0 : V.tiles) ?? []);
10937
10938
  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 = {
10938
10939
  fetchType: Z.Post,
10939
- url: `/${H.value}/file?lang=${k0()}`,
10940
+ url: `/${J.value}/file?lang=${k0()}`,
10940
10941
  data: {
10941
10942
  configs: [
10942
10943
  ...i0.map((W, s0) => {
@@ -10945,16 +10946,16 @@ const fx = async ({
10945
10946
  return {
10946
10947
  requests: O0.getQueryRequests({
10947
10948
  widget: W,
10948
- dateRange: [v.startDate, v.endDate],
10949
+ dateRange: [P.startDate, P.endDate],
10949
10950
  timeRange: [
10950
10951
  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
10952
  p0().tz(d0).set("hour", Number((u = C.end) == null ? void 0 : u.hour)).set("minute", Number(($ = C.end) == null ? void 0 : $.minute)).toISOString()
10952
10953
  ],
10953
- businessIds: H ? [H.value] : [],
10954
- restaurantIds: w.filter(
10954
+ businessIds: J ? [J.value] : [],
10955
+ restaurantIds: O.filter(
10955
10956
  (r) => U.find(($0) => $0.id === r)
10956
10957
  ),
10957
- warehouseIds: w.filter(
10958
+ warehouseIds: O.filter(
10958
10959
  (r) => q.find(($0) => $0.id === r)
10959
10960
  ),
10960
10961
  timezone: d0
@@ -10984,11 +10985,11 @@ const fx = async ({
10984
10985
  types: T,
10985
10986
  dateRange: E,
10986
10987
  timeRange: M,
10987
- locationIds: w,
10988
+ locationIds: O,
10988
10989
  orientationTypes: C,
10989
- isCombinedLocationLayout: v
10990
+ isCombinedLocationLayout: P
10990
10991
  }) => {
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();
10992
+ const { businessId: J, country: k } = X(e0()), { currentReport: U, overviewReport: q } = U0(), { selectedNavigationTab: B } = K0(), { restaurants: Y, warehouses: V, globalFilters: n0 } = R0(), { sizes: a0 } = uu();
10992
10993
  if (y.length === 0) {
10993
10994
  console.error("No email addresses provided.");
10994
10995
  return;
@@ -10996,7 +10997,7 @@ const fx = async ({
10996
10997
  let t0 = (U == null ? void 0 : U.id) || "", c0 = (U == null ? void 0 : U.name) || "", d0 = (U == null ? void 0 : U.tiles) ?? [];
10997
10998
  B === "overview" && q && (t0 = q == null ? void 0 : q.id, c0 = q.name, d0 = (q == null ? void 0 : q.tiles) ?? []);
10998
10999
  const i0 = H0(k.value), l0 = d0.map((K) => B0(K.widget, n0, K.id)), o0 = {
10999
- businessId: H.value,
11000
+ businessId: J.value,
11000
11001
  status: Z0.generating,
11001
11002
  dateRange: {
11002
11003
  start: E.startDate,
@@ -11015,12 +11016,12 @@ const fx = async ({
11015
11016
  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
11017
  p0().tz(i0).hour(Number((s0 = M.end) == null ? void 0 : s0.hour)).minute(Number((f0 = M.end) == null ? void 0 : f0.minute)).toISOString()
11017
11018
  ],
11018
- businessIds: H ? [H.value] : [],
11019
- restaurantIds: w.filter(
11019
+ businessIds: J ? [J.value] : [],
11020
+ restaurantIds: O.filter(
11020
11021
  (_0) => Y.find((Q) => Q.id === _0)
11021
11022
  ),
11022
- warehouseIds: w.filter(
11023
- (_0) => G.find((Q) => Q.id === _0)
11023
+ warehouseIds: O.filter(
11024
+ (_0) => V.find((Q) => Q.id === _0)
11024
11025
  ),
11025
11026
  timezone: i0
11026
11027
  }),
@@ -11035,11 +11036,11 @@ const fx = async ({
11035
11036
  reportId: t0,
11036
11037
  type: T,
11037
11038
  orientationTypes: C,
11038
- isCombinedLocationLayout: v
11039
+ isCombinedLocationLayout: P
11039
11040
  };
11040
11041
  await N0.fetch({
11041
11042
  fetchType: Z.Post,
11042
- url: `/${H.value}/reports/email?lang=${k0()}`,
11043
+ url: `/${J.value}/reports/email?lang=${k0()}`,
11043
11044
  data: o0,
11044
11045
  requestConfig: { timeout: 1e3 * 60 * 3 }
11045
11046
  });
@@ -11066,49 +11067,49 @@ const fx = async ({
11066
11067
  });
11067
11068
  };
11068
11069
  function W0(y = [], T = []) {
11069
- const E = (C) => `${C.schemaName}:${C.name}:${C.operator}`, M = /* @__PURE__ */ new Map(), w = [];
11070
+ const E = (C) => `${C.schemaName}:${C.name}:${C.operator}`, M = /* @__PURE__ */ new Map(), O = [];
11070
11071
  for (const C of y) {
11071
11072
  if (!C || !Array.isArray(C.values) || C.values.length === 0) continue;
11072
11073
  if (C.option === P0.DateTime || C.operator === J0.Between) {
11073
- w.push({ ...C });
11074
+ O.push({ ...C });
11074
11075
  continue;
11075
11076
  }
11076
- const H = E(C);
11077
- M.set(H, { ...C });
11077
+ const J = E(C);
11078
+ M.set(J, { ...C });
11078
11079
  }
11079
11080
  for (const C of T) {
11080
11081
  if (!C || !Array.isArray(C.values) || C.values.length === 0) continue;
11081
11082
  if (C.option === P0.DateTime || C.operator === J0.Between) {
11082
- w.push({ ...C });
11083
+ O.push({ ...C });
11083
11084
  continue;
11084
11085
  }
11085
- const H = E(C);
11086
- if (M.has(H)) {
11087
- const k = M.get(H), U = Array.from(
11086
+ const J = E(C);
11087
+ if (M.has(J)) {
11088
+ const k = M.get(J), U = Array.from(
11088
11089
  /* @__PURE__ */ new Set([...k.values ?? [], ...C.values ?? []])
11089
11090
  );
11090
- k.values = U, M.set(H, k);
11091
+ k.values = U, M.set(J, k);
11091
11092
  } else
11092
- M.set(H, { ...C });
11093
+ M.set(J, { ...C });
11093
11094
  }
11094
- return [...Array.from(M.values()), ...w];
11095
+ return [...Array.from(M.values()), ...O];
11095
11096
  }
11096
11097
  function Xu(y, T, E) {
11097
- const M = [], w = /* @__PURE__ */ new Map();
11098
+ const M = [], O = /* @__PURE__ */ new Map();
11098
11099
  return y.forEach((C) => {
11099
- C && (T.includes(C.schemaName) && M.push(C), E.forEach((v, H) => {
11100
+ C && (T.includes(C.schemaName) && M.push(C), E.forEach((P, J) => {
11100
11101
  var k;
11101
- v.includes(C.schemaName) && (w.has(H) || w.set(H, []), (k = w.get(H)) == null || k.push(C));
11102
+ P.includes(C.schemaName) && (O.has(J) || O.set(J, []), (k = O.get(J)) == null || k.push(C));
11102
11103
  }));
11103
- }), { mainFilters: M, joinFilters: w };
11104
+ }), { mainFilters: M, joinFilters: O };
11104
11105
  }
11105
11106
  function B0(y, T, E) {
11106
11107
  var k, U;
11107
- const M = JSON.parse(JSON.stringify(y)), w = T.filter((q) => {
11108
+ const M = JSON.parse(JSON.stringify(y)), O = T.filter((q) => {
11108
11109
  var B;
11109
11110
  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
- w,
11111
+ }), C = ((k = M.config.joinDatasources) == null ? void 0 : k.map((q) => q.schemaNames ?? [])) ?? [], { mainFilters: P, joinFilters: J } = Xu(
11112
+ O,
11112
11113
  M.config.schemaNames,
11113
11114
  C
11114
11115
  );
@@ -11116,10 +11117,10 @@ function B0(y, T, E) {
11116
11117
  ...M,
11117
11118
  config: {
11118
11119
  ...M.config,
11119
- filters: W0(M.config.filters ?? [], v),
11120
+ filters: W0(M.config.filters ?? [], P),
11120
11121
  joinDatasources: ((U = M.config.joinDatasources) == null ? void 0 : U.map((q, B) => ({
11121
11122
  ...q,
11122
- filters: W0(q.filters ?? [], H.get(B) ?? [])
11123
+ filters: W0(q.filters ?? [], J.get(B) ?? [])
11123
11124
  }))) ?? []
11124
11125
  }
11125
11126
  };
@@ -11147,8 +11148,8 @@ function lx(y, T, E) {
11147
11148
  const M = y.random || (y.rng || ju)();
11148
11149
  if (M[6] = M[6] & 15 | 64, M[8] = M[8] & 63 | 128, T) {
11149
11150
  E = E || 0;
11150
- for (let w = 0; w < 16; ++w)
11151
- T[E + w] = M[w];
11151
+ for (let O = 0; O < 16; ++O)
11152
+ T[E + O] = M[O];
11152
11153
  return T;
11153
11154
  }
11154
11155
  return Yu(M);
@@ -11174,14 +11175,14 @@ const ox = /* @__PURE__ */ bu({
11174
11175
  }),
11175
11176
  emits: /* @__PURE__ */ G0(["confirm"], ["update:modelValue"]),
11176
11177
  setup(y, { emit: T }) {
11177
- const E = su(y, "modelValue"), M = y, w = T;
11178
+ const E = su(y, "modelValue"), M = y, O = T;
11178
11179
  return q0(E, () => {
11179
11180
  E.value ? document.body.style.overflow = "hidden" : document.body.style.overflow = "scroll";
11180
- }), (C, v) => {
11181
- const H = V0("FmButton"), k = V0("FmDialog");
11181
+ }), (C, P) => {
11182
+ const J = V0("FmButton"), k = V0("FmDialog");
11182
11183
  return ou(), lu(k, {
11183
11184
  modelValue: E.value,
11184
- "onUpdate:modelValue": v[2] || (v[2] = (U) => E.value = U),
11185
+ "onUpdate:modelValue": P[2] || (P[2] = (U) => E.value = U),
11185
11186
  overlay: ""
11186
11187
  }, {
11187
11188
  "dialog-header": v0(() => [
@@ -11191,16 +11192,16 @@ const ox = /* @__PURE__ */ bu({
11191
11192
  pu(C.$slots, "content")
11192
11193
  ]),
11193
11194
  "dialog-footer": v0(() => [
11194
- v[3] || (v[3] = _u("div", { class: "grow" }, null, -1)),
11195
- z0(H, {
11195
+ P[3] || (P[3] = _u("div", { class: "grow" }, null, -1)),
11196
+ z0(J, {
11196
11197
  label: M.secondaryButtonLabel,
11197
11198
  variant: "tertiary",
11198
- onClick: v[0] || (v[0] = (U) => E.value = !1)
11199
+ onClick: P[0] || (P[0] = (U) => E.value = !1)
11199
11200
  }, null, 8, ["label"]),
11200
- z0(H, {
11201
+ z0(J, {
11201
11202
  label: M.primaryButtonLabel,
11202
11203
  variant: "primary",
11203
- onClick: v[1] || (v[1] = (U) => w("confirm"))
11204
+ onClick: P[1] || (P[1] = (U) => O("confirm"))
11204
11205
  }, null, 8, ["label"])
11205
11206
  ]),
11206
11207
  _: 3