@feedmepos/mf-report 5.7.6-beta.103 → 5.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/{App-Bhp7FaBJ.js → App-BrW5SiDe.js} +42 -42
  2. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-Ceg0ycS-.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-Bi_BES93.js} +2 -2
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-tBkPzAux.js → Default.vue_vue_type_script_setup_true_lang-RIJC16Ui.js} +2 -2
  4. package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-DokEr03U.js +1390 -0
  5. package/dist/{InsightView-BQjw3zo_.js → InsightView-DIhPKYKe.js} +6 -6
  6. package/dist/{Integration-DozOUHN0.js → Integration-D61lmDoO.js} +3 -3
  7. package/dist/{Integrations-CtHf849u.js → Integrations-BiJVCGrp.js} +3 -3
  8. package/dist/{Layout-DSzK7_nq.js → Layout-DH7q-7AG.js} +1 -1
  9. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-J99j3ig1.js → MenuTab.vue_vue_type_script_setup_true_lang-nPHvtT2O.js} +3 -3
  10. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-Cdiu1oaH.js → NavigationTab.vue_vue_type_script_setup_true_lang-CPTKq_OA.js} +7853 -7886
  11. package/dist/{NoData.vue_vue_type_script_setup_true_lang-Gjyew5eM.js → NoData.vue_vue_type_script_setup_true_lang-CdFXBqlX.js} +1 -1
  12. package/dist/{OverviewView-Ctkw9OHF.js → OverviewView-Cp0quKsj.js} +5 -5
  13. package/dist/{Report-CLnz_fJe.js → Report-DSO3L0cw.js} +4 -4
  14. package/dist/{ReportEditor-B85E-p2H.js → ReportEditor-DPWD6PV0.js} +5 -5
  15. package/dist/{ReportView-DR-H3SCw.js → ReportView-CRKPSw3H.js} +7 -7
  16. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-BRdIROVa.js → SelectComponent.vue_vue_type_script_setup_true_lang-N2Lg1Vpt.js} +1 -1
  17. package/dist/{Setting-Db6Z-NR7.js → Setting-Dd1O-wia.js} +4 -4
  18. package/dist/{TileEditor-Ce5fXttu.js → TileEditor-BLsGvreq.js} +8 -8
  19. package/dist/{TransitionFade-B7MGFLV2.js → TransitionFade-C7yNEw8X.js} +4 -4
  20. package/dist/app.js +11 -11
  21. package/dist/{global-loader-DeDK8lT7.js → global-loader-CbmVhJAK.js} +3 -3
  22. package/dist/{index-BUphqdhM.js → index-BWqDfeY6.js} +1 -1
  23. package/dist/{report-schema-tfEvDL2D.js → report-schema-BnzKoFjx.js} +1 -1
  24. package/dist/{v4-KVHDiToS.js → v4-Cbq0RSpY.js} +316 -344
  25. package/package.json +1 -1
  26. package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-hFmuXpI-.js +0 -1403
@@ -1,26 +1,26 @@
1
- import { j as Ne, a as ee, F as te, h as j, b as Ie, c as Ue, n as Ke, d as fe, e as Xe, k as Ze } from "./global-loader-DeDK8lT7.js";
2
- import { storeToRefs as Y, defineStore as qe } from "pinia";
3
- import { ref as Z, computed as Ae, h as et, watch as tt } from "vue";
4
- import { useSnackbar as rt, components as it } from "@feedmepos/ui-library";
5
- import { useRouter as nt } from "vue-router";
6
- function Be(F) {
1
+ import { j as xe, a as te, F as re, h as K, b as Ie, c as Ne, n as je, d as pe, e as ze, k as Ke } from "./global-loader-CbmVhJAK.js";
2
+ import { storeToRefs as W, defineStore as ke } from "pinia";
3
+ import { ref as X, computed as Ae, h as Xe, watch as Ze } from "vue";
4
+ import { useSnackbar as et, components as tt } from "@feedmepos/ui-library";
5
+ import { useRouter as rt } from "vue-router";
6
+ function He(F) {
7
7
  throw new Error('Could not dynamically require "' + F + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
8
8
  }
9
9
  var Me = {};
10
10
  (function(F) {
11
- var w = typeof Ne < "u" ? Ne : window, J = Object.create(w);
11
+ var w = typeof xe < "u" ? xe : window, J = Object.create(w);
12
12
  J.scheduleImmediate = typeof setImmediate < "u" ? function(Q) {
13
13
  setImmediate(Q);
14
14
  } : function(Q) {
15
15
  setTimeout(Q, 0);
16
16
  }, J.exports = F, typeof process < "u" && (J.process = process), typeof __dirname < "u" && (J.__dirname = __dirname), typeof __filename < "u" && (J.__filename = __filename), typeof Buffer < "u" && (J.Buffer = Buffer);
17
- var H = !w.window;
17
+ var U = !w.window;
18
18
  try {
19
- typeof WorkerGlobalScope < "u" && w instanceof WorkerGlobalScope && (H = !1), typeof process < "u" && process.versions && process.versions.hasOwnProperty("electron") && process.versions.hasOwnProperty("node") && (H = !0);
19
+ typeof WorkerGlobalScope < "u" && w instanceof WorkerGlobalScope && (U = !1), typeof process < "u" && process.versions && process.versions.hasOwnProperty("electron") && process.versions.hasOwnProperty("node") && (U = !0);
20
20
  } catch {
21
21
  }
22
- if (H) {
23
- var N = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : Be)("url");
22
+ if (U) {
23
+ var N = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : He)("url");
24
24
  Object.defineProperty(J, "location", {
25
25
  value: {
26
26
  get href() {
@@ -35,12 +35,12 @@ var Me = {};
35
35
  try {
36
36
  throw new Error();
37
37
  } catch (G) {
38
- var P = G.stack, B = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), U = null;
38
+ var P = G.stack, H = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), q = null;
39
39
  do {
40
- var V = B.exec(P);
41
- V != null && (U = V);
40
+ var V = H.exec(P);
41
+ V != null && (q = V);
42
42
  } while (V != null);
43
- return U[1];
43
+ return q[1];
44
44
  }
45
45
  }
46
46
  var k = null;
@@ -54,8 +54,8 @@ var Me = {};
54
54
  }(), J.dartDeferredLibraryLoader = function(Q, k, P) {
55
55
  try {
56
56
  load(Q), k();
57
- } catch (B) {
58
- P(B);
57
+ } catch (H) {
58
+ P(H);
59
59
  }
60
60
  };
61
61
  }
@@ -72,10 +72,10 @@ var Me = {};
72
72
  e.hasOwnProperty(a) || (e[a] = r[a]);
73
73
  }
74
74
  }
75
- function B(r, e) {
75
+ function H(r, e) {
76
76
  Object.assign(e, r);
77
77
  }
78
- var U = function() {
78
+ var q = function() {
79
79
  var r = function() {
80
80
  };
81
81
  r.prototype = { p: {} };
@@ -96,7 +96,7 @@ var Me = {};
96
96
  }();
97
97
  function V(r, e) {
98
98
  if (r.prototype.constructor = r, r.prototype["$is" + r.name] = r, e != null) {
99
- if (U) {
99
+ if (q) {
100
100
  r.prototype.__proto__ = e.prototype;
101
101
  return;
102
102
  }
@@ -108,10 +108,10 @@ var Me = {};
108
108
  for (var i = 0; i < e.length; i++)
109
109
  V(e[i], r);
110
110
  }
111
- function z(r, e) {
112
- B(e.prototype, r.prototype), r.prototype.constructor = r;
111
+ function Y(r, e) {
112
+ H(e.prototype, r.prototype), r.prototype.constructor = r;
113
113
  }
114
- function ne(r, e) {
114
+ function ae(r, e) {
115
115
  P(e.prototype, r.prototype), r.prototype.constructor = r;
116
116
  }
117
117
  function oe(r, e, i, n) {
@@ -131,7 +131,7 @@ var Me = {};
131
131
  return s;
132
132
  };
133
133
  }
134
- function re(r, e, i, n) {
134
+ function Z(r, e, i, n) {
135
135
  var a = r;
136
136
  r[e] = a, r[i] = function() {
137
137
  return r[e] === a && (r[e] = n()), r[i] = function() {
@@ -139,7 +139,7 @@ var Me = {};
139
139
  }, r[e];
140
140
  };
141
141
  }
142
- function se(r, e, i, n) {
142
+ function fe(r, e, i, n) {
143
143
  var a = r;
144
144
  r[e] = a, r[i] = function() {
145
145
  if (r[e] === a) {
@@ -152,17 +152,17 @@ var Me = {};
152
152
  }, l;
153
153
  };
154
154
  }
155
- function W(r) {
155
+ function se(r) {
156
156
  return r.immutable$list = Array, r.fixed$length = Array, r;
157
157
  }
158
- function _e(r) {
158
+ function ye(r) {
159
159
  return r;
160
160
  }
161
- function ue(r) {
161
+ function ie(r) {
162
162
  for (var e = 0; e < r.length; ++e)
163
163
  r[e];
164
164
  }
165
- function de(r, e) {
165
+ function ee(r, e) {
166
166
  var i = null;
167
167
  return r ? function(n) {
168
168
  return i === null && (i = t.closureFromTearOff(e)), new i(n, this);
@@ -176,17 +176,17 @@ var Me = {};
176
176
  return e === null && (e = t.closureFromTearOff(r).prototype), e;
177
177
  };
178
178
  }
179
- var ce = 0;
180
- function ae(r, e, i, n, a, s, l, _, d, c) {
181
- return typeof _ == "number" && (_ += ce), { co: r, iS: e, iI: i, rC: n, dV: a, cs: s, fs: l, fT: _, aI: d || 0, nDA: c };
179
+ var ue = 0;
180
+ function _e(r, e, i, n, a, s, l, _, d, c) {
181
+ return typeof _ == "number" && (_ += ue), { co: r, iS: e, iI: i, rC: n, dV: a, cs: s, fs: l, fT: _, aI: d || 0, nDA: c };
182
182
  }
183
- function ie(r, e, i, n, a, s, l, _) {
184
- var d = ae(r, !0, !1, i, n, a, s, l, _, !1), c = le(d);
183
+ function ne(r, e, i, n, a, s, l, _) {
184
+ var d = _e(r, !0, !1, i, n, a, s, l, _, !1), c = le(d);
185
185
  r[e] = c;
186
186
  }
187
- function ye(r, e, i, n, a, s, l, _, d, c) {
187
+ function de(r, e, i, n, a, s, l, _, d, c) {
188
188
  i = !!i;
189
- var f = ae(r, !1, i, n, a, s, l, _, d, !!c), $ = de(i, f);
189
+ var f = _e(r, !1, i, n, a, s, l, _, d, !!c), $ = ee(i, f);
190
190
  r[e] = $;
191
191
  }
192
192
  function he(r) {
@@ -212,17 +212,17 @@ var Me = {};
212
212
  function ge(r, e) {
213
213
  return k(e, r), r;
214
214
  }
215
- var K = function() {
215
+ var j = function() {
216
216
  var r = function(i, n, a, s, l) {
217
217
  return function(_, d, c, f) {
218
- return ye(_, d, i, n, a, s, [c], f, l, !1);
218
+ return de(_, d, i, n, a, s, [c], f, l, !1);
219
219
  };
220
220
  }, e = function(i, n, a, s) {
221
221
  return function(l, _, d, c) {
222
- return ie(l, _, i, n, a, [d], c, s);
222
+ return ne(l, _, i, n, a, [d], c, s);
223
223
  };
224
224
  };
225
- return { inherit: V, inheritMany: G, mixin: z, mixinHard: ne, installStaticTearOff: ie, installInstanceTearOff: ye, _instance_0u: r(0, 0, null, ["call$0"], 0), _instance_1u: r(0, 1, null, ["call$1"], 0), _instance_2u: r(0, 2, null, ["call$2"], 0), _instance_0i: r(1, 0, null, ["call$0"], 0), _instance_1i: r(1, 1, null, ["call$1"], 0), _instance_2i: r(1, 2, null, ["call$2"], 0), _static_0: e(0, null, ["call$0"], 0), _static_1: e(1, null, ["call$1"], 0), _static_2: e(2, null, ["call$2"], 0), makeConstList: W, lazy: re, lazyFinal: se, lazyOld: oe, updateHolder: ge, convertToFastObject: _e, updateTypes: $e, setOrUpdateInterceptorsByTag: he, setOrUpdateLeafTags: Te };
225
+ return { inherit: V, inheritMany: G, mixin: Y, mixinHard: ae, installStaticTearOff: ne, installInstanceTearOff: de, _instance_0u: r(0, 0, null, ["call$0"], 0), _instance_1u: r(0, 1, null, ["call$1"], 0), _instance_2u: r(0, 2, null, ["call$2"], 0), _instance_0i: r(1, 0, null, ["call$0"], 0), _instance_1i: r(1, 1, null, ["call$1"], 0), _instance_2i: r(1, 2, null, ["call$2"], 0), _static_0: e(0, null, ["call$0"], 0), _static_1: e(1, null, ["call$1"], 0), _static_2: e(2, null, ["call$2"], 0), makeConstList: se, lazy: Z, lazyFinal: fe, lazyOld: oe, updateHolder: ge, convertToFastObject: ye, updateTypes: $e, setOrUpdateInterceptorsByTag: he, setOrUpdateLeafTags: Te };
226
226
  }(), t = {
227
227
  JS_CONST: function() {
228
228
  },
@@ -1757,7 +1757,7 @@ var Me = {};
1757
1757
  return d === 12 ? e === y.JavaScriptFunction ? !0 : s ? !1 : t._isFunctionSubtype(r, e, i, n, a) : l === 9 ? d !== 9 ? !1 : t._isInterfaceSubtype(r, e, i, n, a) : (s = l === 11, s && n === y.Record ? !0 : s && d === 11 ? t._isRecordSubtype(r, e, i, n, a) : !1);
1758
1758
  },
1759
1759
  _isFunctionSubtype(r, e, i, n, a) {
1760
- var s, l, _, d, c, f, $, g, m, h, A, E, M, b, R, C, O, D, L, v, x, q;
1760
+ var s, l, _, d, c, f, $, g, m, h, A, E, M, b, R, C, O, D, L, v, x, B;
1761
1761
  if (!t._isSubtype(r, e._primary, i, n._primary, a) || (s = e._rest, l = n._rest, _ = s._requiredPositional, d = l._requiredPositional, c = _.length, f = d.length, c > f) || ($ = f - c, g = s._optionalPositional, m = l._optionalPositional, h = g.length, A = m.length, c + h < f + A))
1762
1762
  return !1;
1763
1763
  for (E = 0; E < c; ++E)
@@ -1773,12 +1773,12 @@ var Me = {};
1773
1773
  for (v = R[L]; ; ) {
1774
1774
  if (D >= C || (x = b[D], D += 3, v < x))
1775
1775
  return !1;
1776
- if (q = b[D - 2], x < v) {
1777
- if (q)
1776
+ if (B = b[D - 2], x < v) {
1777
+ if (B)
1778
1778
  return !1;
1779
1779
  continue;
1780
1780
  }
1781
- if (M = R[L + 1], q && !M || (M = b[D - 1], !t._isSubtype(r, R[L + 2], a, M, i)))
1781
+ if (M = R[L + 1], B && !M || (M = b[D - 1], !t._isSubtype(r, R[L + 2], a, M, i)))
1782
1782
  return !1;
1783
1783
  break;
1784
1784
  }
@@ -8345,10 +8345,10 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
8345
8345
  $signature: 1
8346
8346
  }, t.flattenItemSchema_closure.prototype = {
8347
8347
  call$1(r) {
8348
- var e = null, i = "itemCreatedAt", n = "billCompletedAt", a = "perXUnit", s = "takeawayId", l = "takeawayName", _ = "productId", d = "isRefund", c = "servedAt", f = "isTakeaway", $ = "quantity", g = "unitQuantity", m = "billAdjustmentTotal", h = "itemAdjustmentTotal", A = "grossTotal", E = "takeawayPrice", M = "nettTotal", b = "layerNettTotal", R = "layerBillAdjustmentTotal", C = "layerItemAdjustmentTotal", O = "layerGrossTotal", D = "layerTakeawayPrice", L = "layerTaxTotal", v = "layerScTotal", x = "layerOtherChargeTotal", q = "customAttributes", pe = "layerZeroParentId";
8348
+ var e = null, i = "itemCreatedAt", n = "billCompletedAt", a = "perXUnit", s = "takeawayId", l = "takeawayName", _ = "productId", d = "isRefund", c = "servedAt", f = "isTakeaway", $ = "quantity", g = "unitQuantity", m = "billAdjustmentTotal", h = "itemAdjustmentTotal", A = "grossTotal", E = "takeawayPrice", M = "nettTotal", b = "layerNettTotal", R = "layerBillAdjustmentTotal", C = "layerItemAdjustmentTotal", O = "layerGrossTotal", D = "layerTakeawayPrice", L = "layerTaxTotal", v = "layerScTotal", x = "layerOtherChargeTotal", B = "customAttributes", ce = "layerZeroParentId";
8349
8349
  return t._setArrayType([t.Field_Field$string(e, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, !0, e, "docId", "_docId", e, r), t.Field_Field$string(e, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$timestamp(e, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$timestamp(e, !0, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, !1, "Item time", i, i, e, r), t.Field_Field$timestamp(e, !1, "Bill close time", n, n, e, r), t.Field_Field$string(e, !1, "Bill ID", "billId", "billId", e, r), t.Field_Field$string(e, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, !1, "Name", "name", "name", e, r), t.Field_Field$numeric(e, !1, "Per unit", a, a, e, r), t.Field_Field$string(e, !1, "Unit", "unit", "unit", e, r), t.Field_Field$string(`IF(@categoryName IS NULL OR @productId IS NULL OR REGEXP_CONTAINS(@productId, r'^\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)$'), 'Other', @categoryName)
8350
8350
  `, !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
8351
- `, r), t.Field_Field$string(e, !1, "Takeaway ID", s, s, e, r), t.Field_Field$string(e, !1, "Takeaway name", l, l, e, r), t.Field_Field$string(e, !1, "Code", "code", "code", e, r), t.Field_Field$string(e, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, !1, "Product ID", _, _, e, r), t.Field_Field$string(e, !1, "Variant ID", "variantId", "variant.id", e, r), t.Field_Field$string(e, !1, "Variant", "variantName", "variant.name", e, r), t.Field_Field$bool(e, !1, "Refund", d, d, e, r), t.Field_Field$string(e, !1, "User id", "createdById", "createdBy.id", e, r), t.Field_Field$string(e, !1, "User", "createdByName", "createdBy.name", e, r), t.Field_Field$timestamp(e, !1, "Sent time", "sentAt", "sentAt", e, r), t.Field_Field$timestamp(e, !1, "Served time", c, c, e, r), t.Field_Field$timestamp(e, !1, "Printed time", "printedAt", "printBy.printAt", e, r), t.Field_Field$timestamp(e, !1, "Void time", "voidAt", "void.voidAt", e, r), t.Field_Field$string(e, !1, "Void reason", "voidReason", "void.reason", e, r), t.Field_Field$string(e, !0, e, "voidedById", "void.by.id", e, r), t.Field_Field$string(e, !1, "Void user", "voidedByName", "void.by.name", e, r), t.Field_Field$string(e, !0, e, "voidApprovedById", "void.approvedBy.id", e, r), t.Field_Field$string(e, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", e, r), t.Field_Field$bool(e, !1, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", e, r), t.Field_Field$bool(e, !1, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", e, r), t.Field_Field$bool(e, !1, "Takeaway", f, f, e, r), t.Field_Field$numeric("@quantity*IF(@isRefund, -1, 1)", !1, "Qty", $, $, I.x40quant, r), t.Field_Field$numeric("@unitQuantity*IF(@isRefund, -1, 1)", !1, "Unit qty", g, g, I.x40unit_, r), t.Field_Field$numeric("@sstTotal*IF(@isRefund, -1, 1)", !1, "SST", "sstTotal", "sst.total", I.x40sst_t, r), t.Field_Field$numeric(e, !0, "SST %", "sstPercentage", "sst.percentage", e, r), t.Field_Field$numeric(e, !0, "SC %", "serviceChargePercentage", "sc.percentage", e, r), t.Field_Field$numeric("@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, "SC", "serviceChargeTotal", "sc.total", I.x40servi, r), t.Field_Field$numeric("@otherChargeTotal*IF(@isRefund, -1, 1)", !1, "Other charge", "otherChargeTotal", "otherCharge.total", I.x40other, r), t.Field_Field$numeric(I.x40billA, !1, "Bill discount", m, m, I.x40bill_, r), t.Field_Field$numeric(I.x40itemA, !1, "Item discount", h, h, I.x40item_, r), t.Field_Field$numeric("@grossTotal*IF(@isRefund, -1, 1)", !1, "Gross", A, A, I.x40gross, r), t.Field_Field$numeric(I.x28_grosT, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, I.x28_gros_, r), t.Field_Field$numeric("@takeawayPrice*IF(@isRefund, -1, 1)", !1, "Takeaway price", E, E, I.x40takea, r), t.Field_Field$numeric("@nettTotal*IF(@isRefund, -1, 1)", !1, "Nett", M, M, I.x40nett_, r), t.Field_Field$string(e, !1, "Parent ID", "parentId", "parent.id", e, r), t.Field_Field$string(e, !1, "Parent name", "parentName", "parent.name", e, r), t.Field_Field$string(e, !1, "Addon type", "addonType", "addon.type", e, r), t.Field_Field$string(e, !1, "Addon ID", "addonId", "addon.selectionId", e, r), t.Field_Field$string("SPLIT(@addonId, '/')[OFFSET(0)]", !1, "Group ID", "groupId", e, "SPLIT_PART(@addon_id, '/',1)", r), t.Field_Field$numeric(e, !1, "Layer", "layer", "layer", e, r), t.Field_Field$numeric("@addonPrice*IF(@isRefund, -1, 1)", !1, "Addon price", "addonPrice", "addon.price", I.x40addon, r), t.Field_Field$numeric("@taxTotal*IF(@isRefund, -1, 1)", !1, "Tax", "taxTotal", "tax.total", "@tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(I.x28IFNULb, !1, "Discount", "discountTotal", e, I.x28COALEb, r), t.Field_Field$numeric(I.x28IFNULgx2b, !1, "Gross before charges", "grossBeforeCharges", e, I.x28COALEgx2b, r), t.Field_Field$numeric(I.TIMEST, !1, "Preparation seconds", "preparationSeconds", e, I.EXTRAC, r), t.Field_Field$string(I.CONCAT_, !1, "Summary", "summary", e, I.CONCATA, r), t.Field_Field$numeric("@layerNettTotal*IF(@isRefund, -1, 1)", !1, "Layer nett", b, b, "@layer_nett_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerBillAdjustmentTotal*IF(@isRefund, -1, 1)", !1, "Layer bill discount", R, R, "@layer_bill_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerItemAdjustmentTotal*IF(@isRefund, -1, 1)", !1, "Layer item discount", C, C, "@layer_item_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerGrossTotal*IF(@isRefund, -1, 1)", !1, "Layer gross total", O, O, "@layer_gross_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerTakeawayPrice*IF(@isRefund, -1, 1)", !1, "Layer takeaway price", D, D, "@layer_takeaway_price*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerTaxTotal*IF(@isRefund, -1, 1)", !1, "Layer tax total", L, L, "@layer_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerScTotal*IF(@isRefund, -1, 1)", !1, "Layer sc", v, v, "@layer_sc_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerOtherChargeTotal*IF(@isRefund, -1, 1)", !1, "Layer other charge", x, x, "@layer_other_charge_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("(IFNULL(@layerGrossTotal,0)+IFNULL(@layerBillAdjustmentTotal,0)+IFNULL(@layerItemAdjustmentTotal,0))*IF(@isRefund, -1, 1)", !1, "Layer gross before charges", "layerGrossBeforeCharges", e, "(COALESCE(@layer_gross_total,0)+COALESCE(@layer_bill_adjustment_total,0)+COALESCE(@layer_item_adjustment_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$string(e, !1, "Custom attributes", q, q, e, r), t.Field_Field$string(e, !1, "Layer 0 parent ID", pe, pe, e, r), t.Field_Field$string(e, !1, "Charge variant", "chargeVariant", e, "(select variant from charges where charges.parent_id=@layer_zero_parent_id and charges.restaurant_id=@restaurant_id and charges.bill_id=@bill_id and charges.code in ('SST','GST'))", r)], y.JSArray_Field);
8351
+ `, r), t.Field_Field$string(e, !1, "Takeaway ID", s, s, e, r), t.Field_Field$string(e, !1, "Takeaway name", l, l, e, r), t.Field_Field$string(e, !1, "Code", "code", "code", e, r), t.Field_Field$string(e, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, !1, "Product ID", _, _, e, r), t.Field_Field$string(e, !1, "Variant ID", "variantId", "variant.id", e, r), t.Field_Field$string(e, !1, "Variant", "variantName", "variant.name", e, r), t.Field_Field$bool(e, !1, "Refund", d, d, e, r), t.Field_Field$string(e, !1, "User id", "createdById", "createdBy.id", e, r), t.Field_Field$string(e, !1, "User", "createdByName", "createdBy.name", e, r), t.Field_Field$timestamp(e, !1, "Sent time", "sentAt", "sentAt", e, r), t.Field_Field$timestamp(e, !1, "Served time", c, c, e, r), t.Field_Field$timestamp(e, !1, "Printed time", "printedAt", "printBy.printAt", e, r), t.Field_Field$timestamp(e, !1, "Void time", "voidAt", "void.voidAt", e, r), t.Field_Field$string(e, !1, "Void reason", "voidReason", "void.reason", e, r), t.Field_Field$string(e, !0, e, "voidedById", "void.by.id", e, r), t.Field_Field$string(e, !1, "Void user", "voidedByName", "void.by.name", e, r), t.Field_Field$string(e, !0, e, "voidApprovedById", "void.approvedBy.id", e, r), t.Field_Field$string(e, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", e, r), t.Field_Field$bool(e, !1, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", e, r), t.Field_Field$bool(e, !1, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", e, r), t.Field_Field$bool(e, !1, "Takeaway", f, f, e, r), t.Field_Field$numeric("@quantity*IF(@isRefund, -1, 1)", !1, "Qty", $, $, I.x40quant, r), t.Field_Field$numeric("@unitQuantity*IF(@isRefund, -1, 1)", !1, "Unit qty", g, g, I.x40unit_, r), t.Field_Field$numeric("@sstTotal*IF(@isRefund, -1, 1)", !1, "SST", "sstTotal", "sst.total", I.x40sst_t, r), t.Field_Field$numeric(e, !0, "SST %", "sstPercentage", "sst.percentage", e, r), t.Field_Field$numeric(e, !0, "SC %", "serviceChargePercentage", "sc.percentage", e, r), t.Field_Field$numeric("@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, "SC", "serviceChargeTotal", "sc.total", I.x40servi, r), t.Field_Field$numeric("@otherChargeTotal*IF(@isRefund, -1, 1)", !1, "Other charge", "otherChargeTotal", "otherCharge.total", I.x40other, r), t.Field_Field$numeric(I.x40billA, !1, "Bill discount", m, m, I.x40bill_, r), t.Field_Field$numeric(I.x40itemA, !1, "Item discount", h, h, I.x40item_, r), t.Field_Field$numeric("@grossTotal*IF(@isRefund, -1, 1)", !1, "Gross", A, A, I.x40gross, r), t.Field_Field$numeric(I.x28_grosT, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, I.x28_gros_, r), t.Field_Field$numeric("@takeawayPrice*IF(@isRefund, -1, 1)", !1, "Takeaway price", E, E, I.x40takea, r), t.Field_Field$numeric("@nettTotal*IF(@isRefund, -1, 1)", !1, "Nett", M, M, I.x40nett_, r), t.Field_Field$string(e, !1, "Parent ID", "parentId", "parent.id", e, r), t.Field_Field$string(e, !1, "Parent name", "parentName", "parent.name", e, r), t.Field_Field$string(e, !1, "Addon type", "addonType", "addon.type", e, r), t.Field_Field$string(e, !1, "Addon ID", "addonId", "addon.selectionId", e, r), t.Field_Field$string("SPLIT(@addonId, '/')[OFFSET(0)]", !1, "Group ID", "groupId", e, "SPLIT_PART(@addon_id, '/',1)", r), t.Field_Field$numeric(e, !1, "Layer", "layer", "layer", e, r), t.Field_Field$numeric("@addonPrice*IF(@isRefund, -1, 1)", !1, "Addon price", "addonPrice", "addon.price", I.x40addon, r), t.Field_Field$numeric("@taxTotal*IF(@isRefund, -1, 1)", !1, "Tax", "taxTotal", "tax.total", "@tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(I.x28IFNULb, !1, "Discount", "discountTotal", e, I.x28COALEb, r), t.Field_Field$numeric(I.x28IFNULgx2b, !1, "Gross before charges", "grossBeforeCharges", e, I.x28COALEgx2b, r), t.Field_Field$numeric(I.TIMEST, !1, "Preparation seconds", "preparationSeconds", e, I.EXTRAC, r), t.Field_Field$string(I.CONCAT_, !1, "Summary", "summary", e, I.CONCATA, r), t.Field_Field$numeric("@layerNettTotal*IF(@isRefund, -1, 1)", !1, "Layer nett", b, b, "@layer_nett_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerBillAdjustmentTotal*IF(@isRefund, -1, 1)", !1, "Layer bill discount", R, R, "@layer_bill_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerItemAdjustmentTotal*IF(@isRefund, -1, 1)", !1, "Layer item discount", C, C, "@layer_item_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerGrossTotal*IF(@isRefund, -1, 1)", !1, "Layer gross total", O, O, "@layer_gross_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerTakeawayPrice*IF(@isRefund, -1, 1)", !1, "Layer takeaway price", D, D, "@layer_takeaway_price*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerTaxTotal*IF(@isRefund, -1, 1)", !1, "Layer tax total", L, L, "@layer_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerScTotal*IF(@isRefund, -1, 1)", !1, "Layer sc", v, v, "@layer_sc_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerOtherChargeTotal*IF(@isRefund, -1, 1)", !1, "Layer other charge", x, x, "@layer_other_charge_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("(IFNULL(@layerGrossTotal,0)+IFNULL(@layerBillAdjustmentTotal,0)+IFNULL(@layerItemAdjustmentTotal,0))*IF(@isRefund, -1, 1)", !1, "Layer gross before charges", "layerGrossBeforeCharges", e, "(COALESCE(@layer_gross_total,0)+COALESCE(@layer_bill_adjustment_total,0)+COALESCE(@layer_item_adjustment_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$string(e, !1, "Custom attributes", B, B, e, r), t.Field_Field$string(e, !1, "Layer 0 parent ID", ce, ce, e, r), t.Field_Field$string(e, !1, "Charge variant", "chargeVariant", e, "(select variant from charges where charges.parent_id=@layer_zero_parent_id and charges.restaurant_id=@restaurant_id and charges.bill_id=@bill_id and charges.code in ('SST','GST'))", r)], y.JSArray_Field);
8352
8352
  },
8353
8353
  $signature: 0
8354
8354
  }, t.flattenItemSchema_closure0.prototype = {
@@ -9534,12 +9534,12 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
9534
9534
  var e = o.LegacyJavaScriptObject.prototype;
9535
9535
  e.super$LegacyJavaScriptObject$toString = e.toString$0, e = t.JsLinkedHashMap.prototype, e.super$JsLinkedHashMap$internalContainsKey = e.internalContainsKey$1, e.super$JsLinkedHashMap$internalGet = e.internalGet$1, e.super$JsLinkedHashMap$internalSet = e.internalSet$2, e.super$JsLinkedHashMap$internalRemove = e.internalRemove$1, e = t.Field.prototype, e.super$Field$getSql = e.getSql$3$option$schema$value, e = t.BaseDatasourceConfigModel.prototype, e.super$BaseDatasourceConfigModel$toRequests = e.toRequests$1, e.super$BaseDatasourceConfigModel$toJson = e.toJson$0;
9536
9536
  }(), function() {
9537
- var e = K._static_2, i = K._static_1, n = K._instance_1u, a = K._instance_0u;
9537
+ var e = j._static_2, i = j._static_1, n = j._instance_1u, a = j._instance_0u;
9538
9538
  e(t, "collection___defaultEquals$closure", "_defaultEquals", 32), i(t, "collection___defaultHashCode$closure", "_defaultHashCode", 41), i(t, "convert___defaultToEncodable$closure", "_defaultToEncodable", 3), i(t, "core__identityHashCode$closure", "identityHashCode", 41), i(t, "core_RegExp_escape$closure", "RegExp_escape", 4), e(t, "core__identical$closure", "identical", 32);
9539
9539
  var s;
9540
9540
  n(s = t.DateBuilder.prototype, "get$setYear", "setYear$1", 6), n(s, "get$setMonth", "setMonth$1", 6), n(s, "get$setDay", "setDay$1", 6), n(s, "get$setDayOfYear", "setDayOfYear$1", 6), n(s, "get$setHour", "setHour$1", 6), n(s, "get$setMinute", "setMinute$1", 6), n(s, "get$setSecond", "setSecond$1", 6), n(s, "get$setFractionalSecond", "setFractionalSecond$1", 6), i(t, "date_format_DateFormat_localeExists$closure", "DateFormat_localeExists", 76), a(t.DateFormat.prototype, "get$_initDigitMatcher", "_initDigitMatcher$0", 48), n(t.ReCase.prototype, "get$_upperCaseFirstLetter", "_upperCaseFirstLetter$1", 4), i(t, "js_compiler__getMergeInfoSql$closure", "getMergeInfoSql", 3), i(t, "js_compiler__getClearTableSql$closure", "getClearTableSql", 3), i(t, "js_compiler__getMergeSql$closure", "getMergeSql", 3), i(t, "js_compiler__getSchemas$closure", "getSchemas", 3), i(t, "js_compiler__getVisualizationSchemas$closure", "getVisualizationSchemas", 3), i(t, "js_compiler__requestJsonToSql$closure", "requestJsonToSql", 3), i(t, "js_compiler__sqlResponsesToQueryResponses$closure", "sqlResponsesToQueryResponses", 3), i(t, "js_compiler__getQueryRequests$closure", "getQueryRequests", 3), i(t, "js_compiler__getCreateMaterializedTableSql$closure", "getCreateMaterializedTableSql", 3);
9541
9541
  }(), function() {
9542
- var e = K.mixin, i = K.inherit, n = K.inheritMany;
9542
+ var e = j.mixin, i = j.inherit, n = j.inheritMany;
9543
9543
  i(t.Object, null), n(t.Object, [t.JS_CONST, o.Interceptor, o.ArrayIterator, t.Error, t.Iterable, t.ListIterator, t.Iterator, t.EmptyIterator, t.FixedLengthListMixin, t.Symbol, t.MapView, t.ConstantMap, t.Closure, t.JSInvocationMirror, t.TypeErrorDecoder, t.NullThrownFromJavaScriptException, t._Required, t.MapMixin, t.LinkedHashMapCell, t.LinkedHashMapKeyIterator, t.JSSyntaxRegExp, t._MatchImplementation, t._AllMatchesIterator, t.StringMatch, t._StringAllMatchesIterator, t._Cell, t.Rti, t._FunctionParameters, t._Type, t._IterationMarker, t._SyncStarIterator, t.StreamTransformerBase, t.__SetBase_Object_SetMixin, t._LinkedHashSetCell, t._LinkedHashSetIterator, t._ListBase_Object_ListMixin, t.ListMixin, t._UnmodifiableMapMixin, t.SetMixin, t.Codec, t._JsonStringifier, t._Utf8Encoder, t.DateTime, t.Duration, t._Enum, t.OutOfMemoryError, t.StackOverflowError, t._Exception, t.FormatException, t.Null, t.Sink, t.StringBuffer, t.Endian, t.Digest, t.HashSink, t.DateSymbols, t.DateBuilder, t.DateFormat, t._DateFormatField, t.StringStack, t.UninitializedLocaleData, t.LocaleDataException, t.Jiffy, t.Locale, t.JiffyException, t.Connection, t.SchemaLibrary, t.QueryEngineContext, t.Permission, t.TopLevelFilters, t.Source, t.Index, t.Schema, t.Field, t.Join, t.JoinCondition, t.QueryRequestComparisonTarget, t.QueryRequestComparison, t.QueryRequestCommonField, t._GetSourceTableResponse, t._PlainSqlColumn, t.QueryRequest, t.QueryRequestTimeDimension, t.QueryResponseColumn, t.DateTimeRange, t.QueryResponse, t.QueryResponseRow, t.VisualizationSchema, t.VisualizationField, t.QueryEngine, t.BaseDatasourceConfigModel, t.DataSourceDrillConfig, t.DataSourceRowColumnConfig, t.JoinDatasourceCondition, t.GlobalFilterModel, t.ReportWidgetModel, t.ReCase]), n(o.Interceptor, [o.JSBool, o.JSNull, o.JavaScriptObject, o.JSArray, o.JSNumber, o.JSString, t.NativeTypedData]), i(o.LegacyJavaScriptObject, o.JavaScriptObject), n(o.LegacyJavaScriptObject, [o.PlainJavaScriptObject, o.UnknownJavaScriptObject, o.JavaScriptFunction, t.BufferModule, t.BufferConstants, t.Buffer, t.ConsoleModule, t.Console, t.EventEmitter, t.Promise, t.Date, t.JsError, t.Atomics, t.Modules, t.Module, t.Net, t.Socket, t.NetAddress, t.NetServer, t.NodeJsError, t.Process, t.CPUUsage, t.Release, t.StreamModule, t.Readable, t.Writable, t.Duplex, t.Transform, t.WritableOptions, t.ReadableOptions, t.Immediate, t.Timeout, t.TTY, t.Util, t.Exports, t._Exports]), i(o.JSUnmodifiableArray, o.JSArray), n(o.JSNumber, [o.JSInt, o.JSNumNotInt]), n(t.Error, [t.LateError, t.TypeError, t.JsNoSuchMethodError, t.UnknownJsTypeError, t.RuntimeError, t._Error, t.JsonUnsupportedObjectError, t.AssertionError, t.NullThrownError, t.ArgumentError, t.NoSuchMethodError, t.UnsupportedError, t.UnimplementedError, t.StateError, t.ConcurrentModificationError, t.CyclicInitializationError]), n(t.Iterable, [t.EfficientLengthIterable, t.MappedIterable, t.WhereIterable, t._ConstantMapKeyIterable, t.IterableBase, t._StringAllMatchesIterable]), n(t.EfficientLengthIterable, [t.ListIterable, t.EmptyIterable, t.LinkedHashMapKeyIterable]), n(t.ListIterable, [t.SubListIterable, t.MappedListIterable, t.ReversedListIterable, t._JsonMapKeyIterable, t._GeneratorIterable]), i(t.EfficientLengthMappedIterable, t.MappedIterable), n(t.Iterator, [t.MappedIterator, t.WhereIterator]), i(t._UnmodifiableMapView_MapView__UnmodifiableMapMixin, t.MapView), i(t.UnmodifiableMapView, t._UnmodifiableMapView_MapView__UnmodifiableMapMixin), i(t.ConstantMapView, t.UnmodifiableMapView), n(t.Closure, [t.Closure2Args, t.Closure0Args, t.TearOffClosure, t.initHooks_closure, t.initHooks_closure1, t._LinkedCustomHashMap_closure, t.DateTime_parse_parseIntOrZero, t.DateTime_parse_parseMilliAndMicroseconds, t.DateFormat_dateTimeConstructor_closure, t.DateFormat__checkDateOnly_closure, t.DateFormat__initDigitMatcher_closure, t.DateFormat__initDigitMatcher_closure0, t._DateFormatPatternField_parseStandaloneDay_closure, t.Jiffy__parseString_closure, t.SchemaLibrary_getSchema_closure, t.SchemaLibrary_visualizationSchemas_closure, t.SchemaLibrary_visualizationSchemas_closure0, t.Materialize_get_createMaterializedTableSql_closure, t.Materialize_get_createMaterializedTableSql_closure0, t.Materialize_get_createMaterializedTableSql_closure1, t.Materialize_get_createMaterializedTableSql_closure2, t.Materialize_getMergeSql_closure, t.Materialize_getMergeSql_closure0, t.Materialize_getMergeSql_closure1, t.Materialize_getMergeSql_closure2, t.Materialize_getMergeSql_closure3, t.Materialize_getMergeSql_closure4, t.TopLevelFilters_fromJson_closure, t.TopLevelFilters_toJson_closure, t.Schema_visualizationSchema_closure, t.Schema_visualizationSchema_closure0, t.Schema_visualizationSchema_closure1, t.Schema_fromJson_closure, t.Schema_fromJson_closure0, t.Schema_fromJson_closure1, t.Schema_fromJson_closure2, t.Schema_toJson_closure, t.Schema_toJson_closure0, t.Schema_toJson_closure1, t.Schema_toJson_closure2, t.Field_getQueryPlainSql_closure, t.Join_fromJson_closure, t.Join_toJson_closure, t.QueryRequestComparison_QueryRequestComparison$nested_closure, t.QueryRequestComparison_getToValues_closure, t.QueryRequestComparison_getToValues__closure0, t.QueryRequestComparison_getToValues_closure0, t.QueryRequestComparison_getToValues__closure, t.QueryRequestComparison_getFromValue_closure, t.QueryRequestComparison_getSql_closure, t.QueryRequestComparison_getSql_closure0, t.uniqueAlias_closure, t.QueryRequestCommonField_getAggregatedSql_closure, t.QueryRequestDimension_getPlainSql_closure, t.QueryRequestDimension_getColumn_closure, t.QueryRequestMetric_getColumn_closure, t.QueryRequestMetric_getPlainSql_closure, t.QueryRequest__closure0, t.QueryRequest__closure, t.QueryRequest__getJoins_closure, t.QueryRequest__getJoins__closure, t.QueryRequest_fromJson_closure, t.QueryRequest_fromJson_closure0, t.QueryRequest_fromJson_closure1, t.QueryRequest_fromJson_closure2, t.QueryRequest_fromJson_closure3, t.QueryRequest_toJson_closure, t.QueryRequest_toJson_closure0, t.QueryRequest_toJson_closure1, t.QueryRequest_toJson_closure2, t.QueryRequest_toJson_closure3, t.QueryRequest_getColumns_closure, t.QueryRequest_getColumns_closure0, t.QueryRequest__getPlainSqlColumns_closure, t.QueryRequest__getPlainSqlColumns_closure0, t.QueryRequest__getPlainSqlColumns_closure1, t.QueryRequest__getPlainSqlColumns__closure, t.QueryRequest__getPlainSqlSorts_closure, t.QueryRequest__getSqlFilters_closure, t.QueryRequest__getSqlFilters_closure0, t.QueryRequest__getSqlFilters_closure1, t.QueryRequest__getSqlFilters_closure2, t.QueryRequest__getSqlFilters_closure3, t.QueryRequest__getSqlFilters_closure4, t.QueryRequest__getSqlJoins__closure, t.QueryRequest__getSqlJoins__closure0, t.QueryRequest__getRollupSelect_closure0, t.QueryRequest__getRollupSelect_closure2, t.QueryRequest__getRollupSelect_closure3, t.QueryRequest__getRollupSelect_closure4, t.QueryRequest__getRollupSelect_closure6, t.QueryRequest__getRollupSelect_closure7, t.QueryRequest__getRollupSelect_closure8, t.QueryRequest__getRollupSelect_closure9, t.QueryRequest__hasFillGap_closure, t.QueryRequest__getSqlSelectSorts_closure, t.QueryRequest__getSqlSelectSorts__closure, t.QueryRequest__getSqlSelectSorts__closure0, t.QueryRequest_getSqlSelect_closure, t.QueryRequest_getSqlSelect_closure0, t.QueryRequest_getSqlSelect_closure1, t.QueryRequest__transformSqlAlias_closure, t.QueryRequest__getSourceTable_closure, t.QueryRequest__getSourceTable_closure0, t.QueryRequest__getFillGapTable_closure0, t.QueryRequest__getFillGapTable__closure1, t.QueryRequest__getFillGapTable__closure2, t.QueryRequest__getFillGapTable_closure2, t.QueryRequest__getFillGapTable__closure, t.QueryRequest__getFillGapTable__closure0, t.QueryRequest__getFillGapTable_closure3, t.QueryRequest__getFillGapTable_closure4, t.QueryRequest__getFullTable_closure, t.QueryRequest__getFullTable_closure1, t.QueryRequest__getFullTable_closure2, t.QueryRequestSort_getPlainSql_closure, t.QueryRequestSort_getSortSql_closure, t.QueryResponse$map_closure, t.QueryResponse$map__closure, t.QueryResponse$map___closure, t.QueryResponse_toJson_closure, t.QueryResponse_toJson_closure0, t.VisualizationSchema_toJson_closure, t.VisualizationSchema_toJson_closure0, t.VisualizationField_filterDimensionOptions_closure, t.VisualizationField_fillGapDimensionOptions_closure, t.VisualizationField_isNumericAggregations_closure, t.VisualizationField_toJson_closure, t.VisualizationField_toJson_closure0, t.VisualizationField_toJson_closure1, t.VisualizationField_toJson_closure2, t.VisualizationField_toJson_closure3, t.VisualizationField_toJson_closure4, t.VisualizationField_toJson_closure5, t.VisualizationField_toJson_closure6, t.addonFlattenItemSchema_closure, t.addonFlattenItemSchema_closure0, t.adjustmentSchema_closure, t.adjustmentSchema_closure0, t.billSchema_closure, t.billSchema_closure0, t.businessSchema_closure, t.businessSchema_closure0, t.campaignSchema_closure, t.campaignSchema_closure0, t.campaignTierSchema_closure, t.campaignTierSchema_closure0, t.chargeSchema_closure, t.chargeSchema_closure0, t.collectibleCollectionSchema_closure, t.collectibleCollectionSchema_closure0, t.collectibleConfigSchema_closure, t.collectibleConfigSchema_closure0, t.collectibleTransactionSchema_closure, t.collectibleTransactionSchema_closure0, t.counterSchema_closure, t.counterSchema_closure0, t.creditTransactionSchema_closure, t.creditTransactionSchema_closure0, t.drawerSchema_closure, t.drawerSchema_closure0, t.dsBillItemSchema_closure, t.dsBillItemSchema_closure0, t.flattenItemSchema_closure, t.flattenItemSchema_closure0, t.internalPurchaseOrderSchema_closure, t.internalPurchaseOrderSchema_closure0, t.internalPurchaseOrderDeliveryFulfillmentSchema_closure, t.internalPurchaseOrderDeliveryFulfillmentSchema_closure0, t.internalPurchaseOrderDeliveryFulfillmentSkuSchema_closure, t.internalPurchaseOrderDeliveryFulfillmentSkuSchema_closure0, t.internalPurchaseOrderDeliveryOrderSchema_closure, t.internalPurchaseOrderDeliveryOrderSchema_closure0, t.internalPurchaseOrderDeliveryOrderSkuSchema_closure, t.internalPurchaseOrderDeliveryOrderSkuSchema_closure0, t.internalPurchaseOrderItemSchema_closure, t.internalPurchaseOrderItemSchema_closure0, t.inventoryAdjustmentSchema_closure, t.inventoryAdjustmentSchema_closure0, t.inventoryAdjustmentPhysicalSkuSchema_closure, t.inventoryAdjustmentPhysicalSkuSchema_closure0, t.inventoryAdjustmentSkuSchema_closure, t.inventoryAdjustmentSkuSchema_closure0, t.inventoryV1FlattenInventorySchema_closure, t.inventoryV1FlattenInventorySchema_closure0, t.itemSchema_closure, t.itemSchema_closure0, t.itemMovementSchema_closure, t.itemMovementSchema_closure0, t.kitchenStationSchema_closure, t.kitchenStationSchema_closure0, t.memberSchema_closure, t.memberSchema_closure0, t.memberStorePurchaseSchema_closure, t.memberStorePurchaseSchema_closure0, t.memberStorePurchasePaymentSchema_closure, t.memberStorePurchasePaymentSchema_closure0, t.memberTitleSchema_closure, t.memberTitleSchema_closure0, t.memberV2Schema_closure, t.memberV2Schema_closure0, t.membershipSchema_closure, t.membershipSchema_closure0, t.membershipTitleSchema_closure, t.membershipTitleSchema_closure0, t.menuV3GroupSchema_closure, t.menuV3GroupSchema_closure0, t.menuV3ItemSchema_closure, t.menuV3ItemSchema_closure0, t.menuV3SkuSchema_closure, t.menuV3SkuSchema_closure0, t.menuV4GroupSchema_closure, t.menuV4GroupSchema_closure0, t.menuV4ItemSchema_closure, t.menuV4ItemSchema_closure0, t.menuV4ItemInventoryBindingSchema_closure, t.menuV4ItemInventoryBindingSchema_closure0, t.menuV4SkuSchema_closure, t.menuV4SkuSchema_closure0, t.parentFlattenItemSchema_closure, t.parentFlattenItemSchema_closure0, t.paymentSchema_closure, t.paymentSchema_closure0, t.paymentTimePaymentSchema_closure, t.paymentTimePaymentSchema_closure0, t.purchaseOrderSchema_closure, t.purchaseOrderSchema_closure0, t.purchaseOrderDeliveryFulfillmentSchema_closure, t.purchaseOrderDeliveryFulfillmentSchema_closure0, t.purchaseOrderDeliveryFulfillmentSkuSchema_closure, t.purchaseOrderDeliveryFulfillmentSkuSchema_closure0, t.purchaseOrderDeliveryOrderSchema_closure, t.purchaseOrderDeliveryOrderSchema_closure0, t.purchaseOrderDeliveryOrderSkuSchema_closure, t.purchaseOrderDeliveryOrderSkuSchema_closure0, t.purchaseOrderItemSchema_closure, t.purchaseOrderItemSchema_closure0, t.recommendationCallSchema_closure, t.recommendationCallSchema_closure0, t.recordSchema_closure, t.recordSchema_closure0, t.refundBillSchema_closure, t.refundBillSchema_closure0, t.restaurantSchema_closure, t.restaurantSchema_closure0, t.restaurantFeatureSchema_closure, t.restaurantFeatureSchema_closure0, t.restaurantLocationSchema_closure, t.restaurantLocationSchema_closure0, t.reviewSchema_closure, t.reviewSchema_closure0, t.slotSchema_closure, t.slotSchema_closure0, t.staffSchema_closure, t.staffSchema_closure0, t.stockSchema_closure, t.stockSchema_closure0, t.storeBundleSchema_closure, t.storeBundleSchema_closure0, t.storeTransactionSchema_closure, t.storeTransactionSchema_closure0, t.subItemSchema_closure, t.subItemSchema_closure0, t.timesheetSchema_closure, t.timesheetSchema_closure0, t.timesheetRecordSchema_closure, t.timesheetRecordSchema_closure0, t.userSchema_closure, t.userSchema_closure0, t.voucherClaimSchema_closure, t.voucherClaimSchema_closure0, t.voucherClaimRedemptionSchema_closure, t.voucherClaimRedemptionSchema_closure0, t.warehouseLocationSchema_closure, t.warehouseLocationSchema_closure0, t.QueryEngine_getSql_closure, t.BaseDatasourceConfigModel_drilledDimensionIds_closure, t.BaseDatasourceConfigModel_metricIds_closure, t.BaseDatasourceConfigModel_toJson_closure, t.BaseDatasourceConfigModel_toJson_closure0, t.BaseDatasourceConfigModel_toJson_closure1, t.BaseDatasourceConfigModel_toJson_closure2, t.BaseDatasourceConfigModel_toJson_closure3, t.BaseDatasourceConfigModel_toJson_closure4, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure0, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure1, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure2, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure3, t.DataSourceDrillConfig_drilledDimensions_closure, t.DataSourceRowColumnConfig_rowIds_closure, t.DataSourceRowColumnConfig_rowIds_closure0, t.DataSourceRowColumnConfig_rowIds_closure2, t.DataSourceRowColumnConfig_rowIds_closure1, t.DataSourceRowColumnConfig_columnIds_closure, t.DataSourceRowColumnConfig_columnIds_closure0, t.DataSourceRowColumnConfig_columnIds_closure1, t.TableDatasourceConfigModel_joinDatasources_closure, t.TableDatasourceConfigModel_toRequests___closure, t.TableDatasourceConfigModel_toRequests_closure0, t.TableDatasourceConfigModel_toJson_closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson_closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson___closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson___closure0, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson____closure, t.JoinDatasourceConfig_JoinDatasourceConfig$fromJson_closure, t.JoinDatasourceConfig_toJson_closure, t.JoinDatasourceCondition_JoinDatasourceCondition$fromJson_closure, t.JoinDatasourceCondition_toJson_closure, t.getSchemas_closure, t.getVisualizationSchemas_closure, t.sqlResponsesToQueryResponses_closure, t.sqlResponsesToQueryResponses_closure1, t.getQueryRequests_closure, t.getQueryRequests_closure0, t.getQueryRequests_closure1, t.getQueryRequests_closure2, t.getQueryRequests_closure3, t.getQueryRequests_closure4, t.getQueryRequests_closure5, t.getQueryRequests_closure6, t.getQueryRequests_closure7, t.getQueryRequests_closure8, t.getQueryRequests_closure9]), n(t.Closure2Args, [t.ConstantMap_map_closure, t.Primitives_functionNoSuchMethod_closure, t.JsLinkedHashMap_addAll_closure, t.initHooks_closure0, t.LinkedHashMap_LinkedHashMap$from_closure, t.MapBase_mapToString_closure, t._JsonStringifier_writeMap_closure, t.NoSuchMethodError_toString_closure, t.DateFormat__fieldConstructors_closure, t.DateFormat__fieldConstructors_closure0, t.DateFormat__fieldConstructors_closure1, t.Jiffy__parseMap_closure, t.Join_getConditionsSql_closure, t.QueryRequest_closure, t.QueryRequest_closure0, t.QueryRequest__getPlainSqlColumns_closure2, t.QueryRequest__getSqlJoins_closure, t.QueryRequest__getRollupSelect_closure, t.QueryRequest__getRollupSelect_closure1, t.QueryRequest__getRollupSelect_closure5, t.QueryRequest__getSqlSelectSorts_closure0, t.QueryRequest__getSortedLimitTable_closure, t.QueryRequest__getFillGapTable_closure, t.QueryRequest__getFillGapTable_closure1, t.QueryRequest__getFullTable_closure0, t.VisualizationSchema_closure, t.DataSourceDrillConfig__availableIds_closure, t.DataSourceRowColumnConfig__availableIds_closure, t.DataSourceRowColumnConfig__availableIds_closure0, t.TableDatasourceConfigModel_drilledDimensions_closure, t.TableDatasourceConfigModel_toRequests_closure, t.TableDatasourceConfigModel_toRequests__closure0, t.TableDatasourceConfigModel_toRequests__closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson__closure, t.sqlResponsesToQueryResponses_closure0]), i(t.ConstantStringMap, t.ConstantMap), i(t.NullError, t.TypeError), n(t.TearOffClosure, [t.StaticClosure, t.BoundClosure]), i(t.MapBase, t.MapMixin), n(t.MapBase, [t.JsLinkedHashMap, t._JsonMap]), n(t.IterableBase, [t._AllMatchesIterable, t._SyncStarIterable]), i(t.NativeTypedArray, t.NativeTypedData), i(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, t.NativeTypedArray), i(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin), i(t.NativeTypedArrayOfInt, t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin), n(t.NativeTypedArrayOfInt, [t.NativeUint16List, t.NativeUint32List, t.NativeUint8List]), i(t._TypeError, t._Error), n(t.JsLinkedHashMap, [t._LinkedIdentityHashMap, t._LinkedCustomHashMap]), i(t._SetBase, t.__SetBase_Object_SetMixin), i(t._LinkedHashSet, t._SetBase), i(t.ListBase, t._ListBase_Object_ListMixin), i(t.Converter, t.StreamTransformerBase), n(t.Codec, [t.Encoding, t.JsonCodec]), i(t.JsonCyclicError, t.JsonUnsupportedObjectError), n(t.Converter, [t.JsonEncoder, t.JsonDecoder, t.Utf8Encoder]), i(t._JsonStringStringifier, t._JsonStringifier), i(t.Utf8Codec, t.Encoding), n(t.ArgumentError, [t.RangeError, t.IndexError]), i(t.DigestSink, t.Sink), i(t._Sha1Sink, t.HashSink), n(t._DateFormatField, [t._DateFormatLiteralField, t._DateFormatQuotedField, t._DateFormatPatternField]), n(t._Enum, [t.StartOfWeek, t.Units, t.SOURCE_TYPE, t.SCHEMA_NAME, t.DATA_TYPE, t.AGGREGATION_TYPE, t.COMPARISON_OPERATOR, t.DIMENSION_OPTION, t.TIME_FORMATTER, t.SORT_TYPE, t.PermissionType, t.INDEX_METHOD, t.FIELD_TYPE, t.ChartType]), n(t.Locale, [t.ArLyLocale, t.ArSaMaDzKwTnLocale, t.AzLocale, t.BnLocale, t.DeLocale, t.EnLocale, t.EsLocale, t.FaLocale, t.FrLocale, t.HiLocale, t.IdLocale, t.ItLocale, t.JaLocale, t.KoLocale, t.NbLocale, t.NlLocale, t.PlLocale, t.PtLocale, t.RuLocale, t.SvLocale, t.ThLocale, t.TrLocale, t.UkLocale, t.ZhCnLocale, t.ZhLocale]), n(t.NodeJsError, [t.JsAssertionError, t.JsRangeError, t.JsReferenceError, t.JsSyntaxError, t.JsTypeError, t.JsSystemError]), n(t.Socket, [t.TTYReadStream, t.TTYWriteStream]), n(t.Field, [t._NumericField, t._TimestampField, t._BoolField, t._StringField]), n(t.QueryRequestComparisonTarget, [t._QueryRequestComparisonTargetValue, t._QueryRequestComparisonTargetVariable]), n(t.QueryRequestCommonField, [t.QueryRequestDimension, t.QueryRequestMetric, t.QueryRequestFilter, t.QueryRequestSort]), i(t.QueryRequest__getSqlFilters__closure, t.Closure0Args), n(t.BaseDatasourceConfigModel, [t._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, t.ScorecardDatasourceConfigModel, t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig]), i(t.CircularDatasourceConfigModel, t._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig), i(t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig, t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig), i(t.TableDatasourceConfigModel, t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig), i(t.JoinDatasourceConfig, t._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig), i(t.BaseXYDatasourceConfigModel, t._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig), i(t.TypedDataBuffer, t.ListBase), i(t._IntBuffer, t.TypedDataBuffer), i(t.Uint8Buffer, t._IntBuffer), e(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, t.ListMixin), e(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, t.FixedLengthListMixin), e(t._ListBase_Object_ListMixin, t.ListMixin), e(t._UnmodifiableMapView_MapView__UnmodifiableMapMixin, t._UnmodifiableMapMixin), e(t.__SetBase_Object_SetMixin, t.SetMixin), e(t._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, t.DataSourceDrillConfig), e(t._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t.DataSourceRowColumnConfig), e(t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t.DataSourceRowColumnConfig), e(t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig, t.DataSourceDrillConfig), e(t._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, t.DataSourceDrillConfig);
9544
9544
  }();
9545
9545
  var T = {
@@ -9686,7 +9686,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
9686
9686
  };
9687
9687
  }();
9688
9688
  (function() {
9689
- var e = K.makeConstList;
9689
+ var e = j.makeConstList;
9690
9690
  u.Interceptor_methods = o.Interceptor.prototype, u.JSArray_methods = o.JSArray.prototype, u.JSInt_methods = o.JSInt.prototype, u.JSNumber_methods = o.JSNumber.prototype, u.JSString_methods = o.JSString.prototype, u.JavaScriptFunction_methods = o.JavaScriptFunction.prototype, u.JavaScriptObject_methods = o.JavaScriptObject.prototype, u.NativeUint8List_methods = t.NativeUint8List.prototype, u.PlainJavaScriptObject_methods = o.PlainJavaScriptObject.prototype, u.UnknownJavaScriptObject_methods = o.UnknownJavaScriptObject.prototype, u.AGGREGATION_TYPE_0 = new t.AGGREGATION_TYPE(0, "SUM"), u.AGGREGATION_TYPE_1 = new t.AGGREGATION_TYPE(1, "AVERAGE"), u.AGGREGATION_TYPE_2 = new t.AGGREGATION_TYPE(2, "COUNT"), u.AGGREGATION_TYPE_3 = new t.AGGREGATION_TYPE(3, "COUNT_DISTINCT"), u.AGGREGATION_TYPE_4 = new t.AGGREGATION_TYPE(4, "FIRST"), u.AGGREGATION_TYPE_5 = new t.AGGREGATION_TYPE(5, "LAST"), u.AGGREGATION_TYPE_6 = new t.AGGREGATION_TYPE(6, "ANY"), u.AGGREGATION_TYPE_7 = new t.AGGREGATION_TYPE(7, "MERGE"), u.AGGREGATION_TYPE_8 = new t.AGGREGATION_TYPE(8, "MIN"), u.AGGREGATION_TYPE_9 = new t.AGGREGATION_TYPE(9, "MAX"), u.COMPARISON_OPERATOR_0 = new t.COMPARISON_OPERATOR(0, "EQUAL"), u.COMPARISON_OPERATOR_1 = new t.COMPARISON_OPERATOR(1, "NOT_EQUAL"), u.COMPARISON_OPERATOR_10 = new t.COMPARISON_OPERATOR(10, "OR"), u.COMPARISON_OPERATOR_2 = new t.COMPARISON_OPERATOR(2, "GREATER_THAN"), u.COMPARISON_OPERATOR_3 = new t.COMPARISON_OPERATOR(3, "LESS_THAN"), u.COMPARISON_OPERATOR_4 = new t.COMPARISON_OPERATOR(4, "GREATER_THAN_OR_EQUAL"), u.COMPARISON_OPERATOR_5 = new t.COMPARISON_OPERATOR(5, "LESS_THAN_OR_EQUAL"), u.COMPARISON_OPERATOR_6 = new t.COMPARISON_OPERATOR(6, "BETWEEN"), u.COMPARISON_OPERATOR_7 = new t.COMPARISON_OPERATOR(7, "LIKE"), u.COMPARISON_OPERATOR_8 = new t.COMPARISON_OPERATOR(8, "NOT_LIKE"), u.C_EmptyIterator = new t.EmptyIterator(), u.C_Endian = new t.Endian(), u.C_Endian0 = new t.Endian(), u.C_JS_CONST = function(n) {
9691
9691
  var a = Object.prototype.toString.call(n);
9692
9692
  return a.substring(8, a.length - 1);
@@ -9788,7 +9788,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
9788
9788
  })(), function() {
9789
9789
  S._JS_INTEROP_INTERCEPTOR_TAG = null, S.Primitives__identityHashCodeProperty = null, S.BoundClosure__receiverFieldNameCache = null, S.BoundClosure__interceptorFieldNameCache = null, S.getTagFunction = null, S.alternateTagFunction = null, S.prototypeForTagFunction = null, S.dispatchRecordsForInstanceTags = null, S.interceptorsForUncacheableTags = null, S.initNativeDispatchFlag = null, S._toStringVisiting = t._setArrayType([], t.findType("JSArray<Object>")), S.cachedDateSymbols = null, S.lastDateSymbolLocale = null, S._defaultLocale = null, S.DateFormat__useNativeDigitsByDefault = t.LinkedHashMap_LinkedHashMap$_empty(y.String, y.bool), S.DateFormat__digitMatchers = t.LinkedHashMap_LinkedHashMap$_empty(y.String, t.findType("RegExp")), S.Jiffy____defaultLocale = t._Cell$(), S.VisualizationField__filterDimensionOptions = t._setArrayType([u.DIMENSION_OPTION_5, u.DIMENSION_OPTION_6, u.DIMENSION_OPTION_7, u.DIMENSION_OPTION_8, u.DIMENSION_OPTION_9], y.JSArray_DIMENSION_OPTION), S.VisualizationField__fillGapDimensionOptions = t._setArrayType([u.DIMENSION_OPTION_1, u.DIMENSION_OPTION_2, u.DIMENSION_OPTION_3, u.DIMENSION_OPTION_4, u.DIMENSION_OPTION_6, u.DIMENSION_OPTION_7, u.DIMENSION_OPTION_8, u.DIMENSION_OPTION_9, u.DIMENSION_OPTION_10], y.JSArray_DIMENSION_OPTION), S.VisualizationField__isNumericAggregations = t._setArrayType([u.AGGREGATION_TYPE_2, u.AGGREGATION_TYPE_3], y.JSArray_AGGREGATION_TYPE);
9790
9790
  }(), function() {
9791
- var e = K.lazyFinal, i = K.lazy;
9791
+ var e = j.lazyFinal, i = j.lazy;
9792
9792
  e(S, "DART_CLOSURE_PROPERTY_NAME", "$get$DART_CLOSURE_PROPERTY_NAME", () => t.getIsolateAffinityTag("_$dart_dartClosure")), e(S, "TypeErrorDecoder_noSuchMethodPattern", "$get$TypeErrorDecoder_noSuchMethodPattern", () => t.TypeErrorDecoder_extractPattern(t.TypeErrorDecoder_provokeCallErrorOn({
9793
9793
  toString: function() {
9794
9794
  return "$receiver$";
@@ -9825,8 +9825,8 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
9825
9825
  return n.message;
9826
9826
  }
9827
9827
  }())), e(S, "DateTime__parseFormat", "$get$DateTime__parseFormat", () => t.RegExp_RegExp("^([+-]?\\d{4,6})-?(\\d\\d)-?(\\d\\d)(?:[ T](\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d+))?)?)?( ?[zZ]| ?([-+])(\\d\\d)(?::?(\\d\\d))?)?)?$")), e(S, "_hashSeed", "$get$_hashSeed", () => t.objectHashCode(u.Type_Object_xQ6)), e(S, "Endian_host", "$get$Endian_host", () => t.NativeByteData_NativeByteData$view(t.NativeUint16List__create1(t._ensureNativeList(t._setArrayType([1], y.JSArray_int))).buffer, 0, null).getInt8(0) === 1 ? u.C_Endian0 : u.C_Endian), e(S, "_clockKey", "$get$_clockKey", () => new t.Object()), e(S, "en_USSymbols", "$get$en_USSymbols", () => new t.DateSymbols("en_US", u.List_BC_AD, u.List_6xs, u.List_qpm, u.List_qpm, u.List_cIc, u.List_cIc, u.List_h8w, u.List_h8w, u.List_wMy, u.List_wMy, u.List_gc6, u.List_gc6, u.List_3US, u.List_AM_PM)), i(S, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => t.UninitializedLocaleData$("initializeDateFormatting(<locale>)", S.$get$en_USSymbols())), i(S, "dateTimePatterns", "$get$dateTimePatterns", () => t.UninitializedLocaleData$("initializeDateFormatting(<locale>)", u.Map_EQ6TW)), e(S, "asciiZeroCodeUnit", "$get$asciiZeroCodeUnit", () => 48), e(S, "DateFormat__matchers", "$get$DateFormat__matchers", () => t._setArrayType([t.RegExp_RegExp("^'(?:[^']|'')*'"), t.RegExp_RegExp("^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|D+|m+|s+|v+|z+|Z+)"), t.RegExp_RegExp("^[^'GyMkSEahKHcLQdDmsvzZ]+")], t.findType("JSArray<RegExp>"))), e(S, "_DateFormatQuotedField__twoEscapedQuotes", "$get$_DateFormatQuotedField__twoEscapedQuotes", () => t.RegExp_RegExp("''")), e(S, "asciiDigitMatcher", "$get$asciiDigitMatcher", () => t.RegExp_RegExp("^\\d+")), i(S, "_availableLocales", "$get$_availableLocales", () => {
9828
- var n, a, s = t.EnLocale$(u.StartOfWeek_1), l = t.EnLocale$(u.StartOfWeek_1), _ = t.EnLocale$(u.StartOfWeek_1), d = t.EnLocale$(u.StartOfWeek_1), c = t.EnLocale$(u.StartOfWeek_1), f = t.EnLocale$(u.StartOfWeek_2), $ = t.EnLocale$(u.StartOfWeek_2), g = t.EnLocale$(u.StartOfWeek_1), m = t.EnLocale$(u.StartOfWeek_1), h = t.EsLocale$(u.StartOfWeek_2), A = t.EsLocale$(u.StartOfWeek_2), E = t.EsLocale$(u.StartOfWeek_1), M = t.FrLocale$(u.StartOfWeek_2), b = t.FrLocale$(u.StartOfWeek_2), R = t.FrLocale$(u.StartOfWeek_1), C = t.ZhCnLocale$(u.StartOfWeek_1), O = t.ZhCnLocale$(u.StartOfWeek_1), D = t.ZhLocale$(u.StartOfWeek_1), L = t.ZhLocale$(u.StartOfWeek_1), v = t.DeLocale$(u.StartOfWeek_2), x = t.DeLocale$(u.StartOfWeek_2), q = t.DeLocale$(u.StartOfWeek_2), pe = t.DeLocale$(u.StartOfWeek_2), Ce = t.ItLocale$(u.StartOfWeek_2), be = t.ItLocale$(u.StartOfWeek_2), Re = t.ArLyLocale$(!0, u.StartOfWeek_0), Fe = t.ArLyLocale$(!1, u.StartOfWeek_0), Oe = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_1), Le = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_1), we = t.ArSaMaDzKwTnLocale$(!0, u.StartOfWeek_1), ve = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_0), De = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_0);
9829
- return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), n = t.PtLocale$(u.StartOfWeek_2), a = t.PtLocale$(u.StartOfWeek_1), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.LinkedHashMap_LinkedHashMap$_literal(["en", s, "en_us", l, "en_sg", _, "en_au", d, "en_ca", c, "en_gb", f, "en_ie", $, "en_il", g, "en_nz", m, "es", h, "es_do", A, "es_us", E, "fr", M, "fr_ch", b, "fr_ca", R, "zh", C, "zh_cn", O, "zh_hk", D, "zh_tw", L, "de", v, "de_de", x, "de_at", q, "de_ch", pe, "it", Ce, "it_ch", be, "ar", Re, "ar_ly", Fe, "ar_dz", Oe, "ar_kw", Le, "ar_sa", we, "ar_ma", ve, "ar_tn", De, "az", new t.AzLocale(u.StartOfWeek_2), "id", new t.IdLocale(u.StartOfWeek_1), "ja", new t.JaLocale(u.StartOfWeek_1), "ko", new t.KoLocale(u.StartOfWeek_1), "ru", new t.RuLocale(u.StartOfWeek_2), "uk", new t.UkLocale(u.StartOfWeek_2), "hi", new t.HiLocale(u.StartOfWeek_1), "pt", n, "pt_br", a, "pl", new t.PlLocale(u.StartOfWeek_2), "tr", new t.TrLocale(u.StartOfWeek_2), "sv", new t.SvLocale(u.StartOfWeek_2), "nb", new t.NbLocale(u.StartOfWeek_2), "fa", new t.FaLocale(u.StartOfWeek_0), "bn", new t.BnLocale(u.StartOfWeek_1), "nl", new t.NlLocale(u.StartOfWeek_2), "th", new t.ThLocale(u.StartOfWeek_1)], y.String, t.findType("Locale"));
9828
+ var n, a, s = t.EnLocale$(u.StartOfWeek_1), l = t.EnLocale$(u.StartOfWeek_1), _ = t.EnLocale$(u.StartOfWeek_1), d = t.EnLocale$(u.StartOfWeek_1), c = t.EnLocale$(u.StartOfWeek_1), f = t.EnLocale$(u.StartOfWeek_2), $ = t.EnLocale$(u.StartOfWeek_2), g = t.EnLocale$(u.StartOfWeek_1), m = t.EnLocale$(u.StartOfWeek_1), h = t.EsLocale$(u.StartOfWeek_2), A = t.EsLocale$(u.StartOfWeek_2), E = t.EsLocale$(u.StartOfWeek_1), M = t.FrLocale$(u.StartOfWeek_2), b = t.FrLocale$(u.StartOfWeek_2), R = t.FrLocale$(u.StartOfWeek_1), C = t.ZhCnLocale$(u.StartOfWeek_1), O = t.ZhCnLocale$(u.StartOfWeek_1), D = t.ZhLocale$(u.StartOfWeek_1), L = t.ZhLocale$(u.StartOfWeek_1), v = t.DeLocale$(u.StartOfWeek_2), x = t.DeLocale$(u.StartOfWeek_2), B = t.DeLocale$(u.StartOfWeek_2), ce = t.DeLocale$(u.StartOfWeek_2), Ce = t.ItLocale$(u.StartOfWeek_2), be = t.ItLocale$(u.StartOfWeek_2), Re = t.ArLyLocale$(!0, u.StartOfWeek_0), Fe = t.ArLyLocale$(!1, u.StartOfWeek_0), Oe = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_1), Le = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_1), we = t.ArSaMaDzKwTnLocale$(!0, u.StartOfWeek_1), ve = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_0), De = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_0);
9829
+ return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), n = t.PtLocale$(u.StartOfWeek_2), a = t.PtLocale$(u.StartOfWeek_1), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.LinkedHashMap_LinkedHashMap$_literal(["en", s, "en_us", l, "en_sg", _, "en_au", d, "en_ca", c, "en_gb", f, "en_ie", $, "en_il", g, "en_nz", m, "es", h, "es_do", A, "es_us", E, "fr", M, "fr_ch", b, "fr_ca", R, "zh", C, "zh_cn", O, "zh_hk", D, "zh_tw", L, "de", v, "de_de", x, "de_at", B, "de_ch", ce, "it", Ce, "it_ch", be, "ar", Re, "ar_ly", Fe, "ar_dz", Oe, "ar_kw", Le, "ar_sa", we, "ar_ma", ve, "ar_tn", De, "az", new t.AzLocale(u.StartOfWeek_2), "id", new t.IdLocale(u.StartOfWeek_1), "ja", new t.JaLocale(u.StartOfWeek_1), "ko", new t.KoLocale(u.StartOfWeek_1), "ru", new t.RuLocale(u.StartOfWeek_2), "uk", new t.UkLocale(u.StartOfWeek_2), "hi", new t.HiLocale(u.StartOfWeek_1), "pt", n, "pt_br", a, "pl", new t.PlLocale(u.StartOfWeek_2), "tr", new t.TrLocale(u.StartOfWeek_2), "sv", new t.SvLocale(u.StartOfWeek_2), "nb", new t.NbLocale(u.StartOfWeek_2), "fa", new t.FaLocale(u.StartOfWeek_0), "bn", new t.BnLocale(u.StartOfWeek_1), "nl", new t.NlLocale(u.StartOfWeek_2), "th", new t.ThLocale(u.StartOfWeek_1)], y.String, t.findType("Locale"));
9830
9830
  }), e(S, "addonFlattenItemSchema", "$get$addonFlattenItemSchema", () => {
9831
9831
  var n = "createdAt", a = t.Source_Source$couchdb("", ""), s = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], y.JSArray_Permission), n);
9832
9832
  return t.Schema_Schema$build(t._setArrayType(["restaurantId"], y.JSArray_String), null, new t.addonFlattenItemSchema_closure(), u.List_empty, null, null, !1, !1, !0, !1, new t.addonFlattenItemSchema_closure0(), "Addon", "flatten_items", "flatten_item", u.SCHEMA_NAME_6, n, "", a, s);
@@ -10051,7 +10051,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
10051
10051
  (function() {
10052
10052
  var e = function(_) {
10053
10053
  var d = {};
10054
- return d[_] = 1, Object.keys(K.convertToFastObject(d))[0];
10054
+ return d[_] = 1, Object.keys(j.convertToFastObject(d))[0];
10055
10055
  };
10056
10056
  T.getIsolateTag = function(_) {
10057
10057
  return e("___dart_" + _ + T.isolateTag);
@@ -10064,7 +10064,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
10064
10064
  }
10065
10065
  }
10066
10066
  T.dispatchPropertyName = T.getIsolateTag("dispatch_record");
10067
- })(), K.setOrUpdateInterceptorsByTag({ ArrayBuffer: o.Interceptor, DataView: t.NativeTypedData, ArrayBufferView: t.NativeTypedData, Uint16Array: t.NativeUint16List, Uint32Array: t.NativeUint32List, Uint8Array: t.NativeUint8List }), K.setOrUpdateLeafTags({ ArrayBuffer: !0, DataView: !0, ArrayBufferView: !1, Uint16Array: !0, Uint32Array: !0, Uint8Array: !1 }), t.NativeTypedArray.$nativeSuperclassTag = "ArrayBufferView", t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.$nativeSuperclassTag = "ArrayBufferView", t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.$nativeSuperclassTag = "ArrayBufferView", t.NativeTypedArrayOfInt.$nativeSuperclassTag = "ArrayBufferView";
10067
+ })(), j.setOrUpdateInterceptorsByTag({ ArrayBuffer: o.Interceptor, DataView: t.NativeTypedData, ArrayBufferView: t.NativeTypedData, Uint16Array: t.NativeUint16List, Uint32Array: t.NativeUint32List, Uint8Array: t.NativeUint8List }), j.setOrUpdateLeafTags({ ArrayBuffer: !0, DataView: !0, ArrayBufferView: !1, Uint16Array: !0, Uint32Array: !0, Uint8Array: !1 }), t.NativeTypedArray.$nativeSuperclassTag = "ArrayBufferView", t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.$nativeSuperclassTag = "ArrayBufferView", t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.$nativeSuperclassTag = "ArrayBufferView", t.NativeTypedArrayOfInt.$nativeSuperclassTag = "ArrayBufferView";
10068
10068
  }(), Function.prototype.call$1 = function(r) {
10069
10069
  return this(r);
10070
10070
  }, Function.prototype.call$0 = function() {
@@ -10077,7 +10077,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
10077
10077
  return this(r, e, i);
10078
10078
  }, Function.prototype.call$8 = function(r, e, i, n, a, s, l, _) {
10079
10079
  return this(r, e, i, n, a, s, l, _);
10080
- }, ue(p), function(r) {
10080
+ }, ie(p), function(r) {
10081
10081
  if (typeof document > "u") {
10082
10082
  r(null);
10083
10083
  return;
@@ -10101,16 +10101,16 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
10101
10101
  });
10102
10102
  })();
10103
10103
  })(Me);
10104
- var Qe = {};
10104
+ var Ue = {};
10105
10105
  (function(F) {
10106
10106
  F.load = function(w, J) {
10107
- var H = typeof process < "u" && (process.versions || {}).hasOwnProperty("node"), N = H ? Object.create(globalThis) : globalThis;
10107
+ var U = typeof process < "u" && (process.versions || {}).hasOwnProperty("node"), N = U ? Object.create(globalThis) : globalThis;
10108
10108
  if (N.scheduleImmediate = typeof setImmediate < "u" ? function(k) {
10109
10109
  setImmediate(k);
10110
10110
  } : function(k) {
10111
10111
  setTimeout(k, 0);
10112
- }, N.exports = J || F, typeof process < "u" && (N.process = process), typeof __dirname < "u" && (N.__dirname = __dirname), typeof __filename < "u" && (N.__filename = __filename), typeof Buffer < "u" && (N.Buffer = Buffer), H) {
10113
- var Q = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : Be)("url");
10112
+ }, N.exports = J || F, typeof process < "u" && (N.process = process), typeof __dirname < "u" && (N.__dirname = __dirname), typeof __filename < "u" && (N.__filename = __filename), typeof Buffer < "u" && (N.Buffer = Buffer), U) {
10113
+ var Q = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : He)("url");
10114
10114
  Object.defineProperty(N, "location", {
10115
10115
  value: {
10116
10116
  get href() {
@@ -10124,10 +10124,10 @@ var Qe = {};
10124
10124
  function k() {
10125
10125
  try {
10126
10126
  throw new Error();
10127
- } catch (z) {
10128
- var B = z.stack, U = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), V = null;
10127
+ } catch (Y) {
10128
+ var H = Y.stack, q = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), V = null;
10129
10129
  do {
10130
- var G = U.exec(B);
10130
+ var G = q.exec(H);
10131
10131
  G != null && (V = G);
10132
10132
  } while (G != null);
10133
10133
  return V[1];
@@ -10141,11 +10141,11 @@ var Qe = {};
10141
10141
  }
10142
10142
  }
10143
10143
  });
10144
- }(), N.dartDeferredLibraryLoader = function(k, P, B) {
10144
+ }(), N.dartDeferredLibraryLoader = function(k, P, H) {
10145
10145
  try {
10146
10146
  load(k), P();
10147
- } catch (U) {
10148
- B(U);
10147
+ } catch (q) {
10148
+ H(q);
10149
10149
  }
10150
10150
  };
10151
10151
  }
@@ -10156,13 +10156,13 @@ var Qe = {};
10156
10156
  i[s] = e[s];
10157
10157
  }
10158
10158
  }
10159
- function B(e, i) {
10159
+ function H(e, i) {
10160
10160
  for (var n = Object.keys(e), a = 0; a < n.length; a++) {
10161
10161
  var s = n[a];
10162
10162
  i.hasOwnProperty(s) || (i[s] = e[s]);
10163
10163
  }
10164
10164
  }
10165
- function U(e, i) {
10165
+ function q(e, i) {
10166
10166
  Object.assign(i, e);
10167
10167
  }
10168
10168
  var V = function() {
@@ -10194,17 +10194,17 @@ var Qe = {};
10194
10194
  P(e.prototype, n), e.prototype = n;
10195
10195
  }
10196
10196
  }
10197
- function z(e, i) {
10197
+ function Y(e, i) {
10198
10198
  for (var n = 0; n < i.length; n++)
10199
10199
  G(i[n], e);
10200
10200
  }
10201
- function ne(e, i) {
10202
- U(i.prototype, e.prototype), e.prototype.constructor = e;
10201
+ function ae(e, i) {
10202
+ q(i.prototype, e.prototype), e.prototype.constructor = e;
10203
10203
  }
10204
10204
  function oe(e, i) {
10205
- B(i.prototype, e.prototype), e.prototype.constructor = e;
10205
+ H(i.prototype, e.prototype), e.prototype.constructor = e;
10206
10206
  }
10207
- function re(e, i, n, a) {
10207
+ function Z(e, i, n, a) {
10208
10208
  var s = e;
10209
10209
  e[i] = s, e[n] = function() {
10210
10210
  e[n] = function() {
@@ -10221,7 +10221,7 @@ var Qe = {};
10221
10221
  return l;
10222
10222
  };
10223
10223
  }
10224
- function se(e, i, n, a) {
10224
+ function fe(e, i, n, a) {
10225
10225
  var s = e;
10226
10226
  e[i] = s, e[n] = function() {
10227
10227
  return e[i] === s && (e[i] = a()), e[n] = function() {
@@ -10229,7 +10229,7 @@ var Qe = {};
10229
10229
  }, e[i];
10230
10230
  };
10231
10231
  }
10232
- function W(e, i, n, a) {
10232
+ function se(e, i, n, a) {
10233
10233
  var s = e;
10234
10234
  e[i] = s, e[n] = function() {
10235
10235
  if (e[i] === s) {
@@ -10242,13 +10242,13 @@ var Qe = {};
10242
10242
  }, _;
10243
10243
  };
10244
10244
  }
10245
- function _e(e) {
10245
+ function ye(e) {
10246
10246
  return e.immutable$list = Array, e.fixed$length = Array, e;
10247
10247
  }
10248
- function ue(e) {
10248
+ function ie(e) {
10249
10249
  return e;
10250
10250
  }
10251
- function de(e) {
10251
+ function ee(e) {
10252
10252
  for (var i = 0; i < e.length; ++i)
10253
10253
  e[i];
10254
10254
  }
@@ -10260,23 +10260,23 @@ var Qe = {};
10260
10260
  return n === null && (n = o.closureFromTearOff(i)), new n(this, null);
10261
10261
  };
10262
10262
  }
10263
- function ce(e) {
10263
+ function ue(e) {
10264
10264
  var i = null;
10265
10265
  return function() {
10266
10266
  return i === null && (i = o.closureFromTearOff(e).prototype), i;
10267
10267
  };
10268
10268
  }
10269
- var ae = 0;
10270
- function ie(e, i, n, a, s, l, _, d, c, f) {
10271
- return typeof d == "number" && (d += ae), { co: e, iS: i, iI: n, rC: a, dV: s, cs: l, fs: _, fT: d, aI: c || 0, nDA: f };
10269
+ var _e = 0;
10270
+ function ne(e, i, n, a, s, l, _, d, c, f) {
10271
+ return typeof d == "number" && (d += _e), { co: e, iS: i, iI: n, rC: a, dV: s, cs: l, fs: _, fT: d, aI: c || 0, nDA: f };
10272
10272
  }
10273
- function ye(e, i, n, a, s, l, _, d) {
10274
- var c = ie(e, !0, !1, n, a, s, l, _, d, !1), f = ce(c);
10273
+ function de(e, i, n, a, s, l, _, d) {
10274
+ var c = ne(e, !0, !1, n, a, s, l, _, d, !1), f = ue(c);
10275
10275
  e[i] = f;
10276
10276
  }
10277
10277
  function he(e, i, n, a, s, l, _, d, c, f) {
10278
10278
  n = !!n;
10279
- var $ = ie(e, !1, n, a, s, l, _, d, c, !!f), g = le(n, $);
10279
+ var $ = ne(e, !1, n, a, s, l, _, d, c, !!f), g = le(n, $);
10280
10280
  e[i] = g;
10281
10281
  }
10282
10282
  function Te(e) {
@@ -10299,7 +10299,7 @@ var Qe = {};
10299
10299
  var i = I.types, n = i.length;
10300
10300
  return i.push.apply(i, e), n;
10301
10301
  }
10302
- function K(e, i) {
10302
+ function j(e, i) {
10303
10303
  return P(i, e), e;
10304
10304
  }
10305
10305
  var t = function() {
@@ -10309,10 +10309,10 @@ var Qe = {};
10309
10309
  };
10310
10310
  }, i = function(n, a, s, l) {
10311
10311
  return function(_, d, c, f) {
10312
- return ye(_, d, n, a, s, [c], f, l);
10312
+ return de(_, d, n, a, s, [c], f, l);
10313
10313
  };
10314
10314
  };
10315
- return { inherit: G, inheritMany: z, mixin: ne, mixinHard: oe, installStaticTearOff: ye, installInstanceTearOff: he, _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: i(0, null, ["call$0"], 0), _static_1: i(1, null, ["call$1"], 0), _static_2: i(2, null, ["call$2"], 0), makeConstList: _e, lazy: se, lazyFinal: W, lazyOld: re, updateHolder: K, convertToFastObject: ue, updateTypes: ge, setOrUpdateInterceptorsByTag: Te, setOrUpdateLeafTags: $e };
10315
+ return { inherit: G, inheritMany: Y, mixin: ae, mixinHard: oe, installStaticTearOff: de, installInstanceTearOff: he, _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: i(0, null, ["call$0"], 0), _static_1: i(1, null, ["call$1"], 0), _static_2: i(2, null, ["call$2"], 0), makeConstList: ye, lazy: fe, lazyFinal: se, lazyOld: Z, updateHolder: j, convertToFastObject: ie, updateTypes: ge, setOrUpdateInterceptorsByTag: Te, setOrUpdateLeafTags: $e };
10316
10316
  }(), o = {
10317
10317
  JS_CONST: function() {
10318
10318
  },
@@ -10358,8 +10358,8 @@ var Qe = {};
10358
10358
  }
10359
10359
  },
10360
10360
  Sort__dualPivotQuicksort(e, i, n, a) {
10361
- var s, l, _, d, c, f, $, g, m, h, A = p.JSInt_methods._tdivFast$1(n - i + 1, 6), E = i + A, M = n - A, b = p.JSInt_methods._tdivFast$1(i + n, 2), R = b - A, C = b + A, O = u.getInterceptor$asx(e), D = O.$index(e, E), L = O.$index(e, R), v = O.$index(e, b), x = O.$index(e, C), q = O.$index(e, M);
10362
- if (a.call$2(D, L) > 0 && (s = L, L = D, D = s), a.call$2(x, q) > 0 && (s = q, q = x, x = s), a.call$2(D, v) > 0 && (s = v, v = D, D = s), a.call$2(L, v) > 0 && (s = v, v = L, L = s), a.call$2(D, x) > 0 && (s = x, x = D, D = s), a.call$2(v, x) > 0 && (s = x, x = v, v = s), a.call$2(L, q) > 0 && (s = q, q = L, L = s), a.call$2(L, v) > 0 && (s = v, v = L, L = s), a.call$2(x, q) > 0 && (s = q, q = x, x = s), O.$indexSet(e, E, D), O.$indexSet(e, b, v), O.$indexSet(e, M, q), O.$indexSet(e, R, O.$index(e, i)), O.$indexSet(e, C, O.$index(e, n)), l = i + 1, _ = n - 1, u.$eq$(a.call$2(L, x), 0)) {
10361
+ var s, l, _, d, c, f, $, g, m, h, A = p.JSInt_methods._tdivFast$1(n - i + 1, 6), E = i + A, M = n - A, b = p.JSInt_methods._tdivFast$1(i + n, 2), R = b - A, C = b + A, O = u.getInterceptor$asx(e), D = O.$index(e, E), L = O.$index(e, R), v = O.$index(e, b), x = O.$index(e, C), B = O.$index(e, M);
10362
+ if (a.call$2(D, L) > 0 && (s = L, L = D, D = s), a.call$2(x, B) > 0 && (s = B, B = x, x = s), a.call$2(D, v) > 0 && (s = v, v = D, D = s), a.call$2(L, v) > 0 && (s = v, v = L, L = s), a.call$2(D, x) > 0 && (s = x, x = D, D = s), a.call$2(v, x) > 0 && (s = x, x = v, v = s), a.call$2(L, B) > 0 && (s = B, B = L, L = s), a.call$2(L, v) > 0 && (s = v, v = L, L = s), a.call$2(x, B) > 0 && (s = B, B = x, x = s), O.$indexSet(e, E, D), O.$indexSet(e, b, v), O.$indexSet(e, M, B), O.$indexSet(e, R, O.$index(e, i)), O.$indexSet(e, C, O.$index(e, n)), l = i + 1, _ = n - 1, u.$eq$(a.call$2(L, x), 0)) {
10363
10363
  for (d = l; d <= _; ++d)
10364
10364
  if (c = O.$index(e, d), f = a.call$2(c, L), f !== 0)
10365
10365
  if (f < 0)
@@ -11855,7 +11855,7 @@ var Qe = {};
11855
11855
  return c === 12 ? i === r.JavaScriptFunction ? !0 : l ? !1 : o._isFunctionSubtype(e, i, n, a, s) : _ === 9 ? c !== 9 ? !1 : o._isInterfaceSubtype(e, i, n, a, s) : (l = _ === 11, l && a === r.Record ? !0 : l && c === 11 ? o._isRecordSubtype(e, i, n, a, s) : !1);
11856
11856
  },
11857
11857
  _isFunctionSubtype(e, i, n, a, s) {
11858
- var l, _, d, c, f, $, g, m, h, A, E, M, b, R, C, O, D, L, v, x, q, pe;
11858
+ var l, _, d, c, f, $, g, m, h, A, E, M, b, R, C, O, D, L, v, x, B, ce;
11859
11859
  if (!o._isSubtype(e, i._primary, n, a._primary, s) || (l = i._rest, _ = a._rest, d = l._requiredPositional, c = _._requiredPositional, f = d.length, $ = c.length, f > $) || (g = $ - f, m = l._optionalPositional, h = _._optionalPositional, A = m.length, E = h.length, f + A < $ + E))
11860
11860
  return !1;
11861
11861
  for (M = 0; M < f; ++M)
@@ -11869,14 +11869,14 @@ var Qe = {};
11869
11869
  return !1;
11870
11870
  for (R = l._named, C = _._named, O = R.length, D = C.length, L = 0, v = 0; v < D; v += 3)
11871
11871
  for (x = C[v]; ; ) {
11872
- if (L >= O || (q = R[L], L += 3, x < q))
11872
+ if (L >= O || (B = R[L], L += 3, x < B))
11873
11873
  return !1;
11874
- if (pe = R[L - 2], q < x) {
11875
- if (pe)
11874
+ if (ce = R[L - 2], B < x) {
11875
+ if (ce)
11876
11876
  return !1;
11877
11877
  continue;
11878
11878
  }
11879
- if (b = C[v + 1], pe && !b || (b = R[L - 1], !o._isSubtype(e, C[v + 2], s, b, n)))
11879
+ if (b = C[v + 1], ce && !b || (b = R[L - 1], !o._isSubtype(e, C[v + 2], s, b, n)))
11880
11880
  return !1;
11881
11881
  break;
11882
11882
  }
@@ -17366,18 +17366,18 @@ Arguments: [` + c + "]";
17366
17366
  $signature: 0
17367
17367
  }, o._formatTableResponse_closure5.prototype = {
17368
17368
  call$2(e, i) {
17369
- var n, a, s, l, _, d, c, f, $, g, m, h, A, E, M, b, R, C, O, D, L = null, v = r.JSArray_List_dynamic, x = o._setArrayType([[]], v), q = o._setArrayType([[]], v);
17369
+ var n, a, s, l, _, d, c, f, $, g, m, h, A, E, M, b, R, C, O, D, L = null, v = r.JSArray_List_dynamic, x = o._setArrayType([[]], v), B = o._setArrayType([[]], v);
17370
17370
  for (v = this.headers, n = i.value, a = r.dynamic, s = r.JSArray_String, l = r.String, _ = this.metricColumns, d = 0; d < v.length; ++d)
17371
17371
  if (c = v[d], f = u.getInterceptor$ax(c), $ = f.map$1$1(c, new o._formatTableResponse__closure5(), l).join$1(0, "|"), o.IterableExtension_firstWhereOrNull(c, new o._formatTableResponse__closure6()) != null)
17372
17372
  for (g = f.firstWhere$1(c, new o._formatTableResponse__closure7()), m = f.fold$2(c, !0, new o._formatTableResponse__closure8(i)), f = x.length, h = g.type, A = g.columnValue, E = 0; E < x.length; x.length === f || (0, o.throwConcurrentModificationError)(x), ++E)
17373
17373
  M = x[E], m ? (b = n.$index(0, A), R = M.length, d >= R && p.JSArray_methods.addAll$1(M, o.List_List$filled(d - R + 1, L, !1, a)), M[d] = b) : (b = h == null ? L : o.DataTypeExtension_toData(h, L), R = M.length, d >= R && p.JSArray_methods.addAll$1(M, o.List_List$filled(d - R + 1, L, !1, a)), M[d] = b);
17374
17374
  else if (p.JSArray_methods.contains$1(o._setArrayType(["_metric_name", "_metric_value"], s), $))
17375
17375
  for (f = $ === "_metric_value", h = $ === "_metric_name", C = 0; C < _.length; ++C)
17376
- O = _[C], o.ListExtension_elementAtOrNull(x, C) == null && (x.push(o.List_List$of(x[0], !0, a)), q.push(o.List_List$of(q[0], !0, a))), h ? (A = x[C], b = O.label, R = A.length, d >= R && p.JSArray_methods.addAll$1(A, o.List_List$filled(d - R + 1, L, !1, a)), A[d] = b, q[C].push(b)) : f && (A = x[C], b = n.$index(0, O.id), R = A.length, d >= R && p.JSArray_methods.addAll$1(A, o.List_List$filled(d - R + 1, L, !1, a)), A[d] = b);
17376
+ O = _[C], o.ListExtension_elementAtOrNull(x, C) == null && (x.push(o.List_List$of(x[0], !0, a)), B.push(o.List_List$of(B[0], !0, a))), h ? (A = x[C], b = O.label, R = A.length, d >= R && p.JSArray_methods.addAll$1(A, o.List_List$filled(d - R + 1, L, !1, a)), A[d] = b, B[C].push(b)) : f && (A = x[C], b = n.$index(0, O.id), R = A.length, d >= R && p.JSArray_methods.addAll$1(A, o.List_List$filled(d - R + 1, L, !1, a)), A[d] = b);
17377
17377
  else
17378
17378
  for (D = 0; D < x.length; ++D)
17379
- f = x[D], h = n.$index(0, $), A = f.length, d >= A && p.JSArray_methods.addAll$1(f, o.List_List$filled(d - A + 1, L, !1, a)), f[d] = h, q[D].push(n.$index(0, $));
17380
- return v = r.Map_String_dynamic, n = o.List_List$of(e, !0, v), p.JSArray_methods.addAll$1(n, o.ListExtensions_mapIndexed(x, new o._formatTableResponse__closure9(q, i), r.List_dynamic, v)), n;
17379
+ f = x[D], h = n.$index(0, $), A = f.length, d >= A && p.JSArray_methods.addAll$1(f, o.List_List$filled(d - A + 1, L, !1, a)), f[d] = h, B[D].push(n.$index(0, $));
17380
+ return v = r.Map_String_dynamic, n = o.List_List$of(e, !0, v), p.JSArray_methods.addAll$1(n, o.ListExtensions_mapIndexed(x, new o._formatTableResponse__closure9(B, i), r.List_dynamic, v)), n;
17381
17381
  },
17382
17382
  $signature: 76
17383
17383
  }, o._formatTableResponse__closure5.prototype = {
@@ -17920,8 +17920,8 @@ Arguments: [` + c + "]";
17920
17920
  return a.message;
17921
17921
  }
17922
17922
  }())), i(T, "DateTime__parseFormat", "$get$DateTime__parseFormat", () => o.RegExp_RegExp("^([+-]?\\d{4,6})-?(\\d\\d)-?(\\d\\d)(?:[ T](\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d+))?)?)?( ?[zZ]| ?([-+])(\\d\\d)(?::?(\\d\\d))?)?)?$")), i(T, "_hashSeed", "$get$_hashSeed", () => o.objectHashCode(p.Type_Object_xQ6)), i(T, "Endian_host", "$get$Endian_host", () => o.NativeByteData_NativeByteData$view(o.NativeUint16List__create1(o._ensureNativeList(o._setArrayType([1], r.JSArray_int))).buffer, 0, null).getInt8(0) === 1 ? p.C_Endian0 : p.C_Endian), i(T, "_clockKey", "$get$_clockKey", () => new o.Object()), i(T, "en_USSymbols", "$get$en_USSymbols", () => new o.DateSymbols("en_US", p.List_BC_AD, p.List_6xs, p.List_qpm, p.List_qpm, p.List_cIc, p.List_cIc, p.List_h8w, p.List_h8w, p.List_wMy, p.List_wMy, p.List_gc6, p.List_gc6, p.List_3US, p.List_Q1_Q2_Q3_Q4, p.List_bJM, p.List_AM_PM)), n(T, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => o.UninitializedLocaleData$("initializeDateFormatting(<locale>)", T.$get$en_USSymbols())), n(T, "dateTimePatterns", "$get$dateTimePatterns", () => o.UninitializedLocaleData$("initializeDateFormatting(<locale>)", p.Map_EQ6TW)), i(T, "asciiZeroCodeUnit", "$get$asciiZeroCodeUnit", () => 48), i(T, "DateFormat__matchers", "$get$DateFormat__matchers", () => o._setArrayType([o.RegExp_RegExp("^'(?:[^']|'')*'"), o.RegExp_RegExp("^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|D+|m+|s+|v+|z+|Z+)"), o.RegExp_RegExp("^[^'GyMkSEahKHcLQdDmsvzZ]+")], o.findType("JSArray<RegExp>"))), i(T, "_DateFormatQuotedField__twoEscapedQuotes", "$get$_DateFormatQuotedField__twoEscapedQuotes", () => o.RegExp_RegExp("''")), i(T, "asciiDigitMatcher", "$get$asciiDigitMatcher", () => o.RegExp_RegExp("^\\d+")), n(T, "_availableLocales", "$get$_availableLocales", () => {
17923
- var a, s, l = o.EnLocale$(p.StartOfWeek_1), _ = o.EnLocale$(p.StartOfWeek_1), d = o.EnLocale$(p.StartOfWeek_1), c = o.EnLocale$(p.StartOfWeek_1), f = o.EnLocale$(p.StartOfWeek_1), $ = o.EnLocale$(p.StartOfWeek_2), g = o.EnLocale$(p.StartOfWeek_2), m = o.EnLocale$(p.StartOfWeek_1), h = o.EnLocale$(p.StartOfWeek_1), A = o.EsLocale$(p.StartOfWeek_2), E = o.EsLocale$(p.StartOfWeek_2), M = o.EsLocale$(p.StartOfWeek_1), b = o.FrLocale$(p.StartOfWeek_2), R = o.FrLocale$(p.StartOfWeek_2), C = o.FrLocale$(p.StartOfWeek_1), O = o.ZhCnLocale$(p.StartOfWeek_1), D = o.ZhCnLocale$(p.StartOfWeek_1), L = o.ZhLocale$(p.StartOfWeek_1), v = o.ZhLocale$(p.StartOfWeek_1), x = o.DeLocale$(p.StartOfWeek_2), q = o.DeLocale$(p.StartOfWeek_2), pe = o.DeLocale$(p.StartOfWeek_2), Ce = o.DeLocale$(p.StartOfWeek_2), be = o.ItLocale$(p.StartOfWeek_2), Re = o.ItLocale$(p.StartOfWeek_2), Fe = o.ArLyLocale$(!0, p.StartOfWeek_0), Oe = o.ArLyLocale$(!1, p.StartOfWeek_0), Le = o.ArSaMaDzKwTnLocale$(!1, p.StartOfWeek_1), we = o.ArSaMaDzKwTnLocale$(!1, p.StartOfWeek_1), ve = o.ArSaMaDzKwTnLocale$(!0, p.StartOfWeek_1), De = o.ArSaMaDzKwTnLocale$(!1, p.StartOfWeek_0), ze = o.ArSaMaDzKwTnLocale$(!1, p.StartOfWeek_0);
17924
- return o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), a = o.PtLocale$(p.StartOfWeek_2), s = o.PtLocale$(p.StartOfWeek_1), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.LinkedHashMap_LinkedHashMap$_literal(["en", l, "en_us", _, "en_sg", d, "en_au", c, "en_ca", f, "en_gb", $, "en_ie", g, "en_il", m, "en_nz", h, "es", A, "es_do", E, "es_us", M, "fr", b, "fr_ch", R, "fr_ca", C, "zh", O, "zh_cn", D, "zh_hk", L, "zh_tw", v, "de", x, "de_de", q, "de_at", pe, "de_ch", Ce, "it", be, "it_ch", Re, "ar", Fe, "ar_ly", Oe, "ar_dz", Le, "ar_kw", we, "ar_sa", ve, "ar_ma", De, "ar_tn", ze, "az", new o.AzLocale(p.StartOfWeek_2), "id", new o.IdLocale(p.StartOfWeek_1), "ja", new o.JaLocale(p.StartOfWeek_1), "ko", new o.KoLocale(p.StartOfWeek_1), "ru", new o.RuLocale(p.StartOfWeek_2), "uk", new o.UkLocale(p.StartOfWeek_2), "hi", new o.HiLocale(p.StartOfWeek_1), "pt", a, "pt_br", s, "pl", new o.PlLocale(p.StartOfWeek_2), "tr", new o.TrLocale(p.StartOfWeek_2), "sv", new o.SvLocale(p.StartOfWeek_2), "nb", new o.NbLocale(p.StartOfWeek_2), "fa", new o.FaLocale(p.StartOfWeek_0), "bn", new o.BnLocale(p.StartOfWeek_1), "nl", new o.NlLocale(p.StartOfWeek_2), "th", new o.ThLocale(p.StartOfWeek_1)], r.String, o.findType("Locale"));
17923
+ var a, s, l = o.EnLocale$(p.StartOfWeek_1), _ = o.EnLocale$(p.StartOfWeek_1), d = o.EnLocale$(p.StartOfWeek_1), c = o.EnLocale$(p.StartOfWeek_1), f = o.EnLocale$(p.StartOfWeek_1), $ = o.EnLocale$(p.StartOfWeek_2), g = o.EnLocale$(p.StartOfWeek_2), m = o.EnLocale$(p.StartOfWeek_1), h = o.EnLocale$(p.StartOfWeek_1), A = o.EsLocale$(p.StartOfWeek_2), E = o.EsLocale$(p.StartOfWeek_2), M = o.EsLocale$(p.StartOfWeek_1), b = o.FrLocale$(p.StartOfWeek_2), R = o.FrLocale$(p.StartOfWeek_2), C = o.FrLocale$(p.StartOfWeek_1), O = o.ZhCnLocale$(p.StartOfWeek_1), D = o.ZhCnLocale$(p.StartOfWeek_1), L = o.ZhLocale$(p.StartOfWeek_1), v = o.ZhLocale$(p.StartOfWeek_1), x = o.DeLocale$(p.StartOfWeek_2), B = o.DeLocale$(p.StartOfWeek_2), ce = o.DeLocale$(p.StartOfWeek_2), Ce = o.DeLocale$(p.StartOfWeek_2), be = o.ItLocale$(p.StartOfWeek_2), Re = o.ItLocale$(p.StartOfWeek_2), Fe = o.ArLyLocale$(!0, p.StartOfWeek_0), Oe = o.ArLyLocale$(!1, p.StartOfWeek_0), Le = o.ArSaMaDzKwTnLocale$(!1, p.StartOfWeek_1), we = o.ArSaMaDzKwTnLocale$(!1, p.StartOfWeek_1), ve = o.ArSaMaDzKwTnLocale$(!0, p.StartOfWeek_1), De = o.ArSaMaDzKwTnLocale$(!1, p.StartOfWeek_0), Ye = o.ArSaMaDzKwTnLocale$(!1, p.StartOfWeek_0);
17924
+ return o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), a = o.PtLocale$(p.StartOfWeek_2), s = o.PtLocale$(p.StartOfWeek_1), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.LinkedHashMap_LinkedHashMap$_literal(["en", l, "en_us", _, "en_sg", d, "en_au", c, "en_ca", f, "en_gb", $, "en_ie", g, "en_il", m, "en_nz", h, "es", A, "es_do", E, "es_us", M, "fr", b, "fr_ch", R, "fr_ca", C, "zh", O, "zh_cn", D, "zh_hk", L, "zh_tw", v, "de", x, "de_de", B, "de_at", ce, "de_ch", Ce, "it", be, "it_ch", Re, "ar", Fe, "ar_ly", Oe, "ar_dz", Le, "ar_kw", we, "ar_sa", ve, "ar_ma", De, "ar_tn", Ye, "az", new o.AzLocale(p.StartOfWeek_2), "id", new o.IdLocale(p.StartOfWeek_1), "ja", new o.JaLocale(p.StartOfWeek_1), "ko", new o.KoLocale(p.StartOfWeek_1), "ru", new o.RuLocale(p.StartOfWeek_2), "uk", new o.UkLocale(p.StartOfWeek_2), "hi", new o.HiLocale(p.StartOfWeek_1), "pt", a, "pt_br", s, "pl", new o.PlLocale(p.StartOfWeek_2), "tr", new o.TrLocale(p.StartOfWeek_2), "sv", new o.SvLocale(p.StartOfWeek_2), "nb", new o.NbLocale(p.StartOfWeek_2), "fa", new o.FaLocale(p.StartOfWeek_0), "bn", new o.BnLocale(p.StartOfWeek_1), "nl", new o.NlLocale(p.StartOfWeek_2), "th", new o.ThLocale(p.StartOfWeek_1)], r.String, o.findType("Locale"));
17925
17925
  });
17926
17926
  }(), function() {
17927
17927
  (function() {
@@ -17953,7 +17953,7 @@ Arguments: [` + c + "]";
17953
17953
  return this(e, i, n, a, s, l, _, d);
17954
17954
  }, Function.prototype.call$3 = function(e, i, n) {
17955
17955
  return this(e, i, n);
17956
- }, de(S), function(e) {
17956
+ }, ee(S), function(e) {
17957
17957
  if (typeof document > "u") {
17958
17958
  e(null);
17959
17959
  return;
@@ -17977,11 +17977,11 @@ Arguments: [` + c + "]";
17977
17977
  });
17978
17978
  })();
17979
17979
  };
17980
- })(Qe);
17981
- const Ve = Qe;
17982
- Ve.load({});
17983
- var at = Ve, ot = /* @__PURE__ */ ((F) => (F.Scorecard = "SCORECARD", F.Spacer = "SPACER", F.Table = "TABLE", F.BarChart = "BARCHART", F.StackBarChart = "STACKBARCHART", F.LineChart = "LINECHART", F.StackLineChart = "STACKLINECHART", F.Circular = "CIRCULAR", F))(ot || {}), st = /* @__PURE__ */ ((F) => (F.EXCEL = "excel", F.PDF = "pdf", F.PDFFULLSIZE = "pdfFullSize", F))(st || {}), lt = /* @__PURE__ */ ((F) => (F.LANDSCAPE = "landscape", F.PORTRAIT = "portrait", F))(lt || {});
17984
- function Lt(F) {
17980
+ })(Ue);
17981
+ const qe = Ue;
17982
+ qe.load({});
17983
+ var it = qe, nt = /* @__PURE__ */ ((F) => (F.Scorecard = "SCORECARD", F.Spacer = "SPACER", F.Table = "TABLE", F.BarChart = "BARCHART", F.StackBarChart = "STACKBARCHART", F.LineChart = "LINECHART", F.StackLineChart = "STACKLINECHART", F.Circular = "CIRCULAR", F))(nt || {}), at = /* @__PURE__ */ ((F) => (F.EXCEL = "excel", F.PDF = "pdf", F.PDFFULLSIZE = "pdfFullSize", F))(at || {}), ot = /* @__PURE__ */ ((F) => (F.LANDSCAPE = "landscape", F.PORTRAIT = "portrait", F))(ot || {});
17984
+ function Ft(F) {
17985
17985
  switch (F) {
17986
17986
  case "excel":
17987
17987
  return "Excel";
@@ -17993,7 +17993,7 @@ function Lt(F) {
17993
17993
  return "Unknown";
17994
17994
  }
17995
17995
  }
17996
- function wt(F) {
17996
+ function Ot(F) {
17997
17997
  switch (F) {
17998
17998
  case "landscape":
17999
17999
  return "Landscape";
@@ -18003,82 +18003,82 @@ function wt(F) {
18003
18003
  return "Unknown";
18004
18004
  }
18005
18005
  }
18006
- const Se = "/report-settings", _t = async () => {
18007
- const { businessId: F } = Y(ee());
18006
+ const Se = "/report-settings", st = async () => {
18007
+ const { businessId: F } = W(te());
18008
18008
  if (F) {
18009
18009
  const w = {
18010
- fetchType: te.Get,
18010
+ fetchType: re.Get,
18011
18011
  url: `${Se}/${F.value}/reports`
18012
18012
  };
18013
- return j.fetch(w);
18013
+ return K.fetch(w);
18014
18014
  } else
18015
18015
  return Promise.reject(new Error("Business Id is not defined"));
18016
- }, ut = (F) => {
18017
- const { businessId: w } = Y(ee()), J = {
18018
- fetchType: te.Put,
18016
+ }, lt = (F) => {
18017
+ const { businessId: w } = W(te()), J = {
18018
+ fetchType: re.Put,
18019
18019
  url: `${Se}/${w.value}/reports/${F.id}`,
18020
18020
  data: F
18021
18021
  };
18022
- return j.fetch(J);
18023
- }, dt = (F) => {
18024
- const { businessId: w } = Y(ee()), J = {
18025
- fetchType: te.Post,
18022
+ return K.fetch(J);
18023
+ }, _t = (F) => {
18024
+ const { businessId: w } = W(te()), J = {
18025
+ fetchType: re.Post,
18026
18026
  url: `${Se}/${w.value}/reports`,
18027
18027
  data: F
18028
18028
  };
18029
- return j.fetch(J);
18030
- }, ct = (F) => {
18031
- const { businessId: w } = Y(ee()), J = {
18032
- fetchType: te.Delete,
18029
+ return K.fetch(J);
18030
+ }, ut = (F) => {
18031
+ const { businessId: w } = W(te()), J = {
18032
+ fetchType: re.Delete,
18033
18033
  url: `${Se}/${w.value}/reports/${F.id}`
18034
18034
  };
18035
- return j.fetch(J);
18036
- }, pt = (F) => {
18037
- const { businessId: w } = Y(ee()), J = {
18038
- fetchType: te.Put,
18035
+ return K.fetch(J);
18036
+ }, dt = (F) => {
18037
+ const { businessId: w } = W(te()), J = {
18038
+ fetchType: re.Put,
18039
18039
  url: `${Se}/${w.value}/reports/default`,
18040
18040
  data: { defaultReport: F }
18041
18041
  };
18042
- return j.fetch(J);
18043
- }, ft = async () => {
18044
- const { businessId: F } = Y(ee());
18042
+ return K.fetch(J);
18043
+ }, ct = async () => {
18044
+ const { businessId: F } = W(te());
18045
18045
  if (F) {
18046
18046
  const w = {
18047
- fetchType: te.Get,
18047
+ fetchType: re.Get,
18048
18048
  url: `${Se}/${F.value}/overview-report`
18049
18049
  };
18050
- return j.fetch(w);
18050
+ return K.fetch(w);
18051
18051
  } else
18052
18052
  return Promise.reject(new Error("Business Id is not defined"));
18053
- }, yt = async () => {
18054
- const { businessId: F } = Y(ee());
18053
+ }, pt = async () => {
18054
+ const { businessId: F } = W(te());
18055
18055
  if (F) {
18056
18056
  const w = {
18057
- fetchType: te.Get,
18057
+ fetchType: re.Get,
18058
18058
  url: `${Se}/${F.value}/config`
18059
18059
  };
18060
- return j.fetch(w);
18060
+ return K.fetch(w);
18061
18061
  } else
18062
18062
  return Promise.reject(new Error("Business Id is not defined"));
18063
- }, $t = "/report-settings", gt = async () => {
18064
- const { businessId: F } = Y(ee());
18063
+ }, ft = "/report-settings", yt = async () => {
18064
+ const { businessId: F } = W(te());
18065
18065
  if (F) {
18066
18066
  const w = {
18067
- fetchType: te.Get,
18068
- url: `${$t}/${F.value}/categories`
18067
+ fetchType: re.Get,
18068
+ url: `${ft}/${F.value}/categories`
18069
18069
  };
18070
- return j.fetch(w);
18070
+ return K.fetch(w);
18071
18071
  } else
18072
18072
  return Promise.reject(new Error("Business Id is not defined"));
18073
- }, mt = (F) => {
18074
- const { businessId: w } = Y(ee()), J = {
18075
- fetchType: te.Post,
18073
+ }, $t = (F) => {
18074
+ const { businessId: w } = W(te()), J = {
18075
+ fetchType: re.Post,
18076
18076
  url: `/report-settings/${w.value}/date-settings`,
18077
18077
  data: {
18078
18078
  ...F
18079
18079
  }
18080
18080
  };
18081
- return j.fetch(J);
18081
+ return K.fetch(J);
18082
18082
  };
18083
18083
  function Je(F, w = {}) {
18084
18084
  const J = localStorage.getItem(F);
@@ -18098,20 +18098,20 @@ const me = {
18098
18098
  setJson: (F, w) => {
18099
18099
  localStorage.setItem(F, JSON.stringify(w));
18100
18100
  }
18101
- }, St = "mf-reportreport-store", Pe = qe(St, () => {
18102
- const { business: F } = Y(Ie()), { flags: w } = Y(Ue()), J = Z([]), H = Z([]), N = Z(0), Q = rt(), k = Ae(() => J.value.filter((p) => p.editable)), P = Ae(() => J.value.filter((p) => !p.editable)), B = Z(!1), U = Z(""), V = Z(), G = Z(), z = Ae(() => {
18101
+ }, gt = "mf-reportreport-store", Be = ke(gt, () => {
18102
+ const { business: F } = W(Ie()), { flags: w } = W(Ne()), J = X([]), U = X([]), N = X(0), Q = et(), k = Ae(() => J.value.filter((p) => p.editable)), P = Ae(() => J.value.filter((p) => !p.editable)), H = X(!1), q = X(""), V = X(), G = X(), Y = Ae(() => {
18103
18103
  const p = w.value.find(
18104
- (S) => S.key === Ke.report_portal_integration_custom_report
18104
+ (S) => S.key === je.report_portal_integration_custom_report
18105
18105
  );
18106
18106
  return typeof (p == null ? void 0 : p.value) == "number" ? p.value : null;
18107
- }), ne = Ae(() => z.value === null ? !0 : z.value - k.value.length > 0);
18107
+ }), ae = Ae(() => Y.value === null ? !0 : Y.value - k.value.length > 0);
18108
18108
  async function oe() {
18109
- return G.value = await ft(), G.value;
18109
+ return G.value = await ct(), G.value;
18110
18110
  }
18111
- async function re() {
18111
+ async function Z() {
18112
18112
  var p;
18113
18113
  try {
18114
- J.value = await _t(), H.value = await gt(), J.value.find((T) => T.id === U.value) || (U.value = ((p = J.value.find((T) => T.isDefault)) == null ? void 0 : p.id) || J.value[0].id);
18114
+ J.value = await st(), U.value = await yt(), J.value.find((T) => T.id === q.value) || (q.value = ((p = J.value.find((T) => T.isDefault)) == null ? void 0 : p.id) || J.value[0].id);
18115
18115
  } catch (S) {
18116
18116
  console.log(S), Q.open({
18117
18117
  title: "Report Fetch Error",
@@ -18120,32 +18120,32 @@ const me = {
18120
18120
  });
18121
18121
  }
18122
18122
  }
18123
- const se = Ae(
18124
- () => J.value.find((p) => p.id === U.value)
18125
- ), W = Z(), _e = Z(0), ue = Z(), de = Z(!1), le = Z(!1), ce = Z(!1);
18126
- async function ae(p) {
18123
+ const fe = Ae(
18124
+ () => J.value.find((p) => p.id === q.value)
18125
+ ), se = X(), ye = X(0), ie = X(), ee = X(!1), le = X(!1), ue = X(!1);
18126
+ async function _e(p) {
18127
18127
  if (k.value.findIndex((T) => T.id === p.id) >= 0) {
18128
- const T = await ut(p);
18129
- U.value = T.id;
18128
+ const T = await lt(p);
18129
+ q.value = T.id;
18130
18130
  } else {
18131
- const T = await dt(p);
18132
- U.value = T.id;
18131
+ const T = await _t(p);
18132
+ q.value = T.id;
18133
18133
  }
18134
- await re();
18134
+ await Z();
18135
18135
  }
18136
- async function ie(p) {
18137
- return await mt(p);
18136
+ async function ne(p) {
18137
+ return await $t(p);
18138
18138
  }
18139
- async function ye(p) {
18140
- await ct(p), await re();
18139
+ async function de(p) {
18140
+ await ut(p), await Z();
18141
18141
  }
18142
18142
  async function he(p) {
18143
- await pt(p), await re();
18143
+ await dt(p), await Z();
18144
18144
  }
18145
18145
  function Te(p) {
18146
- J.value.findIndex((T) => T.id === p) !== -1 && (U.value = p);
18146
+ J.value.findIndex((T) => T.id === p) !== -1 && (q.value = p);
18147
18147
  }
18148
- const $e = Z(null);
18148
+ const $e = X(null);
18149
18149
  function ge() {
18150
18150
  var p;
18151
18151
  if ((p = F.value) != null && p._id) {
@@ -18157,7 +18157,7 @@ const me = {
18157
18157
  }
18158
18158
  $e.value = null;
18159
18159
  }
18160
- function K(p) {
18160
+ function j(p) {
18161
18161
  var S;
18162
18162
  if (F.value && p) {
18163
18163
  const T = me.getJson("pinReport");
@@ -18177,54 +18177,54 @@ const me = {
18177
18177
  const p = me.getJson("feedback");
18178
18178
  if (!p[F.value._id])
18179
18179
  p[F.value._id] = {
18180
- date: fe().local().format("YYYY-MM-DD"),
18180
+ date: pe().local().format("YYYY-MM-DD"),
18181
18181
  feedback: !1
18182
18182
  };
18183
18183
  else {
18184
- const S = fe(p[F.value._id].date).local();
18185
- Math.abs(S.diff(fe().endOf("day").local(), "d")) >= 1 && !p[F.value._id].feedback && (le.value = !0);
18184
+ const S = pe(p[F.value._id].date).local();
18185
+ Math.abs(S.diff(pe().endOf("day").local(), "d")) >= 1 && !p[F.value._id].feedback && (le.value = !0);
18186
18186
  }
18187
18187
  me.setJson("feedback", p);
18188
18188
  }
18189
18189
  }
18190
18190
  async function u() {
18191
- return await yt();
18191
+ return await pt();
18192
18192
  }
18193
18193
  return {
18194
- isOpenDownloadDialog: de,
18194
+ isOpenDownloadDialog: ee,
18195
18195
  isOpenFeedbackDialog: le,
18196
- isOpenEmailDialog: ce,
18196
+ isOpenEmailDialog: ue,
18197
18197
  currentSelectWidgetType: V,
18198
18198
  reports: J,
18199
- categories: H,
18200
- currentReport: se,
18201
- editingReport: W,
18202
- editingIndex: _e,
18203
- editingTile: ue,
18204
- currentReportId: U,
18199
+ categories: U,
18200
+ currentReport: fe,
18201
+ editingReport: se,
18202
+ editingIndex: ye,
18203
+ editingTile: ie,
18204
+ currentReportId: q,
18205
18205
  editableReports: k,
18206
18206
  nonEditableReports: P,
18207
- isOpenAddReportDialog: B,
18207
+ isOpenAddReportDialog: H,
18208
18208
  overviewReport: G,
18209
18209
  pinReport: $e,
18210
18210
  scrollPositionY: N,
18211
- customReportQuota: z,
18212
- canCreateCustomReport: ne,
18213
- createOrUpdateReport: ae,
18214
- removeReport: ye,
18211
+ customReportQuota: Y,
18212
+ canCreateCustomReport: ae,
18213
+ createOrUpdateReport: _e,
18214
+ removeReport: de,
18215
18215
  updateCurrentReportId: Te,
18216
- getReports: re,
18216
+ getReports: Z,
18217
18217
  updateDefaultReport: he,
18218
18218
  checkFeedback: o,
18219
18219
  getOverviewReport: oe,
18220
18220
  refreshPinReport: ge,
18221
- cachePinReport: K,
18221
+ cachePinReport: j,
18222
18222
  clearPinReport: t,
18223
18223
  getReportConfig: u,
18224
- submitFeedback: ie
18224
+ submitFeedback: ne
18225
18225
  };
18226
- }), ht = "mf-reportnavigation", Ge = qe(ht, () => {
18227
- const { disabled: F } = Y(Xe()), { isIntegrationWhitelist: w } = Y(Ue()), J = Z("v5"), H = Ae(() => {
18226
+ }), mt = "mf-reportnavigation", Qe = ke(mt, () => {
18227
+ const { disabled: F } = W(ze()), { isIntegrationWhitelist: w } = W(Ne()), J = X("v5"), U = Ae(() => {
18228
18228
  const P = [
18229
18229
  {
18230
18230
  label: "overview",
@@ -18240,7 +18240,7 @@ const me = {
18240
18240
  label: "insight",
18241
18241
  value: "insight",
18242
18242
  route: "insights",
18243
- badge: () => et(it.FmPill, { variant: "beta" })
18243
+ badge: () => Xe(tt.FmPill, { variant: "beta" })
18244
18244
  },
18245
18245
  {
18246
18246
  label: "setting",
@@ -18253,7 +18253,7 @@ const me = {
18253
18253
  value: "integration",
18254
18254
  route: "integrations"
18255
18255
  }), P;
18256
- }), N = Z(""), { currentRoute: Q } = nt();
18256
+ }), N = X(""), { currentRoute: Q } = rt();
18257
18257
  function k(P) {
18258
18258
  switch (P.name) {
18259
18259
  case "report":
@@ -18275,7 +18275,7 @@ const me = {
18275
18275
  break;
18276
18276
  }
18277
18277
  }
18278
- return tt(
18278
+ return Ze(
18279
18279
  Q,
18280
18280
  (P) => {
18281
18281
  k(P);
@@ -18283,69 +18283,69 @@ const me = {
18283
18283
  { immediate: !0 }
18284
18284
  ), {
18285
18285
  selectedNavigationTab: N,
18286
- navigationTabs: H,
18286
+ navigationTabs: U,
18287
18287
  version: J
18288
18288
  };
18289
18289
  });
18290
- var We = /* @__PURE__ */ ((F) => (F.generating = "GENERATING", F.completed = "COMPLETED", F.failed = "FAILED", F.canceled = "CANCELLED", F))(We || {});
18291
- fe.extend(Ze);
18292
- async function At(F, w) {
18290
+ var Ve = /* @__PURE__ */ ((F) => (F.generating = "GENERATING", F.completed = "COMPLETED", F.failed = "FAILED", F.canceled = "CANCELLED", F))(Ve || {});
18291
+ pe.extend(Ke);
18292
+ async function St(F, w) {
18293
18293
  for (let J = 0; J < F.length; J++)
18294
18294
  try {
18295
18295
  return await F[J]();
18296
- } catch (H) {
18297
- if (H.message === "Unauthorized" || J === F.length - 1) throw H;
18296
+ } catch (U) {
18297
+ if (U.message === "Unauthorized" || J === F.length - 1) throw U;
18298
18298
  await new Promise((N) => setTimeout(N, w));
18299
18299
  }
18300
18300
  throw new Error("No callback");
18301
18301
  }
18302
- const vt = async (F, w) => {
18303
- var ne, oe, re, se;
18304
- const { businessId: J, country: H } = Y(ee()), {
18302
+ const Lt = async (F, w) => {
18303
+ var Y, ae, oe, Z;
18304
+ const { businessId: J, country: U } = W(te()), {
18305
18305
  selectedRestaurantIds: N,
18306
18306
  selectedWarehouseIds: Q,
18307
18307
  selectedLocationIds: k,
18308
18308
  dateRange: P,
18309
- compareDateRange: B,
18310
- timeRange: U
18309
+ compareDateRange: H,
18310
+ timeRange: q
18311
18311
  } = Ie();
18312
18312
  if (k.length === 0)
18313
18313
  return null;
18314
- const { currentReport: V } = Pe(), G = {
18315
- fetchType: te.Post,
18314
+ const V = {
18315
+ fetchType: re.Post,
18316
18316
  url: `/${J.value}/postgres-query`,
18317
18317
  data: Me.getQueryRequests({
18318
18318
  widget: F,
18319
18319
  dateRange: [P.startDate, P.endDate],
18320
- compareDateRange: B.startDate && B.endDate ? [B.startDate, B.endDate] : void 0,
18320
+ compareDateRange: H.startDate && H.endDate ? [H.startDate, H.endDate] : void 0,
18321
18321
  timeRange: [
18322
- fe().set("hour", Number((ne = U.start) == null ? void 0 : ne.hour)).set("minute", Number((oe = U.start) == null ? void 0 : oe.minute)).toISOString(),
18323
- fe().set("hour", Number((re = U.end) == null ? void 0 : re.hour)).set("minute", Number((se = U.end) == null ? void 0 : se.minute)).toISOString()
18322
+ pe().set("hour", Number((Y = q.start) == null ? void 0 : Y.hour)).set("minute", Number((ae = q.start) == null ? void 0 : ae.minute)).toISOString(),
18323
+ pe().set("hour", Number((oe = q.end) == null ? void 0 : oe.hour)).set("minute", Number((Z = q.end) == null ? void 0 : Z.minute)).toISOString()
18324
18324
  ],
18325
18325
  businessIds: J.value ? [J.value] : [],
18326
18326
  restaurantIds: N,
18327
18327
  warehouseIds: Q,
18328
18328
  timezone: Intl.DateTimeFormat().resolvedOptions().timeZone
18329
- }).map((W) => ({ ...W, performance: V == null ? void 0 : V.performance })),
18329
+ }),
18330
18330
  requestConfig: {
18331
18331
  timeout: 1e3 * 60 * 5,
18332
18332
  signal: w
18333
18333
  }
18334
- }, z = await At(
18334
+ }, G = await St(
18335
18335
  [
18336
- () => j.fetch(G),
18337
- () => j.fetch(G),
18338
- () => (G.url = G.url.replace("postgres-query", "query"), j.fetch(G))
18336
+ () => K.fetch(V),
18337
+ () => K.fetch(V),
18338
+ () => (V.url = V.url.replace("postgres-query", "query"), K.fetch(V))
18339
18339
  ],
18340
18340
  2e3
18341
18341
  );
18342
- return at.formatChartData({
18343
- responses: z,
18342
+ return it.formatChartData({
18343
+ responses: G,
18344
18344
  widget: F,
18345
- country: H.value
18345
+ country: U.value
18346
18346
  });
18347
18347
  };
18348
- function Ye(F) {
18348
+ function Ge(F) {
18349
18349
  const w = F.config;
18350
18350
  return {
18351
18351
  showTitle: w.showTitle,
@@ -18376,211 +18376,183 @@ function Ye(F) {
18376
18376
  usePointStyle: w.usePointStyle
18377
18377
  };
18378
18378
  }
18379
- function je(F) {
18379
+ function We(F) {
18380
18380
  const w = F.config;
18381
18381
  return {
18382
18382
  rowHeight: w.rowHeight,
18383
18383
  colWidths: w.colWidths
18384
18384
  };
18385
18385
  }
18386
- const Dt = async ({
18387
- reportType: F,
18388
- index: w,
18389
- orientationTypes: J,
18390
- locationIds: H,
18391
- timeRange: N,
18392
- dateRange: Q
18393
- }) => {
18394
- const { businessId: k } = Y(ee()), { restaurants: P, warehouses: B } = Ie(), { currentReport: U, overviewReport: V } = Pe(), { selectedNavigationTab: G } = Ge();
18395
- let z = U == null ? void 0 : U.id, ne = (U == null ? void 0 : U.tiles) ?? [];
18396
- G === "overview" && V && (z = V == null ? void 0 : V.id, ne = (V == null ? void 0 : V.tiles) ?? []);
18397
- const oe = ne.filter((W, _e) => typeof w == "number" ? _e === w : !0).map((W) => W.widget), re = {
18398
- fetchType: te.Post,
18399
- url: `/${k.value}/file/metadata`,
18386
+ const wt = async (F, w, J) => {
18387
+ const { businessId: U } = W(te()), { selectedRestaurantIds: N, selectedWarehouseIds: Q, dateRange: k, timeRange: P } = Ie(), { currentReport: H, overviewReport: q } = Be(), { selectedNavigationTab: V } = Qe();
18388
+ let G = H == null ? void 0 : H.id, Y = (H == null ? void 0 : H.tiles) ?? [];
18389
+ V === "overview" && q && (G = q == null ? void 0 : q.id, Y = (q == null ? void 0 : q.tiles) ?? []);
18390
+ const ae = Y.filter((ee, le) => typeof w == "number" ? le === w : !0).map((ee) => ee.widget), oe = {
18391
+ fetchType: re.Post,
18392
+ url: `/${U.value}/file`,
18400
18393
  data: {
18401
18394
  configs: [
18402
- ...oe.map((W, _e) => {
18403
- var ue, de, le, ce;
18395
+ ...ae.map((ee, le) => {
18396
+ var ue, _e, ne, de;
18404
18397
  return {
18405
18398
  requests: Me.getQueryRequests({
18406
- widget: W,
18407
- dateRange: [Q.startDate, Q.endDate],
18399
+ widget: ee,
18400
+ dateRange: [k.startDate, k.endDate],
18401
+ // TODO: export with comparable data?
18402
+ // compareDateRange:
18403
+ // compareDateRange.start && compareDateRange.end
18404
+ // ? [compareDateRange.start.toUTC().toISO(), compareDateRange.end.toUTC().toISO()]
18405
+ // : undefined,
18408
18406
  timeRange: [
18409
- fe().set("hour", Number((ue = N.start) == null ? void 0 : ue.hour)).set("minute", Number((de = N.start) == null ? void 0 : de.minute)).toISOString(),
18410
- fe().set("hour", Number((le = N.end) == null ? void 0 : le.hour)).set("minute", Number((ce = N.end) == null ? void 0 : ce.minute)).toISOString()
18407
+ pe().set("hour", Number((ue = P.start) == null ? void 0 : ue.hour)).set("minute", Number((_e = P.start) == null ? void 0 : _e.minute)).toISOString(),
18408
+ pe().set("hour", Number((ne = P.end) == null ? void 0 : ne.hour)).set("minute", Number((de = P.end) == null ? void 0 : de.minute)).toISOString()
18411
18409
  ],
18412
- businessIds: k ? [k.value] : [],
18413
- restaurantIds: H.filter(
18414
- (ae) => P.find((ie) => ie.id === ae)
18415
- ),
18416
- warehouseIds: H.filter(
18417
- (ae) => B.find((ie) => ie.id === ae)
18418
- ),
18410
+ businessIds: U ? [U.value] : [],
18411
+ restaurantIds: N,
18412
+ warehouseIds: Q,
18419
18413
  timezone: Intl.DateTimeFormat().resolvedOptions().timeZone
18420
18414
  }),
18421
- index: w || _e,
18415
+ index: w || le,
18422
18416
  drillDimension: null,
18423
- ...Ye(W),
18424
- ...je(W)
18417
+ ...Ge(ee),
18418
+ ...We(ee)
18425
18419
  };
18426
18420
  })
18427
18421
  ],
18428
- reportId: z,
18422
+ reportId: G,
18429
18423
  type: F,
18430
18424
  orientationTypes: J
18425
+ },
18426
+ requestConfig: {
18427
+ responseType: "arraybuffer",
18428
+ timeout: 1e3 * 60 * 3
18431
18429
  }
18432
- }, { data: se } = await j.rawFetch(re);
18433
- await xe(se);
18434
- };
18435
- function ke(F) {
18436
- return new Promise((w) => setTimeout(w, F));
18437
- }
18438
- const xe = async (F) => {
18439
- const { businessId: w } = Y(ee());
18440
- try {
18441
- const { headers: J, data: H, status: N } = await j.rawFetch({
18442
- fetchType: te.Post,
18443
- url: `/${w.value}/file/metadata/${F}`,
18444
- requestConfig: {
18445
- responseType: "arraybuffer",
18446
- timeout: 36e5
18447
- }
18448
- });
18449
- if (N === 202)
18450
- return await ke(5e3), xe(F);
18451
- {
18452
- const Q = J["content-disposition"].split("filename=")[1].replaceAll('"', ""), k = window.URL.createObjectURL(new Blob([new Uint8Array(H).buffer])), P = document.createElement("a");
18453
- P.href = k, P.setAttribute("download", decodeURIComponent(Q)), document.body.appendChild(P), P.click(), P.remove();
18454
- }
18455
- } catch (J) {
18456
- if (J.status === 502)
18457
- return await ke(5e3), xe(F);
18458
- throw J;
18459
- }
18460
- }, Jt = async ({
18430
+ }, { headers: Z, data: fe } = await K.rawFetch(oe), se = Z["content-disposition"].split("filename=")[1].replaceAll('"', ""), ye = window.URL.createObjectURL(new Blob([new Uint8Array(fe).buffer])), ie = document.createElement("a");
18431
+ ie.href = ye, ie.setAttribute("download", decodeURIComponent(se)), document.body.appendChild(ie), ie.click(), ie.remove();
18432
+ }, vt = async ({
18461
18433
  emails: F,
18462
18434
  types: w,
18463
18435
  dateRange: J,
18464
- timeRange: H,
18436
+ timeRange: U,
18465
18437
  locationIds: N,
18466
18438
  orientationTypes: Q
18467
18439
  }) => {
18468
- const { businessId: k } = Y(ee()), { currentReport: P, overviewReport: B } = Pe(), { selectedNavigationTab: U } = Ge(), { restaurants: V, warehouses: G } = Ie();
18440
+ const { businessId: k } = W(te()), { currentReport: P, overviewReport: H } = Be(), { selectedNavigationTab: q } = Qe(), { restaurants: V, warehouses: G } = Ie();
18469
18441
  if (F.length === 0) {
18470
18442
  console.error("No email addresses provided.");
18471
18443
  return;
18472
18444
  }
18473
- let z = (P == null ? void 0 : P.id) || "", ne = (P == null ? void 0 : P.name) || "", oe = (P == null ? void 0 : P.tiles) ?? [];
18474
- U === "overview" && B && (z = B == null ? void 0 : B.id, ne = B.name, oe = (B == null ? void 0 : B.tiles) ?? []);
18475
- const re = oe.map((W) => W.widget), se = {
18445
+ let Y = (P == null ? void 0 : P.id) || "", ae = (P == null ? void 0 : P.name) || "", oe = (P == null ? void 0 : P.tiles) ?? [];
18446
+ q === "overview" && H && (Y = H == null ? void 0 : H.id, ae = H.name, oe = (H == null ? void 0 : H.tiles) ?? []);
18447
+ const Z = oe.map((se) => se.widget), fe = {
18476
18448
  businessId: k.value,
18477
- status: We.generating,
18449
+ status: Ve.generating,
18478
18450
  dateRange: {
18479
18451
  start: J.startDate,
18480
18452
  end: J.endDate
18481
18453
  },
18482
- reportName: ne,
18454
+ reportName: ae,
18483
18455
  emails: F,
18484
- configs: re.map((W, _e) => {
18485
- var ue, de, le, ce;
18456
+ configs: Z.map((se, ye) => {
18457
+ var ie, ee, le, ue;
18486
18458
  return {
18487
18459
  requests: Me.getQueryRequests({
18488
- widget: W,
18460
+ widget: se,
18489
18461
  dateRange: [J.startDate, J.endDate],
18490
18462
  timeRange: [
18491
- fe().hour(Number((ue = H.start) == null ? void 0 : ue.hour)).minute(Number((de = H.start) == null ? void 0 : de.minute)).toISOString(),
18492
- fe().hour(Number((le = H.end) == null ? void 0 : le.hour)).minute(Number((ce = H.end) == null ? void 0 : ce.minute)).toISOString()
18463
+ pe().hour(Number((ie = U.start) == null ? void 0 : ie.hour)).minute(Number((ee = U.start) == null ? void 0 : ee.minute)).toISOString(),
18464
+ pe().hour(Number((le = U.end) == null ? void 0 : le.hour)).minute(Number((ue = U.end) == null ? void 0 : ue.minute)).toISOString()
18493
18465
  ],
18494
18466
  businessIds: k ? [k.value] : [],
18495
18467
  restaurantIds: N.filter(
18496
- (ae) => V.find((ie) => ie.id === ae)
18468
+ (_e) => V.find((ne) => ne.id === _e)
18497
18469
  ),
18498
18470
  warehouseIds: N.filter(
18499
- (ae) => G.find((ie) => ie.id === ae)
18471
+ (_e) => G.find((ne) => ne.id === _e)
18500
18472
  ),
18501
18473
  timezone: Intl.DateTimeFormat().resolvedOptions().timeZone
18502
18474
  }),
18503
- index: _e,
18475
+ index: ye,
18504
18476
  drillDimension: null,
18505
- ...Ye(W),
18506
- ...je(W)
18477
+ ...Ge(se),
18478
+ ...We(se)
18507
18479
  };
18508
18480
  }),
18509
- reportId: z,
18510
- types: w,
18481
+ reportId: Y,
18482
+ type: w,
18511
18483
  orientationTypes: Q
18512
18484
  };
18513
- await j.fetch({
18514
- fetchType: te.Post,
18485
+ await K.fetch({
18486
+ fetchType: re.Post,
18515
18487
  url: `/${k.value}/reports/email`,
18516
- data: se,
18488
+ data: fe,
18517
18489
  requestConfig: { timeout: 1e3 * 60 * 3 }
18518
18490
  });
18519
- }, xt = async (F) => {
18520
- const { businessId: w } = Y(ee());
18521
- await j.fetch({
18522
- fetchType: te.Post,
18491
+ }, Dt = async (F) => {
18492
+ const { businessId: w } = W(te());
18493
+ await K.fetch({
18494
+ fetchType: re.Post,
18523
18495
  url: `/${w.value}/reports/resend-email`,
18524
18496
  data: { jobId: F },
18525
18497
  requestConfig: { timeout: 1e3 * 60 * 3 }
18526
18498
  });
18527
- }, Pt = async () => {
18528
- const { businessId: F } = Y(ee());
18529
- return await j.fetch({
18530
- fetchType: te.Get,
18499
+ }, Jt = async () => {
18500
+ const { businessId: F } = W(te());
18501
+ return await K.fetch({
18502
+ fetchType: re.Get,
18531
18503
  url: `/${F.value}/reports/email-recipients`
18532
18504
  });
18533
- }, Nt = async (F) => {
18534
- const { businessId: w } = Y(ee());
18535
- await j.fetch({
18536
- fetchType: te.Post,
18505
+ }, xt = async (F) => {
18506
+ const { businessId: w } = W(te());
18507
+ await K.fetch({
18508
+ fetchType: re.Post,
18537
18509
  url: `/${w.value}/reports/email-recipient/delete`,
18538
18510
  data: { email: F }
18539
18511
  });
18540
18512
  };
18541
18513
  let Ee;
18542
- const Tt = new Uint8Array(16);
18543
- function Et() {
18514
+ const ht = new Uint8Array(16);
18515
+ function At() {
18544
18516
  if (!Ee && (Ee = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Ee))
18545
18517
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
18546
- return Ee(Tt);
18518
+ return Ee(ht);
18547
18519
  }
18548
- const X = [];
18520
+ const z = [];
18549
18521
  for (let F = 0; F < 256; ++F)
18550
- X.push((F + 256).toString(16).slice(1));
18551
- function It(F, w = 0) {
18552
- return X[F[w + 0]] + X[F[w + 1]] + X[F[w + 2]] + X[F[w + 3]] + "-" + X[F[w + 4]] + X[F[w + 5]] + "-" + X[F[w + 6]] + X[F[w + 7]] + "-" + X[F[w + 8]] + X[F[w + 9]] + "-" + X[F[w + 10]] + X[F[w + 11]] + X[F[w + 12]] + X[F[w + 13]] + X[F[w + 14]] + X[F[w + 15]];
18522
+ z.push((F + 256).toString(16).slice(1));
18523
+ function Tt(F, w = 0) {
18524
+ return z[F[w + 0]] + z[F[w + 1]] + z[F[w + 2]] + z[F[w + 3]] + "-" + z[F[w + 4]] + z[F[w + 5]] + "-" + z[F[w + 6]] + z[F[w + 7]] + "-" + z[F[w + 8]] + z[F[w + 9]] + "-" + z[F[w + 10]] + z[F[w + 11]] + z[F[w + 12]] + z[F[w + 13]] + z[F[w + 14]] + z[F[w + 15]];
18553
18525
  }
18554
- const Mt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), He = {
18555
- randomUUID: Mt
18526
+ const Et = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Pe = {
18527
+ randomUUID: Et
18556
18528
  };
18557
- function kt(F, w, J) {
18558
- if (He.randomUUID && !w && !F)
18559
- return He.randomUUID();
18529
+ function Pt(F, w, J) {
18530
+ if (Pe.randomUUID && !w && !F)
18531
+ return Pe.randomUUID();
18560
18532
  F = F || {};
18561
- const H = F.random || (F.rng || Et)();
18562
- if (H[6] = H[6] & 15 | 64, H[8] = H[8] & 63 | 128, w) {
18533
+ const U = F.random || (F.rng || At)();
18534
+ if (U[6] = U[6] & 15 | 64, U[8] = U[8] & 63 | 128, w) {
18563
18535
  J = J || 0;
18564
18536
  for (let N = 0; N < 16; ++N)
18565
- w[J + N] = H[N];
18537
+ w[J + N] = U[N];
18566
18538
  return w;
18567
18539
  }
18568
- return It(H);
18540
+ return Tt(U);
18569
18541
  }
18570
18542
  export {
18571
- lt as P,
18572
- st as R,
18573
- ot as W,
18574
- Pe as a,
18575
- We as b,
18576
- Pt as c,
18577
- Dt as d,
18578
- wt as e,
18579
- Nt as f,
18580
- Lt as g,
18581
- vt as q,
18582
- xt as r,
18583
- Jt as s,
18584
- Ge as u,
18585
- kt as v
18543
+ ot as P,
18544
+ at as R,
18545
+ nt as W,
18546
+ Be as a,
18547
+ Ve as b,
18548
+ Jt as c,
18549
+ wt as d,
18550
+ Ot as e,
18551
+ xt as f,
18552
+ Ft as g,
18553
+ Lt as q,
18554
+ Dt as r,
18555
+ vt as s,
18556
+ Qe as u,
18557
+ Pt as v
18586
18558
  };