@feedmepos/mf-report 5.7.6-beta.100 → 5.7.6-beta.102
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-Bnn85aUl.js → App-Dfy8_dgU.js} +3 -3
- package/dist/{Default.vue_vue_type_script_setup_true_lang-DqGySZDx.js → Default.vue_vue_type_script_setup_true_lang-C2uUS1r-.js} +1 -1
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-6IWcvkp4.js → DynamicWidget.vue_vue_type_script_setup_true_lang-hFmuXpI-.js} +1 -1
- package/dist/{InsightView-CN1oA5FJ.js → InsightView-pMGpk3JB.js} +2 -2
- package/dist/{Layout-q8Zyucbb.js → Layout-D0WEGuvi.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-Dh8lEkh4.js → MenuTab.vue_vue_type_script_setup_true_lang-DMZ9V8h-.js} +1 -1
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-YTHLCWW3.js → NavigationTab.vue_vue_type_script_setup_true_lang-CDYLM19O.js} +1 -1
- package/dist/{OverviewView-GP2cL3eW.js → OverviewView-DCvv_yNv.js} +4 -4
- package/dist/{Report-DX2Y-Sh4.js → Report-Bxf2qgWC.js} +2 -2
- package/dist/{ReportEditor-CZLcltNc.js → ReportEditor-B85E-p2H.js} +3 -3
- package/dist/{ReportView-DinLEnpS.js → ReportView-Bgk1Nk5D.js} +5 -5
- package/dist/{Setting-CgKpTsoW.js → Setting-CKkqINBV.js} +2 -2
- package/dist/{TileEditor-BwAelGlT.js → TileEditor-Ce5fXttu.js} +3 -3
- package/dist/{TransitionFade-DZJp9xij.js → TransitionFade-B7MGFLV2.js} +2 -2
- package/dist/app.js +9 -9
- package/dist/{v4-B_sjxmW5.js → v4-KVHDiToS.js} +393 -371
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { storeToRefs as
|
|
3
|
-
import { ref as Z, computed as
|
|
4
|
-
import { useSnackbar as
|
|
5
|
-
import { useRouter as
|
|
6
|
-
function
|
|
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) {
|
|
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
|
|
12
|
-
J.scheduleImmediate = typeof setImmediate < "u" ? function(
|
|
13
|
-
setImmediate(
|
|
14
|
-
} : function(
|
|
15
|
-
setTimeout(
|
|
11
|
+
var w = typeof Ne < "u" ? Ne : window, J = Object.create(w);
|
|
12
|
+
J.scheduleImmediate = typeof setImmediate < "u" ? function(Q) {
|
|
13
|
+
setImmediate(Q);
|
|
14
|
+
} : function(Q) {
|
|
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
17
|
var H = !w.window;
|
|
18
18
|
try {
|
|
@@ -20,26 +20,26 @@ var Me = {};
|
|
|
20
20
|
} catch {
|
|
21
21
|
}
|
|
22
22
|
if (H) {
|
|
23
|
-
var
|
|
23
|
+
var N = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : Be)("url");
|
|
24
24
|
Object.defineProperty(J, "location", {
|
|
25
25
|
value: {
|
|
26
26
|
get href() {
|
|
27
|
-
return
|
|
28
|
-
var
|
|
29
|
-
return process.platform != "win32" ?
|
|
27
|
+
return N.pathToFileURL ? N.pathToFileURL(process.cwd()).href + "/" : "file://" + function() {
|
|
28
|
+
var Q = process.cwd();
|
|
29
|
+
return process.platform != "win32" ? Q : "/" + Q.replace(/\\/g, "/");
|
|
30
30
|
}() + "/";
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
}), function() {
|
|
34
|
-
function
|
|
34
|
+
function Q() {
|
|
35
35
|
try {
|
|
36
36
|
throw new Error();
|
|
37
37
|
} catch (G) {
|
|
38
|
-
var
|
|
38
|
+
var P = G.stack, B = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), U = null;
|
|
39
39
|
do {
|
|
40
|
-
var
|
|
41
|
-
|
|
42
|
-
} while (
|
|
40
|
+
var V = B.exec(P);
|
|
41
|
+
V != null && (U = V);
|
|
42
|
+
} while (V != null);
|
|
43
43
|
return U[1];
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -47,15 +47,15 @@ var Me = {};
|
|
|
47
47
|
Object.defineProperty(J, "document", {
|
|
48
48
|
value: {
|
|
49
49
|
get currentScript() {
|
|
50
|
-
return k == null && (k = { src:
|
|
50
|
+
return k == null && (k = { src: Q() }), k;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
|
-
}(), J.dartDeferredLibraryLoader = function(
|
|
54
|
+
}(), J.dartDeferredLibraryLoader = function(Q, k, P) {
|
|
55
55
|
try {
|
|
56
|
-
load(
|
|
56
|
+
load(Q), k();
|
|
57
57
|
} catch (B) {
|
|
58
|
-
|
|
58
|
+
P(B);
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
}
|
|
@@ -66,7 +66,7 @@ var Me = {};
|
|
|
66
66
|
e[a] = r[a];
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function P(r, e) {
|
|
70
70
|
for (var i = Object.keys(r), n = 0; n < i.length; n++) {
|
|
71
71
|
var a = i[n];
|
|
72
72
|
e.hasOwnProperty(a) || (e[a] = r[a]);
|
|
@@ -94,7 +94,7 @@ var Me = {};
|
|
|
94
94
|
}
|
|
95
95
|
return !1;
|
|
96
96
|
}();
|
|
97
|
-
function
|
|
97
|
+
function V(r, e) {
|
|
98
98
|
if (r.prototype.constructor = r, r.prototype["$is" + r.name] = r, e != null) {
|
|
99
99
|
if (U) {
|
|
100
100
|
r.prototype.__proto__ = e.prototype;
|
|
@@ -106,15 +106,15 @@ var Me = {};
|
|
|
106
106
|
}
|
|
107
107
|
function G(r, e) {
|
|
108
108
|
for (var i = 0; i < e.length; i++)
|
|
109
|
-
|
|
109
|
+
V(e[i], r);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function z(r, e) {
|
|
112
112
|
B(e.prototype, r.prototype), r.prototype.constructor = r;
|
|
113
113
|
}
|
|
114
114
|
function ne(r, e) {
|
|
115
|
-
|
|
115
|
+
P(e.prototype, r.prototype), r.prototype.constructor = r;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function oe(r, e, i, n) {
|
|
118
118
|
var a = r;
|
|
119
119
|
r[e] = a, r[i] = function() {
|
|
120
120
|
r[i] = function() {
|
|
@@ -131,7 +131,7 @@ var Me = {};
|
|
|
131
131
|
return s;
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function re(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
|
|
142
|
+
function se(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
|
|
155
|
+
function W(r) {
|
|
156
156
|
return r.immutable$list = Array, r.fixed$length = Array, r;
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function _e(r) {
|
|
159
159
|
return r;
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function ue(r) {
|
|
162
162
|
for (var e = 0; e < r.length; ++e)
|
|
163
163
|
r[e];
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function de(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,26 +170,26 @@ var Me = {};
|
|
|
170
170
|
return i === null && (i = t.closureFromTearOff(e)), new i(this, null);
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function le(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 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 };
|
|
182
182
|
}
|
|
183
|
-
function
|
|
184
|
-
var d =
|
|
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);
|
|
185
185
|
r[e] = c;
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function ye(r, e, i, n, a, s, l, _, d, c) {
|
|
188
188
|
i = !!i;
|
|
189
|
-
var f =
|
|
189
|
+
var f = ae(r, !1, i, n, a, s, l, _, d, !!c), $ = de(i, f);
|
|
190
190
|
r[e] = $;
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function he(r) {
|
|
193
193
|
var e = T.interceptorsByTag;
|
|
194
194
|
if (!e) {
|
|
195
195
|
T.interceptorsByTag = r;
|
|
@@ -197,7 +197,7 @@ var Me = {};
|
|
|
197
197
|
}
|
|
198
198
|
k(r, e);
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function Te(r) {
|
|
201
201
|
var e = T.leafTags;
|
|
202
202
|
if (!e) {
|
|
203
203
|
T.leafTags = r;
|
|
@@ -205,24 +205,24 @@ var Me = {};
|
|
|
205
205
|
}
|
|
206
206
|
k(r, e);
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function $e(r) {
|
|
209
209
|
var e = T.types, i = e.length;
|
|
210
210
|
return e.push.apply(e, r), i;
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function ge(r, e) {
|
|
213
213
|
return k(e, r), r;
|
|
214
214
|
}
|
|
215
|
-
var
|
|
215
|
+
var K = function() {
|
|
216
216
|
var r = function(i, n, a, s, l) {
|
|
217
217
|
return function(_, d, c, f) {
|
|
218
|
-
return
|
|
218
|
+
return ye(_, 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
|
|
222
|
+
return ie(l, _, i, n, a, [d], c, s);
|
|
223
223
|
};
|
|
224
224
|
};
|
|
225
|
-
return { inherit:
|
|
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 };
|
|
226
226
|
}(), t = {
|
|
227
227
|
JS_CONST: function() {
|
|
228
228
|
},
|
|
@@ -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",
|
|
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", q, q, e, r), t.Field_Field$string(e, !1, "Layer 0 parent ID",
|
|
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 = {
|
|
@@ -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 =
|
|
9537
|
+
var e = K._static_2, i = K._static_1, n = K._instance_1u, a = K._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 =
|
|
9542
|
+
var e = K.mixin, i = K.inherit, n = K.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 =
|
|
9689
|
+
var e = K.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 =
|
|
9791
|
+
var e = K.lazyFinal, i = K.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),
|
|
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",
|
|
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);
|
|
@@ -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(
|
|
10054
|
+
return d[_] = 1, Object.keys(K.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
|
-
})(),
|
|
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";
|
|
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
|
-
},
|
|
10080
|
+
}, ue(p), function(r) {
|
|
10081
10081
|
if (typeof document > "u") {
|
|
10082
10082
|
r(null);
|
|
10083
10083
|
return;
|
|
@@ -10101,20 +10101,20 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
|
|
|
10101
10101
|
});
|
|
10102
10102
|
})();
|
|
10103
10103
|
})(Me);
|
|
10104
|
-
var
|
|
10104
|
+
var Qe = {};
|
|
10105
10105
|
(function(F) {
|
|
10106
10106
|
F.load = function(w, J) {
|
|
10107
|
-
var H = typeof process < "u" && (process.versions || {}).hasOwnProperty("node"),
|
|
10108
|
-
if (
|
|
10107
|
+
var H = typeof process < "u" && (process.versions || {}).hasOwnProperty("node"), N = H ? Object.create(globalThis) : globalThis;
|
|
10108
|
+
if (N.scheduleImmediate = typeof setImmediate < "u" ? function(k) {
|
|
10109
10109
|
setImmediate(k);
|
|
10110
10110
|
} : function(k) {
|
|
10111
10111
|
setTimeout(k, 0);
|
|
10112
|
-
},
|
|
10113
|
-
var
|
|
10114
|
-
Object.defineProperty(
|
|
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");
|
|
10114
|
+
Object.defineProperty(N, "location", {
|
|
10115
10115
|
value: {
|
|
10116
10116
|
get href() {
|
|
10117
|
-
return
|
|
10117
|
+
return Q.pathToFileURL ? Q.pathToFileURL(process.cwd()).href + "/" : "file://" + function() {
|
|
10118
10118
|
var k = process.cwd();
|
|
10119
10119
|
return process.platform != "win32" ? k : "/" + k.replace(/\\/g, "/");
|
|
10120
10120
|
}() + "/";
|
|
@@ -10124,33 +10124,33 @@ var qe = {};
|
|
|
10124
10124
|
function k() {
|
|
10125
10125
|
try {
|
|
10126
10126
|
throw new Error();
|
|
10127
|
-
} catch (
|
|
10128
|
-
var B =
|
|
10127
|
+
} catch (z) {
|
|
10128
|
+
var B = z.stack, U = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), V = null;
|
|
10129
10129
|
do {
|
|
10130
10130
|
var G = U.exec(B);
|
|
10131
|
-
G != null && (
|
|
10131
|
+
G != null && (V = G);
|
|
10132
10132
|
} while (G != null);
|
|
10133
|
-
return
|
|
10133
|
+
return V[1];
|
|
10134
10134
|
}
|
|
10135
10135
|
}
|
|
10136
|
-
var
|
|
10137
|
-
Object.defineProperty(
|
|
10136
|
+
var P = null;
|
|
10137
|
+
Object.defineProperty(N, "document", {
|
|
10138
10138
|
value: {
|
|
10139
10139
|
get currentScript() {
|
|
10140
|
-
return
|
|
10140
|
+
return P == null && (P = { src: k() }), P;
|
|
10141
10141
|
}
|
|
10142
10142
|
}
|
|
10143
10143
|
});
|
|
10144
|
-
}(),
|
|
10144
|
+
}(), N.dartDeferredLibraryLoader = function(k, P, B) {
|
|
10145
10145
|
try {
|
|
10146
|
-
load(k),
|
|
10146
|
+
load(k), P();
|
|
10147
10147
|
} catch (U) {
|
|
10148
10148
|
B(U);
|
|
10149
10149
|
}
|
|
10150
10150
|
};
|
|
10151
10151
|
}
|
|
10152
10152
|
(function() {
|
|
10153
|
-
function
|
|
10153
|
+
function P(e, i) {
|
|
10154
10154
|
for (var n = Object.keys(e), a = 0; a < n.length; a++) {
|
|
10155
10155
|
var s = n[a];
|
|
10156
10156
|
i[s] = e[s];
|
|
@@ -10165,7 +10165,7 @@ var qe = {};
|
|
|
10165
10165
|
function U(e, i) {
|
|
10166
10166
|
Object.assign(i, e);
|
|
10167
10167
|
}
|
|
10168
|
-
var
|
|
10168
|
+
var V = function() {
|
|
10169
10169
|
var e = function() {
|
|
10170
10170
|
};
|
|
10171
10171
|
e.prototype = { p: {} };
|
|
@@ -10186,25 +10186,25 @@ var qe = {};
|
|
|
10186
10186
|
}();
|
|
10187
10187
|
function G(e, i) {
|
|
10188
10188
|
if (e.prototype.constructor = e, e.prototype["$is" + e.name] = e, i != null) {
|
|
10189
|
-
if (
|
|
10189
|
+
if (V) {
|
|
10190
10190
|
e.prototype.__proto__ = i.prototype;
|
|
10191
10191
|
return;
|
|
10192
10192
|
}
|
|
10193
10193
|
var n = Object.create(i.prototype);
|
|
10194
|
-
|
|
10194
|
+
P(e.prototype, n), e.prototype = n;
|
|
10195
10195
|
}
|
|
10196
10196
|
}
|
|
10197
|
-
function
|
|
10197
|
+
function z(e, i) {
|
|
10198
10198
|
for (var n = 0; n < i.length; n++)
|
|
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
|
|
10204
|
+
function oe(e, i) {
|
|
10205
10205
|
B(i.prototype, e.prototype), e.prototype.constructor = e;
|
|
10206
10206
|
}
|
|
10207
|
-
function
|
|
10207
|
+
function re(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
|
|
10224
|
+
function se(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
|
|
10232
|
+
function W(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 qe = {};
|
|
|
10242
10242
|
}, _;
|
|
10243
10243
|
};
|
|
10244
10244
|
}
|
|
10245
|
-
function
|
|
10245
|
+
function _e(e) {
|
|
10246
10246
|
return e.immutable$list = Array, e.fixed$length = Array, e;
|
|
10247
10247
|
}
|
|
10248
|
-
function
|
|
10248
|
+
function ue(e) {
|
|
10249
10249
|
return e;
|
|
10250
10250
|
}
|
|
10251
|
-
function
|
|
10251
|
+
function de(e) {
|
|
10252
10252
|
for (var i = 0; i < e.length; ++i)
|
|
10253
10253
|
e[i];
|
|
10254
10254
|
}
|
|
10255
|
-
function
|
|
10255
|
+
function le(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,59 +10260,59 @@ var qe = {};
|
|
|
10260
10260
|
return n === null && (n = o.closureFromTearOff(i)), new n(this, null);
|
|
10261
10261
|
};
|
|
10262
10262
|
}
|
|
10263
|
-
function
|
|
10263
|
+
function ce(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
|
|
10270
|
-
function
|
|
10271
|
-
return typeof d == "number" && (d +=
|
|
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 };
|
|
10272
10272
|
}
|
|
10273
|
-
function
|
|
10274
|
-
var c =
|
|
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);
|
|
10275
10275
|
e[i] = f;
|
|
10276
10276
|
}
|
|
10277
|
-
function
|
|
10277
|
+
function he(e, i, n, a, s, l, _, d, c, f) {
|
|
10278
10278
|
n = !!n;
|
|
10279
|
-
var $ =
|
|
10279
|
+
var $ = ie(e, !1, n, a, s, l, _, d, c, !!f), g = le(n, $);
|
|
10280
10280
|
e[i] = g;
|
|
10281
10281
|
}
|
|
10282
|
-
function
|
|
10282
|
+
function Te(e) {
|
|
10283
10283
|
var i = I.interceptorsByTag;
|
|
10284
10284
|
if (!i) {
|
|
10285
10285
|
I.interceptorsByTag = e;
|
|
10286
10286
|
return;
|
|
10287
10287
|
}
|
|
10288
|
-
|
|
10288
|
+
P(e, i);
|
|
10289
10289
|
}
|
|
10290
|
-
function
|
|
10290
|
+
function $e(e) {
|
|
10291
10291
|
var i = I.leafTags;
|
|
10292
10292
|
if (!i) {
|
|
10293
10293
|
I.leafTags = e;
|
|
10294
10294
|
return;
|
|
10295
10295
|
}
|
|
10296
|
-
|
|
10296
|
+
P(e, i);
|
|
10297
10297
|
}
|
|
10298
|
-
function
|
|
10298
|
+
function ge(e) {
|
|
10299
10299
|
var i = I.types, n = i.length;
|
|
10300
10300
|
return i.push.apply(i, e), n;
|
|
10301
10301
|
}
|
|
10302
|
-
function
|
|
10303
|
-
return
|
|
10302
|
+
function K(e, i) {
|
|
10303
|
+
return P(i, e), e;
|
|
10304
10304
|
}
|
|
10305
10305
|
var t = function() {
|
|
10306
10306
|
var e = function(n, a, s, l, _) {
|
|
10307
10307
|
return function(d, c, f, $) {
|
|
10308
|
-
return
|
|
10308
|
+
return he(d, c, n, a, s, l, [f], $, _, !1);
|
|
10309
10309
|
};
|
|
10310
10310
|
}, i = function(n, a, s, l) {
|
|
10311
10311
|
return function(_, d, c, f) {
|
|
10312
|
-
return
|
|
10312
|
+
return ye(_, d, n, a, s, [c], f, l);
|
|
10313
10313
|
};
|
|
10314
10314
|
};
|
|
10315
|
-
return { inherit: G, inheritMany:
|
|
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 };
|
|
10316
10316
|
}(), o = {
|
|
10317
10317
|
JS_CONST: function() {
|
|
10318
10318
|
},
|
|
@@ -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,
|
|
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)
|
|
@@ -11871,12 +11871,12 @@ var qe = {};
|
|
|
11871
11871
|
for (x = C[v]; ; ) {
|
|
11872
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
|
}
|
|
@@ -13586,15 +13586,15 @@ var qe = {};
|
|
|
13586
13586
|
}
|
|
13587
13587
|
},
|
|
13588
13588
|
formatChartData(e) {
|
|
13589
|
-
var i, n = p.C_JsonCodec.decode$2$reviver(
|
|
13590
|
-
return _ instanceof o.CircularDatasourceConfigModel ? i = o.formatCircularChartData(_, l, c).toJson$0() : _ instanceof o.BaseXYDatasourceConfigModel ? i = o.formatBaseXYChartData(d, _, l, c).toJson$0() : _ instanceof o.TableDatasourceConfigModel ? i = o.formatTableChartData(_, l, c).toJson$0() : i = d === p.ChartType_3 ? o.formatScoreCardChartData(_, l, c).toJson$0() : null,
|
|
13589
|
+
var i, n = p.C_JsonCodec.decode$2$reviver(N.JSON.stringify(e), null), a = u.getInterceptor$asx(n), s = u.map$1$1$ax(r.List_dynamic._as(a.$index(n, "responses")), new o.formatChartData_closure(), r.QueryResponse), l = o.List_List$of(s, !0, s.$ti._eval$1("ListIterable.E")), _ = o._getConfig(a.$index(n, "widget")), d = o.EnumByName_byName(p.List_OX3, u.$index$asx(a.$index(n, "widget"), "type")), c = a.$index(n, "country");
|
|
13590
|
+
return _ instanceof o.CircularDatasourceConfigModel ? i = o.formatCircularChartData(_, l, c).toJson$0() : _ instanceof o.BaseXYDatasourceConfigModel ? i = o.formatBaseXYChartData(d, _, l, c).toJson$0() : _ instanceof o.TableDatasourceConfigModel ? i = o.formatTableChartData(_, l, c).toJson$0() : i = d === p.ChartType_3 ? o.formatScoreCardChartData(_, l, c).toJson$0() : null, N.JSON.parse(p.C_JsonCodec.encode$2$toEncodable(i, null));
|
|
13591
13591
|
},
|
|
13592
13592
|
formatChartData_closure: function() {
|
|
13593
13593
|
},
|
|
13594
13594
|
Exports: function() {
|
|
13595
13595
|
},
|
|
13596
13596
|
main() {
|
|
13597
|
-
u.set$formatChartData$x(
|
|
13597
|
+
u.set$formatChartData$x(N.exports, o.allowInterop(o.js__formatChartData$closure()));
|
|
13598
13598
|
},
|
|
13599
13599
|
_Exports: function() {
|
|
13600
13600
|
},
|
|
@@ -17795,7 +17795,7 @@ Arguments: [` + c + "]";
|
|
|
17795
17795
|
}
|
|
17796
17796
|
}
|
|
17797
17797
|
function l(f, $) {
|
|
17798
|
-
return
|
|
17798
|
+
return N.HTMLElement && f instanceof HTMLElement ? "HTMLElement" : s(f, $);
|
|
17799
17799
|
}
|
|
17800
17800
|
function _(f) {
|
|
17801
17801
|
if (typeof window > "u" || typeof window[f] > "u") return null;
|
|
@@ -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),
|
|
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",
|
|
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"));
|
|
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
|
+
}, de(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
|
-
})(
|
|
17981
|
-
const
|
|
17982
|
-
|
|
17983
|
-
var
|
|
17984
|
-
function
|
|
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) {
|
|
17985
17985
|
switch (F) {
|
|
17986
17986
|
case "excel":
|
|
17987
17987
|
return "Excel";
|
|
@@ -17993,7 +17993,7 @@ function Ft(F) {
|
|
|
17993
17993
|
return "Unknown";
|
|
17994
17994
|
}
|
|
17995
17995
|
}
|
|
17996
|
-
function
|
|
17996
|
+
function wt(F) {
|
|
17997
17997
|
switch (F) {
|
|
17998
17998
|
case "landscape":
|
|
17999
17999
|
return "Landscape";
|
|
@@ -18003,88 +18003,88 @@ function Ot(F) {
|
|
|
18003
18003
|
return "Unknown";
|
|
18004
18004
|
}
|
|
18005
18005
|
}
|
|
18006
|
-
const
|
|
18007
|
-
const { businessId: F } =
|
|
18006
|
+
const Se = "/report-settings", _t = async () => {
|
|
18007
|
+
const { businessId: F } = Y(ee());
|
|
18008
18008
|
if (F) {
|
|
18009
18009
|
const w = {
|
|
18010
|
-
fetchType:
|
|
18011
|
-
url: `${
|
|
18010
|
+
fetchType: te.Get,
|
|
18011
|
+
url: `${Se}/${F.value}/reports`
|
|
18012
18012
|
};
|
|
18013
|
-
return
|
|
18013
|
+
return j.fetch(w);
|
|
18014
18014
|
} else
|
|
18015
18015
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
18016
|
-
},
|
|
18017
|
-
const { businessId: w } =
|
|
18018
|
-
fetchType:
|
|
18019
|
-
url: `${
|
|
18016
|
+
}, ut = (F) => {
|
|
18017
|
+
const { businessId: w } = Y(ee()), J = {
|
|
18018
|
+
fetchType: te.Put,
|
|
18019
|
+
url: `${Se}/${w.value}/reports/${F.id}`,
|
|
18020
18020
|
data: F
|
|
18021
18021
|
};
|
|
18022
|
-
return
|
|
18023
|
-
},
|
|
18024
|
-
const { businessId: w } =
|
|
18025
|
-
fetchType:
|
|
18026
|
-
url: `${
|
|
18022
|
+
return j.fetch(J);
|
|
18023
|
+
}, dt = (F) => {
|
|
18024
|
+
const { businessId: w } = Y(ee()), J = {
|
|
18025
|
+
fetchType: te.Post,
|
|
18026
|
+
url: `${Se}/${w.value}/reports`,
|
|
18027
18027
|
data: F
|
|
18028
18028
|
};
|
|
18029
|
-
return
|
|
18030
|
-
},
|
|
18031
|
-
const { businessId: w } =
|
|
18032
|
-
fetchType:
|
|
18033
|
-
url: `${
|
|
18029
|
+
return j.fetch(J);
|
|
18030
|
+
}, ct = (F) => {
|
|
18031
|
+
const { businessId: w } = Y(ee()), J = {
|
|
18032
|
+
fetchType: te.Delete,
|
|
18033
|
+
url: `${Se}/${w.value}/reports/${F.id}`
|
|
18034
18034
|
};
|
|
18035
|
-
return
|
|
18036
|
-
},
|
|
18037
|
-
const { businessId: w } =
|
|
18038
|
-
fetchType:
|
|
18039
|
-
url: `${
|
|
18035
|
+
return j.fetch(J);
|
|
18036
|
+
}, pt = (F) => {
|
|
18037
|
+
const { businessId: w } = Y(ee()), J = {
|
|
18038
|
+
fetchType: te.Put,
|
|
18039
|
+
url: `${Se}/${w.value}/reports/default`,
|
|
18040
18040
|
data: { defaultReport: F }
|
|
18041
18041
|
};
|
|
18042
|
-
return
|
|
18043
|
-
},
|
|
18044
|
-
const { businessId: F } =
|
|
18042
|
+
return j.fetch(J);
|
|
18043
|
+
}, ft = async () => {
|
|
18044
|
+
const { businessId: F } = Y(ee());
|
|
18045
18045
|
if (F) {
|
|
18046
18046
|
const w = {
|
|
18047
|
-
fetchType:
|
|
18048
|
-
url: `${
|
|
18047
|
+
fetchType: te.Get,
|
|
18048
|
+
url: `${Se}/${F.value}/overview-report`
|
|
18049
18049
|
};
|
|
18050
|
-
return
|
|
18050
|
+
return j.fetch(w);
|
|
18051
18051
|
} else
|
|
18052
18052
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
18053
|
-
},
|
|
18054
|
-
const { businessId: F } =
|
|
18053
|
+
}, yt = async () => {
|
|
18054
|
+
const { businessId: F } = Y(ee());
|
|
18055
18055
|
if (F) {
|
|
18056
18056
|
const w = {
|
|
18057
|
-
fetchType:
|
|
18058
|
-
url: `${
|
|
18057
|
+
fetchType: te.Get,
|
|
18058
|
+
url: `${Se}/${F.value}/config`
|
|
18059
18059
|
};
|
|
18060
|
-
return
|
|
18060
|
+
return j.fetch(w);
|
|
18061
18061
|
} else
|
|
18062
18062
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
18063
|
-
},
|
|
18064
|
-
const { businessId: F } =
|
|
18063
|
+
}, $t = "/report-settings", gt = async () => {
|
|
18064
|
+
const { businessId: F } = Y(ee());
|
|
18065
18065
|
if (F) {
|
|
18066
18066
|
const w = {
|
|
18067
|
-
fetchType:
|
|
18068
|
-
url: `${
|
|
18067
|
+
fetchType: te.Get,
|
|
18068
|
+
url: `${$t}/${F.value}/categories`
|
|
18069
18069
|
};
|
|
18070
|
-
return
|
|
18070
|
+
return j.fetch(w);
|
|
18071
18071
|
} else
|
|
18072
18072
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
18073
|
-
},
|
|
18074
|
-
const { businessId: w } =
|
|
18075
|
-
fetchType:
|
|
18073
|
+
}, mt = (F) => {
|
|
18074
|
+
const { businessId: w } = Y(ee()), J = {
|
|
18075
|
+
fetchType: te.Post,
|
|
18076
18076
|
url: `/report-settings/${w.value}/date-settings`,
|
|
18077
18077
|
data: {
|
|
18078
18078
|
...F
|
|
18079
18079
|
}
|
|
18080
18080
|
};
|
|
18081
|
-
return
|
|
18081
|
+
return j.fetch(J);
|
|
18082
18082
|
};
|
|
18083
18083
|
function Je(F, w = {}) {
|
|
18084
18084
|
const J = localStorage.getItem(F);
|
|
18085
18085
|
return J === null && (w == null ? void 0 : w.fallback) !== void 0 ? w.fallback : J === null ? null : w.format ? w.format(J) : J;
|
|
18086
18086
|
}
|
|
18087
|
-
const
|
|
18087
|
+
const me = {
|
|
18088
18088
|
get: Je,
|
|
18089
18089
|
getJson: (F) => Je(F, {
|
|
18090
18090
|
fallback: {},
|
|
@@ -18098,134 +18098,134 @@ const he = {
|
|
|
18098
18098
|
setJson: (F, w) => {
|
|
18099
18099
|
localStorage.setItem(F, JSON.stringify(w));
|
|
18100
18100
|
}
|
|
18101
|
-
},
|
|
18102
|
-
const { business: F } =
|
|
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(() => {
|
|
18103
18103
|
const p = w.value.find(
|
|
18104
|
-
(S) => S.key ===
|
|
18104
|
+
(S) => S.key === Ke.report_portal_integration_custom_report
|
|
18105
18105
|
);
|
|
18106
18106
|
return typeof (p == null ? void 0 : p.value) == "number" ? p.value : null;
|
|
18107
|
-
}), ne =
|
|
18108
|
-
async function
|
|
18109
|
-
return G.value = await
|
|
18107
|
+
}), ne = Ae(() => z.value === null ? !0 : z.value - k.value.length > 0);
|
|
18108
|
+
async function oe() {
|
|
18109
|
+
return G.value = await ft(), G.value;
|
|
18110
18110
|
}
|
|
18111
|
-
async function
|
|
18111
|
+
async function re() {
|
|
18112
18112
|
var p;
|
|
18113
18113
|
try {
|
|
18114
|
-
J.value = await
|
|
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);
|
|
18115
18115
|
} catch (S) {
|
|
18116
|
-
console.log(S),
|
|
18116
|
+
console.log(S), Q.open({
|
|
18117
18117
|
title: "Report Fetch Error",
|
|
18118
18118
|
message: "Internal Server Error",
|
|
18119
18119
|
type: "error"
|
|
18120
18120
|
});
|
|
18121
18121
|
}
|
|
18122
18122
|
}
|
|
18123
|
-
const
|
|
18123
|
+
const se = Ae(
|
|
18124
18124
|
() => J.value.find((p) => p.id === U.value)
|
|
18125
|
-
),
|
|
18126
|
-
async function
|
|
18125
|
+
), W = Z(), _e = Z(0), ue = Z(), de = Z(!1), le = Z(!1), ce = Z(!1);
|
|
18126
|
+
async function ae(p) {
|
|
18127
18127
|
if (k.value.findIndex((T) => T.id === p.id) >= 0) {
|
|
18128
|
-
const T = await
|
|
18128
|
+
const T = await ut(p);
|
|
18129
18129
|
U.value = T.id;
|
|
18130
18130
|
} else {
|
|
18131
|
-
const T = await
|
|
18131
|
+
const T = await dt(p);
|
|
18132
18132
|
U.value = T.id;
|
|
18133
18133
|
}
|
|
18134
|
-
await
|
|
18134
|
+
await re();
|
|
18135
18135
|
}
|
|
18136
|
-
async function
|
|
18137
|
-
return await
|
|
18136
|
+
async function ie(p) {
|
|
18137
|
+
return await mt(p);
|
|
18138
18138
|
}
|
|
18139
|
-
async function
|
|
18140
|
-
await
|
|
18139
|
+
async function ye(p) {
|
|
18140
|
+
await ct(p), await re();
|
|
18141
18141
|
}
|
|
18142
|
-
async function
|
|
18143
|
-
await
|
|
18142
|
+
async function he(p) {
|
|
18143
|
+
await pt(p), await re();
|
|
18144
18144
|
}
|
|
18145
|
-
function
|
|
18145
|
+
function Te(p) {
|
|
18146
18146
|
J.value.findIndex((T) => T.id === p) !== -1 && (U.value = p);
|
|
18147
18147
|
}
|
|
18148
|
-
const
|
|
18149
|
-
function
|
|
18148
|
+
const $e = Z(null);
|
|
18149
|
+
function ge() {
|
|
18150
18150
|
var p;
|
|
18151
18151
|
if ((p = F.value) != null && p._id) {
|
|
18152
|
-
const S =
|
|
18152
|
+
const S = me.getJson("pinReport")[F.value._id];
|
|
18153
18153
|
if ((S == null ? void 0 : S.length) > 0) {
|
|
18154
|
-
|
|
18154
|
+
$e.value = S;
|
|
18155
18155
|
return;
|
|
18156
18156
|
}
|
|
18157
18157
|
}
|
|
18158
|
-
|
|
18158
|
+
$e.value = null;
|
|
18159
18159
|
}
|
|
18160
|
-
function
|
|
18160
|
+
function K(p) {
|
|
18161
18161
|
var S;
|
|
18162
18162
|
if (F.value && p) {
|
|
18163
|
-
const T =
|
|
18164
|
-
T[(S = F.value) == null ? void 0 : S._id] ? T[F.value._id].push(p.id) : T[F.value._id] = [p.id],
|
|
18163
|
+
const T = me.getJson("pinReport");
|
|
18164
|
+
T[(S = F.value) == null ? void 0 : S._id] ? T[F.value._id].push(p.id) : T[F.value._id] = [p.id], me.setJson("pinReport", T), ge();
|
|
18165
18165
|
}
|
|
18166
18166
|
}
|
|
18167
18167
|
function t(p) {
|
|
18168
18168
|
if (F.value) {
|
|
18169
|
-
const S =
|
|
18169
|
+
const S = me.getJson("pinReport");
|
|
18170
18170
|
S[F.value._id].length === 1 ? S[F.value._id] = [] : S[F.value._id] = S[F.value._id].filter(
|
|
18171
18171
|
(T) => T !== p
|
|
18172
|
-
),
|
|
18172
|
+
), me.setJson("pinReport", S), ge();
|
|
18173
18173
|
}
|
|
18174
18174
|
}
|
|
18175
18175
|
function o() {
|
|
18176
18176
|
if (F.value) {
|
|
18177
|
-
const p =
|
|
18177
|
+
const p = me.getJson("feedback");
|
|
18178
18178
|
if (!p[F.value._id])
|
|
18179
18179
|
p[F.value._id] = {
|
|
18180
|
-
date:
|
|
18180
|
+
date: fe().local().format("YYYY-MM-DD"),
|
|
18181
18181
|
feedback: !1
|
|
18182
18182
|
};
|
|
18183
18183
|
else {
|
|
18184
|
-
const S =
|
|
18185
|
-
Math.abs(S.diff(
|
|
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);
|
|
18186
18186
|
}
|
|
18187
|
-
|
|
18187
|
+
me.setJson("feedback", p);
|
|
18188
18188
|
}
|
|
18189
18189
|
}
|
|
18190
18190
|
async function u() {
|
|
18191
|
-
return await
|
|
18191
|
+
return await yt();
|
|
18192
18192
|
}
|
|
18193
18193
|
return {
|
|
18194
|
-
isOpenDownloadDialog:
|
|
18195
|
-
isOpenFeedbackDialog:
|
|
18196
|
-
isOpenEmailDialog:
|
|
18197
|
-
currentSelectWidgetType:
|
|
18194
|
+
isOpenDownloadDialog: de,
|
|
18195
|
+
isOpenFeedbackDialog: le,
|
|
18196
|
+
isOpenEmailDialog: ce,
|
|
18197
|
+
currentSelectWidgetType: V,
|
|
18198
18198
|
reports: J,
|
|
18199
18199
|
categories: H,
|
|
18200
|
-
currentReport:
|
|
18201
|
-
editingReport:
|
|
18202
|
-
editingIndex:
|
|
18203
|
-
editingTile:
|
|
18200
|
+
currentReport: se,
|
|
18201
|
+
editingReport: W,
|
|
18202
|
+
editingIndex: _e,
|
|
18203
|
+
editingTile: ue,
|
|
18204
18204
|
currentReportId: U,
|
|
18205
18205
|
editableReports: k,
|
|
18206
|
-
nonEditableReports:
|
|
18206
|
+
nonEditableReports: P,
|
|
18207
18207
|
isOpenAddReportDialog: B,
|
|
18208
18208
|
overviewReport: G,
|
|
18209
|
-
pinReport:
|
|
18210
|
-
scrollPositionY:
|
|
18211
|
-
customReportQuota:
|
|
18209
|
+
pinReport: $e,
|
|
18210
|
+
scrollPositionY: N,
|
|
18211
|
+
customReportQuota: z,
|
|
18212
18212
|
canCreateCustomReport: ne,
|
|
18213
|
-
createOrUpdateReport:
|
|
18214
|
-
removeReport:
|
|
18215
|
-
updateCurrentReportId:
|
|
18216
|
-
getReports:
|
|
18217
|
-
updateDefaultReport:
|
|
18213
|
+
createOrUpdateReport: ae,
|
|
18214
|
+
removeReport: ye,
|
|
18215
|
+
updateCurrentReportId: Te,
|
|
18216
|
+
getReports: re,
|
|
18217
|
+
updateDefaultReport: he,
|
|
18218
18218
|
checkFeedback: o,
|
|
18219
|
-
getOverviewReport:
|
|
18220
|
-
refreshPinReport:
|
|
18221
|
-
cachePinReport:
|
|
18219
|
+
getOverviewReport: oe,
|
|
18220
|
+
refreshPinReport: ge,
|
|
18221
|
+
cachePinReport: K,
|
|
18222
18222
|
clearPinReport: t,
|
|
18223
18223
|
getReportConfig: u,
|
|
18224
|
-
submitFeedback:
|
|
18224
|
+
submitFeedback: ie
|
|
18225
18225
|
};
|
|
18226
|
-
}),
|
|
18227
|
-
const { disabled: F } =
|
|
18228
|
-
const
|
|
18226
|
+
}), ht = "mf-reportnavigation", Ge = qe(ht, () => {
|
|
18227
|
+
const { disabled: F } = Y(Xe()), { isIntegrationWhitelist: w } = Y(Ue()), J = Z("v5"), H = Ae(() => {
|
|
18228
|
+
const P = [
|
|
18229
18229
|
{
|
|
18230
18230
|
label: "overview",
|
|
18231
18231
|
value: "overview",
|
|
@@ -18240,7 +18240,7 @@ const he = {
|
|
|
18240
18240
|
label: "insight",
|
|
18241
18241
|
value: "insight",
|
|
18242
18242
|
route: "insights",
|
|
18243
|
-
badge: () =>
|
|
18243
|
+
badge: () => et(it.FmPill, { variant: "beta" })
|
|
18244
18244
|
},
|
|
18245
18245
|
{
|
|
18246
18246
|
label: "setting",
|
|
@@ -18248,104 +18248,104 @@ const he = {
|
|
|
18248
18248
|
route: "setting"
|
|
18249
18249
|
}
|
|
18250
18250
|
];
|
|
18251
|
-
return !F.value && w.value &&
|
|
18251
|
+
return !F.value && w.value && P.push({
|
|
18252
18252
|
label: "integration",
|
|
18253
18253
|
value: "integration",
|
|
18254
18254
|
route: "integrations"
|
|
18255
|
-
}),
|
|
18256
|
-
}),
|
|
18257
|
-
function k(
|
|
18258
|
-
switch (
|
|
18255
|
+
}), P;
|
|
18256
|
+
}), N = Z(""), { currentRoute: Q } = nt();
|
|
18257
|
+
function k(P) {
|
|
18258
|
+
switch (P.name) {
|
|
18259
18259
|
case "report":
|
|
18260
18260
|
case "reports":
|
|
18261
|
-
|
|
18261
|
+
N.value = "report";
|
|
18262
18262
|
break;
|
|
18263
18263
|
case "overview":
|
|
18264
|
-
|
|
18264
|
+
N.value = "overview";
|
|
18265
18265
|
break;
|
|
18266
18266
|
case "setting":
|
|
18267
|
-
|
|
18267
|
+
N.value = "setting";
|
|
18268
18268
|
break;
|
|
18269
18269
|
case "insights":
|
|
18270
|
-
|
|
18270
|
+
N.value = "insight";
|
|
18271
18271
|
break;
|
|
18272
18272
|
case "integration":
|
|
18273
18273
|
case "integrations":
|
|
18274
|
-
|
|
18274
|
+
N.value = "integration";
|
|
18275
18275
|
break;
|
|
18276
18276
|
}
|
|
18277
18277
|
}
|
|
18278
|
-
return
|
|
18279
|
-
|
|
18280
|
-
(
|
|
18281
|
-
k(
|
|
18278
|
+
return tt(
|
|
18279
|
+
Q,
|
|
18280
|
+
(P) => {
|
|
18281
|
+
k(P);
|
|
18282
18282
|
},
|
|
18283
18283
|
{ immediate: !0 }
|
|
18284
18284
|
), {
|
|
18285
|
-
selectedNavigationTab:
|
|
18285
|
+
selectedNavigationTab: N,
|
|
18286
18286
|
navigationTabs: H,
|
|
18287
18287
|
version: J
|
|
18288
18288
|
};
|
|
18289
18289
|
});
|
|
18290
|
-
var
|
|
18291
|
-
|
|
18292
|
-
async function
|
|
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) {
|
|
18293
18293
|
for (let J = 0; J < F.length; J++)
|
|
18294
18294
|
try {
|
|
18295
18295
|
return await F[J]();
|
|
18296
18296
|
} catch (H) {
|
|
18297
18297
|
if (H.message === "Unauthorized" || J === F.length - 1) throw H;
|
|
18298
|
-
await new Promise((
|
|
18298
|
+
await new Promise((N) => setTimeout(N, w));
|
|
18299
18299
|
}
|
|
18300
18300
|
throw new Error("No callback");
|
|
18301
18301
|
}
|
|
18302
|
-
const
|
|
18303
|
-
var ne,
|
|
18304
|
-
const { businessId: J, country: H } =
|
|
18305
|
-
selectedRestaurantIds:
|
|
18306
|
-
selectedWarehouseIds:
|
|
18302
|
+
const vt = async (F, w) => {
|
|
18303
|
+
var ne, oe, re, se;
|
|
18304
|
+
const { businessId: J, country: H } = Y(ee()), {
|
|
18305
|
+
selectedRestaurantIds: N,
|
|
18306
|
+
selectedWarehouseIds: Q,
|
|
18307
18307
|
selectedLocationIds: k,
|
|
18308
|
-
dateRange:
|
|
18308
|
+
dateRange: P,
|
|
18309
18309
|
compareDateRange: B,
|
|
18310
18310
|
timeRange: U
|
|
18311
18311
|
} = Ie();
|
|
18312
18312
|
if (k.length === 0)
|
|
18313
18313
|
return null;
|
|
18314
|
-
const { currentReport:
|
|
18315
|
-
fetchType:
|
|
18314
|
+
const { currentReport: V } = Pe(), G = {
|
|
18315
|
+
fetchType: te.Post,
|
|
18316
18316
|
url: `/${J.value}/postgres-query`,
|
|
18317
18317
|
data: Me.getQueryRequests({
|
|
18318
18318
|
widget: F,
|
|
18319
|
-
dateRange: [
|
|
18319
|
+
dateRange: [P.startDate, P.endDate],
|
|
18320
18320
|
compareDateRange: B.startDate && B.endDate ? [B.startDate, B.endDate] : void 0,
|
|
18321
18321
|
timeRange: [
|
|
18322
|
-
|
|
18323
|
-
|
|
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()
|
|
18324
18324
|
],
|
|
18325
18325
|
businessIds: J.value ? [J.value] : [],
|
|
18326
|
-
restaurantIds:
|
|
18327
|
-
warehouseIds:
|
|
18326
|
+
restaurantIds: N,
|
|
18327
|
+
warehouseIds: Q,
|
|
18328
18328
|
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
18329
|
-
}).map((
|
|
18329
|
+
}).map((W) => ({ ...W, performance: V == null ? void 0 : V.performance })),
|
|
18330
18330
|
requestConfig: {
|
|
18331
18331
|
timeout: 1e3 * 60 * 5,
|
|
18332
18332
|
signal: w
|
|
18333
18333
|
}
|
|
18334
|
-
},
|
|
18334
|
+
}, z = await At(
|
|
18335
18335
|
[
|
|
18336
|
-
() =>
|
|
18337
|
-
() =>
|
|
18338
|
-
() => (G.url = G.url.replace("postgres-query", "query"),
|
|
18336
|
+
() => j.fetch(G),
|
|
18337
|
+
() => j.fetch(G),
|
|
18338
|
+
() => (G.url = G.url.replace("postgres-query", "query"), j.fetch(G))
|
|
18339
18339
|
],
|
|
18340
18340
|
2e3
|
|
18341
18341
|
);
|
|
18342
|
-
return
|
|
18343
|
-
responses:
|
|
18342
|
+
return at.formatChartData({
|
|
18343
|
+
responses: z,
|
|
18344
18344
|
widget: F,
|
|
18345
18345
|
country: H.value
|
|
18346
18346
|
});
|
|
18347
18347
|
};
|
|
18348
|
-
function
|
|
18348
|
+
function Ye(F) {
|
|
18349
18349
|
const w = F.config;
|
|
18350
18350
|
return {
|
|
18351
18351
|
showTitle: w.showTitle,
|
|
@@ -18376,189 +18376,211 @@ function Ge(F) {
|
|
|
18376
18376
|
usePointStyle: w.usePointStyle
|
|
18377
18377
|
};
|
|
18378
18378
|
}
|
|
18379
|
-
function
|
|
18379
|
+
function je(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
|
|
18386
|
+
const Dt = async ({
|
|
18387
18387
|
reportType: F,
|
|
18388
18388
|
index: w,
|
|
18389
18389
|
orientationTypes: J,
|
|
18390
18390
|
locationIds: H,
|
|
18391
|
-
timeRange:
|
|
18392
|
-
dateRange:
|
|
18391
|
+
timeRange: N,
|
|
18392
|
+
dateRange: Q
|
|
18393
18393
|
}) => {
|
|
18394
|
-
const { businessId: k } =
|
|
18395
|
-
let
|
|
18396
|
-
G === "overview" &&
|
|
18397
|
-
const
|
|
18398
|
-
fetchType:
|
|
18399
|
-
url: `/${k.value}/file`,
|
|
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`,
|
|
18400
18400
|
data: {
|
|
18401
18401
|
configs: [
|
|
18402
|
-
...
|
|
18403
|
-
var
|
|
18402
|
+
...oe.map((W, _e) => {
|
|
18403
|
+
var ue, de, le, ce;
|
|
18404
18404
|
return {
|
|
18405
18405
|
requests: Me.getQueryRequests({
|
|
18406
|
-
widget:
|
|
18407
|
-
dateRange: [
|
|
18406
|
+
widget: W,
|
|
18407
|
+
dateRange: [Q.startDate, Q.endDate],
|
|
18408
18408
|
timeRange: [
|
|
18409
|
-
|
|
18410
|
-
|
|
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()
|
|
18411
18411
|
],
|
|
18412
18412
|
businessIds: k ? [k.value] : [],
|
|
18413
18413
|
restaurantIds: H.filter(
|
|
18414
|
-
(
|
|
18414
|
+
(ae) => P.find((ie) => ie.id === ae)
|
|
18415
18415
|
),
|
|
18416
18416
|
warehouseIds: H.filter(
|
|
18417
|
-
(
|
|
18417
|
+
(ae) => B.find((ie) => ie.id === ae)
|
|
18418
18418
|
),
|
|
18419
18419
|
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
18420
18420
|
}),
|
|
18421
|
-
index: w ||
|
|
18421
|
+
index: w || _e,
|
|
18422
18422
|
drillDimension: null,
|
|
18423
|
-
...
|
|
18424
|
-
...
|
|
18423
|
+
...Ye(W),
|
|
18424
|
+
...je(W)
|
|
18425
18425
|
};
|
|
18426
18426
|
})
|
|
18427
18427
|
],
|
|
18428
|
-
reportId:
|
|
18428
|
+
reportId: z,
|
|
18429
18429
|
type: F,
|
|
18430
18430
|
orientationTypes: J
|
|
18431
|
-
},
|
|
18432
|
-
requestConfig: {
|
|
18433
|
-
responseType: "arraybuffer",
|
|
18434
|
-
timeout: 1e3 * 60 * 60
|
|
18435
18431
|
}
|
|
18436
|
-
}, {
|
|
18437
|
-
|
|
18438
|
-
}
|
|
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 ({
|
|
18439
18461
|
emails: F,
|
|
18440
18462
|
types: w,
|
|
18441
18463
|
dateRange: J,
|
|
18442
18464
|
timeRange: H,
|
|
18443
|
-
locationIds:
|
|
18444
|
-
orientationTypes:
|
|
18465
|
+
locationIds: N,
|
|
18466
|
+
orientationTypes: Q
|
|
18445
18467
|
}) => {
|
|
18446
|
-
const { businessId: k } =
|
|
18468
|
+
const { businessId: k } = Y(ee()), { currentReport: P, overviewReport: B } = Pe(), { selectedNavigationTab: U } = Ge(), { restaurants: V, warehouses: G } = Ie();
|
|
18447
18469
|
if (F.length === 0) {
|
|
18448
18470
|
console.error("No email addresses provided.");
|
|
18449
18471
|
return;
|
|
18450
18472
|
}
|
|
18451
|
-
let
|
|
18452
|
-
U === "overview" && B && (
|
|
18453
|
-
const
|
|
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 = {
|
|
18454
18476
|
businessId: k.value,
|
|
18455
|
-
status:
|
|
18477
|
+
status: We.generating,
|
|
18456
18478
|
dateRange: {
|
|
18457
18479
|
start: J.startDate,
|
|
18458
18480
|
end: J.endDate
|
|
18459
18481
|
},
|
|
18460
18482
|
reportName: ne,
|
|
18461
18483
|
emails: F,
|
|
18462
|
-
configs:
|
|
18463
|
-
var
|
|
18484
|
+
configs: re.map((W, _e) => {
|
|
18485
|
+
var ue, de, le, ce;
|
|
18464
18486
|
return {
|
|
18465
18487
|
requests: Me.getQueryRequests({
|
|
18466
|
-
widget:
|
|
18488
|
+
widget: W,
|
|
18467
18489
|
dateRange: [J.startDate, J.endDate],
|
|
18468
18490
|
timeRange: [
|
|
18469
|
-
|
|
18470
|
-
|
|
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()
|
|
18471
18493
|
],
|
|
18472
18494
|
businessIds: k ? [k.value] : [],
|
|
18473
|
-
restaurantIds:
|
|
18474
|
-
(
|
|
18495
|
+
restaurantIds: N.filter(
|
|
18496
|
+
(ae) => V.find((ie) => ie.id === ae)
|
|
18475
18497
|
),
|
|
18476
|
-
warehouseIds:
|
|
18477
|
-
(
|
|
18498
|
+
warehouseIds: N.filter(
|
|
18499
|
+
(ae) => G.find((ie) => ie.id === ae)
|
|
18478
18500
|
),
|
|
18479
18501
|
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
18480
18502
|
}),
|
|
18481
|
-
index:
|
|
18503
|
+
index: _e,
|
|
18482
18504
|
drillDimension: null,
|
|
18483
|
-
...
|
|
18484
|
-
...
|
|
18505
|
+
...Ye(W),
|
|
18506
|
+
...je(W)
|
|
18485
18507
|
};
|
|
18486
18508
|
}),
|
|
18487
|
-
reportId:
|
|
18509
|
+
reportId: z,
|
|
18488
18510
|
types: w,
|
|
18489
|
-
orientationTypes:
|
|
18511
|
+
orientationTypes: Q
|
|
18490
18512
|
};
|
|
18491
|
-
await
|
|
18492
|
-
fetchType:
|
|
18513
|
+
await j.fetch({
|
|
18514
|
+
fetchType: te.Post,
|
|
18493
18515
|
url: `/${k.value}/reports/email`,
|
|
18494
|
-
data:
|
|
18516
|
+
data: se,
|
|
18495
18517
|
requestConfig: { timeout: 1e3 * 60 * 3 }
|
|
18496
18518
|
});
|
|
18497
|
-
},
|
|
18498
|
-
const { businessId: w } =
|
|
18499
|
-
await
|
|
18500
|
-
fetchType:
|
|
18519
|
+
}, xt = async (F) => {
|
|
18520
|
+
const { businessId: w } = Y(ee());
|
|
18521
|
+
await j.fetch({
|
|
18522
|
+
fetchType: te.Post,
|
|
18501
18523
|
url: `/${w.value}/reports/resend-email`,
|
|
18502
18524
|
data: { jobId: F },
|
|
18503
18525
|
requestConfig: { timeout: 1e3 * 60 * 3 }
|
|
18504
18526
|
});
|
|
18505
|
-
},
|
|
18506
|
-
const { businessId: F } =
|
|
18507
|
-
return await
|
|
18508
|
-
fetchType:
|
|
18527
|
+
}, Pt = async () => {
|
|
18528
|
+
const { businessId: F } = Y(ee());
|
|
18529
|
+
return await j.fetch({
|
|
18530
|
+
fetchType: te.Get,
|
|
18509
18531
|
url: `/${F.value}/reports/email-recipients`
|
|
18510
18532
|
});
|
|
18511
|
-
},
|
|
18512
|
-
const { businessId: w } =
|
|
18513
|
-
await
|
|
18514
|
-
fetchType:
|
|
18533
|
+
}, Nt = async (F) => {
|
|
18534
|
+
const { businessId: w } = Y(ee());
|
|
18535
|
+
await j.fetch({
|
|
18536
|
+
fetchType: te.Post,
|
|
18515
18537
|
url: `/${w.value}/reports/email-recipient/delete`,
|
|
18516
18538
|
data: { email: F }
|
|
18517
18539
|
});
|
|
18518
18540
|
};
|
|
18519
18541
|
let Ee;
|
|
18520
|
-
const
|
|
18521
|
-
function
|
|
18542
|
+
const Tt = new Uint8Array(16);
|
|
18543
|
+
function Et() {
|
|
18522
18544
|
if (!Ee && (Ee = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Ee))
|
|
18523
18545
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
18524
|
-
return Ee(
|
|
18546
|
+
return Ee(Tt);
|
|
18525
18547
|
}
|
|
18526
|
-
const
|
|
18548
|
+
const X = [];
|
|
18527
18549
|
for (let F = 0; F < 256; ++F)
|
|
18528
|
-
|
|
18529
|
-
function
|
|
18530
|
-
return
|
|
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]];
|
|
18531
18553
|
}
|
|
18532
|
-
const
|
|
18533
|
-
randomUUID:
|
|
18554
|
+
const Mt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), He = {
|
|
18555
|
+
randomUUID: Mt
|
|
18534
18556
|
};
|
|
18535
|
-
function
|
|
18536
|
-
if (
|
|
18537
|
-
return
|
|
18557
|
+
function kt(F, w, J) {
|
|
18558
|
+
if (He.randomUUID && !w && !F)
|
|
18559
|
+
return He.randomUUID();
|
|
18538
18560
|
F = F || {};
|
|
18539
|
-
const H = F.random || (F.rng ||
|
|
18561
|
+
const H = F.random || (F.rng || Et)();
|
|
18540
18562
|
if (H[6] = H[6] & 15 | 64, H[8] = H[8] & 63 | 128, w) {
|
|
18541
18563
|
J = J || 0;
|
|
18542
|
-
for (let
|
|
18543
|
-
w[J +
|
|
18564
|
+
for (let N = 0; N < 16; ++N)
|
|
18565
|
+
w[J + N] = H[N];
|
|
18544
18566
|
return w;
|
|
18545
18567
|
}
|
|
18546
|
-
return
|
|
18568
|
+
return It(H);
|
|
18547
18569
|
}
|
|
18548
18570
|
export {
|
|
18549
|
-
|
|
18550
|
-
|
|
18551
|
-
|
|
18552
|
-
|
|
18553
|
-
|
|
18554
|
-
|
|
18555
|
-
|
|
18556
|
-
|
|
18557
|
-
|
|
18558
|
-
|
|
18559
|
-
|
|
18560
|
-
|
|
18561
|
-
|
|
18562
|
-
|
|
18563
|
-
|
|
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
|
|
18564
18586
|
};
|