@feedmepos/mf-report 5.7.1 → 5.7.2-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-BuPfdYFT.js → App-g70gjVg5.js} +42 -42
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-Bi_BES93.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-BD2DnN09.js} +2 -2
- package/dist/{Default.vue_vue_type_script_setup_true_lang-C6ZScbW9.js → Default.vue_vue_type_script_setup_true_lang-DA7ZPTMu.js} +2 -2
- package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-CzeKUdlZ.js +1390 -0
- package/dist/{InsightView-Df3r1SIZ.js → InsightView-BgZN-puI.js} +6 -6
- package/dist/{Integration-9ahqwmBM.js → Integration-Bu0y1MDy.js} +3 -3
- package/dist/{Integrations-BiJVCGrp.js → Integrations-DS6q4VX4.js} +3 -3
- package/dist/{Layout-DzM5U91z.js → Layout-BEv71fRc.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-M-v_jPRR.js → MenuTab.vue_vue_type_script_setup_true_lang-C_XDMF54.js} +3 -3
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-D-g5xCo7.js → NavigationTab.vue_vue_type_script_setup_true_lang-20jP9Afi.js} +5200 -5177
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-CdFXBqlX.js → NoData.vue_vue_type_script_setup_true_lang-EVDtMqna.js} +1 -1
- package/dist/{OverviewView-De1U7FMY.js → OverviewView-DNi0LbGr.js} +5 -5
- package/dist/{Report-BZjd3vzV.js → Report-DISFMEyR.js} +4 -4
- package/dist/{ReportEditor-9JfaoQnu.js → ReportEditor-CZPw2Jgp.js} +5 -5
- package/dist/{ReportView-DhM6dHM7.js → ReportView-CEXLqC8H.js} +7 -7
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-N2Lg1Vpt.js → SelectComponent.vue_vue_type_script_setup_true_lang-Cpjinmn4.js} +1 -1
- package/dist/{Setting-BsawF0vk.js → Setting-WreFZCg_.js} +4 -4
- package/dist/TileEditor-DDtOoCz1.js +3016 -0
- package/dist/{TransitionFade-OVG1ERGf.js → TransitionFade-DBnslQJr.js} +4 -4
- package/dist/app.js +11 -11
- package/dist/{global-loader-CbmVhJAK.js → global-loader-DqYGIXIo.js} +1 -1
- package/dist/{index-BWqDfeY6.js → index-BChph3k1.js} +1 -1
- package/dist/{report-schema-BnzKoFjx.js → report-schema-CbMyeD7Q.js} +1 -1
- package/dist/{v4-CJZMeb87.js → v4-Dg_nqjTJ.js} +198 -196
- package/package.json +1 -1
- package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-Nk_mV6TX.js +0 -1303
- package/dist/TileEditor-njxrJOwv.js +0 -3017
|
@@ -1,4 +1,4 @@
|
|
|
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
|
|
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 fe, e as ze, k as Ke } from "./global-loader-DqYGIXIo.js";
|
|
2
2
|
import { storeToRefs as W, defineStore as ke } from "pinia";
|
|
3
3
|
import { ref as X, computed as Ae, h as Xe, watch as Ze } from "vue";
|
|
4
4
|
import { useSnackbar as et, components as tt } from "@feedmepos/ui-library";
|
|
@@ -9,10 +9,10 @@ function He(F) {
|
|
|
9
9
|
var Me = {};
|
|
10
10
|
(function(F) {
|
|
11
11
|
var w = typeof xe < "u" ? xe : window, J = Object.create(w);
|
|
12
|
-
J.scheduleImmediate = typeof setImmediate < "u" ? function(
|
|
13
|
-
setImmediate(
|
|
14
|
-
} : function(
|
|
15
|
-
setTimeout(
|
|
12
|
+
J.scheduleImmediate = typeof setImmediate < "u" ? function(B) {
|
|
13
|
+
setImmediate(B);
|
|
14
|
+
} : function(B) {
|
|
15
|
+
setTimeout(B, 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
17
|
var H = !w.window;
|
|
18
18
|
try {
|
|
@@ -25,37 +25,37 @@ var Me = {};
|
|
|
25
25
|
value: {
|
|
26
26
|
get href() {
|
|
27
27
|
return k.pathToFileURL ? k.pathToFileURL(process.cwd()).href + "/" : "file://" + function() {
|
|
28
|
-
var
|
|
29
|
-
return process.platform != "win32" ?
|
|
28
|
+
var B = process.cwd();
|
|
29
|
+
return process.platform != "win32" ? B : "/" + B.replace(/\\/g, "/");
|
|
30
30
|
}() + "/";
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
}), function() {
|
|
34
|
-
function
|
|
34
|
+
function B() {
|
|
35
35
|
try {
|
|
36
36
|
throw new Error();
|
|
37
37
|
} catch (G) {
|
|
38
|
-
var N = G.stack,
|
|
38
|
+
var N = G.stack, Q = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), U = null;
|
|
39
39
|
do {
|
|
40
|
-
var V =
|
|
41
|
-
V != null && (
|
|
40
|
+
var V = Q.exec(N);
|
|
41
|
+
V != null && (U = V);
|
|
42
42
|
} while (V != null);
|
|
43
|
-
return
|
|
43
|
+
return U[1];
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
var P = null;
|
|
47
47
|
Object.defineProperty(J, "document", {
|
|
48
48
|
value: {
|
|
49
49
|
get currentScript() {
|
|
50
|
-
return P == null && (P = { src:
|
|
50
|
+
return P == null && (P = { src: B() }), P;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
|
-
}(), J.dartDeferredLibraryLoader = function(
|
|
54
|
+
}(), J.dartDeferredLibraryLoader = function(B, P, N) {
|
|
55
55
|
try {
|
|
56
|
-
load(
|
|
57
|
-
} catch (
|
|
58
|
-
N(
|
|
56
|
+
load(B), P();
|
|
57
|
+
} catch (Q) {
|
|
58
|
+
N(Q);
|
|
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
|
|
75
|
+
function Q(r, e) {
|
|
76
76
|
Object.assign(e, r);
|
|
77
77
|
}
|
|
78
|
-
var
|
|
78
|
+
var U = 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 (
|
|
99
|
+
if (U) {
|
|
100
100
|
r.prototype.__proto__ = e.prototype;
|
|
101
101
|
return;
|
|
102
102
|
}
|
|
@@ -109,12 +109,12 @@ var Me = {};
|
|
|
109
109
|
V(e[i], r);
|
|
110
110
|
}
|
|
111
111
|
function Y(r, e) {
|
|
112
|
-
|
|
112
|
+
Q(e.prototype, r.prototype), r.prototype.constructor = r;
|
|
113
113
|
}
|
|
114
114
|
function ne(r, e) {
|
|
115
115
|
N(e.prototype, r.prototype), r.prototype.constructor = r;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function le(r, e, i, n) {
|
|
118
118
|
var a = r;
|
|
119
119
|
r[e] = a, r[i] = function() {
|
|
120
120
|
r[i] = function() {
|
|
@@ -152,17 +152,17 @@ var Me = {};
|
|
|
152
152
|
}, l;
|
|
153
153
|
};
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function ye(r) {
|
|
156
156
|
return r.immutable$list = Array, r.fixed$length = Array, r;
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function ue(r) {
|
|
159
159
|
return r;
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function ie(r) {
|
|
162
162
|
for (var e = 0; e < r.length; ++e)
|
|
163
163
|
r[e];
|
|
164
164
|
}
|
|
165
|
-
function
|
|
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);
|
|
@@ -170,23 +170,23 @@ var Me = {};
|
|
|
170
170
|
return i === null && (i = t.closureFromTearOff(e)), new i(this, null);
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function oe(r) {
|
|
174
174
|
var e = null;
|
|
175
175
|
return function() {
|
|
176
176
|
return e === null && (e = t.closureFromTearOff(r).prototype), e;
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
|
-
var
|
|
180
|
-
function
|
|
181
|
-
return typeof _ == "number" && (_ +=
|
|
179
|
+
var _e = 0;
|
|
180
|
+
function se(r, e, i, n, a, s, l, _, d, c) {
|
|
181
|
+
return typeof _ == "number" && (_ += _e), { co: r, iS: e, iI: i, rC: n, dV: a, cs: s, fs: l, fT: _, aI: d || 0, nDA: c };
|
|
182
182
|
}
|
|
183
183
|
function de(r, e, i, n, a, s, l, _) {
|
|
184
|
-
var d =
|
|
184
|
+
var d = se(r, !0, !1, i, n, a, s, l, _, !1), c = oe(d);
|
|
185
185
|
r[e] = c;
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function ce(r, e, i, n, a, s, l, _, d, c) {
|
|
188
188
|
i = !!i;
|
|
189
|
-
var f =
|
|
189
|
+
var f = se(r, !1, i, n, a, s, l, _, d, !!c), $ = ee(i, f);
|
|
190
190
|
r[e] = $;
|
|
191
191
|
}
|
|
192
192
|
function he(r) {
|
|
@@ -215,14 +215,14 @@ var Me = {};
|
|
|
215
215
|
var j = function() {
|
|
216
216
|
var r = function(i, n, a, s, l) {
|
|
217
217
|
return function(_, d, c, f) {
|
|
218
|
-
return
|
|
218
|
+
return ce(_, 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
222
|
return de(l, _, i, n, a, [d], c, s);
|
|
223
223
|
};
|
|
224
224
|
};
|
|
225
|
-
return { inherit: V, inheritMany: G, mixin: Y, mixinHard: ne, installStaticTearOff: de, installInstanceTearOff:
|
|
225
|
+
return { inherit: V, inheritMany: G, mixin: Y, mixinHard: ne, installStaticTearOff: de, installInstanceTearOff: ce, _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: ye, lazy: Z, lazyFinal: ae, lazyOld: le, updateHolder: ge, convertToFastObject: ue, 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,
|
|
1760
|
+
var s, l, _, d, c, f, $, g, m, h, A, E, M, b, R, C, O, D, L, v, x, q;
|
|
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 (
|
|
1777
|
-
if (
|
|
1776
|
+
if (q = b[D - 2], x < v) {
|
|
1777
|
+
if (q)
|
|
1778
1778
|
return !1;
|
|
1779
1779
|
continue;
|
|
1780
1780
|
}
|
|
1781
|
-
if (M = R[L + 1],
|
|
1781
|
+
if (M = R[L + 1], q && !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",
|
|
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";
|
|
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",
|
|
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);
|
|
8352
8352
|
},
|
|
8353
8353
|
$signature: 0
|
|
8354
8354
|
}, t.flattenItemSchema_closure0.prototype = {
|
|
@@ -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),
|
|
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",
|
|
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"));
|
|
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);
|
|
@@ -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
|
-
},
|
|
10080
|
+
}, ie(p), function(r) {
|
|
10081
10081
|
if (typeof document > "u") {
|
|
10082
10082
|
r(null);
|
|
10083
10083
|
return;
|
|
@@ -10110,11 +10110,11 @@ var Ue = {};
|
|
|
10110
10110
|
} : function(P) {
|
|
10111
10111
|
setTimeout(P, 0);
|
|
10112
10112
|
}, k.exports = J || F, typeof process < "u" && (k.process = process), typeof __dirname < "u" && (k.__dirname = __dirname), typeof __filename < "u" && (k.__filename = __filename), typeof Buffer < "u" && (k.Buffer = Buffer), H) {
|
|
10113
|
-
var
|
|
10113
|
+
var B = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : He)("url");
|
|
10114
10114
|
Object.defineProperty(k, "location", {
|
|
10115
10115
|
value: {
|
|
10116
10116
|
get href() {
|
|
10117
|
-
return
|
|
10117
|
+
return B.pathToFileURL ? B.pathToFileURL(process.cwd()).href + "/" : "file://" + function() {
|
|
10118
10118
|
var P = process.cwd();
|
|
10119
10119
|
return process.platform != "win32" ? P : "/" + P.replace(/\\/g, "/");
|
|
10120
10120
|
}() + "/";
|
|
@@ -10125,9 +10125,9 @@ var Ue = {};
|
|
|
10125
10125
|
try {
|
|
10126
10126
|
throw new Error();
|
|
10127
10127
|
} catch (Y) {
|
|
10128
|
-
var
|
|
10128
|
+
var Q = Y.stack, U = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), V = null;
|
|
10129
10129
|
do {
|
|
10130
|
-
var G =
|
|
10130
|
+
var G = U.exec(Q);
|
|
10131
10131
|
G != null && (V = G);
|
|
10132
10132
|
} while (G != null);
|
|
10133
10133
|
return V[1];
|
|
@@ -10141,11 +10141,11 @@ var Ue = {};
|
|
|
10141
10141
|
}
|
|
10142
10142
|
}
|
|
10143
10143
|
});
|
|
10144
|
-
}(), k.dartDeferredLibraryLoader = function(P, N,
|
|
10144
|
+
}(), k.dartDeferredLibraryLoader = function(P, N, Q) {
|
|
10145
10145
|
try {
|
|
10146
10146
|
load(P), N();
|
|
10147
|
-
} catch (
|
|
10148
|
-
|
|
10147
|
+
} catch (U) {
|
|
10148
|
+
Q(U);
|
|
10149
10149
|
}
|
|
10150
10150
|
};
|
|
10151
10151
|
}
|
|
@@ -10156,13 +10156,13 @@ var Ue = {};
|
|
|
10156
10156
|
i[s] = e[s];
|
|
10157
10157
|
}
|
|
10158
10158
|
}
|
|
10159
|
-
function
|
|
10159
|
+
function Q(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
|
|
10165
|
+
function U(e, i) {
|
|
10166
10166
|
Object.assign(i, e);
|
|
10167
10167
|
}
|
|
10168
10168
|
var V = function() {
|
|
@@ -10199,10 +10199,10 @@ var Ue = {};
|
|
|
10199
10199
|
G(i[n], e);
|
|
10200
10200
|
}
|
|
10201
10201
|
function ne(e, i) {
|
|
10202
|
-
|
|
10202
|
+
U(i.prototype, e.prototype), e.prototype.constructor = e;
|
|
10203
10203
|
}
|
|
10204
|
-
function
|
|
10205
|
-
|
|
10204
|
+
function le(e, i) {
|
|
10205
|
+
Q(i.prototype, e.prototype), e.prototype.constructor = e;
|
|
10206
10206
|
}
|
|
10207
10207
|
function Z(e, i, n, a) {
|
|
10208
10208
|
var s = e;
|
|
@@ -10229,7 +10229,7 @@ var Ue = {};
|
|
|
10229
10229
|
}, e[i];
|
|
10230
10230
|
};
|
|
10231
10231
|
}
|
|
10232
|
-
function
|
|
10232
|
+
function ye(e, i, n, a) {
|
|
10233
10233
|
var s = e;
|
|
10234
10234
|
e[i] = s, e[n] = function() {
|
|
10235
10235
|
if (e[i] === s) {
|
|
@@ -10242,17 +10242,17 @@ var Ue = {};
|
|
|
10242
10242
|
}, _;
|
|
10243
10243
|
};
|
|
10244
10244
|
}
|
|
10245
|
-
function
|
|
10245
|
+
function ue(e) {
|
|
10246
10246
|
return e.immutable$list = Array, e.fixed$length = Array, e;
|
|
10247
10247
|
}
|
|
10248
|
-
function
|
|
10248
|
+
function ie(e) {
|
|
10249
10249
|
return e;
|
|
10250
10250
|
}
|
|
10251
|
-
function
|
|
10251
|
+
function ee(e) {
|
|
10252
10252
|
for (var i = 0; i < e.length; ++i)
|
|
10253
10253
|
e[i];
|
|
10254
10254
|
}
|
|
10255
|
-
function
|
|
10255
|
+
function oe(e, i) {
|
|
10256
10256
|
var n = null;
|
|
10257
10257
|
return e ? function(a) {
|
|
10258
10258
|
return n === null && (n = o.closureFromTearOff(i)), new n(a, this);
|
|
@@ -10260,23 +10260,23 @@ var Ue = {};
|
|
|
10260
10260
|
return n === null && (n = o.closureFromTearOff(i)), new n(this, null);
|
|
10261
10261
|
};
|
|
10262
10262
|
}
|
|
10263
|
-
function
|
|
10263
|
+
function _e(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
|
|
10269
|
+
var se = 0;
|
|
10270
10270
|
function de(e, i, n, a, s, l, _, d, c, f) {
|
|
10271
|
-
return typeof d == "number" && (d +=
|
|
10271
|
+
return typeof d == "number" && (d += se), { co: e, iS: i, iI: n, rC: a, dV: s, cs: l, fs: _, fT: d, aI: c || 0, nDA: f };
|
|
10272
10272
|
}
|
|
10273
|
-
function
|
|
10274
|
-
var c = de(e, !0, !1, n, a, s, l, _, d, !1), f =
|
|
10273
|
+
function ce(e, i, n, a, s, l, _, d) {
|
|
10274
|
+
var c = de(e, !0, !1, n, a, s, l, _, d, !1), f = _e(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 $ = de(e, !1, n, a, s, l, _, d, c, !!f), g =
|
|
10279
|
+
var $ = de(e, !1, n, a, s, l, _, d, c, !!f), g = oe(n, $);
|
|
10280
10280
|
e[i] = g;
|
|
10281
10281
|
}
|
|
10282
10282
|
function Te(e) {
|
|
@@ -10309,10 +10309,10 @@ var Ue = {};
|
|
|
10309
10309
|
};
|
|
10310
10310
|
}, i = function(n, a, s, l) {
|
|
10311
10311
|
return function(_, d, c, f) {
|
|
10312
|
-
return
|
|
10312
|
+
return ce(_, d, n, a, s, [c], f, l);
|
|
10313
10313
|
};
|
|
10314
10314
|
};
|
|
10315
|
-
return { inherit: G, inheritMany: Y, mixin: ne, mixinHard:
|
|
10315
|
+
return { inherit: G, inheritMany: Y, mixin: ne, mixinHard: le, installStaticTearOff: ce, 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: ue, lazy: ae, lazyFinal: ye, 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 Ue = {};
|
|
|
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),
|
|
10362
|
-
if (a.call$2(D, L) > 0 && (s = L, L = D, D = s), a.call$2(x,
|
|
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)) {
|
|
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 Ue = {};
|
|
|
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,
|
|
11858
|
+
var l, _, d, c, f, $, g, m, h, A, E, M, b, R, C, O, D, L, v, x, q, pe;
|
|
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 Ue = {};
|
|
|
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 || (
|
|
11872
|
+
if (L >= O || (q = R[L], L += 3, x < q))
|
|
11873
11873
|
return !1;
|
|
11874
|
-
if (
|
|
11875
|
-
if (
|
|
11874
|
+
if (pe = R[L - 2], q < x) {
|
|
11875
|
+
if (pe)
|
|
11876
11876
|
return !1;
|
|
11877
11877
|
continue;
|
|
11878
11878
|
}
|
|
11879
|
-
if (b = C[v + 1],
|
|
11879
|
+
if (b = C[v + 1], pe && !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),
|
|
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);
|
|
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)),
|
|
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);
|
|
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,
|
|
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(
|
|
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;
|
|
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),
|
|
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",
|
|
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), 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", 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", 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
|
-
},
|
|
17956
|
+
}, ee(S), function(e) {
|
|
17957
17957
|
if (typeof document > "u") {
|
|
17958
17958
|
e(null);
|
|
17959
17959
|
return;
|
|
@@ -17980,8 +17980,8 @@ Arguments: [` + c + "]";
|
|
|
17980
17980
|
})(Ue);
|
|
17981
17981
|
const qe = Ue;
|
|
17982
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 || {});
|
|
17984
|
-
function
|
|
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 Rt(F) {
|
|
|
17993
17993
|
return "Unknown";
|
|
17994
17994
|
}
|
|
17995
17995
|
}
|
|
17996
|
-
const Se = "/report-settings",
|
|
17996
|
+
const Se = "/report-settings", st = async () => {
|
|
17997
17997
|
const { businessId: F } = W(te());
|
|
17998
17998
|
if (F) {
|
|
17999
17999
|
const w = {
|
|
@@ -18003,34 +18003,34 @@ const Se = "/report-settings", ot = async () => {
|
|
|
18003
18003
|
return K.fetch(w);
|
|
18004
18004
|
} else
|
|
18005
18005
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
18006
|
-
},
|
|
18006
|
+
}, lt = (F) => {
|
|
18007
18007
|
const { businessId: w } = W(te()), J = {
|
|
18008
18008
|
fetchType: re.Put,
|
|
18009
18009
|
url: `${Se}/${w.value}/reports/${F.id}`,
|
|
18010
18010
|
data: F
|
|
18011
18011
|
};
|
|
18012
18012
|
return K.fetch(J);
|
|
18013
|
-
},
|
|
18013
|
+
}, _t = (F) => {
|
|
18014
18014
|
const { businessId: w } = W(te()), J = {
|
|
18015
18015
|
fetchType: re.Post,
|
|
18016
18016
|
url: `${Se}/${w.value}/reports`,
|
|
18017
18017
|
data: F
|
|
18018
18018
|
};
|
|
18019
18019
|
return K.fetch(J);
|
|
18020
|
-
},
|
|
18020
|
+
}, ut = (F) => {
|
|
18021
18021
|
const { businessId: w } = W(te()), J = {
|
|
18022
18022
|
fetchType: re.Delete,
|
|
18023
18023
|
url: `${Se}/${w.value}/reports/${F.id}`
|
|
18024
18024
|
};
|
|
18025
18025
|
return K.fetch(J);
|
|
18026
|
-
},
|
|
18026
|
+
}, dt = (F) => {
|
|
18027
18027
|
const { businessId: w } = W(te()), J = {
|
|
18028
18028
|
fetchType: re.Put,
|
|
18029
18029
|
url: `${Se}/${w.value}/reports/default`,
|
|
18030
18030
|
data: { defaultReport: F }
|
|
18031
18031
|
};
|
|
18032
18032
|
return K.fetch(J);
|
|
18033
|
-
},
|
|
18033
|
+
}, ct = async () => {
|
|
18034
18034
|
const { businessId: F } = W(te());
|
|
18035
18035
|
if (F) {
|
|
18036
18036
|
const w = {
|
|
@@ -18040,7 +18040,7 @@ const Se = "/report-settings", ot = async () => {
|
|
|
18040
18040
|
return K.fetch(w);
|
|
18041
18041
|
} else
|
|
18042
18042
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
18043
|
-
},
|
|
18043
|
+
}, pt = async () => {
|
|
18044
18044
|
const { businessId: F } = W(te());
|
|
18045
18045
|
if (F) {
|
|
18046
18046
|
const w = {
|
|
@@ -18050,17 +18050,17 @@ const Se = "/report-settings", ot = async () => {
|
|
|
18050
18050
|
return K.fetch(w);
|
|
18051
18051
|
} else
|
|
18052
18052
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
18053
|
-
},
|
|
18053
|
+
}, ft = "/report-settings", yt = async () => {
|
|
18054
18054
|
const { businessId: F } = W(te());
|
|
18055
18055
|
if (F) {
|
|
18056
18056
|
const w = {
|
|
18057
18057
|
fetchType: re.Get,
|
|
18058
|
-
url: `${
|
|
18058
|
+
url: `${ft}/${F.value}/categories`
|
|
18059
18059
|
};
|
|
18060
18060
|
return K.fetch(w);
|
|
18061
18061
|
} else
|
|
18062
18062
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
18063
|
-
},
|
|
18063
|
+
}, $t = (F) => {
|
|
18064
18064
|
const { businessId: w } = W(te()), J = {
|
|
18065
18065
|
fetchType: re.Post,
|
|
18066
18066
|
url: `/report-settings/${w.value}/date-settings`,
|
|
@@ -18088,22 +18088,22 @@ const me = {
|
|
|
18088
18088
|
setJson: (F, w) => {
|
|
18089
18089
|
localStorage.setItem(F, JSON.stringify(w));
|
|
18090
18090
|
}
|
|
18091
|
-
},
|
|
18092
|
-
const { business: F } = W(Ie()), { flags: w } = W(Ne()), J = X([]), H = X([]), k = X(0),
|
|
18091
|
+
}, gt = "mf-reportreport-store", Be = ke(gt, () => {
|
|
18092
|
+
const { business: F } = W(Ie()), { flags: w } = W(Ne()), J = X([]), H = X([]), k = X(0), B = et(), P = Ae(() => J.value.filter((p) => p.editable)), N = Ae(() => J.value.filter((p) => !p.editable)), Q = X(!1), U = X(""), V = X(), G = X(), Y = Ae(() => {
|
|
18093
18093
|
const p = w.value.find(
|
|
18094
18094
|
(S) => S.key === je.report_portal_integration_custom_report
|
|
18095
18095
|
);
|
|
18096
18096
|
return typeof (p == null ? void 0 : p.value) == "number" ? p.value : null;
|
|
18097
18097
|
}), ne = Ae(() => Y.value === null ? !0 : Y.value - P.value.length > 0);
|
|
18098
|
-
async function
|
|
18099
|
-
return G.value = await
|
|
18098
|
+
async function le() {
|
|
18099
|
+
return G.value = await ct(), G.value;
|
|
18100
18100
|
}
|
|
18101
18101
|
async function Z() {
|
|
18102
18102
|
var p;
|
|
18103
18103
|
try {
|
|
18104
|
-
J.value = await
|
|
18104
|
+
J.value = await st(), H.value = await yt(), 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);
|
|
18105
18105
|
} catch (S) {
|
|
18106
|
-
console.log(S),
|
|
18106
|
+
console.log(S), B.open({
|
|
18107
18107
|
title: "Report Fetch Error",
|
|
18108
18108
|
message: "Internal Server Error",
|
|
18109
18109
|
type: "error"
|
|
@@ -18111,29 +18111,29 @@ const me = {
|
|
|
18111
18111
|
}
|
|
18112
18112
|
}
|
|
18113
18113
|
const ae = Ae(
|
|
18114
|
-
() => J.value.find((p) => p.id ===
|
|
18115
|
-
),
|
|
18116
|
-
async function
|
|
18114
|
+
() => J.value.find((p) => p.id === U.value)
|
|
18115
|
+
), ye = X(), ue = X(0), ie = X(), ee = X(!1), oe = X(!1), _e = X(!1);
|
|
18116
|
+
async function se(p) {
|
|
18117
18117
|
if (P.value.findIndex((T) => T.id === p.id) >= 0) {
|
|
18118
|
-
const T = await st(p);
|
|
18119
|
-
Q.value = T.id;
|
|
18120
|
-
} else {
|
|
18121
18118
|
const T = await lt(p);
|
|
18122
|
-
|
|
18119
|
+
U.value = T.id;
|
|
18120
|
+
} else {
|
|
18121
|
+
const T = await _t(p);
|
|
18122
|
+
U.value = T.id;
|
|
18123
18123
|
}
|
|
18124
18124
|
await Z();
|
|
18125
18125
|
}
|
|
18126
18126
|
async function de(p) {
|
|
18127
|
-
return await
|
|
18127
|
+
return await $t(p);
|
|
18128
18128
|
}
|
|
18129
|
-
async function
|
|
18130
|
-
await
|
|
18129
|
+
async function ce(p) {
|
|
18130
|
+
await ut(p), await Z();
|
|
18131
18131
|
}
|
|
18132
18132
|
async function he(p) {
|
|
18133
|
-
await
|
|
18133
|
+
await dt(p), await Z();
|
|
18134
18134
|
}
|
|
18135
18135
|
function Te(p) {
|
|
18136
|
-
J.value.findIndex((T) => T.id === p) !== -1 && (
|
|
18136
|
+
J.value.findIndex((T) => T.id === p) !== -1 && (U.value = p);
|
|
18137
18137
|
}
|
|
18138
18138
|
const $e = X(null);
|
|
18139
18139
|
function ge() {
|
|
@@ -18167,53 +18167,53 @@ const me = {
|
|
|
18167
18167
|
const p = me.getJson("feedback");
|
|
18168
18168
|
if (!p[F.value._id])
|
|
18169
18169
|
p[F.value._id] = {
|
|
18170
|
-
date:
|
|
18170
|
+
date: fe().local().format("YYYY-MM-DD"),
|
|
18171
18171
|
feedback: !1
|
|
18172
18172
|
};
|
|
18173
18173
|
else {
|
|
18174
|
-
const S =
|
|
18175
|
-
Math.abs(S.diff(
|
|
18174
|
+
const S = fe(p[F.value._id].date).local();
|
|
18175
|
+
Math.abs(S.diff(fe().endOf("day").local(), "d")) >= 1 && !p[F.value._id].feedback && (oe.value = !0);
|
|
18176
18176
|
}
|
|
18177
18177
|
me.setJson("feedback", p);
|
|
18178
18178
|
}
|
|
18179
18179
|
}
|
|
18180
18180
|
async function u() {
|
|
18181
|
-
return await
|
|
18181
|
+
return await pt();
|
|
18182
18182
|
}
|
|
18183
18183
|
return {
|
|
18184
|
-
isOpenDownloadDialog:
|
|
18185
|
-
isOpenFeedbackDialog:
|
|
18186
|
-
isOpenEmailDialog:
|
|
18184
|
+
isOpenDownloadDialog: ee,
|
|
18185
|
+
isOpenFeedbackDialog: oe,
|
|
18186
|
+
isOpenEmailDialog: _e,
|
|
18187
18187
|
currentSelectWidgetType: V,
|
|
18188
18188
|
reports: J,
|
|
18189
18189
|
categories: H,
|
|
18190
18190
|
currentReport: ae,
|
|
18191
|
-
editingReport:
|
|
18192
|
-
editingIndex:
|
|
18193
|
-
editingTile:
|
|
18194
|
-
currentReportId:
|
|
18191
|
+
editingReport: ye,
|
|
18192
|
+
editingIndex: ue,
|
|
18193
|
+
editingTile: ie,
|
|
18194
|
+
currentReportId: U,
|
|
18195
18195
|
editableReports: P,
|
|
18196
18196
|
nonEditableReports: N,
|
|
18197
|
-
isOpenAddReportDialog:
|
|
18197
|
+
isOpenAddReportDialog: Q,
|
|
18198
18198
|
overviewReport: G,
|
|
18199
18199
|
pinReport: $e,
|
|
18200
18200
|
scrollPositionY: k,
|
|
18201
18201
|
customReportQuota: Y,
|
|
18202
18202
|
canCreateCustomReport: ne,
|
|
18203
|
-
createOrUpdateReport:
|
|
18204
|
-
removeReport:
|
|
18203
|
+
createOrUpdateReport: se,
|
|
18204
|
+
removeReport: ce,
|
|
18205
18205
|
updateCurrentReportId: Te,
|
|
18206
18206
|
getReports: Z,
|
|
18207
18207
|
updateDefaultReport: he,
|
|
18208
18208
|
checkFeedback: o,
|
|
18209
|
-
getOverviewReport:
|
|
18209
|
+
getOverviewReport: le,
|
|
18210
18210
|
refreshPinReport: ge,
|
|
18211
18211
|
cachePinReport: j,
|
|
18212
18212
|
clearPinReport: t,
|
|
18213
18213
|
getReportConfig: u,
|
|
18214
18214
|
submitFeedback: de
|
|
18215
18215
|
};
|
|
18216
|
-
}),
|
|
18216
|
+
}), mt = "mf-reportnavigation", Qe = ke(mt, () => {
|
|
18217
18217
|
const { disabled: F } = W(ze()), { isIntegrationWhitelist: w } = W(Ne()), J = X("v5"), H = Ae(() => {
|
|
18218
18218
|
const N = [
|
|
18219
18219
|
{
|
|
@@ -18243,7 +18243,7 @@ const me = {
|
|
|
18243
18243
|
value: "integration",
|
|
18244
18244
|
route: "integrations"
|
|
18245
18245
|
}), N;
|
|
18246
|
-
}), k = X(""), { currentRoute:
|
|
18246
|
+
}), k = X(""), { currentRoute: B } = rt();
|
|
18247
18247
|
function P(N) {
|
|
18248
18248
|
switch (N.name) {
|
|
18249
18249
|
case "report":
|
|
@@ -18266,7 +18266,7 @@ const me = {
|
|
|
18266
18266
|
}
|
|
18267
18267
|
}
|
|
18268
18268
|
return Ze(
|
|
18269
|
-
|
|
18269
|
+
B,
|
|
18270
18270
|
(N) => {
|
|
18271
18271
|
P(N);
|
|
18272
18272
|
},
|
|
@@ -18278,8 +18278,8 @@ const me = {
|
|
|
18278
18278
|
};
|
|
18279
18279
|
});
|
|
18280
18280
|
var Ve = /* @__PURE__ */ ((F) => (F.generating = "GENERATING", F.completed = "COMPLETED", F.failed = "FAILED", F.canceled = "CANCELLED", F))(Ve || {});
|
|
18281
|
-
|
|
18282
|
-
async function
|
|
18281
|
+
fe.extend(Ke);
|
|
18282
|
+
async function St(F, w) {
|
|
18283
18283
|
for (let J = 0; J < F.length; J++)
|
|
18284
18284
|
try {
|
|
18285
18285
|
return await F[J]();
|
|
@@ -18289,15 +18289,15 @@ async function mt(F, w) {
|
|
|
18289
18289
|
}
|
|
18290
18290
|
throw new Error("No callback");
|
|
18291
18291
|
}
|
|
18292
|
-
const
|
|
18293
|
-
var Y, ne,
|
|
18292
|
+
const Ot = async (F, w) => {
|
|
18293
|
+
var Y, ne, le, Z;
|
|
18294
18294
|
const { businessId: J, country: H } = W(te()), {
|
|
18295
18295
|
selectedRestaurantIds: k,
|
|
18296
|
-
selectedWarehouseIds:
|
|
18296
|
+
selectedWarehouseIds: B,
|
|
18297
18297
|
selectedLocationIds: P,
|
|
18298
18298
|
dateRange: N,
|
|
18299
|
-
compareDateRange:
|
|
18300
|
-
timeRange:
|
|
18299
|
+
compareDateRange: Q,
|
|
18300
|
+
timeRange: U
|
|
18301
18301
|
} = Ie();
|
|
18302
18302
|
if (P.length === 0)
|
|
18303
18303
|
return null;
|
|
@@ -18307,21 +18307,21 @@ const Ft = async (F, w) => {
|
|
|
18307
18307
|
data: Me.getQueryRequests({
|
|
18308
18308
|
widget: F,
|
|
18309
18309
|
dateRange: [N.startDate, N.endDate],
|
|
18310
|
-
compareDateRange:
|
|
18310
|
+
compareDateRange: Q.startDate && Q.endDate ? [Q.startDate, Q.endDate] : void 0,
|
|
18311
18311
|
timeRange: [
|
|
18312
|
-
|
|
18313
|
-
|
|
18312
|
+
fe().set("hour", Number((Y = U.start) == null ? void 0 : Y.hour)).set("minute", Number((ne = U.start) == null ? void 0 : ne.minute)).toISOString(),
|
|
18313
|
+
fe().set("hour", Number((le = U.end) == null ? void 0 : le.hour)).set("minute", Number((Z = U.end) == null ? void 0 : Z.minute)).toISOString()
|
|
18314
18314
|
],
|
|
18315
18315
|
businessIds: J.value ? [J.value] : [],
|
|
18316
18316
|
restaurantIds: k,
|
|
18317
|
-
warehouseIds:
|
|
18317
|
+
warehouseIds: B,
|
|
18318
18318
|
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
18319
18319
|
}),
|
|
18320
18320
|
requestConfig: {
|
|
18321
18321
|
timeout: 1e3 * 60 * 5,
|
|
18322
18322
|
signal: w
|
|
18323
18323
|
}
|
|
18324
|
-
}, G = await
|
|
18324
|
+
}, G = await St(
|
|
18325
18325
|
[
|
|
18326
18326
|
() => K.fetch(V),
|
|
18327
18327
|
() => K.fetch(V),
|
|
@@ -18373,67 +18373,68 @@ function We(F) {
|
|
|
18373
18373
|
colWidths: w.colWidths
|
|
18374
18374
|
};
|
|
18375
18375
|
}
|
|
18376
|
-
const
|
|
18377
|
-
const { businessId:
|
|
18378
|
-
let
|
|
18379
|
-
|
|
18380
|
-
const
|
|
18376
|
+
const Lt = async (F, w, J) => {
|
|
18377
|
+
const { businessId: H } = W(te()), { selectedRestaurantIds: k, selectedWarehouseIds: B, dateRange: P, timeRange: N } = Ie(), { currentReport: Q, overviewReport: U } = Be(), { selectedNavigationTab: V } = Qe();
|
|
18378
|
+
let G = Q == null ? void 0 : Q.id, Y = (Q == null ? void 0 : Q.tiles) ?? [];
|
|
18379
|
+
V === "overview" && U && (G = U == null ? void 0 : U.id, Y = (U == null ? void 0 : U.tiles) ?? []);
|
|
18380
|
+
const ne = Y.filter((ee, oe) => typeof w == "number" ? oe === w : !0).map((ee) => ee.widget), le = {
|
|
18381
18381
|
fetchType: re.Post,
|
|
18382
|
-
url: `/${
|
|
18382
|
+
url: `/${H.value}/file`,
|
|
18383
18383
|
data: {
|
|
18384
18384
|
configs: [
|
|
18385
|
-
...
|
|
18386
|
-
var _e,
|
|
18385
|
+
...ne.map((ee, oe) => {
|
|
18386
|
+
var _e, se, de, ce;
|
|
18387
18387
|
return {
|
|
18388
18388
|
requests: Me.getQueryRequests({
|
|
18389
18389
|
widget: ee,
|
|
18390
|
-
dateRange: [
|
|
18390
|
+
dateRange: [P.startDate, P.endDate],
|
|
18391
18391
|
// TODO: export with comparable data?
|
|
18392
18392
|
// compareDateRange:
|
|
18393
18393
|
// compareDateRange.start && compareDateRange.end
|
|
18394
18394
|
// ? [compareDateRange.start.toUTC().toISO(), compareDateRange.end.toUTC().toISO()]
|
|
18395
18395
|
// : undefined,
|
|
18396
18396
|
timeRange: [
|
|
18397
|
-
|
|
18398
|
-
|
|
18397
|
+
fe().set("hour", Number((_e = N.start) == null ? void 0 : _e.hour)).set("minute", Number((se = N.start) == null ? void 0 : se.minute)).toISOString(),
|
|
18398
|
+
fe().set("hour", Number((de = N.end) == null ? void 0 : de.hour)).set("minute", Number((ce = N.end) == null ? void 0 : ce.minute)).toISOString()
|
|
18399
18399
|
],
|
|
18400
|
-
businessIds:
|
|
18401
|
-
restaurantIds:
|
|
18402
|
-
warehouseIds:
|
|
18400
|
+
businessIds: H ? [H.value] : [],
|
|
18401
|
+
restaurantIds: k,
|
|
18402
|
+
warehouseIds: B,
|
|
18403
18403
|
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
18404
18404
|
}),
|
|
18405
|
-
index: w ||
|
|
18405
|
+
index: w || oe,
|
|
18406
18406
|
drillDimension: null,
|
|
18407
18407
|
...Ge(ee),
|
|
18408
18408
|
...We(ee)
|
|
18409
18409
|
};
|
|
18410
18410
|
})
|
|
18411
18411
|
],
|
|
18412
|
-
reportId:
|
|
18413
|
-
type: F
|
|
18412
|
+
reportId: G,
|
|
18413
|
+
type: F,
|
|
18414
|
+
orientationType: J
|
|
18414
18415
|
},
|
|
18415
18416
|
requestConfig: {
|
|
18416
18417
|
responseType: "arraybuffer",
|
|
18417
18418
|
timeout: 1e3 * 60 * 3
|
|
18418
18419
|
}
|
|
18419
|
-
}, { headers:
|
|
18420
|
-
ie.href =
|
|
18421
|
-
},
|
|
18420
|
+
}, { headers: Z, data: ae } = await K.rawFetch(le), ye = Z["content-disposition"].split("filename=")[1].replaceAll('"', ""), ue = window.URL.createObjectURL(new Blob([new Uint8Array(ae).buffer])), ie = document.createElement("a");
|
|
18421
|
+
ie.href = ue, ie.setAttribute("download", decodeURIComponent(ye)), document.body.appendChild(ie), ie.click(), ie.remove();
|
|
18422
|
+
}, wt = async ({
|
|
18422
18423
|
emails: F,
|
|
18423
18424
|
types: w,
|
|
18424
18425
|
dateRange: J,
|
|
18425
18426
|
timeRange: H,
|
|
18426
18427
|
locationIds: k
|
|
18427
18428
|
}) => {
|
|
18428
|
-
const { businessId:
|
|
18429
|
+
const { businessId: B } = W(te()), { currentReport: P, overviewReport: N } = Be(), { selectedNavigationTab: Q } = Qe(), { restaurants: U, warehouses: V } = Ie();
|
|
18429
18430
|
if (F.length === 0) {
|
|
18430
18431
|
console.error("No email addresses provided.");
|
|
18431
18432
|
return;
|
|
18432
18433
|
}
|
|
18433
18434
|
let G = (P == null ? void 0 : P.id) || "", Y = (P == null ? void 0 : P.name) || "", ne = (P == null ? void 0 : P.tiles) ?? [];
|
|
18434
|
-
|
|
18435
|
-
const
|
|
18436
|
-
businessId:
|
|
18435
|
+
Q === "overview" && N && (G = N == null ? void 0 : N.id, Y = N.name, ne = (N == null ? void 0 : N.tiles) ?? []);
|
|
18436
|
+
const le = ne.map((ae) => ae.widget), Z = {
|
|
18437
|
+
businessId: B.value,
|
|
18437
18438
|
status: Ve.generating,
|
|
18438
18439
|
dateRange: {
|
|
18439
18440
|
start: J.startDate,
|
|
@@ -18441,26 +18442,26 @@ const Ot = async (F, w) => {
|
|
|
18441
18442
|
},
|
|
18442
18443
|
reportName: Y,
|
|
18443
18444
|
emails: F,
|
|
18444
|
-
configs:
|
|
18445
|
-
var ie, ee,
|
|
18445
|
+
configs: le.map((ae, ye) => {
|
|
18446
|
+
var ue, ie, ee, oe;
|
|
18446
18447
|
return {
|
|
18447
18448
|
requests: Me.getQueryRequests({
|
|
18448
18449
|
widget: ae,
|
|
18449
18450
|
dateRange: [J.startDate, J.endDate],
|
|
18450
18451
|
timeRange: [
|
|
18451
|
-
|
|
18452
|
-
|
|
18452
|
+
fe().hour(Number((ue = H.start) == null ? void 0 : ue.hour)).minute(Number((ie = H.start) == null ? void 0 : ie.minute)).toISOString(),
|
|
18453
|
+
fe().hour(Number((ee = H.end) == null ? void 0 : ee.hour)).minute(Number((oe = H.end) == null ? void 0 : oe.minute)).toISOString()
|
|
18453
18454
|
],
|
|
18454
|
-
businessIds:
|
|
18455
|
+
businessIds: B ? [B.value] : [],
|
|
18455
18456
|
restaurantIds: k.filter(
|
|
18456
|
-
(
|
|
18457
|
+
(_e) => U.find((se) => se.id === _e)
|
|
18457
18458
|
),
|
|
18458
18459
|
warehouseIds: k.filter(
|
|
18459
|
-
(
|
|
18460
|
+
(_e) => V.find((se) => se.id === _e)
|
|
18460
18461
|
),
|
|
18461
18462
|
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
18462
18463
|
}),
|
|
18463
|
-
index:
|
|
18464
|
+
index: ye,
|
|
18464
18465
|
drillDimension: null,
|
|
18465
18466
|
...Ge(ae),
|
|
18466
18467
|
...We(ae)
|
|
@@ -18471,11 +18472,11 @@ const Ot = async (F, w) => {
|
|
|
18471
18472
|
};
|
|
18472
18473
|
await K.fetch({
|
|
18473
18474
|
fetchType: re.Post,
|
|
18474
|
-
url: `/${
|
|
18475
|
+
url: `/${B.value}/reports/email`,
|
|
18475
18476
|
data: Z,
|
|
18476
18477
|
requestConfig: { timeout: 1e3 * 60 * 3 }
|
|
18477
18478
|
});
|
|
18478
|
-
},
|
|
18479
|
+
}, vt = async (F) => {
|
|
18479
18480
|
const { businessId: w } = W(te());
|
|
18480
18481
|
await K.fetch({
|
|
18481
18482
|
fetchType: re.Post,
|
|
@@ -18483,13 +18484,13 @@ const Ot = async (F, w) => {
|
|
|
18483
18484
|
data: { jobId: F },
|
|
18484
18485
|
requestConfig: { timeout: 1e3 * 60 * 3 }
|
|
18485
18486
|
});
|
|
18486
|
-
},
|
|
18487
|
+
}, Dt = async () => {
|
|
18487
18488
|
const { businessId: F } = W(te());
|
|
18488
18489
|
return await K.fetch({
|
|
18489
18490
|
fetchType: re.Get,
|
|
18490
18491
|
url: `/${F.value}/reports/email-recipients`
|
|
18491
18492
|
});
|
|
18492
|
-
},
|
|
18493
|
+
}, Jt = async (F) => {
|
|
18493
18494
|
const { businessId: w } = W(te());
|
|
18494
18495
|
await K.fetch({
|
|
18495
18496
|
fetchType: re.Post,
|
|
@@ -18498,46 +18499,47 @@ const Ot = async (F, w) => {
|
|
|
18498
18499
|
});
|
|
18499
18500
|
};
|
|
18500
18501
|
let Ee;
|
|
18501
|
-
const
|
|
18502
|
-
function
|
|
18502
|
+
const ht = new Uint8Array(16);
|
|
18503
|
+
function At() {
|
|
18503
18504
|
if (!Ee && (Ee = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Ee))
|
|
18504
18505
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
18505
|
-
return Ee(
|
|
18506
|
+
return Ee(ht);
|
|
18506
18507
|
}
|
|
18507
18508
|
const z = [];
|
|
18508
18509
|
for (let F = 0; F < 256; ++F)
|
|
18509
18510
|
z.push((F + 256).toString(16).slice(1));
|
|
18510
|
-
function
|
|
18511
|
+
function Tt(F, w = 0) {
|
|
18511
18512
|
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]];
|
|
18512
18513
|
}
|
|
18513
|
-
const
|
|
18514
|
-
randomUUID:
|
|
18514
|
+
const Et = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Pe = {
|
|
18515
|
+
randomUUID: Et
|
|
18515
18516
|
};
|
|
18516
|
-
function
|
|
18517
|
+
function xt(F, w, J) {
|
|
18517
18518
|
if (Pe.randomUUID && !w && !F)
|
|
18518
18519
|
return Pe.randomUUID();
|
|
18519
18520
|
F = F || {};
|
|
18520
|
-
const H = F.random || (F.rng ||
|
|
18521
|
+
const H = F.random || (F.rng || At)();
|
|
18521
18522
|
if (H[6] = H[6] & 15 | 64, H[8] = H[8] & 63 | 128, w) {
|
|
18522
18523
|
J = J || 0;
|
|
18523
18524
|
for (let k = 0; k < 16; ++k)
|
|
18524
18525
|
w[J + k] = H[k];
|
|
18525
18526
|
return w;
|
|
18526
18527
|
}
|
|
18527
|
-
return
|
|
18528
|
+
return Tt(H);
|
|
18528
18529
|
}
|
|
18529
18530
|
export {
|
|
18531
|
+
ot as P,
|
|
18530
18532
|
at as R,
|
|
18531
18533
|
nt as W,
|
|
18532
18534
|
Be as a,
|
|
18533
18535
|
Ve as b,
|
|
18534
|
-
|
|
18535
|
-
|
|
18536
|
-
|
|
18537
|
-
|
|
18538
|
-
|
|
18539
|
-
|
|
18540
|
-
|
|
18536
|
+
Dt as c,
|
|
18537
|
+
Lt as d,
|
|
18538
|
+
Jt as e,
|
|
18539
|
+
Ft as g,
|
|
18540
|
+
Ot as q,
|
|
18541
|
+
vt as r,
|
|
18542
|
+
wt as s,
|
|
18541
18543
|
Qe as u,
|
|
18542
|
-
|
|
18544
|
+
xt as v
|
|
18543
18545
|
};
|